emit-rtl.c: Include rtl-iter.h.
[gcc.git] / gcc / ChangeLog
1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
2
3 * emit-rtl.c: Include rtl-iter.h.
4 (find_auto_inc): Turn from being a for_each_rtx callback to being
5 a function that examines each subrtx itself. Assume the first operand
6 to an RTX_AUTOINC is the automodified register.
7 (try_split): Update call accordingly.
8
9 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
10
11 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
12 Return a bool, inverting the result so that 0/false means "not ok".
13 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
14 subrtxes of a CONST.
15 (mem_loc_descriptor, add_const_value_attribute)
16 (resolve_addr_in_expr): Update calls accordingly.
17
18 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19
20 * dwarf2out.c: Include rtl-iter.h.
21 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
22 Remove unused data parameter. Return a bool, inverting the result
23 so that 0/false means "not ok".
24 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
25 instead of for_each_rtx.
26
27 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
28
29 * dse.c: Include rtl-iter.h.
30 (check_mem_read_rtx): Change void * parameter to real type.
31 Remove return value.
32 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
33 for_each_rtx. Don't handle null rtxes.
34
35 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
36
37 * df-problems.c: Include rtl-iter.h.
38 (find_memory): Turn from being a for_each_rtx callback to being
39 a function that examines each subrtx itself. Continue to look for
40 volatile references even after a nonvolatile one has been found.
41 (can_move_insns_across): Update calls accordingly.
42
43 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
44
45 * ddg.c (walk_mems_2, walk_mems_1): Delete.
46 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
47 to iterate over subrtxes. Return a bool rather than an int.
48
49 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
50
51 * ddg.c: Include rtl-iter.h.
52 (mark_mem_use_1): Rename to...
53 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
54 instead of for_each_rtx.
55 (mem_read_insn_p): Update accordingly.
56
57 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
58
59 * cse.c (change_cc_mode_args): Delete.
60 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
61 a function that examines each subrtx itself. Take the fields of
62 change_cc_mode_args as argument and return void.
63 (cse_change_cc_mode_insn): Update calls accordingly.
64
65 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
66
67 * cse.c (is_dead_reg): Change argument to const_rtx.
68 (dead_debug_insn_data): Delete.
69 (is_dead_debug_insn): Expand commentary. Turn from being a
70 for_each_rtx callback to being a function that examines
71 each subrtx itself. Take the fields of dead_debug_insn_data
72 as argument.
73 (delete_trivially_dead_insns): Update call accordingly.
74
75 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
76
77 * cse.c (check_for_label_ref): Move earlier in file. Turn from
78 being a for_each_rtx callback to being a function that examines
79 each subrtx itself.
80 (cse_extended_basic_block): Update call accordingly.
81
82 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
83
84 * cse.c (check_dependence_data): Delete.
85 (check_dependence): Change from being a for_each_rtx callback to being
86 a function that examines all subrtxes itself. Don't handle null rtxes.
87 (invalidate): Update call accordingly.
88
89 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
90
91 * cse.c: Include rtl-iter.h.
92 (approx_reg_cost_1): Delete.
93 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
94 Don't handle null rtxes.
95
96 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
97
98 * cfgcleanup.c: Include rtl-iter.h.
99 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
100 to being a function that examines each subrtx itself.
101 (thread_jump): Update accordingly.
102
103 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
104
105 * combine-stack-adj.c: Include rtl-iter.h.
106 (record_stack_refs_data): Delete.
107 (record_stack_refs): Turn from being a for_each_rtx callback
108 to being a function that examines each subrtx itself.
109 Take a pointer to the reflist. Invert sense of return value
110 so that true means success and false means failure. Don't
111 handle null rtxes.
112 (combine_stack_adjustments_for_block): Update accordingly.
113
114 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
115
116 * combine.c (record_truncated_value): Turn from being a for_each_rtx
117 callback to a function that takes an rtx and returns a bool
118 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
119 for_each_rtx.
120
121 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
122
123 * combine.c: Include rtl-iter.h.
124 (unmentioned_reg_p_1): Delete.
125 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
126 Don't handle null rtxes.
127
128 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
129
130 * calls.c: Include rtl-iter.h.
131 (internal_arg_pointer_based_exp_1): Delete.
132 (internal_arg_pointer_based_exp): Take a const_rtx.
133 Use FOR_EACH_SUBRTX to iterate over subrtxes.
134
135 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
136
137 * caller-save.c: Include rtl-iter.h.
138 (add_used_regs_1): Delete.
139 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
140 to iterate over subrtxes. Assert that any remaining pseudos
141 have been spilled.
142
143 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
144
145 * bt-load.c: Include rtl-iter.h.
146 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
147 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
148 to iterate over subrtxes.
149 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
150 find_btr_use rather than btr_referenced_p.
151
152 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
153
154 * alias.c: Include rtl-iter.h.
155 (refs_newer_value_cb): Delete.
156 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
157
158 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
159
160 * rtl-iter.h: New file.
161 * rtlanal.c: Include it.
162 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
163 (generic_subrtx_iterator <T>::add_single_to_queue)
164 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
165 (generic_subrtx_iterator <T>::free_array): New functions.
166 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
167 (generic_subrtx_iterator <const_rtx_accessor>)
168 (generic_subrtx_iterator <rtx_var_accessor>
169 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
170 (setup_reg_subrtx_bounds): New function.
171 (init_rtlanal): Call it.
172
173 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
174
175 PR target/62261
176 * config/sh/sh.md (ashlsi3): Handle negative shift count for
177 TARGET_SHMEDIA.
178 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
179
180 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
181
182 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
183
184 2014-08-27 David Malcolm <dmalcolm@redhat.com>
185
186 * rtl.h (JUMP_LABEL_AS_INSN): New.
187
188 2014-08-27 David Malcolm <dmalcolm@redhat.com>
189
190 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
191 rtx_expr_list **.
192 (alloc_EXPR_LIST): Strengthen return type from rtx to
193 rtx_expr_list *.
194 (remove_free_EXPR_LIST_node): Likewise for param.
195 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
196 from rtx to rtx_expr_list *.
197 * sched-int.h (struct deps_desc): Strengthen fields
198 "pending_read_mems" and "pending_write_mems" from rtx to
199 rtx_expr_list *.
200
201 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
202 rtx to rtx_expr_list *.
203 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
204 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
205 rtx_expr_list **.
206 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
207 from rtx to rtx_expr_list *.
208 * loop-iv.c (simplify_using_initial_values): Strengthen local
209 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
210 "pnote_next" from rtx * to rtx_expr_list **.
211 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
212 param "exprp" from rtx * to rtx_expr_list **.
213 (add_insn_mem_dependence): Strengthen local "mem_list" from
214 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
215 to rtx_expr_list *.
216 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
217 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
218 param "old_mems_p" from rtx * to rtx_expr_list **.
219 * var-tracking.c (struct adjust_mem_data): Strengthen field
220 "side_effects" from rtx to rtx_expr_list *.
221 (adjust_insn): Replace NULL_RTX with NULL when assigning to
222 rtx_expr_list *.
223 (prepare_call_arguments): Likewise.
224
225 2014-08-27 David Malcolm <dmalcolm@redhat.com>
226
227 * function.h (struct rtl_data): Strengthen field
228 "x_stack_slot_list" from rtx to rtx_expr_list *.
229
230 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
231 when assigning to stack_slot_list.
232
233 2014-08-27 David Malcolm <dmalcolm@redhat.com>
234
235 * function.h (struct rtl_data): Strengthen field
236 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
237 * rtl.h (remove_node_from_expr_list): Strengthen second param from
238 rtx * to rtx_expr_list **.
239
240 * cfgbuild.c (make_edges): In loop over
241 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
242 rtx_expr_list *, and use methods of the latter class to clarify
243 the code.
244 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
245 rtx_expr_list *, and use methods of the latter class to clarify
246 the code.
247 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
248 * reload1.c (set_initial_label_offsets): Likewise for local "x".
249 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
250 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
251 to rtx_expr_list *. Use methods of the latter class to clarify
252 the code.
253
254 2014-08-27 David Malcolm <dmalcolm@redhat.com>
255
256 * function.h (struct expr_status): Strengthen field
257 "x_forced_labels" from rtx to rtx_expr_list *.
258
259 * cfgbuild.c (make_edges): Split local "x" into two locals,
260 strengthening one from rtx to rtx_expr_list *, and using methods
261 of said class.
262 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
263 loop over forced_labels, introduce strengthen it from rtx to
264 rtx_expr_list *, using methods to clarify the code.
265 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
266 to rtx_expr_list *, using methods of said class to clarify the
267 code.
268 * reload1.c (set_initial_label_offsets): Split local "x" into two
269 per-loop variables, strengthening the first from rtx to
270 rtx_expr_list * and using methods.
271
272 2014-08-27 David Malcolm <dmalcolm@redhat.com>
273
274 * coretypes.h (class rtx_expr_list): Add forward declaration.
275 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
276 * gengenrtl.c (special_rtx): Add EXPR_LIST.
277 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
278 invariant: GET_CODE (X) == EXPR_LIST.
279 (is_a_helper <rtx_expr_list *>::test): New.
280 (rtx_expr_list::next): New.
281 (rtx_expr_list::element): New.
282 (gen_rtx_EXPR_LIST): New.
283
284 2014-08-27 David Malcolm <dmalcolm@redhat.com>
285
286 * varasm.c (mark_constants): Convert a GET_CODE check into a
287 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
288 Use methods of rtx_sequence to clarify the code.
289
290 2014-08-27 David Malcolm <dmalcolm@redhat.com>
291
292 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
293 local "seq" via a checked cast, and use methods of rtx_sequence
294 to simplify the code.
295
296 2014-08-27 David Malcolm <dmalcolm@redhat.com>
297
298 * resource.c (mark_referenced_resources): Strengthen local
299 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
300 using methods of rtx_sequence to clarify the code.
301 (find_dead_or_set_registers): Within the switch statement, convert
302 a GET_CODE check to a dyn_cast, introducing local "seq". Within
303 the JUMP_P handling, introduce another local "seq", adding a
304 checked cast to rtx_sequence *. In both cases, use methods of
305 rtx_sequence to clarify the code.
306 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
307 via a checked cast, and use methods of rtx_sequence to simplify
308 the code.
309
310 2014-08-27 David Malcolm <dmalcolm@redhat.com>
311
312 * reorg.c (redundant_insn): In two places in the function, replace
313 a check of GET_CODE with a dyn_cast, introducing local "seq", and
314 usings methods of rtx_sequence to clarify the code.
315
316 2014-08-27 David Malcolm <dmalcolm@redhat.com>
317
318 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
319 local "seq" with a checked cast, and use methods of rtx_sequence
320 to clarify the code.
321
322 2014-08-27 David Malcolm <dmalcolm@redhat.com>
323
324 * function.c (contains): Introduce local "seq" for PATTERN (insn),
325 with a checked cast, in the region for where we know it's a
326 SEQUENCE. Use methods of rtx_sequence.
327
328 2014-08-27 David Malcolm <dmalcolm@redhat.com>
329
330 * final.c (get_attr_length_1): Replace GET_CODE check with a
331 dyn_cast, introducing local "seq" and the use of methods of
332 rtx_sequence.
333 (shorten_branches): Likewise, introducing local "body_seq".
334 Strengthen local "inner_insn" from rtx to rtx_insn *.
335 (reemit_insn_block_notes): Replace GET_CODE check with a
336 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
337 Use methods of rtx_sequence.
338 (final_scan_insn): Likewise, introducing local "seq" for when
339 "body" is known to be a SEQUENCE, using its methods.
340
341 2014-08-27 David Malcolm <dmalcolm@redhat.com>
342
343 * except.c (can_throw_external): Strengthen local "seq" from rtx
344 to rtx_sequence *. Use methods of rtx_sequence.
345 (insn_nothrow_p): Likewise.
346
347 2014-08-27 David Malcolm <dmalcolm@redhat.com>
348
349 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
350 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
351 Use methods of rtx_sequence.
352 (scan_trace): Likewise for local "pat".
353
354 2014-08-27 David Malcolm <dmalcolm@redhat.com>
355
356 * coretypes.h (class rtx_sequence): Add forward declaration.
357 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
358 invariant: GET_CODE (X) == SEQUENCE.
359 (is_a_helper <rtx_sequence *>::test): New.
360 (is_a_helper <const rtx_sequence *>::test): New.
361 (rtx_sequence::len): New.
362 (rtx_sequence::element): New.
363 (rtx_sequence::insn): New.
364
365 2014-08-27 David Malcolm <dmalcolm@redhat.com>
366
367 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
368 rtx_insn_list **.
369 (alloc_INSN_LIST): Strengthen return type from rtx to
370 rtx_insn_list *.
371 (copy_INSN_LIST): Likewise for return type and param.
372 (concat_INSN_LIST): Likewise for both params and return type.
373 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
374 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
375 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
376 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
377
378 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
379 "implicit_sets", "control_uses", "clobbers" from rtx to
380 rtx_insn_list *.
381 (struct deps_desc): Likewise for fields "pending_read_insns",
382 "pending_write_insns", "pending_jump_insns",
383 "last_pending_memory_flush", "last_function_call",
384 "last_function_call_may_noreturn", "sched_before_next_call",
385 "sched_before_next_jump".
386 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
387 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
388
389 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
390 from rtx to rtx_insn_list *.
391 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
392 rtx_insn_list *.
393
394 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
395 to rtx_insn_list **.
396 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
397 rtx_insn_list *.
398 (queue_insn): Likewise for local "link".
399 (struct haifa_saved_data): Strengthen field "insn_queue" from
400 rtx * to rtx_insn_list **.
401 (save_backtrack_point): Update allocation of save->insn_queue to
402 reflect the strengthening of elements from rtx to rtx_insn_list *.
403 (queue_to_ready): Strengthen local "link" from rtx to
404 rtx_insn_list *; use methods "next" and "insn" when traversing the
405 list.
406 (early_queue_to_ready): Likewise for locals "link", "next_link",
407 "prev_link".
408 (schedule_block): Update allocation of insn_queue to reflect the
409 strengthening of elements from rtx to rtx_insn_list *. Strengthen
410 local "link" from rtx to rtx_insn_list *, and use methods when
411 working it.
412 (add_to_speculative_block): Strengthen locals "twins" and
413 "next_node" from rtx to rtx_insn_list *, and use methods when
414 working with them. Strengthen local "twin" from rtx to
415 rtx_insn *, eliminating a checked cast.
416 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
417 from rtx to rtx_insn_list *, and use methods when working with
418 them.
419
420 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
421 from rtx to rtx_insn_list *, adding a checked cast.
422 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
423 rtx_insn_list **.
424 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
425 "newlink" from rtx to rtx_insn_list *. Strengthen local
426 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
427 from rtx to rtx_insn *.
428 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
429 from rtx to rtx_insn_list *. Use methods of the latter class.
430 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
431 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
432 (remove_free_INSN_LIST_node): Strengthen return type and local
433 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
434 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
435 rtx_insn_list *, using "insn" method.
436
437 * sched-deps.c (add_dependence_list): Strengthen param "list"
438 from rtx to rtx_insn_list *, and use methods when working with it.
439 (add_dependence_list_and_free): Strengthen param "listp" from
440 rtx * to rtx_insn_list **.
441 (remove_from_dependence_list): Strenghten param "listp" from rtx *
442 to rtx_insn_list **, and use methods when working with *listp.
443 (remove_from_both_dependence_lists): Strengthen param "listp" from
444 rtx * to rtx_insn_list **
445 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
446 to rtx_insn_list **. Eliminate local "link", in favor of two new
447 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
448 respectively.
449 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
450 by introducing local "cond_deps".
451 (remove_from_deps): Strengthen param "insn" from rtx to
452 rtx_insn *.
453
454 * sched-rgn.c (concat_insn_mem_list): Strengthen param
455 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
456 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
457 Use methods of rtx_insn_list.
458
459 * store-motion.c (struct st_expr): Strengthen fields
460 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
461 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
462 rtx_insn_list *.
463 (find_moveable_store): Split out "tmp" into multiple more-tightly
464 scoped locals. Use methods of rtx_insn_list *.
465 (compute_store_table): Strengthen local "tmp" from rtx to
466 rtx_insn *. Use methods of rtx_insn_list *.
467
468 2014-08-27 David Malcolm <dmalcolm@redhat.com>
469
470 * coretypes.h (class rtx_insn_list): Add forward declaration.
471 * rtl.h (class rtx_insn_list): New subclass of rtx_def
472 (is_a_helper <rtx_insn_list *>::test): New.
473 (rtx_insn_list::next): New.
474 (rtx_insn_list::insn): New.
475 (gen_rtx_INSN_LIST): Add prototype.
476 * emit-rtl.c (gen_rtx_INSN_LIST): New.
477 * gengenrtl.c (special_rtx): Add INSN_LIST.
478
479 2014-08-27 David Malcolm <dmalcolm@redhat.com>
480
481 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
482 "prev" from rtx to rtx_insn *.
483
484 2014-08-27 David Malcolm <dmalcolm@redhat.com>
485
486 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
487 functions. Require merely an rtx for now, not an rtx_insn *.
488 (BLOCK_FOR_INSN): Likewise.
489 (INSN_LOCATION): Likewise.
490 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
491
492 2014-08-27 David Malcolm <dmalcolm@redhat.com>
493
494 * rtl.h (PATTERN): Convert this macro into a pair of inline
495 functions, for now, requiring const_rtx and rtx.
496
497 2014-08-27 David Malcolm <dmalcolm@redhat.com>
498
499 * target.def (unwind_emit): Strengthen param "insn" from rtx to
500 rtx_insn *.
501 (final_postscan_insn): Likewise.
502 (adjust_cost): Likewise.
503 (adjust_priority): Likewise.
504 (variable_issue): Likewise.
505 (macro_fusion_pair_p): Likewise.
506 (dfa_post_cycle_insn): Likewise.
507 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
508 (first_cycle_multipass_issue): Likewise.
509 (dfa_new_cycle): Likewise.
510 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
511 (speculate_insn): Likewise for param "insn".
512 (gen_spec_check): Likewise for params "insn" and "label".
513 (get_insn_spec_ds): Likewise for param "insn".
514 (get_insn_checked_ds): Likewise.
515 (dispatch_do): Likewise.
516 (dispatch): Likewise.
517 (cannot_copy_insn_p): Likewise.
518 (invalid_within_doloop): Likewise.
519 (legitimate_combined_insn): Likewise.
520 (needed): Likewise.
521 (after): Likewise.
522
523 * doc/tm.texi: Automatically updated to reflect changes to
524 target.def.
525
526 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
527 working with insn.
528 (schedule_block): Likewise.
529 (sched_init): Likewise.
530 (sched_speculate_insn): Strengthen param "insn" from rtx to
531 rtx_insn *.
532 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
533 working with insn.
534 * hooks.c (hook_bool_rtx_true): Rename to...
535 hook_bool_rtx_insn_true): ...this, and strengthen first param from
536 rtx to rtx_insn *.
537 (hook_constcharptr_const_rtx_null): Rename to...
538 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
539 first param from const_rtx to const rtx_insn *.
540 (hook_bool_rtx_int_false): Rename to...
541 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
542 param from rtx to rtx_insn *.
543 (hook_void_rtx_int): Rename to...
544 (hook_void_rtx_insn_int): ...this, and strengthen first param from
545 rtx to rtx_insn *.
546
547 * hooks.h (hook_bool_rtx_true): Rename to...
548 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
549 rtx to rtx_insn *.
550 (hook_bool_rtx_int_false): Rename to...
551 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
552 param from rtx to rtx_insn *.
553 (hook_void_rtx_int): Rename to...
554 (hook_void_rtx_insn_int): ...this, and strengthen first param from
555 rtx to rtx_insn *.
556 (hook_constcharptr_const_rtx_null): Rename to...
557 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
558 first param from const_rtx to const rtx_insn *.
559
560 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
561 and local "prev" from rtx to rtx_insn *.
562
563 * sched-int.h (sched_speculate_insn): Strengthen first param from
564 rtx to rtx_insn *.
565
566 * sel-sched.c (create_speculation_check): Likewise for local "label".
567 * targhooks.c (default_invalid_within_doloop): Strengthen param
568 "insn" from const_rtx to const rtx_insn *.
569 * targhooks.h (default_invalid_within_doloop): Strengthen param
570 from const_rtx to const rtx_insn *.
571
572 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
573 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
574
575 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
576 "insn".
577 (arc_invalid_within_doloop): Likewise, with const.
578
579 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
580 (arm_cannot_copy_insn_p): Likewise for param "insn".
581 (arm_unwind_emit): Likewise.
582
583 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
584 "dep_insn".
585
586 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
587 (c6x_variable_issue): Likewise. Removed now-redundant checked
588 cast.
589 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
590
591 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
592 Likewise for param "insn".
593 (epiphany_mode_after): Likewise.
594 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
595 params "insn", "dep_insn".
596 (epiphany_mode_needed): Likewise for param "insn".
597 (epiphany_mode_after): Likewise.
598
599 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
600 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
601 (ix86_avx_u128_mode_needed): Likewise.
602 (ix86_i387_mode_needed): Likewise.
603 (ix86_mode_needed): Likewise.
604 (ix86_avx_u128_mode_after): Likewise.
605 (ix86_mode_after): Likewise.
606 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
607 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
608 (ix86_adjust_priority): Likewise for param "insn".
609 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
610 (do_dispatch): Likewise.
611 (has_dispatch): Likewise.
612 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
613
614 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
615 reflect renaming of default hook implementation from
616 hook_constcharptr_const_rtx_null to
617 hook_constcharptr_const_rtx_insn_null.
618 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
619 rtx to rtx_insn *.
620 (ia64_variable_issue): Likewise for param "insn".
621 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
622 (ia64_dfa_new_cycle): Likewise.
623 (ia64_get_insn_spec_ds): Likewise.
624 (ia64_get_insn_checked_ds): Likewise.
625 (ia64_speculate_insn): Likewise.
626 (ia64_gen_spec_check): Likewise for params "insn", "label".
627 (ia64_asm_unwind_emit): Likewise for param "insn".
628
629 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
630
631 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
632 "insn", "def_insn".
633 (m68k_sched_variable_issue): Likewise for param "insn".
634
635 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
636 "def_insn".
637
638 * config/microblaze/microblaze.c (microblaze_adjust_cost):
639 Likewise for params "insn", "dep".
640
641 * config/mips/mips.c (mips_adjust_cost): Likewise.
642 (mips_variable_issue): Likewise for param "insn".
643 (mips_final_postscan_insn): Likewise.
644
645 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
646 for params "insn", "dep".
647
648 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
649 "dep_insn".
650 (pa_adjust_priority): Likewise for param "insn".
651
652 * config/picochip/picochip.c (picochip_sched_adjust_cost):
653 Likewise for params "insn", "dep_insn".
654
655 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
656 param "insn".
657 (rs6000_variable_issue): Likewise.
658 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
659 (rs6000_debug_adjust_cost): Likewise.
660 (rs6000_adjust_priority): Likewise for param "insn".
661 (rs6000_use_sched_lookahead_guard): Likewise.
662 (get_next_active_insn): Likewise for return type and both params.
663 (redefine_groups): Likewise for params "prev_head_insn", "tail"
664 and locals "insn", "next_insn".
665 (pad_groups): Likewise.
666
667 * config/s390/s390.c (s390_adjust_priority): Likewise for param
668 "insn".
669 (s390_cannot_copy_insn_p): Likewise.
670 (s390_sched_variable_issue): Likewise for third param, eliminating
671 checked cast.
672 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
673 default hook implementation from hook_constcharptr_const_rtx_null
674 to hook_constcharptr_const_rtx_insn_null.
675
676 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
677 from rtx to rtx_insn *.
678 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
679 (sh_variable_issue): Likewise for param "insn".
680 (sh_dfa_new_cycle): Likewise.
681 (sh_mode_needed): Likewise.
682 (sh_mode_after): Likewise.
683
684 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
685 params "insn", "dep_insn".
686 (hypersparc_adjust_cost): Likewise.
687 (sparc_adjust_cost): Likewise.
688
689 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
690 param, eliminated checked cast.
691 (spu_sched_adjust_cost): Likewise for first and third params.
692
693 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
694 params "insn" and "dep_insn" from rtx to rtx_insn *.
695
696 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
697
698 2014-08-27 David Malcolm <dmalcolm@redhat.com>
699
700 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
701 (set_is_load_p): ...this, updating to work on a SET pattern rather
702 than an insn.
703 (is_store_insn): Rename to...
704 (set_is_store_p): ...this, updating to work on a SET pattern
705 rather than an insn.
706 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
707 top of function to where it is needed. Rewrite the bogus
708 condition that checks for "insn" and "dep" being PARALLEL to
709 instead use single_set, introducing locals "insn_set" and
710 "dep_set". Given that we only ever returned "cost" for a non-pair
711 of SETs, bail out early if we don't have a pair of SET.
712 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
713 use the new locals "insn_set" and "dep_set", and update calls to
714 is_load_insn and is_store_insn to be calls to set_is_load_p and
715 set_is_store_p.
716
717 2014-08-27 Guozhi Wei <carrot@google.com>
718
719 PR target/62262
720 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
721 amount before using it.
722
723 2014-08-27 Richard Biener <rguenther@suse.de>
724
725 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
726 get_maxval_strlen inside a more useful API.
727 (gimple_fold_builtin_with_strlen): Remove and fold into ...
728 (gimple_fold_builtin): ... caller.
729 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
730 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
731 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
732 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
733 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
734 gimple_fold_builtin_sprintf): Adjust to compute maxval
735 themselves.
736
737 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
738
739 PR other/62248
740 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
741
742 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
743 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
744 Anna Tikhonova <anna.tikhonova@intel.com>
745 Ilya Tocar <ilya.tocar@intel.com>
746 Andrey Turetskiy <andrey.turetskiy@intel.com>
747 Ilya Verbin <ilya.verbin@intel.com>
748 Kirill Yukhin <kirill.yukhin@intel.com>
749 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
750
751 * config/i386/sse.md
752 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
753 Use `concat_tg_mode' attribute to determine asm register size.
754
755 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
756 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
757 Anna Tikhonova <anna.tikhonova@intel.com>
758 Ilya Tocar <ilya.tocar@intel.com>
759 Andrey Turetskiy <andrey.turetskiy@intel.com>
760 Ilya Verbin <ilya.verbin@intel.com>
761 Kirill Yukhin <kirill.yukhin@intel.com>
762 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
763
764 * config/i386/sse.md
765 (define_mode_iterator VI48_AVX512VL): New.
766 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
767 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
768 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
769 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
770 with VI1): Change mode iterator.
771 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
772 with VI_ULOADSTORE_BW_AVX512VL): New.
773 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
774 with VI_ULOADSTORE_F_AVX512VL): Ditto.
775 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
776 with VI1): Change mode iterator.
777 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
778 with VI_ULOADSTORE_BW_AVX512VL): New.
779 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
780 with VI_ULOADSTORE_F_AVX512VL): Ditto.
781 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
782 with VI1): Change mode iterator.
783 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
784 with VI_ULOADSTORE_BW_AVX512VL): New.
785 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
786 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
787 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
788 (define_insn "<avx512>_storedqu<mode>_mask" with
789 VI48_AVX512VL): New.
790 (define_insn "<avx512>_storedqu<mode>_mask" with
791 VI12_AVX512VL): Ditto.
792
793 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
794 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
795 Anna Tikhonova <anna.tikhonova@intel.com>
796 Ilya Tocar <ilya.tocar@intel.com>
797 Andrey Turetskiy <andrey.turetskiy@intel.com>
798 Ilya Verbin <ilya.verbin@intel.com>
799 Kirill Yukhin <kirill.yukhin@intel.com>
800 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
801
802 * config/i386/sse.md
803 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
804 (define_mode_iterator VI48_AVX512BW): New.
805 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
806 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
807 with VI48_AVX2_48_AVX512F): New.
808 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
809 with VI2_AVX512VL): Ditto.
810
811 2014-08-27 Richard Biener <rguenther@suse.de>
812
813 PR middle-end/62239
814 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
815 (fold_builtin_3): Do not fold strcat_chk here.
816 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
817 from builtins.c.
818 (gimple_fold_builtin): Fold strcat_chk here.
819
820 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
821
822 * dwarf2out.h (dwarf2out_decl): Remove prototype.
823 * dwarf2out.c (dwarf2out_decl): Make static.
824
825 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
826
827 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
828
829 2014-08-26 David Malcolm <dmalcolm@redhat.com>
830
831 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
832 from rtx to rtx_insn *.
833 (cselib_lookup_from_insn): Likewise for final param.
834 (cselib_subst_to_values_from_insn): Likewise.
835 (cselib_add_permanent_equiv): Likewise.
836
837 * cselib.c (cselib_current_insn): Likewise for this variable.
838 (cselib_subst_to_values_from_insn): Likewise for param "insn".
839 (cselib_lookup_from_insn): Likewise.
840 (cselib_add_permanent_equiv): Likewise for param "insn" and local
841 "save_cselib_current_insn".
842 (cselib_process_insn): Replace use of NULL_RTX with NULL.
843
844 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
845 from rtx to rtx_insn *.
846
847 2014-08-26 David Malcolm <dmalcolm@redhat.com>
848
849 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
850 rtx_insn *.
851
852 2014-08-26 David Malcolm <dmalcolm@redhat.com>
853
854 * df.h (df_dump_insn_problem_function): Strengthen first param of
855 this callback from const_rtx to const rtx_insn *.
856 (struct df_insn_info): Strengthen field "insn" from rtx to
857 rtx_insn *.
858 (DF_REF_INSN): Eliminate this function, reinstating the older
859 macro definition.
860 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
861 (df_reg_defined): Likewise.
862 (df_find_use): Likewise.
863 (df_reg_used): Likewise.
864 (df_dump_insn_top): Strengthen param 1 from const_rtx to
865 const rtx_insn *.
866 (df_dump_insn_bottom): Likewise.
867 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
868 (df_insn_debug_regno): Likewise.
869 (debug_df_insn): Likewise.
870 (df_rd_simulate_one_insn): Likewise for param 2.
871 (df_word_lr_simulate_defs): Likewise for param 1.
872 (df_word_lr_simulate_uses): Likewise.
873 (df_md_simulate_one_insn): Likewise for param 2.
874 (df_simulate_find_noclobber_defs): Likewise for param 1.
875 (df_simulate_find_defs): Likewise.
876 (df_simulate_defs): Likewise.
877 (df_simulate_uses): Likewise.
878 (df_simulate_one_insn_backwards): Likewise for param 2.
879 (df_simulate_one_insn_forwards): Likewise.
880 (df_uses_create): Likewise for param 2.
881 (df_insn_create_insn_record): Likewise for param 1.
882 (df_insn_delete): Likewise.
883 (df_insn_rescan): Likewise.
884 (df_insn_rescan_debug_internal): Likewise.
885 (df_insn_change_bb): Likewise.
886 (df_notes_rescan): Likewise.
887 * rtl.h (remove_death): Likewise for param 2.
888 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
889 const rtx_insn *.
890 * sched-int.h (reemit_notes): Strengthen param from rtx to
891 rtx_insn *.
892 * valtrack.h (propagate_for_debug): Likewise for param 1.
893
894 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
895 local "tmp_rtx" from const_rtx to const rtx_insn *.
896 * combine.c (remove_death): Strengthen param "insn" from rtx to
897 rtx_insn *.
898 (move_deaths): Likewise for local "where_dead".
899 * cse.c (delete_trivially_dead_insns): Introduce local
900 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
901 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
902 rtx_insn *.
903 (df_reg_defined): Likewise.
904 (df_find_use): Likewise.
905 (df_reg_used): Likewise.
906 (df_dump_insn_problem_data): Strengthen param "insn" from
907 const_rtx to const rtx_insn *.
908 (df_dump_insn_top): Likewise.
909 (df_dump_insn_bottom): Likewise.
910 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
911 (df_insn_debug_regno): Likewise.
912 (debug_df_insn): Likewise.
913 (DF_REF_INSN): Delete.
914 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
915 from rtx to rtx_insn *.
916 (df_chain_insn_top_dump): Strengthen param "insn" from
917 const_rtx to const rtx_insn *.
918 (df_chain_insn_bottom_dump): Likewise.
919 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
920 rtx_insn *.
921 (df_word_lr_simulate_uses): Likewise.
922 (df_print_note): Likewise.
923 (df_remove_dead_and_unused_notes): Likewise.
924 (df_set_unused_notes_for_mw): Likewise.
925 (df_set_dead_notes_for_mw): Likewise.
926 (df_create_unused_note): Likewise.
927 (df_simulate_find_defs): Likewise.
928 (df_simulate_find_uses): Likewise.
929 (df_simulate_find_noclobber_defs): Likewise.
930 (df_simulate_defs): Likewise.
931 (df_simulate_uses): Likewise.
932 (df_simulate_one_insn_backwards): Likewise.
933 (df_simulate_one_insn_forwards): Likewise.
934 (df_md_simulate_one_insn): Likewise.
935 * df-scan.c (df_uses_create): Likewise.
936 (df_insn_create_insn_record): Likewise.
937 (df_insn_delete): Likewise.
938 (df_insn_rescan): Likewise.
939 (df_insn_rescan_debug_internal): Likewise.
940 (df_insn_change_bb): Likewise.
941 (df_notes_rescan): Likewise.
942 (df_refs_add_to_chains): Likewise.
943 (df_insn_refs_verify): Likewise.
944 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
945 when invoking df_insn_delete.
946 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
947 (set_unique_reg_note): Add checked cast.
948 * final.c (cleanup_subreg_operands): Likewise.
949 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
950 "insn" from rtx to rtx_insn *.
951 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
952 "last" from rtx to rtx_insn *.
953 * ira-emit.c (change_regs_in_insn): New function.
954 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
955 Invoke change_regs_in_insn rather than change_regs.
956 * ira.c (update_equiv_regs): Strengthen locals "insn",
957 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
958 for_each_rtx_in_insn rather than for_each_rtx.
959 * recog.c (confirm_change_group): Add checked casts.
960 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
961 Add checked cast.
962 (peep2_fill_buffer): Add checked cast.
963 * rtlanal.c (remove_note): Likewise.
964 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
965 locals "next" "end" from rtx to rtx_insn *.
966
967 2014-08-26 David Malcolm <dmalcolm@redhat.com>
968
969 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
970 to rtx_insn *.
971 (struct reg_use_data): Likewise for field "insn".
972 (insn_cost): Likewise for param.
973 (real_insn_for_shadow): Likewise for return type and param.
974 (increase_insn_priority): Likewise for param 1.
975 (debug_dependencies): Likewise for both params.
976
977 * haifa-sched.c (insn_delay): Likewise for param "insn".
978 (real_insn_for_shadow): Likewise for return type and param "insn".
979 (update_insn_after_change): Likewise for param "insn".
980 (recompute_todo_spec): Likewise for param "next" and locals "pro",
981 "other".
982 (insn_cost): Likewise for param "insn".
983 (increase_insn_priority): Likewise.
984 (calculate_reg_deaths): Likewise.
985 (setup_insn_reg_pressure_info): Likewise.
986 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
987 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
988 (model_recompute): Likewise.
989 (must_restore_pattern_p): Likewise for param "next".
990 (model_excess_cost): Likewise for param "insn".
991 (queue_remove): Likewise.
992 (adjust_priority): Likewise for param "prev".
993 (update_register_pressure): Likewise for param "insn".
994 (setup_insn_max_reg_pressure): Likewise for local "insn".
995 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
996 (model_add_to_schedule): Likewise.
997 (model_reset_queue_indices): Likewise for local "insn".
998 (unschedule_insns_until): Strengthen local "recompute_vec" from
999 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
1000 "con" from rtx to rtx_insn *.
1001 (restore_last_backtrack_point): Likewise for both locals "x". Add
1002 checked casts.
1003 (estimate_insn_tick): Likewise for param "insn".
1004 (commit_schedule): Likewise for params "prev_head", "tail" and
1005 local "x".
1006 (verify_shadows): Likewise for locals "i1", "i2".
1007 (dump_insn_stream): Likewise for params "head", "tail" and locals
1008 "next_tail", "insn".
1009 (schedule_block): Likewise for locals "insn", "x". Add a checked
1010 cast.
1011 (fix_inter_tick): Likewise for params "head", "tail".
1012 (create_check_block_twin): Likewise for local "jump".
1013 (haifa_change_pattern): Likewise for param "insn".
1014 (haifa_speculate_insn): Likewise.
1015 (dump_new_block_header): Likewise for params "head", "tail".
1016 (fix_jump_move): Likewise for param "jump".
1017 (move_block_after_check): Likewise.
1018 (sched_init_insn_luid): Likewise for param "insn".
1019 (sched_init_luids): Likewise for local "insn".
1020 (insn_luid): Likewise for param "insn".
1021 (init_h_i_d): Likewise.
1022 (haifa_init_h_i_d): Likewise for local "insn".
1023 (haifa_init_insn): Likewise for param "insn".
1024 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1025 "other".
1026 (create_insn_reg_use): Likewise for param "insn".
1027 (setup_insn_reg_uses): Likewise. Add a checked cast.
1028 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1029 "tail" from rtx to rtx_insn *.
1030 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1031 "insn", "next_tail".
1032
1033 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1034
1035 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1036 from rtx to rtx_insn *.
1037 (model_add_to_schedule): Likewise for locals "start", "end",
1038 "iter".
1039
1040 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1041
1042 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1043 rtx_insn *.
1044 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1045 "to" and locals "insn", "next", "copy". Remove now-redundant
1046 checked cast.
1047
1048 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1049
1050 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1051 rtx_insn * and param 4 from rtx * to rtx_insn **.
1052 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1053 param 2 from rtx * to rtx_insn **.
1054
1055 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1056 rtx_insn * and final param from rtx * to rtx_insn **.
1057
1058 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1059 from rtx to rtx_insn *.
1060 (try_head_merge_bb): Likewise for both locals named "move_upto".
1061 * df-problems.c (can_move_insns_across): Likewise for params
1062 "from", "to", "across_from", "across_to" and locals "insn",
1063 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1064 rtx_insn **.
1065 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1066 from rtx to rtx_insn *.
1067 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1068 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1069 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1070 rtx_insn *.
1071 (noce_try_abs): Likewise.
1072 (noce_get_condition): Likewise for param "jump". Strengthen param
1073 "earliest" from rtx * to rtx_insn **.
1074 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1075 rtx_insn *.
1076 (find_cond_trap): Likewise.
1077 (dead_or_predicable): Likewise for local "earliest".
1078 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1079 checked cast.
1080 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1081 and local "prev". Strengthen param "earliest" from rtx * to
1082 rtx_insn **.
1083 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1084 Strengthen param "earliest" from rtx * to rtx_insn **.
1085
1086 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1087
1088 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1089 "to" and local "insn" from rtx to rtx_insn *.
1090
1091 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1092
1093 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1094 from rtx to rtx_insn *.
1095 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1096 (code_motion_path_driver): Likewise for local "last_insn".
1097 (simplify_changed_insns): Likewise for local "insn".
1098
1099 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1100
1101 * rtl.h (push_to_sequence): Strengthen param from rtx to
1102 rtx_insn *.
1103 (push_to_sequence2): Likewise for both params.
1104 (delete_insns_since): Likewise for param.
1105 (reorder_insns_nobb): Likewise for all three params.
1106 (set_new_first_and_last_insn): Likewise for both params.
1107
1108 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1109 rtx_insn *. Remove now-redundant cast.
1110 (set_last_insn): Likewise.
1111
1112 * builtins.c (expand_builtin_return): Strengthen local
1113 "call_fusage" from rtx to rtx_insn *.
1114 * cfgrtl.c (create_basic_block_structure): Likewise for local
1115 "after".
1116 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1117 "first", "last" and local "insn".
1118 (delete_insns_since): Likewise for param "from".
1119 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1120 and local "x".
1121 (push_to_sequence): Likewise for param "first" and local "last".
1122 (push_to_sequence2): Likewise for params "first" and "last".
1123 * lra.c (emit_add3_insn): Likewise for local "last".
1124 (lra_emit_add): Likewise.
1125 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1126 "last_insn".
1127 (process_address_1): Likewise for locals "insn", last".
1128 * modulo-sched.c (ps_first_note): Likewise for return type.
1129 * optabs.c (expand_binop_directly): Likewise for param "last".
1130
1131 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1132
1133 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1134 to rtx_insn*.
1135 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1136
1137 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1138
1139 * function.h (struct sequence_stack): Strengthen fields "first"
1140 and "last" from rtx to rtx_insn *.
1141 (struct emit_status): Likewise for fields "x_first_insn" and
1142 "x_last_insn".
1143
1144 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1145 (set_first_insn): Add checked cast.
1146 (get_last_insn): Remove now-redundant checked cast.
1147 (set_last_insn): Add checked cast.
1148
1149 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1150 "saved_first" and "saved_last" from rtx to rtx_insn *.
1151
1152 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1153
1154 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1155 (unlink_insn_chain): Strengthen both params from rtx to
1156 rtx_insn *.
1157
1158 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1159 variable.
1160 (unlink_insn_chain): Likewise for params "first" and "last".
1161 Remove now-redundant checked cast.
1162 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1163 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1164 rtx_insn *.
1165 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1166 params.
1167 (add_insn): Likewise for param "insn" and local "prev".
1168 (add_insn_after_nobb): Likewise for both params and local "next".
1169 (add_insn_before_nobb): Likewise for both params and local "prev".
1170 (add_insn_after): Rename param "after" to "uncast_after",
1171 introducing local "after" with another checked cast.
1172 (add_insn_before): Rename params "insn" and "before", giving them
1173 "uncast_" prefixes, adding the old names back using checked casts.
1174 (emit_note_after): Likewise for param "after".
1175 (emit_note_before): Likewise for param "before".
1176 (emit_label): Add a checked cast.
1177
1178 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1179
1180 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1181 "insn" from rtx to rtx_insn *.
1182
1183 * cselib.c (cselib_record_sets_hook): Likewise.
1184
1185 * var-tracking.c (add_with_sets): Likewise, renaming back from
1186 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1187 to rtx_insn *.
1188
1189 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1190
1191 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1192 and "header_" from rtx to rtx_insn *.
1193 (struct basic_block_d): Likewise for field "head_" within "x"
1194 field of union basic_block_il_dependent.
1195 (BB_HEAD): Drop function...
1196 (SET_BB_HEAD): ...and this function in favor of...
1197 (BB_HEAD): ...reinstate macro.
1198 (BB_END): Drop function...
1199 (SET_BB_END): ...and this function in favor of...
1200 (BB_END): ...reinstate macro.
1201 (BB_HEADER): Drop function...
1202 (SET_BB_HEADER): ...and this function in favor of...
1203 (BB_HEADER): ...reinstate macro.
1204
1205 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1206 (fix_crossing_unconditional_branches): Likewise.
1207 * caller-save.c (save_call_clobbered_regs): Likewise.
1208 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1209 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1210 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1211 (merge_blocks_move_successor_nojumps): Likewise.
1212 (outgoing_edges_match): Update use of for_each_rtx to
1213 for_each_rtx_in_insn.
1214 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1215 (expand_gimple_cond): Likewise.
1216 (expand_gimple_tailcall): Likewise.
1217 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1218 SET_BB_END.
1219 (construct_exit_block): Drop use of SET_BB_END.
1220 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1221 rtx_insn *.
1222 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1223 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1224 SET_BB_HEAD and SET_BB_END.
1225 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1226 SET_BB_END.
1227 (rtl_delete_block): Drop use of SET_BB_HEAD.
1228 (rtl_split_block): Drop use of SET_BB_END.
1229 (emit_nop_for_unique_locus_between): Likewise.
1230 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1231 (block_label): Drop use of SET_BB_HEAD.
1232 (fixup_abnormal_edges): Drop use of SET_BB_END.
1233 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1234 (relink_block_chain): Likewise.
1235 (fixup_reorder_chain): Drop use of SET_BB_END.
1236 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1237 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1238 rtx_insn **. Drop use of SET_BB_HEADER.
1239 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1240 SET_BB_HEAD.
1241 (BB_HEAD): Delete this function.
1242 (SET_BB_HEAD): Likewise.
1243 (BB_END): Likewise.
1244 (SET_BB_END): Likewise.
1245 (BB_HEADER): Likewise.
1246 (SET_BB_HEADER): Likewise.
1247 * emit-rtl.c (add_insn_after): Rename param "insn" to
1248 "uncast_insn", adding a new local "insn" and a checked cast to
1249 rtx_insn *. Drop use of SET_BB_END.
1250 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1251 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1252 (reorder_insns): Drop use of SET_BB_END.
1253 (emit_insn_after_1): Strengthen param "first" and locals "last",
1254 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1255 (emit_pattern_after_noloc): Add checked cast.
1256 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1257 (restore_other_notes): Likewise.
1258 (move_insn): Likewise.
1259 (sched_extend_bb): Likewise.
1260 (fix_jump_move): Likewise.
1261 * ifcvt.c (noce_process_if_block): Likewise.
1262 (dead_or_predicable): Likewise.
1263 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1264 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1265 * sel-sched-ir.c (sel_move_insn): Likewise.
1266 * sel-sched.c (move_nop_to_previous_block): Likewise.
1267
1268 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1269 SET_BB_END.
1270 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1271
1272 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1273
1274 * basic-block.h (create_basic_block_structure): Strengthen params
1275 1 "head" and 2 "end" from rtx to rtx_insn *.
1276 * cfgrtl.c (create_basic_block_structure): Likewise.
1277 (rtl_create_basic_block): Update casts from void * to rtx to
1278 rtx_insn *, so that we can pass them as rtx_insn * to
1279 create_basic_block_structure.
1280 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1281
1282 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1283
1284 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1285 rtx_insn **.
1286 (check_for_inc_dec): Strengthen param "insn" from rtx to
1287 rtx_insn *.
1288
1289 * cselib.h (cselib_process_insn): Likewise.
1290
1291 * cselib.c (cselib_record_sets): Likewise.
1292 (cselib_process_insn): Likewise.
1293
1294 * dse.c (struct insn_info): Likewise for field "insn".
1295 (check_for_inc_dec_1): Likewise for local "insn".
1296 (check_for_inc_dec): Likewise for param "insn".
1297 (scan_insn): Likewise.
1298 (dse_step1): Likewise for local "insn".
1299
1300 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1301 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1302
1303 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1304
1305 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1306 from rtx to rtx_insn *.
1307 (DEP_PRO): Delete this function and...
1308 (SET_DEP_PRO): ...this function in favor of...
1309 (DEP_PRO): ...reinstate this macro.
1310 (DEP_CON): Delete this function and...
1311 (SET_DEP_CON): ...this function in favor of...
1312 (DEP_CON): ...reinstate this old macro.
1313 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1314 (init_dep): Likewise.
1315 (set_priorities): Likewise for both params.
1316 (sd_copy_back_deps): Likewise for params 1 and 2.
1317
1318 * haifa-sched.c (priority): Likewise for param "insn" and local
1319 "next".
1320 (set_priorities): Likewise for params "head" and "tail" and local
1321 "insn".
1322 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1323 local "consumer".
1324 (add_to_speculative_block): Add a checked cast.
1325 (create_check_block_twin): Drop use of SET_DEP_CON.
1326 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1327 rtx to rtx_insn *.
1328
1329 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1330 Drop use of SET_DEP_PRO
1331 (init_dep): Strengthen params "pro" and "con" from rtx to
1332 rtx_insn *.
1333 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1334 use of SET_DEP_CON.
1335 (DEP_PRO): Delete.
1336 (DEP_CON): Delete.
1337 (SET_DEP_PRO): Delete.
1338 (SET_DEP_CON): Delete.
1339
1340 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1341
1342 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1343 from rtx to rtx_insn *.
1344 (VINSN_INSN_RTX): Eliminate rvalue function and...
1345 (SET_VINSN_INSN): ...lvalue function in favor of...
1346 (VINSN_INSN_RTX): reinstate this old macro.
1347
1348 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1349 in favor of VINSN_INSN_RTX.
1350 (VINSN_INSN_RTX): Delete this function.
1351 (SET_VINSN_INSN_RTX): Likewise.
1352
1353 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1354
1355 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1356 (BND_TO): Delete this function and...
1357 (SET_BND_TO): ...this functions in favor of...
1358 (BND_TO): ...reinstating this macro.
1359 (struct _fence): Strengthen field "executing_insns" from
1360 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1361 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1362 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1363 and param "insn" from rtx to insn_t.
1364 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1365 rtx_insn *.
1366
1367 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1368 vec<rtx_insn *> .
1369 (rtx_vec_t): Likewise.
1370 (struct sched_deps_info_def): Strengthen param of "start_insn"
1371 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1372 "note_mem_dep" callback and first param of "note_dep" callback.
1373
1374 * haifa-sched.c (add_to_speculative_block): Strengthen param
1375 "insn" from rtx to rtx_insn *.
1376 (clear_priorities): Likewise.
1377 (calc_priorities): Likewise for local "insn".
1378
1379 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1380 Remove redundant checked cast.
1381 (haifa_note_mem_dep): Likewise for param "pending_insn".
1382 (haifa_note_dep): Likewise for param "elem".
1383 (note_mem_dep): Likewise for param "e".
1384 (sched_analyze_1): Add checked casts.
1385 (sched_analyze_2): Likewise.
1386
1387 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1388 from rtx to rtx_insn *.
1389 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1390 from vec<rtx> * to vec<rtx_insn *> *.
1391
1392 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1393 scaffolding.
1394 (flist_add): Strengthen param "executing_insns" from
1395 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1396 (advance_deps_context): Remove now-redundant checked cast.
1397 (init_fences): Replace uses of NULL_RTX with NULL.
1398 (merge_fences): Strengthen params "last_scheduled_insn" and
1399 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1400 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1401 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1402 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1403 an instruction, rather than doing double-duty as a pattern.
1404 (return_nop_to_pool): Update for change of insn_t.
1405 (deps_init_id): Remove now-redundant checked cast.
1406 (struct sched_scan_info_def): Strengthen param of "init_insn"
1407 callback from rtx to insn_t.
1408 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1409 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1410 NULL.
1411 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1412 "end" from rtx to rtx_insn *.
1413 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1414 (rtx insn_rtx, bool force_unique_p)
1415 (BND_TO): Delete function.
1416 (SET_BND_TO): Delete function.
1417
1418 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1419 rtx to rtx_insn *.
1420 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1421 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1422 rtx to rtx_insn *.
1423 (undo_transformations): Likewise for param "insn".
1424 (update_liveness_on_insn): Likewise.
1425 (compute_live_below_insn): Likewise for param "insn" and local
1426 "succ".
1427 (update_data_sets): Likewise for param "insn".
1428 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1429 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1430 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1431 rtx_insn *.
1432 (move_cond_jump): Likewise for param "insn".
1433 (move_cond_jump): Drop use of SET_BND_TO.
1434 (compute_av_set_on_boundaries): Likewise.
1435 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1436 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1437 from rtx to rtx_insn *.
1438 (maybe_emit_renaming_copy): Likewise for param "insn".
1439 (maybe_emit_speculative_check): Likewise.
1440 (handle_emitting_transformations): Likewise.
1441 (remove_insn_from_stream): Likewise.
1442 (code_motion_process_successors): Strengthen local "succ" from rtx
1443 to insn_t.
1444
1445 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1446
1447 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1448 ilist_t, not _xlist_t;
1449 (ILIST_INSN): Define in terms of new union field "insn".
1450 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1451 _XLIST_NEXT.
1452 (struct _list_node): Add new field "insn" to the union, of type
1453 insn_t.
1454 (ilist_add): Replace macro with an inline function, requiring an
1455 insn_t.
1456 (ilist_remove): Define this macro directly in terms of
1457 _list_remove, rather than indirectly via _xlist_remove.
1458 (ilist_clear): Likewise, in terms of _list_clear rather than
1459 _xlist_clear.
1460 (ilist_is_in_p): Replace macro with an inline function, requiring
1461 an insn_t.
1462 (_list_iter_cond_insn): New function.
1463 (ilist_iter_remove): Define this macro directly in terms of
1464 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1465 (ilist_iterator): Define directly in terms of _list_iterator
1466 rather than indirectly through _xlist_iterator.
1467 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1468 than in terms of _FOR_EACH_X.
1469 (FOR_EACH_INSN_1): Likewise.
1470
1471 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1472
1473 PR target/60606
1474 PR target/61330
1475 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1476 DECL_HARD_REGISTER and return for invalid register specifications.
1477 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1478 DECL_HARD_REGISTER, call expand_one_error_var.
1479 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1480 CC_REGNUM with non-MODE_CC modes.
1481 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1482
1483 2014-08-26 Marek Polacek <polacek@redhat.com>
1484
1485 PR c/61271
1486 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1487
1488 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1489
1490 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1491 qi cost; add di cost.
1492 (cortexa57_addrcost_table): Likewise.
1493
1494 2014-08-26 Marek Polacek <polacek@redhat.com>
1495
1496 PR c/61271
1497 * expr.c (is_aligning_offset): Remove logical not.
1498
1499 2014-08-26 Marek Polacek <polacek@redhat.com>
1500
1501 PR c/61271
1502 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1503 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1504
1505 2014-08-26 Richard Biener <rguenther@suse.de>
1506
1507 PR tree-optimization/62175
1508 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1509 expand possibly trapping operations.
1510
1511 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1512
1513 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1514 "insn" from rtx to rtx_insn *.
1515 (permute_load): Likewise for param "insn".
1516 (permute_store): Likewise.
1517 (handle_special_swappables): Likewise for local "insn".
1518 (replace_swap_with_copy): Likewise for locals "insn" and
1519 "new_insn".
1520 (rs6000_analyze_swaps): Likewise for local "insn".
1521
1522 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1523
1524 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1525 to rtx_insn *.
1526
1527 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1528
1529 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1530 "note_list" from rtx to rtx_insn *.
1531 (BB_NOTE_LIST): Replace this function and...
1532 (SET_BB_NOTE_LIST): ...this function with...
1533 (BB_NOTE_LIST): ...the former macro implementation.
1534
1535 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1536 local "from_start" from rtx to rtx_insn *. Strengthen param
1537 "to_endp" from rtx * to rtx_insn **.
1538
1539 * haifa-sched.c (concat_note_lists): Likewise.
1540 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1541 BB_NOTE_LIST.
1542 (sel_restore_notes): Likewise.
1543 (move_bb_info): Likewise.
1544 (BB_NOTE_LIST): Delete this function.
1545 (SET_BB_NOTE_LIST): Delete this function.
1546 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1547 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1548
1549 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1550
1551 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1552 from rtx * to rtx_insn **.
1553 (reorder2): Likewise.
1554 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1555 from rtx to rtx_insn *.
1556
1557 * doc/tm.texi: Update mechanically for above change to target.def.
1558
1559 * sched-int.h (note_list): Strengthen this variable from rtx to
1560 rtx_insn *.
1561 (remove_notes): Likewise for both params.
1562 (restore_other_notes): Likewise for return type and first param.
1563 (struct ready_list): Strengthen field "vec" from rtx * to
1564 rtx_insn **.
1565 (struct dep_replacement): Strenghten field "insn" from rtx to
1566 rtx_insn *.
1567 (struct deps_desc): Likewise for fields "last_debug_insn",
1568 "last_args_size".
1569 (struct haifa_sched_info): Likewise for callback field
1570 "can_schedule_ready_p"'s param, for first param of "new_ready"
1571 callback field, for both params of "rank" callback field, for
1572 first field of "print_insn" callback field (with a const), for
1573 both params of "contributes_to_priority" callback, for param
1574 of "insn_finishes_block_p" callback, for fields "prev_head",
1575 "next_tail", "head", "tail", for first param of "add_remove_insn"
1576 callback, for first param of "begin_schedule_ready" callback, for
1577 both params of "begin_move_insn" callback, and for second param
1578 of "advance_target_bb" callback.
1579 (add_dependence): Likewise for params 1 and 2.
1580 (sched_analyze): Likewise for params 2 and 3.
1581 (deps_analyze_insn): Likewise for param 2.
1582 (ready_element): Likewise for return type.
1583 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1584 (try_ready): Strenghten param from rtx to rtx_insn *.
1585 (sched_emit_insn): Likewise for return type.
1586 (record_delay_slot_pair): Likewise for params 1 and 2.
1587 (add_delay_dependencies): Likewise for param.
1588 (contributes_to_priority): Likewise for both params.
1589 (find_modifiable_mems): Likewise.
1590
1591 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1592 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1593 "first_older_only_insn" from rtx to rtx_insn *.
1594 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1595 rtx_insn **.
1596
1597 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1598 "last_scheduled_iter0" from rtx to rtx_insn *.
1599 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1600 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1601 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1602 "insn" from rtx to rtx_insn *.
1603 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1604 rtx_insn **.
1605 (c6x_sched_reorder2): Strengthen param "ready" and locals
1606 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1607 "insn" from rtx to rtx_insn *.
1608 (c6x_variable_issue): Add a checked cast when assigning from insn
1609 to ss.last_scheduled_iter0.
1610 (split_delayed_branch): Strengthen param "insn" and local "i1"
1611 from rtx to rtx_insn *.
1612 (split_delayed_nonbranch): Likewise.
1613 (undo_split_delayed_nonbranch): Likewise for local "insn".
1614 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1615 "entry_after", "end_packet", "head_insn", "tail_insn",
1616 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1617 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1618 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1619 but add a checked cast on loop->start_label. Consolidate calls to
1620 avoid assigning result of gen_spkernel to "insn", now an
1621 rtx_insn *.
1622
1623 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1624 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1625 rtx to rtx_insn *.
1626 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1627 rtx_insn **. Strengthen locals "top", "next" from rtx to
1628 rtx_insn *.
1629 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1630 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1631 (add_parameter_dependencies): Strengthen params "call", "head" and
1632 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1633 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1634 (add_dependee_for_func_arg): Likewise for param "arg" and local
1635 "insn".
1636 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1637 "tail" and locals "insn", "first_arg".
1638
1639 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1640 for params "head", "tail" and locals "insn", "next", "next_tail".
1641 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1642 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1643 "insn", "lowest", "highest" from rtx to rtx_insn *.
1644 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1645 rtx_insn **.
1646 (ia64_sched_reorder2): Likewise.
1647
1648 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1649 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1650 from rtx * to rtx_insn **.
1651 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1652 rtx_insn **.
1653 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1654 rtx_insn *.
1655 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1656 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1657 to rtx_insn *.
1658
1659 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1660 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1661 to rtx_insn *.
1662 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1663 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1664 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1665 rtx_insn **.
1666 (vr4130_reorder): Likewise.
1667 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1668 rtx to rtx_insn *.
1669 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1670 rtx_insn **.
1671 (mips_sched_reorder): Likewise.
1672 (mips_sched_reorder2): Likewise.
1673
1674 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1675
1676 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1677 Strengthen local "tmp" from rtx to rtx_insn *.
1678 (rs6000_sched_reorder2): Likewise.
1679
1680 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1681 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1682 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1683 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1684
1685 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1686 "tmp2" from rtx to rtx_insn *.
1687 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1688 Strengthen local "insn" from rtx to rtx_insn *.
1689 (ready_reorder): Strengthen param "ready" from rtx * to
1690 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1691 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1692 (sh_reorder2): Likewise.
1693
1694 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1695 local "insn" from rtx to rtx_insn *.
1696
1697 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1698 rtx_insn *.
1699 (scheduled_insns): Strengthen this variable from vec<rtx> to
1700 vec<rtx_insn *>.
1701 (set_modulo_params): Likewise for locals "i1", "i2".
1702 (record_delay_slot_pair): Likewise for params "i1", "i2".
1703 (add_delay_dependencies): Likewise for param "insn".
1704 (cond_clobbered_p): Likewise.
1705 (recompute_todo_spec): Likewise for local "prev".
1706 (last_scheduled_insn): Likewise for this variable.
1707 (nonscheduled_insns_begin): Likewise.
1708 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1709 rtx_insn **.
1710 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1711 rtx_insn *.
1712 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1713 Strengthen local "insn" from rtx to rtx_insn *.
1714 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1715 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1716 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1717 (ready_remove_first): Likewise for return type and local "t".
1718 (ready_element): Likewise for return type.
1719 (ready_remove): Likewise for return type and local "t".
1720 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1721 (check_clobbered_conditions): Strengthen local "x" from rtx to
1722 rtx_insn *, adding a checked cast.
1723 (schedule_insn): Likewise for param "insn".
1724 (remove_notes): Likewise for params "head", "tail" and locals
1725 "next_tail", "insn", "next".
1726 (struct haifa_saved_data): Likewise for fields
1727 "last_scheduled_insn", "nonscheduled_insns_begin".
1728 (save_backtrack_point): Update for change to field "vec" of
1729 struct ready_list.
1730 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1731 rtx_insn **.
1732 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1733 from rtx to rtx_insn *
1734 (resolve_dependencies): Strengthen param "insn" from rtx to
1735 rtx_insn *
1736 (restore_other_notes): Likewise for return type, for param "head"
1737 and local "note_head".
1738 (undo_all_replacements): Likewise for local "insn".
1739 (first_nonscheduled_insn): Likewise for return type and local "insn".
1740 (queue_to_ready): Likewise for local "insn", adding checked casts.
1741 (early_queue_to_ready): Likewise for local "insn".
1742 (debug_ready_list_1): Strengthen local "p" from rtx * to
1743 rtx_insn **.
1744 (move_insn): Strengthen param "insn" and local "note" from rtx to
1745 rtx_insn *
1746 (insn_finishes_cycle_p): Likewise for param "insn".
1747 (max_issue): Likewise for local "insn".
1748 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1749 to rtx_insn **.
1750 (commit_schedule): Strengthen param "prev_head" and local "insn"
1751 from rtx to rtx_insn *
1752 (prune_ready_list): Likewise for local "insn".
1753 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1754 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1755 (set_priorities): Likewise for local "prev_head".
1756 (try_ready): Likewise for param "next".
1757 (fix_tick_ready): Likewise.
1758 (change_queue_index): Likewise.
1759 (sched_extend_ready_list): Update for change to field "vec" of
1760 struct ready_list.
1761 (generate_recovery_code): Strengthen param "insn" from rtx to
1762 rtx_insn *.
1763 (begin_speculative_block): Likewise.
1764 (create_check_block_twin): Likewise for param "insn" and locals
1765 "label", "check", "twin". Introduce local "check_pat" to avoid
1766 "check" being used as a plain rtx before being used as an insn.
1767 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1768 extracting elements from ready_list.
1769 (sched_remove_insn): Strengthen param "insn" from rtx to
1770 rtx_insn *.
1771 (sched_emit_insn): Likewise for return type.
1772 (ready_remove_first_dispatch): Likewise for return type and local
1773 "insn".
1774
1775 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1776
1777 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1778 const rtx_insn *.
1779
1780 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1781 from rtx to rtx_insn *.
1782 (add_dependence_list): Likewise for param "insn". Add a checked
1783 cast.
1784 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1785 to rtx_insn *. Strengthen param "list_p" from rtx * to
1786 rtx_insn **.
1787 (chain_to_prev_insn): Strengthen param "insn" and locals
1788 "prec_nonnote", "i" from rtx to rtx_insn *.
1789 (flush_pending_lists): Likewise for param "insn".
1790 (cur_insn): Likewise for this variable.
1791 (haifa_start_insn): Add a checked cast.
1792 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1793 (sched_analyze_reg): Likewise for param "insn".
1794 (sched_analyze_1): Likewise.
1795 (sched_analyze_2): Likewise. Add checked casts.
1796 (sched_analyze_insn): Likewise. Also for local "prev".
1797 (deps_analyze_insn): Likewise for param "insn".
1798 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1799 (add_dependence_1): Likewise for params "insn", "elem".
1800 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1801 (parse_add_or_inc): Likewise for param "insn".
1802 (find_inc): Likewise for local "inc_cand".
1803 (find_modifiable_mems): Likewise for params "head", "tail" and
1804 locals "insn", "next_tail".
1805
1806 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1807 (begin_schedule_ready): Likewise for param "insn".
1808 (begin_move_insn): Likewise for params "insn" and "last".
1809 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1810 const rtx_insn *.
1811 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1812 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1813 (ebb_add_remove_insn): Likewise for param "insn".
1814 (advance_target_bb): Likewise.
1815
1816 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1817 "insn".
1818 (check_live): Likewise for param "insn".
1819 (init_ready_list): Likewise for local "insn".
1820 (can_schedule_ready_p): Likewise for param "insn".
1821 (begin_schedule_ready): Likewise.
1822 (new_ready): Likewise for param "next".
1823 (rgn_print_insn): Likewise for param "insn".
1824 (rgn_rank): Likewise for params "insn1", "insn2".
1825 (contributes_to_priority): Likewise for params "next", "insn".
1826 (rgn_insn_finishes_block_p): Likewise for param "insn".
1827 (add_branch_dependences): Likewise for params "head", "tail" and
1828 locals "insn", "last".
1829 (rgn_add_remove_insn): Likewise for param "insn".
1830 (advance_target_bb): Likewise.
1831
1832 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1833 const_rtx to const rtx_insn *.
1834
1835 * sel-sched-dump.h (sel_print_insn): Likewise.
1836
1837 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1838 (deps_init_id): Likewise.
1839
1840 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1841 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1842 rtx_insn **.
1843
1844 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1845
1846 * output.h (final_start_function): Strengthen param 1 from rtx to
1847 rtx_insn *.
1848
1849 * final.c (final_start_function): Likewise, renaming back from
1850 "uncast_first" to "first", and dropping the checked cast from rtx
1851 to rtx_insn *.
1852
1853 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1854
1855 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1856 * final.c (final): Likewise. Rename param back from
1857 "uncast_first" to "first" and eliminate the checked cast from rtx
1858 to rtx_insn *.
1859
1860 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1861
1862 * output.h (shorten_branches): Strengthen param from rtx to
1863 rtx_insn *.
1864
1865 * final.c (shorten_branches): Likewise, renaming param back from
1866 "uncast_first" to "first", and dropping the checked cast from rtx
1867 to rtx_insn *.
1868
1869 * genattr.c (gen_attr): Likewise when writing out the prototype of
1870 shorten_branches.
1871
1872 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1873
1874 * sched-int.h (struct haifa_sched_info): Strengthen fields
1875 "prev_head" and "next_tail" from rtx to rtx_insn *.
1876
1877 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1878
1879 * rtl.h (rtx_jump_table_data::get_labels): New method.
1880 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1881 with use of the new rtx_jump_table_data::get_labels method.
1882 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1883 to rtx_jump_table_data *. Simplify by using get_labels method.
1884 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1885 a dyn_cast, introducing local "table", using it to replace
1886 label-lookup logic with a get_labels method call.
1887 (patch_jump_insn): Simplify using get_labels method.
1888 * dwarf2cfi.c (create_trace_edges): Likewise.
1889 * rtlanal.c (label_is_jump_target_p): Likewise.
1890
1891 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1892
1893 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1894 to rtx_insn *.
1895
1896 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1897 (unshare_all_rtl_again): Likewise, also for local "p".
1898
1899 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1900
1901 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1902 to rtx_insn *.
1903 * cfgrtl.c (delete_insn_and_edges): Likewise.
1904
1905 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1906
1907 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1908 from rtx to rtx_insn *.
1909
1910 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1911
1912 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1913
1914 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1915 locals "returnjump", "epilogue_end", "insn", "next".
1916
1917 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1918 "returnjump" from rtx * to rtx_insn **.
1919 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1920
1921 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1922
1923 * basic-block.h (struct edge_def). Strengthen "r" within
1924 union edge_def_insns from rtx to rtx_insn *.
1925
1926 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1927 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1928 rtx_insn *.
1929 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1930 from rtx to rtx_insn *.
1931 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1932 rtx_insn *.
1933 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1934 (reg_used_on_edge): Likewise.
1935 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1936 (gt_pch_nx): New overload for rtx_insn *&.
1937 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1938 from rtx to rtx_insn *.
1939
1940 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1941
1942 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1943 from rtx to rtx_insn *.
1944 (BB_FOOTER): Replace function with access macro.
1945 (SET_BB_FOOTER): Delete.
1946
1947 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1948 with BB_FOOTER.
1949 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1950 (emit_barrier_after_bb): Likewise.
1951 (record_effective_endpoints): Likewise.
1952 (relink_block_chain): Likewise.
1953 (fixup_fallthru_exit_predecessor): Likewise.
1954 (cfg_layout_duplicate_bb): Likewise.
1955 (cfg_layout_split_block): Likewise.
1956 (cfg_layout_delete_block): Likewise.
1957 (cfg_layout_merge_blocks): Likewise.
1958 (BB_FOOTER): Delete function.
1959 (SET_BB_FOOTER): Delete function.
1960 * combine.c (update_cfg_for_uncondjump): Replace uses of
1961 SET_BB_FOOTER with BB_FOOTER.
1962
1963 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1964
1965 * except.h (struct eh_landing_pad_d): Strengthen field
1966 "landing_pad" from rtx to rtx_code_label *.
1967
1968 * except.c (sjlj_emit_dispatch_table): Likewise for param
1969 "dispatch_label"
1970 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1971
1972 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1973
1974 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1975 first param from rtx to rtx_insn *.
1976 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1977 field "set_frame_ptr_insn".
1978 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1979 "csend" from rtx to rtx_code_label *.
1980 (xtensa_expand_atomic): Likewise for local "csloop".
1981 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1982 rtx_insn *.
1983 (xtensa_call_tls_desc): Likewise for return type and locals
1984 "call_insn", "insns".
1985 (xtensa_legitimize_tls_address): Likewise for local "insns".
1986 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1987
1988 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1989
1990 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1991 first param from rtx to rtx_insn *.
1992 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1993 "insn".
1994
1995 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1996
1997 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1998 Strengthen param 1 from rtx to rtx_insn *.
1999 (tilepro_output_cbranch): Likewise.
2000 (tilepro_adjust_insn_length): Likewise.
2001 (tilepro_final_prescan_insn): Likewise for sole param.
2002
2003 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
2004 Likewise for local "last".
2005 (cbranch_predicted_p): Likewise for param "insn".
2006 (tilepro_output_simple_cbranch_with_opcode): Likewise.
2007 (tilepro_output_cbranch_with_opcode): Likewise.
2008 (tilepro_output_cbranch): Likewise.
2009 (frame_emit_load): Likewise for return type and locals "seq",
2010 "insn".
2011 (emit_sp_adjust): Likewise for return type and local "insn".
2012 (tilepro_expand_epilogue): Likewise for locals "last_insn",
2013 "insn".
2014 (tilepro_adjust_insn_length): Likewise for param "insn".
2015 (next_insn_to_bundle): Likewise for return type and params
2016 "r", "end".
2017 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2018 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2019 local "new_insns".
2020 (match_addli_pcrel): Likewise for param "insn".
2021 (replace_addli_pcrel): Likewise.
2022 (match_auli_pcrel): Likewise.
2023 (replace_auli_pcrel): Likewise.
2024 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2025 "next_insn".
2026 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2027 "queue", "next_queue", "prev".
2028 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2029 (tilepro_final_prescan_insn): Likewise for param "insn".
2030
2031 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2032
2033 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2034 Strengthen param 1 from rtx to rtx_insn *.
2035 (tilegx_output_cbranch): Likewise.
2036 (tilegx_adjust_insn_length): Likewise.
2037 (tilegx_final_prescan_insn): Likewise for sole param.
2038
2039 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2040 or local "last".
2041 (cbranch_predicted_p): Likewise for param "insn".
2042 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2043 (tilegx_output_cbranch_with_opcode): Likewise.
2044 (tilegx_output_cbranch): Likewise.
2045 (frame_emit_load): Likewise for return type.
2046 (set_frame_related_p): Likewise for locals "seq", "insn".
2047 (emit_sp_adjust): Likewise for return type, and for local "insn".
2048 Introduce local "pat" for use in place of "insn" where the latter
2049 isn't an instruction.
2050 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2051 from rtx to rtx_insn *.
2052 (tilegx_adjust_insn_length): Likewise for param "insn".
2053 (next_insn_to_bundle): Likewise for return type and params "r" and
2054 "end".
2055 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2056 "end".
2057 (replace_insns): Likewise for params "old_insn", "new_insns".
2058 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2059 "new_insns".
2060 (replace_mov_pcrel_step2): Likewise.
2061 (replace_mov_pcrel_step3): Likewise.
2062 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2063 "next_insn".
2064 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2065 "queue", "next_queue", "prev".
2066 (tilegx_output_mi_thunk): Likewise for local "insn".
2067 (tilegx_final_prescan_insn): Likewise for param "insn".
2068
2069 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2070
2071 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2072 rtx to rtx_insn *.
2073 (frame_emit_load): Likewise.
2074 (frame_emit_add_imm): Likewise, also for local "insn".
2075 (spu_expand_prologue): Likewise for local "insn".
2076 (struct spu_bb_info): Likewise for field "prop_jump".
2077 (emit_nop_for_insn): Likewise for param "insn" and local
2078 "new_insn".
2079 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2080 "hbr_insn".
2081 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2082 locals "hint", "insn".
2083 (get_branch_target): Likewise for param "branch".
2084 (insn_clobbers_hbr): Likewise for param "insn".
2085 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2086 locals "insn", "before_4", "before_16".
2087 (insert_hbrp): Likewise for local "insn".
2088 (spu_machine_dependent_reorg): Likewise for locals "branch",
2089 "insn", "next", "bbend".
2090 (uses_ls_unit): Likewise for param "insn".
2091 (get_pipe): Likewise.
2092 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2093 introducing a checked cast.
2094 (spu_sched_adjust_cost): Likewise for params "insn" and
2095 "dep_insn".
2096 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2097 (spu_sms_res_mii): Likewise.
2098
2099 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2100
2101 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2102 from rtx to rtx_insn *.
2103 (output_cbranch): Likewise for param 6.
2104 (output_return): Likewise for param 1.
2105 (output_sibcall): Likewise.
2106 (output_v8plus_shift): Likewise.
2107 (output_v8plus_mult): Likewise.
2108 (output_v9branch): Likewise for param 7.
2109 (output_cbcond): Likewise for param 3.
2110
2111 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2112 for local "insn".
2113 (sparc_legitimize_pic_address): Likewise.
2114 (sparc_emit_call_insn): Likewise.
2115 (emit_save_or_restore_regs): Likewise.
2116 (emit_window_save): Likewise for return type and local "insn".
2117 (sparc_expand_prologue): Likewise for local "insn".
2118 (sparc_flat_expand_prologue): Likewise.
2119 (output_return): Likewise for param "insn".
2120 (output_sibcall): Likewise for param "insn" and local "delay".
2121 (output_ubranch): Likewise for param "insn".
2122 (output_cbranch): Likewise.
2123 (output_cbcond): Likewise.
2124 (output_v9branch): Likewise.
2125 (output_v8plus_shift): Likewise.
2126 (sparc_output_mi_thunk): Likewise for local "insn".
2127 (get_some_local_dynamic_name): Likewise.
2128 (output_v8plus_mult): Likewise for param "insn".
2129
2130 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2131
2132 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2133 from rtx to rtx_insn *.
2134 (output_branchy_insn): Likewise for param 3.
2135 (output_far_jump): Likewise for param 1.
2136 (final_prescan_insn): Likewise.
2137 (sh_insn_length_adjustment): Likewise for sole param.
2138
2139 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2140 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2141 rtx_code_label *.
2142 (sh_emit_compare_and_set): Likewise for local "lab".
2143 (output_far_jump): Strengthen param "insn" and local "prev" from
2144 rtx to rtx_insn *.
2145 (output_branchy_insn): Likewise for param "insn" and local
2146 "next_insn".
2147 (output_ieee_ccmpeq): Likewise for param "insn".
2148 (struct label_ref_list_d): Strengthen field "label" from rtx to
2149 rtx_code_label *.
2150 (pool_node): Likewise.
2151 (pool_window_label): Likewise for this global.
2152 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2153 (dump_table): Strengthen params "start", "barrier" and local
2154 "scan" from rtx to rtx_insn *.
2155 (broken_move): Likewise for param "insn".
2156 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2157 Strengthen param "first_mova" from rtx * to rtx_insn **.
2158 (mova_p): Likewise for param "insn".
2159 (fixup_mova): Likewise for param "mova".
2160 (find_barrier): Likewise for return type, params "mova" and
2161 "from", and locals "barrier_before_mova", "found_barrier",
2162 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2163 "label" from rtx to rtx_code_label *.
2164 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2165 rtx to rtx_insn *.
2166 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2167 (split_branches): Likewise for param "first" and local "insn".
2168 (final_prescan_insn): Likewise for param "insn".
2169 (sequence_insn_p): Likewise for locals "prev", "next".
2170 (sh_insn_length_adjustment): Likewise for param "insn".
2171 (sh_can_redirect_branch): Likewise for local "insn".
2172 (find_r0_life_regions): Likewise for locals "end", "insn".
2173 (sh_output_mi_thunk): Likewise for local "insns".
2174
2175 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2176
2177 * config/score/score.c (score_output_mi_thunk): Strengthen local
2178 "insn" from rtx to rtx_insn *.
2179 (score_prologue): Likewise.
2180
2181 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2182
2183 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2184 1 from rtx to rtx_insn *.
2185 (s390_emit_jump): Likewise for return type.
2186 (s390_emit_call): Likewise.
2187 (s390_load_got): Likewise.
2188
2189 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2190 variable.
2191 (s390_match_ccmode): Likewise for param "insn".
2192 (s390_emit_jump): Likewise for return type.
2193 (s390_split_branches): Likewise for local "label".
2194 (struct constant): Strengthen field "label" from rtx to
2195 rtx_code_label *.
2196 (struct constant_pool): Likewise for field "label". Strengthen
2197 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2198 rtx_insn *.
2199 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2200 insns.
2201 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2202 (s390_end_pool): Likewise.
2203 (s390_dump_pool): Likewise for local "insn".
2204 (s390_mainpool_start): Likewise.
2205 (s390_chunkify_start): Likewise.
2206 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2207 with insns. Strengthen locals "label", "jump", "barrier", "next",
2208 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2209 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2210 rtx_insn *.
2211 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2212 "jump", "label", "next_insn".
2213 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2214 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2215 "tbegin_insn".
2216 (s390_load_got): Likewise for return type and local "insns".
2217 (s390_save_gprs_to_fprs): Likewise for local "insn".
2218 (s390_restore_gprs_from_fprs): Likewise.
2219 (pass_s390_early_mach::execute): Likewise.
2220 (s390_emit_prologue): Likewise for local "insns".
2221 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2222 rtx_code_label *.
2223 (s390_emit_call): Strengthen return type and local "insn" from
2224 rtx to rtx_insn *.
2225 (s390_emit_tpf_eh_return): Likewise for local "insn".
2226 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2227 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2228 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2229 local "cur_insn".
2230 (s390_non_addr_reg_read_p): Likewise for param "insn".
2231 (find_cond_jump): Likewise for return type and param "insn".
2232 (s390_swap_cmp): Likewise for param "insn".
2233 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2234 "prev_insn", "next_insn".
2235 (s390_reorg): Likewise for locals "insn", "target".
2236 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2237 (s390_sched_variable_issue): For now, rename param "insn" to
2238 "uncast_insn", introducing a checked cast.
2239 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2240 insn.
2241 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2242 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2243
2244 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2245
2246 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2247 param from rtx to rtx_insn *.
2248 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2249
2250 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2251
2252 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2253 4 from rtx to rtx_insn *.
2254 (rs6000_final_prescan_insn): Likewise for first param.
2255 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2256 local "insn".
2257 (rs6000_get_some_local_dynamic_name): Likewise.
2258 (output_cbranch): Likewise for param "insn".
2259 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2260 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2261 (rs6000_emit_allocate_stack): Likewise for local "insn".
2262 (load_cr_save): Likewise.
2263 (restore_saved_cr): Likewise.
2264 (restore_saved_lr): Likewise.
2265 (emit_cfa_restores): Likewise.
2266 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2267 "deleted_debug_label".
2268 (rs6000_output_mi_thunk): Likewise for local "insn".
2269 (rs6000_final_prescan_insn): Likewise for param "insn".
2270
2271 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2272
2273 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2274 Strengthen param "insn" from rtx to rtx_insn *.
2275 * config/picochip/picochip.c (picochip_current_prescan_insn):
2276 Likewise for this variable.
2277 (picochip_final_prescan_insn): Likewise for param "insn".
2278
2279 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2280
2281 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2282 from rtx to rtx_insn *.
2283 (pa_output_indirect_call): Likewise.
2284 (pa_adjust_insn_length): Likewise.
2285 (pa_attr_length_millicode_call): Likewise.
2286 (pa_attr_length_call): Likewise.
2287 (pa_attr_length_indirect_call): Likewise.
2288
2289 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2290 "insn".
2291 (pa_attr_length_millicode_call): Likewise.
2292 (pa_attr_length_call): Likewise.
2293 (pa_output_call): Likewise.
2294 (pa_attr_length_indirect_call): Likewise.
2295 (pa_output_indirect_call): Likewise.
2296
2297 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2298
2299 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2300 Strengthen first param from rtx to rtx_insn *.
2301 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2302 param "insn".
2303
2304 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2305
2306 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2307 type from rtx to rtx_insn *.
2308 (mips_expand_call): Likewise.
2309 (mips_adjust_insn_length): Likewise for first param.
2310 (mips_output_conditional_branch): Likewise.
2311 (mips_output_order_conditional_branch): Likewise.
2312 (mips_final_prescan_insn): Likewise.
2313
2314 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2315 rtx_insn * for the SEQUENCE case.
2316 (SEQ_END): Likewise.
2317 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2318 (mips_emit_call_insn): Likewise, also for local "insn".
2319 (mips16_gp_pseudo_reg): Likewise for local "scan".
2320 (mips16_build_call_stub): Likewise for return type and for local
2321 "insn". Introduce a new local "pattern" so that "insn" can indeed
2322 be an insn.
2323 (mips_expand_call): Strengthen return type and local "insn" from
2324 rtx to rtx_insn *.
2325 (mips_block_move_loop): Strengthen local "label" from rtx to
2326 rtx_code_label *.
2327 (mips_expand_synci_loop): Likewise for locals "label",
2328 "end_label".
2329 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2330 rtx_insn *.
2331 (mips16e_collect_argument_saves): Likewise for locals "insn",
2332 "next".
2333 (mips_find_gp_ref): Likewise for param of callback for "pred"
2334 param, and for local "insn".
2335 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2336 (mips_insn_has_flexible_gp_ref_p): Likewise.
2337 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2338 local "insn".
2339 (mips_epilogue_set_cfa): Likewise for local "insn".
2340 (mips_expand_epilogue): Likewise.
2341 (mips_adjust_insn_length): Likewise for param "insn".
2342 (mips_output_conditional_branch): Likewise.
2343 (mips_output_order_conditional_branch): Likewise.
2344 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2345 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2346 "falu2_turn_enabled_insn".
2347 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2348 "done_label" from rtx to rtx_code_label *.
2349 (struct mips16_constant): Likewise for field "label".
2350 (mips16_add_constant): Likewise for return type.
2351 (mips16_emit_constants_1): Strengthen return type and param "insn"
2352 from rtx to rtx_insn *.
2353 (mips16_emit_constants): Likewise for param "insn".
2354 (mips16_insn_length): Likewise.
2355 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2356 to rtx_code_label *.
2357 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2358 from rtx to rtx_insn *.
2359 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2360 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2361 (r10k_simplify_address): Strengthen param "insn" and local
2362 "def_insn" from rtx to rtx_insn *.
2363 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2364 rtx_insn *.
2365 (r10k_needs_protection_p_1): Update target type of cast of data
2366 from to rtx to rtx_insn *.
2367 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2368 rtx * to rtx_insn **.
2369 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2370 rtx_insn *.
2371 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2372 (mips_call_expr_from_insn): Likewise for param "insn".
2373 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2374 (mips_find_pic_call_symbol): Likewise for param "insn".
2375 (mips_annotate_pic_calls): Likewise for local "insn".
2376 (mips_sim_insn): Likewise for this variable.
2377 (struct mips_sim): Likewise for field "insn" within elements of
2378 last_set array.
2379 (mips_sim_wait_reg): Likewise for param "insn".
2380 (mips_sim_wait_regs): Likewise.
2381 (mips_sim_wait_units): Likewise.
2382 (mips_sim_wait_insn): Likewise.
2383 (mips_sim_issue_insn): Likewise.
2384 (mips_sim_finish_insn): Likewise.
2385 (mips_seq_time): Likewise for param "seq" and local "insn".
2386 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2387 locals "first", "second".
2388 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2389 "last", "last2", "next".
2390 (mips_avoid_hazard): Likewise for params "after", "insn".
2391 (mips_reorg_process_insns): Likewise for locals "insn",
2392 "last_insn", "subinsn", "next_insn".
2393 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2394 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2395 "jump_sequence".
2396 (mips_output_mi_thunk): Likewise for local "insn".
2397 (mips_final_prescan_insn): Likewise for param "insn".
2398
2399 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2400
2401 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2402 Strengthen return type and local "insns" from rtx to rtx_insn *.
2403 (microblaze_legitimize_tls_address): Likewise for local "insns".
2404 (microblaze_block_move_loop): Strengthen local "label" from rtx
2405 to rtx_code_label *.
2406 (microblaze_expand_prologue): Strengthen two locals named "insn"
2407 from rtx to rtx_insn *.
2408 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2409 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2410 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2411 to rtx_code_label *.
2412
2413 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2414
2415 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2416 param from rtx to rtx_insn *.
2417 (mep_reuse_lo): Likewise for third param.
2418 (mep_use_post_modify_p): Likewise for first param.
2419 (mep_core_address_length): Likewise.
2420 (mep_cop_address_length): Likewise.
2421 (mep_final_prescan_insn): Likewise.
2422 (mep_store_data_bypass_p): Likewise for both params.
2423 (mep_mul_hilo_bypass_p): Likewise.
2424 (mep_ipipe_ldc_p): Likewise for param.
2425
2426 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2427 (mep_rewrite_mult): Likewise.
2428 (mep_rewrite_mulsi3): Likewise.
2429 (mep_rewrite_maddsi3): Likewise.
2430 (mep_reuse_lo_p_1): Likewise.
2431 (mep_reuse_lo_p): Likewise.
2432 (mep_frame_expr): Likewise.
2433 (mep_make_parallel): Likewise for both params.
2434 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2435 local "insn".
2436 (mep_use_post_modify_p): Likewise for param "insn".
2437 (mep_core_address_length): Likewise.
2438 (mep_cop_address_length): Likewise.
2439 (mep_reg_set_in_function): Likewise for local "insn".
2440 (mep_asm_without_operands_p): Likewise.
2441 (F): Likewise for return type and param "x".
2442 (add_constant): Likewise for local "insn".
2443 (maybe_dead_move): Likewise for return type and local "insn".
2444 (mep_expand_prologue): Likewise for local "insn".
2445 (mep_final_prescan_insn): Likewise for param "insn".
2446 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2447 "next", "follow", "x".
2448 (mep_insert_repeat_label_last): Likewise for return type, param
2449 "last_insn", and locals "next", "prev". Strengthen param "label"
2450 from rtx to rtx_code_label *.
2451 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2452 rtx_insn *.
2453 (struct mep_doloop_end): Likewise for fields "insn" and
2454 "fallthrough".
2455 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2456 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2457 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2458 rtx_insn *.
2459 (mep_invert_branch): Likewise for params "insn" and "after".
2460 (mep_reorg_erepeat): Likewise for param "insns" and locals
2461 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2462 "l" from rtx to rtx_code_label *.
2463 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2464 from rtx to rtx_insn *.
2465 (mep_reorg_addcombine): Likewise for param "insns" and locals
2466 "i", "n".
2467 (add_sp_insn_p): Likewise for param "insn".
2468 (mep_reorg_noframe): Likewise for param "insns" and locals
2469 "start_frame_insn", "end_frame_insn", "next".
2470 (mep_reorg): Likewise for local "insns".
2471 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2472 cast.
2473 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2474 (mep_mul_hilo_bypass_p): Likewise.
2475 (mep_ipipe_ldc_p): Likewise for param "insn".
2476 (mep_make_bundle): Likewise for return type, param "cop" and local
2477 "insn", splitting out the latter into a new local "seq" for when it
2478 is a SEQUENCE rather than an insn.
2479 (core_insn_p): Likewise for param "insn".
2480 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2481 "last", "first", "note", "prev", "core_insn".
2482
2483 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2484
2485 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2486 rtx to rtx_insn *.
2487 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2488 (m68k_final_prescan_insn): Likewise for first param.
2489
2490 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2491 (m68k_set_frame_related): Likewise for param "insn".
2492 (output_btst): Likewise for param "insn".
2493 (m68k_final_prescan_insn): Likewise.
2494 (m68k_move_to_reg): Likewise for local "insn".
2495 (m68k_call_tls_get_addr): Likewise for local "insns".
2496 (m68k_call_m68k_read_tp): Likewise.
2497 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2498 (m68k_output_mi_thunk): Likewise for local "insn".
2499
2500 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2501
2502 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2503 first param from rtx to rtx_insn *.
2504 (iq2000_adjust_insn_length): Likewise.
2505 (iq2000_output_conditional_branch): Likewise.
2506 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2507 "insn" and local "nop_insn".
2508 (iq2000_annotate_frame_insn): Likewise for param "insn".
2509 (iq2000_expand_prologue): Likewise for both locals "insn".
2510 (iq2000_adjust_insn_length): Likewise for param "insn".
2511 (iq2000_output_conditional_branch): Likewise.
2512
2513 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2514
2515 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2516 "insns" from rtx to rtx_insn *.
2517 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2518 (struct spill_fill_data): Likewise for field "init_after" and for
2519 elements of array field "prev_insn".
2520 (spill_restore_mem): Likewise for locals "insn", "first".
2521 (do_spill): Likewise for local "insn".
2522 (do_restore): Likewise.
2523 (ia64_expand_prologue): Likewise.
2524 (ia64_expand_epilogue): Likewise.
2525 (emit_insn_group_barriers): Likewise for locals "insn",
2526 "last_label".
2527 (emit_all_insn_group_barriers): Likewise for locals "insn",
2528 "last".
2529 (dfa_stop_insn): Likewise for this global.
2530 (dfa_pre_cycle_insn): Likewise.
2531 (ia64_nop): Likewise.
2532 (final_emit_insn_group_barriers): Likewise for locals "insn",
2533 "last".
2534 (emit_predicate_relation_info): Likewise for locals "head", "n",
2535 "insn", "b", "a".
2536 (ia64_reorg): Likewise for local "insn".
2537 (ia64_output_mi_thunk): Likewise.
2538 (expand_vec_perm_interleave_2): Likewise for local "seq".
2539
2540 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2541
2542 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2543 param 1 "insn" from rtx to rtx_insn *.
2544 (ix86_use_lea_for_mov): Likewise.
2545 (ix86_avoid_lea_for_addr): Likewise.
2546 (ix86_split_lea_for_addr): Likewise.
2547 (ix86_lea_for_add_ok): Likewise.
2548 (ix86_output_call_insn): Likewise.
2549
2550 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2551 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2552 (ix86_output_function_epilogue): Likewise for locals "insn",
2553 "deleted_debug_label".
2554 (legitimize_tls_address): Likewise for local "insn".
2555 (get_some_local_dynamic_name): Likewise.
2556 (increase_distance): Likewise for params "prev", "next".
2557 (distance_non_agu_define_in_bb): Likewise for params "insn",
2558 "start" and locals "prev", "next".
2559 (distance_non_agu_define): Likewise for param "insn".
2560 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2561 locals "next", "prev".
2562 (distance_agu_use): Likewise for param "insn".
2563 (ix86_lea_outperforms): Likewise.
2564 (ix86_ok_to_clobber_flags): Likewise.
2565 (ix86_avoid_lea_for_add): Likewise.
2566 (ix86_use_lea_for_mov): Likewise.
2567 (ix86_avoid_lea_for_addr): Likewise.
2568 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2569 (ix86_split_lea_for_addr): Likewise for param "insn".
2570 (ix86_lea_for_add_ok): Likewise for param "insn".
2571 (ix86_expand_carry_flag_compare): Likewise for local
2572 "compare_seq".
2573 (ix86_expand_int_movcc): Likewise.
2574 (ix86_output_call_insn): Likewise for param "insn".
2575 (ix86_output_call_insn): Likewise for local "i".
2576 (x86_output_mi_thunk): Introduce local "insn", using it in place
2577 of "tmp" when dealing with insns.
2578 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2579 "start".
2580 (ix86_pad_returns): Likewise for locals "ret", "prev".
2581 (ix86_count_insn_bb): Likewise for local "insn".
2582 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2583 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2584 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2585 (expand_vec_perm_interleave2): Likewise for local "seq".
2586 (expand_vec_perm_vperm2f128_vblend): Likewise.
2587 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2588 call to for_each_rtx with for_each_rtx_in_insn.
2589
2590 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2591
2592 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2593 "label" from rtx to rtx_code_label *.
2594 (ix86_expand_prologue): Likewise.
2595 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2596 "varargs_label".
2597 (ix86_split_idivmod): Likewise for locals "end_label" and
2598 "qimode_label".
2599 (ix86_expand_branch): Likewise for local "label2".
2600 (ix86_expand_aligntest): Likewise for return type and local "label".
2601 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2602 "top_label".
2603 (expand_movmem_epilogue): Likewise for the various locals named
2604 "label".
2605 (expand_setmem_epilogue): Likewise.
2606 (expand_small_movmem_or_setmem): Likewise for local "label".
2607 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2608 Strengthen param "done_label" from rtx * to rtx_code_label **.
2609 Strengthen locals "loop_label" and "label" from rtx to
2610 rtx_code_label *.
2611 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2612 Likewise for locals "loop_label", "label".
2613 (ix86_expand_set_or_movmem): Likewise for locals "label",
2614 "jump_around_label", "hot_label".
2615 (ix86_expand_strlensi_unroll_1): Likewise for locals
2616 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2617 "end_2_label".
2618 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2619 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2620 "label2", "jump_label".
2621 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2622 local "label".
2623 (ix86_expand_lfloorceil): Likewise for local "label".
2624 (ix86_expand_rint): Likewise.
2625 (ix86_expand_floorceildf_32): Likewise.
2626 (ix86_expand_floorceil): Likewise.
2627 (ix86_expand_rounddf_32): Likewise.
2628 (ix86_expand_trunc): Likewise.
2629 (ix86_expand_truncdf_32): Likewise.
2630 (ix86_expand_round): Likewise.
2631
2632 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2633
2634 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2635 first param from rtx to rtx_insn *.
2636 (h8300_insn_length_from_table): Likewise.
2637 * config/h8300/h8300.c (F): Likewise for return type and param
2638 "x".
2639 (Fpa): Add a checked cast to rtx_insn *.
2640 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2641 rtx_insn *.
2642 (final_prescan_insn): Likewise for param "insn".
2643 (h8300_binary_length): Likewise.
2644 (h8300_insn_length_from_table): Likewise.
2645
2646 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2647
2648 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2649 Strengthen first param "insn" from rtx to rtx_insn *.
2650
2651 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2652 Likewise.
2653 (frame_insn): Likewise for return type. Introduce local "insn"
2654 for use in place of local "x" for use as an rtx_insn *.
2655 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2656 (epiphany_expand_prologue): Likewise for local "insn".
2657 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2658 * config/epiphany/resolve-sw-modes.c
2659 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2660 "seq".
2661
2662 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2663
2664 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2665 param from rtx to rtx_insn *.
2666 (c6x_final_prescan_insn): Likewise for first param.
2667
2668 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2669 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2670 (c6x_expand_compare): Strengthen local "insns" from rtx to
2671 rtx_insn *.
2672 (c6x_get_unit_specifier): Likewise for param "insn".
2673 (c6x_print_unit_specifier_field): Likewise.
2674 (c6x_final_prescan_insn): Likewise.
2675 (emit_add_sp_const): Likewise for local "insn".
2676 (c6x_expand_prologue): Likewise.
2677
2678 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2679
2680 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2681 param 1 from rtx to rtx_insn *.
2682 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2683 the various locals named "insn".
2684 (expand_epilogue_reg_restore): Likewise.
2685 (frame_related_constant_load): Likewise.
2686 (add_to_reg): Likewise.
2687 (emit_link_insn): Likewise.
2688 (do_link): Likewise.
2689 (expand_interrupt_handler_prologue): Likewise.
2690 (branch_dest): Likewise for param "branch".
2691 (asm_conditional_branch): Likewise for param "insn".
2692 (gen_one_bundle): Likewise for elements of param "slot" and local
2693 "t".
2694 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2695 elements of local "slot".
2696 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2697 "queue", "next_queue", "prev".
2698 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2699 (add_sched_insns_for_speculation): Likewise for local "insn".
2700
2701 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2702
2703 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2704 from rtx to rtx_insn *.
2705 (output_movhi): Likewise.
2706 (output_movsisf): Likewise.
2707 (avr_out_tstsi): Likewise.
2708 (avr_out_tsthi): Likewise.
2709 (avr_out_tstpsi): Likewise.
2710 (avr_out_compare): Likewise.
2711 (avr_out_compare64): Likewise.
2712 (avr_out_movpsi): Likewise.
2713 (ashlqi3_out): Likewise.
2714 (ashlhi3_out): Likewise.
2715 (ashlsi3_out): Likewise.
2716 (ashrqi3_out): Likewise.
2717 (ashrhi3_out): Likewise.
2718 (ashrsi3_out): Likewise.
2719 (lshrqi3_out): Likewise.
2720 (lshrhi3_out): Likewise.
2721 (lshrsi3_out): Likewise.
2722 (avr_out_ashlpsi3): Likewise.
2723 (avr_out_ashrpsi3): Likewise.
2724 (avr_out_lshrpsi3): Likewise.
2725 (avr_out_fract): Likewise.
2726 (avr_out_sbxx_branch): Likewise.
2727 (avr_out_round): Likewise.
2728 (avr_out_xload): Likewise.
2729 (avr_out_movmem): Likewise.
2730 (adjust_insn_length): Likewise.
2731 (avr_out_lpm): Likewise.
2732 (reg_unused_after): Likewise.
2733 (_reg_unused_after): Likewise.
2734 (avr_jump_mode): Likewise for second param.
2735 (jump_over_one_insn): Likewise for first param.
2736 (avr_final_prescan_insn): Likewise.
2737 (out_shift_with_cnt): Likewise for second param.
2738
2739 * config/avr/avr.c (get_sequence_length): Likewise for param
2740 "insns" and local "insn".
2741 (emit_push_byte): Likewise for local "insn".
2742 (emit_push_sfr): Likewise.
2743 (avr_prologue_setup_frame): Likewise for locals "insn",
2744 "fp_plus_insns", "sp_plus_insns".
2745 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2746 "sp_plus_insns".
2747 (avr_jump_mode): Likewise for param "insn".
2748 (avr_final_prescan_insn): Likewise.
2749 (avr_find_unused_d_reg): Likewise.
2750 (avr_out_lpm_no_lpmx): Likewise.
2751 (avr_out_lpm): Likewise.
2752 (avr_out_xload): Likewise.
2753 (output_movqi): Likewise.
2754 (output_movhi): Likewise.
2755 (out_movqi_r_mr): Likewise.
2756 (out_movhi_r_mr): Likewise.
2757 (out_movsi_r_mr): Likewise.
2758 (out_movsi_mr_r): Likewise.
2759 (output_movsisf): Likewise.
2760 (avr_out_load_psi): Likewise.
2761 (avr_out_store_psi): Likewise.
2762 (avr_out_movpsi): Likewise.
2763 (out_movqi_mr_r): Likewise.
2764 (avr_out_movhi_mr_r_xmega): Likewise.
2765 (out_movhi_mr_r): Likewise.
2766 (compare_condition): Likewise for param "insn" and local "next".
2767 (compare_sign_p): Likewise for param "insn".
2768 (compare_diff_p): Likewise.
2769 (compare_eq_p): Likewise.
2770 (avr_out_compare): Likewise.
2771 (avr_out_compare64): Likewise.
2772 (avr_out_tsthi): Likewise.
2773 (avr_out_tstpsi): Likewise.
2774 (avr_out_tstsi): Likewise.
2775 (out_shift_with_cnt): Likewise.
2776 (ashlqi3_out): Likewise.
2777 (ashlhi3_out): Likewise.
2778 (avr_out_ashlpsi3): Likewise.
2779 (ashlsi3_out): Likewise.
2780 (ashrqi3_out): Likewise.
2781 (ashrhi3_out): Likewise.
2782 (avr_out_ashrpsi3): Likewise.
2783 (ashrsi3_out): Likewise.
2784 (lshrqi3_out): Likewise.
2785 (lshrhi3_out): Likewise.
2786 (avr_out_lshrpsi3): Likewise.
2787 (lshrsi3_out): Likewise.
2788 (avr_out_fract): Likewise.
2789 (avr_out_round): Likewise.
2790 (avr_adjust_insn_length): Likewise.
2791 (reg_unused_after): Likewise.
2792 (_reg_unused_after): Likewise.
2793 (avr_compare_pattern): Likewise.
2794 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2795 and locals "branch1", "branch2", "insn2", "jump".
2796 (avr_reorg): Likewise for local "insn".
2797 (avr_2word_insn_p): Likewise for param "insn".
2798 (jump_over_one_insn_p): Likewise.
2799 (avr_out_sbxx_branch): Likewise.
2800 (avr_out_movmem): Likewise.
2801
2802 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2803
2804 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2805 param from rtx to rtx_insn *.
2806 (thumb1_final_prescan_insn): Likewise.
2807 (thumb2_final_prescan_insn): Likewise.
2808
2809 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2810 rtx to rtx_insn *.
2811 (struct minipool_node): Likewise for field "insn".
2812 (dump_minipool): Likewise for param "scan".
2813 (create_fix_barrier): Likewise for local "from". Strengthen local
2814 "label" from rtx to rtx_code_label *.
2815 (push_minipool_barrier): Strengthen param "insn" from rtx to
2816 rtx_insn *.
2817 (push_minipool_fix): Likewise.
2818 (note_invalid_constants): Likewise.
2819 (thumb2_reorg): Likewise for local "insn".
2820 (arm_reorg): Likewise.
2821 (thumb2_final_prescan_insn): Likewise for param
2822 "insn" and local "first_insn".
2823 (arm_final_prescan_insn): Likewise for param "insn" and locals
2824 "start_insn", "this_insn".
2825 (arm_debugger_arg_offset): Likewise for param "insn".
2826 (thumb1_emit_multi_reg_push): Likewise for return type and local
2827 "insn".
2828 (thumb1_final_prescan_insn): Likewise for param "insn".
2829 (thumb_far_jump_used_p): Likewise for local "insn".
2830 (thumb1_expand_prologue): Likewise.
2831 (arm_expand_epilogue_apcs_frame): Likewise.
2832 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2833 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2834 from rtx to rtx_code_label *.
2835 (arm_split_atomic_op): Likewise for local "label".
2836 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2837
2838 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2839
2840 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2841 first param from rtx to rtx_insn *.
2842 (arc_verify_short): Likewise.
2843 (arc_short_long): Likewise.
2844 (arc_need_delay): Likewise.
2845
2846 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2847 "target_insn".
2848 (arc_ccfsm_advance): Likewise for param "insn" and locals
2849 "start_insn", "this_insn".
2850 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2851 (arc_ccfsm_post_advance): Likewise for param "insn".
2852 (arc_next_active_insn): Likewise for return type and param "insn".
2853 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2854 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2855 (output_short_suffix): Likewise for local "insn".
2856 (arc_final_prescan_insn): Likewise for param "insn". Remove
2857 now-redundant checked cast.
2858 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2859 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2860 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2861 for use where lc_set became an insn.
2862 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2863 rtx to rtx_insn *.
2864 (arc_get_insn_variants): Likewise for local "prev".
2865 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2866 "next".
2867 (arc_predicate_delay_insns): Likewise for local "insn".
2868 (arc_pad_return): Likewise for local "prev". For now, add a
2869 checked cast when extracting the insn from "final_sequence".
2870 (arc_short_long): Likewise for param "insn".
2871 (arc_need_delay): Likewise for param "insn" and local "next".
2872 (arc_label_align): Likewise for locals "prev", "next".
2873
2874 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2875
2876 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2877 "insn" from rtx to rtx_insn *.
2878 (alpha_gp_save_rtx): Likewise for local "seq".
2879 (alpha_instantiate_decls): Likewise for local "top".
2880 (get_some_local_dynamic_name): Likewise for local "insn".
2881 (alpha_does_function_need_gp): Likewise.
2882 (set_frame_related_p): Likewise for return type and for locals
2883 "seq" and "insn".
2884 (emit_frame_store_1): Likewise for local "insn".
2885 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2886 (alpha_end_function): Likewise for local "insn".
2887 (alpha_output_mi_thunk_osf): Likewise.
2888 (alphaev4_insn_pipe): Likewise for param "insn".
2889 (alphaev5_insn_pipe): Likewise.
2890 (alphaev4_next_group): Likewise for return type and param 1
2891 "insn".
2892 (alphaev5_next_group): Likewise.
2893 (alpha_align_insns_1): Likewise for return type and param 1 of
2894 callback param "next_group", and for locals "i", "next", "prev",
2895 "where", "where2", "insn".
2896
2897 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2898
2899 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2900 rather than modifying the stmt.
2901
2902 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2903
2904 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2905 cgraph_state conversion.
2906
2907 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2908
2909 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2910 Strengthen local "insns" from rtx to rtx_insn *.
2911 (aarch64_set_frame_expr): Likewise for local "insn".
2912 (aarch64_save_or_restore_fprs): Likewise.
2913 (aarch64_save_or_restore_callee_save_registers): Likewise.
2914 (aarch64_expand_prologue): Likewise.
2915 (aarch64_expand_epilogue): Likewise.
2916 (aarch64_output_mi_thunk): Likewise.
2917 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2918 "label2" from rtx to rtx_code_label *.
2919 (aarch64_split_atomic_op): Likewise for local "label".
2920
2921 2014-08-25 Martin Liska <mliska@suse.cz>
2922
2923 * cgraph.h (symtab_node):
2924 (bool needed_p (void)): created from decide_is_symbol_needed
2925 (bool referred_to_p (void)): created from referred_to_p
2926 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2927 * cgraph.h (cgraph_node):
2928 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2929 (void expand (void)): created from expand_function
2930 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2931 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2932 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2933 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2934 * cgraph.h (varpool_node):
2935 (static void add (tree decl): created from varpool_add_new_variable
2936 * cgraph.h (cgraph_edge):
2937 void remove (void);
2938 (void remove_caller (void)): created from cgraph_edge_remove_caller
2939 (void remove_callee (void)): created from cgraph_edge_remove_callee
2940 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2941 created from cgraph_set_call_stmt
2942 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2943 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2944 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2945 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2946 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2947 created from cgraph_speculative_call_info
2948 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2949 int freq_scale, bool update_original)): created from cgraph_clone_edge
2950 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2951 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2952 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2953 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2954 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2955 (static void rebuild_references (void)): created from cgraph_rebuild_references
2956 * cgraph.h (symbol_table):
2957 (create_reference): renamed from add_reference
2958 (maybe_create_reference): renamed from maybe_add_reference
2959 (void register_symbol (symtab_node *node)): new function
2960 (void clear_asm_symbols (void)): new function
2961 (void unregister (symtab_node *node)): new function
2962 (void release_symbol (cgraph_node *node, int uid)): new function
2963 (cgraph_node * allocate_cgraph_symbol (void)): new function
2964 (void initialize (void)): created from cgraph_init
2965 (symtab_node *first_symbol (void)):new function
2966 (asm_node *first_asm_symbol (void)):new function
2967 (symtab_node *first_defined_symbol (void)):new function
2968 (varpool_node *first_variable (void)):new function
2969 (varpool_node *next_variable (varpool_node *node)):new function
2970 (varpool_node *first_static_initializer (void)):new function
2971 (varpool_node *next_static_initializer (varpool_node *node)):new function
2972 (varpool_node *first_defined_variable (void)):new function
2973 (varpool_node *next_defined_variable (varpool_node *node)):new function
2974 (cgraph_node *first_defined_function (void)):new function
2975 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2976 (cgraph_node *first_function (void)):new function
2977 (cgraph_node *next_function (cgraph_node *node)):new function
2978 (cgraph_node *first_function_with_gimple_body (void)):new function
2979 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2980 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2981 created from symtab_remove_unreachable_nodes
2982 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2983 (void process_new_functions (void)): created from cgraph_process_new_functions
2984 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2985 (bool output_variables (void)): created from varpool_node::output_variables
2986 (void output_asm_statements (void)): created from output_asm_statements
2987 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2988 (void compile (void)): created from compile
2989 (void output_weakrefs (void)): created from output_weakrefs
2990 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2991 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2992 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2993 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2994 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2995 created from cgraph_next_function_with_gimple_body
2996 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2997 created from cgraph_remove_edge_removal_hook
2998 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2999 created from cgraph_add_node_removal_hook
3000 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
3001 created from cgraph_remove_node_removal_hook
3002 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
3003 created from varpool_add_node_removal_hook
3004 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
3005 created from varpool_remove_node_removal_hook
3006 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
3007 created from cgraph_add_function_insertion_hook
3008 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
3009 created from cgraph_remove_function_insertion_hook
3010 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
3011 created from varpool_add_variable_insertion_hook
3012 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
3013 created from varpool_remove_variable_insertion_hook
3014 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
3015 created from cgraph_add_edge_duplication_hook
3016 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3017 created from cgraph_remove_edge_duplication_hook
3018 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3019 created from cgraph_add_node_duplication_hook
3020 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3021 created from cgraph_remove_node_duplication_hook
3022 (void call_edge_removal_hooks (cgraph_edge *e)):
3023 created from cgraph_call_edge_removal_hooks
3024 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3025 created from call_function_insertion_hooks
3026 (void call_cgraph_removal_hooks (cgraph_node *node)):
3027 created from cgraph_call_node_removal_hooks
3028 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3029 created from cgraph_node::call_duplication_hooks
3030 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3031 created from cgraph_call_edge_duplication_hooks
3032 (void call_varpool_removal_hooks (varpool_node *node)):
3033 created from varpool_call_node_removal_hooks
3034 (void call_varpool_insertion_hooks (varpool_node *node)):
3035 created from varpool_call_variable_insertion_hooks
3036 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3037 created from insert_to_assembler_name_hash
3038 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3039 created from unlink_from_assembler_name_hash
3040 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3041 created from symtab_prevail_in_asm_name_hash
3042 (void symtab_initialize_asm_name_hash (void)):
3043 created from symtab_initialize_asm_name_hash
3044 (void change_decl_assembler_name (tree decl, tree name)):
3045 created from change_decl_assembler_name
3046 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3047 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3048 created from decl_assembler_name_hash
3049 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3050 created from decl_assembler_name_equal
3051 (static hashval_t hash_node_by_assembler_name (const void *p)):
3052 created from hash_node_by_assembler_name
3053 (static int eq_assembler_name (const void *p1, const void *p2)):
3054 created from eq_assembler_name
3055
3056 2014-08-25 Marek Polacek <polacek@redhat.com>
3057
3058 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3059
3060 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3061
3062 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3063 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3064 SWI1248_AVX512BW mode iterator.
3065
3066 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3067
3068 PR target/62111
3069 * config/sh/predicates.md (general_extend_operand): Disable
3070 TRUNCATE before reload completes.
3071
3072 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3073
3074 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3075
3076 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3077
3078 PR target/61996
3079 * config/sh/sh.opt (musermode): Allow negative form.
3080 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3081 targets that don't support it.
3082 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3083 Document -mno-usermode option.
3084
3085 2014-08-24 Kito Cheng <kito@0xlab.org>
3086
3087 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3088 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3089 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3090 * doc/tm.texi: Regenerate.
3091
3092 2014-08-24 Kito Cheng <kito@0xlab.org>
3093
3094 * ira.c: Fix typo in comment.
3095
3096 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3097
3098 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3099 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3100
3101 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3102
3103 PR target/62038
3104 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3105 last_address when the current function is a thunk.
3106 (pa_asm_output_mi_thunk): When we don't have named sections or they
3107 are not being used, check that thunk can reach the stub table with a
3108 short branch.
3109
3110 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3111
3112 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3113 rtx_insn *.
3114 (pass_web::execute): Likewise for local "insn".
3115
3116 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3117
3118 * var-tracking.c (struct micro_operation_def): Strengthen field
3119 "insn" from rtx to rtx_insn *.
3120 (struct emit_note_data_def): Likewise.
3121 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3122 (vt_stack_adjustments): Likewise for local "insn".
3123 (adjust_insn): Likewise for param "insn".
3124 (val_store): Likewise.
3125 (val_resolve): Likewise.
3126 (struct count_use_info): Likewise for field "insn".
3127 (log_op_type): Likewise for param "insn".
3128 (reverse_op): Likewise.
3129 (prepare_call_arguments): Likewise.
3130 (add_with_sets): The initial param takes an insn, but we can't
3131 yet strengthen it from rtx to rtx_insn * since it's used as a
3132 cselib_record_sets_hook callback. For now rename initial param
3133 from "insn" to "uncast_insn", and introduce a local "insn" of
3134 the stronger rtx_insn * type, with a checked cast.
3135 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3136 rtx_insn *.
3137 (emit_note_insn_var_location): Likewise.
3138 (emit_notes_for_changes): Likewise.
3139 (emit_notes_for_differences): Likewise.
3140 (next_non_note_insn_var_location): Likewise for return type and
3141 for param "insn".
3142 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3143 (vt_initialize): Likewise for local "insn".
3144 (delete_debug_insns): Likewise for locals "insn" and "next".
3145
3146 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3147
3148 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3149 rtx_insn *.
3150 (mark_constant_pool): Likewise for local "insn".
3151
3152 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3153
3154 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3155 rtx to rtx_insn *.
3156 (dead_debug_promote_uses): Likewise.
3157 (dead_debug_insert_temp): Likewise.
3158
3159 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3160
3161 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3162 from const_rtx to const rtx_insn *.
3163 (store_killed_after): Likewise. Strengthen locals "last", "act"
3164 from rtx to rtx_insn *.
3165 (store_killed_before): Strengthen param "insn" from const_rtx to
3166 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3167 (find_moveable_store): Strengthen param "insn" from rtx to
3168 rtx_insn *.
3169 (compute_store_table): Likewise for local "insn".
3170 (insert_insn_start_basic_block): Likewise for param "insn" and
3171 locals "prev", "before", "insn".
3172 (insert_store): For now, add a checked cast to rtx_insn * on the
3173 result of gen_move_insn.
3174 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3175 to rtx_insn *.
3176 (replace_store_insn): Likewise. For now, add a checked cast to
3177 rtx_insn * on the result of gen_move_insn.
3178
3179 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3180
3181 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3182 rtx_insn *.
3183 (expand_sjlj_dispatch_table): Likewise.
3184
3185 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3186
3187 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3188 "insn" from rtx to rtx_insn *.
3189
3190 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3191
3192 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3193 "insn" from rtx to rtx_insn *.
3194 (dup_block_and_redirect): Likewise for param 3 "before".
3195
3196 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3197 from rtx to rtx_insn *.
3198 (move_insn_for_shrink_wrap): Likewise.
3199 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3200 (dup_block_and_redirect): Likewise for param "before" and local
3201 "insn".
3202 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3203 "end".
3204 (convert_to_simple_return): Likewise for local "start".
3205
3206 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3207 Strengthen local "insn" from rtx to rtx_insn *, for use when
3208 invoking requires_stack_frame_p.
3209
3210 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3211
3212 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3213 rtx_insn *.
3214 (speculate_expr): Likewise for locals "orig_insn_rtx",
3215 "spec_insn_rtx".
3216 (eq_transformed_insns): Likewise for locals "i1", "i2".
3217 (check_for_new_jump): Likewise for return type and local "end".
3218 (find_new_jump): Likewise for return type and local "jump".
3219 (sel_split_edge): Likewise for local "jump".
3220 (sel_create_recovery_block): Likewise.
3221 (sel_redirect_edge_and_branch_force): Likewise.
3222 (sel_redirect_edge_and_branch): Likewise.
3223
3224 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3225
3226 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3227 "new_insn" from rtx to rtx_insn *.
3228 (create_insn_rtx_with_rhs): Likewise for return type and for local
3229 "insn_rtx".
3230 (create_insn_rtx_with_lhs): Likewise.
3231 (create_speculation_check): Likewise for local "insn_rtx".
3232 (implicit_clobber_conflict_p): Likewise for local "insn".
3233 (get_expr_cost): Likewise.
3234 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3235 (move_cond_jump): Likewise for locals "next", "prev", "link",
3236 "head", "from", "to".
3237
3238 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3239
3240 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3241 "next" from rtx to rtx_insn *.
3242 (find_conditional_protection): Likewise for local "next".
3243 (is_conditionally_protected): Likewise for local "insn1".
3244 (is_pfree): Likewise for locals "insn1", "insn2".
3245
3246 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3247
3248 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3249 from rtx to rtx_insn *.
3250
3251 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3252 locals "insn1", "insn2" from rtx to rtx_insn *.
3253 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3254 locals "insn", "prev", "last_jump", "next_tail".
3255 (schedule_ebb): Likewise for params "head", "tail".
3256 (schedule_ebbs): Likewise for locals "tail", "head".
3257
3258 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3259 to rtx_insn on "last_insn" in one of the invocations of
3260 schedule_ebb.
3261
3262 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3263
3264 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3265 "elem", "insn" from rtx to rtx_insn *.
3266 (change_spec_dep_to_hard): Likewise.
3267 (get_back_and_forw_lists): Likewise for local "con".
3268 (sd_add_dep): Likewise for locals "elem", "insn".
3269 (sd_resolve_dep): Likewise for locals "pro", "con".
3270 (sd_unresolve_dep): Likewise.
3271 (sd_delete_dep): Likewise.
3272 (chain_to_prev_insn): Likewise for local "pro".
3273 (find_inc): Likewise for locals "pro", "con".
3274
3275 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3276
3277 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3278 to rtx_insn *.
3279 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3280 const rtx_insn *.
3281 (modified_between_p): Strengthen local "insn" from rtx to
3282 rtx_insn *.
3283 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3284 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3285 const rtx_insn *.
3286
3287 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3288
3289 * resource.c (next_insn_no_annul): Strengthen local "next" from
3290 rtx to rtx_insn *.
3291 (mark_referenced_resources): Likewise for local "insn".
3292
3293 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3294
3295 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3296 to rtx_insn *.
3297 (find_reloads): Likewise for param 1.
3298 (subst_reloads): Likewise for sole param.
3299 (find_equiv_reg): Likwise for param 2.
3300 (regno_clobbered_p): Likwise for param 2.
3301 (reload): Likewise for param 1.
3302
3303 * caller-save.c (save_call_clobbered_regs): Strengthen local
3304 "insn" from rtx to rtx_insn *.
3305 (insert_one_insn): Likewise for local "insn".
3306
3307 * reload.c (this_insn): Likewise for this global.
3308 (find_reloads): Likewise for param "insn".
3309 (find_reloads_toplev): Likewise.
3310 (find_reloads_address): Likewise.
3311 (subst_reg_equivs): Likewise.
3312 (update_auto_inc_notes): Likewise.
3313 (find_reloads_address_1): Likewise.
3314 (find_reloads_subreg_address): Likewise.
3315 (subst_reloads): Likewise.
3316 (find_equiv_reg): Likewise, also for local "p".
3317 (regno_clobbered_p): Likewise for param "insn".
3318
3319 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3320 array.
3321 (spill_reg_store): Likewise for the elements of this array.
3322 (remove_init_insns): Likewise for local "equiv_insn".
3323 (will_delete_init_insn_p): Likewise for param "insn".
3324 (reload): Likewise for param ""first" and local "insn".
3325 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3326 rtx_insn *.
3327 (calculate_elim_costs_all_insns): Likewise.
3328 (delete_caller_save_insns): Likewise.
3329 (spill_failure): Likewise for param "insn".
3330 (delete_dead_insn): Likewise.
3331 (set_label_offsets): Likewise.
3332 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3333 "prev_insn".
3334 (elimination_costs_in_insn): Likewise for param "insn".
3335 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3336 when referring to an insn.
3337 (set_initial_label_offsets): Likewise.
3338 (set_offsets_for_label): Strengthen param "insn" from rtx to
3339 rtx_insn *.
3340 (init_eliminable_invariants): Likewise for param "first" and local
3341 "insn".
3342 (fixup_eh_region_note): Likewise for param "insn".
3343 (reload_as_needed): Likewise for locals "prev", "insn",
3344 "old_next", "old_prev", "next".
3345 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3346 "last".
3347 (reload_inheritance_insn): Strengthen elements of this array from
3348 rtx to rtx_insn *.
3349 (failed_reload): Likewise for param "insn".
3350 (choose_reload_regs): Likewise for local "insn". Replace use of
3351 NULL_RTX with NULL when referring to an insn.
3352 (input_reload_insns): Strengthen elements of this array from rtx
3353 to rtx_insn *.
3354 (other_input_address_reload_insns): Likewise for this global.
3355 (other_input_reload_insns): Likewise for this global.
3356 (input_address_reload_insns): Likwise for the elements of this
3357 array.
3358 (inpaddr_address_reload_insns): Likwise for the elements of this
3359 array.
3360 (output_reload_insns): Likewise for the elements of this array.
3361 (output_address_reload_insns): Likewise for the elements of this
3362 array.
3363 (outaddr_address_reload_insns): Likewise for the elements of this
3364 array.
3365 (operand_reload_insns): Likewise for this global.
3366 (other_operand_reload_insns): Likewise for this global.
3367 (other_output_reload_insns): Likewise for the elements of this
3368 array.
3369 (new_spill_reg_store): Likewise for the elements of this
3370 array.
3371 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3372 Strengthen local "where" from rtx * to rtx_insn **.
3373 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3374 from rtx to rtx_insn *.
3375 (do_input_reload): Likewise for local "insn".
3376 (do_output_reload): Likewise for local "insn".
3377 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3378 (emit_insn_if_valid_for_reload): Likewise for return type and local
3379 "last". Add checked cast to rtx_insn when returning "insn" since
3380 this has been through emit_insn.
3381 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3382 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3383 returning "insn" since it's been through
3384 emit_insn_if_valid_for_reload at this point.
3385 (delete_output_reload): Strengthen param "insn" and locals
3386 "output_reload_insn", "i2" from rtx to rtx_insn *.
3387 (delete_address_reloads): Likewise for params "dead_insn",
3388 "current_insn" and locals "prev", "next".
3389 (delete_address_reloads_1): Likewise for params "dead_insn",
3390 "current_insn" and locals "prev", "i2".
3391 (inc_for_reload): Likewise for locals "last", "add_insn".
3392 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3393 rtx_insn *.
3394
3395 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3396 param of this duplicate of the prototype from reload.h
3397
3398 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3399
3400 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3401 rtx to rtx_insn *.
3402 (regstat_bb_compute_calls_crossed): Likewise.
3403
3404 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3405
3406 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3407 to rtx_insn *.
3408 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3409 with an insn.
3410 (regrename_analyze): Strengthen local "insn" from rtx to
3411 rtx_insn *.
3412 (scan_rtx_reg): Likewise for param "insn".
3413 (scan_rtx_address): Likewise.
3414 (scan_rtx): Likewise.
3415 (restore_operands): Likewise.
3416 (record_out_operands): Likewise.
3417 (build_def_use): Likewise for local "insn". Replace use of
3418 NULL_RTX with NULL when dealing with an insn.
3419
3420 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3421
3422 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3423 * reginfo.c (reg_scan): Likewise, also for local "insn".
3424 (reg_scan_mark_refs): Likewise for param "insn".
3425 (init_subregs_of_mode): Likewise for local "insn".
3426
3427 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3428
3429 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3430 "insn" from rtx to rtx_insn *.
3431 (replace_oldest_value_reg): Likewise for param "insn".
3432 (replace_oldest_value_addr): Likewise.
3433 (replace_oldest_value_mem): Likewise.
3434 (apply_debug_insn_changes): Likewise for local "last_insn".
3435 (copyprop_hardreg_forward_1): Likewise for local "insn".
3436
3437 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3438
3439 * reg-stack.c (next_flags_user): Strengthen return type and param
3440 "insn" from rtx to rtx_insn *.
3441 (straighten_stack): Likewise for param "insn".
3442 (check_asm_stack_operands): Likewise.
3443 (remove_regno_note): Likewise.
3444 (emit_pop_insn): Likewise for return type, param "insn", local
3445 "pop_insn".
3446 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3447 "limit" from rtx to rtx_insn *.
3448 (swap_to_top): Likewise for param "insn".
3449 (move_for_stack_reg): Likewise.
3450 (move_nan_for_stack_reg): Likewise.
3451 (swap_rtx_condition): Likewise.
3452 (compare_for_stack_reg): Likewise.
3453 (subst_all_stack_regs_in_debug_insn): Likewise.
3454 (subst_stack_regs_pat): Likewise, and local "insn2".
3455 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3456 rtx_insn *.
3457 (subst_stack_regs): Likewise.
3458 (change_stack): Likewise.
3459 (convert_regs_1): Likewise for locals "insn", "next".
3460
3461 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3462
3463 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3464 rtx_insn *.
3465 (combine_set_extension): Likewise for param "curr_insn".
3466 (transform_ifelse): Likewise for param "def_insn".
3467 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3468 from vec<rtx> * to vec<rtx_insn *> *.
3469 (is_cond_copy_insn): Likewise for param "insn".
3470 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3471 to vec<rtx_insn *>.
3472 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3473 local "def_insn" from rtx to rtx_insn *.
3474 (get_sub_rtx): Likewise for param "def_insn".
3475 (merge_def_and_ext): Likewise.
3476 (combine_reaching_defs): Likewise.
3477 (add_removable_extension): Likewise for param "insn".
3478 (find_removable_extensions): Likewise for local "insn".
3479 (find_and_remove_re): Likewise for locals "curr_insn" and
3480 "def_insn". Strengthen locals "reinsn_del_list" and
3481 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3482
3483 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3484
3485 * recog.c (split_insn): Strengthen param "insn" and locals
3486 "first", "last" from rtx to rtx_insn *.
3487 (split_all_insns): Likewise for locals "insn", "next".
3488 (split_all_insns_noflow): Likewise.
3489
3490 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3491
3492 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3493 const rtx_insn *.
3494 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3495 (debug_rtx_find): Likewise for param 1 "x".
3496
3497 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3498 const_rtx to const rtx_insn *. Likewise for local "insn".
3499 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3500 (debug_rtx_find): Likewise for param 1 "x".
3501 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3502 from const_rtx to const rtx_insn * within the appropriate cases of
3503 the switch statement.
3504
3505 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3506 Strengthen local "insns" from rtx to rtx_insn * since this is
3507 passed to a call to debug_rtx_list.
3508
3509 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3510
3511 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3512 to rtx_insn *.
3513
3514 * function.c (stack_protect_epilogue): Add checked cast to
3515 rtx_insn for now when invoking predict_insn_def.
3516
3517 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3518 rtx_insn *.
3519 (predict_insn_def): Likewise.
3520 (rtl_predict_edge): Likewise for local "last_insn".
3521 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3522 const rtx_insn *.
3523 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3524 to rtx_insn *.
3525 (bb_estimate_probability_locally): Likewise for local "last_insn".
3526 (expensive_function_p): Likewise for local "insn".
3527
3528 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3529 local "jmp", since this is used when invoking predict_insn_def.
3530
3531 2014-08-22 Marek Polacek <polacek@redhat.com>
3532
3533 PR c++/62199
3534 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3535
3536 2014-08-22 Marek Polacek <polacek@redhat.com>
3537
3538 PR c/61271
3539 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3540 a comparison in parens.
3541 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3542 in parens.
3543
3544 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3545
3546 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3547 rtx_insn *.
3548
3549 * cprop.c (fis_get_condition): Likewise.
3550
3551 * postreload.c (reload_cse_regs): Likewise for param "first".
3552 (reload_cse_simplify): Likewise for param "insn".
3553 (reload_cse_regs_1): Likewise for local "insn".
3554 (reload_cse_simplify_set): Likewise for param "insn".
3555 (reload_cse_simplify_operands): Likewise.
3556 (struct reg_use): Likewise for field "insn".
3557 (reload_combine_purge_insn_uses): Likewise for param "insn".
3558 (fixup_debug_insns): Likewise for params "from", "to" and local
3559 "insn".
3560 (try_replace_in_use): Likewise for local "use_insn".
3561 (reload_combine_recognize_const_pattern): Likewise for param
3562 "insn" and locals "add_moved_after_insn", "use_insn".
3563 (reload_combine_recognize_pattern): Likewise for param "insn" and
3564 local "prev".
3565 (reload_combine): Likewise for locals "insn", "prev".
3566 (reload_combine_note_use): Likewise for param "insn".
3567 (move2add_use_add2_insn): Likewise.
3568 (move2add_use_add3_insn): Likewise.
3569 (reload_cse_move2add): Likewise, also for local "next".
3570 (move2add_note_store): Likewise for local "insn".
3571
3572 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3573
3574 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3575 rtx to rtx_insn *.
3576 (struct unoccr): Likewise.
3577 (struct modifies_mem): Likewise.
3578 (alloc_mem): Likewise for local "insn".
3579 (insert_expr_in_table): Likewise for param "insn".
3580 (dump_expr_hash_table_entry): Likewise for local "insn".
3581 (oprs_unchanged_p): Likewise for param "insn".
3582 (load_killed_in_block_p): Likewise for local "setter".
3583 (record_last_reg_set_info): Likewise for param "insn".
3584 (record_last_reg_set_info_regno): Likewise.
3585 (record_last_mem_set_info): Likewise.
3586 (record_last_set_info): Likewise for local "last_set_insn".
3587 (record_opr_changes): Likewise for param "insn".
3588 (hash_scan_set): Likewise.
3589 (compute_hash_table): Likewise for local "insn".
3590 (get_avail_load_store_reg): Likewise for param "insn".
3591 (eliminate_partially_redundant_load): Likewise, also for locals
3592 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3593 RTX for insns.
3594 (eliminate_partially_redundant_loads): Likewise for local "insn".
3595
3596 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3597
3598 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3599 rtx to rtx_insn *.
3600 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3601 (expand_twoval_unop): Likewise for locals entry_last", "last".
3602 (expand_twoval_binop): Likewise.
3603 (expand_twoval_binop_libfunc): Likewise for local "insns".
3604 (widen_leading): Likewise for local "last".
3605 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3606 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3607 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3608 (expand_parity): Likewise for locals "last" and "seq".
3609 (expand_ffs): Likewise for local "seq". Strengthen local
3610 "nonzero_label" from rtx to rtx_code_label *.
3611 (expand_absneg_bit): Strengthen local "insns" from rtx to
3612 rtx_insn *.
3613 (expand_unop_direct): Likewise for local "last".
3614 (expand_unop): Likewise for locals "last", "insns".
3615 (expand_abs_nojump): Likewise for local "last".
3616 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3617 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3618 rtx_insn *.
3619 (expand_copysign_absneg): Strengthen local "label" from rtx to
3620 rtx_code_label *.
3621 (expand_copysign_bit): Strengthen local "insns" from rtx to
3622 rtx_insn *.
3623 (struct no_conflict_data): Likewise for fields "first", "insn".
3624 (emit_libcall_block_1): Likewise for param "insns" and locals
3625 "next", "last", "insn".
3626 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3627 on "insns" when invoking emit_libcall_block_1. Ultimately we
3628 want to strengthen insns itself.
3629 (prepare_cmp_insn): Strengthen local "last" from rtx to
3630 rtx_insn *.
3631 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3632 (prepare_float_lib_cmp): Likewise for local "insns".
3633 (emit_conditional_move): Likewise for local "last".
3634 (emit_conditional_add): Likewise.
3635 (have_sub2_insn): Likewise for local "seq".
3636 (expand_float): Likewise for local "insns". Strengthen locals
3637 "label", "neglabel" from rtx to rtx_code_label *.
3638 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3639 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3640 (expand_fixed_convert): Likewise for local "insns" (to
3641 rtx_insn *).
3642 (expand_sfix_optab): Likewise for local "last".
3643 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3644 to rtx_code_label *.
3645 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3646 from rtx to rtx_insn *.
3647 (expand_atomic_fetch_op): Likewise for local "insn".
3648 (maybe_legitimize_operand_same_code): Likewise for local "last".
3649 (maybe_legitimize_operands): Likewise.
3650
3651 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3652
3653 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3654 "insn" from rtx to rtx_insn *.
3655 (ps_rtl_insn): Likewise for return type.
3656 (doloop_register_get): Likewise for params "head", "tail" and
3657 locals "insn", "first_insn_not_to_check".
3658 (schedule_reg_move): Likewise for local "this_insn".
3659 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3660 of gen_move_insn for now.
3661 (reset_sched_times): Strengthen local "insn" from rtx to
3662 rtx_insn *.
3663 (permute_partial_schedule): Likewise.
3664 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3665 (dump_insn_location): Likewise for param "insn".
3666 (loop_canon_p): Likewise for local "insn".
3667 (sms_schedule): Likewise.
3668 (print_partial_schedule): Likewise.
3669 (ps_has_conflicts): Likewise.
3670
3671 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3672
3673 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3674 "tailp" from rtx * to rtx_insn **.
3675
3676 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3677 from rtx to rtx_insn *.
3678 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3679 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3680 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3681 rtx to rtx_insn *.
3682 * modulo-sched.c (const_iteration_count): Strengthen return type
3683 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3684 use of NULL_RTX with NULL when working with insns.
3685 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3686 to rtx_insn *.
3687 (sms_schedule): Likewise.
3688 * sched-rgn.c (init_ready_list): Likewise, also for locals
3689 "src_head" and "src_next_tail".
3690 (compute_block_dependences): Likewise.
3691 (free_block_dependencies): Likewise.
3692 (debug_rgn_dependencies): Likewise.
3693 (free_rgn_deps): Likewise.
3694 (compute_priorities): Likewise.
3695 (schedule_region): Likewise.
3696 * sel-sched.c (find_ebb_boundaries): Likewise.
3697
3698 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3699 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3700
3701 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3702
3703 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3704 from rtx to rtx_insn *.
3705 (new_seginfo): Likewise for param "insn".
3706 (create_pre_exit): Likewise for locals "last_insn",
3707 "before_return_copy", "return_copy".
3708 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3709 "mode_set".
3710
3711 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3712
3713 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3714 from rtx to rtx_insn *.
3715 (lra_push_insn): Likewise for 1st param.
3716 (lra_push_insn_and_update_insn_regno_info): Likewise.
3717 (lra_pop_insn): Likewise for return type.
3718 (lra_invalidate_insn_data): Likewise for 1st param.
3719 (lra_set_insn_deleted): Likewise.
3720 (lra_delete_dead_insn): Likewise.
3721 (lra_process_new_insns): Likewise for first 3 params.
3722 (lra_set_insn_recog_data): Likewise for 1st param.
3723 (lra_update_insn_recog_data): Likewise.
3724 (lra_set_used_insn_alternative): Likewise.
3725 (lra_invalidate_insn_regno_info): Likewise.
3726 (lra_update_insn_regno_info): Likewise.
3727 (lra_former_scratch_operand_p): Likewise.
3728 (lra_eliminate_regs_1): Likewise.
3729 (lra_get_insn_recog_data): Likewise.
3730
3731 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3732 rtx to rtx_insn *.
3733
3734 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3735 "mv1" and "mv2".
3736 (substitute_within_insn): New.
3737 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3738 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3739 Replace call to "substitute" with call to substitute_within_insn.
3740
3741 * lra-constraints.c (curr_insn): Strengthen from rtx to
3742 rtx_insn *.
3743 (get_equiv_with_elimination): Likewise for param "insn".
3744 (match_reload): Strengthen params "before" and "after" from rtx *
3745 to rtx_insn **.
3746 (emit_spill_move): Likewise for return type. Add a checked cast
3747 to rtx_insn * on result of gen_move_insn for now.
3748 (check_and_process_move): Likewise for local "before". Replace
3749 NULL_RTX with NULL when referring to insns.
3750 (process_addr_reg): Strengthen params "before" and "after" from
3751 rtx * to rtx_insn **.
3752 (insert_move_for_subreg): Likewise.
3753 (simplify_operand_subreg): Strengthen locals "before" and "after"
3754 from rtx to rtx_insn *.
3755 (process_address_1): Strengthen params "before" and "after" from
3756 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3757 rtx to rtx_insn *.
3758 (process_address): Strengthen params "before" and "after" from
3759 rtx * to rtx_insn **.
3760 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3761 (curr_insn_transform): Strengthen locals "before" and "after"
3762 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3763 to insns.
3764 (loc_equivalence_callback): Update cast of "data", changing
3765 resulting type from rtx to rtx_insn *.
3766 (substitute_pseudo_within_insn): New.
3767 (inherit_reload_reg): Strengthen param "insn" from rtx to
3768 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3769 NULL when referring to insns. Add a checked cast to rtx_insn *
3770 when using usage_insn to invoke lra_update_insn_regno_info.
3771 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3772 likewise for locals "restore", "save". Add checked casts to
3773 rtx_insn * when using usage_insn to invoke
3774 lra_update_insn_regno_info and lra_process_new_insns. Replace
3775 NULL_RTX with NULL when referring to insns.
3776 (split_if_necessary): Strengthen param "insn" from rtx to
3777 rtx_insn *.
3778 (update_ebb_live_info): Likewise for params "head", "tail" and local
3779 "prev_insn".
3780 (get_last_insertion_point): Likewise for return type and local "insn".
3781 (get_live_on_other_edges): Likewise for local "last".
3782 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3783 "prev_insn", "next_insn", "restore".
3784 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3785 (undo_optional_reloads): Likewise for local "insn".
3786
3787 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3788 "insn".
3789 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3790 insns.
3791 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3792 rtx_insn *.
3793 (spill_pseudos): Likewise for local "insn".
3794 (init_elimination): Likewise.
3795 (process_insn_for_elimination): Likewise for param "insn".
3796
3797 * lra-lives.c (curr_insn): Likewise.;
3798
3799 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3800 (remove_pseudos): Likewise for param "insn".
3801 (spill_pseudos): Likewise for local "insn".
3802 (lra_final_code_change): Likewise for locals "insn", "curr".
3803
3804 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3805 (lra_set_insn_deleted): Likewise.
3806 (lra_delete_dead_insn): Likewise, and for local "prev".
3807 (new_insn_reg): Likewise for param "insn".
3808 (lra_set_insn_recog_data): Likewise.
3809 (lra_update_insn_recog_data): Likewise.
3810 (lra_set_used_insn_alternative): Likewise.
3811 (get_insn_freq): Likewise.
3812 (invalidate_insn_data_regno_info): Likewise.
3813 (lra_invalidate_insn_regno_info): Likewise.
3814 (lra_update_insn_regno_info): Likewise.
3815 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3816 vec<rtx_insn *>.
3817 (lra_push_insn_1): Strengthen param "insn" from rtx to
3818 rtx_insn *.
3819 (lra_push_insn): Likewise.
3820 (lra_push_insn_and_update_insn_regno_info): Likewise.
3821 (lra_pop_insn): Likewise for return type and local "insn".
3822 (push_insns): Likewise for params "from", "to", and local "insn".
3823 (setup_sp_offset): Likewise for params "from", "last" and locals
3824 "before", "insn".
3825 (lra_process_new_insns): Likewise for params "insn", "before",
3826 "after" and local "last".
3827 (struct sloc): Likewise for field "insn".
3828 (lra_former_scratch_operand_p): Likewise for param "insn".
3829 (remove_scratches): Likewise for locals "insn", "last".
3830 (check_rtl): Likewise for local "insn".
3831 (add_auto_inc_notes): Likewise for param "insn".
3832 (update_inc_notes): Likewise for local "insn".
3833 (lra): Replace NULL_RTX with NULL when referring to insn.
3834
3835 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3836
3837 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3838 to rtx_insn *.
3839 (resolve_reg_notes): Likewise.
3840 (resolve_simple_move): Likewise for return type, param "insn", and
3841 locals "insns", "minsn".
3842 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3843 (resolve_use): Likewise.
3844 (resolve_debug): Likewise.
3845 (find_decomposable_shift_zext): Likewise.
3846 (resolve_shift_zext): Likewise for return type, param "insn", and
3847 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3848 (decompose_multiword_subregs): Likewise for local "insn",
3849 "orig_insn", "decomposed_shift", "end".
3850
3851 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3852
3853 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3854 param "insns" from rtx to rtx_insn *.
3855
3856 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3857 rtx to rtx_insn *.
3858 (struct iv_to_split): Likewise.
3859 (loop_exit_at_end_p): Likewise for local "insn".
3860 (split_edge_and_insert): Likewise for param "insns".
3861 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3862 and locals "seq", "jump".
3863 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3864 "branch_code"; update invocations of compare_and_jump_seq to
3865 eliminate NULL_RTX in favor of NULL.
3866 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3867 rtx to rtx_insn *.
3868 (reset_debug_uses_in_loop): Likewise.
3869 (analyze_insn_to_expand_var): Likewise for param "insn".
3870 (analyze_iv_to_split_insn): Likewise.
3871 (analyze_insns_in_loop): Likewise for local "insn".
3872 (insert_base_initialization): Likewise for param
3873 "insn" and local "seq".
3874 (split_iv): Likewise for param "insn" and local "seq".
3875 (expand_var_during_unrolling): Likewise for param "insn".
3876 (insert_var_expansion_initialization): Likewise for local "seq".
3877 (combine_var_copies_in_loop_exit): Likewise.
3878 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3879 "insn".
3880 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3881 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3882 "next".
3883
3884 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3885
3886 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3887 rtx_insn *.
3888 (iv_analyze_result): Likewise.
3889 (iv_analyze_expr): Likewise.
3890 (biv_p): Likewise.
3891
3892 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3893 local "def_insn" from rtx to rtx_insn *.
3894 (get_biv_step_1): Likewise for local "insn".
3895 (iv_analyze_expr): Likewise for param "insn".
3896 (iv_analyze_def): Likewise for local "insn".
3897 (iv_analyze_op): Likewise for param "insn".
3898 (iv_analyze): Likewise.
3899 (iv_analyze_result): Likewise.
3900 (biv_p): Likewise.
3901 (suitable_set_for_replacement): Likewise.
3902 (simplify_using_initial_values): Likewise for local "insn".
3903 (iv_number_of_iterations): Likewise for param "insn".
3904 (check_simple_exit): Add checked cast to rtx_insn when invoking
3905 iv_number_of_iterations for now (until get_condition is
3906 strengthened).
3907
3908 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3909 "insn" from rtx to rtx_insn *.
3910 (analyze_insns_in_loop): Likewise for local "insn".
3911
3912 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3913
3914 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3915 to rtx_insn *.
3916 (struct invariant): Likewise.
3917 (hash_invariant_expr_1): Likewise for param "insn".
3918 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3919 (find_exits): Likewise for local "insn".
3920 (create_new_invariant): Likewise for param "insn".
3921 (check_dependencies): Likewise.
3922 (find_invariant_insn): Likewise.
3923 (record_uses): Likewise.
3924 (find_invariants_insn): Likewise.
3925 (find_invariants_bb): Likewise for local "insn".
3926 (get_pressure_class_and_nregs): Likewise for param "insn".
3927 (calculate_loop_reg_pressure): Likewise for local "insn".
3928
3929 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3930
3931 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3932 to rtx_insn *.
3933 (add_test): Likewise for locals "seq", "jump".
3934 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3935
3936 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3937
3938 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3939 rtx_insn *.
3940 (rebuild_jump_labels_chain): Likewise for param "chain".
3941
3942 * cfgexpand.c (pass_expand::execute): Add checked cast to
3943 rtx_insn * when calling rebuild_jump_labels_chain in region where
3944 we know e->insns.r is non-NULL.
3945
3946 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3947 rtx_insn *.
3948 (rebuild_jump_labels): Likewise.
3949 (rebuild_jump_labels_chain): Likewise for param "chain".
3950 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3951 (init_label_info): Likewise for param "f".
3952 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3953 "prev_nonjump_insn".
3954 (mark_all_labels): Likewise for param "f" and locals "insn",
3955 "prev_nonjump_insn".
3956
3957 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3958
3959 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3960 from rtx to rtx_insn *insn.
3961 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3962 (ira_add_allocno_copy): Likewise.
3963 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3964 rtx to rtx_insn *.
3965 (ira_create_copy): Likewise.
3966 (ira_add_allocno_copy): Likewise.
3967 (create_bb_allocnos): Likewise for local "insn".
3968 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3969 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3970 process_regs_for_copy for rtx_insn * param.
3971 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3972 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3973 process_regs_for_copy for rtx_insn * param.
3974 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3975 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3976 (record_operand_costs): Likewise.
3977 (scan_one_insn): Likewise for return type, and for param "insn".
3978 (process_bb_for_costs): Likewise for local "insn".
3979 (process_bb_node_for_hard_reg_moves): Likewise.
3980 * ira-emit.c (struct move): Likewise for field "insn".
3981 (create_move): Eliminate use of NULL_RTX when dealing with an
3982 rtx_insn *.
3983 (emit_move_list): Strengthen return type and locals "result",
3984 "insn" from rtx to rtx_insn *insn.
3985 (emit_moves): Likewise for locals "insns", "tmp".
3986 (ira_emit): Likewise for local "insn".
3987 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3988 "insn".
3989 (find_call_crossed_cheap_reg): Likewise.
3990 (process_bb_node_lives): Likewise for local "insn".
3991 * ira.c (decrease_live_ranges_number): Likewise.
3992 (compute_regs_asm_clobbered): Likewise.
3993 (build_insn_chain): Likewise.
3994 (find_moveable_pseudos): Likewise, also locals "def_insn",
3995 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3996 to rtx_insn **. Add a checked cast when assigning from
3997 "closest_use" into closest_uses array in a region where we know
3998 it's a non-NULL insn.
3999 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
4000 to rtx_insn *.
4001 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
4002 "last_interesting_insn", "uin".
4003 (move_unallocated_pseudos): Likewise for locals "def_insn",
4004 "move_insn", "newinsn".
4005
4006 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4007
4008 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
4009 Strengthen locals "done_label", "do_error" from rtx to
4010 rtx_code_label *.
4011 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
4012 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
4013 rtx_code_label *.
4014 (ubsan_expand_si_overflow_neg_check): Likewise for locals
4015 "done_label", "do_error" to rtx_code_label * and local "last" to
4016 rtx_insn *.
4017 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4018 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4019 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4020 "after_lopart_neg", "do_overflow", "hipart_different" to
4021 rtx_code_label * and local "last" to rtx_insn *.
4022
4023 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4024
4025 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4026 "insn" and "move_insn" from rtx to rtx_insn *.
4027
4028 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4029
4030 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4031 rtx_insn *.
4032 (cheap_bb_rtx_cost_p): Likewise.
4033 (first_active_insn): Likewise for return type and local "insn".
4034 (last_active_insn): Likewise for return type and locals "insn",
4035 "head".
4036 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4037 "insn_b".
4038 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4039 "seq".
4040 (noce_try_move): Likewise for local "seq".
4041 (noce_try_store_flag): Likewise.
4042 (noce_try_store_flag_constants): Likewise.
4043 (noce_try_addcc): Likewise.
4044 (noce_try_store_flag_mask): Likewise.
4045 (noce_try_cmove): Likewise.
4046 (noce_try_minmax): Likewise.
4047 (noce_try_abs): Likewise.
4048 (noce_try_sign_mask): Likewise.
4049 (noce_try_bitop): Likewise.
4050 (noce_can_store_speculate_p): Likewise for local "insn".
4051 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4052 seq".
4053 (check_cond_move_block): Likewise for local "insn".
4054 (cond_move_convert_if_block): Likewise.
4055 (cond_move_process_if_block): Likewise for locals "seq",
4056 "loc_insn".
4057 (noce_find_if_block): Likewise for local "jump".
4058 (merge_if_block): Likewise for local "last".
4059 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4060 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4061 (block_has_only_trap): Likewise for return type and local "trap".
4062 (find_if_case_1): Likewise for local "jump".
4063 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4064 "insn".
4065
4066 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4067
4068 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4069 "last_insn", "loop_end" from rtx to rtx_insn *.
4070
4071 * hw-doloop.c (scan_loop): Likewise for local "insn".
4072 (discover_loop): Likewise for param "tail_insn".
4073 (discover_loops): Likewise for local "tail".
4074
4075 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4076 cast to rtx_insn * when assigning from an rtx local to a
4077 hwloop_info's "last_insn" field.
4078
4079 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4080
4081 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4082 (add_delay_dependencies): Strengthen local "pro" from rtx to
4083 rtx_insn *.
4084 (recompute_todo_spec): Likewise.
4085 (dep_cost_1): Likewise for locals "insn", "used".
4086 (schedule_insn): Likewise for local "dbg".
4087 (schedule_insn): Likewise for locals "pro", "next".
4088 (unschedule_insns_until): Likewise for local "con".
4089 (restore_pattern): Likewise for local "next".
4090 (estimate_insn_tick): Likewise for local "pro".
4091 (resolve_dependencies): Likewise for local "next".
4092 (fix_inter_tick): Likewise.
4093 (fix_tick_ready): Likewise for local "pro".
4094 (add_to_speculative_block): Likewise for locals "check", "twin",
4095 "pro".
4096 (sched_extend_bb): Likewise for locals "end", "insn".
4097 (init_before_recovery): Likewise for local "x".
4098 (sched_create_recovery_block): Likewise for local "barrier".
4099 (create_check_block_twin): Likewise for local "pro".
4100 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4101 "consumer".
4102 (unlink_bb_notes): Update for change to type of bb_header.
4103 Strengthen locals "prev", "label", "note", "next" from rtx to
4104 rtx_insn *.
4105 (clear_priorities): Likewise for local "pro".
4106
4107 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4108
4109 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4110 rtx_insn *.
4111 (test_insn): Likewise for this global.
4112 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4113 const rtx_insn *.
4114 (oprs_anticipatable_p): Likewise.
4115 (oprs_available_p): Likewise.
4116 (insert_expr_in_table): Strengthen param "insn" from rtx to
4117 rtx_insn *.
4118 (hash_scan_set): Likewise.
4119 (hash_scan_clobber): Likewise.
4120 (hash_scan_call): Likewise.
4121 (hash_scan_insn): Likewise.
4122 (compute_hash_table_work): Likewise for local "insn".
4123 (process_insert_insn): Likewise for return type and local "pat".
4124 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4125 "pat", "pat_end", "maybe_cc0_setter".
4126 (pre_edge_insert): Likewise for local "insn".
4127 (pre_insert_copy_insn): Likewise for param "insn".
4128 (pre_insert_copies): Likewise for local "insn".
4129 (struct set_data): Likewise for field "insn".
4130 (single_set_gcse): Likewise for param "insn".
4131 (gcse_emit_move_after): Likewise.
4132 (pre_delete): Likewise for local "insn".
4133 (update_bb_reg_pressure): Likewise for param "from" and local
4134 "insn".
4135 (should_hoist_expr_to_dom): Likewise for param "from".
4136 (hoist_code): Likewise for local "insn".
4137 (get_pressure_class_and_nregs): Likewise for param "insn".
4138 (calculate_bb_reg_pressure): Likewise for local "insn".
4139 (compute_ld_motion_mems): Likewise.
4140
4141 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4142
4143 * genpeep.c (main): Rename param back from "uncast_ins1" to
4144 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4145 checked cast.
4146
4147 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4148
4149 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4150
4151 PR target/62195
4152 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4153 documentation to state it is only for VSX operations.
4154
4155 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4156 constraint only active if VSX.
4157
4158 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4159 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4160 (lfiwzx): Likewise.
4161
4162 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4163
4164 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4165 Strengthen local "insn" from rtx to rtx_insn *.
4166 (use_killed_between): Likewise for param "target_insn".
4167 (all_uses_available_at): Likewise for param "target_insn" and
4168 local "next".
4169 (update_df_init): Likewise for params "def_insn", "insn".
4170 (update_df): Likewise for param "insn".
4171 (try_fwprop_subst): Likewise for param "def_insn" and local
4172 "insn".
4173 (free_load_extend): Likewise for param "insn".
4174 (forward_propagate_subreg): Likewise for param "def_insn" and
4175 local "use_insn".
4176 (forward_propagate_asm): Likewise for param "def_insn" and local
4177 "use_insn".
4178 (forward_propagate_and_simplify): Likewise for param "def_insn"
4179 and local "use_insn".
4180 (forward_propagate_into): Likewise for locals "def_insn" and
4181 "use_insn".
4182
4183 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4184
4185 * function.c (emit_initial_value_sets): Strengthen local "seq"
4186 from rtx to rtx_insn *.
4187 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4188 local "seq".
4189 (instantiate_virtual_regs): Likewise for local "insn".
4190 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4191 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4192 (expand_function_end): Likewise for locals "insn" and "seq".
4193 (epilogue_done): Likewise for local "insn".
4194 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4195 "last", "trial".
4196 (reposition_prologue_and_epilogue_notes): Likewise for locals
4197 "insn", "last", "note", "first".
4198 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4199 (pass_match_asm_constraints::execute): Likewise for local "insn".
4200
4201 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4202
4203 * output.h (final_scan_insn): Strengthen return type from rtx to
4204 rtx_insn *.
4205 (final_forward_branch_p): Likewise for param.
4206 (current_output_insn): Likewise for this global.
4207
4208 * final.c (rtx debug_insn): Likewise for this variable.
4209 (current_output_insn): Likewise.
4210 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4211 adding "insn" back in as an rtx_insn * with a checked cast, so
4212 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4213 first param.
4214 (compute_alignments): Strengthen local "label" from rtx to
4215 rtx_insn *.
4216 (shorten_branches): Rename param from "first" to "uncast_first",
4217 introducing a new local rtx_insn * "first" using a checked cast to
4218 effectively strengthen "first" from rtx to rtx_insn * without
4219 affecting the type signature. Strengthen locals "insn", "seq",
4220 "next", "label" from rtx to rtx_insn *.
4221 (change_scope): Strengthen param "orig_insn" and local "insn" from
4222 rtx to rtx_insn *.
4223 (final_start_function): Rename param from "first" to "uncast_first",
4224 introducing a new local rtx_insn * "first" using a checked cast to
4225 effectively strengthen "first" from rtx to rtx_insn * without
4226 affecting the type signature. Strengthen local "insn" from rtx to
4227 rtx_insn *.
4228 (dump_basic_block_info): Strengthen param "insn" from rtx to
4229 rtx_insn *.
4230 (final): Rename param from "first" to "uncast_first",
4231 introducing a new local rtx_insn * "first" using a checked cast to
4232 effectively strengthen "first" from rtx to rtx_insn * without
4233 affecting the type signature. Strengthen locals "insn", "next"
4234 from rtx to rtx_insn *.
4235 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4236 rtx_insn *.
4237 (call_from_call_insn): Strengthen param "insn" from rtx to
4238 rtx_call_insn *.
4239 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4240 introducing a new local rtx_insn * "insn" using a checked cast to
4241 effectively strengthen "insn" from rtx to rtx_insn * without
4242 affecting the type signature. Strengthen return type and locals
4243 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4244 now-redundant checked cast to rtx_insn * from both invocations of
4245 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4246 introducing a local "call_insn" for use when invoking
4247 call_from_call_insn.
4248 (notice_source_line): Strengthen param "insn" from rtx to
4249 rtx_insn *.
4250 (leaf_function_p): Likewise for local "insn".
4251 (final_forward_branch_p): Likewise.
4252 (leaf_renumber_regs): Likewise for param "first".
4253 (rest_of_clean_state): Likewise for locals "insn" and "next".
4254 (self_recursive_call_p): Likewise for param "insn".
4255 (collect_fn_hard_reg_usage): Likewise for local "insn".
4256 (get_call_fndecl): Likewise for param "insn".
4257 (get_call_cgraph_rtl_info): Likewise.
4258 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4259 introducing a new local rtx_insn * "insn" using a checked cast to
4260 effectively strengthen "insn" from rtx to rtx_insn * without
4261 affecting the type signature.
4262
4263 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4264 cast when assigning from param "insn" to current_output_insn.
4265 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4266 so that we can assign it back to current_output_insn.
4267
4268 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4269
4270 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4271 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4272 atmxt540s and atmxt540sreva devices.
4273 * config/avr/avr-tables.opt: Regenerate.
4274 * config/avr/t-multilib: Regenerate.
4275 * doc/avr-mmcu.texi: Regenerate.
4276
4277 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4278
4279 * expr.c (convert_move): Strengthen local "insns" from rtx to
4280 rtx_insn *.
4281 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4282 "top_label" from rtx to rtx_code_label *.
4283 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4284 rtx_insn *.
4285 (emit_single_push_insn): Likewise for locals "prev", "last".
4286 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4287 to rtx_code_label *.
4288 (store_constructor): Likewise for locals "loop_start", "loop_end".
4289 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4290 rtx_insn *.
4291 (expand_expr_real_2): Likewise.
4292 (expand_expr_real_1): Strengthen local "label" from rtx to
4293 rtx_code_label *.
4294
4295 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4296
4297 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4298 from rtx to rtx_insn *.
4299 (store_bit_field_1): Likewise.
4300 (extract_bit_field_1): Likewise.
4301 (expand_mult_const): Likewise for local "insns".
4302 (expmed_mult_highpart): Strengthen local "label" from rtx to
4303 rtx_code_label *.
4304 (expand_smod_pow2): Likewise.
4305 (expand_sdiv_pow2): Likewise.
4306 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4307 rtx_insn *. Strengthen locals "label", "label1", "label2",
4308 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4309 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4310 (emit_store_flag): Likewise.
4311 (emit_store_flag_force): Strengthen local "label" from rtx to
4312 rtx_code_label *.
4313 (do_cmp_and_jump): Likewise for param "label".
4314
4315 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4316
4317 * explow.c (force_reg): Strengthen local "insn" from rtx to
4318 rtx_insn *.
4319 (adjust_stack_1): Likewise.
4320 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4321 "final_label", "available_label", "space_available" from rtx to
4322 rtx_code_label *.
4323 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4324 (anti_adjust_stack_and_probe): Likewise.
4325
4326 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4327
4328 * except.h (sjlj_emit_function_exit_after): Strengthen param
4329 "after" from rtx to rtx_insn *. This is only called with
4330 result of get_last_insn (in function.c) so type-change should be
4331 self-contained.
4332
4333 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4334 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4335 to rtx_insn *. These fields are only used from except.c so this
4336 type-change should be self-contained to this patch.
4337
4338 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4339 local "last" from rtx to rtx_insn *.
4340 (dw2_build_landing_pads): Likewise for local "seq".
4341 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4342 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4343 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4344 rtx to rtx_insn *.
4345 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4346 to rtx_insn *.
4347 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4348 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4349 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4350 referring to an insn. Strengthen local "dispatch_label" from
4351 rtx to rtx_code_label *.
4352 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4353 rtx_insn *.
4354 (expand_eh_return): Strengthen local "around_label" from
4355 rtx to rtx_code_label *.
4356 (convert_to_eh_region_ranges): Strengthen locals "iter",
4357 "last_action_insn", "first_no_action_insn",
4358 "first_no_action_insn_before_switch",
4359 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4360
4361 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4362
4363 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4364 from rtx to rtx_insn *.
4365 (cached_next_real_insn): Likewise.
4366 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4367 working with insns.
4368 (dwarf2out_var_location): Strengthen locals "next_real",
4369 "next_note", "expected_next_loc_note", "last_start", "insn" from
4370 rtx to rtx_insn *.
4371
4372 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4373
4374 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4375 from rtx to rtx_insn *.
4376 (create_pseudo_cfg): Likewise for local "insn".
4377
4378 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4379
4380 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4381 from rtx to rtx_insn *.
4382 (df_bb_regno_last_def_find): Likewise.
4383
4384 * df-problems.c (df_rd_bb_local_compute): Likewise.
4385 (df_lr_bb_local_compute): Likewise.
4386 (df_live_bb_local_compute): Likewise.
4387 (df_chain_remove_problem): Likewise.
4388 (df_chain_create_bb): Likewise.
4389 (df_word_lr_bb_local_compute): Likewise.
4390 (df_remove_dead_eq_notes): Likewise for param "insn".
4391 (df_note_bb_compute): Likewise for local "insn".
4392 (simulate_backwards_to_point): Likewise.
4393 (df_md_bb_local_compute): Likewise.
4394
4395 * df-scan.c (df_scan_free_bb_info): Likewise.
4396 (df_scan_start_dump): Likewise.
4397 (df_scan_start_block): Likewise.
4398 (df_install_ref_incremental): Likewise for local "insn".
4399 (df_insn_rescan_all): Likewise.
4400 (df_reorganize_refs_by_reg_by_insn): Likewise.
4401 (df_reorganize_refs_by_insn_bb): Likewise.
4402 (df_recompute_luids): Likewise.
4403 (df_bb_refs_record): Likewise.
4404 (df_update_entry_exit_and_calls): Likewise.
4405 (df_bb_verify): Likewise.
4406
4407 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4408
4409 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4410 "first_note" from rtx to rtx_insn *.
4411 (get_node_of_insn): Likewise for param 2 "insn".
4412 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4413
4414 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4415 rtx_insn *.
4416 (mem_write_insn_p): Likewise.
4417 (mem_access_insn_p): Likewise.
4418 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4419 (def_has_ccmode_p): Likewise for param "insn".
4420 (add_cross_iteration_register_deps): Likewise for locals
4421 "def_insn" and "use_insn".
4422 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4423 (build_intra_loop_deps): Likewise for local "src_insn".
4424 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4425 to rtx_insn *.
4426 (get_node_of_insn): Likewise for param "insn".
4427
4428 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4429
4430 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4431 (deletable_insn_p): Strengthen param "insn" from rtx to
4432 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4433 find_call_stack_args, since this is guarded by CALL_P (insn).
4434 (marked_insn_p): Strengthen param "insn" from rtx to
4435 rtx_insn *.
4436 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4437 invoking find_call_stack_args, since this is guarded by
4438 CALL_P (insn).
4439 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4440 rtx_insn *; we know this is an insn since this was called by
4441 mark_nonreg_stores.
4442 (mark_nonreg_stores_2): Likewise.
4443 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4444 rtx_insn *.
4445 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4446 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4447 to rtx_insn *.
4448 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4449 from rtx to rtx_insn *.
4450 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4451 "next", "ref_insn".
4452 (delete_unmarked_insns): Likewise for locals "insn", "next".
4453 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4454 (mark_reg_dependencies): Likewise for param "insn".
4455 (rest_of_handle_ud_dce): Likewise for local "insn".
4456 (word_dce_process_block): Likewise.
4457 (dce_process_block): Likewise.
4458
4459 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4460
4461 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4462 from rtx to rtx_insn *.
4463 (struct change_cc_mode_args): Likewise for field "insn".
4464 (this_insn): Strengthen from rtx to rtx_insn *.
4465 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4466 with insn.
4467 (validate_canon_reg): Strengthen param "insn" from rtx to
4468 rtx_insn *.
4469 (canon_reg): Likewise.
4470 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4471 dealing with insn.
4472 (record_jump_equiv): Strengthen param "insn" from rtx to
4473 rtx_insn *.
4474 (try_back_substitute_reg): Likewise, also for locals "prev",
4475 "bb_head".
4476 (find_sets_in_insn): Likewise for param "insn".
4477 (canonicalize_insn): Likewise.
4478 (cse_insn): Likewise. Add a checked cast.
4479 (invalidate_from_clobbers): Likewise for param "insn".
4480 (invalidate_from_sets_and_clobbers): Likewise.
4481 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4482 dealing with insn.
4483 (cse_prescan_path): Strengthen local "insn" from rtx to
4484 rtx_insn *.
4485 (cse_extended_basic_block): Likewise for locals "insn" and
4486 "prev_insn".
4487 (cse_main): Likewise for param "f".
4488 (check_for_label_ref): Likewise for local "insn".
4489 (set_live_p): Likewise for second param ("insn").
4490 (insn_live_p): Likewise for first param ("insn") and for local
4491 "next".
4492 (cse_change_cc_mode_insn): Likewise for first param "insn".
4493 (cse_change_cc_mode_insns): Likewise for first and second params
4494 "start" and "end".
4495 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4496 and "end".
4497 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4498 "cc_src_insn".
4499
4500 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4501 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4502 Anna Tikhonova <anna.tikhonova@intel.com>
4503 Ilya Tocar <ilya.tocar@intel.com>
4504 Andrey Turetskiy <andrey.turetskiy@intel.com>
4505 Ilya Verbin <ilya.verbin@intel.com>
4506 Kirill Yukhin <kirill.yukhin@intel.com>
4507 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4508
4509 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4510 New.
4511 * config/i386/sse.md
4512 (define_mode_iterator VI248_AVX2): Delete.
4513 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4514 (define_mode_iterator VI48_AVX2): Ditto.
4515 (define_insn <shift_insn><mode>3): Delete.
4516 (define_insn "<shift_insn><mode>3<mask_name>" with
4517 VI2_AVX2_AVX512BW): New.
4518 (define_insn "<shift_insn><mode>3<mask_name>" with
4519 VI48_AVX2): Ditto.
4520
4521 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4522 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4523 Anna Tikhonova <anna.tikhonova@intel.com>
4524 Ilya Tocar <ilya.tocar@intel.com>
4525 Andrey Turetskiy <andrey.turetskiy@intel.com>
4526 Ilya Verbin <ilya.verbin@intel.com>
4527 Kirill Yukhin <kirill.yukhin@intel.com>
4528 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4529
4530 * config/i386/sse.md
4531 (define_mode_iterator VI4F_BRCST32x2): New.
4532 (define_mode_attr 64x2_mode): Ditto.
4533 (define_mode_attr 32x2mode): Ditto.
4534 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4535 with VI4F_BRCST32x2): Ditto.
4536 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4537 with V16FI mode iterator): Ditto.
4538 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4539 with V16FI): Ditto.
4540 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4541 with VI8F_BRCST64x2): Ditto.
4542
4543 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4544 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4545 Anna Tikhonova <anna.tikhonova@intel.com>
4546 Ilya Tocar <ilya.tocar@intel.com>
4547 Andrey Turetskiy <andrey.turetskiy@intel.com>
4548 Ilya Verbin <ilya.verbin@intel.com>
4549 Kirill Yukhin <kirill.yukhin@intel.com>
4550 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4551
4552 * config/i386/sse.md
4553 (define_mode_iterator VI8_AVX512VL): New.
4554 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4555
4556 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4557
4558 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4559 (define_mode_iterator V48_AVX512VL): New.
4560 (define_mode_iterator V12_AVX512VL): Ditto.
4561 (define_insn <avx512>_load<mode>_mask): Split into two similar
4562 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4563 Refactor output template.
4564 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4565
4566 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4567
4568 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4569 rtx_insn *.
4570 (reg_available_p): Likewise for param "insn".
4571 (insert_set_in_table): Likewise.
4572 (hash_scan_set): Likewise.
4573 (hash_scan_insn): Likewise.
4574 (make_set_regs_unavailable): Likewise.
4575 (compute_hash_table_work): Likewise for local "insn".
4576 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4577 const rtx_insn *.
4578 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4579 (try_replace_reg): Likewise.
4580 (find_avail_set): Likewise.
4581 (cprop_jump): Likewise for params "setcc", "jump".
4582 (constprop_register): Likewise for param "insn".
4583 (cprop_insn): Likewise.
4584 (do_local_cprop): Likewise.
4585 (local_cprop_pass): Likewise for local "insn".
4586 (bypass_block): Likewise for params "setcc" and "jump".
4587 (bypass_conditional_jumps): Likewise for locals "setcc" and
4588 "insn".
4589 (one_cprop_pass): Likewise for local "insn".
4590
4591 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4592
4593 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4594 from rtx to rtx_insn *.
4595 (struct comparison): Likewise, also for field "prev_clobber".
4596 (conforming_compare): Likewise for param "insn".
4597 (arithmetic_flags_clobber_p): Likewise.
4598 (find_flags_uses_in_insn): Likewise.
4599 (find_comparison_dom_walker::before_dom_children): Likewise for
4600 locals "insn", "next", "last_clobber".
4601 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4602
4603 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4604
4605 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4606 "insn" from rtx to rtx_insn *.
4607 (single_set_for_csa): Likewise for param "insn".
4608 (record_one_stack_ref): Likewise.
4609 (try_apply_stack_adjustment): Likewise.
4610 (struct record_stack_refs_data): Likewise for field "insn".
4611 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4612 (prev_active_insn_bb): Likewise for return type and param "insn".
4613 (next_active_insn_bb): Likewise.
4614 (force_move_args_size_note): Likewise for params "prev" and "last"
4615 and locals "test", "next_candidate", "prev_candidate".
4616 (combine_stack_adjustments_for_block): Strengthen locals
4617 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4618 rtx_insn *.
4619
4620 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4621
4622 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4623 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4624 (subst_insn): Likewise for this variable.
4625 (added_links_insn): Likewise.
4626 (struct insn_link): Likewise for field "insn".
4627 (alloc_insn_link): Likewise for param "insn".
4628 (struct undobuf): Likewise for field "other_insn".
4629 (find_single_use): Likewise for param "insn" and local "next".
4630 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4631 (delete_noop_moves): Likewise for locals "insn", "next".
4632 (create_log_links): Likewise for locals "insn", "use_insn".
4633 Strengthen local "next_use" from rtx * to rtx_insn **.
4634 (insn_a_feeds_b): Likewise for params "a", "b".
4635 (combine_instructions): Likewise for param "f" and locals "insn",
4636 "next", "prev", "first", "last_combined_insn", "link", "link1",
4637 "temp". Replace use of NULL_RTX with NULL when referring to
4638 insns.
4639 (setup_incoming_promotions): Likewise for param "first"
4640 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4641 (can_combine_p): Likewise for params "insn", "i3", "pred",
4642 "pred2", "succ", "succ2" and for local "p".
4643 (combinable_i3pat): Likewise for param "i3".
4644 (cant_combine_insn_p): Likewise for param "insn".
4645 (likely_spilled_retval_p): Likewise.
4646 (adjust_for_new_dest): Likewise.
4647 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4648 (try_combine): Likewise for return type and for params "i3", "i2",
4649 "i1", "i0", "last_combined_insn", and for locals "insn",
4650 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4651 "i0_insn". Eliminate local "tem" in favor of new locals
4652 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4653 checked cast for now to rtx_insn * on the return type of
4654 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4655 insns.
4656 (find_split_point): Strengthen param "insn" from rtx to
4657 rtx_insn *.
4658 (simplify_set): Likewise for local "other_insn".
4659 (recog_for_combine): Likewise for param "insn".
4660 (record_value_for_reg): Likewise.
4661 (record_dead_and_set_regs_1): Likewise for local
4662 "record_dead_insn".
4663 (record_dead_and_set_regs): Likewise for param "insn".
4664 (record_promoted_value): Likewise.
4665 (check_promoted_subreg): Likewise.
4666 (get_last_value_validate): Likewise.
4667 (reg_dead_at_p): Likewise.
4668 (move_deaths): Likewise for param "to_insn".
4669 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4670 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4671 in favor of new locals "tem_note" and "tem_insn", the latter being
4672 an rtx_insn *.
4673 (distribute_links): Strengthen locals "place", "insn" from rtx to
4674 rtx_insn *.
4675
4676 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4677
4678 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4679 than a const_rtx.
4680 (can_delete_label_p): Require a const rtx_code_label * rather than
4681 a const_rtx.
4682 (delete_insn): Add checked cast to rtx_code_label * when we know
4683 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4684 rtx to rtx_insn *.
4685 (delete_insn_chain): Strengthen locals "prev" and "current" from
4686 rtx to rtx_insn *. Add a checked cast when assigning from
4687 "finish" (strengthening the params will come later). Add a
4688 checked cast to rtx_note * in region where we know
4689 NOTE_P (current).
4690 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4691 rtx_insn *.
4692 (compute_bb_for_insn): Likewise.
4693 (free_bb_for_insn): Likewise for local "insn".
4694 (compute_bb_for_insn): Likewise.
4695 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4696 local "insn" from rtx to rtx_insn *
4697 (flow_active_insn_p): Require a const rtx_insn * rather than a
4698 const_rtx.
4699 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4700 rtx_insn *.
4701 (can_fallthru): Likewise for locals "insn" and "insn2".
4702 (bb_note): Likewise for local "note".
4703 (first_insn_after_basic_block_note): Likewise for local "note" and
4704 for return type.
4705 (rtl_split_block): Likewise for locals "insn" and "next".
4706 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4707 "end".
4708 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4709 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4710 "prev", "tmp".
4711 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4712 them), "kill_from", "barrier", "new_insn".
4713 (patch_jump_insn): Likewise for params "insn", "old_label".
4714 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4715 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4716 "old_label", "new_label".
4717 (rtl_tidy_fallthru_edge): Likewise for local "q".
4718 (rtl_split_edge): Likewise for locals "before", "last".
4719 (commit_one_edge_insertion): Likewise for locals "before",
4720 "after", "insns", "tmp", "last", adding a checked cast where
4721 currently necessary.
4722 (commit_edge_insertions): Likewise.
4723 (rtl_dump_bb): Likewise for locals "insn", "last".
4724 (print_rtl_with_bb): Likewise for local "x".
4725 (rtl_verify_bb_insns): Likewise for local "x".
4726 (rtl_verify_bb_pointers): Likewise for local "insn".
4727 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4728 "head", "end".
4729 (rtl_verify_fallthru): Likewise for local "insn".
4730 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4731 (purge_dead_edges): Likewise for local "insn".
4732 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4733 (skip_insns_after_block): Likewise for return type and for locals
4734 "insn", "last_insn", "next_head", "prev".
4735 (record_effective_endpoints): Likewise for locals "next_insn",
4736 "insn", "end".
4737 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4738 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4739 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4740 (duplicate_insn_chain): For now, add checked cast from rtx to
4741 rtx_insn * when returning insn.
4742 (cfg_layout_duplicate_bb): Likewise for local "insn".
4743 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4744 "prev", "remaints".
4745 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4746 (rtl_block_empty_p): Likewise.
4747 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4748 "split_point", "last".
4749 (rtl_block_ends_with_call_p): Likewise for local "insn".
4750 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4751 const rtx_insn *.
4752 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4753 "split_at_insn" from rtx to rtx_insn *.
4754 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4755 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4756 to const rtx_insn *.
4757 (rtl_account_profile_record): Likewise.
4758
4759 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4760
4761 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4762 rtx to rtx_insn *.
4763 (average_num_loop_insns): Likewise.
4764 (init_set_costs): Likewise for local "seq".
4765 (seq_cost): Likewise for param "seq", from const_rtx to const
4766 rtx_insn *.
4767
4768 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4769
4770 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4771 rtx to rtx_insn *.
4772
4773 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4774
4775 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4776 "f1" and "f2" from rtx * to rtx_insn **.
4777 (flow_find_head_matching_sequence): Likewise.
4778
4779 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4780 "cbranch_insn" from rtx to rtx_insn *.
4781 (thread_jump): Likewise for local "insn".
4782 (try_forward_edges): Likewise for local "last".
4783 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4784 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4785 "real_b_end".
4786 (can_replace_by): Likewise for params "i1", "i2".
4787 (old_insns_match_p): Likewise.
4788 (merge_notes): Likewise.
4789 (walk_to_nondebug_insn): Likewise for param "i1".
4790 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4791 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4792 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4793 (flow_find_head_matching_sequence): Strengthen params "f1" and
4794 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4795 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4796 rtx_insn *.
4797 (outgoing_edges_match): Likewise for locals "last1", "last2".
4798 (try_crossjump_to_edge): Likewise for local "insn".
4799 Replace call to for_each_rtx with for_each_rtx_in_insn.
4800
4801 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4802 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4803 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4804 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4805 (try_optimize_cfg): Strengthen local "last" from rtx to
4806 rtx_insn *.
4807 (delete_dead_jumptables): Likewise for locals "insn", "next",
4808 "label".
4809
4810 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4811 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4812 "rtx else_first_tail", to reflect the basic-block.h changes above.
4813
4814 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4815
4816 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4817 rtx_insn *.
4818 (purge_dead_tablejump_edges): Likewise.
4819 (find_bb_boundaries): Likewise for locals "insn", "end",
4820 "flow_transfer_insn".
4821
4822 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4823
4824 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4825 "ins" and "prev" from rtx to rtx_insn *.
4826
4827 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4828
4829 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4830 rtx_insn *.
4831 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4832 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4833 "scan_start".
4834 (load_register_parameters): Likewise for local "before_arg".
4835 (check_sibcall_argument_overlap): Likewise for param "insn".
4836 (expand_call): Likewise for locals "normal_call_insns",
4837 "tail_call_insns", "insns", "before_call", "after_args",
4838 "before_arg", "last", "prev". Strengthen one of the "last" from
4839 rtx to rtx_call_insn *.
4840 (fixup_tail_calls): Strengthen local "insn" from rtx to
4841 rtx_insn *.
4842 (emit_library_call_value_1): Likewise for locals "before_call" and
4843 "last".
4844
4845 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4846
4847 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4848 and "last" from rtx to rtx_insn *.
4849 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4850 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4851 rtx_call_insn *.
4852 (expand_errno_check): Strengthen local "lab" from rtx to
4853 rtx_code_label *.
4854 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4855 rtx_insn *.
4856 (expand_builtin_mathfn_2): Likewise.
4857 (expand_builtin_mathfn_ternary): Likewise.
4858 (expand_builtin_mathfn_3): Likewise.
4859 (expand_builtin_interclass_mathfn): Likewise for local "last".
4860 (expand_builtin_int_roundingfn): Likewise for local "insns".
4861 (expand_builtin_int_roundingfn_2): Likewise.
4862 (expand_builtin_strlen): Likewise for local "before_strlen".
4863 (expand_builtin_strncmp): Likewise for local "seq".
4864 (expand_builtin_signbit): Likewise for local "last".
4865 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4866 from rtx to rtx_code_label *.
4867 (expand_stack_restore): Strengthen local "prev" from rtx to
4868 rtx_insn *.
4869
4870 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4871
4872 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4873 to rtx_insn *.
4874 (struct btr_def_s): Likewise.
4875 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4876 const rtx_insn *.
4877 (add_btr_def): Likewise.
4878 (new_btr_user): Likewise.
4879 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4880 rtx to rtx_insn *.
4881 (link_btr_uses): Likewise.
4882 (move_btr_def): Likewise for locals "insp", "old_insn",
4883 "new_insn". Add checked cast to rtx_insn * for now on result of
4884 gen_move_insn.
4885 (can_move_up): Strengthen param "insn" from const_rtx to
4886 const rtx_insn *.
4887
4888 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4889
4890 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4891 rtx_insn *.
4892 (get_uncond_jump_length): Likewise for locals "label", "jump".
4893 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4894 "jump", "insn".
4895 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4896 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4897 (find_jump_block): Likewise for local "insn".
4898 (fix_crossing_conditional_branches): Likewise for locals
4899 "old_jump", "new_jump".
4900 (fix_crossing_unconditional_branches): Likewise for locals
4901 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4902 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4903
4904 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4905
4906 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4907 rtx to rtx_insn *.
4908 (struct mem_insn): Likewise for field "insn".
4909 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4910 (reg_next_inc_use): Likewise.
4911 (reg_next_def): Likewise.
4912 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4913 from rtx to rtx_insn *.
4914 (move_insn_before): Likewise for param "next_insn" and local "insns".
4915 (attempt_change): Likewise for local "mov_insn".
4916 (try_merge): Likewise for param "last_insn".
4917 (get_next_ref): Likewise for return type and local "insn".
4918 Strengthen param "next_array" from rtx * to rtx_insn **.
4919 (parse_add_or_inc): Strengthen param "insn" from rtx to
4920 rtx_insn *.
4921 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4922 the latter).
4923 (merge_in_block): Likewise for locals "insn", "curr",
4924 "other_insn".
4925 (pass_inc_dec::execute): Update allocations of the arrays to
4926 reflect the stronger types.
4927
4928 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4929
4930 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4931 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4932 from rtx to rtx_code_label *.
4933
4934 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4935
4936 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4937 to rtx_insn *.
4938
4939 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4940
4941 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4942 generated a warning and prevented bootstrapping the compiler.
4943
4944 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4945
4946 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4947 rtx_insn *.
4948
4949 * jump.c (delete_related_insns): Likewise, also for locals "next"
4950 and "prev".
4951
4952 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4953
4954 * genautomata.c (output_internal_insn_latency_func): When writing
4955 the function "internal_insn_latency" to insn-automata.c,
4956 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4957 allowing the optional guard function of (define_bypass) clauses to
4958 expect a pair of rtx_insn *, rather than a pair of rtx.
4959 (output_insn_latency_func): When writing the function
4960 "insn_latency", add an "uncast_" prefix to params "insn" and
4961 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4962 using checked casts from the params, thus enabling the above
4963 change to the generated "internal_insn_latency" function.
4964
4965 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4966
4967 PR tree-optimization/62091
4968 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4969 handle correctly arrays.
4970 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4971 inheritance binfos.
4972 (record_known_type): Walk into inner type.
4973 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4974 condition on no type changes.
4975
4976 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4977
4978 * genattrtab.c (write_attr_get): Within the generated get_attr_
4979 functions, rename param "insn" to "uncast_insn" and reintroduce
4980 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4981 is an rtx_insn * within insn-attrtab.c
4982
4983 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4984
4985 * output.h (peephole): Strengthen return type from rtx to
4986 rtx_insn *.
4987 * rtl.h (delete_for_peephole): Likewise for both params.
4988 * genpeep.c (main): In generated "peephole" function, strengthen
4989 return type and local "insn" from rtx to rtx_insn *. For now,
4990 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4991 rtx_insn *, with a checked cast.
4992 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4993 locals "insn", "next", "prev" from rtx to rtx_insn *.
4994
4995 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4996
4997 PR tree-optimization/62112
4998 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4999 * gimple-iterator.h (gsi_replace): Return bool.
5000 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
5001 moved from ref_may_alias_global_p.
5002 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
5003 New overloads.
5004 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
5005 (stmt_kills_ref_p_1): Rename...
5006 (stmt_kills_ref_p): ... to this.
5007 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
5008 stmt_kills_ref_p): Declare.
5009 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
5010 Move the self-assignment case...
5011 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
5012
5013 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5014
5015 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
5016
5017 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5018 "after". For now, don't strengthen param "trial", which requires
5019 adding checked casts when returning it.
5020
5021 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5022
5023 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5024 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5025 "var_location" hook from rtx to rtx_insn *.
5026 (debug_nothing_rtx): Delete in favor of...
5027 (debug_nothing_rtx_code_label): New prototype.
5028 (debug_nothing_rtx_rtx): Delete unused prototype.
5029 (debug_nothing_rtx_insn): New prototype.
5030
5031 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5032 invoking debug_hooks->var_location (in two places, one in a NOTE
5033 case of a switch statement, the other guarded by a CALL_P
5034 conditional. Add checked cast to rtx_code_label * when invoking
5035 debug_hooks->label (within CODE_LABEL case of switch statement).
5036
5037 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5038 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5039 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5040 (xcoff_debug_hooks): Likewise.
5041 * debug.c (do_nothing_debug_hooks): Likewise.
5042 (debug_nothing_rtx): Delete in favor of...
5043 (debug_nothing_rtx_insn): New function.
5044 (debug_nothing_rtx_rtx): Delete unused function.
5045 (debug_nothing_rtx_code_label): New function.
5046 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5047 debug_nothing_rtx to debug_nothing_rtx_code_label.
5048 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5049 to rtx_insn *.
5050 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5051 debug_nothing_rtx to debug_nothing_rtx_insn.
5052 (sdbout_label): Strengthen param "insn" from rtx to
5053 rtx_code_label *.
5054 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5055 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5056 "var_location" hook from debug_nothing_rtx to
5057 debug_nothing_rtx_insn.
5058
5059 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5060
5061 * recog.h (insn_output_fn): Update this function typedef to match
5062 the changes below to the generated output functions, strengthening
5063 the 2nd param from rtx to rtx_insn *.
5064
5065 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5066 insn when invoking an output function, to match the new signature
5067 of insn_output_fn with a stronger second param.
5068
5069 * genconditions.c (write_header): In the generated code for
5070 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5071 to match the other changes in this patch.
5072
5073 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5074 the generated "gen_" functions from rtx to rtx_insn * within their
5075 implementations.
5076
5077 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5078 the subfunctions within the generated "recog_", "split", "peephole2"
5079 function trees from rtx to rtx_insn *. For now, the top-level
5080 generated functions ("recog", "split", "peephole2") continue to
5081 take a plain rtx for "insn", to avoid introducing dependencies on
5082 other patches. Rename this 2nd param from "insn" to
5083 "uncast_insn", and reintroduce "insn" as a local variable of type
5084 rtx_insn *, initialized at the top of the generated function with
5085 a checked cast on "uncast_insn".
5086 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5087 the generated "gen_" functions from rtx to rtx_insn * within their
5088 prototypes.
5089
5090 * genoutput.c (process_template): Strengthen the 2nd param within
5091 the generated "output_" functions "insn" from rtx to rtx_insn *.
5092
5093 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5094
5095 * tree-profile.c (tree_profiling): Skip external functions
5096 when doing coverage instrumentation.
5097 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5098
5099 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5100
5101 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5102 (vec_mergee): Likewise.
5103 (vec_mergeo): Likewise.
5104 (vec_cntlz): Likewise.
5105 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5106 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5107 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5108 VMRGEW, and VMRGOW.
5109 * doc/extend.texi: Document various forms of vec_cpsgn,
5110 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5111 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5112 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5113 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5114 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5115
5116 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5117
5118 * config/rs6000/rs6000.c (context.h): New include.
5119 (tree-pass.h): Likewise.
5120 (make_pass_analyze_swaps): New decl.
5121 (rs6000_option_override): Register pass_analyze_swaps.
5122 (swap_web_entry): New subsclass of web_entry_base (df.h).
5123 (special_handling_values): New enum.
5124 (union_defs): New function.
5125 (union_uses): Likewise.
5126 (insn_is_load_p): Likewise.
5127 (insn_is_store_p): Likewise.
5128 (insn_is_swap_p): Likewise.
5129 (rtx_is_swappable_p): Likewise.
5130 (insn_is_swappable_p): Likewise.
5131 (chain_purpose): New enum.
5132 (chain_contains_only_swaps): New function.
5133 (mark_swaps_for_removal): Likewise.
5134 (swap_const_vector_halves): Likewise.
5135 (adjust_subreg_index): Likewise.
5136 (permute_load): Likewise.
5137 (permute_store): Likewise.
5138 (handle_special_swappables): Likewise.
5139 (replace_swap_with_copy): Likewise.
5140 (dump_swap_insn_table): Likewise.
5141 (rs6000_analyze_swaps): Likewise.
5142 (pass_data_analyze_swaps): New pass_data.
5143 (pass_analyze_swaps): New rtl_opt_pass.
5144 (make_pass_analyze_swaps): New function.
5145 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5146
5147 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5148
5149 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5150 type from rtx to rtx_insn *.
5151 (create_copy_of_insn_rtx): Likewise.
5152 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5153 (create_copy_of_insn_rtx): Likewise, also for local "res".
5154
5155 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5156
5157 * rtl.h (find_first_parameter_load): Strengthen return type from
5158 rtx to rtx_insn *.
5159 * rtlanal.c (find_first_parameter_load): Strengthen return type
5160 from rtx to rtx_insn *. Add checked cast for now, to postpone
5161 strengthening the params.
5162
5163 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5164
5165 PR fortran/44054
5166 * diagnostic.c: Set default caret.
5167 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5168 line is needed.
5169 * diagnostic.h (struct diagnostic_context):
5170
5171 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5172
5173 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5174 (sel_bb_head): Strengthen return type insn_t (currently just an
5175 rtx) to rtx_insn *.
5176 (sel_bb_end): Likewise.
5177
5178 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5179 (sel_bb_head): Strengthen return type and local "head" from
5180 insn_t (currently just an rtx) to rtx_insn *.
5181 (sel_bb_end): Likewise for return type.
5182 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5183 working with insn.
5184
5185 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5186
5187 * basic-block.h (get_last_bb_insn): Strengthen return type from
5188 rtx to rtx_insn *.
5189 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5190 end".
5191
5192 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5193
5194 PR fortran/44054
5195 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5196 to here ...
5197 (diagnostic_report_diagnostic): ... from here.
5198 * toplev.c (general_init): Move code to c-family.
5199
5200 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5201
5202 * df.h (web_entry_base): Replace existing struct web_entry with a
5203 new class web_entry_base with only the predecessor member.
5204 (unionfind_root): Remove declaration and move to class member.
5205 (unionfind_union): Remove declaration and move to friend
5206 function.
5207 (union_defs): Remove declaration.
5208 * web.c (web_entry_base::unionfind_root): Modify to be member
5209 function and adjust accessors.
5210 (unionfind_union): Modify to be friend function and adjust
5211 accessors.
5212 (web_entry): New subclass of web_entry_base containing the reg
5213 member.
5214 (union_match_dups): Modify for struct -> class changes.
5215 (union_defs): Likewise.
5216 (entry_register): Likewise.
5217 (pass_web::execute): Likewise.
5218
5219 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5220
5221 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5222 builtin define __VEC_ELEMENT_REG_ORDER__.
5223
5224 2014-08-20 Martin Jambor <mjambor@suse.cz>
5225 Wei Mi <wmi@google.com>
5226
5227 PR ipa/60449
5228 PR middle-end/61776
5229 * tree-ssa-operands.c (update_stmt_operands): Remove
5230 MODIFIED_NORETURN_CALLS.
5231 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5232 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5233 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5234 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5235 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5236 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5237 (gimple_call_set_ctrl_altering): New func.
5238 (gimple_call_ctrl_altering_p): Ditto.
5239 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5240 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5241 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5242 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5243 remove MODIFIED_NORETURN_CALLS.
5244
5245 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5246
5247 * coverage.c (coverage_compute_profile_id): Return non-0;
5248 also handle symbols with unique name.
5249 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5250
5251 2014-08-20 Steve Ellcey <sellcey@mips.com>
5252
5253 PR middle-end/49191
5254 * doc/sourcebuild.texi (non_strict_align): New.
5255
5256 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5257
5258 * cgraphunit.c (ipa_passes, compile): Reshedule
5259 symtab_remove_unreachable_nodes passes; update comments.
5260 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5261 TODO_remove_functions before the pass; the functions ought to be
5262 already removed.
5263 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5264 TODO_remove_functions.
5265 * passes.c (pass_data_early_local_passes): Do not schedule function
5266 removal.
5267 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5268
5269 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5270
5271 PR c/59304
5272 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5273 before setting the option.
5274 * diagnostic.c (diagnostic_classify_diagnostic): Record
5275 command-line status.
5276
5277 2014-08-20 Richard Biener <rguenther@suse.de>
5278
5279 PR lto/62190
5280 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5281 to build uint{16,32,64}_type_node.
5282
5283 2014-08-20 Terry Guo <terry.guo@arm.com>
5284
5285 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5286 with immediate_operand.
5287
5288 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5289
5290 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5291 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5292 NULL.
5293
5294 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5295
5296 PR preprocessor/51303
5297 * incpath.c (remove_duplicates): Use cpp_warning.
5298
5299 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5300
5301 PR c/60975
5302 PR c/53063
5303 * doc/options.texi (CPP): Document it.
5304 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5305 * optc-gen.awk: Handle CPP.
5306 * opth-gen.awk: Likewise.
5307
5308 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5309
5310 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5311 rtx_insn *.
5312 (duplicate_insn_chain): Likewise.
5313 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5314 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5315 checked cast for now (until we can strengthen the params in the
5316 same way).
5317 (duplicate_insn_chain): Likewise.
5318
5319 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5320
5321 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5322 rtx_insn *.
5323 (prev_cc0_setter): Likewise.
5324
5325 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5326 rtx_insn *, adding checked casts for now as necessary.
5327 (prev_cc0_setter): Likewise.
5328
5329 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5330
5331 * expr.h (emit_move_insn): Strengthen return type from rtx to
5332 rtx_insn *.
5333 (emit_move_insn_1): Likewise.
5334 (emit_move_complex_push): Likewise.
5335 (emit_move_complex_parts): Likewise.
5336
5337 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5338 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5339 with insns.
5340 (emit_move_complex_push): Strengthen return type from rtx to
5341 rtx_insn *.
5342 (emit_move_complex): Likewise, also for local "ret".
5343 (emit_move_ccmode): Likewise.
5344 (emit_move_multi_word): Likewise for return type and locals
5345 "last_insn", "seq".
5346 (emit_move_insn_1): Likewise for return type and locals "result",
5347 "ret".
5348 (emit_move_insn): Likewise for return type and local "last_insn".
5349 (compress_float_constant): Likewise.
5350
5351 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5352
5353 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5354 from rtx to rtx_insn *.
5355
5356 * rtl.h (emit_insn_before): Likewise.
5357 (emit_insn_before_noloc): Likewise.
5358 (emit_insn_before_setloc): Likewise.
5359 (emit_jump_insn_before): Likewise.
5360 (emit_jump_insn_before_noloc): Likewise.
5361 (emit_jump_insn_before_setloc): Likewise.
5362 (emit_call_insn_before): Likewise.
5363 (emit_call_insn_before_noloc): Likewise.
5364 (emit_call_insn_before_setloc): Likewise.
5365 (emit_debug_insn_before): Likewise.
5366 (emit_debug_insn_before_noloc): Likewise.
5367 (emit_debug_insn_before_setloc): Likewise.
5368 (emit_label_before): Likewise.
5369 (emit_insn_after): Likewise.
5370 (emit_insn_after_noloc): Likewise.
5371 (emit_insn_after_setloc): Likewise.
5372 (emit_jump_insn_after): Likewise.
5373 (emit_jump_insn_after_noloc): Likewise.
5374 (emit_jump_insn_after_setloc): Likewise.
5375 (emit_call_insn_after): Likewise.
5376 (emit_call_insn_after_noloc): Likewise.
5377 (emit_call_insn_after_setloc): Likewise.
5378 (emit_debug_insn_after): Likewise.
5379 (emit_debug_insn_after_noloc): Likewise.
5380 (emit_debug_insn_after_setloc): Likewise.
5381 (emit_label_after): Likewise.
5382 (emit_insn): Likewise.
5383 (emit_debug_insn): Likewise.
5384 (emit_jump_insn): Likewise.
5385 (emit_call_insn): Likewise.
5386 (emit_label): Likewise.
5387 (gen_clobber): Likewise.
5388 (emit_clobber): Likewise.
5389 (gen_use): Likewise.
5390 (emit_use): Likewise.
5391 (emit): Likewise.
5392
5393 (emit_barrier_before): Strengthen return type from rtx to
5394 rtx_barrier *.
5395 (emit_barrier_after): Likewise.
5396 (emit_barrier): Likewise.
5397
5398 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5399 from rtx to rtx_insn *. Add checked casts for now when converting
5400 "last" from rtx to rtx_insn *.
5401 (emit_insn_before_noloc): Likewise for return type.
5402 (emit_jump_insn_before_noloc): Likewise.
5403 (emit_call_insn_before_noloc): Likewise.
5404 (emit_debug_insn_before_noloc): Likewise.
5405 (emit_barrier_before): Strengthen return type and local "insn"
5406 from rtx to rtx_barrier *.
5407 (emit_label_before): Strengthen return type from rtx to
5408 rtx_insn *. Add checked cast for now when returning param
5409 (emit_pattern_after_noloc): Strengthen return type from rtx to
5410 rtx_insn *. Add checked casts for now when converting "last" from
5411 rtx to rtx_insn *.
5412 (emit_insn_after_noloc): Strengthen return type from rtx to
5413 rtx_insn *.
5414 (emit_jump_insn_after_noloc): Likewise.
5415 (emit_call_insn_after_noloc): Likewise.
5416 (emit_debug_insn_after_noloc): Likewise.
5417 (emit_barrier_after): Strengthen return type from rtx to
5418 rtx_barrier *.
5419 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5420 Add checked cast for now when converting "label" from rtx to
5421 rtx_insn *.
5422 (emit_pattern_after_setloc): Strengthen return type from rtx to
5423 rtx_insn *. Add checked casts for now when converting "last" from
5424 rtx to rtx_insn *.
5425 (emit_pattern_after): Strengthen return type from rtx to
5426 rtx_insn *.
5427 (emit_insn_after_setloc): Likewise.
5428 (emit_insn_after): Likewise.
5429 (emit_jump_insn_after_setloc): Likewise.
5430 (emit_jump_insn_after): Likewise.
5431 (emit_call_insn_after_setloc): Likewise.
5432 (emit_call_insn_after): Likewise.
5433 (emit_debug_insn_after_setloc): Likewise.
5434 (emit_debug_insn_after): Likewise.
5435 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5436 when converting "last" from rtx to rtx_insn *.
5437 (emit_pattern_before): Strengthen return type from rtx to
5438 rtx_insn *.
5439 (emit_insn_before_setloc): Likewise.
5440 (emit_insn_before): Likewise.
5441 (emit_jump_insn_before_setloc): Likewise.
5442 (emit_jump_insn_before): Likewise.
5443 (emit_call_insn_before_setloc): Likewise.
5444 (emit_call_insn_before): Likewise.
5445 (emit_debug_insn_before_setloc): Likewise.
5446 (emit_debug_insn_before): Likewise.
5447 (emit_insn): Strengthen return type and locals "last", "insn",
5448 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5449 within cases where we know we have an insn.
5450 (emit_debug_insn): Likewise.
5451 (emit_jump_insn): Likewise.
5452 (emit_call_insn): Strengthen return type and local "insn" from rtx
5453 to rtx_insn *.
5454 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5455 a checked cast to rtx_insn * for now on "label".
5456 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5457 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5458 (emit_use): Likewise.
5459 (gen_use): Likewise, also for local "seq".
5460 (emit): Likewise for return type and local "insn".
5461 (rtx_insn): Likewise for return type and local "new_rtx".
5462
5463 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5464 from rtx to rtx_barrier *.
5465
5466 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5467 changed return type from rtx to rtx_insn *, we must update
5468 "emit_fn" type, and this in turn means updating...
5469 (frame_insn): ...this. Strengthen return type from rtx to
5470 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5471
5472 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5473
5474 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5475 rtx to rtx_jump_table_data *. Also for local.
5476 * rtl.h (emit_jump_table_data): Likewise.
5477
5478 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5479
5480 * basic-block.h (create_basic_block_structure): Strengthen third
5481 param "bb_note" from rtx to rtx_note *.
5482 * rtl.h (emit_note_before): Strengthen return type from rtx to
5483 rtx_note *.
5484 (emit_note_after): Likewise.
5485 (emit_note): Likewise.
5486 (emit_note_copy): Likewise. Also, strengthen param similarly.
5487 * function.h (struct rtl_data): Strengthen field
5488 "x_stack_check_probe_note" from rtx to rtx_note *.
5489
5490 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5491 from rtx to rtx_note *.
5492 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5493 "bb_note" from rtx to rtx_note *.
5494 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5495 when calling emit_note_copy.
5496 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5497 rtx_note *.
5498 (emit_note_after): Likewise.
5499 (emit_note_before): Likewise.
5500 (emit_note_copy): Likewise. Also, strengthen param similarly.
5501 (emit_note): Likewise.
5502 * except.c (emit_note_eh_region_end): Likewise for return type.
5503 Strengthen local "next" from rtx to rtx_insn *.
5504 (convert_to_eh_region_ranges): Strengthen local "note"
5505 from rtx to rtx_note *.
5506 * final.c (change_scope): Likewise.
5507 (reemit_insn_block_notes): Likewise, for both locals named "note".
5508 Also, strengthen local "insn" from rtx to rtx_insn *.
5509 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5510 rtx to rtx_note *.
5511 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5512 strengthen local "seq" from rtx to rtx_insn *.
5513 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5514 to rtx_note *.
5515 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5516 vec<rtx_note *>.
5517 (get_bb_note_from_pool): Strengthen return type from rtx to
5518 rtx_note *.
5519 (sel_create_basic_block): Strengthen local "new_bb_note" from
5520 insn_t to rtx_note *.
5521 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5522 "note" from rtx to rtx_note *.
5523 (emit_notes_in_bb): Likewise.
5524
5525 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5526
5527 * function.h (struct rtl_data): Strengthen field
5528 "x_parm_birth_insn" from rtx to rtx_insn *.
5529 * function.c (struct assign_parm_data_all): Strengthen fields
5530 "first_conversion_insn" and "last_conversion_insn" from rtx to
5531 rtx_insn *.
5532
5533 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5534
5535 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5536 to rtx_insn *; also for local "var_end_seq".
5537 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5538 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5539 "insn".
5540 (expand_gimple_cond): Likewise for locals "last2" and "last".
5541 (mark_transaction_restart_calls): Likewise for local "insn".
5542 (expand_gimple_stmt): Likewise for return type and locals "last"
5543 and "insn".
5544 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5545 (avoid_complex_debug_insns): Likewise for param "insn".
5546 (expand_debug_locations): Likewise for locals "insn", "last",
5547 "prev_insn" and "insn2".
5548 (expand_gimple_basic_block): Likewise for local "last".
5549 (construct_exit_block): Likewise for locals "head", "end",
5550 "orig_end".
5551 (pass_expand::execute): Likewise for locals "var_seq",
5552 "var_ret_seq", "next".
5553
5554 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5555
5556 * asan.h (asan_emit_stack_protection): Strengthen return type from
5557 rtx to rtx_insn *.
5558 * asan.c (asan_emit_stack_protection): Likewise. Add local
5559 "insns" to hold the return value.
5560
5561 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5562
5563 * basic-block.h (bb_note): Strengthen return type from rtx to
5564 rtx_note *.
5565 * sched-int.h (bb_note): Likewise.
5566 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5567
5568 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5569
5570 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5571 rtx_insn *.
5572
5573 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5574 "insn" from rtx to rtx_insn *.
5575 (make_debug_insn_raw): Strengthen return type from rtx to
5576 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5577 (make_jump_insn_raw): Strengthen return type from rtx to
5578 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5579 (make_call_insn_raw): Strengthen return type from rtx to
5580 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5581 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5582 callback from rtx to rtx_insn *; likewise for local "insn" and
5583 "next", adding a checked cast to rtx_insn in the relevant cases of
5584 the switch statement.
5585 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5586 callback from rtx to rtx_insn *.
5587 (emit_pattern_after_setloc): Likewise.
5588 (emit_pattern_after): Likewise.
5589 (emit_pattern_before_setloc): Likewise.
5590 (emit_pattern_before): Likewise.
5591
5592 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5593
5594 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5595 rtx_call_insn *.
5596 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5597 accepting an rtx_insn *.
5598 (last_call_insn): Strengthen return type from rtx to
5599 rtx_call_insn *.
5600
5601 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5602
5603 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5604 "insns" from rtx to rtx_insn *.
5605 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5606 locals "insn" and "prev".
5607
5608 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5609
5610 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5611 rtx_jump_table_data **.
5612
5613 * cfgbuild.c (make_edges): Introduce local "table", using it in
5614 place of "tmp" for jump table data.
5615 (find_bb_boundaries): Strengthen local "table" from rtx to
5616 rtx_jump_table_data *.
5617 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5618 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5619 (try_crossjump_to_edge): Likewise.
5620 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5621 "table".
5622 (patch_jump_insn): Introduce local "table", using it in place of
5623 "tmp" for jump table data.
5624 (force_nonfallthru_and_redirect): Introduce local "table", so that
5625 call to tablejump_p can receive an rtx_jump_table_data **. Update
5626 logic around the call to overwrite "note" appropriately if
5627 tablejump_p returns non-zero.
5628 (get_last_bb_insn): Introduce local "table", using it in place of
5629 "tmp" for jump table data.
5630 * dwarf2cfi.c (create_trace_edges): Likewise.
5631
5632 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5633 from rtx to rtx_jump_table_data *.
5634 (create_fix_barrier): Strengthen local "tmp" from rtx to
5635 rtx_jump_table_data *.
5636 (arm_reorg): Likewise for local "table".
5637
5638 * config/s390/s390.c (s390_chunkify_start): Likewise.
5639
5640 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5641
5642 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5643 rtx to rtx_jump_table_data *.
5644
5645 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5646 rtx_jump_table_data **. Add a checked cast when writing through
5647 the pointer: we know there that local "table" is non-NULL and that
5648 JUMP_TABLE_DATA_P (table) holds.
5649 (label_is_jump_target_p): Introduce local "table", using it in
5650 place of "tmp" for jump table data.
5651
5652 2014-08-19 Marek Polacek <polacek@redhat.com>
5653
5654 PR c++/62153
5655 * doc/invoke.texi: Document -Wbool-compare.
5656
5657 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5658
5659 * rtl.h (entry_of_function): Strengthen return type from rtx to
5660 rtx_insn *.
5661 * cfgrtl.c (entry_of_function): Likewise.
5662
5663 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5664
5665 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5666 rtx_insn *, adding a checked cast for now.
5667 (get_last_insn): Likewise.
5668
5669 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5670
5671 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5672 rtx_code_label *.
5673
5674 * emit-rtl.c (gen_label_rtx): Likewise.
5675
5676 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5677
5678 * rtl.h (previous_insn): Strengthen return type from rtx to
5679 rtx_insn *.
5680 (next_insn): Likewise.
5681 (prev_nonnote_insn): Likewise.
5682 (prev_nonnote_insn_bb): Likewise.
5683 (next_nonnote_insn): Likewise.
5684 (next_nonnote_insn_bb): Likewise.
5685 (prev_nondebug_insn): Likewise.
5686 (next_nondebug_insn): Likewise.
5687 (prev_nonnote_nondebug_insn): Likewise.
5688 (next_nonnote_nondebug_insn): Likewise.
5689 (prev_real_insn): Likewise.
5690 (next_real_insn): Likewise.
5691 (prev_active_insn): Likewise.
5692 (next_active_insn): Likewise.
5693
5694 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5695 rtx_insn *, adding a checked cast.
5696 (previous_insn): Likewise.
5697 (next_nonnote_insn): Likewise.
5698 (next_nonnote_insn_bb): Likewise.
5699 (prev_nonnote_insn): Likewise.
5700 (prev_nonnote_insn_bb): Likewise.
5701 (next_nondebug_insn): Likewise.
5702 (prev_nondebug_insn): Likewise.
5703 (next_nonnote_nondebug_insn): Likewise.
5704 (prev_nonnote_nondebug_insn): Likewise.
5705 (next_real_insn): Likewise.
5706 (prev_real_insn): Likewise.
5707 (next_active_insn): Likewise.
5708 (prev_active_insn): Likewise.
5709
5710 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5711 param "stepfunc" so that it returns an rtx_insn * rather than an
5712 rtx, to track the change to prev_nonnote_insn_bb, which is the
5713 only function this is called with.
5714 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5715
5716 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5717
5718 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5719 assert.
5720
5721 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5722
5723 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5724 (class rtx_nonjump_insn): Likewise.
5725 (class rtx_jump_insn): Likewise.
5726 (class rtx_call_insn): Likewise.
5727 (class rtx_jump_table_data): Likewise.
5728 (class rtx_barrier): Likewise.
5729 (class rtx_code_label): Likewise.
5730 (class rtx_note): Likewise.
5731
5732 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5733 adding the invariant DEBUG_INSN_P (X).
5734 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5735 the invariant NONJUMP_INSN_P (X).
5736 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5737 the invariant JUMP_P (X).
5738 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5739 the invariant CALL_P (X).
5740 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5741 invariant JUMP_TABLE_DATA_P (X).
5742 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5743 invariant BARRIER_P (X).
5744 (class rtx_code_label): New, a subclass of rtx_insn, adding
5745 the invariant LABEL_P (X).
5746 (class rtx_note): New, a subclass of rtx_insn, adding
5747 the invariant NOTE_P(X).
5748 (is_a_helper <rtx_debug_insn *>::test): New.
5749 (is_a_helper <rtx_nonjump_insn *>::test): New.
5750 (is_a_helper <rtx_jump_insn *>::test): New.
5751 (is_a_helper <rtx_call_insn *>::test): New.
5752 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5753 overloaded for both rtx and rtx_insn *.
5754 (is_a_helper <rtx_barrier *>::test): New.
5755 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5756 for both rtx and rtx_insn *.
5757 (is_a_helper <rtx_note *>::test): New.
5758
5759 2014-08-19 Marek Polacek <polacek@redhat.com>
5760
5761 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5762 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5763 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5764 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5765
5766 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5767
5768 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5769 rtx_insn *. To help with transition, for now, convert from an
5770 access macro into a pair of functions: BND_TO, returning an
5771 rtx_insn *, and...
5772 (SET_BND_TO): New function, for use where BND_TO is used as an
5773 lvalue.
5774
5775 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5776 SET_BND_TO.
5777 (BND_TO): New function, adding a checked cast.
5778 (SET_BND_TO): New function.
5779
5780 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5781 SET_BND_TO.
5782 (compute_av_set_on_boundaries): Likewise.
5783
5784 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5785
5786 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5787 destination if it is used in source.
5788 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5789 (*popcount<mode>2_falsedep_1): Likewise.
5790
5791 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5792
5793 PR other/62168
5794 * configure.ac: Set install_gold_as_default to no first.
5795 * configure: Regenerated.
5796
5797 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5798
5799 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5800 "note_list" field will eventually be an rtx_insn *. To help with
5801 transition, for now, convert from an access macro into a pair of
5802 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5803 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5804 used as an lvalue.
5805
5806 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5807 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5808
5809 * sel-sched-ir.c (init_bb): Likewise.
5810 (sel_restore_notes): Likewise.
5811 (move_bb_info): Likewise.
5812 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5813 (SET_BB_NOTE_LIST): New function.
5814
5815 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5816
5817 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5818 field will eventually be an rtx_insn *. To help with transition,
5819 for now, convert from an access macro into a pair of functions:
5820 VINSN_INSN_RTX, returning an rtx_insn *, and...
5821 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5822 is used as an lvalue.
5823
5824 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5825 SET_VINSN_INSN_RTX where it's used as an lvalue.
5826 (VINSN_INSN_RTX): New function.
5827 (SET_VINSN_INSN_RTX): New function.
5828
5829 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5830
5831 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5832 eventually be rtx_insn *, but to help with transition, for now,
5833 convert from an access macro into a pair of functions: DEP_PRO
5834 returning an rtx_insn * and...
5835 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5836 lvalue, returning an rtx&.
5837 (DEP_CON): Analogous changes to DEP_PRO above.
5838 (SET_DEP_CON): Likewise.
5839
5840 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5841 an lvalue to SET_DEP_CON.
5842 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5843 (sd_copy_back_deps): Likewise for DEP_CON.
5844 (DEP_PRO): New function, adding a checked cast for now.
5845 (DEP_CON): Likewise.
5846 (SET_DEP_PRO): New function.
5847 (SET_DEP_CON): Likewise.
5848
5849 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5850
5851 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5852 (extra_options): Add i386/cygwin.opt.
5853 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5854 (CPP_SPEC): Accept -pthread.
5855 (LINK_SPEC): Ditto.
5856 (GOMP_SELF_SPECS): Update comment.
5857 * config/i386/cygwin.opt: New file for -pthread flag.
5858
5859 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5860
5861 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5862 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5863 that we can return an rtx_insn *.
5864
5865 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5866
5867 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5868 when building executables, not DLLs. Add --large-address-aware
5869 under the same conditions.
5870 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5871 when building executables, not DLLs. Add --large-address-aware
5872 under the same conditions when using -m32.
5873
5874 * config/i386/cygwin-stdint.h: Throughout, make type
5875 definitions dependent on target architecture, not host.
5876
5877 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5878
5879 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5880 the return type from rtx to rtx_insn *, which will enable various
5881 conversions in followup patches. For now this is is done by a
5882 checked cast.
5883 (NEXT_INSN): Likewise.
5884 (SET_PREV_INSN): Convert to an inline function. This is intended
5885 for use as an lvalue, and so returns an rtx& to allow in-place
5886 modification.
5887 (SET_NEXT_INSN): Likewise.
5888
5889 2014-07-08 Mark Wielaard <mjw@redhat.com>
5890
5891 PR debug/59051
5892 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5893
5894 2014-08-19 Marek Polacek <polacek@redhat.com>
5895
5896 PR c/61271
5897 * cgraphunit.c (handle_alias_pairs): Fix condition.
5898
5899 2014-08-19 Richard Biener <rguenther@suse.de>
5900
5901 * gimple-fold.c (fold_gimple_assign): Properly build a
5902 null-pointer constant when devirtualizing addresses.
5903
5904 2014-07-07 Mark Wielaard <mjw@redhat.com>
5905
5906 * dwarf2out.c (decl_quals): New function.
5907 (modified_type_die): Take one cv_quals argument instead of two,
5908 one for const and one for volatile.
5909 (add_type_attribute): Likewise.
5910 (generic_parameter_die): Call add_type_attribute with one modifier
5911 argument.
5912 (base_type_for_mode): Likewise.
5913 (add_bounds_info): Likewise.
5914 (add_subscript_info): Likewise.
5915 (gen_array_type_die): Likewise.
5916 (gen_descr_array_type_die): Likewise.
5917 (gen_entry_point_die): Likewise.
5918 (gen_enumeration_type_die): Likewise.
5919 (gen_formal_parameter_die): Likewise.
5920 (gen_subprogram_die): Likewise.
5921 (gen_variable_die): Likewise.
5922 (gen_const_die): Likewise.
5923 (gen_field_die): Likewise.
5924 (gen_pointer_type_die): Likewise.
5925 (gen_reference_type_die): Likewise.
5926 (gen_ptr_to_mbr_type_die): Likewise.
5927 (gen_inheritance_die): Likewise.
5928 (gen_subroutine_type_die): Likewise.
5929 (gen_typedef_die): Likewise.
5930 (force_type_die): Likewise.
5931
5932 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5933
5934 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5935 if unset.
5936 * configure: Regenerate.
5937
5938 2014-08-19 Richard Biener <rguenther@suse.de>
5939
5940 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5941 DECL_EXTERNALs in BLOCKs as non-references.
5942 * tree-streamer-out.c (streamer_write_chain): Likewise.
5943
5944 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5945 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5946 Anna Tikhonova <anna.tikhonova@intel.com>
5947 Ilya Tocar <ilya.tocar@intel.com>
5948 Andrey Turetskiy <andrey.turetskiy@intel.com>
5949 Ilya Verbin <ilya.verbin@intel.com>
5950 Kirill Yukhin <kirill.yukhin@intel.com>
5951 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5952
5953 * config/i386/sse.md
5954 (define_mode_iterator VI48_AVX512F): Delete.
5955 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5956 (define_mode_iterator VI2_AVX512VL): Ditto.
5957 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5958 Delete.
5959 (define_insn
5960 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5961 New.
5962 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5963 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5964 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5965 with VI48_AVX512F_AVX512VL): New.
5966 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5967 with VI2_AVX512VL): Ditto.
5968
5969 2014-08-19 Marek Polacek <polacek@redhat.com>
5970
5971 * doc/invoke.texi: Document -Wc99-c11-compat.
5972
5973 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5974
5975 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5976 for rvalues, and...
5977 (SET_PREV_INSN): New macro, for use as an lvalue.
5978 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5979
5980 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5981 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5982 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5983 (fixup_abnormal_edges): Likewise.
5984 (unlink_insn_chain): Likewise.
5985 (fixup_reorder_chain): Likewise.
5986 (cfg_layout_delete_block): Likewise.
5987 (cfg_layout_merge_blocks): Likewise.
5988 * combine.c (update_cfg_for_uncondjump): Likewise.
5989 * emit-rtl.c (link_insn_into_chain): Likewise.
5990 (remove_insn): Likewise.
5991 (delete_insns_since): Likewise.
5992 (reorder_insns_nobb): Likewise.
5993 (emit_insn_after_1): Likewise.
5994 * final.c (rest_of_clean_state): Likewise.
5995 (final_scan_insn): Likewise.
5996 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5997 * haifa-sched.c (concat_note_lists): Likewise.
5998 (remove_notes): Likewise.
5999 (restore_other_notes): Likewise.
6000 (move_insn): Likewise.
6001 (unlink_bb_notes): Likewise.
6002 (restore_bb_notes): Likewise.
6003 * jump.c (delete_for_peephole): Likewise.
6004 * optabs.c (emit_libcall_block_1): Likewise.
6005 * reorg.c (emit_delay_sequence): Likewise.
6006 (fill_simple_delay_slots): Likewise.
6007 * sel-sched-ir.c (sel_move_insn): Likewise.
6008 (sel_remove_insn): Likewise.
6009 (get_bb_note_from_pool): Likewise.
6010 * sel-sched.c (move_nop_to_previous_block): Likewise.
6011
6012 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
6013 * config/c6x/c6x.c (gen_one_bundle): Likewise.
6014 (c6x_gen_bundles): Likewise.
6015 (hwloop_optimize): Likewise.
6016 * config/frv/frv.c (frv_function_prologue): Likewise.
6017 (frv_register_nop): Likewise.
6018 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6019 (ia64_reorg): Likewise.
6020 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6021 (mep_make_bundle): Likewise.
6022 (mep_bundle_insns): Likewise.
6023 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6024 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6025 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6026
6027 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6028
6029 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6030 return type from rtx to rtx_insn *.
6031 (BB_END): Likewise.
6032 (BB_HEADER): Likewise.
6033 (BB_FOOTER): Likewise.
6034 (SET_BB_HEAD): Convert to a function.
6035 (SET_BB_END): Likewise.
6036 (SET_BB_HEADER): Likewise.
6037 (SET_BB_FOOTER): Likewise.
6038
6039 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6040 Strengthen the return type from rtx to rtx_insn *. For now, this
6041 is done by adding a checked cast, but this will eventually
6042 become a field lookup.
6043 (BB_END): Likewise.
6044 (BB_HEADER): Likewise.
6045 (BB_FOOTER): Likewise.
6046 (SET_BB_HEAD): New function, from macro of same name. This is
6047 intended for use as an lvalue, and so returns an rtx& to allow
6048 in-place modification.
6049 (SET_BB_END): Likewise.
6050 (SET_BB_HEADER): Likewise.
6051 (SET_BB_FOOTER): Likewise.
6052
6053 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6054
6055 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6056 for rvalues, and...
6057 (SET_BB_HEAD): New macro, for use as a lvalue.
6058 (BB_END, SET_BB_END): Likewise.
6059 (BB_HEADER, SET_BB_HEADER): Likewise.
6060 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6061
6062 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6063 of BB_* macros into SET_BB_* macros.
6064 (fix_crossing_unconditional_branches): Likewise.
6065 * caller-save.c (save_call_clobbered_regs): Likewise.
6066 (insert_one_insn): Likewise.
6067 * cfgbuild.c (find_bb_boundaries): Likewise.
6068 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6069 (outgoing_edges_match): Likewise.
6070 (try_optimize_cfg): Likewise.
6071 * cfgexpand.c (expand_gimple_cond): Likewise.
6072 (expand_gimple_tailcall): Likewise.
6073 (expand_gimple_basic_block): Likewise.
6074 (construct_exit_block): Likewise.
6075 * cfgrtl.c (delete_insn): Likewise.
6076 (create_basic_block_structure): Likewise.
6077 (rtl_delete_block): Likewise.
6078 (rtl_split_block): Likewise.
6079 (emit_nop_for_unique_locus_between): Likewise.
6080 (rtl_merge_blocks): Likewise.
6081 (block_label): Likewise.
6082 (try_redirect_by_replacing_jump): Likewise.
6083 (emit_barrier_after_bb): Likewise.
6084 (fixup_abnormal_edges): Likewise.
6085 (record_effective_endpoints): Likewise.
6086 (relink_block_chain): Likewise.
6087 (fixup_reorder_chain): Likewise.
6088 (fixup_fallthru_exit_predecessor): Likewise.
6089 (cfg_layout_duplicate_bb): Likewise.
6090 (cfg_layout_split_block): Likewise.
6091 (cfg_layout_delete_block): Likewise.
6092 (cfg_layout_merge_blocks): Likewise.
6093 * combine.c (update_cfg_for_uncondjump): Likewise.
6094 * emit-rtl.c (add_insn_after): Likewise.
6095 (remove_insn): Likewise.
6096 (reorder_insns): Likewise.
6097 (emit_insn_after_1): Likewise.
6098 * haifa-sched.c (get_ebb_head_tail): Likewise.
6099 (restore_other_notes): Likewise.
6100 (move_insn): Likewise.
6101 (sched_extend_bb): Likewise.
6102 (fix_jump_move): Likewise.
6103 * ifcvt.c (noce_process_if_block): Likewise.
6104 (dead_or_predicable): Likewise.
6105 * ira.c (update_equiv_regs): Likewise.
6106 * reg-stack.c (change_stack): Likewise.
6107 * sel-sched-ir.c (sel_move_insn): Likewise.
6108 * sel-sched.c (move_nop_to_previous_block): Likewise.
6109
6110 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6111 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6112
6113 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6114
6115 * rtl.h (for_each_rtx_in_insn): New function.
6116 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6117
6118 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6119
6120 * coretypes.h (class rtx_insn): Add forward declaration.
6121
6122 * rtl.h: Include is-a.h.
6123 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6124 workaround to ensure gengtype knows inheritance is occurring,
6125 whilst continuing to use the pre-existing special-casing for
6126 rtx_def.
6127 (class rtx_insn): New subclass of rtx_def, adding the
6128 invariant that we're dealing with something we can sanely use
6129 INSN_UID, NEXT_INSN, PREV_INSN on.
6130 (is_a_helper <rtx_insn *>::test): New.
6131 (is_a_helper <const rtx_insn *>::test): New.
6132
6133 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6134
6135 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6136
6137 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6138
6139 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6140 comdats as extern.
6141
6142 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6143
6144 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6145 to BUILT_IN_UNREACHABLE.
6146
6147 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6148
6149 PR target/62011
6150 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6151 New tune flag.
6152 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6153 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6154 (ffs<mode>2): Do not expand with tzcnt for
6155 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6156 (ffssi2_no_cmove): Ditto.
6157 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6158 (ctz<mode>2): New expander.
6159 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6160 (*ctz<mode>2_falsedep): New insn.
6161 (*ctz<mode>2): Rename from ctz<mode>2.
6162 (clz<mode>2_lzcnt): New expander.
6163 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6164 (*clz<mode>2_lzcnt_falsedep): New insn.
6165 (*clz<mode>2): Rename from ctz<mode>2.
6166 (popcount<mode>2): New expander.
6167 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6168 (*popcount<mode>2_falsedep): New insn.
6169 (*popcount<mode>2): Rename from ctz<mode>2.
6170 (*popcount<mode>2_cmp): Remove.
6171 (*popcountsi2_cmp_zext): Ditto.
6172
6173 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6174
6175 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6176 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6177 * config/microblaze/microblaze.h
6178 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6179
6180 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6181
6182 PR other/62168
6183 * configure.ac: Set install_gold_as_default to no for
6184 --enable-gold=no.
6185 * configure: Regenerated.
6186
6187 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6188
6189 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6190 * config.in: Add undef of HAVE_isl.
6191 * configure: Regenerate.
6192 * configure.ac: Add definition of HAVE_isl.
6193 * graphite-blocking.c: Add checking of HAVE_isl.
6194 * graphite-dependences.c: Likewise.
6195 * graphite-interchange.c: Likewise.
6196 * graphite-isl-ast-to-gimple.c: Likewise.
6197 * graphite-optimize-isl.c: Likewise.
6198 * graphite-poly.c: Likewise.
6199 * graphite-scop-detection.c: Likewise.
6200 * graphite-sese-to-poly.c: Likewise.
6201 * graphite.c: Likewise.
6202 * toplev.c: Replace the checking of HAVE_cloog with the checking
6203 of HAVE_isl.
6204
6205 2014-08-18 Richard Biener <rguenther@suse.de>
6206
6207 PR tree-optimization/62090
6208 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6209 (fold_builtin_3): Do not fold snprintf.
6210 (fold_builtin_4): Likewise.
6211 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6212 moved from builtins.c.
6213 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6214 (gimple_fold_builtin): Do not fold sprintf here.
6215
6216 2014-08-18 Richard Biener <rguenther@suse.de>
6217
6218 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6219 code to ...
6220 (maybe_canonicalize_mem_ref_addr): ... this function.
6221 (fold_stmt_1): Apply it here before all simplification.
6222
6223 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6224
6225 PR ipa/61800
6226 * cgraph.h (cgraph_node::create_indirect_edge): Add
6227 compute_indirect_info param.
6228 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6229 indirect_info only when it is required.
6230 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6231 indirect_info fore cloned indirect edge.
6232
6233 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6234 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6235 Anna Tikhonova <anna.tikhonova@intel.com>
6236 Ilya Tocar <ilya.tocar@intel.com>
6237 Andrey Turetskiy <andrey.turetskiy@intel.com>
6238 Ilya Verbin <ilya.verbin@intel.com>
6239 Kirill Yukhin <kirill.yukhin@intel.com>
6240 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6241
6242 * config/i386/sse.md
6243 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6244 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6245
6246 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6247 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6248 Anna Tikhonova <anna.tikhonova@intel.com>
6249 Ilya Tocar <ilya.tocar@intel.com>
6250 Andrey Turetskiy <andrey.turetskiy@intel.com>
6251 Ilya Verbin <ilya.verbin@intel.com>
6252 Kirill Yukhin <kirill.yukhin@intel.com>
6253 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6254
6255 * config/i386/sse.md
6256 (define_mode_iterator VF1_AVX512VL): New.
6257 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6258 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6259 New.
6260
6261 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6262 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6263 Anna Tikhonova <anna.tikhonova@intel.com>
6264 Ilya Tocar <ilya.tocar@intel.com>
6265 Andrey Turetskiy <andrey.turetskiy@intel.com>
6266 Ilya Verbin <ilya.verbin@intel.com>
6267 Kirill Yukhin <kirill.yukhin@intel.com>
6268 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6269
6270 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6271 * config/i386/i386.md
6272 (define_code_iterator any_float): New.
6273 (define_code_attr floatsuffix): New.
6274 * config/i386/sse.md
6275 (define_mode_iterator VF1_128_256VL): New.
6276 (define_mode_iterator VF2_512_256VL): New.
6277 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6278 TARGET check.
6279 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6280 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6281 New.
6282 (define_mode_attr qq2pssuff): New.
6283 (define_mode_attr sselongvecmode): New.
6284 (define_mode_attr sselongvecmodelower): New.
6285 (define_mode_attr sseintvecmode3): New.
6286 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6287 New.
6288 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6289 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6290 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6291 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6292
6293 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6294 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6295 Anna Tikhonova <anna.tikhonova@intel.com>
6296 Ilya Tocar <ilya.tocar@intel.com>
6297 Andrey Turetskiy <andrey.turetskiy@intel.com>
6298 Ilya Verbin <ilya.verbin@intel.com>
6299 Kirill Yukhin <kirill.yukhin@intel.com>
6300 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6301
6302 * config/i386/sse.md
6303 (define_mode_iterator VF2_AVX512VL): New.
6304 (define_mode_attr sseintvecmode2): New.
6305 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6306 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6307 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6308 (define_insn
6309 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6310 Ditto.
6311 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6312 Ditto.
6313 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6314 Ditto.
6315
6316 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6317 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6318 Anna Tikhonova <anna.tikhonova@intel.com>
6319 Ilya Tocar <ilya.tocar@intel.com>
6320 Andrey Turetskiy <andrey.turetskiy@intel.com>
6321 Ilya Verbin <ilya.verbin@intel.com>
6322 Kirill Yukhin <kirill.yukhin@intel.com>
6323 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6324
6325 * config/i386/i386.md
6326 (define_insn "*movoi_internal_avx"): Add evex version.
6327 (define_insn "*movti_internal"): Ditto.
6328
6329 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6330 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6331 Anna Tikhonova <anna.tikhonova@intel.com>
6332 Ilya Tocar <ilya.tocar@intel.com>
6333 Andrey Turetskiy <andrey.turetskiy@intel.com>
6334 Ilya Verbin <ilya.verbin@intel.com>
6335 Kirill Yukhin <kirill.yukhin@intel.com>
6336 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6337
6338 * config/i386/i386.md
6339 (define_attr "isa"): Add avx512dq, noavx512dq.
6340 (define_attr "enabled"): Ditto.
6341 * config/i386/sse.md
6342 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6343
6344 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6345 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6346 Anna Tikhonova <anna.tikhonova@intel.com>
6347 Ilya Tocar <ilya.tocar@intel.com>
6348 Andrey Turetskiy <andrey.turetskiy@intel.com>
6349 Ilya Verbin <ilya.verbin@intel.com>
6350 Kirill Yukhin <kirill.yukhin@intel.com>
6351 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6352
6353 * config/i386/i386.c
6354 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6355 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6356 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6357 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6358 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6359 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6360 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6361 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6362 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6363 * config/i386/sse.md
6364 (define_mode_iterator VMOVE): Allow V4TI mode.
6365 (define_mode_iterator V_AVX512VL): New.
6366 (define_mode_iterator V): New handling for AVX512VL.
6367 (define_insn "avx512f_load<mode>_mask"): Delete.
6368 (define_insn "<avx512>_load<mode>_mask"): New.
6369 (define_insn "avx512f_store<mode>_mask"): Delete.
6370 (define_insn "<avx512>_store<mode>_mask"): New.
6371
6372
6373 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6374
6375 PR sanitizer/62089
6376 * asan.c (instrument_derefs): Fix bitfield check.
6377
6378 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6379
6380 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6381 * config/rs6000/htm.md (ttest): Remove clobber.
6382 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6383 (and_operand): Reformat.
6384 (and_2rld_operand): New predicate.
6385 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6386 parameter.
6387 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6388 parameter. Handle AND directly.
6389 (rs6000_split_logical_di): Remove last parameter.
6390 (rs6000_split_logical): Remove last parameter. Remove obsolete
6391 comment.
6392 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6393 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6394 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6395 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6396 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6397 and 5 anonymous splitters): Delete.
6398 (and<mode>3): New expander.
6399 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6400 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6401 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6402 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6403 (floatdisf2_internal1): Remove clobbers.
6404 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6405 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6406 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6407 (and<mode>3 for BOOL_128): Remove clobber.
6408 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6409 rs6000_split_logical.
6410 (*bool<mode>3_internal for BOOL_128): Adjust call of
6411 rs6000_split_logical.
6412 (*boolc<mode>3_internal1 for BOOL_128,
6413 *boolc<mode>3_internal2 for BOOL_128,
6414 *boolcc<mode>3_internal1 for BOOL_128,
6415 *boolcc<mode>3_internal2 for BOOL_128,
6416 *eqv<mode>3_internal1 for BOOL_128,
6417 *eqv<mode>3_internal2 for BOOL_128,
6418 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6419 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6420 clobber.
6421 (*vec_reload_and_reg_<mptrsize>): Delete.
6422
6423 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6424
6425 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6426 and split, *boolccsi3_internal3 and split): Delete.
6427 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6428 *boolccdi3_internal3 and split): Delete.
6429 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6430 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6431
6432 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6433
6434 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6435 and split, *boolcsi3_internal3 and split): Delete.
6436 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6437 *boolcdi3_internal3 and split): Delete.
6438 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6439
6440 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6441
6442 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6443 <'u'>: Also support printing the low-order 16 bits.
6444 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6445 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6446 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6447 *booldi3_internal3 and split): Delete.
6448 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6449 *bool<mode>3_dot2): New.
6450 (two anonymous define_splits for non_logical_cint_operand): Merge.
6451
6452 2014-08-17 Marek Polacek <polacek@redhat.com>
6453 Manuel López-Ibáñez <manu@gcc.gnu.org>
6454
6455 PR c/62059
6456 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6457 (diagnostic_show_locus): Don't print caret diagnostic
6458 if a column is larger than the line_width.
6459
6460 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6461
6462 * common.opt: Make the ISL AST generator to be the main code generator
6463 of Graphite.
6464
6465 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6466
6467 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6468
6469 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6470
6471 PR target/61641
6472 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6473 Declare.
6474 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6475 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6476 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6477 Define.
6478 * config/pa/pa.md (begin_brtab): Delete insn.
6479 (end_brtab): Likewise.
6480
6481 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6482
6483 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6484
6485 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6486
6487 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6488 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6489 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6490 (get_dynamic_type): Remove.
6491 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6492 (clear_speculation): Bring to ipa-deivrt.h
6493 (get_class_context): Rename to ...
6494 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6495 (contains_type_p): Update.
6496 (get_dynamic_type): Rename to ...
6497 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6498 (possible_polymorphic_call_targets): UPdate.
6499 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6500 * ipa-prop.c (ipa_analyze_call_uses): Update.
6501
6502 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6503
6504 * doc/invoke.texi (SH options): Document missing processor variant
6505 options. Remove references to Hitachi. Undocument deprecated mspace
6506 option.
6507
6508 2014-08-15 Jason Merrill <jason@redhat.com>
6509
6510 * tree.c (type_hash_canon): Uncomment assert.
6511
6512 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6513
6514 * input.h (in_system_header_at): Add comment.
6515
6516 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6517
6518 PR fortran/44054
6519 * diagnostic.c (build_message_string): Make it extern.
6520 * diagnostic.h (build_message_string): Make it extern.
6521
6522 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6523
6524 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6525 load/store from/to non-floating class pseudo.
6526
6527 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6528
6529 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6530
6531 2014-08-15 Richard Biener <rguenther@suse.de>
6532
6533 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6534 (get_constraint_for_ssa_var): Remove dead code.
6535 (get_constraint_for_1): Adjust.
6536 (find_what_var_points_to): Likewise.
6537 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6538
6539 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6540
6541 PR target/61878
6542 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6543 (_mm512_mask_cmpge_epu32_mask): Ditto.
6544 (_mm512_cmpge_epu32_mask): Ditto.
6545 (_mm512_mask_cmpge_epi64_mask): Ditto.
6546 (_mm512_cmpge_epi64_mask): Ditto.
6547 (_mm512_mask_cmpge_epu64_mask): Ditto.
6548 (_mm512_cmpge_epu64_mask): Ditto.
6549 (_mm512_mask_cmple_epi32_mask): Ditto.
6550 (_mm512_cmple_epi32_mask): Ditto.
6551 (_mm512_mask_cmple_epu32_mask): Ditto.
6552 (_mm512_cmple_epu32_mask): Ditto.
6553 (_mm512_mask_cmple_epi64_mask): Ditto.
6554 (_mm512_cmple_epi64_mask): Ditto.
6555 (_mm512_mask_cmple_epu64_mask): Ditto.
6556 (_mm512_cmple_epu64_mask): Ditto.
6557 (_mm512_mask_cmplt_epi32_mask): Ditto.
6558 (_mm512_cmplt_epi32_mask): Ditto.
6559 (_mm512_mask_cmplt_epu32_mask): Ditto.
6560 (_mm512_cmplt_epu32_mask): Ditto.
6561 (_mm512_mask_cmplt_epi64_mask): Ditto.
6562 (_mm512_cmplt_epi64_mask): Ditto.
6563 (_mm512_mask_cmplt_epu64_mask): Ditto.
6564 (_mm512_cmplt_epu64_mask): Ditto.
6565 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6566 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6567 (_mm512_cmpneq_epu32_mask): Ditto.
6568 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6569 (_mm512_cmpneq_epi64_mask): Ditto.
6570 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6571 (_mm512_cmpneq_epu64_mask): Ditto.
6572 (_mm512_castpd_ps): Ditto.
6573 (_mm512_castpd_si512): Ditto.
6574 (_mm512_castps_pd): Ditto.
6575 (_mm512_castps_si512): Ditto.
6576 (_mm512_castsi512_ps): Ditto.
6577 (_mm512_castsi512_pd): Ditto.
6578 (_mm512_castpd512_pd128): Ditto.
6579 (_mm512_castps512_ps128): Ditto.
6580 (_mm512_castsi512_si128): Ditto.
6581 (_mm512_castpd512_pd256): Ditto.
6582 (_mm512_castps512_ps256): Ditto.
6583 (_mm512_castsi512_si256): Ditto.
6584 (_mm512_castpd128_pd512): Ditto.
6585 (_mm512_castps128_ps512): Ditto.
6586 (_mm512_castsi128_si512): Ditto.
6587 (_mm512_castpd256_pd512): Ditto.
6588 (_mm512_castps256_ps512): Ditto.
6589 (_mm512_castsi256_si512): Ditto.
6590 (_mm512_cmpeq_epu32_mask): Ditto.
6591 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6592 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6593 (_mm512_cmpeq_epu64_mask): Ditto.
6594 (_mm512_cmpgt_epu32_mask): Ditto.
6595 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6596 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6597 (_mm512_cmpgt_epu64_mask): Ditto.
6598 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6599 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6600 * config/i386/i386.c (enum ix86_builtins): Add
6601 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6602 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6603 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6604 (bdesc_args): Add __builtin_ia32_si512_256si,
6605 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6606 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6607 __builtin_ia32_pd512_pd.
6608 (ix86_expand_args_builtin): Handle new FTYPEs.
6609 * config/i386/sse.md (castmode): Add 512-bit modes.
6610 (AVX512MODE2P): New.
6611 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6612 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6613
6614 2014-08-15 Richard Biener <rguenther@suse.de>
6615
6616 * fold-const.c (tree_swap_operands_p): Put all constants
6617 last, also strip sign-changing NOPs when considering further
6618 canonicalization. Canonicalize also when optimizing for size.
6619
6620 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6621
6622 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6623 one_match > zero_match case to just before simple_sequence.
6624
6625 2014-08-15 Richard Biener <rguenther@suse.de>
6626
6627 * data-streamer.h (streamer_string_index, string_for_index):
6628 Remove.
6629 * data-streamer-out.c (streamer_string_index): Make static.
6630 * data-streamer-in.c (string_for_index): Likewise.
6631 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6632 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6633
6634 2014-08-15 Richard Biener <rguenther@suse.de>
6635
6636 PR tree-optimization/62031
6637 * tree-data-ref.c (dr_analyze_indices): Do not set
6638 DR_UNCONSTRAINED_BASE.
6639 (dr_may_alias_p): All indirect accesses have to go the
6640 formerly DR_UNCONSTRAINED_BASE path.
6641 * tree-data-ref.h (struct indices): Remove
6642 unconstrained_base member.
6643 (DR_UNCONSTRAINED_BASE): Remove.
6644
6645 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6646
6647 PR middle-end/62092
6648 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6649 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6650 in OMP_CLAUSE_MAP in some outer target region.
6651
6652 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6653
6654 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6655 name_expansion_cache.
6656 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6657 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6658 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6659 (difference_cannot_overflow_p): New parameter. Use affine
6660 expansion for equality check.
6661 (iv_elimination_compare_lt): Pass new argument.
6662
6663 2014-08-14 DJ Delorie <dj@redhat.com>
6664
6665 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6666 variables to the accumulator.
6667
6668 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6669 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6670 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6671 with far-far moves.
6672
6673 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6674 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6675 (umulqihi3_virt): Likewise.
6676 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6677 (umulqihi3_real): Likewise.
6678
6679 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6680
6681 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6682
6683 PR tree-optimization/62091
6684 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6685 function_entry_reached.
6686 (walk_aliased_vdefs): Clear it here.
6687 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6688
6689 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6690
6691 * ipa-utils.h (compare_virtual_tables): Declare.
6692 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6693
6694 2014-08-14 Marek Polacek <polacek@redhat.com>
6695
6696 DR 458
6697 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6698 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6699
6700 2014-08-14 Tom de Vries <tom@codesourcery.com>
6701
6702 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6703
6704 2014-08-14 Tom de Vries <tom@codesourcery.com>
6705
6706 PR rtl-optimization/62004
6707 PR rtl-optimization/62030
6708 * ifcvt.c (rtx_interchangeable_p): New function.
6709 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6710 * emit-rtl.h (mem_attrs_eq_p): Declare.
6711
6712 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6713
6714 * graphite-scop-detection.c:
6715 Add inclusion of cp-tree.h.
6716 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6717 in case they are pointers to object types
6718
6719 2014-08-14 Richard Biener <rguenther@suse.de>
6720
6721 * BASE-VER: Change to 5.0.0
6722
6723 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6724 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6725 Anna Tikhonova <anna.tikhonova@intel.com>
6726 Ilya Tocar <ilya.tocar@intel.com>
6727 Andrey Turetskiy <andrey.turetskiy@intel.com>
6728 Ilya Verbin <ilya.verbin@intel.com>
6729 Kirill Yukhin <kirill.yukhin@intel.com>
6730 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6731
6732 * config/i386/sse.md (define_mode_attr avx512): New.
6733 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6734 V4DI modes.
6735 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6736 (define_mode_attr ssse3_avx2): Ditto.
6737 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6738 (define_mode_attr avx2_avx512bw): New.
6739 (define_mode_attr ssedoublemodelower): New.
6740 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6741 V32HI, V64QI modes.
6742 (define_mode_attr ssebytemode): Allow V8DI modes.
6743 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6744 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6745 (define_mode_attr ssePSmode2): New.
6746 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6747 V16HI, V32HI modes.
6748 (define_mode_attr dbpsadbwmode): New.
6749 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6750 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6751 (vi8_sse4_1_avx2_avx512): New.
6752 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6753 mode attribute.
6754 (define_mode_attr blendbits): Move before its immediate use.
6755
6756 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6757 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6758 Anna Tikhonova <anna.tikhonova@intel.com>
6759 Ilya Tocar <ilya.tocar@intel.com>
6760 Andrey Turetskiy <andrey.turetskiy@intel.com>
6761 Ilya Verbin <ilya.verbin@intel.com>
6762 Kirill Yukhin <kirill.yukhin@intel.com>
6763 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6764
6765 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6766 * config/i386/subst.md
6767 (define_mode_iterator SUBST_V): Update.
6768 (define_mode_iterator SUBST_A): Ditto.
6769 (define_subst_attr "mask_operand7"): New.
6770 (define_subst_attr "mask_operand10"): New.
6771 (define_subst_attr "mask_operand_arg34") : New.
6772 (define_subst_attr "mask_expand_op3"): New.
6773 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6774 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6775 (define_subst_attr "mask_avx512vl_condition"): New.
6776 (define_subst_attr "round_mask_operand4"): Ditto.
6777 (define_subst_attr "round_mask_scalar_op3"): Delete.
6778 (define_subst_attr "round_mask_op4"): New.
6779 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6780 V16SImode.
6781 (define_subst_attr "round_modev8sf_condition"): New.
6782 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6783 <MODE>mode.
6784 (define_subst_attr "round_saeonly_mask_operand4"): New.
6785 (define_subst_attr "round_saeonly_mask_op4"): New.
6786 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6787 V8DImode, V16SImode.
6788 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6789 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6790 (define_subst_attr "mask_expand4_args"): New.
6791 (define_subst "mask_expand4"): New.
6792
6793 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6794 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6795 Anna Tikhonova <anna.tikhonova@intel.com>
6796 Ilya Tocar <ilya.tocar@intel.com>
6797 Andrey Turetskiy <andrey.turetskiy@intel.com>
6798 Ilya Verbin <ilya.verbin@intel.com>
6799 Kirill Yukhin <kirill.yukhin@intel.com>
6800 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6801
6802 * config/i386/i386.md
6803 (define_attr "isa"): Add avx512bw,noavx512bw.
6804 (define_attr "enabled"): Ditto.
6805 (define_split): Add 32/64-bit mask logic.
6806 (define_insn "*k<logic>qi"): New.
6807 (define_insn "*k<logic>hi"): New.
6808 (define_insn "*anddi_1"): Add mask version.
6809 (define_insn "*andsi_1"): Ditto.
6810 (define_insn "*<code><mode>_1"): Ditto.
6811 (define_insn "*<code>hi_1"): Ditto.
6812 (define_insn "kxnor<mode>"): New.
6813 (define_insn "kunpcksi"): New.
6814 (define_insn "kunpckdi"): New.
6815 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6816 (define_insn "*one_cmplhi2_1"): Ditto.
6817
6818 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6819 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6820 Anna Tikhonova <anna.tikhonova@intel.com>
6821 Ilya Tocar <ilya.tocar@intel.com>
6822 Andrey Turetskiy <andrey.turetskiy@intel.com>
6823 Ilya Verbin <ilya.verbin@intel.com>
6824 Kirill Yukhin <kirill.yukhin@intel.com>
6825 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6826
6827 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6828 V32HImode.
6829
6830 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6831 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6832 Anna Tikhonova <anna.tikhonova@intel.com>
6833 Ilya Tocar <ilya.tocar@intel.com>
6834 Andrey Turetskiy <andrey.turetskiy@intel.com>
6835 Ilya Verbin <ilya.verbin@intel.com>
6836 Kirill Yukhin <kirill.yukhin@intel.com>
6837 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6838
6839 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6840 registers.
6841 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6842 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6843 xmm/ymm16+ when availble.
6844 * config/i386/i386.h
6845 (HARD_REGNO_NREGS): Add mask regs.
6846 (VALID_AVX512F_REG_MODE): Ditto.
6847 (VALID_AVX512F_REG_MODE) : Define.
6848 (VALID_MASK_AVX512BW_MODE): Ditto.
6849 (reg_class) (MASK_REG_P(X)): Define.
6850 * config/i386/i386.md: Do not split long moves with mask register,
6851 use kmovb if avx512bw is availible.
6852 (movdi_internal): Handle mask registers.
6853
6854 2014-08-14 Richard Biener <rguenther@suse.de>
6855
6856 PR tree-optimization/62081
6857 * tree-ssa-loop.c (pass_fix_loops): New pass.
6858 (pass_tree_loop::gate): Do not fixup loops here.
6859 * tree-pass.h (make_pass_fix_loops): Declare.
6860 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6861
6862 2014-08-14 Richard Biener <rguenther@suse.de>
6863
6864 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6865 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6866
6867 2014-08-14 Richard Biener <rguenther@suse.de>
6868
6869 PR tree-optimization/62090
6870 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6871 (fold_builtin_2): Do not fold sprintf.
6872 (fold_builtin_3): Likewise.
6873 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6874 moved from builtins.c.
6875 (gimple_fold_builtin): Fold sprintf.
6876
6877 2014-08-14 Richard Biener <rguenther@suse.de>
6878
6879 PR rtl-optimization/62079
6880 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6881 run cleanup_cfg.
6882
6883 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6884
6885 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6886 current_function_decl.
6887
6888 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6889
6890 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6891 cgraph_function_node to cgraph_node::function_symbol
6892 refactoring.
6893
6894 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6895
6896 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6897 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6898
6899 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6900
6901 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6902 warning.
6903
6904 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6905
6906 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6907 generator.
6908
6909 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6910
6911 PR target/62025
6912 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6913 any registers that are used in mem_insn.
6914
6915 2014-08-12 Steve Ellcey <sellcey@mips.com>
6916
6917 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6918
6919 2014-08-12 Steve Ellcey <sellcey@mips.com>
6920
6921 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6922 (MULTILIB_DIRNAMES): Ditto.
6923 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6924 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6925 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6926 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6927 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6928 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6929
6930 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6931
6932 PR target/61413
6933 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6934 of __ARM_SIZEOF_WCHAR_T.
6935
6936 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6937
6938 PR target/62098
6939 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6940 Remove unnecessary attributes.
6941
6942 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6943
6944 * internal-fn.c (init_internal_fns): Fix off-by-one.
6945
6946 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6947 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6948 Anna Tikhonova <anna.tikhonova@intel.com>
6949 Ilya Tocar <ilya.tocar@intel.com>
6950 Andrey Turetskiy <andrey.turetskiy@intel.com>
6951 Ilya Verbin <ilya.verbin@intel.com>
6952 Kirill Yukhin <kirill.yukhin@intel.com>
6953 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6954
6955 * config/i386/i386.c (standard_sse_constant_opcode): Use
6956 vpxord/vpternlog if avx512 is availible.
6957
6958 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6959
6960 PR middle-end/62103
6961 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6962 bitfields, that is when size doesn't match the size of type or the
6963 size of the constructor.
6964
6965 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6966
6967 * config/rs6000/constraints.md (wh constraint): New constraint,
6968 for FP registers if direct move is available.
6969 (wi constraint): New constraint, for VSX/FP registers that can
6970 handle 64-bit integers.
6971 (wj constraint): New constraint for VSX/FP registers that can
6972 handle 64-bit integers for direct moves.
6973 (wk constraint): New constraint for VSX/FP registers that can
6974 handle 64-bit doubles for direct moves.
6975 (wy constraint): Make documentation match implementation.
6976
6977 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6978 scalar_in_vmx_p field to simplify tests of whether SFmode or
6979 DFmode can go in the Altivec registers.
6980 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6981 (rs6000_setup_reg_addr_masks): Likewise.
6982 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6983 field, and wh/wi/wj/wk constraints.
6984 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6985 the wh/wi/wj/wk constraints.
6986 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6987 upper registers, prefer VSX registers unless the operation is a
6988 memory operation with REG+OFFSET addressing.
6989
6990 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6991 DImode. Change SFmode to use ww constraint instead of d to allow
6992 SF registers in the upper registers.
6993 (VSr2): Likewise.
6994 (VSr3): Likewise.
6995 (VSr5): Fix thinko in comment.
6996 (VSa): New mode attribute that is an alternative to wa, that
6997 returns the VSX register class that a mode can go in, but may not
6998 be the preferred register class.
6999 (VS_64dm): New mode attribute for appropriate register classes for
7000 referencing 64-bit elements of vectors for direct moves and normal
7001 moves.
7002 (VS_64reg): Likewise.
7003 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
7004 register allocator to only registers the data type can handle.
7005 (vsx_le_perm_load_<mode>): Likewise.
7006 (vsx_le_perm_store_<mode>): Likewise.
7007 (vsx_xxpermdi2_le_<mode>): Likewise.
7008 (vsx_xxpermdi4_le_<mode>): Likewise.
7009 (vsx_lxvd2x2_le_<mode>): Likewise.
7010 (vsx_lxvd2x4_le_<mode>): Likewise.
7011 (vsx_stxvd2x2_le_<mode>): Likewise.
7012 (vsx_add<mode>3): Likewise.
7013 (vsx_sub<mode>3): Likewise.
7014 (vsx_mul<mode>3): Likewise.
7015 (vsx_div<mode>3): Likewise.
7016 (vsx_tdiv<mode>3_internal): Likewise.
7017 (vsx_fre<mode>2): Likewise.
7018 (vsx_neg<mode>2): Likewise.
7019 (vsx_abs<mode>2): Likewise.
7020 (vsx_nabs<mode>2): Likewise.
7021 (vsx_smax<mode>3): Likewise.
7022 (vsx_smin<mode>3): Likewise.
7023 (vsx_sqrt<mode>2): Likewise.
7024 (vsx_rsqrte<mode>2): Likewise.
7025 (vsx_tsqrt<mode>2_internal): Likewise.
7026 (vsx_fms<mode>4): Likewise.
7027 (vsx_nfma<mode>4): Likewise.
7028 (vsx_eq<mode>): Likewise.
7029 (vsx_gt<mode>): Likewise.
7030 (vsx_ge<mode>): Likewise.
7031 (vsx_eq<mode>_p): Likewise.
7032 (vsx_gt<mode>_p): Likewise.
7033 (vsx_ge<mode>_p): Likewise.
7034 (vsx_xxsel<mode>): Likewise.
7035 (vsx_xxsel<mode>_uns): Likewise.
7036 (vsx_copysign<mode>3): Likewise.
7037 (vsx_float<VSi><mode>2): Likewise.
7038 (vsx_floatuns<VSi><mode>2): Likewise.
7039 (vsx_fix_trunc<mode><VSi>2): Likewise.
7040 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7041 (vsx_x<VSv>r<VSs>i): Likewise.
7042 (vsx_x<VSv>r<VSs>ic): Likewise.
7043 (vsx_btrunc<mode>2): Likewise.
7044 (vsx_b2trunc<mode>2): Likewise.
7045 (vsx_floor<mode>2): Likewise.
7046 (vsx_ceil<mode>2): Likewise.
7047 (vsx_<VS_spdp_insn>): Likewise.
7048 (vsx_xscvspdp): Likewise.
7049 (vsx_xvcvspuxds): Likewise.
7050 (vsx_float_fix_<mode>2): Likewise.
7051 (vsx_set_<mode>): Likewise.
7052 (vsx_extract_<mode>_internal1): Likewise.
7053 (vsx_extract_<mode>_internal2): Likewise.
7054 (vsx_extract_<mode>_load): Likewise.
7055 (vsx_extract_<mode>_store): Likewise.
7056 (vsx_splat_<mode>): Likewise.
7057 (vsx_xxspltw_<mode>): Likewise.
7058 (vsx_xxspltw_<mode>_direct): Likewise.
7059 (vsx_xxmrghw_<mode>): Likewise.
7060 (vsx_xxmrglw_<mode>): Likewise.
7061 (vsx_xxsldwi_<mode>): Likewise.
7062 (vsx_xscvdpspn): Tighten constraints to only use register classes
7063 the types use.
7064 (vsx_xscvspdpn): Likewise.
7065 (vsx_xscvdpspn_scalar): Likewise.
7066
7067 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7068 wj, and wk constraints.
7069 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7070 general purpose registers.
7071
7072 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7073 direct moves.
7074 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7075 DImode instead of wm. Use wk constraint for direct move of DFmode
7076 instead of wm.
7077 (extendsidi2_lfiwax): Likewise.
7078 (lfiwax): Likewise.
7079 (lfiwzx): Likewise.
7080 (movdi_internal64): Likewise.
7081
7082 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7083 wk constraints. Make the wy constraint documentation match them
7084 implementation.
7085
7086 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7087
7088 Replacement of isl_int by isl_val
7089 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7090 (compute_bounds_for_param): use isl_val instead of isl_int
7091 (compute_bounds_for_loop): likewise
7092 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7093 (build_linearized_memory_access): use isl_val instead of isl_int
7094 (pdr_stride_in_loop): likewise
7095 * graphite-optimize-isl.c:
7096 (getPrevectorMap): use isl_val instead of isl_int
7097 * graphite-poly.c:
7098 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7099 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7100 (extern the_isl_ctx): declare
7101 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7102 (extract_affine_gmp): likewise
7103 (wrap): likewise
7104 (build_loop_iteration_domains): likewise
7105 (add_param_constraints): likewise
7106
7107 2014-08-11 Richard Biener <rguenther@suse.de>
7108
7109 PR tree-optimization/62075
7110 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7111 handle uses in patterns.
7112
7113 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7114 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7115 Anna Tikhonova <anna.tikhonova@intel.com>
7116 Ilya Tocar <ilya.tocar@intel.com>
7117 Andrey Turetskiy <andrey.turetskiy@intel.com>
7118 Ilya Verbin <ilya.verbin@intel.com>
7119 Kirill Yukhin <kirill.yukhin@intel.com>
7120 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7121
7122 * common/config/i386/i386-common.c
7123 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7124 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7125 (ix86_handle_option): Handle OPT_mavx512vl.
7126 * config/i386/cpuid.h (bit_AVX512VL): Define.
7127 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7128 set -mavx512vl accordingly.
7129 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7130 OPTION_MASK_ISA_AVX512VL.
7131 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7132 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7133 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7134 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7135 * config/i386/i386.h (TARGET_AVX512VL): Define.
7136 (TARGET_AVX512VL_P(x)): Ditto.
7137 * config/i386/i386.opt: Add mavx512vl.
7138
7139 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7140
7141 PR tree-optimization/62073
7142 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7143 a basic block.
7144
7145 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7146 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7147 Anna Tikhonova <anna.tikhonova@intel.com>
7148 Ilya Tocar <ilya.tocar@intel.com>
7149 Andrey Turetskiy <andrey.turetskiy@intel.com>
7150 Ilya Verbin <ilya.verbin@intel.com>
7151 Kirill Yukhin <kirill.yukhin@intel.com>
7152 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7153
7154 * common/config/i386/i386-common.c
7155 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7156 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7157 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7158 (ix86_handle_option): Handle OPT_mavx512bw.
7159 * config/i386/cpuid.h (bit_AVX512BW): Define.
7160 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7161 set -mavx512bw accordingly.
7162 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7163 OPTION_MASK_ISA_AVX512BW.
7164 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7165 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7166 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7167 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7168 * config/i386/i386.h (TARGET_AVX512BW): Define.
7169 (TARGET_AVX512BW_P(x)): Ditto.
7170 * config/i386/i386.opt: Add mavx512bw.
7171
7172 2014-08-11 Richard Biener <rguenther@suse.de>
7173
7174 PR tree-optimization/62070
7175 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7176 Remove SSA checking.
7177
7178 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7179
7180 * asan.c (asan_check_flags): New enum.
7181 (build_check_stmt_with_calls): Removed function.
7182 (build_check_stmt): Split inlining logic to
7183 asan_expand_check_ifn.
7184 (instrument_derefs): Rename parameter.
7185 (instrument_mem_region_access): Rename parameter.
7186 (instrument_strlen_call): Likewise.
7187 (asan_expand_check_ifn): New function.
7188 (asan_instrument): Remove old code.
7189 (pass_sanopt::execute): Change handling of
7190 asan-instrumentation-with-call-threshold.
7191 (asan_clear_shadow): Fix formatting.
7192 (asan_function_start): Likewise.
7193 (asan_emit_stack_protection): Likewise.
7194 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7195 Update description.
7196 * internal-fn.c (expand_ASAN_CHECK): New function.
7197 * internal-fn.def (ASAN_CHECK): New internal function.
7198 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7199 Update description.
7200 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7201 * tree.c: Small comment fix.
7202
7203 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7204
7205 * gimple.c (gimple_call_fnspec): Support internal functions.
7206 (gimple_call_return_flags): Use const.
7207 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7208 * internal-fn.def: Add fnspec information.
7209 * internal-fn.h (internal_fn_fnspec): New function.
7210 (init_internal_fns): Declare new function.
7211 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7212 (init_internal_fns): New function.
7213 * tree-core.h: Update macro call.
7214 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7215
7216 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7217
7218 * lto-streamer.h (struct output_block::symbol): Change from
7219 struct symtab_node to plain symtab_node.
7220 (referenced_from_this_partition_p): Change first parameter
7221 from struct symtab_node to plain symtab_node.
7222
7223 2014-08-10 Marek Polacek <polacek@redhat.com>
7224
7225 PR c/51849
7226 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7227
7228 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7229
7230 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7231 DECL correctly; do not give up on types in static storage.
7232
7233 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7234
7235 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7236
7237 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7238
7239 * graphite-isl-ast-to-gimple.c:
7240 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7241
7242 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7243
7244 2014-08-08 Guozhi Wei <carrot@google.com>
7245
7246 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7247
7248 2014-08-08 Cary Coutant <ccoutant@google.com>
7249
7250 * dwarf2out.c (get_skeleton_type_unit): Remove.
7251 (output_skeleton_debug_sections): Remove skeleton type units.
7252 (output_comdat_type_unit): Likewise.
7253 (dwarf2out_finish): Likewise.
7254
7255 2014-08-07 Yi Yang <ahyangyi@google.com>
7256
7257 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7258
7259 2014-08-08 Richard Biener <rguenther@suse.de>
7260
7261 * lto-streamer.h (struct lto_input_block): Make it a class
7262 with a constructor.
7263 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7264 (struct lto_function_header, struct lto_simple_header,
7265 struct lto_simple_header_with_strings,
7266 struct lto_decl_header, struct lto_function_header): Make
7267 a simple inheritance hieararchy. Remove unused fields.
7268 (struct lto_asm_header): Remove.
7269 * lto-streamer-out.c (produce_asm): Adjust.
7270 (lto_output_toplevel_asms): Likewise.
7271 (produce_asm_for_decls): Likewise.
7272 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7273 * data-streamer-in.c (string_for_index): Likewise.
7274 * ipa-inline-analysis.c (inline_read_section): Likewise.
7275 * ipa-prop.c (ipa_prop_read_section): Likewise.
7276 (read_replacements_section): Likewise.
7277 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7278 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7279 (lto_destroy_simple_input_block): Likewise.
7280 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7281 (lto_input_toplevel_asms): Likewise.
7282
7283 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7284 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7285 Anna Tikhonova <anna.tikhonova@intel.com>
7286 Ilya Tocar <ilya.tocar@intel.com>
7287 Andrey Turetskiy <andrey.turetskiy@intel.com>
7288 Ilya Verbin <ilya.verbin@intel.com>
7289 Kirill Yukhin <kirill.yukhin@intel.com>
7290 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7291
7292 * common/config/i386/i386-common.c
7293 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7294 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7295 (ix86_handle_option): Handle OPT_mavx512dq.
7296 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7297 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7298 set -mavx512dq accordingly.
7299 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7300 OPTION_MASK_ISA_AVX512DQ.
7301 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7302 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7303 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7304 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7305 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7306 (TARGET_AVX512DQ_P(x)): Ditto.
7307 * config/i386/i386.opt: Add mavx512dq.
7308
7309 2014-08-08 Richard Biener <rguenther@suse.de>
7310
7311 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7312 target_percent, target_percent_s): Export.
7313 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7314 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7315 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7316 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7317 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7318 Move to gimple-fold.c.
7319 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7320 strcat and strcpy.
7321 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7322 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7323 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7324 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7325 (rewrite_call_expr_array): Remove.
7326 (fold_builtin_sprintf_chk): Likewise.
7327 (fold_builtin_snprintf_chk): Likewise.
7328 (fold_builtin_varargs): Remove handling of sprintf_chk,
7329 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7330 (gimple_fold_builtin_sprintf_chk): Remove.
7331 (gimple_fold_builtin_snprintf_chk): Likewise.
7332 (gimple_fold_builtin_varargs): Likewise.
7333 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7334 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7335 * gimple.c (gimple_seq_add_seq_without_update): New function.
7336 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7337 * gimple-fold.c: Include output.h.
7338 (gsi_replace_with_seq_vops): New function, split out from ...
7339 (gimplify_and_update_call_from_tree): ... here.
7340 (replace_call_with_value): New function.
7341 (replace_call_with_call_and_fold): Likewise.
7342 (var_decl_component_p): Moved from builtins.c.
7343 (gimple_fold_builtin_memory_op): Moved from builtins.c
7344 fold_builtin_memory_op and rewritten to GIMPLE.
7345 (gimple_fold_builtin_memset): Likewise.
7346 (gimple_fold_builtin_strcpy): Likewise.
7347 (gimple_fold_builtin_strncpy): Likewise.
7348 (gimple_fold_builtin_strcat): Likewise.
7349 (gimple_fold_builtin_fputs): Likewise.
7350 (gimple_fold_builtin_memory_chk): Likewise.
7351 (gimple_fold_builtin_stxcpy_chk): Likewise.
7352 (gimple_fold_builtin_stxncpy_chk): Likewise.
7353 (gimple_fold_builtin_snprintf_chk): Likewise.
7354 (gimple_fold_builtin_sprintf_chk): Likewise.
7355 (gimple_fold_builtin_strlen): New function.
7356 (gimple_fold_builtin_with_strlen): New function split out from
7357 gimple_fold_builtin.
7358 (gimple_fold_builtin): Change signature and handle
7359 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7360 here. Call gimple_fold_builtin_with_strlen.
7361 (gimple_fold_call): Adjust.
7362
7363 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7364
7365 * calls.c (precompute_arguments): Check
7366 promoted_for_signed_and_unsigned_p and set the promoted mode.
7367 (promoted_for_signed_and_unsigned_p): New function.
7368 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7369 and set the promoted mode.
7370 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7371 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7372 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7373
7374
7375 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7376
7377 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7378 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7379 (expand_call): Likewise.
7380 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7381 to get promoted mode.
7382 * combine.c (record_promoted_value): Skip > 0 comparison with
7383 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7384 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7385 of SUBREG_PROMOTED_UNSIGNED_P.
7386 (convert_modes): Likewise.
7387 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7388 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7389 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7390 SUBREG_PROMOTED_UNSIGNED_SET.
7391 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7392 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7393 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7394 SUBREG_PROMOTED_SET.
7395 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7396 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7397 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7398 of SUBREG_PROMOTED_UNSIGNED_P.
7399 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7400 (SUBREG_PROMOTED_SET): New define.
7401 (SUBREG_PROMOTED_GET): Likewise.
7402 (SUBREG_PROMOTED_SIGN): Likewise.
7403 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7404 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7405 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7406 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7407 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7408 (nonzero_bits1): Skip > 0 comparison with the results as
7409 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7410 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7411 of !SUBREG_PROMOTED_UNSIGNED_P.
7412 * simplify-rtx.c (simplify_unary_operation_1): Use new
7413 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7414 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7415 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7416 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7417
7418 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7419
7420 * ipa-devirt.c: Include gimple-pretty-print.h
7421 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7422 further tests.
7423 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7424 (get_polymorphic_call_info): Fix return value
7425 (type_change_info): New sturcture based on ipa-prop
7426 variant.
7427 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7428 based on ipa-prop variant.
7429 (extr_type_from_vtbl_ptr_store): New function
7430 based on ipa-prop variant.
7431 (record_known_type): New function.
7432 (check_stmt_for_type_change): New function.
7433 (get_dynamic_type): New function.
7434 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7435 * tree-ssa-pre.c: ipa-utils.h
7436 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7437 machinery; sanity check with ipa-prop devirtualization.
7438 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7439 polymorphic flag.
7440
7441 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7442
7443 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7444 * alias.c, cfgexpand.c, cgraphbuild.c,
7445 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7446 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7447 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7448 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7449 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7450 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7451 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7452 dse.c, except.c, gengtype.c, gimple-expr.c,
7453 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7454 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7455 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7456 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7457 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7458 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7459 pointer-set.h.
7460 * pointer-set.c: Remove file.
7461 * pointer-set.h: Remove file.
7462
7463 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7464
7465 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7466 * config/arm/types.md (f_sels, f_seld): Delete.
7467
7468 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7469
7470 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7471 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7472 (aarch64_movdi_<mode>high): Likewise.
7473 (aarch64_mov<mode>high_di): Likewise.
7474 (aarch64_movdi_<mode>low): Likewise.
7475 (aarch64_mov<mode>low_di): Likewise.
7476 (aarch64_movtilow_tilow): Likewise.
7477 Add comment explaining usage of fp,simd attributes and of
7478 TARGET_FLOAT and TARGET_SIMD.
7479
7480 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7481 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7482
7483 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7484 Use MOVN when one of the half-words is 0xffff.
7485
7486 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7487
7488 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7489
7490 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7491
7492 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7493 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7494 (rfs_str): String corresponding to RFS_* constants.
7495 (rank_for_schedule_stats_t): New typedef.
7496 (rank_for_schedule_stats): New static variable.
7497 (rfs_result): New static function.
7498 (rank_for_schedule): Track statistics for deciding heuristics.
7499 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7500 static functions.
7501 (ready_sort): Use them for debug printouts.
7502 (schedule_block): Init statistics state. Print statistics on
7503 rank_for_schedule decisions.
7504
7505 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7506
7507 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7508
7509 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7510
7511 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7512 constraint.
7513
7514 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7515
7516 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7517 function to not conflict.
7518 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7519 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7520 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7521 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7522 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7523 of pointer_map.
7524
7525 2014-08-07 Marek Polacek <polacek@redhat.com>
7526
7527 * fold-const.c (fold_binary_loc): Add folding of
7528 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7529
7530 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7531
7532 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7533 instead of type size.
7534 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7535
7536 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7537
7538 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7539 (*thumb1_movqi_insn): Likewise.
7540 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7541
7542 2014-08-07 Tom de Vries <tom@codesourcery.com>
7543
7544 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7545 (glibc_2_11_or_earlier): Remove effective-target keywords.
7546
7547 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7548
7549 * config/arm/arm.c (bdesc_2arg): Fix typo.
7550 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7551
7552 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7553
7554 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7555
7556 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7557
7558 PR debug/61923
7559 * haifa-sched.c (advance_one_cycle): Fix dump.
7560 (schedule_block): Don't advance cycle if we are already at the
7561 beginning of the cycle.
7562
7563 2014-08-06 Martin Jambor <mjambor@suse.cz>
7564
7565 PR ipa/61393
7566 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7567
7568 2014-08-06 Richard Biener <rguenther@suse.de>
7569
7570 PR lto/62034
7571 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7572 SCCs here.
7573 (lto_input_tree): Pop SCCs here.
7574
7575 2014-08-06 Richard Biener <rguenther@suse.de>
7576
7577 PR tree-optimization/61320
7578 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7579 handle misaligned loads.
7580
7581 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7582
7583 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7584 (aarch64_expand_vec_perm_const): Check for dup before zip.
7585
7586 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7587
7588 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7589 CONST_INT_P instead of GET_CODE and compare.
7590 (aarch64_select_cc_mode): Likewise.
7591 (aarch64_print_operand): Likewise.
7592 (aarch64_rtx_costs): Likewise.
7593 (aarch64_simd_valid_immediate): Likewise.
7594 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7595 (aarch64_simd_emit_pair_result_insn): Likewise.
7596
7597 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7598
7599 * gdbhooks.py (find_gcc_source_dir): New helper function.
7600 (class PassNames): New class, locating and parsing passes.def.
7601 (class BreakOnPass): New command "break-on-pass".
7602
7603 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7604
7605 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7606 getting olde.
7607
7608 2014-08-05 Richard Biener <rguenther@suse.de>
7609
7610 PR rtl-optimization/61672
7611 * emit-rtl.h (mem_attrs_eq_p): Declare.
7612 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7613 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7614 * cfgcleanup.c (merge_memattrs): Likewise.
7615 Include emit-rtl.h.
7616
7617 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7618
7619 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7620 rather than singleton vectors.
7621 (vqdmlsls_lane_s32): Likewise.
7622
7623 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7624
7625 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7626 Use VSDQ_HSI mode iterator.
7627 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7628 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7629 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7630 Use BUILTIN_VDQHS macro.
7631 (sqrdmulh_laneq): Likewise.
7632 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7633 (vqdmlals_laneq_s32): Likewise.
7634 (vqdmlslh_laneq_s16): Likewise.
7635 (vqdmlsls_laneq_s32): Likewise.
7636 (vqdmulhh_laneq_s16): Likewise.
7637 (vqdmulhs_laneq_s32): Likewise.
7638 (vqrdmulhh_laneq_s16): Likewise.
7639 (vqrdmulhs_laneq_s32): Likewise.
7640
7641 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7642
7643 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7644 (vmuld_laneq_f64): Likewise.
7645 (vmuls_laneq_f32): Likewise.
7646 (vmul_n_f64): Likewise.
7647 (vmuld_lane_f64): Reimplement in C.
7648 (vmuls_lane_f32): Likewise.
7649
7650 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7651
7652 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7653 to reservation.
7654 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7655
7656 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7657
7658 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7659 (rbitsi2): Likewise.
7660 (*arm_rev): Set predicable and predicable_short_it attributes.
7661
7662 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7663
7664 * convert.c (convert_to_integer): Guard transformation to lrint by
7665 -fno-math-errno.
7666
7667 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7668
7669 * config/aarch64/aarch64-builtins.c
7670 (aarch64_simd_builtin_type_mode): Delete.
7671 (v8qi_UP): Remap to V8QImode.
7672 (v4hi_UP): Remap to V4HImode.
7673 (v2si_UP): Remap to V2SImode.
7674 (v2sf_UP): Remap to V2SFmode.
7675 (v1df_UP): Remap to V1DFmode.
7676 (di_UP): Remap to DImode.
7677 (df_UP): Remap to DFmode.
7678 (v16qi_UP):V16QImode.
7679 (v8hi_UP): Remap to V8HImode.
7680 (v4si_UP): Remap to V4SImode.
7681 (v4sf_UP): Remap to V4SFmode.
7682 (v2di_UP): Remap to V2DImode.
7683 (v2df_UP): Remap to V2DFmode.
7684 (ti_UP): Remap to TImode.
7685 (ei_UP): Remap to EImode.
7686 (oi_UP): Remap to OImode.
7687 (ci_UP): Map to CImode.
7688 (xi_UP): Remap to XImode.
7689 (si_UP): Remap to SImode.
7690 (sf_UP): Remap to SFmode.
7691 (hi_UP): Remap to HImode.
7692 (qi_UP): Remap to QImode.
7693 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7694 (VAR1): Build builtin name.
7695 (aarch64_init_simd_builtins): Remove dead code.
7696
7697 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7698
7699 * graphite-isl-ast-to-gimple.c:
7700 (set_options): New function.
7701 (scop_to_isl_ast): Add calling of set_options.
7702
7703 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7704
7705 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7706 (analyze_iv_to_split_insn): Don't initialize them.
7707 (get_ivts_expr): Removed.
7708 (allocate_basic_variable, insert_base_initialization): Use
7709 SET_SRC instead of *get_ivts_expr.
7710 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7711
7712 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7713
7714 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7715 (translate_isl_ast_for_loop): Add checking of the
7716 flag_loop_parallelize_all.
7717 (ast_build_before_for): New function.
7718 (scop_to_isl_ast): Add checking of the
7719 flag_loop_parallelize_all.
7720 * graphite-dependences.c: Move the defenition of the
7721 scop_get_dependences from graphite-optimize-isl.c to this file.
7722 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7723 (carries_deps): Add checking of the x's value.
7724 * graphite-optimize-isl.c: Move the defenition of the
7725 scop_get_dependences to graphite-dependences.c.
7726 * graphite-poly.h: Add declarations of scop_get_dependences
7727 and carries_deps.
7728
7729 2014-08-04 Rohit <rohitarulraj@freescale.com>
7730
7731 PR target/60102
7732 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7733 names.
7734 (alt_reg_names): Likewise.
7735 (rs6000_dwarf_register_span): For SPE high registers, replace
7736 dwarf register numbers with GCC hard register numbers.
7737 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7738 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7739 register number for the corresponding GCC hard register number.
7740 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7741 newly added GCC hard register numbers for SPE high registers.
7742 (DWARF_FRAME_REGISTERS): Likewise.
7743 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7744 (DWARF_FRAME_REGNUM): Likewise.
7745 (FIXED_REGISTERS): Likewise.
7746 (CALL_USED_REGISTERS): Likewise.
7747 (CALL_REALLY_USED_REGISTERS): Likewise.
7748 (REG_ALLOC_ORDER): Likewise.
7749 (enum reg_class): Likewise.
7750 (REG_CLASS_NAMES): Likewise.
7751 (REG_CLASS_CONTENTS): Likewise.
7752 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7753
7754 2014-08-04 Richard Biener <rguenther@suse.de>
7755
7756 * gimple-fold.h (gimple_fold_builtin): Remove.
7757 * gimple-fold.c (gimple_fold_builtin): Make static.
7758 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7759 fold_stmt, not gimple_fold_builtin.
7760
7761 2014-08-04 Martin Liska <mliska@suse.cz>
7762
7763 * cgraph.h (csi_end_p): Removed.
7764 (csi_next): Likewise.
7765 (csi_node): Likewise.
7766 (csi_start): Likewise.
7767 (cgraph_node_in_set_p): Likewise.
7768 (cgraph_node_set_size): Likewise.
7769 (vsi_end_p): Likewise.
7770 (vsi_next): Likewise.
7771 (vsi_node): Likewise.
7772 (vsi_start): Likewise.
7773 (varpool_node_set_size): Likewise.
7774 (cgraph_node_set_nonempty_p): Likewise.
7775 (varpool_node_set_nonempty_p): Likewise.
7776 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7777 cgraph_node_set.
7778 * ipa-inline-transform.c: Likewise.
7779 * ipa-utils.c (cgraph_node_set_new): Removed.
7780 (cgraph_node_set_add): Likewise.
7781 (cgraph_node_set_remove): Likewise.
7782 (cgraph_node_set_find): Likewise.
7783 (dump_cgraph_node_set): Likewise.
7784 (debug_cgraph_node_set): Likewise.
7785 (free_cgraph_node_set): Likewise.
7786 (varpool_node_set_new): Likewise.
7787 (varpool_node_set_add): Likewise.
7788 (varpool_node_set_remove): Likewise.
7789 (varpool_node_set_find): Likewise.
7790 (dump_varpool_node_set): Likewise.
7791 (free_varpool_node_set): Likewise.
7792 (debug_varpool_node_set): Likewise.
7793 * tree-emutls.c (struct tls_var_data):
7794 (emutls_index): Removed.
7795 (emutls_decl): Likewise.
7796 (gen_emutls_addr): Function implementation uses newly added
7797 hash_map<varpool_node *, tls_var_data>.
7798 (clear_access_vars): Likewise.
7799 (create_emultls_var): Likewise.
7800 (ipa_lower_emutls): Likewise.
7801 (reset_access): New function.
7802
7803 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7804
7805 * config/i386/i386.c (ix86_option_override_internal): Add
7806 PTA_RDRND and PTA_MOVBE for bdver4.
7807
7808 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7809 James Greenhalgh <james.greenhalgh@arm.com>
7810
7811 * doc/md.texi (clrsb): Document.
7812 (clz): Change reference to x into operand 1.
7813 (ctz): Likewise.
7814 (popcount): Likewise.
7815
7816 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7817
7818 PR target/61713
7819 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7820 move to subtarget in serial version if result is ignored.
7821
7822 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7823 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7824
7825 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7826 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7827 (sched_analyze_insn): Update use of try_group_insn to
7828 sched_macro_fuse_insns.
7829 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7830 arguments that are not conditional jumps.
7831
7832 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7833
7834 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7835 family information. Handle BTVER2 cpu with cpuid family value.
7836
7837 2014-08-04 Tom de Vries <tom@codesourcery.com>
7838
7839 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7840 (glibc_2_11_or_earlier): Document effective-target keywords.
7841
7842 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7843
7844 * ipa-devirt.c (odr_type_warn_count): Add type.
7845 (possible_polymorphic_call_targets): Set it.
7846 (ipa_devirt): Use it.
7847
7848 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7849
7850 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7851 Document.
7852 * ipa-devirt.c: Include hash-map.h
7853 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7854 (clear_speculation): Break out of ...
7855 (get_class_context): ... here; speed up handling obviously useless
7856 speculations.
7857 (odr_type_warn_count, decl_warn_count): New structures.
7858 (final_warning_record): New structure.
7859 (final_warning_records): New static variable.
7860 (possible_polymorphic_call_targets): Cleanup handling of
7861 speculative info; do not build speculation when user do not care;
7862 record info about warnings when asked for.
7863 (add_decl_warning): New function.
7864 (type_warning_cmp): New function.
7865 (decl_warning_cmp): New function.
7866 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7867 (gate): Enable pass when warnings are requested.
7868 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7869 options.
7870
7871 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7872
7873 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7874 Fix cast.
7875 (hash_map::remove): New method.
7876 (hash_map::traverse): New method.
7877 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7878 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7879 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7880 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7881 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7882 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7883 pointer_map.
7884
7885 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7886
7887 * hash-set.h: new File.
7888 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7889 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7890 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7891 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7892 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7893 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7894 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7895 varpool.c: Use hash_set instead of pointer_set.
7896
7897 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7898
7899 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7900
7901 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7902
7903 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7904 for frame access when strict_p is false.
7905
7906 2014-08-01 Renlin Li <renlin.li@arm.com>
7907 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7908
7909 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7910 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7911 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7912 Declaration.
7913 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7914 predicate.
7915 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7916 aarch64_mem_pair_offset.
7917
7918 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7919
7920 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7921 offset.
7922 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7923 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7924
7925 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7926
7927 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7928
7929 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7930
7931 PR regression/61510
7932 * cgraphunit.c (analyze_functions): Use get_create rather than get
7933 for decls which are clones of abstract functions.
7934
7935 2014-08-01 Martin Liska <mliska@suse.cz>
7936
7937 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7938 * ipa-prop.h (count_formal_params): Global function created from static.
7939 * ipa-prop.c (count_formal_params): Likewise.
7940 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7941 profiles for semantically equivalent functions.
7942 * passes.c (do_per_function): If we load body of a function
7943 during WPA, this condition should behave same.
7944 * varpool.c (ctor_for_folding): More tolerant assert for variable
7945 aliases created during WPA.
7946
7947 2014-08-01 Martin Liska <mliska@suse.cz>
7948
7949 * doc/invoke.texi (Options That Control Optimization): Documentation
7950 for -foptimize-strlen introduced. Optimization levels default options
7951 fixed.
7952
7953 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7954
7955 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7956 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7957 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7958 type to bool.
7959 * stor-layout.h (min_align_of_type): New prototype.
7960 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7961 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7962 check.
7963 * ubsan.c: Include builtins.h.
7964 (ubsan_expand_bounds_ifn): Change return type to bool,
7965 always return true.
7966 (ubsan_expand_null_ifn): Change return type to bool, change
7967 argument to gimple_stmt_iterator *. Handle both null and alignment
7968 sanitization, take type from ckind argument's type rather than
7969 first argument.
7970 (instrument_member_call): Removed.
7971 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7972 Handle both null and alignment sanitization, don't say whole
7973 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7974 call instead of 2 argument.
7975 (instrument_null): Adjust instrument_mem_ref caller. Don't
7976 instrument calls here.
7977 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7978 like SANITIZE_NULL.
7979 * stor-layout.c (min_align_of_type): New function.
7980 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7981 Or it into SANITIZE_UNDEFINED.
7982 * doc/invoke.texi (-fsanitize=alignment): Document.
7983
7984 2014-07-31 Andi Kleen <ak@linux.intel.com>
7985
7986 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7987
7988 2014-07-31 Andi Kleen <ak@linux.intel.com>
7989
7990 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7991 inchash.
7992 (vn_reference_compute_hash): Dito.
7993 (vn_nary_op_compute_hash): Dito.
7994 (vn_phi_compute_hash): Dito.
7995 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7996
7997 2014-07-31 Andi Kleen <ak@linux.intel.com>
7998
7999 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
8000 Rename to inchash:add_expr_commutative. Convert to inchash.
8001 (iterative_hash_hashable_expr): Rename to
8002 inchash:add_hashable_expr. Convert to inchash.
8003 (avail_expr_hash): Dito.
8004
8005 2014-07-31 Andi Kleen <ak@linux.intel.com>
8006
8007 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
8008 Convert to inchash.
8009
8010 2014-07-31 Andi Kleen <ak@linux.intel.com>
8011
8012 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
8013
8014 2014-07-31 Andi Kleen <ak@linux.intel.com>
8015
8016 * Makefile.in (OBJS): Add rtlhash.o
8017 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8018 (loc_checksum): Dito.
8019 (loc_checksum_ordered): Dito.
8020 (hash_loc_operands): Dito.
8021 (hash_locs): Dito.
8022 (hash_loc_list): Dito.
8023 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8024 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8025 * rtlhash.c: New file.
8026 * rtlhash.h: New file.
8027
8028 2014-07-31 Andi Kleen <ak@linux.intel.com>
8029
8030 * inchash.h (inchash): Change inchash class to namespace.
8031 (class hash): ... Rename from inchash.
8032 (add_object): Move from macro to class template.
8033 * lto-streamer-out.c (hash_tree): Change inchash
8034 to inchash::hash.
8035 * tree.c (build_type_attribute_qual_variant): Dito.
8036 (type_hash_list): Dito.
8037 (attribute_hash_list): Dito.
8038 (iterative_hstate_expr): Rename to inchash::add_expr
8039 (build_range_type_1): Change inchash to inchash::hash
8040 and use hash::add_expr.
8041 (build_array_type_1): Dito.
8042 (build_function_type): Dito
8043 (build_method_type_directly): Dito.
8044 (build_offset_type): Dito.
8045 (build_complex_type): Dito.
8046 (make_vector_type): Dito.
8047 * tree.h (iterative_hash_expr): Dito.
8048
8049 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8050
8051 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8052
8053 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8054
8055 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8056 correct alphabetical position.
8057 (vpaddd_f64): Rewrite using builtins.
8058 (vpaddd_s64): Move to correct alphabetical position.
8059 (vpaddd_u64): New.
8060
8061 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8062
8063 PR target/61844
8064 * config/sh/sh.c (sh_legitimate_address_p,
8065 sh_legitimize_reload_address): Handle reg+reg address modes when
8066 ALLOW_INDEXED_ADDRESS is false.
8067 * config/sh/predicates.md (general_movsrc_operand,
8068 general_movdst_operand): Likewise.
8069
8070 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8071
8072 * config/aarch64/aarch64-builtins.c
8073 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8074 BYTES_BIG_ENDIAN.
8075
8076 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8077
8078 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8079 the generated mask based on BYTES_BIG_ENDIAN.
8080 (aarch64_simd_check_vect_par_cnst_half): New.
8081 * config/aarch64/aarch64-protos.h
8082 (aarch64_simd_check_vect_par_cnst_half): New.
8083 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8084 the check out to aarch64_simd_check_vect_par_cnst_half.
8085 (vect_par_cnst_lo_half): Likewise.
8086 * config/aarch64/aarch64-simd.md
8087 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8088 (move_hi_quad_<mode>): Always generate a low mask.
8089
8090 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8091
8092 * doc/invoke.texi (AVR Options): Add documentation about
8093 __AVR_DEVICE_NAME__ built-in macro.
8094
8095 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8096
8097 PR target/61948
8098 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8099 constraints are satisfied.
8100 (<shift>di3_neon): Likewise.
8101
8102 2014-07-31 Richard Biener <rguenther@suse.de>
8103
8104 PR tree-optimization/61964
8105 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8106 by structural equality.
8107
8108 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8109
8110 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8111 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8112 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8113 New enums.
8114 * gcc.c (sanitize_spec_function): Support new option.
8115 (SANITIZER_SPEC): Remove now redundant check.
8116 * opts.c (common_handle_option): Support new option.
8117 (finish_options): Check for incompatibilities.
8118 * toplev.c (process_options): Split userspace-specific checks.
8119
8120 2014-07-31 Richard Biener <rguenther@suse.de>
8121
8122 * lto-streamer.h (struct output_block): Remove global.
8123 (struct data_in): Remove labels, num_named_labels and
8124 num_unnamed_labels.
8125 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8126 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8127
8128 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8129
8130 PR c++/60517
8131 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8132 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8133 (isolate_path): New argument to avoid inserting a trap.
8134 (find_implicit_erroneous_behaviour): Handle returning the address
8135 of a local variable.
8136 (find_explicit_erroneous_behaviour): Likewise.
8137
8138 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8139
8140 PR lto/61868
8141 * toplev.c (init_random_seed): Move piece of code never called to
8142 set_random_seed.
8143 (set_random_seed): see above.
8144
8145 2014-07-31 Tom de Vries <tom@codesourcery.com>
8146
8147 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8148
8149 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8150
8151 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8152 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8153
8154 2014-07-31 Richard Biener <rguenther@suse.de>
8155
8156 * data-streamer.h (streamer_write_data_stream): Declare here,
8157 renamed from ...
8158 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8159 * lto-cgraph.c (lto_output_node): Adjust.
8160 (lto_output_varpool_node): Likewise.
8161 * data-streamer-out.c (streamer_string_index): Likewise.
8162 (streamer_write_data_stream, lto_append_block): Move from ...
8163 * lto-section-out.c (lto_output_data_stream,
8164 lto_append_block): ... here.
8165
8166 2014-07-30 Mike Stump <mikestump@comcast.net>
8167
8168 * configure.ac: Also check for popen.
8169 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8170 * configure: Regenerate.
8171 * config.in: Regenerate.
8172
8173 2014-07-30 Martin Jambor <mjambor@suse.cz>
8174
8175 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8176 parameter to gimple.
8177
8178 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8179
8180 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8181 address as second parameter to __tpf_eh_return routine.
8182
8183 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8184
8185 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8186 Thumb2.
8187
8188 2014-07-30 Tom Tromey <tromey@redhat.com>
8189
8190 PR c/59855
8191 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8192 * doc/extend.texi (Type Attributes): Document designated_init
8193 attribute.
8194
8195 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8196
8197 * graphite-isl-ast-to-gimple.c:
8198 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8199 (gcc_expression_from_isl_expression): Pass type to
8200 gcc_expression_from_isl_ast_expr_id.
8201
8202 2014-07-30 Richard Biener <rguenther@suse.de>
8203
8204 * lto-streamer.h (lto_write_data): New function.
8205 * langhooks.c (lhd_append_data): Do not free block.
8206 * lto-section-out.c (lto_write_data): New function writing
8207 raw data to the current section.
8208 (lto_write_stream): Adjust for langhook semantic change.
8209 (lto_destroy_simple_output_block): Write header directly.
8210 * lto-opts.c (lto_write_options): Write options directly.
8211 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8212 (lto_output_toplevel_asms): Likewise.
8213 (copy_function_or_variable): Copy data directly.
8214 (write_global_references): Output index table directly.
8215 (lto_output_decl_state_refs): Likewise.
8216 (write_symbol): Write data directly.
8217 (produce_symtab): Adjust.
8218 (produce_asm_for_decls): Output header and refs directly.
8219
8220 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8221
8222 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8223 to speculative_targets
8224 (get_class_context): Fix handling of contextes without outer type;
8225 avoid matching non-polymorphic types in LTO.
8226 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8227 parameter to speculative_targetsp; handle speculation.
8228 (dump_possible_polymorphic_call_targets): Update dumping.
8229
8230 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8231
8232 * common.opt (Wodr): Enable by default.
8233
8234 2014-07-29 Olivier Hainque <hainque@adacore.com>
8235
8236 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8237
8238 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8239
8240 PR bootstrap/61914
8241 * gengtype.c (strtoken): New function.
8242 (create_user_defined_type): Replace strtok with strtoken.
8243
8244 2014-07-29 Nathan Sidwell <nathan@acm.org>
8245
8246 * gcov-io.c (gcov_var): Make hidden.
8247 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8248 (gcov_do_dump): Declare.
8249 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8250
8251 2014-07-29 Martin Jambor <mjambor@suse.cz>
8252
8253 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8254 parameter to gimple.
8255 (sra_modify_assign): Likewise.
8256
8257 2014-07-29 Richard Biener <rguenther@suse.de>
8258
8259 PR middle-end/52478
8260 * expr.c (expand_expr_real_2): Revert last change.
8261
8262 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8263
8264 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8265 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8266 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8267 call.
8268 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8269 (contains_type_p): Forward declare.
8270 (polymorphic_call_target_hasher::hash): Hash speculative info.
8271 (polymorphic_call_target_hasher::equal): Compare speculative info.
8272 (get_class_context): Handle speuclation.
8273 (contains_type_p): Update.
8274 (get_polymorphic_call_info_for_decl): Update.
8275 (walk_ssa_copies): Break out from ...
8276 (get_polymorphic_call_info): ... here; set speculative context
8277 before giving up.
8278 * ipa-prop.c (ipa_write_indirect_edge_info,
8279 ipa_read_indirect_edge_info): Stream speculative context.
8280 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8281 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8282 SPECULATIVE_MAYBE_DERIVED_TYPE).
8283 (possible_polymorphic_call_targets overriders): Update.
8284 (dump_possible_polymorphic_call_targets overriders): Update.
8285 (dump_possible_polymorphic_call_target_p overriders): Update.
8286
8287 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8288
8289 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8290 ipa-devirt path; fix thinko there.
8291
8292 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8293
8294 * config/i386/i386.c (ix86_return_in_memory): Replace one
8295 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8296
8297 2014-07-28 Marek Polacek <polacek@redhat.com>
8298
8299 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8300
8301 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8302
8303 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8304 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8305 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8306 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8307 (USE_LD_AS_NEEDED): Likewise.
8308 (ASM_APP_ON): Likewise.
8309 (ASM_APP_OFF): Likewise.
8310 (TARGET_POSIX_IO): Likewise.
8311 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8312 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8313 (USE_LD_AS_NEEDED): Likewise.
8314 (ASM_APP_ON): Likewise.
8315 (ASM_APP_OFF): Likewise.
8316 (TARGET_POSIX_IO): Likewise.
8317
8318 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8319
8320 PR middle-end/61734
8321 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8322 operators other than the equality operators.
8323
8324 2014-07-28 Richard Biener <rguenther@suse.de>
8325
8326 PR middle-end/52478
8327 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8328 sure to register SImode ones, not only >= word_mode ones.
8329 * expr.c (expand_expr_real_2): When expanding -ftrapv
8330 binops do not use OPTAB_LIB_WIDEN.
8331
8332 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8333
8334 PR middle-end/61919
8335 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8336 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8337 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8338 inserting them in the insn stream.
8339
8340 2014-07-28 Marek Polacek <polacek@redhat.com>
8341
8342 PR middle-end/61913
8343 * common.opt (Wodr): Add Var.
8344
8345 2014-07-28 Richard Biener <rguenther@suse.de>
8346
8347 PR tree-optimization/61921
8348 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8349 if there is a varpool node before dereferencing it.
8350
8351 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8352
8353 * graphite-sese-to-poly.c:
8354 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8355 id of the pbb), which contains pointer to the pbb1.
8356
8357 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8358
8359 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8360
8361 * graphite-isl-ast-to-gimple.c:
8362 (graphite_create_new_guard): New function.
8363 (translate_isl_ast_node_if): New function.
8364 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8365
8366 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8367
8368 2014-07-27 Anthony Green <green@moxielogic.com>
8369
8370 * config.gcc: Add moxie-*-moxiebox* configuration.
8371 * config/moxie/moxiebox.h: New file.
8372
8373 2014-07-26 Andrew Pinski <apinski@cavium.com>
8374
8375 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8376 from the read only register.
8377
8378 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8379
8380 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8381 as the allocation class if it isn't likely to be spilled.
8382
8383 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8384
8385 * rtl.h (tls_referenced_p): Declare.
8386 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8387 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8388 (mips_cannot_force_const_mem): Use tls_referenced_p.
8389 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8390 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8391 instead of pa_tls_referenced_p.
8392 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8393 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8394 (pa_legitimate_constant_p): Likewise.
8395 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8396 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8397 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8398 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8399 rs6000_tls_referenced_p.
8400 (rs6000_tls_symbol_ref_1): Delete.
8401
8402 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8403
8404 PR target/44551
8405 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8406 Optimize inverse of a VEC_CONCAT.
8407
8408 2014-07-25 Xinliang David Li <davidxl@google.com>
8409
8410 * params.def: New parameter.
8411 * coverage.c (get_coverage_counts): Check new flag.
8412 (coverage_compute_profile_id): Check new flag.
8413 (coverage_begin_function): Check new flag.
8414 (coverage_end_function): Check new flag.
8415 * value-prof.c (coverage_node_map_initialized_p): New function.
8416 (init_node_map): Populate map with all functions.
8417 * doc/invoke.texi: Document new parameter.
8418
8419 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8420 Richard Biener <rguenther@suse.de>
8421
8422 * lto-streamer-out.c (struct sccs): Turn to ...
8423 (class DFS): ... this one; refactor the DFS walk so it can
8424 be re-done on per-SCC basis.
8425 (DFS::DFS): New constructor.
8426 (DFS::~DFS): New destructor.
8427 (hash_tree): Add new MAP argument holding in-SCC hash values;
8428 remove POINTER_TYPE hashing hack.
8429 (scc_entry_compare): Rename to ...
8430 (DFS::scc_entry_compare): ... this one.
8431 (hash_scc): Rename to ...
8432 (DFS::hash_scc): ... this one; pass output_block instead
8433 of streamer_cache; work harder to get unique and stable SCC
8434 hashes.
8435 (DFS_write_tree): Rename to ...
8436 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8437 (lto_output_tree): Update.
8438
8439 2014-07-25 Andi Kleen <ak@linux.intel.com>
8440
8441 * lto-streamer-out.c (hash_tree): Convert to inchash.
8442
8443 2014-07-25 Andi Kleen <ak@linux.intel.com>
8444
8445 * tree.c (build_type_attribute_qual_variant): Use inchash.
8446 (type_hash_list): Dito.
8447 (attribute_hash_list): Dito
8448 (iterative_hstate_expr): Dito.
8449 (iterative_hash_expr): Dito.
8450 (build_range_type_1): Dito.
8451 (build_array_type_1): Dito.
8452 (build_function_type): Dito.
8453 (build_method_type_directly): Dito.
8454 (build_offset_type): Dito.
8455 (build_complex_type): Dito.
8456 (make_vector_type): Dito.
8457 * tree.h (iterative_hash_expr): Add compat wrapper.
8458 (iterative_hstate_expr): Add.
8459
8460 2014-07-25 Andi Kleen <ak@linux.intel.com>
8461
8462 * Makefile.in (OBJS): Add inchash.o.
8463 (PLUGIN_HEADERS): Add inchash.h.
8464 * ipa-devirt.c: Include inchash.h.
8465 * lto-streamer-out.c: Dito.
8466 * tree-ssa-dom.c: Dito.
8467 * tree-ssa-pre.c: Dito.
8468 * tree-ssa-sccvn.c: Dito.
8469 * tree-ssa-tail-merge.c: Dito.
8470 * asan.c: Dito.
8471 * tree.c (iterative_hash_hashval_t): Move to ...
8472 (iterative_hash_host_wide_int): Move to ...
8473 * inchash.c: Here. New file.
8474 * tree.h (iterative_hash_hashval_t): Move to ...
8475 (iterative_hash_host_wide_int): Move to ...
8476 * inchash.h: Here. New file.
8477
8478 2014-07-25 Richard Biener <rguenther@suse.de>
8479
8480 PR middle-end/61762
8481 PR middle-end/61894
8482 * fold-const.c (native_encode_int): Add and handle offset
8483 parameter to do partial encodings of expr.
8484 (native_encode_fixed): Likewise.
8485 (native_encode_real): Likewise.
8486 (native_encode_complex): Likewise.
8487 (native_encode_vector): Likewise.
8488 (native_encode_string): Likewise.
8489 (native_encode_expr): Likewise.
8490 * fold-const.c (native_encode_expr): Add offset parameter
8491 defaulting to -1.
8492 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8493 (fold_ctor_reference): Handle all reads from tcc_constant
8494 ctors.
8495
8496 2014-07-25 Richard Biener <rguenther@suse.de>
8497
8498 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8499 as possibly unused.
8500
8501 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8502
8503 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8504
8505 2014-07-24 Kyle McMartin <kyle@redhat.com>
8506
8507 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8508
8509 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8510
8511 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8512 Add prototype.
8513 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8514 function.
8515 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8516 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8517 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8518
8519 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8520
8521 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8522 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8523 aggregate types. Instead, *all* aggregate types, except for single-
8524 element or homogeneous float/vector aggregates, are quadword-aligned
8525 if required by their type alignment. Issue -Wpsabi note when a type
8526 is now treated differently than before.
8527
8528 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8529
8530 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8531 does not fit fully into floating-point registers, and there is still
8532 space in the register parameter area, use GPRs to pass those parts
8533 of the argument. Issue -Wpsabi note if any parameter is now treated
8534 differently than before.
8535 (rs6000_arg_partial_bytes): Update.
8536
8537 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8538
8539 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8540
8541 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8542
8543 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8544 * toplev.c (initialize_rtl): Don't use it. Move previously
8545 "language-dependent" calls to...
8546 (backend_init): ...here.
8547 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8548 Assert that RTL initialization hasn't happend yet.
8549
8550 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8551
8552 PR rtl-optimization/61629
8553 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8554 they have already been initialized.
8555
8556 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8557
8558 PR middle-end/61268
8559 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8560 DECL_INCOMING_RTL and entry_parm.
8561 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8562 * calls.c (load_register_parameters): Likewise argument values.
8563 (emit_library_call_value_1, store_one_arg): Likewise argument
8564 save areas.
8565 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8566 stack slot.
8567 * explow.c (validize_mem): Modify the argument in-place.
8568
8569 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8570
8571 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8572 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8573
8574 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8575
8576 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8577 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8578
8579 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8580
8581 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8582 (aarch64_save_callee_saves): New parameter "skip_wb".
8583 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8584
8585 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8586
8587 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8588 "wb_candidate2".
8589 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8590
8591 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8592
8593 * graphite-isl-ast-to-gimple.c:
8594 (graphite_create_new_loop): Add calling of isl_id_free to properly
8595 decrement reference counts.
8596
8597 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8598
8599 2014-07-24 Martin Liska <mliska@suse.cz>
8600 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8601 function used.
8602 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8603 (rs6000_code_end): Likewise.
8604
8605 2014-07-24 Martin Liska <mliska@suse.cz>
8606
8607 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8608 symtab_node funtion used.
8609 (rs6000_xcoff_declare_object_name): Likewise.
8610
8611 2014-07-24 Martin Liska <mliska@suse.cz>
8612
8613 * cgraphunit.c (compile): Correct function used.
8614
8615 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8616
8617 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8618 as non-indexable.
8619
8620 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8621
8622 PR lto/61802
8623 * varasm.c (bss_initializer_p): Handle offlined ctors.
8624 (align_variable, get_variable_align): Likewise.
8625 (make_decl_one_only): Likewise.
8626 (default_binds_local_p_1): Likewise.
8627 (decl_binds_to_current_def_p): Likewise.
8628 (get_variable_section): Get constructor if it is offlined.
8629 (assemble_variable_contents): Sanity check that the caller
8630 streamed in the ctor in LTO.
8631
8632 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8633
8634 * graphite-isl-ast-to-gimple.c:
8635 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8636 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8637 isl_ast_op_pdiv_r to the different case.
8638
8639 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8640
8641 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8642
8643 PR middle-end/61876
8644 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8645 when flag_errno_math is on.
8646
8647 2014-07-24 Martin Liska <mliska@suse.cz>
8648
8649 * cgraph.h (varpool_node):
8650 (availability get_availability (void)):
8651 created from cgraph_variable_initializer_availability
8652 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8653 created from: cgraph_variable_initializer_availability
8654 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8655 (void finalize_named_section_flags (void)):
8656 created from varpool_finalize_named_section_flags
8657 (bool assemble_decl (void)): created from varpool_assemble_decl
8658 (void analyze (void)): created from varpool_analyze_node
8659 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8660 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8661 (void remove_initializer (void)): created from varpool_remove_initializer
8662 (tree get_constructor (void)): created from varpool_get_constructor
8663 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8664 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8665 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8666 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8667 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8668 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8669 (static bool output_variables (void)): created from varpool_output_variables
8670 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8671 created from varpool_extra_name_alias
8672 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8673 (static void dump_varpool (FILE *f)): created from dump_varpool
8674 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8675 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8676 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8677 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8678 (void assemble_aliases (void)): created from assemble_aliases
8679
8680 2014-07-24 Martin Liska <mliska@suse.cz>
8681
8682 * cgraph.h (symtab_node):
8683 (void register_symbol (void)): created from symtab_register_node
8684 (void remove (void)): created from symtab_remove_node
8685 (void dump (FILE *f)): created from dump_symtab_node
8686 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8687 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8688 (struct ipa_ref *add_reference (symtab_node *referred_node,
8689 enum ipa_ref_use use_type)): created from add_reference
8690 (struct ipa_ref *add_reference (symtab_node *referred_node,
8691 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8692 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8693 gimple stmt)): created from maybe_add_reference
8694 (bool semantically_equivalent_p (symtab_node *target)): created from
8695 symtab_semantically_equivalent_p
8696 (void remove_from_same_comdat_group (void)): created from
8697 remove_from_same_comdat_group
8698 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8699 symtab_add_to_same_comdat_group
8700 (void dissolve_same_comdat_group_list (void)): created from
8701 symtab_dissolve_same_comdat_group_list
8702 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8703 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8704 created from symtab_alias_ultimate_target
8705 (inline symtab_node *next_defined_symbol (void)): created from
8706 symtab_next_defined_symbol
8707 (bool resolve_alias (symtab_node *target)): created from
8708 symtab_resolve_alias
8709 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8710 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8711 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8712 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8713 (void set_section (const char *section)): created from set_section_1
8714 (enum availability get_availability (void)): created from symtab_node_availability
8715 (void make_decl_local (void)): created from symtab_make_decl_local
8716 (bool real_symbol_p (void)): created from symtab_read_node
8717 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8718 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8719 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8720 symtab_in_same_comdat_p;
8721 (bool address_taken_from_non_vtable_p (void)): created from
8722 address_taken_from_non_vtable_p
8723 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8724 (static void dump_table (FILE *)): created from dump_symtab
8725 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8726 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8727 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8728 symtab_used_from_object_file_p
8729 (void dump_base (FILE *)): created from dump_symtab_base
8730 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8731 (void unregister (void)): created from symtab_unregister_node
8732 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8733 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8734 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8735 symtab_nonoverwritable_alias_1
8736 * cgraph.h (cgraph_node):
8737 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8738 created from cgraph_remove_node_and_inline_clones
8739 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8740 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8741 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8742 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8743 created from cgraph_function_node
8744 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8745 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8746 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8747 created from cgraph_create_clone
8748 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8749 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8750 created from cgraph_create_virtual_clone
8751 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8752 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8753 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8754 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8755 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8756 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8757 created from cgraph_function_version_info
8758 (struct cgraph_function_version_info *insert_new_function_version (void)):
8759 created from insert_new_cgraph_node_version
8760 (struct cgraph_function_version_info *function_version (void)): created from
8761 get_cgraph_node_version
8762 (void analyze (void)): created from analyze_function
8763 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8764 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8765 tree real_alias) cgraph_add_thunk
8766 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8767 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8768 created from cgraph_function_or_thunk_node
8769 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8770 created from expand_thunk
8771 (void reset (void)): created from cgraph_reset_node
8772 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8773 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8774 (void remove (void)): created from cgraph_remove_node
8775 (void dump (FILE *f)): created from dump_cgraph_node
8776 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8777 (bool get_body (void)): created from cgraph_get_body
8778 (void release_body (void)): created from cgraph_release_function_body
8779 (void unnest (void)): created from cgraph_unnest_node
8780 (void make_local (void)): created from cgraph_make_node_local
8781 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8782 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8783 gcov_type count, int freq)): created from cgraph_create_edge
8784 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8785 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8786 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8787 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8788 created from cgraph_create_edge_including_clones
8789 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8790 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8791 (void remove_callers (void)): created from cgraph_node_remove_callers
8792 (void remove_callees (void)): created from cgraph_node_remove_callees
8793 (enum availability get_availability (void)): created from cgraph_function_body_availability
8794 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8795 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8796 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8797 (void call_duplication_hooks (cgraph_node *node2)): created from
8798 cgraph_call_node_duplication_hooks
8799 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8800 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8801 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8802 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8803 (void call_function_insertion_hooks (void)):
8804 created from cgraph_call_function_insertion_hooks
8805 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8806 (bool local_p (void)): created from cgraph_local_node
8807 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8808 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8809 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8810 (inline bool only_called_directly_or_aliased_p (void)):
8811 created from cgraph_only_called_directly_or_aliased_p
8812 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8813 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8814 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8815 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8816 (bool can_remove_if_no_direct_calls_p (void)):
8817 created from cgraph_can_remove_if_no_direct_calls_p
8818 (inline bool has_gimple_body_p (void)):
8819 created from cgraph_function_with_gimple_body_p
8820 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8821 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8822 (static inline void debug_cgraph (void)): created from debug_cgraph
8823 (static void record_function_versions (tree decl1, tree decl2)):
8824 created from record_function_versions
8825 (static void delete_function_version (tree decl)):
8826 created from delete_function_version
8827 (static void add_new_function (tree fndecl, bool lowered)):
8828 created from cgraph_add_new_function
8829 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8830 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8831 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8832 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8833 (static cgraph_node *get_for_asmname (tree asmname)):
8834 created from cgraph_node_for_asm
8835 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8836 created from cgraph_same_body_alias
8837 (static bool used_from_object_file_p_worker (cgraph_node *node,
8838 void *): new function
8839 (static bool non_local_p (cgraph_node *node, void *)):
8840 created from cgraph_non_local_node_p_1
8841 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8842 created from verify_cgraph
8843 (static bool make_local (cgraph_node *node, void *)):
8844 created from cgraph_make_node_local
8845 (static cgraph_node *create_alias (tree alias, tree target)):
8846 created from cgraph_create_function_alias
8847 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8848 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8849 created from cgraph_create_edge_1
8850 * cgraph.h (varpool_node):
8851 (void remove (void)): created from varpool_remove_node
8852 (void dump (FILE *f)): created from dump_varpool_node
8853
8854 2014-07-24 Richard Biener <rguenther@suse.de>
8855
8856 PR ipa/61823
8857 * tree-ssa-structalias.c (create_variable_info_for_1):
8858 Use varpool_get_constructor.
8859 (create_variable_info_for): Likewise.
8860
8861 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8862
8863 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8864 subtract outgoing area size when restoring stack_pointer_rtx.
8865
8866 2014-07-24 Nick Clifton <nickc@redhat.com>
8867
8868 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8869 that operations are taking place in parallel.
8870 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8871
8872 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8873
8874 * omp-low.c (extract_omp_for_data): Add missing break statement.
8875
8876 2014-07-24 Richard Biener <rguenther@suse.de>
8877
8878 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8879 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8880 and adjust MOVE_RATIO query accordingly.
8881 (estimate_num_insns): Adjust callers.
8882 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8883 * ipa-cp.c (gather_context_independent_values,
8884 estimate_local_effects): Likewise.
8885 * ipa-split.c (consider_split): Likewise.
8886
8887 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8888
8889 * config/i386/driver-i386.c: Remove names of unused arguments and
8890 unnecessary unused attributes.
8891 * config/i386/host-mingw32.c: Likewise.
8892 * config/i386/i386.c: Likewise.
8893 * config/i386/winnt-stubs.c: Likewise.
8894 * config/i386/winnt.c: Likewise.
8895
8896 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8897
8898 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8899 (aarch64_gen_loadwb_pair): New helper function.
8900 (aarch64_expand_epilogue): Simplify code using new helper functions.
8901 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8902
8903 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8904
8905 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8906 (aarch64_gen_storewb_pair): New helper function.
8907 (aarch64_expand_prologue): Simplify code using new helper functions.
8908 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8909
8910 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8911
8912 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8913 Rename to aarch64_save_callee_saves, remove restore code.
8914 (aarch64_restore_callee_saves): New function.
8915
8916 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8917
8918 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8919 (aarch64_save_callee_saves): New function to handle reg save
8920 for both core and vectore regs.
8921
8922 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8923
8924 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8925 (aarch64_gen_store_pair): New helper function.
8926 (aarch64_save_or_restore_callee_save_registers)
8927 (aarch64_save_or_restore_fprs): Use new helper functions.
8928
8929 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8930
8931 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8932 (aarch64_save_or_restore_callee_save_registers)
8933 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8934
8935 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8936
8937 * config/aarch64/aarch64.c
8938 (aarch64_save_or_restore_callee_save_registers)
8939 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8940
8941 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8942
8943 * config/aarch64/aarch64.c
8944 (aarch64_save_or_restore_callee_save_registers)
8945 (aarch64_save_or_restore_fprs): Remove 'increment'.
8946
8947 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8948
8949 * config/aarch64/aarch64.c
8950 (aarch64_save_or_restore_callee_save_registers)
8951 (aarch64_save_or_restore_fprs): Use register offset in
8952 cfun->machine->frame.reg_offset.
8953
8954 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8955
8956 * config/aarch64/aarch64.c
8957 (aarch64_save_or_restore_callee_save_registers)
8958 (aarch64_save_or_restore_fprs): Remove base_rtx.
8959
8960 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8961
8962 * config/aarch64/aarch64.c
8963 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8964 to 'start_offset'. Remove local variable 'start_offset'.
8965
8966 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8967
8968 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8969 type to HOST_WIDE_INT.
8970
8971 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8972
8973 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8974 (aarch64_save_or_restore_fprs)
8975 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8976
8977 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8978
8979 * config/arm/t-rtems-eabi: Add
8980 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8981 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8982 mbig-endian/mthumb/march=armv7-r, and
8983 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8984 multilibs.
8985
8986 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8987 Chris Johns <chrisj@rtems.org>
8988 Joel Sherrill <joel.sherrill@oarcorp.com>
8989
8990 * config.gcc: Add nios2-*-rtems*.
8991 * config/nios2/rtems.h: New file.
8992 * gcc/config/nios2/t-rtems: New file.
8993
8994 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8995
8996 PR target/61396
8997 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8998 constant numbers, not general constants.
8999 (rs6000_expand_vector_init): Ditto.
9000
9001 2014-07-23 Nathan Sidwell <nathan@acm.org>
9002
9003 * gcov-tool.c (gcov_list): Declare here.
9004 (set_gcov_list): Remove.
9005 (gcov_output_files): Set gcov_list directly.
9006
9007 2014-07-23 Host Schirmeier <horst@schirmeier.com>
9008
9009 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
9010
9011 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9012
9013 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
9014 callee-saved registers are available for padding purpose
9015 and r3 is not mandatory, then prefer use those callee-saved
9016 instead of r3.
9017
9018 2014-07-23 Richard Biener <rguenther@suse.de>
9019
9020 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9021 * combine.c: Include statistics.h and params.h.
9022 (combine_instructions): Guard three and four insn combines
9023 with max-combine-insns value. Record statistics for combines
9024 performed.
9025 * doc/invoke.texi (max-combine-insns): Document new param.
9026
9027 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9028
9029 * graphite-isl-ast-to-gimple.c:
9030 (translate_isl_ast_node_block): New function.
9031 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9032
9033 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9034 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9035
9036 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9037
9038 * graphite-isl-ast-to-gimple.c:
9039 (get_max_schedule_dimensions): New function.
9040 (extend_schedule): Likewise.
9041 (generate_isl_schedule): Add calling of extend_schedule and
9042 get_max_schedule_dimensions.
9043
9044 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9045
9046 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9047 (case UNSPEC): Handle UNSPEC_RBIT.
9048
9049 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9050
9051 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9052 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9053
9054 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9055
9056 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9057
9058 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9059
9060 * graphite-isl-ast-to-gimple.c:
9061 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9062 (ivs_params_clear):
9063 (build_iv_mapping): New function.
9064 (translate_isl_ast_node_user): Likewise.
9065 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9066
9067 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9068 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9069 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9070
9071 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9072
9073 PR target/55701
9074 * config/arm/arm.md (setmem): New pattern.
9075 * config/arm/arm-protos.h (struct tune_params): New fields.
9076 (arm_gen_setmem): New prototype.
9077 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9078 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9079 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9080 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9081 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9082 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9083 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9084 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9085 (arm_const_inline_cost): New function.
9086 (arm_block_set_max_insns): New function.
9087 (arm_block_set_non_vect_profit_p): New function.
9088 (arm_block_set_vect_profit_p): New function.
9089 (arm_block_set_unaligned_vect): New function.
9090 (arm_block_set_aligned_vect): New function.
9091 (arm_block_set_unaligned_non_vect): New function.
9092 (arm_block_set_aligned_non_vect): New function.
9093 (arm_block_set_vect, arm_gen_setmem): New functions.
9094
9095 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9096
9097 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9098
9099 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9100
9101 PR target/61855
9102 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9103 out of #ifdef __OPTIMIZE__.
9104
9105 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9106
9107 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9108 different trapping status if -fnon-call-exceptions is enabled.
9109
9110 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9111
9112 * expr.c (store_field): Handle VOIDmode for calls that return values
9113 in multiple locations.
9114
9115 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9116
9117 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9118 (altivec_vsldoi_<mode>): Likewise.
9119
9120 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9121
9122 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9123 to the number of characters in the line.
9124
9125 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9126
9127 * graphite-isl-ast-to-gimple.c: Add using of
9128 build_nonstandard_integer_type instead of int128_integer_type_node.
9129
9130 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9131
9132 * toplev.c (output_stack_usage): Adjust the location of the warning.
9133
9134 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9135
9136 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9137 (*membar_storeload): Disable for LEON3.
9138
9139 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9140
9141 PR rtl-optimization/61461
9142 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9143
9144 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9145
9146 PR target/61794
9147 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9148 Fix instruction constraint.
9149 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9150
9151 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9152
9153 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9154
9155 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9156
9157 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9158 GNU coding standards.
9159 (nds32_register_move_cost): Likewise.
9160 (nds32_memory_move_cost): Likewise.
9161 (nds32_address_cost): Likewise.
9162
9163 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9164
9165 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9166
9167 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9168
9169 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9170 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9171 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9172 (HAVE_sync_compare_and_swapqi): Define.
9173 (HAVE_sync_compare_and_swaphi): Likewise.
9174 (HAVE_sync_compare_and_swapsi): Likewise.
9175
9176 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9177
9178 * config/mips/p5600.md: Add missing cpu tests.
9179
9180 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9181
9182 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9183 (vmla_f64): Likewise.
9184 (vfms_f64): Likewise.
9185 (vmls_f64): Likewise.
9186
9187 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9188
9189 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9190 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9191
9192 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9193
9194 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9195 (vmlal_high_lane_s32): Likewise.
9196 (vmlal_high_lane_u16): Likewise.
9197 (vmlal_high_lane_u32): Likewise.
9198 (vmlsl_high_lane_s16): Likewise.
9199 (vmlsl_high_lane_s32): Likewise.
9200 (vmlsl_high_lane_u16): Likewise.
9201 (vmlsl_high_lane_u32): Likewise.
9202
9203 2014-07-17 Terry Guo <terry.guo@arm.com>
9204
9205 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9206 (alus_reg): Renamed to alus_sreg.
9207 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9208 from alu_reg to alu_sreg. Change type of dsp instructions from
9209 alu_reg to alu_dsp_reg.
9210 * config/arm/thumb1.md: Likewise.
9211 * config/arm/thumb2.md: Likewise.
9212 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9213 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9214 with alu_sreg and alus_sreg.
9215 * config/arm/arm1026ejs.md (alu_op): Likewise.
9216 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9217 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9218 * config/arm/fa526.md (526_alu_op): Likewise.
9219 * config/arm/fa606te.md (606te_alu_op): Likewise.
9220 * config/arm/fa626te.md (626te_alu_op): Likewise.
9221 * config/arm/fa726te.md (726te_alu_op): Likewise.
9222 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9223 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9224 alu_sreg, alu_dsp_reg and alus_sreg.
9225 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9226 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9227 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9228 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9229 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9230 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9231 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9232 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9233 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9234 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9235 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9236 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9237 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9238 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9239 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9240 alus_reg to alus_sreg.
9241
9242 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9243
9244 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9245 infinity format.
9246
9247 2014-07-17 Richard Biener <rguenther@suse.de>
9248
9249 PR rtl-optimization/61801
9250 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9251 don't set reg_pending_barrier if it appears in a debug-insn.
9252
9253 2014-07-16 DJ Delorie <dj@redhat.com>
9254
9255 * config/rx/rx.c (rx_option_override): Fix alignment values.
9256 (rx_align_for_label): Likewise.
9257
9258 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9259
9260 PR target/61737.
9261 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9262 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9263 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9264 functions.
9265 (cris_print_index, cris_print_operand, cris_constant_index_p)
9266 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9267 (cris_address_cost): Ditto last CONSTANT_P.
9268 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9269 callers changed. Yield cris_offsettable_symbol for non-PIC
9270 constant symbolic expressions including labels. Yield cris_unspec
9271 for all unspecs.
9272 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9273 target to pic_offset_table_rtx for calls that will likely go
9274 through PLT, const0_rtx when they can't. All callers changed.
9275 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9276 symbolic expressions to be PICified. Remove second, redundant,
9277 assert on can_create_pseudo_p returning non-zero. Use
9278 replace_equiv_address_nv, not replace_equiv_address, for final
9279 operand update.
9280 * config/cris/cris.md ("movsi"): Move variable t to pattern
9281 toplevel. Adjust assert for new cris_symbol_type member. Use
9282 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9283 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9284 for lapc stricter.
9285 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9286 ("call", "call_value"): Use second incoming operand as a marker
9287 for pic-offset-table-register being used.
9288 ("*expanded_call_non_v32", "*expanded_call_v32")
9289 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9290 second incoming operand to CALL, match cris_call_type_marker.
9291 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9292 ("*expanded_call_side"): Ditto. Fix typo in comment.
9293 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9294 CONSTANT_P.
9295 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9296 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9297 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9298 users changed. Add members cris_offsettable_symbol and cris_unspec.
9299 (cris_symbol_type): Rename from cris_pic_symbol_type.
9300 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9301 just CONSTANT_P.
9302 * config/cris/cris-protos.h (cris_symbol_type_of,
9303 cris_expand_pic_call_address): Adjust prototypes.
9304 (cris_legitimate_constant_p): New prototype.
9305
9306 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9307 an existing tmake_file. Don't add t-slibgcc and t-linux.
9308
9309 2014-07-17 Jason Merrill <jason@redhat.com>
9310
9311 PR c++/61623
9312 * symtab.c (symtab_remove_from_same_comdat_group): Also
9313 set_comdat_group to NULL_TREE.
9314 (verify_symtab): Fix diagnostic.
9315
9316 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9317
9318 PR target/61662
9319 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9320
9321 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9322
9323 Support location tracking for built-in macro tokens
9324 * input.h (is_location_from_builtin_token): New function declaration.
9325 * input.c (is_location_from_builtin_token): New function definition.
9326 * toplev.c (general_init): Tell libcpp what the pre-defined
9327 spelling location for built-in tokens is.
9328
9329 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9330
9331 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9332 on the FUNCTION_DECL.
9333
9334 2014-07-16 Richard Biener <rguenther@suse.de>
9335
9336 PR other/61782
9337 * doc/extend.texi (always_inline): Clarify.
9338
9339 2014-07-15 Eric Christopher <echristo@gmail.com>
9340
9341 * doc/invoke.texi (Link Options): Document -z option.
9342
9343 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9344
9345 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9346 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9347
9348 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9349
9350 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9351
9352 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9353
9354 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9355 varpool_assemble_decl.
9356 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9357 true.
9358
9359 2014-07-15 Michael Matz <matz@suse.de>
9360
9361 PR rtl-optimization/61772
9362 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9363
9364 2014-07-15 Richard Biener <rguenther@suse.de>
9365
9366 * opts.c (default_options_table): Disable bit-ccp at -Og.
9367
9368 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9369
9370 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9371
9372 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9373
9374 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9375 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9376 call langhook for unknown declaration.
9377 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9378 * tree.h (DECL_ARGUMENTS): Update.
9379 * print-tree.c (print_node): Update.
9380 * tree-core.h (tree_decl_non_common): Remove arguments.
9381 (tree_function_decl): Add arguments.
9382
9383 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9384
9385 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9386
9387 2014-07-14 Richard Biener <rguenther@suse.de>
9388
9389 PR tree-optimization/61779
9390 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9391 simplifying a condition.
9392
9393 2014-07-14 Richard Biener <rguenther@suse.de>
9394
9395 * builtins.c (c_strlen): Make only_value == 2 really only
9396 affect warning generation.
9397
9398 2014-07-14 Richard Biener <rguenther@suse.de>
9399
9400 PR tree-optimization/61757
9401 PR tree-optimization/61783
9402 PR tree-optimization/61787
9403 * tree-ssa-dom.c (record_equality): Revert canonicalization
9404 change and add comment.
9405 (propagate_rhs_into_lhs): Revert previous fix, removing
9406 loop depth restriction again.
9407
9408 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9409
9410 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9411 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9412 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9413 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9414 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9415 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9416 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9417
9418 2014-07-14 Richard Biener <rguenther@suse.de>
9419
9420 * cgraph.h (decl_in_symtab_p): Make inline.
9421
9422 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9423
9424 PR middle-end/61294
9425 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9426
9427 PR target/61656
9428 * config/i386/i386.c (classify_argument): Don't merge classes above
9429 number of words.
9430
9431 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9432
9433 * cgraph.h (symtab_node): Add nonzero_address.
9434 (decl_in_symtab_p): Break out from ...
9435 (symtab_get_node): ... here.
9436 * fold-const.c: Include cgraph.h
9437 (tree_single_nonzero_warnv_p): Use symtab to determine
9438 if symbol is non-zero.
9439 * symtab.c (symtab_node::nonzero_address): New method.
9440
9441 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9442
9443 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9444 forgotten in previous commit.
9445
9446 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9447
9448 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9449 on builtin types.
9450 * ipa-devirt.c: Include stor-layout.h and intl.h
9451 (odr_subtypes_equivalent_p): New function.
9452 (warn_odr): New function.
9453 (warn_type_mismatch): New function.
9454 (odr_types_equivalent_p): New function.
9455 (add_type_duplicate): Use it.
9456 * common.opt (Wodr): New flag.
9457 * doc/invoke.texi (Wodr): Document new warning.
9458
9459 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9460
9461 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9462 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9463 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9464 (varpool_get_constructor): Push CTORS_IN timevar.
9465 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9466
9467 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9468
9469 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9470 Remove VOID_FTYPE_PUSHORT.
9471 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9472 Change code to USHORT_FTYPE_VOID.
9473 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9474 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9475 (ix86_atomic_assign_expand_fenv): Update for
9476 __builtin_ia32_fnstsw changes.
9477 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9478 (fnstsw): Change operand 0 to nonimmediate operand.
9479
9480 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9481
9482 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9483 (varpool_get_constructor): New function.
9484 (varpool_ctor_useable_for_folding_p): Break out from ...
9485 (ctor_for_folding): ... here; use varpool_get_constructor.
9486 (varpool_assemble_decl): Likewise.
9487 * lto-streamer.h (struct output_block): Turn cgraph_node
9488 to symbol filed.
9489 (lto_input_variable_constructor): Declare.
9490 * ipa-visibility.c (function_and_variable_visibility): Use
9491 varpool_get_constructor.
9492 * cgraph.h (varpool_get_constructor): Declare.
9493 (varpool_ctor_useable_for_folding_p): New function.
9494 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9495 parameter; return error_mark_node for non-trivial constructors.
9496 (lto_write_tree_1, DFS_write_tree): Update use of
9497 get_symbol_initial_value.
9498 (output_function): Update initialization of symbol.
9499 (output_constructor): New function.
9500 (copy_function): Rename to ..
9501 (copy_function_or_variable): ... this one; handle vars too.
9502 (lto_output): Output variable sections.
9503 * lto-streamer-in.c (input_constructor): New function.
9504 (lto_read_body): Rename from ...
9505 (lto_read_body_or_constructor): ... this one; handle vars too.
9506 (lto_input_variable_constructor): New function.
9507 * ipa-prop.c (ipa_prop_write_jump_functions,
9508 ipa_prop_write_all_agg_replacement): Update.
9509 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9510 (output_cgraph_opt_summary): Set symbol to NULL.
9511
9512 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9513
9514 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9515 non-polymorphic types.
9516 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9517 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9518 of types is not polymorphic.
9519
9520 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9521
9522 * lra-constraints.c (remove_inheritance_pseudos): Process
9523 destination pseudo too.
9524
9525 2014-07-11 Rong Xu <xur@google.com>
9526
9527 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9528 commit r212448.
9529
9530 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9531
9532 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9533 * config/avr/avr-devices.c (AVR_MCU): Same.
9534 (avr_mcu_types): add text start value to end of device list.
9535 * config/avr/avr-mcus.def: Add text section start for all devices.
9536 (ata5782): Add new avr5 device.
9537 (ata5831): Same.
9538 * config/avr/avr-tables.opt: Regenerate.
9539 * config/avr/avr.h: Add declaration for text section start handler.
9540 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9541 SPEC functions.
9542 (LINK_SPEC): Include text section start handler to linker spec.
9543 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9544 pass -Ttext option to linker if the text section start for the device
9545 is not zero.
9546 * config/avr/t-multilib: Regenerate.
9547 * doc/avr-mmcu.texi: Regenerate.
9548
9549 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9550
9551 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9552 * config/rs6000/aix52.h (LINK_SPEC): Same.
9553 * config/rs6000/aix53.h (LINK_SPEC): Same.
9554 * config/rs6000/aix61.h (LINK_SPEC): Same.
9555 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9556
9557 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9558
9559 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9560 (graphite_verify): New function.
9561 (ivs_params_clear): New function.
9562 (gcc_expression_from_isl_ast_expr_id): New function.
9563 (gcc_expression_from_isl_expr_int): New function.
9564 (binary_op_to_tree): New function.
9565 (ternary_op_to_tree): New function.
9566 (unary_op_to_tree): New function.
9567 (nary_op_to_tree): New function.
9568 (gcc_expression_from_isl_expr_op): New function.
9569 (gcc_expression_from_isl_expression): New function.
9570 (graphite_create_new_loop): New function.
9571 (translate_isl_ast_for_loop): New function.
9572 (get_upper_bound): New function.
9573 (graphite_create_new_loop_guard): New function.
9574 (translate_isl_ast_node_for): New function.
9575 (translate_isl_ast): New function.
9576 (add_parameters_to_ivs_params): New function.
9577 (scop_to_isl_ast): New parameter ip.
9578 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9579
9580 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9581
9582 * config/xtensa/predicates.md (call expander): Update for
9583 DECL_SECTION_NAME being string.
9584
9585 2014-07-11 Richard Biener <rguenther@suse.de>
9586
9587 PR middle-end/61473
9588 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9589 can be implemented with a single load followed by a single store.
9590 (c_strlen): Only warn when only_value is not 2.
9591
9592 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9593
9594 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9595
9596 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9597
9598 PR target/61561
9599 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9600 (*movhi_bytes): Likewise.
9601 (*arm_movqi_insn): Likewise.
9602
9603 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9604
9605 PR target/56858
9606 * config/alpha/alpha.c: Include tree-pass.h, context.h
9607 and pass_manager.h.
9608 (pass_data_handle_trap_shadows): New pass.
9609 (pass_handle_trap_shadows::gate): New pass gate function.
9610 (make_pass_handle_trap_shadows): New function.
9611 (rest_of_handle_trap_shadows): Ditto.
9612
9613 (alpha_align_insns_1): Rename from alpha_align_insns.
9614 (pass_data_align_insns): New pass.
9615 (pass_align_insns::gate): New pass gate function.
9616 (make_pass_aling_insns): New function.
9617 (rest_of_align_insns): Ditto.
9618 (alpha_align_insns): Ditto.
9619
9620 (alpha_option_override): Declare handle_trap_shadows info
9621 and align_insns_info. Register handle_trap_shadows and align_insns
9622 passes here.
9623 (alpha_reorg): Do not call alpha_trap_shadows and
9624 alpha_align_insn from here.
9625
9626 (alpha_pad_function_end): Do not skip BARRIERs.
9627
9628 2014-07-10 Rong Xu <xur@google.com>
9629
9630 Add gcov-tool: an offline gcda profile processing tool support.
9631 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9632 (gcov_is_error): Ditto.
9633 (gcov_read_string): Ditto.
9634 (gcov_read_sync): Ditto.
9635 * gcov-io.h: Move counter defines to gcov-counter.def.
9636 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9637 * coverage.c: Ditto.
9638 * gcov-tool.c: Offline gcda profile processing tool.
9639 (unlink_gcda_file): Remove one gcda file.
9640 (unlink_profile_dir): Remove gcda files from the profile path.
9641 (gcov_output_files): Output gcda files to an output dir.
9642 (profile_merge): Merge two profiles in directory.
9643 (print_merge_usage_message): Print merge usage.
9644 (merge_usage): Print merge usage and exit.
9645 (do_merge): Driver for profile merge sub-command.
9646 (profile_rewrite): Rewrite profile.
9647 (print_rewrite_usage_message): Print rewrite usage.
9648 (rewrite_usage): Print rewrite usage and exit.
9649 (do_rewrite): Driver for profile rewrite sub-command.
9650 (print_usage): Print gcov-info usage and exit.
9651 (print_version): Print gcov-info version.
9652 (process_args): Process arguments.
9653 (main): Main routine for gcov-tool.
9654 * Makefile.in: Build and install gcov-tool.
9655 * gcov-counter.def: New file split from gcov-io.h.
9656 * doc/gcc.texi: Include gcov-tool.texi.
9657 * doc/gcov-tool.texi: Document for gcov-tool.
9658
9659 2014-07-10 Richard Biener <rguenther@suse.de>
9660
9661 PR tree-optimization/61757
9662 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9663 (propagate_rhs_into_lhs): Revert part of last change.
9664
9665 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9666
9667 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9668 FUNCTION_DECLs.
9669
9670 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9671
9672 PR middle-end/53590
9673 * function.c (allocate_struct_function): Revert r188667 change.
9674
9675 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9676
9677 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9678
9679 * doc/install.texi: Remove links to defunct package providers for
9680 Solaris.
9681
9682 2014-07-09 Tom de Vries <tom@codesourcery.com>
9683
9684 * final.c (get_call_fndecl): Declare.
9685 (self_recursive_call_p): New function.
9686 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9687
9688 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9689
9690 * ipa-devirt.c (record_node): Walk through aliases.
9691
9692 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9693
9694 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9695
9696 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9697
9698 Revert:
9699 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9700
9701 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9702
9703 * ipa-visibility.c (function_and_variable_visibility): Remove
9704 temporary hack disabling local aliases on AIX.
9705
9706 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9707
9708 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9709 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9710
9711 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9712
9713 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9714 * rs6000/rs6000.c: Inline output of .set instruction.
9715 (declare_alias_data): New struct.
9716 (rs6000_declare_alias): New function.
9717 (rs6000_xcoff_declare_function_name): Use it.
9718 (rs6000_xcoff_declare_object_name): New function.
9719 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9720 (ASM_OUTPUT_DEF): Turn to empty definition.
9721
9722 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9723
9724 PR bootstrap/61679
9725 * hash-table.h: use hash_table::value_type instead of
9726 Descriptor::value_type in the return types of several methods.
9727
9728 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9729
9730 * tree-pass.h (pass_data): Remove has_execute member.
9731 * passes.c (execute_one_pass): Don't check pass->has_execute.
9732 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9733 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9734 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9735 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9736 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9737 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9738 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9739 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9740 gimple-low.c, gimple-ssa-isolate-paths.c,
9741 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9742 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9743 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9744 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9745 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9746 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9747 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9748 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9749 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9750 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9751 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9752 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9753 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9754 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9755 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9756 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9757 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9758 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9759 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9760 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9761 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9762 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9763 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9764 web.c: Remove initializer for pass_data::has_execute.
9765
9766 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9767
9768 * graphite-htab.h: Use hash_map instead of hash_table.
9769 * graphite-clast-to-gimple.c: Adjust.
9770 * passes.c: Use hash_map instead of hash_table.
9771 * sese.c: Likewise.
9772 * sese.h: Remove now unused code.
9773
9774 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9775
9776 PR target/61599
9777 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9778 than zero.
9779
9780 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9781
9782 PR rtl-optimization/61673
9783 * combine.c (simplify_comparison): Test just mode's sign bit
9784 in tmode rather than the sign bit and any bits above it.
9785
9786 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9787
9788 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9789 Add __isl_give to the declaration.
9790 (generate_isl_schedule): Likewise.
9791 (scop_to_isl_ast): Likewise.
9792
9793 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9794
9795 * config/arm/arm.c (cortexa5_extra_costs): New table.
9796 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9797
9798 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9799
9800 PR tree-optimization/61725
9801 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9802 range, use range_includes_zerop_p instead of integer_zerop on
9803 vr0->min, only use log2 of max if min is not negative.
9804
9805 2014-07-08 Richard Biener <rguenther@suse.de>
9806
9807 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9808 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9809 restriction on loop depth difference.
9810 (record_equality): Likewise.
9811 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9812 (loop_depth_of_name): Remove.
9813 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9814 restriction on loop depth difference.
9815 (init_copy_prop): Likewise.
9816
9817 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9818
9819 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9820 parameter.
9821 (walk_aliased_vdefs): Likewise.
9822 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9823 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9824 (detect_type_change_from_memory_writes): Check if entry was reached.
9825
9826 2014-07-08 Richard Biener <rguenther@suse.de>
9827
9828 PR tree-optimization/61681
9829 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9830 NONLOCAL inside ESCAPED.
9831
9832 2014-07-08 Richard Biener <rguenther@suse.de>
9833
9834 PR tree-optimization/61680
9835 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9836 Handle properly all read-write dependences with group accesses.
9837
9838 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9839
9840 PR tree-optimization/61576
9841 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9842 block containing reduction statement is predecessor of phi basi block.
9843
9844 2014-07-08 Marek Polacek <polacek@redhat.com>
9845
9846 PR c/60226
9847 * fold-const.c (round_up_loc): Change the parameter type.
9848 Remove assert.
9849 * fold-const.h (round_up_loc): Adjust declaration.
9850 * stor-layout.c (finalize_record_size): Check for too large types.
9851
9852 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9853
9854 * symtab.c: Include calls.h.
9855 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9856
9857 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9858
9859 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9860 little-endian code generation.
9861 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9862 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9863 (spe_evmergehilo): Rename to...
9864 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9865 (spe_evmergelo): Rename to...
9866 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9867 (spe_evmergelohi): Rename to...
9868 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9869 (spe_evmergehi, spe_evmergehilo): New expanders.
9870 (spe_evmergelo, spe_evmergelohi): Likewise.
9871 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9872 (*frob_tf_ti): Likewise.
9873 (*frob_<mode>_di_2): Likewise.
9874 (*frob_tf_di_8_2): Likewise.
9875 (*frob_di_<mode>): Likewise.
9876 (*frob_ti_tf): Likewise.
9877 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9878 (*frob_ti_<mode>_8_2): Likewise.
9879 (*frob_ti_tf_2): Likewise.
9880 (mov_si<mode>_e500_subreg0): Rename to...
9881 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9882 endianness only.
9883 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9884 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9885 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9886 the big endianness only.
9887 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9888 (*mov_si<mode>_e500_subreg0_2): Rename to...
9889 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9890 big big endianness only.
9891 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9892 (*mov_si<mode>_e500_subreg4): Rename to...
9893 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9894 endianness only.
9895 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9896 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9897 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9898 the big endianness only.
9899 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9900 pattern.
9901 (*mov_si<mode>_e500_subreg4_2): Rename to...
9902 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9903 endianness only.
9904 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9905 (*mov_sitf_e500_subreg8): Rename to...
9906 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9907 endianness only.
9908 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9909 (*mov_sitf_e500_subreg8_2): Rename to...
9910 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9911 endianness only.
9912 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9913 (*mov_sitf_e500_subreg12): Rename to...
9914 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9915 endianness only.
9916 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9917 (*mov_sitf_e500_subreg12_2): Rename to...
9918 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9919 endianness only.
9920 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9921
9922 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9923
9924 * asan.c (instrument_strlen_call): Do not instrument first byte
9925 in strlen if already instrumented.
9926
9927 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9928
9929 * config/arm/arm.opt (mwords-little-endian): Delete.
9930 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9931 of TARGET_LITTLE_WORDS.
9932 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9933 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9934 warning.
9935 * doc/invoke.texi: Remove references to -mwords-little-endian.
9936
9937 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9938
9939 * expmed.c (struct init_expmed_rtl): Change all fields but
9940 pow2 and cint from struct rtx_def to rtx.
9941 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9942 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9943 at the end again.
9944
9945 2014-07-06 Marek Polacek <polacek@redhat.com>
9946
9947 PR c/6940
9948 * doc/invoke.texi: Document -Wsizeof-array-argument.
9949
9950 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9951
9952 * wide-int.h (wide_int_storage): Change declaration from struct
9953 to class.
9954
9955 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9956
9957 * cgraph.c (cgraph_create_indirect_edge): Update call of
9958 get_polymorphic_call_info.
9959 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9960 (possible_polymorphic_call_targets): Add parameter call.
9961 (decl_maybe_in_construction_p): New predicate.
9962 (get_polymorphic_call_info): Add parameter call;
9963 use decl_maybe_in_construction_p.
9964 * gimple-fold.c (fold_gimple_assign): Update use of
9965 possible_polymorphic_call_targets.
9966 (gimple_fold_call): Likewise.
9967 * ipa-prop.c: Inlcude calls.h
9968 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9969 (param_type_may_change_p): New predicate.
9970 (detect_type_change_from_memory_writes): Break out from ...
9971 (detect_type_change): ... this one; use param_type_may_change_p.
9972 (detect_type_change_ssa): Use param_type_may_change_p.
9973 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9974
9975 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9976
9977 PR target/49423
9978 * config/arm/arm-protos.h (arm_legitimate_address_p,
9979 arm_is_constant_pool_ref): Add prototypes.
9980 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9981 (arm_is_constant_pool_ref) New function.
9982 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9983 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9984 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9985 operand. Remove pool_range and neg_pool_range attributes.
9986 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9987 pool_range and neg_pool_range attributes.
9988 * config/arm/constraints.md (Uh): New constraint.
9989 (Uq): Don't allow constant pool references.
9990
9991 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9992
9993 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9994 (move_lo_quad_internal_be_<mode>): Likewise.
9995 (move_lo_quad_<mode>): Convert to define_expand.
9996 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9997 (aarch64_simd_move_hi_quad_be_<mode>): New.
9998 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9999 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
10000 (aarch64_combinez_be<mode>): New.
10001 (aarch64_combine<mode>): Convert to define_expand.
10002 (aarch64_combine_internal<mode>): New.
10003 (aarch64_simd_combine<mode>): Remove bogus RTL description.
10004
10005 2014-07-04 Tom de Vries <tom@codesourcery.com>
10006
10007 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
10008 combination of earlyclobber and read/write modifiers.
10009
10010 2014-07-04 Tom de Vries <tom@codesourcery.com>
10011
10012 * config/aarch64/aarch64-simd.md
10013 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
10014
10015 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
10016
10017 PR target/61714
10018 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10019
10020 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10021
10022 PR middle-end/61654
10023 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10024
10025 PR tree-optimization/61684
10026 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10027 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10028
10029 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10030 Kito Cheng <kito@0xlab.org>
10031 Monk Chiang <sh.chiang04@gmail.com>
10032
10033 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10034 (nds32_symbol_load_store_p): Move to ...
10035 (nds32_fp_as_gp_check_available): Move to ...
10036 * config/nds32/nds32-fp-as-gp.c: ... here.
10037 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10038 extern declaration.
10039
10040 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10041 Kito Cheng <kito@0xlab.org>
10042 Monk Chiang <sh.chiang04@gmail.com>
10043
10044 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10045 (nds32_expand_store_multiple): Move to ...
10046 (nds32_expand_movmemqi): Move to ...
10047 * config/nds32/nds32-memory-manipulation.c: ... here.
10048
10049 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10050 Kito Cheng <kito@0xlab.org>
10051 Monk Chiang <sh.chiang04@gmail.com>
10052
10053 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10054 (nds32_output_casesi_pc_relative): Move to ...
10055 (nds32_output_casesi): Move to ...
10056 (nds32_mem_format): Move to ...
10057 (nds32_output_16bit_store): Move to ...
10058 (nds32_output_16bit_load): Move to ...
10059 (nds32_output_32bit_store): Move to ...
10060 (nds32_output_32bit_load): Move to ...
10061 (nds32_output_32bit_load_s): Move to ...
10062 (nds32_output_stack_push): Move to ...
10063 (nds32_output_stack_pop): Move to ...
10064 * config/nds32/nds32-md-auxiliary.c: ... here.
10065
10066 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10067 Ling-Hua Tseng <uranus@tinlans.org>
10068
10069 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10070 the purpose of this file.
10071
10072 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10073 Kito Cheng <kito@0xlab.org>
10074 Monk Chiang <sh.chiang04@gmail.com>
10075
10076 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10077 (nds32_address_cost): Move implementation to ...
10078 * config/nds32/nds32-cost.c: ... here.
10079 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10080 (nds32_address_cost_impl): Declare.
10081
10082 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10083 Kito Cheng <kito@0xlab.org>
10084 Monk Chiang <sh.chiang04@gmail.com>
10085
10086 * config/nds32/nds32.c
10087 (nds32_consecutive_registers_load_store_p): Move to ...
10088 (nds32_valid_multiple_load_store): Move to ...
10089 (nds32_valid_stack_push_pop): Move to ...
10090 (nds32_can_use_bclr_p): Move to ...
10091 (nds32_can_use_bset_p): Move to ...
10092 (nds32_can_use_btgl_p): Move to ...
10093 (nds32_can_use_bitci_p): Move to ...
10094 * config/nds32/nds32-predicates.c: ... here.
10095
10096 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10097 Kito Cheng <kito@0xlab.org>
10098 Monk Chiang <sh.chiang04@gmail.com>
10099
10100 * config/nds32/nds32.c
10101 (nds32_expand_builtin_null_ftype_reg): Move to ...
10102 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10103 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10104 (nds32_init_builtins): Move implementation to ...
10105 (nds32_expand_builtin): Move implementation to ...
10106 * config/nds32/nds32-intrinsic.c: ... here.
10107 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10108 (nds32_expand_builtin_impl): Declare.
10109
10110 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10111 Kito Cheng <kito@0xlab.org>
10112 Monk Chiang <sh.chiang04@gmail.com>
10113
10114 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10115 (nds32_emit_section_tail_template): Move to ...
10116 (nds32_emit_isr_jmptbl_section): Move to ...
10117 (nds32_emit_isr_vector_section): Move to ...
10118 (nds32_emit_isr_reset_conten): Move to ...
10119 (nds32_check_isr_attrs_conflict): Move to ...
10120 (nds32_construct_isr_vectors_information): Move to ...
10121 (nds32_asm_file_start): Move implementation to ...
10122 (nds32_asm_file_end): Move implementation to ...
10123 * config/nds32/nds32-isr.c: ... here.
10124 * config/nds32/nds32-protos.h
10125 (nds32_check_isr_attrs_conflict): Declare.
10126 (nds32_construct_isr_vectors_information): Declare.
10127 (nds32_asm_file_start_for_isr): Declare.
10128 (nds32_asm_file_end_for_isr): Declare.
10129
10130 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10131 Kito Cheng <kito@0xlab.org>
10132 Monk Chiang <sh.chiang04@gmail.com>
10133
10134 * config.gcc (nds32*): Add new modules to extra_objs.
10135 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10136 (nds32be-*-*): Likewise.
10137 * config/nds32/nds32-cost.c: New file.
10138 * config/nds32/nds32-fp-as-gp.c: New file.
10139 * config/nds32/nds32-intrinsic.c: New file.
10140 * config/nds32/nds32-isr.c: New file.
10141 * config/nds32/nds32-md-auxiliary.c: New file.
10142 * config/nds32/nds32-memory-manipulation.c: New file.
10143 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10144 * config/nds32/nds32-predicates.c: New file.
10145 * config/nds32/t-nds32: New file.
10146
10147 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10148
10149 PR tree-optimization/61682
10150 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10151 using cases and when one of the operands is equal to 1.
10152
10153 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10154
10155 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10156 ashr<mode>3): Correct mode of operands[2].
10157 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10158 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10159 Correct mode of operands[2]. Fix split condition.
10160
10161 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10162
10163 * arm.md (arch): Add armv6_or_vfpv3.
10164 (arch_enabled): Add test for the above.
10165 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10166 on VFP9.
10167 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10168
10169 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10170
10171 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10172 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10173 HWI 1 and negate the unsigned value.
10174 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10175 use AND instead of shift.
10176 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10177
10178 2014-07-03 Marek Polacek <polacek@redhat.com>
10179
10180 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10181 (-fsanitize=float-divide-by-zero): Move to the table with
10182 -fsanitize=undefined suboptions.
10183 (-fsanitize=float-cast-overflow): Likewise.
10184
10185 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10186
10187 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10188 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10189 endianness.
10190
10191 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10192
10193 * loop-invariant.c (struct invariant): Add a new member: eqno;
10194 (find_identical_invariants): Update eqno;
10195 (create_new_invariant): Init eqno;
10196 (get_inv_cost): Compute comp_cost with eqno;
10197
10198 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10199
10200 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10201 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10202 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10203 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10204 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10205
10206 2014-07-02 Christian Bruel <christian.bruel@st.com>
10207
10208 PR target/29349
10209 PR target/53513
10210 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10211 (make_preds_opaque): Delete.
10212 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10213 (commit_mode_sets): New function.
10214 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10215 Process all modes at once.
10216 * basic-block.h (pre_edge_lcm_avs): Declare.
10217 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10218 Call clear_aux_for_edges. Fix comments.
10219 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10220 (pre_edge_rev_lcm): Idem.
10221 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10222 parameter.
10223 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10224 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10225 Idem.
10226 * config/i386/i386.c (x96_emit_mode_set): Idem.
10227 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10228 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10229 (fpscr_toggle) Disallow from delay slot.
10230 * target.def (emit_mode_set): Add prev_mode parameter.
10231 * doc/tm.texi: Regenerate.
10232
10233 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10234
10235 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10236 variable i.
10237
10238 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10239
10240 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10241 vtable_pointer_value_to_vtable): Constify.
10242 (contains_polymorphic_type_p): Declare.
10243 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10244 vtable_pointer_value_to_vtable): Constify.
10245 (contains_polymorphic_type_p): New predicate.
10246 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10247 polymorphic types.
10248 (ipa_set_ancestor_jf): Likewise.
10249 (detect_type_change): Return false in easy cases.
10250 (compute_complex_assign_jump_func): Require type to contain
10251 polymorphic type.
10252 (compute_known_type_jump_func): Likewise.
10253
10254 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10255
10256 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10257 Remove.
10258 (type_in_anonymous_namespace_p): Constify argument.
10259 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10260 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10261 (main_odr_variant): New function.
10262 (hash_type_name): Make static; update assert; do not ICE on
10263 non-records.
10264 (types_same_for_odr): Bring here from tree.c; simplify and remove
10265 old structural comparing code that doesn't work for templates.
10266 (odr_hasher::equal): Update assert.
10267 (add_type_duplicate): Return true when bases should be computed;
10268 replace incomplete loader by complete; do not output duplicated
10269 warnings; do not ICE on non-records; set odr_violated flag.
10270 (get_odr_type): Be ready to replace incomplete type by complete
10271 one; work on ODR variants instead of main variants; reorder item
10272 in array so bases have still smaller indexes.
10273 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10274 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10275
10276 2014-07-01 Cary Coutant <ccoutant@google.com>
10277
10278 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10279 lookup.
10280 (resolve_addr_in_expr): When replacing the rtx in a location list
10281 entry, get a new address table entry.
10282 (dwarf2out_finish): Call index_location_lists even if there are no
10283 addr_index_table entries yet.
10284
10285 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10286
10287 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10288 change for not being obvious.
10289
10290 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10291
10292 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10293 unused argument.
10294
10295 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10296
10297 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10298 (vcagt_f64): Likewise.
10299 (vcale_f64): Likewise.
10300 (vcaled_f64): Likewise.
10301 (vcales_f32): Likewise.
10302 (vcalt_f64): Likewise.
10303 (vcaltd_f64): Likewise.
10304 (vcalts_f32): Likewise.
10305
10306 2014-07-01 Marek Polacek <polacek@redhat.com>
10307
10308 * doc/invoke.texi: Document -Wint-conversion.
10309
10310 2014-07-01 Marek Polacek <polacek@redhat.com>
10311
10312 PR c/58286
10313 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10314
10315 2014-07-01 Martin Liska <mliska@suse.cz>
10316
10317 IPA REF alias refactoring
10318 * cgraph.h (iterate_direct_aliases): New function.
10319 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10320 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10321 FOR_EACH_ALIAS added.
10322 (cgraph_for_node_and_aliases): Likewise.
10323 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10324 * ipa-inline.c (reset_edge_caches): Likewise.
10325 (update_caller_keys): Likewise.
10326 * trans-mem.c (ipa_tm_execute): Likewise.
10327 *varpool.c (varpool_analyze_node): Likewise.
10328 (varpool_for_node_and_aliases): Likewise.
10329 * ipa-ref.h (first_alias): New function.
10330 (last_alias): Likewise.
10331 (has_aliases_p): Likewise.
10332 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10333 is sensitive to IPA_REF_ALIASes.
10334 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10335 are put at the beginning of the list.
10336 (symtab_node::iterate_direct_aliases): New function.
10337
10338 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10339
10340 Revert:
10341 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10342 type is complete.
10343 (write_ts_type_common_tree_pointers): Do not stream fields not set
10344 for incomplete types; do not stream duplicated fields for variants;
10345 sanity check that variant and type match.
10346 (write_ts_type_non_common_tree_pointers): Likewise.
10347 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10348 TYPE_SIZE whether type is complete.
10349 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10350 write_ts_type_common_tree_pointers
10351 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10352
10353 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10354
10355 * var-tracking.c (add_stores): Return instead of asserting if old
10356 and new values for conditional store are the same.
10357
10358 2014-06-30 Richard Henderson <rth@redhat.com>
10359
10360 PR rtl-opt/61608
10361 PR target/39284
10362 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10363 the cfg if there were any changes.
10364 * passes.def: Revert move of peephole2 after reorder_blocks;
10365 move duplicate_computed_gotos before peephole2.
10366
10367 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10368
10369 * except.c (emit_note_eh_region_end): New helper function.
10370 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10371 emit EH_REGION_END note.
10372 * jump.c (cleanup_barriers): Do not split a call and its
10373 corresponding CALL_ARG_LOCATION note.
10374
10375 2014-06-30 Jeff Law <law@redhat.com>
10376
10377 PR tree-optimization/61607
10378 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10379 deeper into the SSA_NAME_VALUE chain.
10380
10381 2014-06-30 Marek Polacek <polacek@redhat.com>
10382
10383 * convert.c (convert_to_integer): Don't instrument conversions if the
10384 function has no_sanitize_undefined attribute.
10385 * ubsan.c: Don't run the ubsan pass if the function has
10386 no_sanitize_undefined attribute.
10387
10388 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10389
10390 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10391 -fsanitize=undefined suboptions.
10392
10393 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10394
10395 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10396 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10397 against bigendian and adjust indices.
10398
10399 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10400
10401 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10402
10403 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10404
10405 PR target/61633
10406 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10407 Add alternative; make early clobber. Adjust both split patterns
10408 to use operand 0 as the working register.
10409
10410 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10411
10412 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10413 as ira_object_id_map might be NULL, or 1.
10414
10415 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10416
10417 * loop-invariant.c (get_inv_cost): Handle register class.
10418 (gain_for_invariant): Check the register pressure of the inv
10419 and its overlapped register class, other than all.
10420
10421 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10422
10423 * doc/invoke.texi (Optimize Options): Fix descriptions of
10424 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10425
10426 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10427
10428 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10429 documentation.
10430
10431 2014-06-29 Tobias Grosser <tobias@grosser.es>
10432
10433 PR bootstrap/61650
10434 * graphite-isl-ast-to-gimple.c: Add missing guards.
10435
10436 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10437
10438 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10439 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10440 * flag-types.h: Add new enum fgraphite_generator.
10441 * graphite-isl-ast-to-gimple.c: New.
10442 * graphite-isl-ast-to-gimple.h: New.
10443 * graphite.c (graphite_transform_loops): Add choice of Graphite
10444 code generator, which depends on flag_graphite_code_gen.
10445
10446 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10447
10448 * graphite-dependences.c (subtract_commutative_associative_deps):
10449 Add NULL checking of the following variables: must_raw_no_source,
10450 may_raw_no_source, must_war_no_source, may_war_no_source,
10451 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10452 must_war, may_war, must_waw, may_waw.
10453
10454 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10455
10456 * graphite-clast-to-gimple.c: gloog is renamed to
10457 graphite_regenerate_ast_cloog. gloog_error is renamed to
10458 graphite_regenerate_error.
10459 * graphite-clast-to-gimple.h: The definition of the struct
10460 bb_pbb_def is moved to graphite-htab.h.
10461 Add inclusion of the hash-table.h.
10462 * graphite-htab.h: The declaration of the function gloog is moved
10463 to graphite-clast-to-gimple.h and renamed to
10464 graphite_regenerate_ast_cloog.
10465 * graphite.c (graphite_transform_loops): gloog is renamed
10466 to graphite_regenerate_ast_cloog.
10467
10468 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10469
10470 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10471 type is complete.
10472 (write_ts_type_common_tree_pointers): Do not stream fields not set
10473 for incomplete types; do not stream duplicated fields for variants;
10474 sanity check that variant and type match.
10475 (write_ts_type_non_common_tree_pointers): Likewise.
10476 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10477 TYPE_SIZE whether type is complete.
10478 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10479 write_ts_type_common_tree_pointers
10480 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10481
10482 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10483
10484 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10485
10486 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10487
10488 * tree-inline.c (remap_type_1): Do not duplicate fields
10489 that are shared in between type and its main variant.
10490
10491 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10492
10493 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10494 of the type.
10495 (ipa_set_ancestor_jf) Likewise.
10496 (check_stmt_for_type_change): Check that we work on main variant.
10497 (detect_type_change): Look into main variant.
10498 (compute_known_type_jump_func): Check that main variant has BINFO.
10499
10500 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10501
10502 * ipa-devirt.c (set_type_binfo): New function.
10503 (add_type_duplicate): Use it.
10504 (get_odr_type): Sanity check that binfos points to main variants.
10505 (get_class_context): Be sure the context's outer_type is main variant.
10506 (contains_type_p): Walk main variant.
10507 (get_polymorphic_call_info_for_decl): Set outer_type to be
10508 main variant.
10509 (get_polymorphic_call_info): Likewise.
10510 (possible_polymorphic_call_targets): Sanity check that we operate
10511 on main variant.
10512
10513 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10514
10515 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10516
10517 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10518
10519 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10520 accidental change due to wide-int branch merge.
10521
10522 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10523
10524 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10525 compressed debug support.
10526 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10527 * configure: Regenerate.
10528 * config.in: Regenerate.
10529 * common.opt (compressed_debug_sections): New enum.
10530 (gz, gz=): New options.
10531 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10532 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10533 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10534 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10535 LINK_COMPRESS_DEBUG_SPEC.
10536 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10537 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10538 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10539 (Debugging Options): Document -gz[=type].
10540
10541 2014-06-27 Martin Jambor <mjambor@suse.cz>
10542
10543 PR ipa/61160
10544 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10545 args_to_skip, use those from node instead. Copy args_to_skip and
10546 combined_args_to_skip from node to the new thunk.
10547 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10548 (cgraph_create_virtual_clone): Moved computation of
10549 combined_args_to_skip...
10550 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10551
10552 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10553
10554 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10555 redundant diagnostic machinary.
10556
10557 2014-06-27 Richard Biener <rguenther@suse.de>
10558
10559 * tree-ssa-math-opts.c (bswap_replace): Fix
10560 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10561
10562 2014-06-27 Martin Liska <mliska@suse.cz>
10563
10564 * gimple.h (gimple_location_safe): New function introduced.
10565 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10566 of gimple_location_safe replaces gimple_location.
10567 (gimple_fold_call): Likewise.
10568 * ipa-devirt.c (ipa_devirt): Likewise.
10569 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10570 * ipa.c (walk_polymorphic_call_targets): Likewise.
10571 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10572
10573 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10574
10575 PR tree-optimization/57233
10576 PR tree-optimization/61299
10577 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10578 functions.
10579 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10580 would be lowered to scalar shifts, check if corresponding
10581 shifts and vector BIT_IOR_EXPR are supported and don't lower
10582 or lower just to narrower vector type in that case.
10583 * expmed.c (expand_shift_1): Fix up handling of vector
10584 shifts and rotates.
10585
10586 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10587
10588 PR target/61586
10589 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10590
10591 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10592
10593 * doc/invoke.texi (-fsemantic-interposition): Document.
10594 * common.opt (fsemantic-interposition): New flag.
10595 * varasm.c (decl_replaceable_p): Use it.
10596
10597 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10598
10599 PR target/61542
10600 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10601 extraction other than index 3.
10602
10603 2014-06-26 Teresa Johnson <tejohnson@google.com>
10604
10605 * doc/invoke.texi: Fix typo.
10606 * dumpfile.c: Add support for documented -fdump-* options
10607 optimized/missed/note/optall.
10608
10609 2014-06-26 Martin Jambor <mjambor@suse.cz>
10610
10611 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10612 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10613 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10614 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10615 * opts.c (default_options_optimization): Set
10616 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10617 * doc/invoke.texi (allow-load-data-races)
10618 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10619 (allow-store-data-races): Document the new default.
10620
10621 2014-06-26 Martin Jambor <mjambor@suse.cz>
10622
10623 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10624 renamed to ipa_impossible_devirt_target. Fix typo.
10625 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10626 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10627 ipa_impossible_devirt_target.
10628
10629 2014-06-26 Richard Biener <rguenther@suse.de>
10630
10631 PR tree-optimization/61607
10632 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10633 explaining why we restrict copies on loop depth.
10634 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10635 on loop depth.
10636 (record_equivalences_from_phis): Instead add it here.
10637
10638 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10639
10640 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10641 (LTO_WRAPPER_OBJS): New variable.
10642 (lto-wrapper$(exeext)): Use it.
10643 * collect2.c: Include "collect-utils.h".
10644 (verbose, debug): Remove variables.
10645 (at_file_supplied): No longer static.
10646 (tool_name): New variable.
10647 (do_wait, fork_execute, maybe_unlink): Don't declare.
10648 (tool_cleanup): No longer static.
10649 (notice): Remove function.
10650 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10651 fork_execute calls.
10652 (collect_wait, do_wait, collect_execute): Remove functions.
10653 (maybe_unlink): No longer static.
10654 * collect2.h (verbose, debug): Don't declare.
10655 (at_file_supplied): Declare.
10656 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10657 changed.
10658 (collect_execute): Replace with implementation from collect2, plus a
10659 new arg use_atfile. All callers changed.
10660 (collect_wait): Replace with implementation from collect2.
10661 (maybe_unlink_file): Remove function.
10662 (fork_execute): Replace with implementation from collect2, plus a
10663 new arg use_atfile. All callers changed.
10664 (do_wait): Add call to utils_cleanup to the error path.
10665 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10666 (tool_cleanup): Adjust declarations.
10667 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10668 * tlink.c: Include "collect-utils.h".
10669 (tlink_execute): New arg use_atfile. All callers changed.
10670 (tlink_init, tlink_execute): Remove declarations.
10671
10672 * collect-utils.c (save_temps): New variable.
10673 (do_wait): Use it instead of debug. Use fatal_error.
10674 * collect-utils.h (save_temps): Declare.
10675 * collect2.c (verbose): Rename from vflag. All uses changed.
10676 (tool_cleanup): New function, copied from collect_atexit.
10677 (collect_atexit, handler): Just call it.
10678 * collect2.h (verbose): Declaration renamed from vflag.
10679 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10680 debug.
10681
10682 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10683 (lto-wrapper$(exeext)): Link with collect-utils.o.
10684 * collect-utils.c: New file.
10685 * collect-utils.h: New file.
10686 * lto-wrapper.c: Include "collect-utils.h".
10687 (args_name): Delete variable.
10688 (tool_name): New variable.
10689 (tool_cleanup): New function.
10690 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10691 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10692 (fork_execute): Remove functions.
10693
10694 2014-06-26 Nick Clifton <nickc@redhat.com>
10695
10696 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10697
10698 * doc/extend.texi (Function Attributes): Fix typo in description
10699 of RX vector attribute.
10700
10701 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10702
10703 * config.gcc (supported_defaults): Error when passing either
10704 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10705
10706 2014-06-26 Richard Biener <rguenther@suse.de>
10707
10708 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10709 propagating volatile pointers.
10710
10711 2014-06-26 Richard Biener <rguenther@suse.de>
10712
10713 PR tree-optimization/61607
10714 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10715 loop if we redirected its latch edge.
10716 (thread_block_1): Do not cancel loops prematurely.
10717
10718 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10719
10720 * toplev.c (backend_init_target): Move init_emit_regs and
10721 init_regs to...
10722 (backend_init) ... here; skip ira_init_once and backend_init_target.
10723 (target_reinit) ... and here; clear
10724 this_target_rtl->lang_dependent_initialized.
10725 (lang_dependent_init_target): Clear
10726 this_target_rtl->lang_dependent_initialized;
10727 break out rtl initialization to ...
10728 (initialize_rtl): ... here; call also backend_init_target
10729 and ira_init_once.
10730 * toplev.h (initialize_rtl): New function.
10731 * function.c: Include toplev.h
10732 (init_function_start): Call initialize_rtl.
10733 * rtl.h (target_rtl): Add target_specific_initialized,
10734 lang_dependent_initialized.
10735
10736 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10737 Jakub Jelinek <jakub@redhat.com>
10738
10739 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10740
10741 2014-06-25 Tom de Vries <tom@codesourcery.com>
10742
10743 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10744
10745 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10746
10747 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10748 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10749 Issue a strict overflow warning if appropriate.
10750
10751 2014-06-25 Martin Liska <mliska@suse.cz>
10752
10753 IPA REF refactoring
10754 * Makefile.in: Removed header file (ipa-ref-inline.h).
10755 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10756 called.
10757 (cgraph_speculative_call_info): Likewise.
10758 (cgraph_for_node_thunks_and_aliases): Likewise.
10759 (cgraph_for_node_and_aliases): Likewise.
10760 (verify_cgraph_node): Likewise.
10761 * cgraph.h: Batch of IPA REF functions become member functions of
10762 symtab_node: add_reference, maybe_add_reference, clone_references,
10763 clone_referring, clone_reference, find_reference,
10764 remove_stmt_references, remove_all_references,
10765 remove_all_referring, dump_references, dump_referring,
10766 has_alias_p, iterate_reference, iterate_referring.
10767 * cgraphbuild.c (record_reference): New IPA REF function used.
10768 (record_type_list): Likewise.
10769 (record_eh_tables): Likewise.
10770 (mark_address): Likewise.
10771 (mark_load): Likewise.
10772 (mark_store): Likewise.
10773 (pass_build_cgraph_edges): Likewise.
10774 (rebuild_cgraph_edge): Likewise.
10775 (cgraph_rebuild_references): Likewise.
10776 (pass_remove_cgraph_callee_edges): Likewise.
10777 * cgraphclones.c (cgraph_clone_node): Likewise.
10778 (cgraph_create_virtual_clone): Likewise.
10779 (cgraph_materialize_clone): Likewise.
10780 (cgraph_materialize_all_clones): Likewise.
10781 * cgraphunit.c (cgraph_reset_node): Likewise.
10782 (cgraph_reset_node): Likewise.
10783 (analyze_function): Likewise.
10784 (assemble_thunks_and_aliases): Likewise.
10785 (expand_function): Likewise.
10786 * ipa-comdats.c (propagate_comdat_group): Likewise.
10787 (enqueue_references): Likewise.
10788 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10789 (create_specialized_node): Likewise.
10790 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10791 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10792 * ipa-inline.c (reset_edge_caches): Likewise.
10793 (update_caller_keys): Likewise.
10794 (execute): Likewise.
10795 * ipa-prop.c (remove_described_reference): Likewise.
10796 (propagate_controlled_uses): Likewise.
10797 (ipa_edge_duplication_hook): Likewise.
10798 (ipa_modify_call_arguments): Likewise.
10799 * ipa-pure-const.c (propagate_pure_const): Likewise.
10800 * ipa-ref-inline.h: Header file removed, functions moved
10801 to symtab_node class.
10802 * ipa-ref.c (remove_reference): New class member function.
10803 (cannot_lead_to_return): New class member function.
10804 (referring_ref_list): Likewise.
10805 (referred_ref_list): Likewise.
10806 Rest of functions moved to symtab_node class.
10807 * ipa-ref.h: New member functions remove_reference,
10808 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10809 to ipa_ref class.
10810 ipa_ref_list class has new member functions: first_reference,
10811 first_referring, clear, nreferences.
10812 * ipa-reference.c (analyze_function): New IPA REF function used.
10813 (write_node_summary_p): Likewise.
10814 (ipa_reference_write_optimization_summary): Likewise.
10815 * ipa-split.c (split_function): Likewise.
10816 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10817 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10818 (function_and_variable_visibility): Likewise.
10819 * ipa.c (has_addr_references_p): Likewise.
10820 (process_references): Argument type changed.
10821 (symtab_remove_unreachable_nodes): New IPA REF function used.
10822 (process_references): Likewise.
10823 (set_writeonly_bit): Likewise.
10824 * lto-cgraph.c: Implementation of new symtab_node member functions
10825 that uses new IPA REF functions.
10826 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10827 function used.
10828 * lto-streamer-out.c (output_symbol_p): Likewise.
10829 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10830 changed.
10831 * symtab.c: Implementation of new IPA REF API.
10832 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10833 (ipa_tm_create_version): Likewise.
10834 (ipa_tm_execute): Likewise.
10835 * tree-emutls.c (gen_emutls_addr): Likewise.
10836 * tree-inline.c (copy_bb): Likewise.
10837 (delete_unreachable_blocks_update_callgraph): Likewise.
10838 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10839 (varpool_for_node_and_aliases): Likewise.
10840
10841 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10842
10843 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10844
10845 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10846
10847 PR bootstrap/61598
10848 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10849 tree_node * instead of tree_node *.
10850 (fold): Adjust.
10851 (print_fold_checksum): Likewise.
10852 (fold_check_failed): Likewise.
10853 (debug_fold_checksum): Likewise.
10854 (fold_build1_stat_loc): Likewise.
10855 (fold_build2_stat_loc): Likewise.
10856 (fold_build3_stat_loc): Likewise.
10857 (fold_build_call_array_loc): Likewise.
10858
10859 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10860
10861 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10862 implementation with call to...
10863 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10864 function.
10865 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10866 Declare.
10867
10868 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10869
10870 PR tree-optimization/57742
10871 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10872 after replacing the statement.
10873
10874 2014-06-25 Nick Clifton <nickc@redhat.com>
10875
10876 * config/v850/v850.c (GHS_default_section_names): Change to const
10877 char * type.
10878 (GHS_current_section_names): Likewise.
10879 (v850_insert_attributes): Do not build strings, just assign the
10880 names directly. Change the type of 'chosen_section' to const
10881 char*.
10882 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10883 directly to the array entry.
10884 * config/v850/v850.h (GHS_default_section_names): Change to const
10885 char * type.
10886 (GHS_current_section_names): Likewise.
10887
10888 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10889
10890 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10891 (LANG_HOOKS_DECLS): Add it.
10892 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10893 has correct type.
10894 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10895 * langhooks.h (struct lang_hooks_for_decls): Add
10896 omp_clause_linear_ctor hook.
10897 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10898 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10899 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10900 combined simd loop use omp_clause_linear_ctor hook.
10901
10902 2014-06-24 Cong Hou <congh@google.com>
10903
10904 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10905 pattern recognition.
10906 (type_conversion_p): PROMOTION is true if it's a type promotion
10907 conversion, and false otherwise. Return true if the given expression
10908 is a type conversion one.
10909 * tree-vectorizer.h: Adjust the number of patterns.
10910 * tree.def: Add SAD_EXPR.
10911 * optabs.def: Add sad_optab.
10912 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10913 * expr.c (expand_expr_real_2): Likewise.
10914 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10915 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10916 * optabs.c (optab_for_tree_code): Likewise.
10917 * tree-cfg.c (estimate_operator_cost): Likewise.
10918 * tree-ssa-operands.c (get_expr_operands): Likewise.
10919 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10920 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10921 * doc/generic.texi: Add document for SAD_EXPR.
10922 * doc/md.texi: Add document for ssad and usad.
10923
10924 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10925
10926 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10927 qualification in cast.
10928
10929 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10930
10931 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10932 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10933 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10934 (tree_function_decl): ... here.
10935 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10936 streaming of vindex to ...
10937 (write_ts_function_decl_tree_pointers): ... here.
10938 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10939 Do not stream DECL_VINDEX.
10940 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10941
10942 2014-06-24 Catherine Moore <clm@codesourcery.com>
10943 Sandra Loosemore <sandra@codesourcery.com>
10944
10945 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10946 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10947 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10948
10949 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10950
10951 * doc/invoke.texi (Warning Options): Remove duplicated
10952 -Wmaybe-uninitialized.
10953
10954 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10955
10956 PR tree-optimization/57742
10957 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10958 (handle_builtin_malloc, handle_builtin_memset): New functions.
10959 (strlen_optimize_stmt): Call them.
10960 * passes.def: Move strlen after loop+dom but before vrp.
10961
10962 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10963
10964 PR target/61570
10965 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10966 model family 6 CPU with has_longmode never use a CPU without
10967 64-bit support.
10968
10969 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10970
10971 PR target/61570
10972 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10973 the last change.
10974
10975 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10976
10977 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10978 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10979 pointer_map.
10980 * hash-map.h: New file.
10981 * ipa-comdats.c: Use hash_map instead of pointer_map.
10982 * ipa.c: Likewise.
10983 * lto-section-out.c: Adjust.
10984 * lto-streamer.h: Replace pointer_map with hash_map.
10985 * symtab.c (verify_symtab): Likewise.
10986 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10987 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10988 * tree-streamer.h: Likewise.
10989 * tree-streamer.c: Adjust.
10990 * pointer-set.h: Remove pointer_map.
10991
10992 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10993
10994 * hash-table.h: Add a template arg to choose between storing values
10995 and storing pointers to values, and then provide partial
10996 specializations for both.
10997 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10998 should store, not the type values should point to.
10999 * tree-into-ssa.c (var_info_hasher): Likewise.
11000 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11001 * tree-complex.c: Adjust.
11002 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
11003 table instead of int_tree_map *.
11004 * tree-parloops.c: Adjust.
11005 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
11006 type is being stored.
11007 * tree-vectorizer.c: Adjust.
11008
11009 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11010
11011 * hash-table.h: Remove a layer of indirection from hash_table so that
11012 it contains the hash table's data instead of a pointer to the data.
11013 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
11014 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
11015 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
11016 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11017 fold-const.c, gcse.c, ggc-common.c,
11018 gimple-ssa-strength-reduction.c, gimplify.c,
11019 graphite-clast-to-gimple.c, graphite-dependences.c,
11020 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11021 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11022 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11023 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11024 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11025 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11026 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11027 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11028 tree-ssa-live.c, tree-ssa-loop-im.c,
11029 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11030 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11031 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11032 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11033 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11034 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11035 vtable-verify.c, vtable-verify.h: Adjust.
11036
11037 2014-06-24 Richard Biener <rguenther@suse.de>
11038
11039 PR tree-optimization/61572
11040 * tree-ssa-sink.c (statement_sink_location): Do not sink
11041 loads from hard registers.
11042
11043 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11044
11045 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11046 not mentioned in clauses use private clause if the iterator is
11047 declared in #pragma omp for simd, and when adding lastprivate
11048 instead, add it to the outer #pragma omp for too. Diagnose
11049 if the variable is private in outer context. For simd collapse > 1
11050 loops, replace all iterators with temporaries.
11051 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11052 same even in collapse > 1 loops.
11053
11054 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11055 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11056 non-NULL.
11057 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11058 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11059 non-NULL.
11060 (gimplify_adjust_omp_clauses): Likewise.
11061 * omp-low.c (lower_rec_simd_input_clauses,
11062 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11063 safelen the same as safelen(1).
11064 * tree-nested.c (convert_nonlocal_omp_clauses,
11065 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11066 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11067 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11068 Fixup handling of GIMPLE_OMP_TARGET.
11069 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11070 GIMPLE_OMP_TARGET.
11071
11072 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11073
11074 PR tree-optimization/61554
11075 * tree-ssa-propagate.c: Include "bitmap.h".
11076 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11077 properly update constructor/destructor.
11078 (substitute_and_fold_dom_walker::before_dom_children):
11079 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11080 need_eh_cleaup instead.
11081 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11082 need_eh_cleanup.
11083
11084 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11085
11086 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11087 * tree-pass.h (make_pass_ipa_single_use): New pass.
11088 * cgraph.h (used_by_single_function): New flag.
11089 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11090 Stream it.
11091 * passes.def (pass_ipa_single_use): Scedule.
11092 * ipa.c (BOTTOM): New macro.
11093 (meet): New function
11094 (propagate_single_user): New function.
11095 (ipa_single_use): New function.
11096 (pass_data_ipa_single_use): New pass.
11097 (pass_ipa_single_use): New pass.
11098 (pass_ipa_single_use::gate): New gate.
11099 (make_pass_ipa_single_use): New function.
11100
11101 2014-06-23 Kai Tietz <ktietz@redhat.com>
11102
11103 PR target/39284
11104 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11105 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11106
11107 2014-06-23 Richard Biener <rguenther@suse.de>
11108
11109 * tree-ssa-loop.c (gate_loop): New function.
11110 (pass_tree_loop::gate): Call it.
11111 (pass_data_tree_no_loop, pass_tree_no_loop,
11112 make_pass_tree_no_loop): New.
11113 * tree-vectorizer.c: Include tree-scalar-evolution.c
11114 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11115 required.
11116 (pass_slp_vectorize::clone): New method.
11117 * timevar.def (TV_TREE_NOLOOP): New.
11118 * tree-pass.h (make_pass_tree_no_loop): Declare.
11119 * passes.def (pass_tree_no_loop): New pass group with
11120 SLP vectorizer.
11121
11122 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11123
11124 PR target/61570
11125 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11126 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11127
11128 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11129
11130 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11131 "yes" where needed.
11132
11133 2014-06-23 Alan Modra <amodra@gmail.com>
11134
11135 PR bootstrap/61583
11136 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11137 to zero on debug statements.
11138
11139 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11140
11141 PR target/60825
11142 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11143 Ignore third operand if present by marking qualifier_internal.
11144
11145 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11146
11147 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11148 vector extension.
11149 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11150 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11151 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11152 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11153 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11154 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11155 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11156 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11157 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11158 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11159 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11160 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11161 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11162 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11163 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11164 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11165 logic in GCC vector extensions
11166
11167 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11168 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11169 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11170 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11171 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11172 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11173 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11174 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11175 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11176 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11177
11178 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11179
11180 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11181 extensions.
11182
11183 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11184 (vget_low_s64): Use __GET_LOW macro.
11185 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11186 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11187 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11188 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11189 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11190
11191 (vcombine_s64): Use GCC vector extensions; remove cast.
11192 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11193 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11194 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11195 Fix type signature; remove cast.
11196
11197 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11198
11199 PR target/60825
11200 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11201 V1DFmode.
11202 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11203 add V1DFmode
11204 (BUILTIN_VD1): New.
11205 (BUILTIN_VD_RE): Remove.
11206 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11207 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11208 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11209 variant but not df.
11210 (vreinterpretv1df*, vreinterpret*v1df): New.
11211 (vreinterpretdf*, vreinterpret*df): Remove.
11212 * config/aarch64/aarch64-simd.md (aarch64_create,
11213 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11214 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11215 (VD1): New.
11216 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11217 (vcreate_f64): Remove cast, use v1df builtin.
11218 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11219 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11220 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11221 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11222 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11223 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11224 add range check using __builtin_aarch64_im_lane_boundsi.
11225 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11226 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11227 type signature, use gcc vector extensions.
11228 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11229 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11230 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11231 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11232 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11233 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11234 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11235 vreinterpret_u64_f64): Use v1df builtin not df.
11236
11237 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11238
11239 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11240 vector registers.
11241
11242 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11243
11244 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11245 priority directly.
11246
11247 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11248
11249 * loop-invariant.c (pre_check_invariant_p): New function.
11250 (find_invariant_insn): Call pre_check_invariant_p.
11251
11252 2014-06-22 Richard Henderson <rth@redhat.com>
11253
11254 PR target/61565
11255 * compare-elim.c (struct comparison): Add eh_note.
11256 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11257 a redundant comparison in a different EH region. Purge EH edges if
11258 necessary.
11259
11260 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11261
11262 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11263 (var_shift): Use it.
11264 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11265 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11266 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11267 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11268 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11269 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11270 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11271 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11272 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11273 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11274 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11275 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11276 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11277 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11278 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11279 *rotldi3_internal15be): Use the new attribute. Merge register and
11280 integer alternatives.
11281
11282 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11283
11284 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11285 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11286 split, *ashrdi3_internal3 and split): Delete, merge into...
11287 (ashr<mode>3): New expander.
11288 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11289 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11290
11291 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11292
11293 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11294 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11295 *rotldi3_internal3 and split): Delete, merge into...
11296 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11297 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11298 Use "rotlw" extended mnemonic.
11299
11300 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11301
11302 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11303 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11304 and split, *ashldi3_internal3 and split): Delete, merge into...
11305 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11306 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11307
11308 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11309
11310 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11311 (lshrsi3, two anonymous define_insns and define_splits,
11312 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11313 *lshrdi3_internal3 and split): Delete, merge into...
11314 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11315 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11316
11317 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11318
11319 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11320 Remove "O" alternative.
11321
11322 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11323
11324 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11325 (mips_move_from_gpr_cost): Likewise.
11326 (mips_register_move_cost): Update accordingly.
11327 (mips_secondary_reload_class): Remove name of in_p.
11328
11329 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11330
11331 PR target/61503
11332 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11333 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11334
11335 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11336
11337 * config/nios2/nios2.c: Include "builtins.h".
11338
11339 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11340
11341 * cgraph.h (tls_model_names): New variable.
11342 * print-tree.c (print_node): Simplify.
11343 * varpool.c (tls_model_names): New variable.
11344 (dump_varpool_node): Output tls model.
11345
11346 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11347
11348 * ipa-visibility.c (function_and_variable_visibility): Disable
11349 temporarily local aliases for some targets.
11350
11351 2014-06-20 Marek Polacek <polacek@redhat.com>
11352
11353 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11354 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11355 into SANITIZE_UNDEFINED.
11356 * doc/invoke.texi: Describe -fsanitize=bounds.
11357 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11358 functions created in the FEs.
11359 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11360 (expand_UBSAN_BOUNDS): New function.
11361 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11362 * internal-fn.h: Don't define internal functions here.
11363 * opts.c (common_handle_option): Add -fsanitize=bounds.
11364 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11365 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11366 * tree-core.h: Define internal functions here.
11367 (struct tree_base): Add ifn field.
11368 * tree-pretty-print.c: Include "internal-fn.h".
11369 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11370 * tree.c (get_callee_fndecl): Likewise.
11371 (build_call_expr_internal_loc): New function.
11372 * tree.def (CALL_EXPR): Update description.
11373 * tree.h (CALL_EXPR_IFN): Define.
11374 (build_call_expr_internal_loc): Declare.
11375 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11376 types.
11377 (ubsan_type_descriptor): Change bool parameter to enum
11378 ubsan_print_style. Adjust the code. Add handling of
11379 UBSAN_PRINT_ARRAY.
11380 (ubsan_expand_bounds_ifn): New function.
11381 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11382 (ubsan_build_overflow_builtin): Likewise.
11383 (instrument_bool_enum_load): Likewise.
11384 (ubsan_instrument_float_cast): Likewise.
11385 * ubsan.h (enum ubsan_print_style): New enum.
11386 (ubsan_expand_bounds_ifn): Declare.
11387 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11388
11389 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11390
11391 * config/rs6000/rs6000.md: Append `DONE' to preparation
11392 statements of `bswap' pattern splitters.
11393
11394 2014-06-20 Tom de Vries <tom@codesourcery.com>
11395
11396 * target.def (call_fusage_contains_non_callee_clobbers): Update
11397 definition.
11398 * doc/tm.texi: Regenerate.
11399
11400 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11401 Max Ostapenko <m.ostapenko@partner.samsung.com>
11402
11403 PR sanitizer/61547
11404 * asan.c (instrument_strlen_call): Fixed instrumentation of
11405 trailing byte.
11406
11407 2014-06-20 Martin Jambor <mjambor@suse.cz>
11408
11409 PR ipa/61540
11410 * ipa-prop.c (impossible_devirt_target): New function.
11411 (try_make_edge_direct_virtual_call): Use it, also instead of
11412 asserting.
11413
11414 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11415 Max Ostapenko <m.ostapenko@partner.samsung.com>
11416
11417 PR sanitizer/61530
11418 * asan.c (build_check_stmt): Add condition.
11419
11420 2014-06-20 Martin Jambor <mjambor@suse.cz>
11421
11422 PR ipa/61211
11423 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11424 expanded clones.
11425
11426 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11427
11428 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11429 Update comments.
11430 (VCONQ): Make comment more helpful.
11431 (VCON): Delete.
11432 * config/aarch64/aarch64-simd.md
11433 (aarch64_sqdmulh_lane<mode>):
11434 Use VCOND for operands 2. Update lane checking and flipping logic.
11435 (aarch64_sqrdmulh_lane<mode>): Likewise.
11436 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11437 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11438 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11439 attribute of operand 3 to VCOND.
11440 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11441 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11442 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11443 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11444 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11445 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11446 define_insn.
11447 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11448 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11449 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11450 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11451 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11452 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11453 operand to VCOND. Update lane flipping and bounds checking logic.
11454 (aarch64_sqdmlal2_lane<mode>): Likewise.
11455 (aarch64_sqdmlsl_lane<mode>): Likewise.
11456 (aarch64_sqdmull_lane<mode>): Likewise.
11457 (aarch64_sqdmull2_lane<mode>): Likewise.
11458 (aarch64_sqdmlal_laneq<mode>):
11459 Replace VCON usage with VCONQ.
11460 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11461 (aarch64_sqdmlal2_laneq<mode>): Emit
11462 aarch64_sqdmlal2_laneq<mode>_internal insn.
11463 Replace VCON with VCONQ.
11464 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11465 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11466 (aarch64_sqdmull_laneq<mode>): Emit
11467 aarch64_sqdmull_laneq<mode>_internal insn.
11468 Replace VCON with VCONQ.
11469 (aarch64_sqdmull2_laneq<mode>): Emit
11470 aarch64_sqdmull2_laneq<mode>_internal insn.
11471 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11472 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11473 of 3rd argument to int16x4_t.
11474 (vqdmlalh_lane_s16): Likewise.
11475 (vqdmlslh_lane_s16): Likewise.
11476 (vqdmull_high_lane_s16): Likewise.
11477 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11478 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11479 (vqdmlsl_lane_s16): Likewise.
11480 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11481 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11482 (vqdmlals_lane_s32): Likewise.
11483 (vqdmlsls_lane_s32): Likewise.
11484 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11485 (vqdmulls_lane_s32): Likewise.
11486 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11487 (vqdmlsl_lane_s32): Likewise.
11488 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11489 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11490 (vqrdmulhh_lane_s16): Likewise.
11491 (vqdmlsl_high_lane_s16): Likewise.
11492 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11493 (vqdmlsl_high_lane_s32): Likewise.
11494 (vqrdmulhs_lane_s32): Likewise.
11495
11496 2014-06-20 Tom de Vries <tom@codesourcery.com>
11497
11498 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11499 get_call_reg_set_usage.
11500
11501 2014-06-20 Tom de Vries <tom@codesourcery.com>
11502
11503 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11504 it contains all call_used_regs.
11505
11506 2014-06-20 Tom de Vries <tom@codesourcery.com>
11507
11508 * final.c (collect_fn_hard_reg_usage): Add and use variable
11509 function_used_regs.
11510
11511 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11512
11513 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11514 (set_init_priority, get_init_priority, set_fini_priority,
11515 get_fini_priority): New methods.
11516 * tree.c (init_priority_for_decl): Remove.
11517 (init_ttree): Do not initialize init priority.
11518 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11519 (decl_priority_info): Remove.
11520 (decl_init_priority_insert): Rewrite.
11521 (decl_fini_priority_insert): Rewrite.
11522 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11523 tree_priority_map_marked_p): Remove.
11524 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11525 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11526 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11527 not output priorities.
11528 (pack_ts_function_decl_value_fields): Likewise.
11529 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11530 not input priorities.
11531 (unpack_ts_function_decl_value_fields): Likewise.
11532 * symtab.c (symbol_priority_map): Declare.
11533 (init_priority_hash): Declare.
11534 (symtab_unregister_node): Unregister from priority hash, too.
11535 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11536 New methods.
11537 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11538 (symbol_priority_info): New function.
11539 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11540 New methods.
11541 * tree-core.h (tree_priority_map): Remove.
11542
11543 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11544
11545 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11546 0xff to uint64_t before shifting it up.
11547
11548 2014-06-20 Julian Brown <julian@codesourcery.com>
11549 Chung-Lin Tang <cltang@codesourcery.com>
11550
11551 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11552 TARGET_THUMB1_ONLY. Add comments.
11553
11554 2014-06-19 Tom de Vries <tom@codesourcery.com>
11555
11556 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11557 return type to void.
11558 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11559
11560 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11561
11562 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11563 as "move", from depends_on.
11564
11565 2014-06-19 Terry Guo <terry.guo@arm.com>
11566
11567 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11568 stage.
11569
11570 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11571
11572 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11573 Remove cr5.
11574 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11575
11576 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11577
11578 PR target/61550
11579 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11580 addresses here if reload in progress or completed.
11581
11582 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11583
11584 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11585 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11586 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11587 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11588 (mips_register_priority): New function that implements the target
11589 hook TARGET_REGISTER_PRIORITY.
11590 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11591 (mips_lra_p): Likewise for TARGET_LRA_P.
11592 (TARGET_REGISTER_PRIORITY): Define macro.
11593 (TARGET_SPILL_CLASS): Likewise.
11594 (TARGET_LRA_P): Likewise.
11595 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11596 classes.
11597 (REG_CLASS_NAMES): Likewise.
11598 (REG_CLASS_CONTENTS): Likewise.
11599 (BASE_REG_CLASS): Use M16_SP_REGS.
11600 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11601 New set attribute to enable alternatives depending on the register
11602 allocator used.
11603 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11604 (*lea64): Disable pattern for MIPS16.
11605 * config/mips/mips.opt (mlra): New option.
11606
11607 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11608
11609 * lra-constraints.c (base_to_reg): New function.
11610 (process_address): Use new function.
11611
11612 2014-06-18 Tom de Vries <tom@codesourcery.com>
11613
11614 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11615 * config/aarch64/aarch64.c
11616 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11617 (aarch64_emit_call_insn): New function.
11618 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11619 of emit_call_insn.
11620 * config/aarch64/aarch64.md (define_expand "call_internal")
11621 (define_expand "call_value_internal", define_expand "sibcall_internal")
11622 (define_expand "sibcall_value_internal"): New.
11623 (define_expand "call", define_expand "call_value")
11624 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11625 expand variant and aarch64_emit_call_insn.
11626
11627 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11628 Tom de Vries <tom@codesourcery.com>
11629
11630 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11631 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11632 Redefine to true.
11633 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11634 clobbers to CALL_INSN_FUNCTION_USAGE.
11635 (define_expand "sibcall_internal")
11636 (define_expand "sibcall_value_internal"): New.
11637 (define_expand "call", define_expand "call_value"): Add argument to
11638 arm_emit_call_insn.
11639 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11640 (define_expand "sibcall_value"): Use sibcall_value_internal and
11641 arm_emit_call_insn.
11642
11643 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11644
11645 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11646
11647 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11648
11649 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11650 __udivmoddi4.
11651
11652 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11653
11654 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11655 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11656 annotations. Fix DWARF information.
11657
11658 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11659
11660 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11661 __udivmoddi4, and fixups for negative operands.
11662
11663 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11664
11665 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11666
11667 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11668
11669 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11670 to __udivmoddi4.
11671
11672 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11673
11674 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11675 manipulation.
11676
11677 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11678
11679 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11680 describing register usage on function entry and exit.
11681
11682 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11683
11684 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11685 (__aeabi_ldivmod): Fix whitespace.
11686
11687 2014-06-18 Andreas Schwab <schwab@suse.de>
11688
11689 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11690 Remove blank line after @item.
11691
11692 2014-06-18 Richard Henderson <rth@redhat.com>
11693
11694 PR target/61545
11695 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11696
11697 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11698
11699 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11700 POST_MODIFY for neon loads and stores.
11701 (arm_print_operand): Output post-index register for neon loads and
11702 stores.
11703
11704 2014-06-18 Richard Biener <rguenther@suse.de>
11705
11706 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11707
11708 2014-06-18 Richard Biener <rguenther@suse.de>
11709
11710 * tree-pass.h (make_pass_dce_loop): Remove.
11711 * passes.def: Replace pass_dce_loop with pass_dce.
11712 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11713 changed free niter estimates and reset the scev cache.
11714 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11715 make_pass_dce_loop): Remove.
11716 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11717 (fini_copy_prop): Return whether something changed. Always
11718 let substitute_and_fold perform DCE and free niter estimates
11719 and reset the scev cache if so.
11720 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11721 (pass_data_copy_prop): Do not unconditionally schedule
11722 cleanup-cfg or update-ssa.
11723
11724 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11725
11726 PR tree-optimization/61518
11727 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11728 reduction var is used in reduction stmt or phi-function only.
11729
11730 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11731
11732 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11733
11734 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11735
11736 PR tree-optimization/61517
11737 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11738 whose rhs's first tree is the source expression instead of the
11739 expression itself.
11740 (find_bswap_or_nop): Likewise.
11741 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11742 gimple stmt whose rhs's first tree is the source. In the memory source
11743 case, move the stmt to be replaced close to one of the original load to
11744 avoid the problem of a store between the load and the stmt's original
11745 location.
11746 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11747 signature.
11748
11749 2014-06-18 Andreas Schwab <schwab@suse.de>
11750
11751 PR rtl-optimization/54555
11752 * postreload.c (move2add_use_add2_insn): Substitute
11753 STRICT_LOW_PART only if it is cheaper.
11754
11755 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11756
11757 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11758 Do not use unspec as call operand. Use memory_operand instead of
11759 memory_nox32_operand and add "m" operand constraint. Disable
11760 pattern for TARGET_X32.
11761 (*sibcall_pop_memory): Ditto.
11762 (*sibcall_value_memory): Ditto.
11763 (*sibcall_value_pop_memory): Ditto.
11764 (sibcall peepholes): Merge SImode and DImode patterns using
11765 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11766 Disable pattern for TARGET_X32. Check if eliminated register is
11767 really dead after call insn. Generate call RTX without unspec operand.
11768 (sibcall_value peepholes): Ditto.
11769 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11770 instead of memory_nox32_operand. Check if eliminated register is
11771 really dead after call insn. Generate call RTX without unspec operand.
11772 (sibcall_value_pop peepholes): Ditto.
11773 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11774
11775 2014-06-18 Terry Guo <terry.guo@arm.com>
11776
11777 PR target/61544
11778 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11779 reach the head.
11780
11781 2014-06-18 Olivier Hainque <hainque@adacore.com>
11782
11783 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11784 memorization of the end of block source location.
11785 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11786 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11787 end source location info we have on the block entry/exit code we
11788 generate.
11789
11790 2014-06-18 Richard Biener <rguenther@suse.de>
11791
11792 * common.opt (fssa-phiopt): New option.
11793 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11794 but not with -Og.
11795 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11796 * doc/invoke.texi (-fssa-phiopt): Document.
11797
11798 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11799
11800 * genattrtab.c (n_bypassed): New variable.
11801 (process_bypasses): Initialise n_bypassed.
11802 Count number of bypassed reservations.
11803 (make_automaton_attrs): Allocate space for bypassed reservations
11804 rather than number of bypasses.
11805
11806 2014-06-18 Richard Biener <rguenther@suse.de>
11807
11808 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11809 we propagated anything.
11810 (substitute_and_fold_dom_walker::before_dom_children): Something
11811 changed if we propagated into PHI arguments.
11812 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11813 we removed a stmt.
11814
11815 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11816
11817 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11818 vector case.
11819 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11820 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11821 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11822 Introduces alternative way of loads group permutaions.
11823 (vect_transform_grouped_load): Try alternative way of permutations.
11824
11825 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11826
11827 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11828 changed in ORT_TARGET region, don't jump to do_outer.
11829 (struct gimplify_adjust_omp_clauses_data): New type.
11830 (gimplify_adjust_omp_clauses_1): Adjust for data being
11831 a struct gimplify_adjust_omp_clauses_data pointer instead
11832 of tree *. Pass pre_p as a new argument to
11833 lang_hooks.decls.omp_finish_clause hook.
11834 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11835 splay_tree_foreach to pass both list_p and pre_p.
11836 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11837 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11838 gimplify_adjust_omp_clauses callers.
11839 * langhooks.c (lhd_omp_finish_clause): New function.
11840 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11841 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11842 * langhooks.h (struct lang_hooks_for_decls): Add a new
11843 gimple_seq * argument to omp_finish_clause hook.
11844 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11845 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11846 (scan_omp_parallel, lower_omp_for): When adding
11847 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11848 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11849 * tree-nested.c (convert_nonlocal_omp_clauses,
11850 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11851 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11852
11853 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11854
11855 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11856 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11857
11858 2014-06-17 Xinliang David Li <davidxl@google.com>
11859
11860 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11861 * passes.c (pass_init_dump_file): Do not set initialize
11862 flag to false unconditionally.
11863
11864 2014-06-17 Richard Biener <rguenther@suse.de>
11865
11866 * genopinit.c (main): Use vec<>::qsort method.
11867 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11868 Likewise.
11869 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11870
11871 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11872
11873 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11874 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11875 (mips_move_to_gpr_cost): Remove ST_REGS case.
11876 (mips_move_from_gpr_cost): Likewise.
11877 (mips_register_move_cost): Likewise.
11878 (mips_secondary_reload_class): Likewise.
11879
11880 2014-06-17 Richard Biener <rguenther@suse.de>
11881
11882 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11883 (pass_all_optimizations): Move 3rd copy-prop pass from after
11884 fre to before ifcombine/phiopt.
11885
11886 2014-06-17 Richard Biener <rguenther@suse.de>
11887
11888 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11889 and allow all blocks to be forwarders.
11890
11891 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11892
11893 PR target/61483
11894 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11895 variable 'size'; calculate 'size' right in the front; use
11896 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11897 pcum->aapcs_stack_words.
11898
11899 2014-06-17 Nick Clifton <nickc@redhat.com>
11900
11901 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11902 (umulhi3, mulsidi3, umulsidi3): Likewise.
11903
11904 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11905
11906 PR middle-end/61508
11907 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11908 check for section name.
11909
11910 2014-06-17 Richard Biener <rguenther@suse.de>
11911
11912 * tree-ssa-propagate.c: Include domwalk.h.
11913 (substitute_and_fold): Outline main worker into a domwalker ...
11914 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11915 Schedule stmts we can fully propagate for removal. Remove
11916 poor-mans DCE.
11917 (substitute_and_fold): Apply a dominator walk to perform
11918 substitution. Process stmts scheduled for removal here.
11919
11920 2014-06-17 Richard Biener <rguenther@suse.de>
11921
11922 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11923 of PHI node moving.
11924
11925 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11926
11927 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11928 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11929 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11930 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11931 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11932 TARGET_HARD_FLOAT.
11933 (get_fpscr) : Likewise.
11934
11935 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11936
11937 PR rtl-optimization/61325
11938 * lra-constraints.c (valid_address_p): Add forward declaration.
11939 (simplify_operand_subreg): Check address validity before and after
11940 alter_reg of memory subreg.
11941
11942 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11943
11944 * config/i386/i386.c (decide_alg): Correctly handle
11945 maximum size of stringop algorithm.
11946
11947 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11948
11949 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11950
11951 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11952
11953 PR rtl-optimization/61522
11954 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11955
11956 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11957
11958 Revert:
11959 * symtab.c (symtab_node::reset_section): New method.
11960 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11961 for localization.
11962 * cgraph.h (reset_section): Declare.
11963 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11964 do not consider comdat locals.
11965 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11966 for new symbol.
11967 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11968 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11969 reset sections of symbols dragged out of the comdats.
11970 (function_and_variable_visibility): Reset sections of
11971 localized symbols.
11972
11973 2014-06-16 Richard Biener <rguenther@suse.de>
11974
11975 PR tree-optimization/61482
11976 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11977 [-INF(OVF), +INF(OVF)] range.
11978
11979 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11980
11981 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11982 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11983 handling 32-bit multiplication.
11984
11985 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11986
11987 PR middle-end/61430
11988 * lra-lives.c (process_bb_lives): Skip creating copy during
11989 insn scan when src/dest has constrained to same regno.
11990
11991 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11992
11993 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11994 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11995
11996 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11997
11998 * asan.c (check_func): New function.
11999 (maybe_create_ssa_name): Likewise.
12000 (build_check_stmt_with_calls): Likewise.
12001 (use_calls_p): Likewise.
12002 (report_error_func): Change interface.
12003 (build_check_stmt): Allow non-integer lengths; add support
12004 for new parameter.
12005 (asan_instrument): Likewise.
12006 (instrument_mem_region_access): Moved code to build_check_stmt.
12007 (instrument_derefs): Likewise.
12008 (instrument_strlen_call): Likewise.
12009 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
12010 * doc/invoke.texi: Describe new parameter.
12011 * params.def: Define new parameter.
12012 * params.h: Likewise.
12013 * sanitizer.def: Describe new builtins.
12014
12015 2014-06-16 Richard Biener <rguenther@suse.de>
12016
12017 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12018 Make all defs available at the end.
12019 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12020
12021 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12022
12023 PR plugins/45078
12024 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12025
12026 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12027
12028 PR bootstrap/61516
12029 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12030 initialization. Replace remaining use of uid.
12031
12032 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12033
12034 * c-family/c-common.c (handle_tls_model_attribute): Use
12035 set_decl_tls_model.
12036 * c-family/c-common.c (handle_tls_model_attribute): Use
12037 set_decl_tls_model.
12038 * cgraph.h (struct varpool_node): Add tls_model.
12039 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12040 * tree.h (DECL_TLS_MODEL): Update.
12041 (DECL_THREAD_LOCAL_P): Check that variable is static.
12042 (decl_tls_model): Declare.
12043 (set_decl_tls_model): Declare.
12044 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12045 set symbol prorperties.
12046 (get_emutls_init_templ_addr): Cleanup.
12047 (new_emutls_decl): Update.
12048 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12049 (lto_input_varpool_node): Likewise.
12050 * lto-streamer-out.c (hash_tree): Likewise.
12051 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12052 not stream DECL_TLS_MODEL.
12053 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12054 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12055
12056 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12057
12058 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12059
12060 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12061
12062 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12063 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12064 lists.
12065 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12066 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12067 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12068 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12069 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12070 (df_get_artificial_defs, df_get_artificial_uses)
12071 (df_single_def, df_single_use): Update accordingly.
12072 (df_refs_chain_dump): Take the first element in a linked list as
12073 parameter, rather than a pointer to an array of pointers.
12074 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12075 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12076 (df_chain_create_bb_process_use): Likewise.
12077 (df_md_bb_local_compute_process_def): Likewise.
12078 * fwprop.c (process_defs, process_uses): Likewise.
12079 (register_active_defs, update_uses): Likewise.
12080 (forward_propagate_asm): Update for new df_ref linking.
12081 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12082 (df_null_ref_rec, df_null_mw_rec): Likewise.
12083 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12084 explicitly.
12085 (df_scan_free_bb_info): Remove check for null artificial_defs.
12086 (df_install_ref_incremental): Adjust for new df_ref linking.
12087 Use a single-element insertion rather than a full sort.
12088 (df_ref_chain_delete_du_chain): Take the first element
12089 in a linked list as parameter, rather than a pointer to an array of
12090 pointers.
12091 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12092 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12093 (df_insn_info_delete): Remove check for null defs and call to
12094 df_scan_free_mws_vec.
12095 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12096 null rather than df_null_*_rec.
12097 (df_insn_rescan_debug_internal): Likewise, and update null
12098 checks in the same way. Remove check for null defs.
12099 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12100 Move a single element rather doing a full sort.
12101 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12102 linking.
12103 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12104 Initialize df_ref and df_mw_hardreg lists to null rather than
12105 df_null_*_rec.
12106 (df_ref_compare): Take df_refs as parameter, transferring the
12107 old interface to...
12108 (df_ref_ptr_compare): ...this new function.
12109 (df_sort_and_compress_refs): Update accordingly.
12110 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12111 old interface to...
12112 (df_mw_ptr_compare): ...this new function.
12113 (df_sort_and_compress_mws): Update accordingly.
12114 (df_install_refs, df_install_mws): Return a linked list rather than
12115 an array of pointers.
12116 (df_refs_add_to_chains): Assert that old lists are empty rather
12117 than freeing them.
12118 (df_insn_refs_verify): Don't handle null defs speciailly.
12119 * web.c (union_match_dups): Update for new df_ref linking.
12120
12121 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12122
12123 * df.h (df_ref_create, df_ref_remove): Delete.
12124 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12125 (df_ref_remove): Likewise.
12126
12127 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12128
12129 * df.h (df_single_def, df_single_use): New functions.
12130 * ira.c (find_moveable_pseudos): Use them.
12131
12132 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12133
12134 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12135 * df-problems.c (df_note_bb_compute): Use it.
12136 * regstat.c (regstat_bb_compute_ri): Likewise.
12137
12138 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12139
12140 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12141 * cse.c (cse_extended_basic_block): Use them.
12142 * dce.c (mark_artificial_use): Likewise.
12143 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12144 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12145 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12146 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12147 (df_simulate_initialize_backwards): Likewise.
12148 (df_simulate_finalize_backwards): Likewise.
12149 (df_simulate_initialize_forwards): Likewise.
12150 (df_md_simulate_artificial_defs_at_top): Likewise.
12151 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12152 * regrename.c (init_rename_info): Likewise.
12153 * regstat.c (regstat_bb_compute_ri): Likewise.
12154 (regstat_bb_compute_calls_crossed): Likewise.
12155
12156 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12157
12158 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12159 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12160 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12161 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12162 * combine.c (create_log_links): Likewise.
12163 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12164 (try_eliminate_compare): Likewise.
12165 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12166 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12167 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12168 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12169 (word_dce_process_block, dce_process_block): Likewise.
12170 * ddg.c (def_has_ccmode_p): Likewise.
12171 * df-core.c (df_bb_regno_first_def_find): Likewise.
12172 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12173 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12174 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12175 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12176 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12177 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12178 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12179 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12180 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12181 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12182 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12183 * fwprop.c (local_ref_killed_between_p): Likewise.
12184 (all_uses_available_at, free_load_extend): Likewise.
12185 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12186 * hw-doloop.c (scan_loop): Likewise.
12187 * ifcvt.c (dead_or_predicable): Likewise.
12188 * init-regs.c (initialize_uninitialized_regs): Likewise.
12189 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12190 (process_bb_node_lives): Likewise.
12191 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12192 (find_moveable_pseudos): Likewise.
12193 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12194 * recog.c (peep2_find_free_register): Likewise.
12195 * ree.c (get_defs): Likewise.
12196 * regstat.c (regstat_bb_compute_ri): Likewise.
12197 (regstat_bb_compute_calls_crossed): Likewise.
12198 * sched-deps.c (find_inc, find_mem): Likewise.
12199 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12200 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12201 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12202 (prepare_shrink_wrap): Likewise.
12203 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12204 * web.c (union_defs, pass_web::execute): Likewise.
12205 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12206 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12207
12208 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12209
12210 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12211 to inheritance pseudos.
12212 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12213
12214 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12215
12216 PR target/61415
12217 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12218 (BU_MISC_2): Rename to ...
12219 (BU_LDBL128_2): ... this.
12220 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12221 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12222 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12223 RS6000_BTM_LDBL128.
12224 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12225 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12226 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12227 (unpacktf_1): Likewise.
12228 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12229 (__builtin_longdouble_dw1): Likewise.
12230 * doc/sourcebuild.texi (longdouble128): Document.
12231
12232 2014-06-13 Jeff Law <law@redhat.com>
12233
12234 PR rtl-optimization/61094
12235 PR rtl-optimization/61446
12236 * ree.c (combine_reaching_defs): Get the mode for the copy from
12237 the extension insn rather than the defining insn.
12238
12239 2014-06-13 Dehao Chen <dehao@google.com>
12240
12241 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12242
12243 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12244
12245 * doc/install.texi (--enable-linker-plugin-configure-flags)
12246 (--enable-linker-plugin-flags): Document new flags.
12247
12248 2014-06-13 Martin Jambor <mjambor@suse.cz>
12249
12250 PR ipa/61186
12251 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12252 cache_token if returning early.
12253
12254 2014-06-13 Nick Clifton <nickc@redhat.com>
12255
12256 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12257 requested alignment is active.
12258 (LABEL_ALIGN): Likewise.
12259 (LOOP_ALIGN): Likewise.
12260
12261 2014-06-13 Richard Biener <rguenther@suse.de>
12262
12263 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12264 Rewrite to propagate the VN result into all uses where
12265 possible and to remove stmts becoming dead because of that.
12266 (eliminate): Generalize stmt removal handling, remove in
12267 reverse dominator order to support proper debug stmt
12268 generation. Update stmts before removing stmts.
12269 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12270
12271 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12272
12273 PR tree-optimization/61375
12274 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12275 symbolic number cannot be represented in an uint64_t.
12276 (find_bswap_or_nop_1): Likewise.
12277
12278 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12279
12280 * symtab.c (symtab_node::reset_section): New method.
12281 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12282 for localization.
12283 * cgraph.h (reset_section): Declare.
12284 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12285 do not consider comdat locals.
12286 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12287 for new symbol.
12288 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12289 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12290 reset sections of symbols dragged out of the comdats.
12291 (function_and_variable_visibility): Reset sections of
12292 localized symbols.
12293
12294 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12295
12296 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12297 to use symtab and decl_binds_to_current_def_p
12298 * tree-vectorizer.c (increase_alignment): Increase alignment
12299 of alias target, too.
12300
12301 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12302
12303 PR middle-end/61486
12304 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12305 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12306 if outer combined construct is distribute.
12307 (gimplify_omp_for): For OMP_DISTRIBUTE set
12308 gimplify_omp_ctxp->distribute.
12309 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12310 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12311 mapping into decl map.
12312
12313 2014-06-12 Jason Merrill <jason@redhat.com>
12314
12315 * common.opt (fabi-version): Change default to 0.
12316
12317 2014-06-12 Jason Merrill <jason@redhat.com>
12318
12319 * toplev.c (process_options): Reject -fabi-version=1.
12320
12321 2014-06-12 Jeff Law <law@redhat.com>
12322
12323 PR tree-optimization/61009
12324 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12325 value when we stop processing a block due to problematic PHIs.
12326
12327 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12328
12329 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12330 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12331 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12332 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12333 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12334 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12335 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12336 are not in the spec.
12337
12338 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12339
12340 PR target/59843
12341 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12342 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12343 Support V1DFmode.
12344
12345 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12346
12347 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12348
12349 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12350
12351 PR target/61443
12352 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12353 loading from address spaces.
12354
12355 2014-06-12 Martin Liska <mliska@suse.cz>
12356
12357 PR ipa/61462
12358 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12359 statement is reachable.
12360
12361 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12362
12363 * symtab.c (section_hash): New hash.
12364 (symtab_unregister_node): Clear section before freeing.
12365 (hash_section_hash_entry): New haser.
12366 (eq_sections): New function.
12367 (symtab_node::set_section_for_node): New method.
12368 (set_section_1): Update.
12369 (symtab_node::set_section): Take string instead of tree as parameter.
12370 (symtab_resolve_alias): Update.
12371 * cgraph.h (section_hash_entry_d): New structure.
12372 (section_hash_entry): New typedef.
12373 (cgraph_node): Change comdat_group_ to x_comdat_group,
12374 change section_ to x_section and turn into section_hash_entry;
12375 update accestors; put set_section_for_node offline.
12376 * tree.c (decl_section_name): Turn into string.
12377 (set_decl_section_name): Change parameter to be string.
12378 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12379 * sdbout.c (sdbout_one_type): Update.
12380 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12381 * varasm.c (IN_NAMED_SECTION, get_named_section,
12382 resolve_unique_section, hot_function_section, get_named_text_section,
12383 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12384 make_decl_rtl, default_unique_section): Update.
12385 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12386 (c6x_elf_unique_section): Update.
12387 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12388 * config/pa/pa.c (pa_function_section): Update.
12389 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12390 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12391 * config/arc/arc.c (arc_in_small_data_p): Update.
12392 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12393 * config/mcore/mcore.c (mcore_unique_section): Update.
12394 * config/mips/mips.c (mips16_build_function_stub): Update.
12395 (mips16_build_call_stub): Update.
12396 (mips_function_rodata_section): Update.
12397 (mips_in_small_data_p): Update.
12398 * config/score/score.c (score_in_small_data_p): Update.
12399 * config/rx/rx.c (rx_in_small_data): Update.
12400 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12401 (rs6000_xcoff_asm_named_section): Update.
12402 (rs6000_xcoff_unique_section): Update.
12403 * config/frv/frv.c (frv_string_begins_with): Update.
12404 (frv_in_small_data_p): Update.
12405 * config/v850/v850.c (v850_encode_data_area): Update.
12406 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12407 (bfin_handle_l1_data_attribute): Update.
12408 (bfin_handle_l2_attribute): Update.
12409 * config/mep/mep.c (mep_unique_section): Update.
12410 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12411 Update.
12412 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12413 (h8300_handle_tiny_data_attribute): Update.
12414 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12415 (m32r_in_small_data_p): Update.
12416 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12417 * config/i386/i386.c (ix86_in_large_data_p): Update.
12418 * config/i386/winnt.c (i386_pe_unique_section): Update.
12419 * config/darwin.c (darwin_function_section): Update.
12420 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12421 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12422 (new_emutls_decl): Update.
12423 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12424 input_varpool_node): Update.
12425 (ead_string_cst): Turn to ...
12426 (read_string): ... this one.
12427 * dwarf2out.c (secname_for_decl): Update.
12428 * asan.c (asan_protect_global): Update.
12429
12430 2014-06-11 DJ Delorie <dj@redhat.com>
12431
12432 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12433 cache lines.
12434 * config/rx/rx.c (rx_option_override): Likewise.
12435 (rx_align_for_label): Likewise.
12436
12437 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12438
12439 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12440
12441 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12442 prototype.
12443
12444 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12445
12446 * common.md: New file.
12447 * doc/md.texi: Update description of generic, machine-independent
12448 constraints.
12449 * config/s390/constraints.md (e): Delete.
12450 * Makefile.in (md_file): Include common.md.
12451 * config/m32c/t-m32c (md_file): Likewise.
12452 * genpreds.c (general_mem): New array.
12453 (generic_constraint_letters): Remove constraints now defined by
12454 common.md.
12455 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12456 Allow the first character to be '<' or '>' as well.
12457 * genoutput.c (general_mem): New array.
12458 (indep_constraints): Remove constraints now defined by common.md.
12459 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12460 Remove special handling of 'm'.
12461 * ira-costs.c (record_reg_classes): Remove special handling of
12462 constraints now defined by common.md.
12463 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12464 * ira-lives.c (single_reg_class): Likewise.
12465 (ira_implicitly_set_insn_hard_regs): Likewise.
12466 * lra-constraints.c (reg_class_from_constraints): Likewise.
12467 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12468 * postreload.c (reload_cse_simplify_operands): Likewise.
12469 * reload.c (push_secondary_reload, scratch_reload_class)
12470 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12471 * reload1.c (maybe_fix_stack_asms): Likewise.
12472 * targhooks.c (default_secondary_reload): Likewise.
12473 * stmt.c (parse_output_constraint): Likewise.
12474 * recog.c (preprocess_constraints): Likewise.
12475 (constrain_operands, peep2_find_free_register): Likewise.
12476 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12477 must be handled specially.
12478
12479 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12480
12481 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12482 * genpreds.c (have_const_dbl_constraints): Delete.
12483 (add_constraint): Don't set it.
12484 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12485 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12486 constraints using the lookup_constraint logic.
12487 * ira-lives.c (single_reg_class): Likewise.
12488 * ira.c (ira_setup_alts): Likewise.
12489 * lra-constraints.c (process_alt_operands): Likewise.
12490 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12491 * reload.c (find_reloads): Likewise.
12492
12493 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12494
12495 * genpreds.c (const_int_start, const_int_end): New variables.
12496 (choose_enum_order): Output CONST_INT constraints before memory
12497 constraints.
12498 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12499 Add CT_CONST_INT.
12500 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12501 * ira.c (ira_setup_alts): Likewise.
12502 * lra-constraints.c (process_alt_operands): Likewise.
12503 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12504 * reload.c (find_reloads): Likewise.
12505
12506 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12507
12508 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12509 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12510 * recog.c (preprocess_constraints): Update accordingly.
12511
12512 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12513
12514 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12515 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12516 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12517 * genpreds.c (print_type_tree): New function.
12518 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12519 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12520 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12521 Write out enum constraint_type and get_constraint_type.
12522 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12523 constraint_num rather than a constraint string.
12524 (satisfies_address_constraint_p): Likewise.
12525 (reg_class_from_constraints): Avoid old constraint macros.
12526 (process_alt_operands, process_address_1): Likewise.
12527 (curr_insn_transform): Likewise.
12528 * ira-costs.c (record_reg_classes): Likewise.
12529 (record_operand_costs): Likewise.
12530 * ira-lives.c (single_reg_class): Likewise.
12531 (ira_implicitly_set_insn_hard_regs): Likewise.
12532 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12533 * postreload.c (reload_cse_simplify_operands): Likewise.
12534 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12535 (constrain_operands, peep2_find_free_register): Likewise.
12536 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12537 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12538 * reload1.c (maybe_fix_stack_asms): Likewise.
12539 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12540 * targhooks.c (default_secondary_reload): Likewise.
12541 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12542 to EXTRA_CONSTRAINT_STR.
12543 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12544
12545 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12546
12547 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12548 (write_constraint_satisfied_p_array): ...this new function.
12549 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12550 an array.
12551 (write_insn_preds_c): Update accordingly.
12552
12553 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12554
12555 * genpreds.c (write_lookup_constraint): Rename to...
12556 (write_lookup_constraint_1): ...this.
12557 (write_lookup_constraint_array): New function.
12558 (write_tm_preds_h): Define lookup_constraint as an inline function
12559 that uses write_lookup_constraint_array where possible.
12560 (write_insn_preds_c): Update for the changes above.
12561
12562 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12563
12564 * doc/md.texi (regclass_for_constraint): Rename to...
12565 (reg_class_for_constraint): ...this.
12566 * genpreds.c (num_constraints, enum_order, register_start)
12567 (register_end, satisfied_start, memory_start, memory_end)
12568 (address_start, address_end): New variables.
12569 (add_constraint): Count the number of constraints.
12570 (choose_enum_order): New function.
12571 (write_enum_constraint_num): Iterate over enum_order.
12572 (write_regclass_for_constraint): Rename to...
12573 (write_reg_class_for_constraint_1): ...this and update output
12574 accordingly.
12575 (write_constraint_satisfied_p): Rename to...
12576 (write_constraint_satisfied_p_1): ...this and update output
12577 accordingly. Do nothing if all extra constraints are register
12578 constraints.
12579 (write_insn_extra_memory_constraint): Delete.
12580 (write_insn_extra_address_constraint): Delete.
12581 (write_range_function): New function.
12582 (write_tm_preds_h): Define constraint_satisfied_p and
12583 reg_class_for_constraint as inline functions that do a range check
12584 before calling the out-of-line function. Use write_range_function
12585 to implement insn_extra_{register,memory,address}_constraint,
12586 the first of which is new.
12587 (write_insn_preds_c): Update after above changes to write_* functions.
12588 (main): Call choose_enum_order.
12589
12590 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12591
12592 PR tree-optimization/61306
12593 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12594 expression instead of its size.
12595 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12596 false to prevent optimization when the result is unpredictable due to
12597 arithmetic right shift of signed type with highest byte is set.
12598 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12599 (init_symbolic_number): Likewise.
12600 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12601 when the result is unpredictable due to sign extension.
12602
12603 2014-06-11 Terry Guo <terry.guo@arm.com>
12604
12605 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12606 (*thumb1_addsi3): Ditto.
12607 (*thumb_subdi3): Ditto.
12608 (thumb1_subsi3_insn): Ditto.
12609 (*thumb_mulsi3): Ditto.
12610 (*thumb_mulsi3_v6): Ditto.
12611 (*thumb1_andsi3_insn): Ditto.
12612 (thumb1_bicsi3): Ditto.
12613 (*thumb1_iorsi3_insn): Ditto.
12614 (*thumb1_xorsi3_insn): Ditto.
12615 (*thumb1_ashlsi3): Ditto.
12616 (*thumb1_ashrsi3): Ditto.
12617 (*thumb1_lshrsi3): Ditto.
12618 (*thumb1_rotrsi3): Ditto.
12619 (*thumb1_negdi2): Ditto.
12620 (*thumb1_negsi2): Ditto.
12621 (*thumb1_abssi2): Ditto.
12622 (*thumb1_neg_abssi2): Ditto.
12623 (*thumb1_one_cmplsi2): Ditto.
12624 (*thumb1_zero_extendhisi2): Ditto.
12625 (*thumb1_zero_extendqisi2): Ditto.
12626 (*thumb1_zero_extendqisi2_v6): Ditto.
12627 (thumb1_extendhisi2): Ditto.
12628 (thumb1_extendqisi2): Ditto.
12629 (*thumb1_movdi_insn): Ditto.
12630 (*thumb1_movsi_insn): Ditto.
12631 (*thumb1_movhi_insn): Ditto.
12632 (thumb_movhi_clobber): Ditto.
12633 (*thumb1_movqi_insn): Ditto.
12634 (*thumb1_movhf): Ditto.
12635 (*thumb1_movsf_insn): Ditto.
12636 (*thumb_movdf_insn): Ditto.
12637 (movmem12b): Ditto.
12638 (movmem8b): Ditto.
12639 (cbranchqi4): Ditto.
12640 (cbranchsi4_insn): Ditto.
12641 (cbranchsi4_scratch): Ditto.
12642 (*negated_cbranchsi4): Ditto.
12643 (*tbit_cbranch): Ditto.
12644 (*tlobits_cbranch): Ditto.
12645 (*tstsi3_cbranch): Ditto.
12646 (*cbranchne_decr1): Ditto.
12647 (*addsi3_cbranch): Ditto.
12648 (*addsi3_cbranch_scratch): Ditto.
12649 (*thumb_cmpdi_zero): Ditto.
12650 (cstoresi_eq0_thumb1): Ditto.
12651 (cstoresi_ne0_thumb1): Ditto.
12652 (*cstoresi_eq0_thumb1_insn): Ditto.
12653 (*cstoresi_ne0_thumb1_insn): Ditto.
12654 (cstoresi_nltu_thumb1): Ditto.
12655 (cstoresi_ltu_thumb1): Ditto.
12656 (thumb1_addsi3_addgeu): Ditto.
12657 (*thumb_jump): Ditto.
12658 (*call_reg_thumb1_v5): Ditto.
12659 (*call_reg_thumb1): Ditto.
12660 (*call_value_reg_thumb1_v5): Ditto.
12661 (*call_value_reg_thumb1): Ditto.
12662 (*call_insn): Ditto.
12663 (*call_value_insn): Ditto.
12664 (thumb1_casesi_internal_pic): Ditto.
12665 (thumb1_casesi_dispatch): Ditto.
12666 (*thumb1_indirect_jump): Ditto.
12667 (prologue_thumb1_interwork): Ditto.
12668 (*epilogue_insns): Ditto.
12669 (consttable_1): Ditto.
12670 (consttable_2): Ditto.
12671 (tablejump): Ditto.
12672 (*thumb1_tablejump): Ditto.
12673 (thumb_eh_return): Ditto.
12674 (define_peephole2): Two of them are thumb1 only and got moved into
12675 new file thumb1.md.
12676 (define_split): Six of them are thumb1 only and got moved into new
12677 file thumb1.md.
12678 * config/arm/thumb1.md: New file comprised of above thumb1 only
12679 patterns.
12680
12681 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12682
12683 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12684 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12685 dependencies.
12686 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12687 (aarch64_crc_builtin_datum): New struct.
12688 (aarch64_crc_builtin_data): New.
12689 (aarch64_init_crc32_builtins): New function.
12690 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12691 (aarch64_crc32_expand_builtin): New.
12692 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12693 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12694 __ARM_FEATURE_CRC32 when appropriate.
12695 (TARGET_CRC32): Define.
12696 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12697 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12698 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12699 (aarch64_<crc_variant>): New pattern.
12700 * config/aarch64/arm_acle.h: New file.
12701 * config/aarch64/iterators.md (CRC): New int iterator.
12702 (crc_variant, crc_mode): New int attributes.
12703 * doc/aarch64-acle-intrinsics.texi: New file.
12704 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12705 Include aarch64-acle-intrinsics.texi.
12706
12707 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12708
12709 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12710 check for stores group of length 3.
12711 (vect_permute_store_chain): New permutations for stores group of
12712 length 3.
12713 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12714 of vec_perm_shuffle for the new permutations.
12715
12716 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12717
12718 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12719 table rewriting temporarily on targets not supporting ONE_ONLY.
12720
12721 2014-06-11 Richard Biener <rguenther@suse.de>
12722
12723 PR middle-end/61437
12724 Revert
12725 2014-06-04 Richard Biener <rguenther@suse.de>
12726
12727 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12728 TREE_PUBLIC and DECL_EXTERNAL decls.
12729
12730 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12731
12732 * varasm.c (set_implicit_section): New function.
12733 (resolve_unique_section): Use it to set implicit section
12734 for aliases, too.
12735 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12736 (default_function_section): Likewise.
12737 (decl_binds_to_current_def_p): Constify argument.
12738 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12739 * asan.c (asan_protect_global): Use
12740 symtab_get_node (decl)->implicit_section.
12741 * symtab.c (dump_symtab_base): Dump implicit sections.
12742 (verify_symtab_base): Verify sanity of sectoins and comdats.
12743 (symtab_resolve_alias): Alias share the section of its target.
12744 (set_section_1): New function.
12745 (symtab_node::set_section): Move here, recurse to aliases.
12746 (verify_symtab): Check for duplicated symtab lists.
12747 * tree-core.h (implicit_section_name_p): Remove.
12748 * tree-vect-data-refs.c: Include varasm.h.
12749 (vect_can_force_dr_alignment_p): Fix conditional on when
12750 decl bints to current definition; use
12751 symtab_get_node (decl)->implicit_section.
12752 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12753 * cgraph.h (struct symtab_node): Add implicit_section.
12754 (set_section): Rename to ...
12755 (set_section_for_node): ... this one.
12756 (set_section): Declare.
12757 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12758 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12759 input_overwrite_node, input_varpool_node): Stream implicit_section.
12760 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12761 removal; it will fail in LTO.
12762
12763 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12764
12765 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12766 Change second alternative type to f_mcr.
12767 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12768 and 12th alternatives' types to f_mcr and f_mrc.
12769 (*movdi_aarch64): Same for 12th and 13th alternatives.
12770 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12771 (aarch64_movtilow_tilow): Change type to fmov.
12772
12773 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12774
12775 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12776 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12777
12778 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12779
12780 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12781 New expander.
12782 (aarch64_sqrdmulh_lane<mode>): Likewise.
12783 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12784 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12785 (aarch64_sqdmulh_laneq<mode>): New expander.
12786 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12787 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12788 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12789 (aarch64_sqdmulh_lane<mode>): New expander.
12790 (aarch64_sqrdmulh_lane<mode>): Likewise.
12791 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12792 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12793 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12794 (aarch64_sqdmlal_laneq<mode>): Likewise.
12795 (aarch64_sqdmlsl_lane<mode>): Likewise.
12796 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12797 (aarch64_sqdmlal2_lane<mode>): Likewise.
12798 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12799 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12800 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12801 (aarch64_sqdmull_lane<mode>): Likewise.
12802 (aarch64_sqdmull_laneq<mode>): Likewise.
12803 (aarch64_sqdmull2_lane<mode>): Likewise.
12804 (aarch64_sqdmull2_laneq<mode>): Likewise.
12805
12806 2014-06-10 Richard Biener <rguenther@suse.de>
12807
12808 PR tree-optimization/61438
12809 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12810 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12811 insertion of IVs if running PRE.
12812 (eliminate): Adjust.
12813 (pass_pre::execute): Likewise.
12814 (pass_fre::execute): Likewise.
12815
12816 2014-06-10 Richard Biener <rguenther@suse.de>
12817
12818 PR middle-end/61456
12819 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12820 Do not use the main variant for the type comparison.
12821 (ncr_compar): Likewise.
12822 (nonoverlapping_component_refs_p): Likewise.
12823
12824 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12825
12826 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12827 REG_CFA_RESTORE mode.
12828
12829 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12830
12831 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12832 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12833 expand_vec_perm_pblendv.
12834
12835 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12836
12837 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12838 available.
12839 Simplify description of __crc32d and __crc32cd intrinsics.
12840 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12841 availability.
12842
12843 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12844
12845 PR lto/61334
12846 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12847 * config.in: Regenerate.
12848 * configure: Likewise.
12849
12850 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12851
12852 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12853 and public vars.
12854 (intersect_static_var_sets): Remove.
12855 (propagate): Do not prune local statics.
12856
12857 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12858
12859 PR fortran/60928
12860 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12861 Set lastprivate_firstprivate even if omp_private_outer_ref
12862 langhook returns true.
12863 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12864 langhook, call unshare_expr on new_var and call
12865 build_outer_var_ref to get the last argument.
12866
12867 2014-06-10 Marek Polacek <polacek@redhat.com>
12868
12869 PR c/60988
12870 * doc/extend.texi: Add cindex for transparent_union.
12871
12872 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12873
12874 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12875 init_symbolic_number ().
12876
12877 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12878
12879 PR middle-end/61141
12880 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12881 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12882 (verify_rtl_sharing): Likewise.
12883
12884 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12885
12886 PR c++/54442
12887 * tree.c (build_qualified_type): Use a canonical type for
12888 TYPE_CANONICAL.
12889
12890 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12891
12892 * config/arm/arm-modes.def: Remove XFmode.
12893
12894 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12895
12896 PR target/61062
12897 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12898 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12899 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12900 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12901 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12902 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12903 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12904 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12905 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12906
12907 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12908
12909 * tree-core.h (tree_decl_with_vis): Remove section_name.
12910
12911 2014-06-09 Kito Cheng <kito@0xlab.org>
12912
12913 * ira.c (ira): Don't call init_caller_save if LRA enabled
12914 since LRA use its own infrastructure to handle that.
12915
12916 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12917
12918 * symtab.c (dump_symtab_base): Update dumping.
12919 (symtab_make_decl_local): Clear only DECL_COMDAT.
12920 * tree-vect-data-refs.c (Check that variable is static before
12921 tampering with sections.
12922 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12923 (cgraph_create_virtual_clone): Likewise.
12924 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12925 (decl_section_name, set_decl_section_name): New accessors.
12926 (find_decls_types_r): Do not walk section name
12927 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12928 (decl_comdat_group, decl_comdat_group_id): Constify.
12929 (decl_section_name, set_decl_section_name): Update.
12930 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12931 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12932 (cgraph_make_node_local_1): Clear section and comdat group.
12933 * cgraph.h (set_comdat_group): Sanity check.
12934 (get_section, set_section): New.
12935 * ipa-comdats.c (ipa_comdats): Use get_section.
12936 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12937 * lto-streamer-out.c: Do not follow section names.
12938 * c-family/c-common.c (handle_section_attribute): Update.
12939 * lto-cgraph.c (lto_output_node): Output section.
12940 (lto_output_varpool_node): Likewise.
12941 (read_comdat_group): Rename to ...
12942 (read_identifier): ... this one.
12943 (read_string_cst): New function.
12944 (input_node, input_varpool_node): Input section names.
12945 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12946 (new_emutls_decl): Update.
12947 (secname_for_decl): Check section names only of static vars.
12948 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12949 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12950 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12951 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12952 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12953 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12954 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12955 * config/v850/v850.c (v850_insert_attributes): Likewise.
12956 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12957 Likewise.
12958 (h8300_handle_tiny_data_attribute): Likewise.
12959 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12960 (bfin_handle_l2_attribute): Likewise.
12961
12962 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12963
12964 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12965 remove static initializer.
12966
12967 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12968
12969 * varasm.c (use_blocks_for_decl_p): Check symbol table
12970 instead of alias attribute.
12971 (place_block_symbol): Recurse on aliases.
12972
12973 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12974
12975 * ipa-visibility.c: Include varasm.h
12976 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12977
12978 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12979
12980 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12981 outputting aliases.
12982
12983 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12984
12985 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12986 from test_insn into GGC space escape via SET_SRC.
12987
12988 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12989
12990 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12991 call statement, if any.
12992 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12993 statements, if any. Tidy up.
12994
12995 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12996
12997 PR target/61431
12998 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12999 iterators, VSX_D that handles 64-bit types, and VSX_LE that
13000 handles swapping the two 64-bit double words on little endian
13001 systems. Include V1TImode and optionally TImode in VSX_LE so that
13002 these types are properly swapped. Change all of the insns and
13003 splits that do the 64-bit swaps to use VSX_LE.
13004 (vsx_le_perm_load_<mode>): Likewise.
13005 (vsx_le_perm_store_<mode>): Likewise.
13006 (splitters for little endian memory operations): Likewise.
13007 (vsx_xxpermdi2_le_<mode>): Likewise.
13008 (vsx_lxvd2x2_le_<mode>): Likewise.
13009 (vsx_stxvd2x2_le_<mode>): Likewise.
13010
13011 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
13012
13013 PR target/61423
13014 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
13015 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
13016 and corresponding splitters. Zero extend general register
13017 or memory input operand to XMM temporary. Enable for
13018 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13019 (floatunssi<mode>2): Update expander predicate.
13020
13021 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13022
13023 PR rtl-optimization/61325
13024 * lra-constraints.c (process_address_1): Check scale equal to one
13025 to prevent transformation: base + scale * index => base + new_reg.
13026
13027 2014-06-06 Richard Biener <rguenther@suse.de>
13028
13029 PR tree-optimization/59299
13030 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13031 a def operand.
13032 (nearest_common_dominator_of_uses): Likewise.
13033 (statement_sink_location): Adjust. Support sinking loads.
13034
13035 2014-06-06 Martin Jambor <mjambor@suse.cz>
13036
13037 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13038 (build_agg_jump_func_from_list): Likewise.
13039 (determine_known_aggregate_parts): Renamed to
13040 determine_locally_known_aggregate_parts. Moved some functionality
13041 to the two functions above, removed bound checks.
13042
13043 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13044
13045 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13046 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13047 (aarch64_progress_pointer): Likewise.
13048 (aarch64_copy_one_part_and_move_pointers): Likewise.
13049 (aarch64_expand_movmen): Likewise.
13050 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13051 * config/aarch64/aarch64.md (movmem<mode>): New.
13052
13053 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13054
13055 * targhooks.c (default_add_stmt_cost): Call target specific
13056 hook instead of default one.
13057
13058 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13059
13060 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13061 endianness instead of host endianness.
13062 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13063 comments.
13064
13065 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13066
13067 PR debug/53927
13068 * function.c (instantiate_decls): Process the saved static chain.
13069 (expand_function_start): If not optimizing, save the static chain
13070 onto the stack.
13071 * tree-nested.c (convert_all_function_calls): Always create the static
13072 chain for nested functions if not optimizing.
13073
13074 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13075
13076 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13077
13078 2014-06-06 Richard Biener <rguenther@suse.de>
13079
13080 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13081 (construct_init_block): Likewise.
13082 (construct_exit_block): Likewise.
13083 (pass_expand::execute): Likewise.
13084 * graphite.c (graphite_transforms): Replace check for current_loops
13085 with a check for > 1 loops.
13086 (pass_graphite_transforms::execute): Adjust.
13087 * ipa-split.c (split_function): Remove check for current_loops.
13088 * omp-low.c (expand_parallel_call): Likewise.
13089 (expand_omp_for_init_counts): Likewise.
13090 (extract_omp_for_update_vars): Likewise.
13091 (expand_omp_for_generic): Likewise.
13092 (expand_omp_sections): Likewise.
13093 (expand_omp_target): Likewise.
13094 * tracer.c (tail_duplicate): Likewise.
13095 (pass_tracer::execute): Likewise.
13096 * trans-mem.c (expand_transaction): Likewise.
13097 * tree-complex.c (expand_complex_div_wide): Likewise.
13098 * tree-eh.c (lower_resx): Likewise.
13099 (cleanup_empty_eh_merge_phis): Likewise.
13100 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13101 current_loops with a check for > 1 loops.
13102 (pass_predcom::execute): Adjust.
13103 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13104 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13105 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13106 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13107 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13108 * tree-switch-conversion.c (process_switch): Likewise.
13109 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13110 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13111 (execute_vrp): Likewise.
13112 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13113
13114 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13115
13116 * rtl.h (insn_location): Declare.
13117 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13118 with UNKNOWN_LOCATION.
13119 * emit-rtl.c (insn_location): New function.
13120 * final.c (notice_source_line): Check that the instruction has a
13121 location before retrieving it and use insn_location.
13122 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13123 * print-rtl.c (print_rtx): Likewise.
13124
13125 2014-06-06 Richard Biener <rguenther@suse.de>
13126
13127 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13128
13129 2014-06-06 Christian Bruel <christian.bruel@st.com>
13130
13131 PR tree-optimization/43934
13132 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13133 cost.
13134
13135 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13136
13137 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13138 return NO_REGS for extra address and memory constraints. Handle
13139 operands that match (or are equivalent to something that matches)
13140 extra constant constraints. Ignore other non-register operands.
13141
13142 2014-06-06 Alan Modra <amodra@gmail.com>
13143
13144 PR target/61300
13145 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13146 * doc/tm.texi: Regenerate.
13147 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13148 Use throughout in place of REG_PARM_STACK_SPACE.
13149 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13150 "incoming" param. Pass to rs6000_function_parms_need_stack.
13151 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13152 prototype_p when incoming. Use function decl when incoming
13153 to handle K&R style functions.
13154 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13155 (INCOMING_REG_PARM_STACK_SPACE): Define.
13156
13157 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13158
13159 PR target/52472
13160 * cfgexpand.c (expand_debug_expr): Use address space of nested
13161 TREE_TYPE for ADDR_EXPR and MEM_REF.
13162
13163 2014-06-05 Jeff Law <law@redhat.com>
13164
13165 PR tree-optimization/61289
13166 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13167 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13168 looking for those which match LHS. All callers changed.
13169 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13170 parameters and code which manipulated them. All callers changed.
13171 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13172 and DST_MAP parameters. Simplify invalidation code by just calling
13173 invalidate_equivalences. All callers changed.
13174 (thread_across_edge): Simplify now that we don't need to maintain
13175 the map of equivalences to invalidate.
13176
13177 2014-06-05 Kai Tietz <ktietz@redhat.com>
13178 Richard Henderson <rth@redhat.com>
13179
13180 PR target/46219
13181 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13182 checking for !TARGET_X32.
13183 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13184 (sibcall_intern): New define_insn, plus required peepholes.
13185 (sibcall_pop_intern): Likewise.
13186 (sibcall_value_intern): Likewise.
13187 (sibcall_value_pop_intern): Likewise.
13188
13189 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13190
13191 * tree-inline.c (tree_function_versioning): Check DF info existence
13192 before accessing it.
13193
13194 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13195
13196 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13197 frame_size.
13198 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13199 aarch64_frame hard_fp_offset and frame_size.
13200 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13201 frame_size; remove original_frame_size.
13202 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13203 (aarch64_initial_elimination_offset): Remove frame_size and
13204 offset. Use aarch64_frame frame_size.
13205
13206 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13207 Jiong Wang <jiong.wang@arm.com>
13208 Renlin <renlin.li@arm.com>
13209
13210 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13211 initialization of R30 offset. Update offset. Iterate core
13212 regisers upto X30. Remove X29, X30 specific code.
13213
13214 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13215 Jiong Wang <jiong.wang@arm.com>
13216
13217 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13218 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13219 (aarch64_register_saved_on_entry): Adjust test.
13220
13221 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13222
13223 * config/aarch64/aarch64.h (machine_function): Move
13224 saved_varargs_size from here...
13225 (aarch64_frame): ... to here.
13226
13227 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13228 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13229 (aarch64_initial_elimination_offset)
13230 (aarch64_setup_incoming_varargs): Adjust location of
13231 saved_varargs_size.
13232
13233 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13234
13235 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13236 layout comment.
13237
13238 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13239 Prachi Godbole <Prachi.Godbole@imgtec.com>
13240
13241 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13242 mips32r5 entry to use PROCESSOR_P5600.
13243 * config/mips/mips-tables.opt: Regenerate.
13244 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13245 * config/mips/mips.c (mips_fmadd_bypass): New function.
13246 (mips_rtx_cost_data): Add costs for p5600.
13247 (mips_issue_rate): Add support for p5600.
13248 (mips_multipass_dfa_lookahead): Likewise.
13249 * config/mips/mips.h (TUNE_P5600): New define.
13250 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13251 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13252 * config/mips/mips.md: Include p5600.md.
13253 (processor): Add p5600.
13254 * config/mips/p5600.md: New file.
13255
13256 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13257
13258 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13259 * config/i386/predicates.md (palignr_operand): New.
13260 Indicates if permutation is suitable for palignr instruction.
13261
13262 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13263
13264 PR tree-optimization/61319
13265 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13266 stmt belongs to loop.
13267
13268 2014-06-05 Richard Biener <rguenther@suse.de>
13269
13270 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13271 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13272 (lookup_tmp_var): Adjust.
13273 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13274
13275 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13276
13277 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13278
13279 2014-06-05 Marek Polacek <polacek@redhat.com>
13280
13281 PR c/49706
13282 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13283
13284 2014-06-04 Tom de Vries <tom@codesourcery.com>
13285
13286 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13287 CONST_INT.
13288
13289 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13290
13291 PR tree-optimization/61385
13292 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13293
13294 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13295
13296 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13297 changed to use fatal_error.
13298 (main): Ensure lto_wrapper_cleanup is run atexit.
13299
13300 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13301
13302 * lra-constraints.c (valid_address_p): Move earlier in file.
13303 (address_eliminator): New structure.
13304 (satisfies_memory_constraint_p): New function.
13305 (satisfies_address_constraint_p): Likewise.
13306 (process_alt_operands, process_address, curr_insn_transform): Use them.
13307
13308 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13309
13310 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13311 const pointer.
13312 (target_lra_int, default_target_lra_int, this_target_lra_int)
13313 (op_alt_data): Delete.
13314 * lra.h (lra_init): Delete.
13315 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13316 (init_insn_code_data_once): Remove op_alt_data handling.
13317 (finish_insn_code_data_once): Likewise.
13318 (init_op_alt_data): Delete.
13319 (get_static_insn_data): Initialize operand_alternative to null.
13320 (free_insn_recog_data): Cast operand_alternative before freeing it.
13321 (setup_operand_alternative): Take the operand_alternative as
13322 parameter and assume it isn't already cached in the static
13323 insn data.
13324 (lra_set_insn_recog_data): Update accordingly.
13325 (lra_init): Delete.
13326 * ira.c (ira_init): Don't call lra_init.
13327 * target-globals.h (this_target_lra_int): Declare.
13328 (target_globals): Remove lra_int.
13329 (restore_target_globals): Update accordingly.
13330 * target-globals.c: Don't include lra-int.h.
13331 (default_target_globals, save_target_globals): Remove lra_int.
13332
13333 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13334
13335 * recog.h (operand_alternative): Convert reg_class, reject,
13336 matched and matches into bitfields.
13337 (preprocess_constraints): New overload.
13338 (preprocess_insn_constraints): New function.
13339 (preprocess_constraints): Take the insn as parameter.
13340 (recog_op_alt): Change into a pointer.
13341 (target_recog): Add x_op_alt.
13342 * recog.c (asm_op_alt): New variable.
13343 (recog_op_alt): Change into a pointer.
13344 (preprocess_constraints): New overload, replacing the old function
13345 definition with one that doesn't use global state.
13346 (preprocess_insn_constraints): New function.
13347 (preprocess_constraints): Use them. Take the insn as parameter.
13348 Use asm_op_alt for asms.
13349 (recog_init): Free existing x_op_alt entries.
13350 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13351 pointer const.
13352 (make_early_clobber_and_input_conflicts): Likewise.
13353 (process_bb_node_lives): Pass the insn to process_constraints.
13354 * reg-stack.c (check_asm_stack_operands): Likewise.
13355 (subst_asm_stack_regs): Likewise.
13356 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13357 * regrename.c (build_def_use): Likewise.
13358 * sched-deps.c (sched_analyze_insn): Likewise.
13359 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13360 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13361 (note_invalid_constants): Likewise.
13362 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13363 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13364 const.
13365
13366 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13367
13368 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13369 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13370 alternatives.
13371 (make_early_clobber_and_input_conflicts): Likewise.
13372 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13373
13374 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13375
13376 * recog.h (alternative_class): New function.
13377 (which_op_alt): Return a const recog_op_alt.
13378 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13379 (subst_asm_stack_regs): Likewise.
13380 * config/arm/arm.c (note_invalid_constants): Likewise.
13381 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13382 the operand_alternative; use alternative class instead.
13383 * sel-sched.c (get_reg_class): Likewise.
13384 * regrename.c (build_def_use): Likewise.
13385 (hide_operands, restore_operands, record_out_operands): Update type
13386 accordingly.
13387
13388 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13389
13390 * recog.h (recog_op_alt): Convert to a flat array.
13391 (which_op_alt): New function.
13392 * recog.c (recog_op_alt): Convert to a flat array.
13393 (preprocess_constraints): Update accordingly, grouping all
13394 operands of the same alternative together, rather than the
13395 other way around.
13396 * ira-lives.c (check_and_make_def_conflict): Likewise.
13397 (make_early_clobber_and_input_conflicts): Likewise.
13398 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13399 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13400 (subst_asm_stack_regs): Likewise.
13401 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13402 * regrename.c (hide_operands, record_out_operands): Likewise.
13403 (build_def_use): Likewise.
13404 * sel-sched.c (get_reg_class): Likewise.
13405 * config/arm/arm.c (note_invalid_constants): Likewise.
13406
13407 2014-06-04 Jason Merrill <jason@redhat.com>
13408
13409 PR c++/51253
13410 PR c++/61382
13411 * gimplify.c (gimplify_arg): Non-static.
13412 * gimplify.h: Declare it.
13413
13414 2014-06-04 Richard Biener <rguenther@suse.de>
13415
13416 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13417 TREE_PUBLIC and DECL_EXTERNAL decls.
13418
13419 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13420
13421 * regcprop.c (copyprop_hardreg_forward_1): Account for
13422 HARD_REGNO_CALL_PART_CLOBBERED.
13423
13424 2014-06-04 Richard Biener <rguenther@suse.de>
13425
13426 * configure.ac: Check whether the underlying type of int64_t
13427 is long or long long.
13428 * configure: Regenerate.
13429 * config.in: Likewise.
13430 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13431 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13432
13433 2014-06-04 Richard Biener <rguenther@suse.de>
13434
13435 PR tree-optimization/60098
13436 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13437 we hit a kill.
13438 (dse_optimize_stmt): Simplify, now that we found a kill
13439 earlier.
13440
13441 2014-06-04 Richard Biener <rguenther@suse.de>
13442
13443 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13444 of accesses with non-invariant address.
13445
13446 2014-06-04 Martin Liska <mliska@suse.cz>
13447
13448 * cgraph.h (cgraph_make_wrapper): New function introduced.
13449 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13450 * ipa-inline.h (inline_analyze_function): The function is global.
13451 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13452
13453 2014-06-04 Martin Liska <mliska@suse.cz>
13454
13455 * tree.h (private_lookup_attribute_starting): New function.
13456 (lookup_attribute_starting): Likewise.
13457 * tree.c (private_lookup_attribute_starting): Likewise.
13458
13459 2014-06-04 Martin Liska <mliska@suse.cz>
13460
13461 * cgraph.h (expand_thunk): New argument added.
13462 (address_taken_from_non_vtable_p): New global function.
13463 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13464 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13465 * cgraphunit.c (analyze_function): Likewise.
13466 (assemble_thunks_and_aliases): Argument added to call.
13467 (expand_thunk): New argument forces to produce GIMPLE thunk.
13468
13469 2014-06-04 Martin Liska <mliska@suse.cz>
13470
13471 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13472 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13473 * profile.c (branch_prob): Likewise.
13474
13475 2014-06-04 Martin Jambor <mjambor@suse.cz>
13476
13477 PR ipa/61340
13478 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13479 handler for switch on an ipa_ref_use enum.
13480 * ipa-reference.c (analyze_function): Likewise.
13481
13482 2014-06-04 Kai Tietz <ktietz@redhat.com>
13483
13484 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13485 from old call-instruction.
13486
13487 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13488
13489 * config/aarch64/aarch64.c (aarch64_classify_address)
13490 (aarch64_legitimize_reload_address): Support full addressing modes
13491 for vector modes.
13492 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13493 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13494
13495 2014-06-03 Andrew Pinski <apinski@cavium.com>
13496
13497 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13498 for OP0.
13499
13500 2014-06-03 Andrew Pinski <apinski@cavium.com>
13501
13502 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13503 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13504
13505 2014-06-03 Kai Tietz <ktietz@redhat.com>
13506
13507 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13508 for 64-bit ms-abi.
13509
13510 2014-06-03 Dehao Chen <dehao@google.com>
13511
13512 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13513 the same loop.
13514
13515 2014-06-03 Marek Polacek <polacek@redhat.com>
13516
13517 PR c/60439
13518 * doc/invoke.texi: Document -Wswitch-bool.
13519 * function.c (stack_protect_epilogue): Cast controlling expression of
13520 the switch to int.
13521 * gengtype.c (walk_type): Generate switch expression with its
13522 controlling expression cast to int.
13523
13524 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13525
13526 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13527 and attiny841.
13528 * config/avr/avr-tables.opt: Regenerate.
13529 * config/avr/t-multilib: Regenerate.
13530 * doc/avr-mmcu.texi: Regenerate.
13531
13532 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13533 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13534
13535 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13536 (ata6617c, ata664251): Add new avr35 devices.
13537 (ata6612c): Add new avr4 device.
13538 (ata6613c, ata6614q): Add new avr5 devices.
13539 * config/avr/avr-tables.opt: Regenerate.
13540 * config/avr/t-multilib: Regenerate.
13541 * doc/avr-mmcu.texi: Regenerate.
13542
13543 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13544
13545 * gcc/config/aarch64/aarch64-builtins.c
13546 (aarch64_types_binop_ssu_qualifiers): New static data.
13547 (TYPES_BINOP_SSU): Define.
13548 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13549 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13550 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13551 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13552 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13553 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13554 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13555 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13556 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13557 suffix to builtin function name, remove cast.
13558 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13559 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13560 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13561
13562 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13563
13564 * gcc/config/aarch64/aarch64-builtins.c
13565 (aarch64_types_binop_uus_qualifiers,
13566 aarch64_types_shift_to_unsigned_qualifiers,
13567 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13568 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13569 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13570 sqshlu_n, uqshl_n): Update qualifiers.
13571 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13572 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13573 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13574 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13575 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13576 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13577 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13578 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13579 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13580 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13581 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13582 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13583 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13584 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13585 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13586 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13587 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13588 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13589 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13590 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13591 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13592 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13593 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13594 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13595 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13596 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13597 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13598
13599 2014-06-03 Teresa Johnson <tejohnson@google.com>
13600
13601 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13602
13603 2014-06-02 Jason Merrill <jason@redhat.com>
13604
13605 PR c++/61020
13606 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13607
13608 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13609
13610 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13611 location == 0.
13612
13613 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13614
13615 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13616 New pattern.
13617 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13618 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13619 * config/aarch64/iterators.md (REVERSE): New iterator.
13620 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13621 (rev_op): New int_attribute.
13622 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13623 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13624 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13625 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13626 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13627 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13628 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13629 Replace temporary __asm__ with __builtin_shuffle.
13630
13631 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13632
13633 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13634 mips64r5.
13635 * config/mips/mips-tables.opt: Regenerate.
13636 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13637 to use mips_isa_rev rather than ISA_MIPS32R2.
13638 * config/mips/mips.h (ISA_MIPS32R3): New define.
13639 (ISA_MIPS32R5): New define.
13640 (ISA_MIPS64R3): New define.
13641 (ISA_MIPS64R5): New define.
13642 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13643 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13644 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13645 and mips64r5.
13646 (MIPS_ISA_SYNCI_SPEC): Likewise.
13647 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13648 (LINK_SPEC): Added mips32r3 and mips32r5.
13649 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13650 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13651 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13652 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13653 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13654 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13655 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13656
13657 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13658
13659 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13660 options.
13661 * config/mips/mips.opt (mxpa): New option.
13662 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13663 assembler.
13664
13665 2014-06-03 Martin Jambor <mjambor@suse.cz>
13666
13667 PR ipa/61160
13668 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13669 thunks.
13670
13671 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13672
13673 PR tree-optimization/61328
13674 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13675 initialization from find_bswap_or_nop_1.
13676 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13677 in source_expr2 before using the size value the function sets. Also
13678 make use of init_symbolic_number () in both the old place and
13679 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13680 doing recursion in the GIMPLE_BINARY_RHS case.
13681
13682 2014-06-03 Richard Biener <rguenther@suse.de>
13683
13684 PR tree-optimization/61383
13685 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13686 stmts can't trap.
13687
13688 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13689
13690 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13691 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13692 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13693 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13694 in this file.
13695 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13696 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13697 * system.h: ...here and make it unconditional.
13698 * target.def (conditional_register_usage): Mention
13699 define_register_constraint instead of old-style constraint macros.
13700 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13701 * doc/tm.texi: Regenerate.
13702 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13703 protected by !USE_MD_CONSTRAINTS.
13704 * config/frv/frv.md: Remove quote from old version of documentation.
13705 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13706 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13707 CONST_DOUBLE_OK_FOR_LETTER.
13708 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13709
13710 2014-06-02 Andrew Pinski <apinski@cavium.com>
13711
13712 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13713 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13714 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13715 file whose name depends on -mabi= and -mbig-endian.
13716 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13717 Handle LP64 better and handle ilp32 too.
13718 (MULTILIB_OPTIONS): Delete.
13719 (MULTILIB_DIRNAMES): Delete.
13720
13721 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13722
13723 * expr.h: Remove prototypes of functions defined in builtins.c.
13724 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13725 Remove prototypes of functions defined in builtins.c.
13726 * builtins.h: Update prototype list to include all exported functions.
13727 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13728 no_c99_libc_has_function): Move to targhooks.c
13729 (build_string_literal, build_call_expr_loc_array,
13730 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13731 to tree.c.
13732 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13733 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13734 no_c99_libc_has_function): Relocate from builtins.c.
13735 * tree.c: Include builtins.h.
13736 (build_call_expr_loc_array, build_call_expr_loc_vec,
13737 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13738 from builtins.c.
13739 * fold-const.h (fold_fma): Move prototype to builtins.h.
13740 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13741 * asan.c: Include builtins.h.
13742 * cfgexpand.c: Likewise.
13743 * convert.c: Likewise.
13744 * emit-rtl.c: Likewise.
13745 * except.c: Likewise.
13746 * expr.c: Likewise.
13747 * fold-const.c: Likewise.
13748 * gimple-fold.c: Likewise.
13749 * gimple-ssa-strength-reduction.c: Likewise.
13750 * gimplify.c: Likewise.
13751 * ipa-inline.c: Likewise.
13752 * ipa-prop.c: Likewise.
13753 * lto-streamer-out.c: Likewise.
13754 * stmt.c: Likewise.
13755 * tree-inline.c: Likewise.
13756 * tree-object-size.c: Likewise.
13757 * tree-sra.c: Likewise.
13758 * tree-ssa-ccp.c: Likewise.
13759 * tree-ssa-forwprop.c: Likewise.
13760 * tree-ssa-loop-ivcanon.c: Likewise.
13761 * tree-ssa-loop-ivopts.c: Likewise.
13762 * tree-ssa-math-opts.c: Likewise.
13763 * tree-ssa-reassoc.c: Likewise.
13764 * tree-ssa-threadedge.c: Likewise.
13765 * tree-streamer-in.c: Likewise.
13766 * tree-vect-data-refs.c: Likewise.
13767 * tree-vect-patterns.c: Likewise.
13768 * tree-vect-stmts.c: Likewise.
13769 * config/aarch64/aarch64.c: Likewise.
13770 * config/alpha/alpha.c: Likewise.
13771 * config/arc/arc.c: Likewise.
13772 * config/arm/arm.c: Likewise.
13773 * config/avr/avr.c: Likewise.
13774 * config/bfin/bfin.c: Likewise.
13775 * config/c6x/c6x.c: Likewise.
13776 * config/cr16/cr16.c: Likewise.
13777 * config/cris/cris.c: Likewise.
13778 * config/epiphany/epiphany.c: Likewise.
13779 * config/fr30/fr30.c: Likewise.
13780 * config/frv/frv.c: Likewise.
13781 * config/h8300/h8300.c: Likewise.
13782 * config/i386/i386.c: Likewise.
13783 * config/i386/winnt.c: Likewise.
13784 * config/ia64/ia64.c: Likewise.
13785 * config/iq2000/iq2000.c: Likewise.
13786 * config/lm32/lm32.c: Likewise.
13787 * config/m32c/m32c.c: Likewise.
13788 * config/m32r/m32r.c: Likewise.
13789 * config/m68k/m68k.c: Likewise.
13790 * config/mcore/mcore.c: Likewise.
13791 * config/mep/mep.c: Likewise.
13792 * config/microblaze/microblaze.c: Likewise.
13793 * config/mips/mips.c: Likewise.
13794 * config/mmix/mmix.c: Likewise.
13795 * config/mn10300/mn10300.c: Likewise.
13796 * config/moxie/moxie.c: Likewise.
13797 * config/msp430/msp430.c: Likewise.
13798 * config/nds32/nds32.c: Likewise.
13799 * config/pa/pa.c: Likewise.
13800 * config/pdp11/pdp11.c: Likewise.
13801 * config/picochip/picochip.c: Likewise.
13802 * config/rl78/rl78.c: Likewise.
13803 * config/rs6000/rs6000.c: Likewise.
13804 * config/rx/rx.c: Likewise.
13805 * config/s390/s390.c: Likewise.
13806 * config/score/score.c: Likewise.
13807 * config/sh/sh.c: Likewise.
13808 * config/sparc/sparc.c: Likewise.
13809 * config/spu/spu.c: Likewise.
13810 * config/stormy16/stormy16.c: Likewise.
13811 * config/tilegx/tilegx.c: Likewise.
13812 * config/tilepro/tilepro.c: Likewise.
13813 * config/v850/v850.c: Likewise.
13814 * config/vax/vax.c: Likewise.
13815 * config/xtensa/xtensa.c: Likewise.
13816
13817 2014-06-02 Jeff Law <law@redhat.com>
13818
13819 PR rtl-optimization/61094
13820 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13821 was marked as do_no_reextend. If a copy is needed to eliminate
13822 an extension, then mark it as do_not_reextend.
13823
13824 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13825
13826 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13827
13828 2014-06-02 Richard Henderson <rth@redhat.com>
13829
13830 PR target/61336
13831 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13832 addresses inside asms. Use output_operand_lossage instead of
13833 gcc_unreachable.
13834
13835 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13836
13837 PR target/61239
13838 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13839 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13840
13841 2014-06-02 Tom de Vries <tom@codesourcery.com>
13842
13843 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13844 case that x has VOIDmode.
13845
13846 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13847
13848 * varasm.c (copy_constant): Delete function.
13849 (build_constant_desc): Don't call it.
13850
13851 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13852
13853 PR target/61154
13854 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13855 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13856 with immediate_operand.
13857
13858 2014-06-02 Andreas Schwab <schwab@suse.de>
13859
13860 * config/ia64/ia64.c
13861 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13862 pending_data_specs first.
13863
13864 2014-06-02 Richard Biener <rguenther@suse.de>
13865
13866 PR tree-optimization/61378
13867 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13868 valueized_anything.
13869
13870 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13871
13872 * config/i386/constraints.md (Bw): Rename from 'w'.
13873 (Bz): Rename from 'z'.
13874 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13875
13876 2014-06-01 Kai Tietz <ktietz@redhat.com>
13877
13878 PR target/61377
13879 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13880 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13881 instead of m constraint.
13882
13883 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13884
13885 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13886 a separate alternative where the scratch operand 2 is marked as
13887 early clobber.
13888
13889 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13890
13891 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13892 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13893 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13894 and __builtins_arm_get_fpscr.
13895 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13896 __builtins_arm_get_fpscr.
13897 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13898 __builtins_arm_ldfpscr.
13899 (arm_atomic_assign_expand_fenv): New function.
13900 * config/arm/vfp.md (set_fpscr): New pattern.
13901 (get_fpscr) : Likewise.
13902 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13903 VUNSPEC_SET_FPSCR.
13904 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13905 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13906
13907 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13908
13909 * asan.c (report_error_func): Add SLOW_P argument, use
13910 BUILT_IN_ASAN_*_N if set.
13911 (build_check_stmt): Likewise.
13912 (instrument_derefs): If T has insufficient alignment,
13913 force same handling as for odd sizes.
13914
13915 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13916 BUILT_IN_ASAN_REPORT_STORE_N): New.
13917 * asan.c (struct asan_mem_ref): Change access_size type to
13918 HOST_WIDE_INT.
13919 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13920 update_mem_ref_hash_table): Likewise.
13921 (asan_mem_ref_hasher::hash): Hash in a HWI.
13922 (report_error_func): Change size_in_bytes argument to HWI.
13923 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13924 two.
13925 (build_shadow_mem_access): New function.
13926 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13927 Handle size_in_bytes not power of two or larger than 16.
13928 (instrument_derefs): Don't give up if size_in_bytes is not
13929 power of two or is larger than 16.
13930
13931 2014-05-30 Kai Tietz <ktietz@redhat.com>
13932
13933 PR target/60104
13934 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13935 for sibling-tail-calls.
13936 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13937 to its use.
13938 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13939 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13940
13941 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13942
13943 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13944 * config/avr/avr-tables.opt: Regenerate.
13945 * config/avr/t-multilib: Regenerate.
13946 * doc/avr-mmcu.texi: Regenerate.
13947
13948 2014-05-30 Ian Lance Taylor <iant@google.com>
13949
13950 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13951 target("sse").
13952
13953 2014-05-30 Tom de Vries <tom@codesourcery.com>
13954
13955 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13956 Redefine as true.
13957
13958 2014-05-30 Tom de Vries <tom@codesourcery.com>
13959
13960 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13961 * lra.c (initialize_lra_reg_info_element): Add init of
13962 actual_call_used_reg_set field.
13963 (lra): Call lra_create_live_ranges before lra_inheritance for
13964 -fuse-caller-save.
13965 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13966 -fuse-caller-save.
13967 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13968 instead of call_used_reg_set for -fuse-caller-save.
13969 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13970
13971 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13972
13973 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13974 to mov_imm.
13975 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13976
13977 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13978
13979 * ira.c (ira_get_dup_out_num): Check for output operands at
13980 the start of the loop. Handle cases where an included alternative
13981 follows an excluded one.
13982
13983 2014-05-29 Mike Stump <mikestump@comcast.net>
13984
13985 PR debug/61352
13986 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13987 post ld passes when lto is used.
13988
13989 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13990
13991 PR rtl-optimization/61325
13992 * lra-constraints.c (process_address): Rename to process_address_1.
13993 (process_address): New function.
13994
13995 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13996
13997 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13998 TYPES_BINOPV): New static data.
13999 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
14000 New builtin.
14001 * config/aarch64/aarch64-simd.md (aarch64_ext,
14002 aarch64_im_lane_boundsi): New patterns.
14003 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
14004 patterns for EXT.
14005 (aarch64_evpc_ext): New function.
14006
14007 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
14008
14009 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
14010 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
14011 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
14012 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
14013 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
14014
14015 2014-05-29 Tom de Vries <tom@codesourcery.com>
14016
14017 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14018
14019 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14020 Richard Sandiford <rdsandiford@googlemail.com>
14021
14022 * arm/iterators.md (shiftable_ops): New code iterator.
14023 (t2_binop0, arith_shift_insn): New code attributes.
14024 * arm/predicates.md (shift_nomul_operator): New predicate.
14025 * arm/arm.md (insn_enabled): Delete.
14026 (enabled): Remove insn_enabled test.
14027 (*arith_shiftsi): Delete. Replace with ...
14028 (*<arith_shift_insn>_multsi): ... new pattern.
14029 (*<arith_shift_insn>_shiftsi): ... new pattern.
14030 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14031
14032 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14033 Tom de Vries <tom@codesourcery.com>
14034
14035 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14036 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14037 clobber.
14038 (mips_split_call): Use POST_CALL_TMP_REG.
14039 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14040
14041 2014-05-29 Tom de Vries <tom@codesourcery.com>
14042
14043 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14044 with #ifdef STACK_REGS.
14045
14046 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14047
14048 * varasm.c (get_variable_section): Walk aliases.
14049 (place_block_symbol): Walk aliases.
14050
14051 2014-05-28 Tom de Vries <tom@codesourcery.com>
14052
14053 Revert:
14054 2014-05-28 Tom de Vries <tom@codesourcery.com>
14055
14056 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14057 * lra.c (initialize_lra_reg_info_element): Add init of
14058 actual_call_used_reg_set field.
14059 (lra): Call lra_create_live_ranges before lra_inheritance for
14060 -fuse-caller-save.
14061 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14062 -fuse-caller-save.
14063 * lra-constraints.c (need_for_call_save_p): Use
14064 actual_call_used_reg_set instead of call_used_reg_set for
14065 -fuse-caller-save.
14066 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14067
14068 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14069
14070 * doc/md.texi: Document that the % constraint character must
14071 be at the beginning of the string.
14072 * genoutput.c (validate_insn_alternatives): Check that '=',
14073 '+' and '%' only appear at the beginning of a constraint.
14074 * ira.c (commutative_constraint_p): Delete.
14075 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14076 at the start of the string.
14077 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14078 duplicate '='s.
14079 * config/arm/neon.md (bicdi3_neon): Likewise.
14080 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14081 (slt_si, sltu_si): Likewise.
14082 * config/vax/vax.md (sbcdi3): Likewise.
14083 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14084 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14085 (mul64): Move '%' to beginning of constraint.
14086 * config/arm/arm.md (*xordi3_insn): Likewise.
14087 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14088 (xorsi3): Likewise.
14089
14090 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14091
14092 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14093
14094 2014-05-28 Jason Merrill <jason@redhat.com>
14095
14096 PR c++/47202
14097 * cgraph.h (symtab_node::get_comdat_group_id): New.
14098 * cgraphunit.c (analyze_functions): Call it.
14099 * symtab.c (dump_symtab_node): Likewise.
14100 * tree.c (decl_comdat_group_id): New.
14101 * tree.h: Declare it.
14102 * lto-streamer-out.c (write_symbol): Use it.
14103 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14104
14105 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14106
14107 PR bootstrap/PR61146
14108 * wide-int.cc: Do not include longlong.h when compiling with clang.
14109
14110 2014-05-28 Richard Biener <rguenther@suse.de>
14111
14112 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14113 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14114 (vrp_visit_assignment_or_call): Print less vertical space.
14115 (vrp_visit_stmt): Likewise.
14116 (vrp_visit_phi_node): Likewise. For a PHI argument with
14117 VR_VARYING range consider recording it as copy.
14118
14119 2014-05-28 Richard Biener <rguenther@suse.de>
14120
14121 Revert
14122 2014-05-28 Richard Biener <rguenther@suse.de>
14123
14124 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14125
14126 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14127
14128 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14129 sufficiently aligned and an offset is used at the same time.
14130 (expand_expr_real_1): Likewise.
14131
14132 2014-05-28 Richard Biener <rguenther@suse.de>
14133
14134 PR middle-end/61045
14135 * fold-const.c (fold_comparison): When folding
14136 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14137 the sign of the remaining constant operand stays the same.
14138
14139 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14140
14141 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14142 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14143 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14144 to the assembler.
14145 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14146 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14147 (m32bit-doubles) Likewise.
14148 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14149 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14150 option for RL78.
14151
14152 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14153
14154 * configure.ac ($gcc_cv_ld_clearcap): New test.
14155 * configure: Regenerate.
14156 * config.in: Regenerate.
14157 * config/sol2.opt (mclear-hwcap): New option.
14158 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14159 * config/sol2-clearcap.map: Moved here from
14160 testsuite/gcc.target/i386/clearcap.map.
14161 * config/sol2-clearcapv2.map: Move here from
14162 gcc.target/i386/clearcapv2.map.
14163 * config/t-sol2 (install): Depend on install-clearcap-map.
14164 (install-clearcap-map): New target.
14165 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14166 -mclear-hwcap.
14167
14168 2014-05-28 Richard Biener <rguenther@suse.de>
14169
14170 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14171 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14172 ... here and remove the rest.
14173 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14174
14175 2014-05-28 Richard Biener <rguenther@suse.de>
14176
14177 PR tree-optimization/61335
14178 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14179 new range fails, drop to varying.
14180
14181 2014-05-28 Olivier Hainque <hainque@adacore.com>
14182
14183 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14184 (CPP_SPEC): Add entry for -mcpu=8548.
14185 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14186 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14187
14188 2014-05-28 Tom de Vries <tom@codesourcery.com>
14189
14190 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14191 * lra.c (initialize_lra_reg_info_element): Add init of
14192 actual_call_used_reg_set field.
14193 (lra): Call lra_create_live_ranges before lra_inheritance for
14194 -fuse-caller-save.
14195 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14196 -fuse-caller-save.
14197 * lra-constraints.c (need_for_call_save_p): Use
14198 actual_call_used_reg_set instead of call_used_reg_set for
14199 -fuse-caller-save.
14200 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14201
14202 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14203 Tom de Vries <tom@codesourcery.com>
14204
14205 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14206 to gccoptlist.
14207 (@item -fuse-caller-save): New item.
14208
14209 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14210 Tom de Vries <tom@codesourcery.com>
14211
14212 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14213 OPT_fuse_caller_save.
14214
14215 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14216 Tom de Vries <tom@codesourcery.com>
14217
14218 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14219 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14220 get_call_reg_set_usage.
14221 * resource.c (mark_set_resources, mark_target_live_regs): Use
14222 get_call_reg_set_usage.
14223 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14224 field.
14225 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14226 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14227 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14228 * ira-build.c (ira_create_allocno): Init
14229 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14230 (create_cap_allocno, propagate_allocno_info)
14231 (propagate_some_info_from_allocno)
14232 (copy_info_to_removed_store_destinations): Handle
14233 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14234 * ira-costs.c (ira_tune_allocno_costs): Use
14235 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14236
14237 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14238 Tom de Vries <tom@codesourcery.com>
14239
14240 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14241 and function_used_regs_valid fields.
14242 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14243 find_all_hard_reg_sets.
14244 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14245 (get_call_reg_set_usage): New function.
14246 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14247 * regs.h (get_call_reg_set_usage): Declare.
14248
14249 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14250
14251 PR libgcc/61152
14252 * config/dbx.h (License): Add Runtime Library Exception.
14253 * config/newlib-stdint.h (License): Same.
14254 * config/rtems.h (License): Same
14255 * config/initfini-array.h (License): Same
14256 * config/v850/v850.h (License): Same.
14257 * config/v850/v850-opts.h (License): Same
14258 * config/v850/rtems.h (License): Same.
14259
14260 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14261
14262 PR target/61044
14263 * doc/extend.texi (Local Labels): Note that label differences are
14264 not supported for AVR.
14265
14266 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14267 Olivier Hainque <hainque@adacore.com>
14268
14269 * rtl.h (set_for_reg_notes): Declare.
14270 * emit-rtl.c (set_for_reg_notes): New function.
14271 (set_unique_reg_note): Use it.
14272 * optabs.c (add_equal_note): Likewise
14273
14274 2014-05-27 Andrew Pinski <apinski@cavium.com>
14275
14276 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14277 Use <w> for the register in assembly template.
14278 (stack_protect_test): Use the mode of operands[0] for the result.
14279 (stack_protect_test_<mode>): Use <w> for the register
14280 in assembly template.
14281
14282 2014-05-27 DJ Delorie <dj@redhat.com>
14283
14284 * config/rx/rx.c (add_vector_labels): New.
14285 (rx_output_function_prologue): Call it.
14286 (rx_handle_func_attribute): Don't require empty arguments.
14287 (rx_handle_vector_attribute): New.
14288 (rx_attribute_table): Add "vector" attribute.
14289 * doc/extend.texi (interrupt, vector): Document new/changed
14290 RX-specific attributes.
14291
14292 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14293
14294 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14295
14296 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14297 predicate to detect a negative quotient.
14298
14299 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14300
14301 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14302 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14303 Add X - Y CMP 0 to X CMP Y transformation.
14304 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14305
14306 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14307
14308 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14309 before printing.
14310
14311 2014-05-27 Steve Ellcey <sellcey@mips.com>
14312
14313 * config/mips/mips.c: Add include of cgraph.h.
14314
14315 2014-05-27 Richard Biener <rguenther@suse.de>
14316
14317 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14318
14319 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14320
14321 PR libgcc/61152
14322 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14323 * config/arm/arm-cores.def (License): Same.
14324 * config/arm/arm-opts.h (License): Same.
14325 * config/arm/aout.h (License): Same.
14326 * config/arm/bpabi.h (License): Same.
14327 * config/arm/elf.h (License): Same.
14328 * config/arm/linux-elf.h (License): Same.
14329 * config/arm/linux-gas.h (License): Same.
14330 * config/arm/netbsd-elf.h (License): Same.
14331 * config/arm/uclinux-eabi.h (License): Same.
14332 * config/arm/uclinux-elf.h (License): Same.
14333 * config/arm/vxworks.h (License): Same.
14334
14335 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14336
14337 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14338 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14339 (arm_init_neon_builtins): Handle NEON_BSWAP.
14340 Define required type nodes.
14341 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14342 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14343 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14344 * config/arm/iterators.md (VDQHSD): New mode iterator.
14345
14346 2014-05-27 Richard Biener <rguenther@suse.de>
14347
14348 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14349 Try using literal operands when comparing value-ranges failed.
14350
14351 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14352
14353 * ira.c (commutative_operand): Adjust for change to recog_data.
14354 [Missing from previous commit.]
14355
14356 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14357
14358 * system.h (TEST_BIT): New macro.
14359 * recog.h (alternative_mask): New type.
14360 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14361 (recog_data_d): Replace alternative_enabled_p array with
14362 enabled_alternatives.
14363 (target_recog): New structure.
14364 (default_target_recog, this_target_recog): Declare.
14365 (get_enabled_alternatives, recog_init): Likewise.
14366 * recog.c (default_target_recog, this_target_recog): New variables.
14367 (get_enabled_alternatives): New function.
14368 (extract_insn): Use it.
14369 (recog_init): New function.
14370 (preprocess_constraints, constrain_operands): Adjust for change to
14371 recog_data.
14372 * postreload.c (reload_cse_simplify_operands): Likewise.
14373 * reload.c (find_reloads): Likewise.
14374 * ira-costs.c (record_reg_classes): Likewise.
14375 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14376 all alternatives after a disabled one would be skipped.
14377 (ira_implicitly_set_insn_hard_regs): Likewise.
14378 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14379 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14380 with enabled_alternatives.
14381 * lra.c (free_insn_recog_data): Update accordingly.
14382 (lra_update_insn_recog_data): Likewise.
14383 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14384 * lra-constraints.c (process_alt_operands): Likewise. Handle
14385 only_alternative as part of the enabled mask.
14386 * target-globals.h (this_target_recog): Declare.
14387 (target_globals): Add a recog field.
14388 (restore_target_globals): Restore this_target_recog.
14389 * target-globals.c: Include recog.h.
14390 (default_target_globals): Initialize recog field.
14391 (save_target_globals): Likewise.
14392 * reginfo.c (reinit_regs): Call recog_init.
14393 * toplev.c (backend_init_target): Likewise.
14394
14395 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14396
14397 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14398 rather than any named insn's code.
14399
14400 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14401
14402 PR libgcc/61152
14403 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14404 * config/arm/arm-cores.def (License): Same.
14405
14406 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14407
14408 * tree.h (decl_comdat_group): Declare.
14409 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14410 * tree.c (decl_comdat_group): Here.
14411
14412 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14413
14414 PR rtl-optimization/61222
14415 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14416 the shift, truncate the PLUS operand to the result mode.
14417
14418 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14419
14420 PR target/61271
14421 * config/i386/i386.c (ix86_rtx_costs)
14422 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14423 Fix condition.
14424
14425 2014-05-26 Martin Jambor <mjambor@suse.cz>
14426
14427 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14428 subreg uses.
14429
14430 2014-05-26 Richard Biener <rguenther@suse.de>
14431
14432 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14433 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14434 Provide specializations.
14435 (wi::int_traits <HOST_WIDE_INT>,
14436 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14437
14438 2014-05-26 Alan Modra <amodra@gmail.com>
14439
14440 PR target/61098
14441 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14442 params and return a bool. Remove dead code. Update comment.
14443 Assert we have a const_int source. Remove bogus code from
14444 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14445 handling of constants > 2G and reg_equal note, from..
14446 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14447 return value. Update comment. If we can, use a new pseudo
14448 for intermediate calculations.
14449 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14450 prototype.
14451 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14452 call to rs6000_emit_set_const in splitter.
14453 (movdi_internal64+2, +3): Likewise.
14454
14455 2014-05-26 Richard Biener <rguenther@suse.de>
14456
14457 * system.h: Define __STDC_FORMAT_MACROS before
14458 including inttypes.h.
14459 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14460 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14461 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14462 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14463 HOST_WIDEST_INT_C): Remove.
14464 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14465 if C99 inttypes.h is not available.
14466 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14467 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14468 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14469 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14470 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14471 (struct output_info): Likewise.
14472 (print_statistics): Adjust.
14473 (dump_bitmap_statistics): Likewise.
14474 * bt-load.c (migrate_btr_defs): Print with PRId64.
14475 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14476 (MAX_SAFE_MULTIPLIER): Adjust.
14477 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14478 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14479 dump_cgraph_node): Likewise.
14480 * final.c (dump_basic_block_info): Likewise.
14481 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14482 * gcov.c (format_gcov): Likewise.
14483 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14484 for calculation.
14485 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14486 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14487 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14488 Use PRId64 for dumping.
14489 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14490 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14491 (add_allocno_hard_regs): Adjust.
14492 * loop-doloop.c (doloop_modify): Print using PRId64.
14493 * loop-iv.c (inverse): Compute in uint64_t.
14494 (determine_max_iter, iv_number_of_iterations): Likewise.
14495 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14496 Print using PRId64.
14497 * lto-streamer-out.c (write_symbol): Use uint64_t.
14498 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14499 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14500 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14501 * modulo-sched.c (const_iteration_count): Use int64_t.
14502 (sms_schedule): Dump using PRId64.
14503 * predict.c (dump_prediction): Likewise.
14504 * pretty-print.h (pp_widest_integer): Remove.
14505 * profile.c (get_working_sets, is_edge_inconsistent,
14506 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14507 * tree-pretty-print.c (pp_double_int): Remove case handling
14508 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14509 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14510 and adjust users.
14511 (pass_optimize_bswap::execute): Remove restriction on hosts.
14512 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14513 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14514 * tree.c (widest_int_cst_value): Remove.
14515 * tree.h (widest_int_cst_value): Likewise.
14516 * value-prof.c (dump_histogram_value): Print using PRId64.
14517 * gengtype.c (main): Also inject int64_t.
14518 * ggc-page.c (struct max_alignment): Use int64_t.
14519 * alloc-pool.c (struct allocation_object_def): Likewise.
14520 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14521 for computation.
14522 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14523 * doc/tm.texi: Regenerated.
14524 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14525 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14526 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14527 mmix_output_register_setting): Use [u]int64_t in prototypes.
14528 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14529 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14530 mmix_output_octa, mmix_output_shifted_value): Adjust.
14531 (mmix_intval): Adjust. Remove unreachable case.
14532 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14533
14534 2014-05-26 Richard Biener <rguenther@suse.de>
14535
14536 * configure.ac: Drop __int64 type check. Insist that we
14537 found uint64_t and int64_t.
14538 * hwint.h (HOST_BITS_PER___INT64): Remove.
14539 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14540 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14541 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14542 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14543 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14544 for dst_q_src_df_rms_cdt.
14545 * configure: Regenerate.
14546 * config.in: Likewise.
14547
14548 2014-05-26 Michael Tautschnig <mt@debian.org>
14549
14550 PR target/61249
14551 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14552 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14553
14554 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14555
14556 PR rtl-optimization/61278
14557 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14558
14559 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14560
14561 PR rtl-optimization/61220
14562 Part of PR rtl-optimization/61225
14563 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14564 insn; skip split_edge for a block with only one successor.
14565
14566 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14567
14568 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14569 for variables.
14570
14571 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14572
14573 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14574 (update_vtable_references): New function.
14575 (function_and_variable_visibility): Rewrite also vtable initializers.
14576 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14577
14578 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14579
14580 * ggc.h (ggc_grow): New function.
14581 * ggc-none.c (ggc_grow): New function.
14582 * ggc-page.c (ggc_grow): Likewise.
14583
14584 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14585
14586 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14587 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14588 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14589 varpool_externally_visible_p, can_replace_by_local_alias,
14590 update_visibility_by_resolution_info, function_and_variable_visibility,
14591 pass_data_ipa_function_and_variable_visibility,
14592 make_pass_ipa_function_and_variable_visibility,
14593 whole_program_function_and_variable_visibility,
14594 pass_data_ipa_whole_program_visibility,
14595 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14596 * cgraph.h (cgraph_local_node_p): Declare.
14597 * ipa-visibility.c: New file.
14598 * Makefile.in (OBJS): Add ipa-visiblity.o
14599
14600 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14601
14602 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14603 that var decl is available.
14604
14605 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14606
14607 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14608 symtab_node pointer.
14609 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14610 (find_decls_types_r): Do not walk COMDAT_GROUP.
14611 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14612 * varasm.c (make_decl_one_only): Use set_comdat_group;
14613 create node if needed.
14614 * ipa-inline-transform.c (save_inline_function_body): Update
14615 way we decl->symtab mapping.
14616 * symtab.c (symtab_hash, hash_node, eq_node
14617 symtab_insert_node_to_hashtable): Remove.
14618 (symtab_register_node): Update.
14619 (symtab_unregister_node): Update.
14620 (symtab_get_node): Reimplement as inline function.
14621 (symtab_add_to_same_comdat_group): Update.
14622 (symtab_dissolve_same_comdat_group_list): Update.
14623 (dump_symtab_base): Update.
14624 (verify_symtab_base): Update.
14625 (symtab_make_decl_local): Update.
14626 (fixup_same_cpp_alias_visibility): Update.
14627 (symtab_nonoverwritable_alias): Update.
14628 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14629 * ipa.c (update_visibility_by_resolution_info): UPdate.
14630 * bb-reorder.c: Include cgraph.h
14631 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14632 with comdat groups.
14633 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14634 * cgraph.c (cgraph_get_create_node): Update.
14635 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14636 and comdat_group_.
14637 (symtab_get_node): Make inline.
14638 (symtab_insert_node_to_hashtable): Remove.
14639 (symtab_can_be_discarded): Update.
14640 (decl_comdat_group): New function.
14641 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14642 Update.
14643 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14644 comdat group name.
14645 (read_comdat_group): New function.
14646 (input_node, input_varpool_node): Use it.
14647 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14648 comdat groups.
14649 * mips.c (mips_start_unique_function): Likewise.
14650 (ix86_code_end): Likewise.
14651 (rs6000_code_end): Likweise.
14652 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14653
14654 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14655
14656 * gengtype-state.c (fatal_reading_state): Bring offline.
14657 * optabs.c (widening_optab_handler): Bring offline.
14658 * optabs.h (widening_optab_handler): Likewise.
14659 * final.c (get_attr_length_1): Likewise.
14660
14661 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14662
14663 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14664
14665 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14666
14667 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14668 (ppc440-compare): Include shift with dot.
14669 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14670 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14671 without dot.
14672 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14673 without dot.
14674 (e6500_sfx2): Include it.
14675 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14676 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14677 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14678 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14679 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14680 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14681 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14682 *lshiftrt_internal1le, *lshiftrt_internal1be,
14683 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14684 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14685 *rotldi3_internal10le, *rotldi3_internal10be,
14686 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14687 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14688 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14689 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14690 define_insns): Use type "shift" in the appropriate alternatives.
14691
14692 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14693
14694 * config/rs6000/rs6000.md (type): Add "logical". Delete
14695 "fast_compare".
14696 (dot): Adjust comment.
14697 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14698 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14699 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14700 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14701 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14702 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14703 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14704 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14705
14706 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14707 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14708 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14709 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14710 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14711 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14712 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14713 * config/rs6000/8540.md (ppc8540_su): Adjust.
14714 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14715 cell-cmp-microcoded): Adjust.
14716 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14717 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14718 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14719 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14720 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14721 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14722 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14723 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14724 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14725 Adjust.
14726 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14727 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14728 Adjust. Adjust comment.
14729 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14730 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14731
14732 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14733
14734 * config/rs6000/rs6000.md (type): Add "add".
14735 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14736 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14737 define_insns): Use it.
14738 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14739
14740 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14741 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14742 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14743 * config/rs6000/601.md (ppc601-integer): Adjust.
14744 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14745 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14746 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14747 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14748 * config/rs6000/8540.md (ppc8540_su): Adjust.
14749 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14750 cell-cmp-microcoded): Adjust.
14751 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14752 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14753 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14754 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14755 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14756 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14757 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14758 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14759 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14760 Adjust.
14761 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14762 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14763 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14764 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14765
14766 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14767
14768 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14769 "delayed_compare", "var_delayed_compare".
14770 (var_shift): New attribute.
14771 (cell_micro): Adjust.
14772 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14773 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14774 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14775 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14776 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14777 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14778 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14779 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14780 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14781 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14782 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14783 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14784 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14785 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14786 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14787 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14788 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14789 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14790 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14791 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14792 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14793 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14794 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14795 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14796 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14797
14798 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14799 * config/rs6000/440.md (ppc440-integer): Adjust.
14800 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14801 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14802 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14803 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14804 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14805 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14806 * config/rs6000/8540.md (ppc8540_su): Adjust.
14807 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14808 cell-cmp-microcoded): Adjust.
14809 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14810 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14811 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14812 e500mc64_delayed): Adjust.
14813 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14814 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14815 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14816 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14817 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14818 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14819 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14820 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14821 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14822 Adjust comment.
14823 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14824 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14825
14826 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14827
14828 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14829 (bits): New mode_attr.
14830 (idiv_ldiv): Delete mode_attr.
14831 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14832 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14833 rs6000_adjust_priority, is_nonpipeline_insn,
14834 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14835
14836 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14837 * config/rs6000/440.md (ppc440-idiv): Adjust.
14838 * config/rs6000/476.md (ppc476-idiv): Adjust.
14839 * config/rs6000/601.md (ppc601-idiv): Adjust.
14840 * config/rs6000/603.md (ppc603-idiv): Adjust.
14841 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14842 ppc620-ldiv): Adjust.
14843 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14844 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14845 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14846 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14847 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14848 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14849 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14850 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14851 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14852 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14853 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14854 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14855 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14856 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14857 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14858 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14859 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14860 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14861
14862 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14863
14864 * config/rs6000/rs6000.md (type): Delete "insert_word",
14865 "insert_dword". Add "insert".
14866 (size): Update comment.
14867 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14868 insn_must_be_first_in_group): Adjust.
14869 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14870 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14871 *insvsi_internal6, insvdi_internal): Adjust.
14872
14873 * config/rs6000/40x.md (ppc403-integer): Adjust.
14874 * config/rs6000/440.md (ppc440-integer): Adjust.
14875 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14876 * config/rs6000/601.md (ppc601-integer): Adjust.
14877 * config/rs6000/603.md (ppc603-integer): Adjust.
14878 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14879 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14880 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14881 * config/rs6000/8540.md (ppc8540_su): Adjust.
14882 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14883 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14884 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14885 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14886 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14887 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14888 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14889 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14890 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14891 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14892 * config/rs6000/power7.md (power7-integer): Adjust.
14893 * config/rs6000/power8.md (power8-1cyc): Adjust.
14894 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14895 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14896
14897 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14898
14899 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14900 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14901 (size): New attribute.
14902 (dot): New attribute.
14903 (cell_micro): Adjust.
14904 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14905 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14906 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14907 umuldi3_highpart): Adjust.
14908 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14909 rs6000_adjust_priority, is_nonpipeline_insn,
14910 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14911
14912 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14913 ppc405-imul3): Adjust.
14914 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14915 * config/rs6000/476.md (ppc476-imul): Adjust.
14916 * config/rs6000/601.md (ppc601-imul): Adjust.
14917 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14918 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14919 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14920 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14921 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14922 Adjust.
14923 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14924 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14925 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14926 cell-imul): Adjust.
14927 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14928 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14929 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14930 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14931 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14932 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14933 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14934 power4-lmul, power4-imul, power4-imul3): Adjust.
14935 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14936 power5-lmul, power5-imul, power5-imul3): Adjust.
14937 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14938 power6-lmul, power6-imul, power6-imul3): Adjust.
14939 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14940 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14941
14942 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14943 rs64a-lmul): Adjust.
14944 * config/rs6000/titan.md (titan_imul): Adjust.
14945
14946 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14947
14948 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14949 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14950 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14951 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14952 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14953 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14954 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14955 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14956 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14957 * config/rs6000/titan.md: Delete nonsensical comment.
14958 (titan_imul): Add type imul3.
14959 (titan_mulhw): Remove type imul3; add type halfmul.
14960
14961 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14962
14963 * config/rs6000/rs6000.md (type): Reorder, reformat.
14964
14965 2014-05-23 Martin Jambor <mjambor@suse.cz>
14966
14967 PR tree-optimization/53787
14968 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14969 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14970 analysis_done, update all uses.
14971 * ipa-prop.c: Include domwalk.h
14972 (param_analysis_info): Removed.
14973 (param_aa_status): New type.
14974 (ipa_bb_info): Likewise.
14975 (func_body_info): Likewise.
14976 (ipa_get_bb_info): New function.
14977 (aa_overwalked): Likewise.
14978 (find_dominating_aa_status): Likewise.
14979 (parm_bb_aa_status_for_bb): Likewise.
14980 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14981 (load_from_unmodified_param): Accept func_body_info as a parameter
14982 instead of parms_ainfo.
14983 (parm_ref_data_preserved_p): Changed to use new param AA info.
14984 (parm_ref_data_pass_through_p): Likewise.
14985 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14986 (compute_complex_assign_jump_func): Changed to use new param AA info.
14987 (compute_complex_ancestor_jump_func): Likewise.
14988 (ipa_compute_jump_functions_for_edge): Likewise.
14989 (ipa_compute_jump_functions): Removed.
14990 (ipa_compute_jump_functions_for_bb): New function.
14991 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14992 declarations down.
14993 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14994 and info, moved variable declarations down.
14995 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14996 node and info.
14997 (ipa_analyze_stmt_uses): Likewise.
14998 (ipa_analyze_params_uses): Removed.
14999 (ipa_analyze_params_uses_in_bb): New function.
15000 (ipa_analyze_controlled_uses): Likewise.
15001 (free_ipa_bb_info): Likewise.
15002 (analysis_dom_walker): New class.
15003 (ipa_analyze_node): Handle node-specific forbidden analysis,
15004 initialize and free func_body_info, use dominator walker.
15005 (ipcp_modif_dom_walker): New class.
15006 (ipcp_transform_function): Create and free func_body_info, use
15007 ipcp_modif_dom_walker, moved a lot of functionality there.
15008
15009 2014-05-23 Marek Polacek <polacek@redhat.com>
15010 Jakub Jelinek <jakub@redhat.com>
15011
15012 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
15013 * gcc.c (sanitize_spec_function): Likewise.
15014 * convert.c (convert_to_integer): Include "ubsan.h". Add
15015 floating-point to integer instrumentation.
15016 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15017 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15018 SANITIZE_NONDEFAULT.
15019 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15020 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15021 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15022 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15023 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15024 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15025 float/double/long double.
15026 (ubsan_instrument_float_cast): New function.
15027 * ubsan.h (ubsan_instrument_float_cast): Declare.
15028
15029 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15030
15031 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15032 predicate.
15033 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15034 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15035 Adjust for tailcalling through registers.
15036 * config/aarch64/aarch64.h (enum reg_class): New caller save
15037 register class.
15038 (REG_CLASS_NAMES): Likewise.
15039 (REG_CLASS_CONTENTS): Likewise.
15040 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15041 Allow tailcalling without decls.
15042
15043 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15044
15045 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15046 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15047
15048 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15049 gsi, and variables v_* to v*.
15050
15051 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15052
15053 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15054
15055 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15056
15057 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15058 * omp-low.c: Update accordingly.
15059
15060 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15061 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15062 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15063 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15064 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15065 GF_OMP_TARGET_KIND_UPDATE.
15066
15067 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15068 Explicitly enumerate the expected region types.
15069
15070 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15071
15072 PR other/56955
15073 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15074 documentation; the old documentation didn't clearly state the
15075 constraints on the contents of the pointed-to storage.
15076
15077 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15078
15079 Fix bootstrap error on ia64
15080 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15081 Return default value.
15082
15083 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15084
15085 PR tree-optimization/54733
15086 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15087 (CMPNOP): Define.
15088 (find_bswap_or_nop_load): New.
15089 (find_bswap_1): Renamed to ...
15090 (find_bswap_or_nop_1): This. Also add support for memory source.
15091 (find_bswap): Renamed to ...
15092 (find_bswap_or_nop): This. Also add support for memory source and
15093 detection of bitwise operations equivalent to load in target
15094 endianness.
15095 (execute_optimize_bswap): Likewise. Also move its leading comment back
15096 in place and split statement transformation into ...
15097 (bswap_replace): This.
15098
15099 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15100
15101 PR rtl-optimization/61215
15102 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15103 simplify_gen_subreg until final substitution.
15104
15105 2014-05-23 Alan Modra <amodra@gmail.com>
15106
15107 PR target/61231
15108 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15109 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15110 Use "Y" constraint rather than "m".
15111
15112 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15113
15114 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15115 define.
15116 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15117 New function declaration.
15118 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15119 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15120 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15121 (aarch64_init_builtins) : Initialize builtins
15122 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15123 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15124 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15125 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15126 and __builtins_aarch64_set_fpsr.
15127 (aarch64_atomic_assign_expand_fenv): New function.
15128 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15129 (get_fpcr) : Likewise.
15130 (set_fpsr) : Likewise.
15131 (get_fpsr) : Likewise.
15132 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15133 and UNSPECV_SET_FPSR.
15134 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15135 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15136 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15137
15138 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15139
15140 PR rtl-optimization/60969
15141 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15142 constraints. Set up mem cost for NO_REGS case.
15143
15144 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15145
15146 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15147
15148 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15149
15150 * config/darwin.c: Include "lto-section-names.h".
15151 (LTO_SEGMENT_NAME): Don't define.
15152 * config/i386/winnt.c: Include "lto-section-names.h".
15153 * lto-streamer.c: Include "lto-section-names.h".
15154 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15155 * lto-wrapper.c: Include "lto-section-names.h".
15156 (LTO_SECTION_NAME_PREFIX): Don't define.
15157 * lto-section-names.h: New file.
15158 * cgraphunit.c: Include "lto-section-names.h".
15159
15160 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15161
15162 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15163
15164 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15165
15166 PR target/61208
15167 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15168
15169 2014-05-22 Nick Clifton <nickc@redhat.com>
15170
15171 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15172
15173 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15174
15175 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15176 -> (T)A transformation to integer types.
15177
15178 2014-05-22 Teresa Johnson <tejohnson@google.com>
15179
15180 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15181 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15182 (gcov_rewrite): Use gcov_nonruntime_assert.
15183 (gcov_open): Ditto.
15184 (gcov_write_words): Ditto.
15185 (gcov_write_length): Ditto.
15186 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15187 gcc_assert from IN_LIBGCOV code.
15188 (gcov_read_summary): Use gcov_error to flag profile corruption.
15189 (gcov_sync): Use gcov_nonruntime_assert.
15190 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15191 (gcov_histo_index): Use gcov_nonruntime_assert.
15192 (static void gcov_histogram_merge): Ditto.
15193 (compute_working_sets): Ditto.
15194 * gcov-io.h (gcov_nonruntime_assert): Define.
15195 (gcov_error): Define for !IN_LIBGCOV
15196
15197 2014-05-22 Richard Biener <rguenther@suse.de>
15198
15199 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15200 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15201 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15202 and deallocation site.
15203 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15204 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15205 passing through the incoming points-to set.
15206 (handle_lhs_call): Use flags argument instead of recomputing it.
15207 (find_func_aliases_for_call): Call handle_lhs_call with proper
15208 call return flags.
15209
15210 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15211
15212 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15213 all padding bits in REAL_VALUE_TYPE are cleared.
15214
15215 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15216
15217 Cleanup and improve multipass_dfa_lookahead_guard
15218 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15219 (core2i7_first_cycle_multipass_begin,)
15220 (core2i7_first_cycle_multipass_issue,)
15221 (core2i7_first_cycle_multipass_backtrack): Update signature.
15222 * config/ia64/ia64.c
15223 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15224 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15225 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15226 hook definition.
15227 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15228 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15229 values.
15230 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15231 return values.
15232 * doc/tm.texi: Regenerate.
15233 * doc/tm.texi.in
15234 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15235 * haifa-sched.c (ready_try): Make signed to allow negative values.
15236 (rebug_ready_list_1): Update.
15237 (choose_ready): Simplify.
15238 (sched_extend_ready_list): Update.
15239
15240 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15241
15242 Remove IA64 speculation tweaking flags
15243 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15244 speculation tuning flags.
15245 (msched-prefer-non-data-spec-insns,)
15246 (msched-prefer-non-control-spec-insns): Obsolete options.
15247 * haifa-sched.c (choose_ready): Remove handling of
15248 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15249 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15250 and PREFER_NON_DATA_SPEC.
15251 * sel-sched.c (process_spec_exprs): Remove handling of
15252 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15253
15254 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15255
15256 Improve scheduling debug output
15257 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15258 (advance_one_cycle): Update.
15259 (schedule_insn, queue_to_ready): Add debug printouts.
15260 (debug_ready_list_1): New static function.
15261 (debug_ready_list): Update.
15262 (max_issue): Add debug printouts.
15263 (dump_insn_stream): New static function.
15264 (schedule_block): Use it. Also better indent printouts.
15265
15266 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15267
15268 Fix sched_insn debug counter
15269 * haifa-sched.c (schedule_insn): Update.
15270 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15271 (save_backtrack_point, restore_backtrack_point): Update.
15272 (first_nonscheduled_insn): New static function.
15273 (queue_to_ready, choose_ready): Use it.
15274 (schedule_block): Init nonscheduled_insns_begin.
15275 (sched_emit_insn): Update.
15276
15277
15278 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15279
15280 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15281 to GENERAL_REGS.
15282 (aarch64_secondary_reload) : LikeWise.
15283 (aarch64_class_max_nregs) : Remove CORE_REGS.
15284 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15285 (REG_CLASS_NAMES) : Likewise.
15286 (REG_CLASS_CONTENTS) : LikeWise.
15287 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15288
15289 2014-05-21 Guozhi Wei <carrot@google.com>
15290
15291 PR target/61202
15292 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15293 constraint.
15294 (vqdmulhq_n_s16): Likewise.
15295
15296 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15297
15298 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15299
15300 2014-05-21 Marek Polacek <polacek@redhat.com>
15301
15302 PR sanitizer/61272
15303 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15304
15305 2014-05-21 Martin Jambor <mjambor@suse.cz>
15306
15307 * doc/invoke.texi (Optimize Options): Document parameters
15308 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15309 ipa-cp-array-index-hint-bonus.
15310
15311 2014-05-21 Mark Wielaard <mjw@redhat.com>
15312
15313 PR debug/16063
15314 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15315 version >= 3 or not strict DWARF.
15316 * langhooks.h (struct lang_hooks_for_types): Add
15317 enum_underlying_base_type.
15318 * langhooks.c (lhd_enum_underlying_base_type): New function.
15319 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15320 enum_underlying_base_type.
15321 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15322 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15323 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15324
15325 2014-05-21 Richard Biener <rguenther@suse.de>
15326
15327 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15328
15329 2014-05-21 John Marino <gnugcc@marino.st>
15330
15331 * config.gcc (*-*-dragonfly*): New target.
15332 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15333 * configure: Regenerate.
15334 * config/dragonfly-stdint.h: New.
15335 * config/dragonfly.h: New.
15336 * config/dragonfly.opt: New.
15337 * config/i386/dragonfly.h: New.
15338 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15339
15340 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15341
15342 * tree.def (VOID_CST): New.
15343 * tree-core.h (TI_VOID): New.
15344 * tree.h (void_node): New.
15345 * tree.c (tree_node_structure_for_code, tree_code_size)
15346 (iterative_hash_expr): Handle VOID_CST.
15347 (build_common_tree_nodes): Initialize void_node.
15348
15349 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15350
15351 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15352 functions.
15353 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15354
15355 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15356 more places.
15357
15358 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15359 flag_reorder_blocks_and_partition.
15360 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15361
15362 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15363
15364 PR target/54236
15365 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15366 constraints.
15367 (*addc_r_t): Add new insn_and_split.
15368
15369 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15370
15371 PR middle-end/61252
15372 * omp-low.c (handle_simd_reference): New function.
15373 (lower_rec_input_clauses): Use it. Defer adding reference
15374 initialization even for reduction without placeholder if in simd,
15375 handle it properly later on.
15376
15377 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15378
15379 PR tree-optimization/60899
15380 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15381 assume all static symbols will have definition wile parsing and
15382 check the do have definition later in compilation; check that
15383 variable referring symbol will be output before concluding that
15384 reference is safe; be conservative for referring local statics;
15385 be more precise about when comdat is output in other partition.
15386
15387 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15388
15389 PR bootstrap/60984
15390 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15391 parameter.
15392 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15393 (ipa_inline): Loop inline_to_all_callers until no more aliases
15394 are removed.
15395
15396 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15397
15398 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15399 set writeonly flag only for vars actually written to.
15400
15401 2014-05-20 Dehao Chen <dehao@google.com>
15402
15403 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15404 and callee count to get clone count.
15405 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15406 count in copy_body.
15407
15408 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15409
15410 PR rtl-optimization/61243
15411 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15412
15413 2014-05-20 Xinliang David Li <davidxl@google.com>
15414
15415 * cgraphunit.c (walk_polymorphic_call_targets): Add
15416 dbgcnt and fopt-info support.
15417 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15418 * ipa-devirt.c (ipa_devirt): Ditto.
15419 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15420 * ipa.c (walk_polymorphic_call_targets): Ditto.
15421 * gimple-fold.c (fold_gimple_assign): Ditto.
15422 (gimple_fold_call): Ditto.
15423 * dbgcnt.def: New counter.
15424
15425 2014-05-20 DJ Delorie <dj@redhat.com>
15426
15427 * config/msp430/msp430.md (split): Don't allow subregs when
15428 splitting SImode adds.
15429 (andneghi): Fix subtraction logic.
15430 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15431
15432 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15433
15434 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15435 symbols.
15436 * except.c (switch_to_exception_section, resolve_unique_section,
15437 get_named_text_section, default_function_rodata_section,
15438 align_variable, get_block_for_decl, default_section_type_flags):
15439 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15440 * symtab.c (symtab_add_to_same_comdat_group,
15441 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15442 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15443 Likewise.
15444 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15445 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15446 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15447 (c6x_function_in_section_p): Likewise.
15448 * config/darwin.c (machopic_select_section): Likewise.
15449 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15450 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15451 * config/mep/mep.c (mep_select_section): LIkewise.
15452 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15453
15454 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15455
15456 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15457 EH region of calls to pure functions that can throw an exception.
15458 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15459 (copy_reference_ops_from_call): Also copy the EH region of the call if
15460 it can throw an exception.
15461
15462 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15463
15464 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15465 nested VEC_SELECTs that are inverses of each other.
15466
15467 2014-05-20 Richard Biener <rguenther@suse.de>
15468
15469 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15470 (extract_and_process_scc_for_name): not here.
15471 (cond_dom_walker::before_dom_children): Only process
15472 stmts that end the BB in interesting ways.
15473 (run_scc_vn): Mark param uses as visited.
15474
15475 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15476
15477 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15478 arm_restrict_it.
15479
15480 2014-05-20 Nick Clifton <nickc@redhat.com>
15481
15482 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15483 (msp430_gimplify_va_arg_expr): New function.
15484 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15485
15486 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15487 operand 0 in order to prevent confusion about the number of
15488 registers involved.
15489
15490 2014-05-20 Richard Biener <rguenther@suse.de>
15491
15492 PR tree-optimization/61221
15493 * tree-ssa-pre.c (el_to_update): Remove.
15494 (eliminate_dom_walker::before_dom_children): Handle released
15495 VDEFs by value-numbering them to the associated VUSE. Update
15496 stmt immediately for substituted call address.
15497 (eliminate): Remove delayed stmt updating code.
15498 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15499 possibly late re-numbered vuses.
15500 (vn_reference_lookup_2): Adjust.
15501 (vn_reference_lookup_pieces): Likewise.
15502 (vn_reference_lookup): Likewise.
15503
15504 2014-05-20 Richard Biener <rguenther@suse.de>
15505
15506 * config.gcc: Remove need_64bit_hwint.
15507 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15508 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15509 it to be true.
15510 * config.in: Regenerate.
15511 * configure: Likewise.
15512
15513 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15514
15515 * doc/extend.texi: Create Label Attributes section,
15516 move all label attributes into it and reference it.
15517
15518 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15519
15520 * arm.c (thumb1_reorg): When scanning backwards skip anything
15521 that's not a proper insn.
15522
15523 2014-05-19 Richard Biener <rguenther@suse.de>
15524
15525 PR tree-optimization/61221
15526 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15527 Do nothing for unreachable blocks.
15528 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15529 Improve unreachability detection.
15530
15531 2014-05-19 Richard Biener <rguenther@suse.de>
15532
15533 PR tree-optimization/61209
15534 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15535
15536 2014-05-19 Nick Clifton <nickc@redhat.com>
15537
15538 * except.c (init_eh): Fix computation of builtin setjmp buffer
15539 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15540
15541 2014-05-19 Richard Biener <rguenther@suse.de>
15542
15543 PR tree-optimization/61184
15544 * tree-vrp.c (is_negative_overflow_infinity): Use
15545 TREE_OVERFLOW_P and do that check first.
15546 (is_positive_overflow_infinity): Likewise.
15547 (is_overflow_infinity): Likewise.
15548 (vrp_operand_equal_p): Properly treat operands with
15549 differing overflow as not equal.
15550
15551 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15552
15553 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15554 shift simplification where it was intended.
15555
15556 2014-05-19 Christian Bruel <christian.bruel@st.com>
15557
15558 PR target/61195
15559 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15560
15561 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15562
15563 PR target/61084
15564 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15565 than wide_int.
15566
15567 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15568
15569 * reg-notes.def (CROSSING_JUMP): Likewise.
15570 * rtl.h (rtx_def): Update comment for jump flag.
15571 (CROSSING_JUMP_P): Define.
15572 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15573 of a REG_CROSSING_JUMP note.
15574 * cfghooks.c (tidy_fallthru_edges): Likewise.
15575 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15576 * emit-rtl.c (try_split): Likewise.
15577 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15578 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15579 * jump.c (redirect_jump_2): Likewise.
15580 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15581 (relax_delay_slots): Likewise.
15582 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15583 (bbit_di): Likewise.
15584 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15585 * config/sh/sh.md (jump_compact): Likewise.
15586 * bb-reorder.c (rotate_loop): Likewise.
15587 (pass_duplicate_computed_gotos::execute): Likewise.
15588 (add_reg_crossing_jump_notes): Rename to...
15589 (update_crossing_jump_flags): ...this.
15590 (pass_partition_blocks::execute): Update accordingly.
15591
15592 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15593
15594 * tree.h: Remove extraneous template <>.
15595
15596 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15597
15598 * ipa.c (symtab_remove_unreachable_nodes): Remove
15599 symbol from comdat group if its body was eliminated.
15600 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15601 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15602 (symtab_unregister_node): ... this one.
15603 (verify_symtab_base): More strict checking of comdats.
15604 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15605
15606 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15607
15608 * tree-pass.h (make_pass_ipa_comdats): New pass.
15609 * timevar.def (TV_IPA_COMDATS): New timevar.
15610 * passes.def (pass_ipa_comdats): Add.
15611 * Makefile.in (OBJS): Add ipa-comdats.o
15612 * ipa-comdats.c: New file.
15613
15614 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15615
15616 * ipa.c (update_visibility_by_resolution_info): New function.
15617 (function_and_variable_visibility): Use it.
15618
15619 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15620
15621 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15622 New functions.
15623 (FOR_EACH_DEFINED_SYMBOL): New macro.
15624 (varpool_first_static_initializer, varpool_next_static_initializer,
15625 varpool_first_defined_variable, varpool_next_defined_variable):
15626 Fix comments.
15627 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15628
15629 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15630
15631 * ggc-page.c (ggc_handle_finalizers): Add comment.
15632
15633 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15634
15635 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15636 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15637 (ggc_internal_cleared_alloc): Likewise.
15638 * ggc-page.c (finalizer): New class.
15639 (vec_finalizer): Likewise.
15640 (globals::finalizers): New member.
15641 (globals::vec_finalizers): Likewise.
15642 (ggc_internal_alloc): Record the finalizer if any for the block being
15643 allocated.
15644 (ggc_handle_finalizers): New function.
15645 (ggc_collect): Call ggc_handle_finalizers.
15646 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15647 finalizer.
15648 (ggc_internal_cleared_alloc): Likewise.
15649 (finalize): New function.
15650 (need_finalization_p): Likewise.
15651 (ggc_alloc): Install the type's destructor as the finalizer if it
15652 might do something.
15653 (ggc_cleared_alloc): Likewise.
15654 (ggc_vec_alloc): Likewise.
15655 (ggc_cleared_vec_alloc): Likewise.
15656
15657 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15658
15659 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15660
15661 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15662
15663 * alias.c (record_alias_subset): Adjust.
15664 * bitmap.c (bitmap_element_allocate): Likewise.
15665 (bitmap_gc_alloc_stat): Likewise.
15666 * cfg.c (init_flow): Likewise.
15667 (alloc_block): Likewise.
15668 (unchecked_make_edge): Likewise.
15669 * cfgloop.c (alloc_loop): Likewise.
15670 (flow_loops_find): Likewise.
15671 (rescan_loop_exit): Likewise.
15672 * cfgrtl.c (init_rtl_bb_info): Likewise.
15673 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15674 (cgraph_allocate_node): Likewise.
15675 (cgraph_create_edge_1): Likewise.
15676 (cgraph_allocate_init_indirect_info): Likewise.
15677 * cgraphclones.c (cgraph_clone_edge): Likewise.
15678 * cgraphunit.c (add_asm_node): Likewise.
15679 (init_lowered_empty_function): Likewise.
15680 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15681 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15682 (alpha_use_linkage): Likewise.
15683 * config/arc/arc.c (arc_init_machine_status): Likewise.
15684 * config/arm/arm.c (arm_init_machine_status): Likewise.
15685 * config/avr/avr.c (avr_init_machine_status): Likewise.
15686 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15687 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15688 * config/cris/cris.c (cris_init_machine_status): Likewise.
15689 * config/darwin.c (machopic_indirection_name): Likewise.
15690 (darwin_build_constant_cfstring): Likewise.
15691 (darwin_enter_string_into_cfstring_table): Likewise.
15692 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15693 * config/frv/frv.c (frv_init_machine_status): Likewise.
15694 * config/i386/i386.c (get_dllimport_decl): Likewise.
15695 (ix86_init_machine_status): Likewise.
15696 (assign_386_stack_local): Likewise.
15697 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15698 (i386_pe_maybe_record_exported_symbol): Likewise.
15699 (i386_pe_record_stub): Likewise.
15700 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15701 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15702 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15703 (m32c_note_pragma_address): Likewise.
15704 * config/mep/mep.c (mep_init_machine_status): Likewise.
15705 (mep_note_pragma_flag): Likewise.
15706 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15707 (mips16_local_alias): Likewise.
15708 (mips_init_machine_status): Likewise.
15709 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15710 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15711 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15712 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15713 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15714 * config/pa/pa.c (pa_init_machine_status): Likewise.
15715 (pa_get_deferred_plabel): Likewise.
15716 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15717 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15718 (rs6000_init_machine_status): Likewise.
15719 (output_toc): Likewise.
15720 * config/s390/s390.c (s390_init_machine_status): Likewise.
15721 * config/score/score.c (score_output_external): Likewise.
15722 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15723 * config/spu/spu.c (spu_init_machine_status): Likewise.
15724 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15725 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15726 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15727 * coverage.c (coverage_end_function): Likewise.
15728 * dbxout.c (dbxout_init): Likewise.
15729 * doc/gty.texi: Don't mention variable_size attribute.
15730 * dwarf2cfi.c (new_cfi): Adjust.
15731 (new_cfi_row): Likewise.
15732 (copy_cfi_row): Likewise.
15733 (create_cie_data): Likewise.
15734 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15735 (new_loc_descr): Likewise.
15736 (find_AT_string_in_table): Likewise.
15737 (add_addr_table_entry): Likewise.
15738 (new_die): Likewise.
15739 (add_var_loc_to_decl): Likewise.
15740 (clone_die): Likewise.
15741 (clone_as_declaration): Likewise.
15742 (break_out_comdat_types): Likewise.
15743 (new_loc_list): Likewise.
15744 (add_loc_descr_to_each): Likewise.
15745 (add_location_or_const_value_attribute): Likewise.
15746 (add_linkage_name): Likewise.
15747 (lookup_filename): Likewise.
15748 (dwarf2out_var_location): Likewise.
15749 (new_line_info_table): Likewise.
15750 (dwarf2out_init): Likewise.
15751 (mem_loc_descriptor): Likewise.
15752 (loc_descriptor): Likewise.
15753 (add_const_value_attribute): Likewise.
15754 (tree_add_const_value_attribute): Likewise.
15755 (comp_dir_string): Likewise.
15756 (dwarf2out_vms_debug_main_pointer): Likewise.
15757 (string_cst_pool_decl): Likewise.
15758 * emit-rtl.c (set_mem_attrs): Likewise.
15759 (get_reg_attrs): Likewise.
15760 (start_sequence): Likewise.
15761 (init_emit): Likewise.
15762 (init_emit_regs): Likewise.
15763 * except.c (init_eh_for_function): Likewise.
15764 (gen_eh_region): Likewise.
15765 (gen_eh_region_catch): Likewise.
15766 (gen_eh_landing_pad): Likewise.
15767 (add_call_site): Likewise.
15768 * function.c (add_frame_space): Likewise.
15769 (insert_temp_slot_address): Likewise.
15770 (assign_stack_temp_for_type): Likewise.
15771 (get_hard_reg_initial_val): Likewise.
15772 (allocate_struct_function): Likewise.
15773 (prepare_function_start): Likewise.
15774 (types_used_by_var_decl_insert): Likewise.
15775 * gengtype.c (variable_size_p): Remove function.
15776 (enum alloc_quantity): Remove enum.
15777 (write_typed_alloc_def): Remove function.
15778 (write_typed_struct_alloc_def): Likewise.
15779 (write_typed_typedef_alloc_def): Likewise.
15780 (write_typed_alloc_defns): Likewise.
15781 (main): Adjust.
15782 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15783 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15784 * ggc.h (ggc_alloc): new function.
15785 (ggc_cleared_alloc): Likewise.
15786 (ggc_vec_alloc): Template on type of vector element, and remove
15787 element size argument.
15788 (ggc_cleared_vec_alloc): Likewise.
15789 * gimple.c (gimple_build_omp_for): Adjust.
15790 (gimple_copy): Likewise.
15791 * ipa-cp.c (get_replacement_map): Likewise.
15792 (find_aggregate_values_for_callers_subset): Likewise.
15793 (known_aggs_to_agg_replacement_list): Likewise.
15794 * ipa-devirt.c (get_odr_type): Likewise.
15795 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15796 (read_agg_replacement_chain): Likewise.
15797 * loop-iv.c (get_simple_loop_desc): Likewise.
15798 * lto-cgraph.c (input_node_opt_summary): Likewise.
15799 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15800 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15801 (input_eh_region): Likewise.
15802 (input_eh_lp): Likewise.
15803 (input_cfg): Likewise.
15804 * optabs.c (set_optab_libfunc): Likewise.
15805 (init_tree_optimization_optabs): Likewise.
15806 (set_conv_libfunc): Likewise.
15807 * passes.c (do_per_function_toporder): Likewise.
15808 * rtl.h: Don't use variable_size gty attribute.
15809 * sese.c (if_region_set_false_region): Adjust.
15810 * stringpool.c (gt_pch_save_stringpool): Likewise.
15811 * target-globals.c (save_target_globals): Likewise.
15812 * toplev.c (general_init): Likewise.
15813 * trans-mem.c (record_tm_replacement): Likewise.
15814 (split_bb_make_tm_edge): Likewise.
15815 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15816 * tree-data-ref.h (lambda_vector_new): Likewise.
15817 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15818 * tree-iterator.c (tsi_link_before): Likewise.
15819 (tsi_link_after): Likewise.
15820 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15821 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15822 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15823 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15824 * tree-ssa.c (init_tree_ssa): Adjust.
15825 * tree-ssanames.c (set_range_info): Likewise.
15826 (get_ptr_info): Likewise.
15827 (duplicate_ssa_name_ptr_info): Likewise.
15828 (duplicate_ssa_name_range_info): Likewise.
15829 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15830 (unpack_ts_fixed_cst_value_fields): Likewise.
15831 * tree.c (build_fixed): Likewise.
15832 (build_real): Likewise.
15833 (build_string): Likewise.
15834 (decl_priority_info): Likewise.
15835 (decl_debug_expr_insert): Likewise.
15836 (decl_value_expr_insert): Likewise.
15837 (decl_debug_args_insert): Likewise.
15838 (type_hash_add): Likewise.
15839 (build_omp_clause): Likewise.
15840 * ubsan.c (decl_for_type_insert): Likewise.
15841 * varasm.c (get_unnamed_section): Likewise.
15842 (get_noswitch_section): Likewise.
15843 (get_section): Likewise.
15844 (get_block_for_section): Likewise.
15845 (create_block_symbol): Likewise.
15846 (build_constant_desc): Likewise.
15847 (create_constant_pool): Likewise.
15848 (force_const_mem): Likewise.
15849 (record_tm_clone_pair): Likewise.
15850 * varpool.c (varpool_create_empty_node): Likewise.
15851
15852 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15853
15854 * dwarf2out.c (tree_add_const_value_attribute): Call
15855 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15856 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15857 instead of ggc_internal_<x>alloc_stat.
15858 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15859 (ggc_realloc): Likewise.
15860 * ggc-none.c (ggc_internal_alloc): Likewise.
15861 (ggc_internal_cleared_alloc): Likewise.
15862 * ggc-page.c: Likewise.
15863 * ggc.h (ggc_internal_alloc_stat): Likewise.
15864 (ggc_internal_alloc): Remove macro.
15865 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15866 (ggc_internal_cleared_alloc): Remove macro.
15867 (GGC_RESIZEVEC): Adjust.
15868 (ggc_resizevar): Remove macro.
15869 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15870 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15871 (ggc_internal_vec_cleared_alloc): Remove macro.
15872 (ggc_alloc_atomic_stat): Drop _stat suffix.
15873 (ggc_alloc_atomic): Remove macro.
15874 (ggc_alloc_cleared_atomic): Remove macro.
15875 (ggc_alloc_string_stat): Drop _stat suffix.
15876 (ggc_alloc_string): Remove macro.
15877 (ggc_alloc_rtx_def_stat): Adjust.
15878 (ggc_alloc_tree_node_stat): Likewise.
15879 (ggc_alloc_cleared_tree_node_stat): Likewise.
15880 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15881 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15882 * gimple.c (gimple_build_omp_for): Likewise.
15883 (gimple_copy): Likewise.
15884 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15885 * toplev.c (realloc_for_line_map): Adjust.
15886 * tree-data-ref.h (lambda_vector_new): Likewise.
15887 * tree-phinodes.c (allocate_phi_node): Likewise.
15888 * tree.c (grow_tree_vec_stat): Likewise.
15889 * vec.h (va_gc::reserve): Adjust.
15890
15891 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15892
15893 * config/microblaze/microblaze.c (break_handler): New Declaration.
15894 (microblaze_break_function_p,microblaze_is_break_handler): New.
15895 (compute_frame_size): Use microblaze_break_function_p.
15896 Add the test of break_handler.
15897 (microblaze_function_prologue) : Add the test of variable
15898 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15899 (microblaze_function_epilogue) : Add the test of break_handler.
15900 (microblaze_globalize_label) : Add the test of break_handler.
15901 Check the name by BREAK_HANDLER_NAME.
15902
15903 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15904
15905 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15906 microblaze_is_break_handler test.
15907 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15908 Use SYMBOL_REF_DECL.
15909
15910 * config/microblaze/microblaze-protos.h
15911 (microblaze_break_function_p,microblaze_is_break_handler):
15912 New Declaration.
15913
15914 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15915 new MicroBlaze break_handler functions.
15916
15917 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15918
15919 * doc/extend.texi (Size of an asm): Move node text according
15920 to its @menu entry position.
15921
15922 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15923
15924 PR tree-optimization/61140
15925 PR tree-optimization/61150
15926 PR tree-optimization/61197
15927 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15928
15929 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15930
15931 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15932
15933 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15934
15935 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15936 __SIZEOF_INT128__ is defined.
15937
15938 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15939
15940 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15941 (rs6000_delegitimize_address): Use it.
15942
15943 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15944
15945 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15946 inplace argument. Store the new address in the original MEM when true.
15947 * emit-rtl.c (change_address_1): Likewise.
15948 (adjust_address_1, adjust_automodify_address_1, offset_address):
15949 Update accordingly.
15950 * rtl.h (plus_constant): Add an inplace argument.
15951 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15952 when true. Avoid generating (plus X (const_int 0)).
15953 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15954 in-place. Pass true to plus_constant.
15955 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15956
15957 2014-05-16 Dehao Chen <dehao@google.com>
15958
15959 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15960
15961 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15962
15963 PR target/54089
15964 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15965 patterns.
15966 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15967
15968 2014-05-16 Dehao Chen <dehao@google.com>
15969
15970 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15971 optimize_function_for_size_p.
15972 * regs.h (REG_FREQ_FROM_BB): Likewise.
15973
15974 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15975
15976 PR target/51244
15977 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15978 negt_reg_operand cases.
15979 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15980 predicate.
15981 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15982
15983 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15984
15985 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15986 target variants.
15987
15988 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15989
15990 Revert:
15991 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15992
15993 * tree-cfg.c (dump_function_to_file): Dump the return type of
15994 functions, in a line to itself before the function body, mimicking
15995 the layout of a C function.
15996
15997 2014-05-16 Dehao Chen <dehao@google.com>
15998
15999 * cfghooks.c (make_forwarder_block): Use direct computation to
16000 get fall-through edge's count and frequency.
16001
16002 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
16003
16004 * config/arc/arc.c (arc_init): Fix typo in error message.
16005 * config/i386/i386.c (ix86_expand_builtin): Likewise.
16006 (split_stack_prologue_scratch_regno): Likewise.
16007 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
16008 word from error message.
16009
16010 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16011
16012 * ira-costs.c: Fix typo in comment.
16013
16014 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
16015
16016 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16017
16018 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16019
16020 * varpool.c (dump_varpool_node): Dump write-only flag.
16021 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16022 write-only flag.
16023 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16024 write-only variables.
16025 * ipa.c (process_references): New function.
16026 (set_readonly_bit): New function.
16027 (set_writeonly_bit): New function.
16028 (clear_addressable_bit): New function.
16029 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16030 fix handling of aliases.
16031 * cgraph.h (struct varpool_node): Add writeonly flag.
16032
16033 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16034
16035 PR rtl-optimization/60969
16036 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16037 Calculate costs for this case.
16038
16039 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16040
16041 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16042 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16043
16044 2014-05-16 Richard Biener <rguenther@suse.de>
16045
16046 PR tree-optimization/61194
16047 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16048 bool patterns ending in a COND_EXPR.
16049
16050 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16051
16052 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16053
16054 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16055
16056 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16057 where we were unable to cost an RTX.
16058
16059 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16060
16061 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16062 HIGH, LO_SUM.
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): Cost TRUNCATE.
16068
16069 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16070 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16071
16072 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16073 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16074
16075 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16076 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16077
16078 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16079 operators.
16080
16081 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16082 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16083
16084 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16085 DIV/MOD.
16086
16087 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16088 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16089
16090 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16091 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16092
16093 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16094 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16095
16096 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16097 rotates and shifts.
16098
16099 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16100 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16101
16102 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16103 ZERO_EXTEND and SIGN_EXTEND better.
16104
16105 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16106 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16107
16108 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16109 logical operations.
16110
16111 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16112 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16113
16114 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16115 costs when costing loads and stores to memory.
16116
16117 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16118 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16119
16120 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16121 for SET RTX.
16122
16123 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16124
16125 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16126
16127 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16128 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16129
16130 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16131 to...
16132 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16133 well formed.
16134 (aarch64_rtx_mult_cost): New.
16135 (aarch64_rtx_costs): Use it, refactor as appropriate.
16136
16137 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16138 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16139
16140 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16141 emit instructions, return number of instructions which would
16142 be emitted.
16143 (aarch64_add_constant): Update call to aarch64_build_constant.
16144 (aarch64_output_mi_thunk): Likewise.
16145 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16146 a CONST_DOUBLE.
16147
16148 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16149
16150 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16151 (TARGET_RTX_COSTS): Call it.
16152
16153 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16154
16155 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16156 (cortexa57_vector_cost): Likewise.
16157 (cortexa57_tunings): Use them.
16158
16159 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16160
16161 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16162 (cpu_addrcost_table): Use it.
16163 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16164 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16165 move it.
16166
16167 2014-05-16 Richard Biener <rguenther@suse.de>
16168
16169 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16170 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16171 (visit_phi): Ignore edges marked as not executable.
16172 (class cond_dom_walker): New.
16173 (cond_dom_walker::before_dom_children): Value-number
16174 control statements and mark successor edges as not
16175 executable if possible.
16176 (run_scc_vn): First walk all control statements in
16177 dominator order, marking edges as not executable.
16178 * tree-inline.c (copy_edges_for_bb): Be not confused
16179 about random edge flags.
16180
16181 2014-05-16 Richard Biener <rguenther@suse.de>
16182
16183 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16184
16185 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16186
16187 PR target/61193
16188 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16189 (__TM_simple_begin): Use it.
16190 (__TM_begin): Likewise.
16191
16192 2014-05-15 Martin Jambor <mjambor@suse.cz>
16193
16194 PR ipa/61085
16195 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16196 type_preserved flag when the indirect edge is polymorphic.
16197
16198 2014-05-15 Martin Jambor <mjambor@suse.cz>
16199
16200 PR tree-optimization/61090
16201 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16202 build_ref_for_model.
16203
16204 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16205
16206 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16207 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16208
16209 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16210
16211 PR tree-optimization/61158
16212 * fold-const.c (fold_binary_loc): If X is zero-extended and
16213 shiftc >= prec, make sure zerobits is all ones instead of
16214 invoking undefined behavior.
16215
16216 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16217
16218 * regcprop.h: New file.
16219 * regcprop.c (skip_debug_insn_p): New decl.
16220 (replace_oldest_value_reg): Check skip_debug_insn_p.
16221 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16222 * shrink-wrap.c: Include regcprop.h.
16223 (prepare_shrink_wrap): Call
16224 copyprop_hardreg_forward_bb_without_debug_insn.
16225
16226 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16227
16228 * shrink-wrap.h: Update comment.
16229 * shrink-wrap.c: Update comment.
16230 (next_block_for_reg): Rename to live_edge_for_reg.
16231 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16232 (move_insn_for_shrink_wrap): Split live_edge.
16233 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16234
16235 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16236
16237 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16238 Delete.
16239 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16240 * config/sparc/sparc.md (fptype_ut699): New attribute.
16241 (in_branch_delay): Return false if -mfix-ut699 is specified and
16242 fptype_ut699 is set to single.
16243 (truncdfsf2): Add fptype_ut699 attribute.
16244 (fix_truncdfsi2): Likewise.
16245 (floatsisf2): Change fptype attribute.
16246 (fix_truncsfsi2): Likewise.
16247 (negtf2_notv9): Delete.
16248 (negtf2_v9): Likewise.
16249 (negtf2_hq): New instruction.
16250 (negtf2): New instruction and splitter.
16251 (negdf2_notv9): Rewrite.
16252 (abstf2_notv9): Delete.
16253 (abstf2_hq_v9): Likewise.
16254 (abstf2_v9): Likewise.
16255 (abstf2_hq): New instruction.
16256 (abstf2): New instruction and splitter.
16257 (absdf2_notv9): Rewrite.
16258
16259 2014-05-14 Cary Coutant <ccoutant@google.com>
16260
16261 PR debug/61013
16262 * opts.c (common_handle_option): Don't special-case "-g".
16263 (set_debug_level): Default to at least level 2 with "-g".
16264
16265 2014-05-14 DJ Delorie <dj@redhat.com>
16266
16267 * config/msp430/msp430.c (msp430_builtin): Add
16268 MSP430_BUILTIN_DELAY_CYCLES.
16269 (msp430_init_builtins): Register void __delay_cycles(long long).
16270 (msp430_builtin_decl): Add it.
16271 (cg_magic_constant): New.
16272 (msp430_expand_delay_cycles): New.
16273 (msp430_expand_builtin): Call it.
16274 (msp430_print_operand_raw): Change integer printing from "int" to
16275 HOST_WIDE_INT.
16276 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16277 (delay_cycles_start): New.
16278 (delay_cycles_end): New.
16279 (delay_cycles_32): New.
16280 (delay_cycles_32x): New.
16281 (delay_cycles_16): New.
16282 (delay_cycles_16x): New.
16283 (delay_cycles_2): New.
16284 (delay_cycles_1): New.
16285 * doc/extend.texi: Document __delay_cycles().
16286
16287 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16288
16289 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16290 length attribute computation.
16291
16292 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16293
16294 PR debug/61188
16295 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16296
16297 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16298
16299 PR target/61084
16300 * config/sparc/sparc.md: Fix types of low and high in DI constant
16301 splitter. Use gen_int_mode in some other splitters.
16302
16303 2014-05-14 Martin Jambor <mjambor@suse.cz>
16304
16305 PR ipa/60897
16306 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16307
16308 2014-05-14 James Norris <jnorris@codesourcery.com>
16309
16310 * omp-low.c (expand_parallel_call): Remove shadow variable.
16311 (expand_omp_taskreg): Likewise.
16312
16313 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16314
16315 * common/config/i386/i386-common.c
16316 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16317 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16318 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16319 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16320 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16321 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16322 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16323 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16324 xsavecintrin.h, xsavesintrin.h.
16325 (x86_64-*-*): Ditto.
16326 * config/i386/clflushoptintrin.h: New.
16327 * config/i386/xsavecintrin.h: Ditto.
16328 * config/i386/xsavesintrin.h: Ditto.
16329 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16330 (bit_XSAVES): Ditto.
16331 (bit_XSAVES): Ditto.
16332 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16333 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16334 -mno-clflushopt.
16335 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16336 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16337 OPTION_MASK_ISA_XSAVES.
16338 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16339 -mxsavec, -mxsaves.
16340 (PTA_CLFLUSHOPT) Define.
16341 (PTA_XSAVEC): Ditto.
16342 (PTA_XSAVES): Ditto.
16343 (ix86_option_override_internal): Handle new options.
16344 (ix86_valid_target_attribute_inner_p): Ditto.
16345 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16346 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16347 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16348 (bdesc_special_args): Add __builtin_ia32_xsaves,
16349 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16350 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16351 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16352 (ix86_expand_builtin): Handle new builtins.
16353 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16354 (TARGET_CLFLUSHOPT_P): Ditto.
16355 (TARGET_XSAVEC): Ditto.
16356 (TARGET_XSAVEC_P): Ditto.
16357 (TARGET_XSAVES): Ditto.
16358 (TARGET_XSAVES_P): Ditto.
16359 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16360 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16361 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16362 (ANY_XRSTOR): New.
16363 (ANY_XRSTOR64): Ditto.
16364 (xrstor): Ditto.
16365 (xrstor): Change into <xrstor>.
16366 (xrstor_rex64): Change into <xrstor>_rex64.
16367 (xrstor64): Change into <xrstor>64
16368 (clflushopt): New.
16369 * config/i386/i386.opt (mclflushopt): New.
16370 (mxsavec): Ditto.
16371 (mxsaves): Ditto.
16372 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16373 xsavecintrin.h.
16374 * doc/invoke.texi: Document new options.
16375
16376 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16377
16378 PR rtl-optimization/60866
16379 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16380 Default it to -1. Pass it down to init_simplejump_data.
16381 (init_simplejump_data): New parameter old_seqno. Pass it down
16382 to get_seqno_for_a_jump.
16383 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16384 initializing new jump seqno as a last resort. Add comment.
16385 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16386 jump and pass it down to sel_init_new_insn.
16387 (sel_redirect_edge_and_branch_force): Likewise.
16388
16389 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16390
16391 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16392 shifted values to avoid build warning.
16393
16394 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16395
16396 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16397 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16398 (cfg_layout_merge_blocks): Likewise.
16399 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16400
16401 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16402
16403 PR rtl-optimization/60901
16404 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16405 bb predecessor belongs to the same scheduling region. Adjust comment.
16406
16407 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16408
16409 * doc/sourcebuild.texi: (dfp_hw): Document.
16410 (p8vector_hw): Likewise.
16411 (powerpc_eabi_ok): Likewise.
16412 (powerpc_elfv2): Likewise.
16413 (powerpc_htm_ok): Likewise.
16414 (ppc_recip_hw): Likewise.
16415 (vsx_hw): Likewise.
16416
16417 2014-05-13 Cary Coutant <ccoutant@google.com>
16418
16419 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16420
16421 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16422
16423 * gengtype-parse.c (require3): Eliminate in favor of...
16424 (require4): New.
16425 (require_template_declaration): Update to support optional single *
16426 on a type.
16427
16428 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16429 (create_user_defined_type): Handle a single level of explicit
16430 pointerness within template arguments.
16431 (struct write_types_data): Add field "kind".
16432 (filter_type_name): Handle "*" character.
16433 (write_user_func_for_structure_ptr): Require a write_types_data
16434 rather than just a prefix string, so that we can look up the kind
16435 of the wtd and use it as an index into wrote_user_func_for_ptr,
16436 ensuring that such functions are written at most once. Support
16437 subclasses by invoking the marking function of the ultimate base class.
16438 (write_user_func_for_structure_body): Require a write_types_data
16439 rather than just a prefix string, so that we can pass this to
16440 write_user_func_for_structure_ptr.
16441 (write_func_for_structure): Likewise.
16442 (ggc_wtd): Add initializer of new "kind" field.
16443 (pch_wtd): Likewise.
16444
16445 * gengtype.h (enum write_types_kinds): New.
16446 (struct type): Add field wrote_user_func_for_ptr to the "s"
16447 union member.
16448
16449 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16450
16451 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16452 instead of const_binop.
16453 (fold_binary_loc): Likewise.
16454
16455 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16456
16457 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16458 calculation to match get_ref_base_and_extent.
16459
16460 2014-05-13 Catherine Moore <clm@codesourcery.com>
16461 Sandra Loosemore <sandra@codesourcery.com>
16462
16463 * configure.ac: Fix assembly for explicit JALR relocation check.
16464 * configure: Regenerate.
16465
16466 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16467
16468 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16469 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16470 Remove associated type declarations and initialisations.
16471 (arm_expand_neon_builtin): Likewise.
16472 (neon_emit_pair_result_insn): Delete.
16473 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16474 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16475 (neon_vzip<mode>): Likewise.
16476 (neon_vuzp<mode>): Likewise.
16477
16478 2014-05-13 Richard Biener <rguenther@suse.de>
16479
16480 PR ipa/60973
16481 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16482 it needs revisiting whether the call still may be tail-called.
16483
16484 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16485
16486 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16487 * rtl.h (block_symbol): Reduce number of fields to 2.
16488 (rtx_def): Add u2.symbol_ref_flags.
16489 (SYMBOL_REF_FLAGS): Use it.
16490 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16491 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16492 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16493 Lower index of SYMBOL_REF_DATA.
16494 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16495 Print SYMBOL_REF_FLAGS at the same time.
16496 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16497
16498 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16499
16500 * rtl.def (VAR_LOCATION): Remove "i" field.
16501 * rtl.h (rtx_def): Add u2.var_location_status.
16502 (PAT_VAR_LOCATION_STATUS): Use it.
16503 (gen_rtx_VAR_LOCATION): Declare.
16504 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16505 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16506 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16507
16508 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16509
16510 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16511 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16512
16513 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16514
16515 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16516 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16517 * rtl.h (rtx_def): Add insn_uid to u2 field.
16518 (RTX_FLAG_CHECK8): Delete in favor of...
16519 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16520 (INSN_DELETED_P): Update accordingly.
16521 (INSN_UID): Use u2.insn_uid.
16522 (INSN_CHAIN_CODE_P): Define.
16523 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16524 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16525 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16526 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16527 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16528 indices accordingly.
16529 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16530 Update indices for insn-chain rtxes.
16531 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16532 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16533 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16534 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16535 * combine.c (try_combine): Likewise.
16536 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16537
16538 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16539
16540 * rtl.def (REG): Remove middle field.
16541 * rtl.h (rtx_def): Add orignal_regno to u2.
16542 (ORIGINAL_REGNO): Use it instead of field 1.
16543 (REG_ATTRS): Lower field index accordingly.
16544 * gengtype.c (adjust_field_rtx_def): Remove handling of
16545 ORIGINAL_REGNO. Move REG_ATTRS index down.
16546 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16547 code that prints the REGNO.
16548
16549 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16550
16551 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16552 GENERATOR_FILE.
16553
16554 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16555
16556 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16557
16558 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16559
16560 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16561 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16562
16563 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16564
16565 * config/aarch64/aarch64-protos.h
16566 (aarch64_hard_regno_caller_save_mode): New prototype.
16567 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16568 New function.
16569 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16570
16571 2014-05-13 Christian Bruel <christian.bruel@st.com>
16572
16573 * target.def (mode_switching): New hook vector.
16574 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16575 (mode_exit, modepriority_to_mode): Likewise.
16576 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16577 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16578 * target.h: Include tm.h and hard-reg-set.h.
16579 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16580 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16581 * doc/tm.texi Regenerate.
16582 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16583 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16584 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16585 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16586 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16587 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16588 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16589 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16590 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16591 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16592 (ix86_emit_mode_set): Hookify.
16593 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16594 Delete.
16595 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16596 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16597 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16598 (epiphany_mode_priority_to_mode): Remove declaration.
16599 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16600 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16601 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16602 Likewise.
16603 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16604 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16605 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16606
16607 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16608
16609 PR target/61060
16610 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16611 is const0_rtx, return immediately. Don't test count == 0 when
16612 it is always true.
16613
16614 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16615
16616 * Makefile.in: add shrink-wrap.o.
16617 * config/i386/i386.c: include "shrink-wrap.h"
16618 * function.c: Likewise.
16619 (requires_stack_frame_p, next_block_for_reg,
16620 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16621 dup_block_and_redirect): Move to shrink-wrap.c
16622 (thread_prologue_and_epilogue_insns): Extract three code segments
16623 as functions in shrink-wrap.c
16624 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16625 shrink-wrap.h
16626 * shrink-wrap.c: New file.
16627 * shrink-wrap.h: New file.
16628
16629 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16630
16631 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16632 reference to Solaris.
16633
16634 2014-05-12 Mike Stump <mikestump@comcast.net>
16635
16636 PR other/31778
16637 * genattrtab.c (filename): Add.
16638 (convert_set_attr_alternative): Improve error message.
16639 (check_defs): Restore read_md_filename for error messages.
16640 (gen_insn): Save filename.
16641
16642 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16643
16644 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16645 -fno-local-ivars and -fivar-visibility.
16646 * c-family/c.opt: Make -Wshadow also implicitly enable
16647 -Wshadow-ivar.
16648
16649 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16650
16651 * doc/tm.texi: Remove reference to deleted macro.
16652 * doc/tm.texi.in: Likewise.
16653
16654 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16655
16656 PR target/60991
16657 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16658 to restore Y.
16659
16660 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16661
16662 PR libgcc/61152
16663 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16664 * config/arm/aout.h (License): Same.
16665 * config/arm/bpabi.h (License): Same.
16666 * config/arm/elf.h (License): Same.
16667 * config/arm/linux-elf.h (License): Same.
16668 * config/arm/linux-gas.h (License): Same.
16669 * config/arm/netbsd-elf.h (License): Same.
16670 * config/arm/uclinux-eabi.h (License): Same.
16671 * config/arm/uclinux-elf.h (License): Same.
16672 * config/arm/vxworks.h (License): Same.
16673
16674 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16675
16676 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16677 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16678 number of operands to 3.
16679 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16680 * tree-nested.c (convert_nonlocal_omp_clauses,
16681 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16682 * gimplify.c (gimplify_scan_omp_clauses): Handle
16683 OMP_CLAUSE_LINEAR_STMT.
16684 * omp-low.c (lower_rec_input_clauses): Fix typo.
16685 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16686 cast between Fortran boolean_type_node and C _Bool if
16687 needed.
16688
16689 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16690
16691 PR tree-optimization/61136
16692 * wide-int.h (multiple_of_p): Define a version that doesn't return
16693 the quotient.
16694 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16695 integer_zerop/const_binop pair.
16696 (multiple_of_p): Likewise, converting both operands to widest_int
16697 precision.
16698
16699 2014-05-09 Teresa Johnson <tejohnson@google.com>
16700
16701 * cgraphunit.c (analyze_functions): Use correct dump file.
16702
16703 2014-05-09 Florian Weimer <fweimer@redhat.com>
16704
16705 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16706 expand_used_vars.
16707 (stack_protect_return_slot_p): New function.
16708 (expand_used_vars): Call stack_protect_decl_p and
16709 stack_protect_return_slot_p for -fstack-protector-strong.
16710
16711 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16712 Andrew Haley <aph@redhat.com>
16713 Richard Sandiford <rdsandiford@googlemail.com>
16714
16715 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16716 pages.
16717
16718 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16719
16720 PR middle-end/61111
16721 * fold-const.c (fold_binary_loc): Changed width of mask.
16722
16723 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16724
16725 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16726 unsigned int initializers for regno_in, regno_out.
16727
16728 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16729
16730 PR target/61055
16731 * config/avr/avr.md (cc): Add new attribute set_vzn.
16732 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16733 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16734 with INC, DEC or NEG.
16735 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16736 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16737 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16738
16739 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16740
16741 Revert:
16742 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16743
16744 * wide-int.cc (UTItype): Define.
16745 (UDWtype): Define for appropriate W_TYPE_SIZE.
16746
16747 2014-05-09 Richard Biener <rguenther@suse.de>
16748
16749 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16750 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16751 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16752 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16753 ssa_propagate): Adjust.
16754
16755 2014-05-08 Jeff Law <law@redhat.com>
16756
16757 PR tree-optimization/61009
16758 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16759 tri-state rather than a boolean. When a block is too big to
16760 thread through, inform caller via negative return value.
16761 (thread_across_edge): If a block was too big for normal threading,
16762 then it's too big for a joiner too, so remove temporary equivalences
16763 and return immediately.
16764
16765 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16766 Matthias Klose <doko@ubuntu.com>
16767
16768 PR driver/61106
16769 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16770
16771 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16772
16773 PR target/59952
16774 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16775
16776 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16777
16778 PR target/61092
16779 * config/alpha/alpha.c: Include gimple-iterator.h.
16780 (alpha_gimple_fold_builtin): New function. Move
16781 ALPHA_BUILTIN_UMULH folding from ...
16782 (alpha_fold_builtin): ... here.
16783 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16784
16785 2014-05-08 Wei Mi <wmi@google.com>
16786
16787 PR target/58066
16788 * config/i386/i386.c (ix86_compute_frame_layout): Update
16789 preferred_stack_boundary for call, expanded from tls descriptor.
16790 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16791 to depend on SP register.
16792 (*tls_local_dynamic_base_32_gnu): Ditto.
16793 (*tls_local_dynamic_32_once): Ditto.
16794 (tls_global_dynamic_64_<mode>): Set
16795 ix86_tls_descriptor_calls_expanded_in_cfun.
16796 (tls_local_dynamic_base_64_<mode>): Ditto.
16797 (tls_global_dynamic_32): Set
16798 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16799 to depend on SP register.
16800 (tls_local_dynamic_base_32): Ditto.
16801
16802 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16803
16804 * config/arm/arm_neon.h: Update comment.
16805 * config/arm/neon-docgen.ml: Delete.
16806 * config/arm/neon-gen.ml: Delete.
16807 * doc/arm-neon-intrinsics.texi: Update comment.
16808
16809 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16810
16811 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16812 and v4sf versions.
16813 (vand, vorr, veor, vorn, vbic): Remove.
16814 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16815 iterator.
16816 (neon_vsub_unspec): Likewise.
16817 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16818
16819 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16820
16821 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16822 (vadd_s16): Likewise.
16823 (vadd_s32): Likewise.
16824 (vadd_f32): Likewise.
16825 (vadd_u8): Likewise.
16826 (vadd_u16): Likewise.
16827 (vadd_u32): Likewise.
16828 (vadd_s64): Likewise.
16829 (vadd_u64): Likewise.
16830 (vaddq_s8): Likewise.
16831 (vaddq_s16): Likewise.
16832 (vaddq_s32): Likewise.
16833 (vaddq_s64): Likewise.
16834 (vaddq_f32): Likewise.
16835 (vaddq_u8): Likewise.
16836 (vaddq_u16): Likewise.
16837 (vaddq_u32): Likewise.
16838 (vaddq_u64): Likewise.
16839 (vmul_s8): Likewise.
16840 (vmul_s16): Likewise.
16841 (vmul_s32): Likewise.
16842 (vmul_f32): Likewise.
16843 (vmul_u8): Likewise.
16844 (vmul_u16): Likewise.
16845 (vmul_u32): Likewise.
16846 (vmul_p8): Likewise.
16847 (vmulq_s8): Likewise.
16848 (vmulq_s16): Likewise.
16849 (vmulq_s32): Likewise.
16850 (vmulq_f32): Likewise.
16851 (vmulq_u8): Likewise.
16852 (vmulq_u16): Likewise.
16853 (vmulq_u32): Likewise.
16854 (vsub_s8): Likewise.
16855 (vsub_s16): Likewise.
16856 (vsub_s32): Likewise.
16857 (vsub_f32): Likewise.
16858 (vsub_u8): Likewise.
16859 (vsub_u16): Likewise.
16860 (vsub_u32): Likewise.
16861 (vsub_s64): Likewise.
16862 (vsub_u64): Likewise.
16863 (vsubq_s8): Likewise.
16864 (vsubq_s16): Likewise.
16865 (vsubq_s32): Likewise.
16866 (vsubq_s64): Likewise.
16867 (vsubq_f32): Likewise.
16868 (vsubq_u8): Likewise.
16869 (vsubq_u16): Likewise.
16870 (vsubq_u32): Likewise.
16871 (vsubq_u64): Likewise.
16872 (vand_s8): Likewise.
16873 (vand_s16): Likewise.
16874 (vand_s32): Likewise.
16875 (vand_u8): Likewise.
16876 (vand_u16): Likewise.
16877 (vand_u32): Likewise.
16878 (vand_s64): Likewise.
16879 (vand_u64): Likewise.
16880 (vandq_s8): Likewise.
16881 (vandq_s16): Likewise.
16882 (vandq_s32): Likewise.
16883 (vandq_s64): Likewise.
16884 (vandq_u8): Likewise.
16885 (vandq_u16): Likewise.
16886 (vandq_u32): Likewise.
16887 (vandq_u64): Likewise.
16888 (vorr_s8): Likewise.
16889 (vorr_s16): Likewise.
16890 (vorr_s32): Likewise.
16891 (vorr_u8): Likewise.
16892 (vorr_u16): Likewise.
16893 (vorr_u32): Likewise.
16894 (vorr_s64): Likewise.
16895 (vorr_u64): Likewise.
16896 (vorrq_s8): Likewise.
16897 (vorrq_s16): Likewise.
16898 (vorrq_s32): Likewise.
16899 (vorrq_s64): Likewise.
16900 (vorrq_u8): Likewise.
16901 (vorrq_u16): Likewise.
16902 (vorrq_u32): Likewise.
16903 (vorrq_u64): Likewise.
16904 (veor_s8): Likewise.
16905 (veor_s16): Likewise.
16906 (veor_s32): Likewise.
16907 (veor_u8): Likewise.
16908 (veor_u16): Likewise.
16909 (veor_u32): Likewise.
16910 (veor_s64): Likewise.
16911 (veor_u64): Likewise.
16912 (veorq_s8): Likewise.
16913 (veorq_s16): Likewise.
16914 (veorq_s32): Likewise.
16915 (veorq_s64): Likewise.
16916 (veorq_u8): Likewise.
16917 (veorq_u16): Likewise.
16918 (veorq_u32): Likewise.
16919 (veorq_u64): Likewise.
16920 (vbic_s8): Likewise.
16921 (vbic_s16): Likewise.
16922 (vbic_s32): Likewise.
16923 (vbic_u8): Likewise.
16924 (vbic_u16): Likewise.
16925 (vbic_u32): Likewise.
16926 (vbic_s64): Likewise.
16927 (vbic_u64): Likewise.
16928 (vbicq_s8): Likewise.
16929 (vbicq_s16): Likewise.
16930 (vbicq_s32): Likewise.
16931 (vbicq_s64): Likewise.
16932 (vbicq_u8): Likewise.
16933 (vbicq_u16): Likewise.
16934 (vbicq_u32): Likewise.
16935 (vbicq_u64): Likewise.
16936 (vorn_s8): Likewise.
16937 (vorn_s16): Likewise.
16938 (vorn_s32): Likewise.
16939 (vorn_u8): Likewise.
16940 (vorn_u16): Likewise.
16941 (vorn_u32): Likewise.
16942 (vorn_s64): Likewise.
16943 (vorn_u64): Likewise.
16944 (vornq_s8): Likewise.
16945 (vornq_s16): Likewise.
16946 (vornq_s32): Likewise.
16947 (vornq_s64): Likewise.
16948 (vornq_u8): Likewise.
16949 (vornq_u16): Likewise.
16950 (vornq_u32): Likewise.
16951 (vornq_u64): Likewise.
16952
16953 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16954
16955 * wide-int.cc (UTItype): Define.
16956 (UDWtype): Define for appropriate W_TYPE_SIZE.
16957
16958 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16959
16960 PR tree-optimization/59100
16961 * tree-ssa-phiopt.c: Include tree-inline.h.
16962 (neutral_element_p, absorbing_element_p): New functions.
16963 (value_replacement): Handle conditional binary operations with a
16964 neutral or absorbing element.
16965
16966 2014-05-08 Richard Biener <rguenther@suse.de>
16967
16968 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16969 folding the expression.
16970 (valueize_expr): Remove.
16971 (visit_reference_op_load): Do not valueize the result of
16972 vn_get_expr_for.
16973 (simplify_binary_expression): Likewise.
16974 (simplify_unary_expression): Likewise.
16975
16976 2014-05-08 Richard Biener <rguenther@suse.de>
16977
16978 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16979 looking at TYPE_ARG_TYPES.
16980
16981 2014-05-08 Richard Biener <rguenther@suse.de>
16982
16983 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16984 pointer propagation special-case.
16985
16986 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16987
16988 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16989 core part of address expressions.
16990
16991 2014-05-08 Alan Modra <amodra@gmail.com>
16992
16993 PR target/60737
16994 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16995 loads and stores when -mno-strict-align at any alignment.
16996 (expand_block_clear): Similarly. Also correct calculation of
16997 instruction count.
16998
16999 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17000
17001 PR middle-end/39246
17002 * tree-complex.c (expand_complex_move): Keep line info when expanding
17003 complex move.
17004 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
17005 of complex expression. Use new argument to display correct location
17006 for values coming from phi statement.
17007 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
17008 (warn_uninitialized_phi): Pass location of phi argument to
17009 warn_uninit.
17010 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
17011 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
17012
17013 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17014
17015 * config/rs6000/predicates.md (indexed_address_mem): New.
17016 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17017 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17018 fpstore_ux, fpstore_u.
17019 (sign_extend, indexed, update): New.
17020 (cell_micro): Adjust.
17021 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17022 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17023 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17024 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17025 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17026 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17027 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17028 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17029 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17030 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17031 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17032 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17033 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17034 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17035 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17036
17037 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17038 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17039 *vsx_extract_<mode>_store): Adjust.
17040 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17041 is_cracked_insn, insn_must_be_first_in_group,
17042 insn_must_be_last_in_group): Adjust.
17043
17044 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17045 Adjust.
17046 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17047 ppc440-fpstore): Adjust.
17048 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17049 ppc476-fpstore): Adjust.
17050 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17051 ppc601-fpstore): Adjust.
17052 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17053 Adjust.
17054 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17055 Adjust.
17056 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17057 ppc7450-fpstore): Adjust.
17058 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17059 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17060 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17061 Adjust.
17062 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17063 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17064 cell-fpstore, cell-fpstore-update): Adjust.
17065 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17066 ppce300c3_store, ppce300c3_fpstore): Adjust.
17067 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17068 e500mc_fpstore): Adjust.
17069 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17070 e500mc64_store, e500mc64_fpstore): Adjust.
17071 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17072 e5500_fpstore): Adjust.
17073 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17074 e6500_fpstore): Adjust.
17075 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17076 Adjust.
17077 * config/rs6000/power4.md (power4-load, power4-load-ext,
17078 power4-load-ext-update, power4-load-ext-update-indexed,
17079 power4-load-update-indexed, power4-load-update, power4-fpload,
17080 power4-fpload-update, power4-store, power4-store-update,
17081 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17082 Adjust.
17083 * config/rs6000/power5.md (power5-load, power5-load-ext,
17084 power5-load-ext-update, power5-load-ext-update-indexed,
17085 power5-load-update-indexed, power5-load-update, power5-fpload,
17086 power5-fpload-update, power5-store, power5-store-update,
17087 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17088 Adjust.
17089 * config/rs6000/power6.md (power6-load, power6-load-ext,
17090 power6-load-update, power6-load-update-indexed,
17091 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17092 power6-fpload-update, power6-store, power6-store-update,
17093 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17094 Adjust.
17095 * config/rs6000/power7.md (power7-load, power7-load-ext,
17096 power7-load-update, power7-load-update-indexed,
17097 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17098 power7-fpload-update, power7-store, power7-store-update,
17099 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17100 Adjust.
17101 * config/rs6000/power8.md (power8-load, power8-load-update,
17102 power8-load-ext, power8-load-ext-update, power8-fpload,
17103 power8-fpload-update, power8-store, power8-store-update-indexed,
17104 power8-fpstore, power8-fpstore-update): Adjust.
17105 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17106 Adjust.
17107 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17108 titan_lsu_store, titan_lsu_fpstore): Adjust.
17109 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17110
17111 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17112
17113 PR target/60884
17114 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17115 unrolled byte insns. Emit address increments after move insns.
17116
17117 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17118
17119 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17120 const_gimple, rather than a gimple.
17121 (gimple_call_builtin_p): Likewise, for the three variants.
17122
17123 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17124 (gimple_call_builtin_p): Likewise, for the three variants.
17125
17126 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17127
17128 PR tree-optimization/61095
17129 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17130
17131 2014-05-07 Richard Biener <rguenther@suse.de>
17132
17133 PR tree-optimization/61034
17134 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17135 (maybe_skip_until): Use translate to take into account
17136 lattices when trying to do disambiguations.
17137 (get_continuation_for_phi_1): Likewise.
17138 (get_continuation_for_phi): Adjust for added translate arguments.
17139 (walk_non_aliased_vuses): Likewise.
17140 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17141 (walk_non_aliased_vuses): Likewise.
17142 (call_may_clobber_ref_p_1): Declare.
17143 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17144 calls. Stop early if we are only supposed to disambiguate.
17145 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17146
17147 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17148
17149 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17150 Emit an error when the function has arguments.
17151
17152 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17153
17154 * cfgloop.h (unswitch_loops): Remove.
17155 * doc/passes.texi: Remove references to loop-unswitch.c
17156 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17157
17158 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17159
17160 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17161 check for loads group of length 3.
17162 (vect_permute_load_chain): New permutations for loads group of
17163 length 3.
17164 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17165 of vec_perm_shuffle for the new permutations.
17166
17167 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17168
17169 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17170 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17171 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17172 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17173 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17174 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17175 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17176 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17177
17178 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17179
17180 * loop-unswitch.c: Delete.
17181
17182 2014-05-07 Richard Biener <rguenther@suse.de>
17183
17184 * config.gcc: Always set need_64bit_hwint to yes.
17185
17186 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17187
17188 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17189 of using optimize_size.
17190
17191 2014-05-06 Mike Stump <mikestump@comcast.net>
17192
17193 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17194
17195 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17196
17197 * config/i386/sse.md (*mov<mode>_internal)
17198 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17199 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17200 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17201 (*<code><mode>3, *andnot<mode>3<mask_name>)
17202 (<mask_codefor><code><mode>3<mask_name>): Only consider
17203 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17204
17205 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17206
17207 Revert:
17208 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17209
17210 * lra-constraints.c (valid_address_p): Move earlier in file.
17211 Add a constraint argument to the address_info version.
17212 (satisfies_memory_constraint_p): New function.
17213 (satisfies_address_constraint_p): Likewise.
17214 (process_alt_operands, curr_insn_transform): Use them.
17215 (process_address): Pass the constraint to valid_address_p when
17216 checking address operands.
17217
17218 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17219
17220 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17221 to their respective blocks. Fix inadvertent use of "node".
17222
17223 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17224
17225 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17226 out from...
17227 (init_emit_once): ...here.
17228 * rtl.h (init_derived_machine_modes): Declare.
17229 * toplev.c (do_compile): Call it even if no_backend.
17230
17231 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17232 Mike Stump <mikestump@comcast.net>
17233 Richard Sandiford <rdsandiford@googlemail.com>
17234 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17235
17236 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17237 (rtx_equal_for_memref_p): Update comment.
17238 (adjust_offset_for_component_ref): Use wide-int interfaces.
17239 * builtins.c (get_object_alignment_2): Likewise.
17240 (c_readstr): Likewise.
17241 (target_char_cast): Add comment.
17242 (determine_block_size): Use wide-int interfaces.
17243 (expand_builtin_signbit): Likewise.
17244 (fold_builtin_int_roundingfn): Likewise.
17245 (fold_builtin_bitop): Likewise.
17246 (fold_builtin_bswap): Likewise.
17247 (fold_builtin_logarithm): Use signop.
17248 (fold_builtin_pow): Likewise.
17249 (fold_builtin_memory_op): Use wide-int interfaces.
17250 (fold_builtin_object_size): Likewise.
17251 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17252 nb_iterations_estimate.
17253 (record_niter_bound): Use wide-int interfaces.
17254 (get_estimated_loop_iterations_int): Likewise.
17255 (get_estimated_loop_iterations): Likewise.
17256 (get_max_loop_iterations): Likewise.
17257 * cfgloop.h: Include wide-int.h.
17258 (struct nb_iter_bound): Change bound to widest_int.
17259 (struct loop): Change nb_iterations_upper_bound and
17260 nb_iterations_estimate to widest_int.
17261 (record_niter_bound): Switch to use widest_int.
17262 (get_estimated_loop_iterations): Likewise.
17263 (get_max_loop_iterations): Likewise.
17264 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17265 update for wide-int.
17266 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17267 * combine.c (try_combine): Likewise.
17268 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17269 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17270 interfaces.
17271 (aarch64_float_const_representable_p): Likewise.
17272 * config/arc/arc.c: Include wide-int.h.
17273 (arc_can_use_doloop_p): Use wide-int interfaces.
17274 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17275 (vfp3_const_double_index): Likewise.
17276 * config/avr/avr.c (avr_out_round): Likewise.
17277 (avr_fold_builtin): Likewise.
17278 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17279 (bfin_can_use_doloop_p): Likewise.
17280 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17281 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17282 * config/i386/i386.c: Include wide-int.h.
17283 (ix86_data_alignment): Use wide-int interfaces.
17284 (ix86_local_alignment): Likewise.
17285 (ix86_emit_swsqrtsf): Update real_from_integer.
17286 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17287 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17288 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17289 (zero_constant): Likewise.
17290 (input_operand): Likewise.
17291 (splat_input_operand): Likewise.
17292 (non_logical_cint_operand): Change const_double to const_wide_int.
17293 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17294 (easy_altivec_constant): Remove comment.
17295 (paired_expand_vector_init): Use CONSTANT_P.
17296 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17297 (rs6000_emit_move): Update checks.
17298 (rs6000_aggregate_candidate): Use wide-int interfaces.
17299 (rs6000_expand_ternop_builtin): Likewise.
17300 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17301 (rs6000_assemble_integer): Likewise.
17302 (rs6000_hash_constant): Likewise.
17303 (output_toc): Likewise.
17304 (rs6000_rtx_costs): Likewise.
17305 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17306 * config/rs6000/rs6000-c.c: Include wide-int.h.
17307 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17308 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17309 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17310 Handle CONST_WIDE_INT.
17311 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17312 Use tree_fits_uhwi_p.
17313 * config/sparc/sparc.c: Include wide-int.h.
17314 (sparc_fold_builtin): Use wide-int interfaces.
17315 * config/vax/vax.c: Include wide-int.h.
17316 (vax_float_literal): Use real_from_integer.
17317 * coretypes.h (struct hwivec_def): New.
17318 (hwivec): New.
17319 (const_hwivec): New.
17320 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17321 (equiv_constant): Handle CONST_WIDE_INT.
17322 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17323 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17324 * dbxout.c (stabstr_U): Use wide-int interfaces.
17325 (dbxout_type): Update to use cst_fits_shwi_p.
17326 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17327 (TARGET_SUPPORTS_WIDE_INT): Add default.
17328 * dfp.c: Include wide-int.h.
17329 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17330 decimal_real_to_integer.
17331 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17332 decimal_real_to_integer.
17333 * doc/generic.texi (Constant expressions): Update for wide_int.
17334 * doc/rtl.texi (const_double): Likewise.
17335 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17336 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17337 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17338 (REAL_VALUE_FROM_INT): Remove.
17339 (TARGET_SUPPORTS_WIDE_INT): New.
17340 * doc/tm.texi: Regenerate.
17341 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17342 * double-int.h: Include wide-int.h.
17343 (struct wi::int_traits): New.
17344 * dwarf2out.c (get_full_len): New.
17345 (dw_val_equal_p): Add case dw_val_class_wide_int.
17346 (size_of_loc_descr): Likewise.
17347 (output_loc_operands): Likewise.
17348 (insert_double): Remove.
17349 (insert_wide_int): New.
17350 (add_AT_wide): New.
17351 (print_die): Add case dw_val_class_wide_int.
17352 (attr_checksum): Likewise.
17353 (attr_checksum_ordered): Likewise.
17354 (same_dw_val_p): Likewise.
17355 (size_of_die): Likewise.
17356 (value_format): Likewise.
17357 (output_die): Likewise.
17358 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17359 Use wide-int.
17360 (clz_loc_descriptor): Use wide-int interfaces.
17361 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17362 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17363 (round_up_to_align): Use wide-int interfaces.
17364 (field_byte_offset): Likewise.
17365 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17366 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17367 CONST_DOUBLE handling. Use wide-int interfaces.
17368 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17369 (gen_enumeration_type_die): Use add_AT_wide.
17370 (hash_loc_operands): Add case dw_val_class_wide_int.
17371 (compare_loc_operands): Likewise.
17372 * dwarf2out.h: Include wide-int.h.
17373 (wide_int_ptr): New.
17374 (enum dw_val_class): Add dw_val_class_wide_int.
17375 (struct dw_val_struct): Add val_wide.
17376 * emit-rtl.c (const_wide_int_htab): New.
17377 (const_wide_int_htab_hash): New.
17378 (const_wide_int_htab_eq): New.
17379 (lookup_const_wide_int): New.
17380 (const_double_htab_hash): Use wide-int interfaces.
17381 (const_double_htab_eq): Likewise.
17382 (rtx_to_double_int): Conditionally compile for wide-int.
17383 (immed_double_int_const): Rename to immed_wide_int_const and
17384 update for wide-int.
17385 (immed_double_const): Conditionally compile for wide-int.
17386 (init_emit_once): Use wide-int interfaces.
17387 * explow.c (plus_constant): Likewise.
17388 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17389 (lshift_value): Use wide-int interfaces.
17390 (expand_mult): Likewise.
17391 (choose_multiplier): Likewise.
17392 (expand_smod_pow2): Likewise.
17393 (make_tree): Likewise.
17394 * expr.c (convert_modes): Consolidate handling of constants.
17395 Use wide-int interfaces.
17396 (emit_group_load_1): Add note.
17397 (store_expr): Update comment.
17398 (get_inner_reference): Use wide-int interfaces.
17399 (expand_constructor): Update comment.
17400 (expand_expr_real_2): Use wide-int interfaces.
17401 (expand_expr_real_1): Likewise.
17402 (reduce_to_bit_field_precision): Likewise.
17403 (const_vector_from_tree): Likewise.
17404 * final.c: Include wide-int-print.h.
17405 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17406 * fixed-value.c: Include wide-int.h.
17407 (fixed_from_string): Use wide-int interfaces.
17408 (fixed_to_decimal): Likewise.
17409 (fixed_convert_from_real): Likewise.
17410 (real_convert_from_fixed): Likewise.
17411 * fold-const.h (mem_ref_offset): Return an offset_int.
17412 (div_if_zero_remainder): Remove code parameter.
17413 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17414 Use wide-int interfaces.
17415 (may_negate_without_overflow_p): Use wide-int interfaces.
17416 (negate_expr_p): Likewise.
17417 (fold_negate_expr): Likewise.
17418 (int_const_binop_1): Likewise.
17419 (const_binop): Likewise.
17420 (fold_convert_const_int_from_int): Likewise.
17421 (fold_convert_const_int_from_real): Likewise.
17422 (fold_convert_const_int_from_fixed): Likewise.
17423 (fold_convert_const_fixed_from_int): Likewise.
17424 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17425 (sign_bit_p): Use wide-int interfaces.
17426 (make_range_step): Likewise.
17427 (build_range_check): Likewise. Pass an integer of the correct type
17428 instead of using integer_one_node.
17429 (range_predecessor): Pass an integer of the correct type instead
17430 of using integer_one_node.
17431 (range_successor): Likewise.
17432 (merge_ranges): Likewise.
17433 (unextend): Use wide-int interfaces.
17434 (extract_muldiv_1): Likewise.
17435 (fold_div_compare): Likewise.
17436 (fold_single_bit_test): Likewise.
17437 (fold_sign_changed_comparison): Likewise.
17438 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17439 (fold_plusminus_mult_expr): Use wide-int interfaces.
17440 (native_encode_int): Likewise.
17441 (native_interpret_int): Likewise.
17442 (fold_unary_loc): Likewise.
17443 (pointer_may_wrap_p): Likewise.
17444 (size_low_cst): Likewise.
17445 (mask_with_tz): Likewise.
17446 (fold_binary_loc): Likewise.
17447 (fold_ternary_loc): Likewise.
17448 (multiple_of_p): Likewise.
17449 (tree_call_nonnegative_warnv_p): Update calls to
17450 tree_int_cst_min_precision and real_from_integer.
17451 (fold_negate_const): Use wide-int interfaces.
17452 (fold_abs_const): Likewise.
17453 (fold_relational_const): Use tree_int_cst_lt.
17454 (round_up_loc): Use wide-int interfaces.
17455 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17456 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17457 * gengtype.c: Remove include of double-int.h.
17458 (do_typedef): Use wide-int interfaces.
17459 (open_base_files): Add wide-int.h.
17460 (main): Add offset_int and widest_int typedefs.
17461 * gengtype-lex.l: Handle "^".
17462 (CXX_KEYWORD): Add "static".
17463 * gengtype-parse.c (require3): New.
17464 (require_template_declaration): Handle constant template arguments
17465 and nested templates.
17466 * gengtype-state.c: Don't include "double-int.h".
17467 * genpreds.c (write_one_predicate_function): Update comment.
17468 (write_tm_constrs_h): Add check for hval and lval use in
17469 CONST_WIDE_INT.
17470 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17471 (add_to_sequence): Likewise.
17472 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17473 and const_double_operand.
17474 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17475 interfaces.
17476 * gimple-fold.c (get_base_constructor): Likewise.
17477 (fold_array_ctor_reference): Likewise.
17478 (fold_nonarray_ctor_reference): Likewise.
17479 (fold_const_aggregate_ref_1): Likewise.
17480 (gimple_val_nonnegative_real_p): Likewise.
17481 (gimple_fold_indirect_ref): Likewise.
17482 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17483 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17484 (struct slsr_cand_d): Change index to be widest_int.
17485 (struct incr_info_d): Change incr to be widest_int.
17486 (alloc_cand_and_find_basis): Use wide-int interfaces.
17487 (slsr_process_phi): Likewise.
17488 (backtrace_base_for_ref): Likewise. Return a widest_int.
17489 (restructure_reference): Take a widest_int instead of a double_int.
17490 (slsr_process_ref): Use wide-int interfaces.
17491 (create_mul_ssa_cand): Likewise.
17492 (create_mul_imm_cand): Likewise.
17493 (create_add_ssa_cand): Likewise.
17494 (create_add_imm_cand): Take a widest_int instead of a double_int.
17495 (slsr_process_add): Use wide-int interfaces.
17496 (slsr_process_cast): Likewise.
17497 (slsr_process_copy): Likewise.
17498 (dump_candidate): Likewise.
17499 (dump_incr_vec): Likewise.
17500 (replace_ref): Likewise.
17501 (cand_increment): Likewise. Return a widest_int.
17502 (cand_abs_increment): Likewise.
17503 (replace_mult_candidate): Take a widest_int instead of a double_int.
17504 (replace_unconditional_candidate): Use wide-int interfaces.
17505 (incr_vec_index): Take a widest_int instead of a double_int.
17506 (create_add_on_incoming_edge): Likewise.
17507 (create_phi_basis): Use wide-int interfaces.
17508 (replace_conditional_candidate): Likewise.
17509 (record_increment): Take a widest_int instead of a double_int.
17510 (record_phi_increments): Use wide-int interfaces.
17511 (phi_incr_cost): Take a widest_int instead of a double_int.
17512 (lowest_cost_path): Likewise.
17513 (total_savings): Likewise.
17514 (analyze_increments): Use wide-int interfaces.
17515 (ncd_with_phi): Take a widest_int instead of a double_int.
17516 (ncd_of_cand_and_phis): Likewise.
17517 (nearest_common_dominator_for_cands): Likewise.
17518 (insert_initializers): Use wide-int interfaces.
17519 (all_phi_incrs_profitable): Likewise.
17520 (replace_one_candidate): Likewise.
17521 (replace_profitable_candidates): Likewise.
17522 * godump.c: Include wide-int-print.h.
17523 (go_output_typedef): Use wide-int interfaces.
17524 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17525 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17526 (build_loop_iteration_domains): Likewise.
17527 * hooks.h: Include wide-int.h rather than double-int.h.
17528 (hook_bool_dint_dint_uint_bool_true): Delete.
17529 (hook_bool_wint_wint_uint_bool_true): Declare.
17530 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17531 (hook_bool_wint_wint_uint_bool_true): New.
17532 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17533 interfaces.
17534 (ubsan_expand_si_overflow_mul_check): Likewise.
17535 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17536 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17537 (get_ancestor_addr_info): Likewise.
17538 (ipa_modify_call_arguments): Likewise.
17539 * loop-doloop.c (doloop_modify): Likewise.
17540 (doloop_optimize): Likewise.
17541 * loop-iv.c (iv_number_of_iterations): Likewise.
17542 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17543 (unroll_loop_constant_iterations): Likewise.
17544 (decide_unroll_runtime_iterations): Likewise.
17545 (unroll_loop_runtime_iterations): Likewise.
17546 (decide_peel_simple): Likewise.
17547 (decide_unroll_stupid): Likewise.
17548 * lto-streamer-in.c (streamer_read_wi): Add.
17549 (input_cfg): Use wide-int interfaces.
17550 (lto_input_tree_1): Likewise.
17551 * lto-streamer-out.c (streamer_write_wi): Add.
17552 (hash_tree): Use wide-int interfaces.
17553 (output_cfg): Likewise.
17554 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17555 (GTFILES): Add wide-int.h and signop.h.
17556 (TAGS): Look for .cc files too.
17557 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17558 * optabs.c (expand_subword_shift): Likewise.
17559 (expand_doubleword_shift): Likewise.
17560 (expand_absneg_bit): Likewise.
17561 (expand_copysign_absneg): Likewise.
17562 (expand_copysign_bit): Likewise.
17563 * postreload.c (reload_cse_simplify_set): Likewise.
17564 * predict.c (predict_iv_comparison): Likewise.
17565 * pretty-print.h: Include wide-int-print.h.
17566 (pp_wide_int) New.
17567 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17568 * print-tree.c: Include wide-int-print.h.
17569 (print_node_brief): Use wide-int interfaces.
17570 (print_node): Likewise.
17571 * read-rtl.c (validate_const_wide_int): New.
17572 (read_rtx_code): Add CONST_WIDE_INT case.
17573 * real.c: Include wide-int.h.
17574 (real_to_integer2): Delete.
17575 (real_to_integer): New function, returning a wide_int.
17576 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17577 (ten_to_ptwo): Update call to real_from_integer.
17578 (real_digit): Likewise.
17579 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17580 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17581 (REAL_VALUE_TO_INT): Delete.
17582 (real_to_integer): Declare a wide-int form.
17583 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17584 * recog.c (const_int_operand): Improve comment.
17585 (const_scalar_int_operand): New.
17586 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17587 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17588 (split_double): Likewise.
17589 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17590 (rtx_size): Likewise.
17591 (rtx_alloc_stat_v): New.
17592 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17593 (cwi_output_hex): New.
17594 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17595 (cwi_check_failed_bounds): New.
17596 * rtl.def (CONST_WIDE_INT): New.
17597 * rtl.h: Include <utility> and wide-int.h.
17598 (struct hwivec_def): New.
17599 (CWI_GET_NUM_ELEM): New.
17600 (CWI_PUT_NUM_ELEM): New.
17601 (struct rtx_def): Add num_elem and hwiv.
17602 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17603 (CASE_CONST_UNIQUE): Likewise.
17604 (CASE_CONST_ANY): Likewise.
17605 (CONST_SCALAR_INT_P): Likewise.
17606 (CONST_WIDE_INT_P): New.
17607 (CWI_ELT): New.
17608 (HWIVEC_CHECK): New.
17609 (cwi_check_failed_bounds): New.
17610 (CWI_ELT): New.
17611 (HWIVEC_CHECK): New.
17612 (CONST_WIDE_INT_VEC) New.
17613 (CONST_WIDE_INT_NUNITS) New.
17614 (CONST_WIDE_INT_ELT) New.
17615 (rtx_mode_t): New type.
17616 (wi::int_traits <rtx_mode_t>): New.
17617 (wi::shwi): New.
17618 (wi::min_value): New.
17619 (wi::max_value): New.
17620 (rtx_alloc_v) New.
17621 (const_wide_int_alloc): New.
17622 (immed_wide_int_const): New.
17623 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17624 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17625 * signop.h: New file.
17626 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17627 (simplify_const_unary_operation): Use wide-int interfaces.
17628 (simplify_binary_operation_1): Likewise.
17629 (simplify_const_binary_operation): Likewise.
17630 (simplify_const_relational_operation): Likewise.
17631 (simplify_immed_subreg): Likewise.
17632 * stmt.c (expand_case): Likewise.
17633 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17634 signop rather than a bool.
17635 * stor-layout.c (layout_type): Use wide-int interfaces.
17636 (initialize_sizetypes): Update calls to
17637 set_min_and_max_values_for_integral_type.
17638 (set_min_and_max_values_for_integral_type): Take a signop rather
17639 than a bool. Use wide-int interfaces.
17640 (fixup_signed_type): Update accordingly. Remove
17641 HOST_BITS_PER_DOUBLE_INT limit.
17642 (fixup_unsigned_type): Likewise.
17643 * system.h (STATIC_CONSTANT_P): New.
17644 (STATIC_ASSERT): New.
17645 * target.def (can_use_doloop_p): Take widest_ints rather than
17646 double_ints.
17647 * target.h: Include wide-int.h rather than double-int.h.
17648 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17649 than double_ints.
17650 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17651 rather than INT_CST_LT_UNSIGNED.
17652 (can_use_doloop_if_innermost): Take widest_ints rather than
17653 double_ints.
17654 * tree-affine.c: Include wide-int-print.h.
17655 (double_int_ext_for_comb): Delete.
17656 (wide_int_ext_for_comb): New.
17657 (aff_combination_zero): Use wide-int interfaces.
17658 (aff_combination_const): Take a widest_int instead of a double_int.
17659 (aff_combination_elt): Use wide-int interfaces.
17660 (aff_combination_scale): Take a widest_int instead of a double_int.
17661 (aff_combination_add_elt): Likewise.
17662 (aff_combination_add_cst): Likewise.
17663 (aff_combination_add): Use wide-int interfaces.
17664 (aff_combination_convert): Likewise.
17665 (tree_to_aff_combination): Likewise.
17666 (add_elt_to_tree): Take a widest_int instead of a double_int.
17667 (aff_combination_to_tree): Use wide-int interfaces.
17668 (aff_combination_remove_elt): Likewise.
17669 (aff_combination_add_product): Take a widest_int instead of
17670 a double_int.
17671 (aff_combination_mult): Use wide-int interfaces.
17672 (aff_combination_expand): Likewise.
17673 (double_int_constant_multiple_p): Delete.
17674 (wide_int_constant_multiple_p): New.
17675 (aff_combination_constant_multiple_p): Take a widest_int pointer
17676 instead of a double_int pointer.
17677 (print_aff): Use wide-int interfaces.
17678 (get_inner_reference_aff): Take a widest_int pointer
17679 instead of a double_int pointer.
17680 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17681 * tree-affine.h: Include wide-int.h.
17682 (struct aff_comb_elt): Change type of coef to widest_int.
17683 (struct affine_tree_combination): Change type of offset to widest_int.
17684 (double_int_ext_for_comb): Delete.
17685 (wide_int_ext_for_comb): New.
17686 (aff_combination_const): Use widest_int instead of double_int.
17687 (aff_combination_scale): Likewise.
17688 (aff_combination_add_elt): Likewise.
17689 (aff_combination_constant_multiple_p): Likewise.
17690 (get_inner_reference_aff): Likewise.
17691 (aff_comb_cannot_overlap_p): Likewise.
17692 (aff_combination_zero_p): Use wide-int interfaces.
17693 * tree.c: Include tree.h.
17694 (init_ttree): Use make_int_cst.
17695 (tree_code_size): Removed code for INTEGER_CST case.
17696 (tree_size): Add INTEGER_CST case.
17697 (make_node_stat): Update comment.
17698 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17699 (build_int_cst_type): Use wide-int interfaces.
17700 (double_int_to_tree): Likewise.
17701 (double_int_fits_to_tree_p): Delete.
17702 (force_fit_type_double): Delete.
17703 (force_fit_type): New.
17704 (int_cst_hash_hash): Use wide-int interfaces.
17705 (int_cst_hash_eq): Likewise.
17706 (build_int_cst_wide): Delete.
17707 (wide_int_to_tree): New.
17708 (cache_integer_cst): Use wide-int interfaces.
17709 (build_low_bits_mask): Likewise.
17710 (cst_and_fits_in_hwi): Likewise.
17711 (real_value_from_int_cst): Likewise.
17712 (make_int_cst_stat): New.
17713 (integer_zerop): Use wide_int interfaces.
17714 (integer_onep): Likewise.
17715 (integer_all_onesp): Likewise.
17716 (integer_pow2p): Likewise.
17717 (integer_nonzerop): Likewise.
17718 (tree_log2): Likewise.
17719 (tree_floor_log2): Likewise.
17720 (tree_ctz): Likewise.
17721 (int_size_in_bytes): Likewise.
17722 (mem_ref_offset): Return an offset_int rather than a double_int.
17723 (build_type_attribute_qual_variant): Use wide_int interfaces.
17724 (type_hash_eq): Likewise
17725 (tree_int_cst_equal): Likewise.
17726 (tree_int_cst_lt): Delete.
17727 (tree_int_cst_compare): Likewise.
17728 (tree_fits_shwi_p): Use wide_int interfaces.
17729 (tree_fits_uhwi_p): Likewise.
17730 (tree_int_cst_sign_bit): Likewise.
17731 (tree_int_cst_sgn): Likewise.
17732 (tree_int_cst_min_precision): Take a signop rather than a bool.
17733 (simple_cst_equal): Use wide_int interfaces.
17734 (compare_tree_int): Likewise.
17735 (iterative_hash_expr): Likewise.
17736 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17737 INT_CST_LT.
17738 (get_type_static_bounds): Use wide_int interfaces.
17739 (tree_int_cst_elt_check_failed): New.
17740 (build_common_tree_nodes): Reordered to set prec before filling in
17741 value.
17742 (int_cst_value): Check cst_and_fits_in_hwi.
17743 (widest_int_cst_value): Use wide_int interfaces.
17744 (upper_bound_in_type): Likewise.
17745 (lower_bound_in_type): Likewise.
17746 (num_ending_zeros): Likewise.
17747 (drop_tree_overflow): Likewise.
17748 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17749 (gen_conditions_for_pow_cst_base): Likewise.
17750 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17751 (group_case_labels_stmt): Use wide-int interfaces.
17752 (verify_gimple_assign_binary): Likewise.
17753 (print_loop): Likewise.
17754 * tree-chrec.c (tree_fold_binomial): Likewise.
17755 * tree-core.h (struct tree_base): Add int_length.
17756 (struct tree_int_cst): Change rep of value.
17757 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17758 (dr_may_alias_p): Likewise.
17759 (max_stmt_executions_tree): Likewise.
17760 * tree.def (INTEGER_CST): Update comment.
17761 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17762 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17763 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17764 (dequeue_and_dump): Use wide-int interfaces.
17765 * tree.h: Include wide-int.h.
17766 (NULL_TREE): Moved to earlier loc in file.
17767 (TREE_INT_CST_ELT_CHECK): New.
17768 (tree_int_cst_elt_check_failed): New.
17769 (TYPE_SIGN): New.
17770 (TREE_INT_CST): Delete.
17771 (TREE_INT_CST_LOW): Use wide-int interfaces.
17772 (TREE_INT_CST_HIGH): Delete.
17773 (TREE_INT_CST_NUNITS): New.
17774 (TREE_INT_CST_EXT_NUNITS): Likewise.
17775 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17776 (TREE_INT_CST_ELT): Likewise.
17777 (INT_CST_LT): Delete.
17778 (tree_int_cst_elt_check): New (two forms).
17779 (type_code_size): Update comment.
17780 (make_int_cst_stat, make_int_cst): New.
17781 (tree_to_double_int): Delete.
17782 (double_int_fits_to_tree_p): Delete.
17783 (force_fit_type_double): Delete.
17784 (build_int_cstu): Replace with out-of-line function.
17785 (build_int_cst_wide): Delete.
17786 (tree_int_cst_lt): Define inline.
17787 (tree_int_cst_le): New.
17788 (tree_int_cst_compare): Define inline.
17789 (tree_int_cst_min_precision): Take a signop rather than a bool.
17790 (wi::int_traits <const_tree>): New.
17791 (wi::int_traits <tree>): New.
17792 (wi::extended_tree): New.
17793 (wi::int_traits <wi::extended_tree>): New.
17794 (wi::to_widest): New.
17795 (wi::to_offset): New.
17796 (wi::fits_to_tree_p): New.
17797 (wi::min_value): New.
17798 (wi::max_value): New.
17799 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17800 (copy_tree_body_r): Likewise.
17801 * tree-object-size.c (compute_object_offset): Likewise.
17802 (addr_object_size): Likewise.
17803 * tree-predcom.c: Include wide-int-print.h.
17804 (struct dref_d): Change type of offset to widest_int.
17805 (dump_dref): Call wide-int printer.
17806 (aff_combination_dr_offset): Use wide-int interfaces.
17807 (determine_offset): Take a widest_int pointer rather than a
17808 double_int pointer.
17809 (split_data_refs_to_components): Use wide-int interfaces.
17810 (suitable_component_p): Likewise.
17811 (order_drefs): Likewise.
17812 (add_ref_to_chain): Likewise.
17813 (valid_initializer_p): Likewise.
17814 (determine_roots_comp): Likewise.
17815 * tree-pretty-print.c: Include wide-int-print.h.
17816 (dump_generic_node): Use wide-int interfaces.
17817 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17818 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17819 (move_fixed_address_to_symbol): Likewise.
17820 (move_hint_to_base): Likewise.
17821 (move_pointer_to_base): Likewise.
17822 (move_variant_to_index): Likewise.
17823 (most_expensive_mult_to_index): Likewise.
17824 (addr_to_parts): Likewise.
17825 (copy_ref_info): Likewise.
17826 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17827 (indirect_refs_may_alias_p): Likewise.
17828 (stmt_kills_ref_p_1): Likewise.
17829 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17830 * tree-ssa-ccp.c: Update comment at top of file. Include
17831 wide-int-print.h.
17832 (struct prop_value_d): Change type of mask to widest_int.
17833 (extend_mask): New function.
17834 (dump_lattice_value): Use wide-int interfaces.
17835 (get_default_value): Likewise.
17836 (set_constant_value): Likewise.
17837 (set_value_varying): Likewise.
17838 (valid_lattice_transition): Likewise.
17839 (set_lattice_value): Likewise.
17840 (value_to_double_int): Delete.
17841 (value_to_wide_int): New.
17842 (get_value_from_alignment): Use wide-int interfaces.
17843 (get_value_for_expr): Likewise.
17844 (do_dbg_cnt): Likewise.
17845 (ccp_finalize): Likewise.
17846 (ccp_lattice_meet): Likewise.
17847 (bit_value_unop_1): Use widest_ints rather than double_ints.
17848 (bit_value_binop_1): Likewise.
17849 (bit_value_unop): Use wide-int interfaces.
17850 (bit_value_binop): Likewise.
17851 (bit_value_assume_aligned): Likewise.
17852 (evaluate_stmt): Likewise.
17853 (ccp_fold_stmt): Likewise.
17854 (visit_cond_stmt): Likewise.
17855 (ccp_visit_stmt): Likewise.
17856 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17857 (constant_pointer_difference): Likewise.
17858 (associate_pointerplus): Likewise.
17859 (combine_conversions): Likewise.
17860 * tree-ssa-loop.h: Include wide-int.h.
17861 (struct tree_niter_desc): Change type of max to widest_int.
17862 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17863 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17864 (remove_redundant_iv_tests): Likewise.
17865 (canonicalize_loop_induction_variables): Likewise.
17866 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17867 (constant_multiple_of): Take a widest_int pointer instead of
17868 a double_int pointer.
17869 (get_computation_aff): Use wide-int interfaces.
17870 (ptr_difference_cost): Likewise.
17871 (difference_cost): Likewise.
17872 (get_loop_invariant_expr_id): Likewise.
17873 (get_computation_cost_at): Likewise.
17874 (iv_elimination_compare_lt): Likewise.
17875 (may_eliminate_iv): Likewise.
17876 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17877 instead of double_int.
17878 (max_loop_iterations): Likewise.
17879 (max_stmt_executions): Likewise.
17880 (estimated_stmt_executions): Likewise.
17881 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17882 (split_to_var_and_offset): Use wide-int interfaces.
17883 (determine_value_range): Likewise.
17884 (bound_difference_of_offsetted_base): Likewise.
17885 (bounds_add): Take a widest_int instead of a double_int.
17886 (number_of_iterations_ne_max): Use wide-int interfaces.
17887 (number_of_iterations_ne): Likewise.
17888 (number_of_iterations_lt_to_ne): Likewise.
17889 (assert_loop_rolls_lt): Likewise.
17890 (number_of_iterations_lt): Likewise.
17891 (number_of_iterations_le): Likewise.
17892 (number_of_iterations_cond): Likewise.
17893 (number_of_iterations_exit): Likewise.
17894 (finite_loop_p): Likewise.
17895 (derive_constant_upper_bound_assign): Likewise.
17896 (derive_constant_upper_bound): Return a widest_int.
17897 (derive_constant_upper_bound_ops): Likewise.
17898 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17899 (record_estimate): Take a widest_int rather than a double_int.
17900 (record_nonwrapping_iv): Use wide-int interfaces.
17901 (double_int_cmp): Delete.
17902 (wide_int_cmp): New.
17903 (bound_index): Take a widest_int rather than a double_int.
17904 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17905 (maybe_lower_iteration_bound): Likewise.
17906 (estimate_numbers_of_iterations_loop): Likewise.
17907 (estimated_loop_iterations): Take a widest_int pointer than than
17908 a double_int pointer.
17909 (estimated_loop_iterations_int): Use wide-int interfaces.
17910 (max_loop_iterations): Take a widest_int pointer than than
17911 a double_int pointer.
17912 (max_loop_iterations_int): Use wide-int interfaces.
17913 (max_stmt_executions): Take a widest_int pointer than than
17914 a double_int pointer.
17915 (estimated_stmt_executions): Likewise.
17916 (n_of_executions_at_most): Use wide-int interfaces.
17917 (scev_probably_wraps_p): Likewise.
17918 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17919 to real_to_integer.
17920 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17921 interfaces.
17922 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17923 double_ints. Adjust for trailing_wide_ints <3> representation.
17924 (set_nonzero_bits): Likewise.
17925 (get_range_info): Return wide_ints rather than double_ints.
17926 Adjust for trailing_wide_ints <3> representation.
17927 (get_nonzero_bits): Likewise.
17928 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17929 representation.
17930 * tree-ssanames.h (struct range_info_def): Replace min, max and
17931 nonzero_bits with a trailing_wide_ints <3>.
17932 (set_range_info): Use wide_int_refs rather than double_ints.
17933 (set_nonzero_bits): Likewise.
17934 (get_range_info): Return wide_ints rather than double_ints.
17935 (get_nonzero_bits): Likewise.
17936 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17937 * tree-ssa-pre.c (phi_translate_1): Likewise.
17938 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17939 (acceptable_pow_call): Likewise.
17940 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17941 interfaces.
17942 (vn_reference_fold_indirect): Likewise.
17943 (vn_reference_maybe_forwprop_address): Likewise.
17944 (valueize_refs_1): Likewise.
17945 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17946 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17947 tree_int_cst_lt and tree_int_cst_le.
17948 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17949 interfaces.
17950 (streamer_alloc_tree): Likewise.
17951 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17952 (streamer_write_tree_header): Likewise.
17953 (streamer_write_integer_cst): Likewise.
17954 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17955 (build_constructors): Likewise.
17956 (array_value_type): Likewise.
17957 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17958 (vect_check_gather): Likewise.
17959 * tree-vect-generic.c (build_replicated_const): Likewise.
17960 (expand_vector_divmod): Likewise.
17961 * tree-vect-loop.c (vect_transform_loop): Likewise.
17962 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17963 (vect_do_peeling_for_alignment): Likewise.
17964 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17965 * tree-vrp.c: Include wide-int.h.
17966 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17967 (extract_range_from_assert): Use wide-int interfaces.
17968 (vrp_int_const_binop): Likewise.
17969 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17970 double_int pointers.
17971 (ranges_from_anti_range): Use wide-int interfaces.
17972 (quad_int_cmp): Delete.
17973 (quad_int_pair_sort): Likewise.
17974 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17975 (extract_range_from_unary_expr_1): Likewise.
17976 (adjust_range_with_scev): Likewise.
17977 (masked_increment): Take and return wide_ints rather than double_ints.
17978 (register_edge_assert_for_2): Use wide-int interfaces.
17979 (check_array_ref): Likewise.
17980 (search_for_addr_array): Likewise.
17981 (maybe_set_nonzero_bits): Likewise.
17982 (union_ranges): Pass an integer of the correct type instead of
17983 using integer_one_node.
17984 (intersect_ranges): Likewise.
17985 (simplify_truth_ops_using_ranges): Likewise.
17986 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17987 (range_fits_type_p): Likewise.
17988 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17989 a bool.
17990 (simplify_conversion_using_ranges): Use wide-int interfaces.
17991 (simplify_float_conversion_using_ranges): Likewise.
17992 (vrp_finalize): Likewise.
17993 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17994 (gimple_stringops_transform): Likewise.
17995 * varasm.c (decode_addr_const): Likewise.
17996 (const_hash_1): Likewise.
17997 (const_rtx_hash_1): Likewise
17998 (output_constant): Likewise.
17999 (array_size_for_constructor): Likewise.
18000 (output_constructor_regular_field): Likewise.
18001 (output_constructor_bitfield): Likewise.
18002 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
18003 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
18004 GENERATOR_FILEs.
18005 * gencheck.c: Define BITS_PER_UNIT.
18006 * wide-int.cc: New.
18007 * wide-int.h: New.
18008 * wide-int-print.cc: New.
18009 * wide-int-print.h: New.
18010
18011 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18012
18013 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
18014
18015 2014-05-06 Richard Biener <rguenther@suse.de>
18016
18017 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18018 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18019 (TODO_verify_all): Adjust.
18020 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18021 TODO_verify_stmts and TODO_verify_rtl_sharing.
18022 * bb-reorder.c: Likewise.
18023 * cfgexpand.c: Likewise.
18024 * cprop.c: Likewise.
18025 * cse.c: Likewise.
18026 * function.c: Likewise.
18027 * fwprop.c: Likewise.
18028 * gcse.c: Likewise.
18029 * gimple-ssa-isolate-paths.c: Likewise.
18030 * gimple-ssa-strength-reduction.c: Likewise.
18031 * ipa-split.c: Likewise.
18032 * loop-init.c: Likewise.
18033 * loop-unroll.c: Likewise.
18034 * lower-subreg.c: Likewise.
18035 * modulo-sched.c: Likewise.
18036 * postreload-gcse.c: Likewise.
18037 * predict.c: Likewise.
18038 * recog.c: Likewise.
18039 * sched-rgn.c: Likewise.
18040 * store-motion.c: Likewise.
18041 * tracer.c: Likewise.
18042 * trans-mem.c: Likewise.
18043 * tree-call-cdce.c: Likewise.
18044 * tree-cfg.c: Likewise.
18045 * tree-cfgcleanup.c: Likewise.
18046 * tree-complex.c: Likewise.
18047 * tree-eh.c: Likewise.
18048 * tree-emutls.c: Likewise.
18049 * tree-if-conv.c: Likewise.
18050 * tree-into-ssa.c: Likewise.
18051 * tree-loop-distribution.c: Likewise.
18052 * tree-object-size.c: Likewise.
18053 * tree-parloops.c: Likewise.
18054 * tree-pass.h: Likewise.
18055 * tree-sra.c: Likewise.
18056 * tree-ssa-ccp.c: Likewise.
18057 * tree-ssa-copy.c: Likewise.
18058 * tree-ssa-copyrename.c: Likewise.
18059 * tree-ssa-dce.c: Likewise.
18060 * tree-ssa-dom.c: Likewise.
18061 * tree-ssa-dse.c: Likewise.
18062 * tree-ssa-forwprop.c: Likewise.
18063 * tree-ssa-ifcombine.c: Likewise.
18064 * tree-ssa-loop-ch.c: Likewise.
18065 * tree-ssa-loop-ivcanon.c: Likewise.
18066 * tree-ssa-loop.c: Likewise.
18067 * tree-ssa-math-opts.c: Likewise.
18068 * tree-ssa-phiopt.c: Likewise.
18069 * tree-ssa-phiprop.c: Likewise.
18070 * tree-ssa-pre.c: Likewise.
18071 * tree-ssa-reassoc.c: Likewise.
18072 * tree-ssa-sink.c: Likewise.
18073 * tree-ssa-strlen.c: Likewise.
18074 * tree-ssa-tail-merge.c: Likewise.
18075 * tree-ssa-uncprop.c: Likewise.
18076 * tree-switch-conversion.c: Likewise.
18077 * tree-tailcall.c: Likewise.
18078 * tree-vect-generic.c: Likewise.
18079 * tree-vectorizer.c: Likewise.
18080 * tree-vrp.c: Likewise.
18081 * tsan.c: Likewise.
18082 * var-tracking.c: Likewise.
18083 * bt-load.c: Likewise.
18084 * cfgcleanup.c: Likewise.
18085 * combine-stack-adj.c: Likewise.
18086 * combine.c: Likewise.
18087 * compare-elim.c: Likewise.
18088 * config/epiphany/resolve-sw-modes.c: Likewise.
18089 * config/i386/i386.c: Likewise.
18090 * config/mips/mips.c: Likewise.
18091 * config/s390/s390.c: Likewise.
18092 * config/sh/sh_treg_combine.cc: Likewise.
18093 * config/sparc/sparc.c: Likewise.
18094 * dce.c: Likewise.
18095 * dse.c: Likewise.
18096 * final.c: Likewise.
18097 * ifcvt.c: Likewise.
18098 * mode-switching.c: Likewise.
18099 * passes.c: Likewise.
18100 * postreload.c: Likewise.
18101 * ree.c: Likewise.
18102 * reg-stack.c: Likewise.
18103 * regcprop.c: Likewise.
18104 * regrename.c: Likewise.
18105 * web.c: Likewise.
18106
18107 2014-05-06 Richard Biener <rguenther@suse.de>
18108
18109 PR middle-end/61070
18110 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18111 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18112
18113 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18114
18115 PR ipa/60965
18116 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18117
18118 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18119 Tom de Vries <tom@codesourcery.com>
18120
18121 * target.def (call_fusage_contains_non_callee_clobbers): New
18122 DEFHOOKPOD.
18123 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18124 Hooks to @menu.
18125 (@node Miscellaneous Register Hooks): New node.
18126 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18127 * doc/tm.texi: Regenerate.
18128
18129 2014-05-05 Marek Polacek <polacek@redhat.com>
18130
18131 PR driver/61065
18132 * opts.c (common_handle_option): Call error_at instead of warning_at.
18133
18134 2014-05-05 Richard Biener <rguenther@suse.de>
18135
18136 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18137 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18138 under the TODO_verify_il umbrella.
18139
18140 2014-05-05 Richard Biener <rguenther@suse.de>
18141
18142 * passes.c (execute_function_todo): Move TODO_verify_flow under
18143 the TODO_verify_ul umbrella.
18144
18145 2014-05-05 Richard Biener <rguenther@suse.de>
18146
18147 PR middle-end/61010
18148 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18149 X & CST away from a CST that is the mask of a mode.
18150
18151 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18152
18153 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18154 int argument to enum machine_mode.
18155 (picochip_class_max_nregs): Ditto.
18156 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18157 (picochip_class_max_nregs): Ditto.
18158
18159 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18160
18161 * target.def: Add new target hook.
18162 * doc/tm.texi: Regenerate.
18163 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18164 * targhooks.c (default_keep_leaf_when_profiled): New function.
18165
18166 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18167 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18168
18169 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18170
18171 PR tree-optimization/60363
18172 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18173 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18174 (update_destination_phis): New parameter.
18175 (create_edge_and_update_destination_phis): Ditto.
18176 (ssa_fix_duplicate_block_edges): Pass new arguments.
18177 (thread_single_edge): Ditto.
18178
18179 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18180
18181 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18182 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18183 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18184 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18185 Use RS6000_BTM_HARD_FLOAT.
18186 (BU_MISC_2): Likewise.
18187 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18188 RS6000_BTM_HARD_FLOAT.
18189 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18190 is explicitly used.
18191 (rs6000_invalid_builtin): Add hard floating builtin support.
18192 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18193 hard float builtins.
18194 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18195
18196 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18197
18198 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18199 Add missing function* argument.
18200
18201 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18202
18203 * lra-constraints.c (valid_address_p): Move earlier in file.
18204 Add a constraint argument to the address_info version.
18205 (satisfies_memory_constraint_p): New function.
18206 (satisfies_address_constraint_p): Likewise.
18207 (process_alt_operands, curr_insn_transform): Use them.
18208 (process_address): Pass the constraint to valid_address_p when
18209 checking address operands.
18210
18211 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18212
18213 * config/mips/mips.c (mips_isa_rev): New variable.
18214 (mips_set_architecture): Set it.
18215 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18216 from mips_isa_rev.
18217 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18218 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18219 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18220 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18221 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18222 conditions in terms of mips_isa_rev.
18223 (mips_isa_rev): Declare.
18224
18225 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18226
18227 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18228 (prob_unlikely, prob_likely): Make variables const.
18229
18230 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18231
18232 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18233
18234 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18235
18236 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18237
18238 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18239
18240 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18241 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18242 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18243 functions.
18244 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18245 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18246 sh_pass_in_reg_p.
18247 Replace usage of ROUND_REG with sh_round_reg.
18248 Use CEIL instead of ROUND_ADVANCE.
18249
18250 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18251
18252 PR target/61026
18253 * config/sh/sh.c: Include stdlib headers before everything else.
18254
18255 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18256
18257 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18258 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18259 (gimplify_adjust_omp_clauses): Simd region is never
18260 directly nested in combined parallel. Instead, for linear
18261 with copyin/copyout, if in combined for simd loop, make decl
18262 firstprivate/lastprivate on OMP_FOR.
18263 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18264 expand_omp_for_static_chunk): When setting endvar, also set
18265 fd->loop.v to the same value.
18266
18267 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18268
18269 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18270
18271 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18272
18273 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18274 expression.
18275
18276 2014-05-02 Marek Polacek <polacek@redhat.com>
18277
18278 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18279
18280 2014-05-02 Kito Cheng <kito@0xlab.org>
18281
18282 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18283 to a C expression marco.
18284 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18285 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18286 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18287 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18288 HONOR_REG_ALLOC_ORDER.
18289 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18290
18291 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18292
18293 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18294
18295 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18296
18297 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18298
18299 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18300
18301 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18302 (convert_scalar_cond_reduction): Likewise.
18303 (predicate_scalar_phi): Add recognition and transformation
18304 of simple conditioanl reduction to be vectorizable.
18305
18306 2014-05-01 Marek Polacek <polacek@redhat.com>
18307
18308 PR c/43245
18309 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18310
18311 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18312
18313 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18314 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18315 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18316 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18317 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18318 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18319 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18320 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18321
18322 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18323
18324 * config/arc/arc.opt (mlra): Move comment above option name
18325 to avoid mis-parsing as language options.
18326
18327 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18328
18329 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18330 * config/sol2.h: ... here.
18331 * config/sol2-10.h: Remove.
18332
18333 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18334 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18335 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18336 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18337 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18338 * config/sol2.h: ... here.
18339 (SECTION_NAME_FORMAT): Don't redefine.
18340 (STARTFILE_ARCH32_SPEC): Rename to ...
18341 (STARTFILE_ARCH_SPEC): ... this.
18342 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18343 * config/sparc/sol2.h: ... here.
18344 (SECTION_NAME_FORMAT): Don't undef.
18345 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18346 (SUBTARGET_EXTRA_SPECS): Remove.
18347 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18348
18349 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18350 (MD_STARTFILE_PREFIX): Remove.
18351 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18352 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18353 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18354 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18355 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18356 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18357 * config/i386/sol2.h: ... here.
18358 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18359 * config/i386/sol2-bi.h: Remove.
18360 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18361 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18362
18363 * config/i386/t-sol2-64: Rename to ...
18364 * config/i386/t-sol2: ... this.
18365 * config/sparc/t-sol2-64: Rename to ...
18366 * config/sparc/t-sol2: ... this.
18367
18368 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18369 sol2_tm_file_head, sol2_tm_file_tail.
18370 Include ${cpu_type}/sol2.h before sol2.h.
18371 Remove sol2-10.h.
18372 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18373 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18374 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18375 Reflect i386/t-sol2-64 renaming.
18376 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18377 Reflect sparc/t-sol2-64 renaming.
18378
18379 2014-04-30 Richard Biener <rguenther@suse.de>
18380
18381 * passes.c (execute_function_todo): Move TODO_verify_stmts
18382 and TODO_verify_ssa under the TODO_verify_il umbrella.
18383 * tree-ssa.h (verify_ssa): Adjust prototype.
18384 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18385 we should verify SSA operands.
18386 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18387 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18388 whether we should verify whether not throwing stmts have EH info.
18389 * graphite-scop-detection.c (create_sese_edges): Adjust.
18390 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18391 * tree-eh.c (lower_try_finally_switch): Do not add the
18392 default case label twice.
18393
18394 2014-04-30 Marek Polacek <polacek@redhat.com>
18395
18396 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18397 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18398 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18399 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18400
18401 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18402
18403 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18404 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18405 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18406 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18407 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18408 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18409 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18410 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18411
18412 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18413
18414 * tree-cfg.c (dump_function_to_file): Dump the return type of
18415 functions, in a line to itself before the function body, mimicking
18416 the layout of a C function.
18417
18418 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18419
18420 PR tree-optimization/60971
18421 * tree-tailcall.c (process_assignment): Reject conversions which
18422 reduce precision.
18423
18424 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18425
18426 * calls.c (initialize_argument_information): Always treat
18427 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18428 (expand_call): Likewise.
18429 (emit_library_call_calue_1): Likewise.
18430 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18431 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18432 code accordingly.
18433
18434 2014-04-29 Nick Clifton <nickc@redhat.com>
18435
18436 * config/msp430/msp430.md (umulsidi): Fix typo.
18437 (mulhisi3): Enable even inside interrupt handlers.
18438 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18439 bigger return address pushed in large mode.
18440
18441 2014-04-29 Nick Clifton <nickc@redhat.com>
18442
18443 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18444 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18445 available modes.
18446 * config/m32r/m32r.c (init_reg_tables): Likewise.
18447 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18448 enum to hold the modes.
18449
18450 2014-04-29 Richard Biener <rguenther@suse.de>
18451
18452 * dominance.c (free_dominance_info): Add overload with
18453 function parameter.
18454 (dom_info_state): Likewise.
18455 (dom_info_available_p): Likewise.
18456 * basic-block.h (free_dominance_info, dom_info_state,
18457 dom_info_available_p): Declare overloads.
18458 * passes.c (execute_function_todo): Verify that verifiers
18459 don't change dominator info state. Drop dominator info
18460 for IPA pass invocations.
18461 * cgraph.c (release_function_body): Restore asserts that
18462 dominator information is released.
18463
18464 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18465
18466 * doc/invoke.texi: Fix typo.
18467 * tree-vrp.c: Fix typos.
18468 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18469
18470 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18471
18472 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18473
18474 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18475
18476 * config/aarch64/aarch64-builtins.c
18477 (aarch64_types_storestruct_lane_qualifiers): New.
18478 (TYPES_STORESTRUCT_LANE): Likewise.
18479 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18480 (st3_lane): Likewise.
18481 (st4_lane): Likewise.
18482 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18483 (vec_store_lanesci_lane<mode>): Likewise.
18484 (vec_store_lanesxi_lane<mode>): Likewise.
18485 (aarch64_st2_lane<VQ:mode>): Likewise.
18486 (aarch64_st3_lane<VQ:mode>): Likewise.
18487 (aarch64_st4_lane<VQ:mode>): Likewise.
18488 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18489 * config/aarch64/arm_neon.h
18490 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18491 use new macro arguments.
18492 (__ST3_LANE_FUNC): Likewise.
18493 (__ST4_LANE_FUNC): Likewise.
18494 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18495 (V_THREE_ELEM): Likewise.
18496 (V_FOUR_ELEM): Likewise.
18497
18498 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18499
18500 * doc/gimple.texi: Replace the description of the now-defunct
18501 union gimple_statement_d with a diagram showing the
18502 gimple_statement_base class hierarchy and its relationships to
18503 the GSS_ and GIMPLE_ enums.
18504
18505 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18506
18507 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18508 * config/aarch64/aarch64.c
18509 (aarch64_cannot_change_mode_class): Weaken conditions.
18510 (aarch64_modes_tieable_p): New.
18511 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18512
18513 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18514
18515 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18516 (loadsync_<mode>): Change mode.
18517 (load_quadpti, store_quadpti): New.
18518 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18519 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18520
18521 2014-04-28 Martin Jambor <mjambor@suse.cz>
18522
18523 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18524 same alias type as the original statement.
18525 (subreplacement_assignment_data): New type.
18526 (handle_unscalarized_data_in_subtree): New type of parameter,
18527 generate new memory accesses with same alias type as the original
18528 statement.
18529 (load_assign_lhs_subreplacements): Likewise.
18530 (sra_modify_constructor_assign): Generate new memory accesses with
18531 same alias type as the original statement.
18532
18533 2014-04-28 Richard Biener <rguenther@suse.de>
18534
18535 * tree-pass.h (TODO_verify_il): Define.
18536 (TODO_verify_all): Complete properly.
18537 * passes.c (execute_function_todo): Move existing loop-closed
18538 SSA verification under TODO_verify_il.
18539 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18540 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18541 Fix tree sharing issue.
18542
18543 2014-04-28 Richard Biener <rguenther@suse.de>
18544
18545 PR middle-end/60092
18546 * builtins.def (DEF_C11_BUILTIN): Add.
18547 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18548 * coretypes.h (enum function_class): Add function_c11_misc.
18549 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18550 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18551 (call_may_clobber_ref_p_1): Likewise.
18552 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18553 (mark_all_reaching_defs_necessary_1): Likewise.
18554 (propagate_necessity): Likewise.
18555 (eliminate_unnecessary_stmts): Likewise.
18556 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18557
18558 2014-04-28 Richard Biener <rguenther@suse.de>
18559
18560 * tree-vrp.c (vrp_var_may_overflow): Remove.
18561 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18562 with overflow immediately bump to one before that value and
18563 let iteration figure out overflow status.
18564
18565 2014-04-28 Richard Biener <rguenther@suse.de>
18566
18567 * configure.ac: Do valgrind header checks unconditionally.
18568 Add --enable-valgrind-annotations.
18569 * system.h: Guard valgrind header inclusion with
18570 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18571 * alloc-pool.c (pool_alloc, pool_free): Use
18572 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18573 to guard possibly dead code.
18574 * config.in: Regenerated.
18575 * configure: Likewise.
18576
18577 2014-04-28 Jeff Law <law@redhat.com>
18578
18579 PR tree-optimization/60902
18580 * tree-ssa-threadedge.c
18581 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18582 over real defs when invalidating outputs from statements that do not
18583 produce useful outputs for threading.
18584
18585 2014-04-28 Richard Biener <rguenther@suse.de>
18586
18587 PR tree-optimization/60979
18588 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18589 SCOPs that end in a block with a successor with abnormal
18590 predecessors.
18591
18592 2014-04-28 Richard Biener <rguenther@suse.de>
18593
18594 * tree-pass.h (execute_pass_list): Adjust prototype.
18595 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18596 (do_per_function): Change callback signature, push all actual
18597 work to the callbals.
18598 (do_per_function_toporder): Likewise.
18599 (execute_function_dump): Adjust.
18600 (execute_function_todo): Likewise.
18601 (clear_last_verified): Likewise.
18602 (verify_curr_properties): Likewise.
18603 (update_properties_after_pass): Likewise.
18604 (execute_pass_list_1): Split out from ...
18605 (execute_pass_list): ... here. Adjust.
18606 (execute_ipa_pass_list): Likewise.
18607 * cgraphunit.c (cgraph_add_new_function): Adjust.
18608 (analyze_function): Likewise.
18609 (expand_function): Likewise.
18610 * cgraph.c (release_function_body): Free dominance info
18611 here instead of asserting it was magically freed elsewhere.
18612
18613 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18614
18615 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18616 * configure: Regenerate.
18617 * config/sparc/sparc.opt (muser-mode): New option.
18618 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18619 for LEON3.
18620 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18621 * doc/invoke.texi (SPARC options): Document -muser-mode.
18622
18623 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18624
18625 * cselib.c (find_slot_memmode): Delete.
18626 (cselib_hasher): Change compare_type to a struct.
18627 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18628 constants.
18629 (preserve_constants_and_equivs): Adjust for new compare_type.
18630 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18631 (wrap_constant): Delete.
18632 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18633
18634 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18635
18636 * doc/install.texi (Building with profile feedback): Remove
18637 outdated sentence.
18638
18639 2014-04-26 Tom de Vries <tom@codesourcery.com>
18640
18641 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18642 array accesses.
18643
18644 2014-04-25 Cary Coutant <ccoutant@google.com>
18645
18646 PR debug/60929
18647 * dwarf2out.c (should_move_die_to_comdat): A type definition
18648 can contain a subprogram definition, but don't move it to a
18649 comdat unit.
18650 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18651 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18652 from original DIE.
18653 (clone_tree_hash): Rename to...
18654 (clone_tree_partial): ...this; change callers. Copy
18655 DW_TAG_subprogram DIEs as declarations.
18656 (copy_decls_walk): Don't copy children of a declaration into a
18657 type unit.
18658
18659 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18660
18661 PR target/60969
18662 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18663 alternative 12.
18664
18665 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18666
18667 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18668 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18669 reg for long_call.
18670 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18671 restriction.
18672
18673 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18674
18675 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18676
18677 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18678
18679 PR tree-optimization/60930
18680 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18681 creating a multiply candidate by folding two constant
18682 multiplicands when the result overflows.
18683
18684 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18685
18686 PR tree-optimization/60960
18687 * tree-vect-generic.c (expand_vector_operation): Only call
18688 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18689
18690 2014-04-25 Tom de Vries <tom@codesourcery.com>
18691
18692 * expr.c (clobber_reg_mode): New function.
18693 * expr.h (clobber_reg): New function.
18694
18695 2014-04-25 Tom de Vries <tom@codesourcery.com>
18696
18697 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18698 clobbers.
18699
18700 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18701 Tom de Vries <tom@codesourcery.com>
18702
18703 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18704 handle.
18705 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18706 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18707 new argument to find_all_hard_reg_sets call.
18708
18709 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18710
18711 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18712 Use HOST_WIDE_INT_C for mask literal.
18713 (aarch_rev16_shleft_mask_imm_p): Likewise.
18714
18715 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18716
18717 PR target/60941
18718 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18719
18720 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18721
18722 PR preprocessor/56540
18723 * config/i386/i386-c.c (ix86_target_macros): Define
18724 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18725
18726 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18727
18728 * configure.ac (tga_func): Remove.
18729 (LIB_TLS_SPEC): Remove.
18730 * configure: Regenerate.
18731 * config.in: Regenerate.
18732 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18733
18734 2014-04-25 Richard Biener <rguenther@suse.de>
18735
18736 PR ipa/60912
18737 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18738 call stmt use/clobber sets during stmt walk instead of
18739 walking the possibly incomplete set of caller edges.
18740
18741 2014-04-25 Richard Biener <rguenther@suse.de>
18742
18743 PR ipa/60911
18744 * passes.c (apply_ipa_transforms): Inline into only caller ...
18745 (execute_one_pass): ... here. Properly bring in function
18746 bodies for nodes we want to apply IPA transforms to.
18747
18748 2014-04-24 Cong Hou <congh@google.com>
18749
18750 PR tree-optimization/60896
18751 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18752 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18753 (vect_mark_pattern_stmts): Set the def type of all statements in
18754 PATTERN_DEF_SEQ as vect_internal_def.
18755
18756 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18757
18758 * doc/extend.texi (PowerPC Built-in Functions): Document new
18759 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18760 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18761
18762 * config/rs6000/predicates.md (const_0_to_3_operand): New
18763 predicate to match 0..3 integer constants.
18764
18765 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18766 to support adding miscellaneous builtin functions.
18767 (BU_DFP_MISC_2): Likewise.
18768 (BU_P7_MISC_1): Likewise.
18769 (BU_P7_MISC_2): Likewise.
18770 (BU_P8V_MISC_3): Likewise.
18771 (BU_MISC_1): Likewise.
18772 (BU_MISC_2): Likewise.
18773 (DIVWE): Add extended divide builtin functions.
18774 (DIVWEO): Likewise.
18775 (DIVWEU): Likewise.
18776 (DIVWEUO): Likewise.
18777 (DIVDE): Likewise.
18778 (DIVDEO): Likewise.
18779 (DIVDEU): Likewise.
18780 (DIVDEUO): Likewise.
18781 (DXEX): Add decimal floating-point builtin functions.
18782 (DXEXQ): Likewise.
18783 (DDEDPD): Likewise.
18784 (DDEDPDQ): Likewise.
18785 (DENBCD): Likewise.
18786 (DENBCDQ): Likewise.
18787 (DIEX): Likewise.
18788 (DIEXQ): Likewise.
18789 (DSCLI): Likewise.
18790 (DSCLIQ): Likewise.
18791 (DSCRI): Likewise.
18792 (DSCRIQ): Likewise.
18793 (CDTBCD): Add new BCD builtin functions.
18794 (CBCDTD): Likewise.
18795 (ADDG6S): Likewise.
18796 (BCDADD): Likewise.
18797 (BCDADD_LT): Likewise.
18798 (BCDADD_EQ): Likewise.
18799 (BCDADD_GT): Likewise.
18800 (BCDADD_OV): Likewise.
18801 (BCDSUB): Likewise.
18802 (BCDSUB_LT): Likewise.
18803 (BCDSUB_EQ): Likewise.
18804 (BCDSUB_GT): Likewise.
18805 (BCDSUB_OV): Likewise.
18806 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18807 (UNPACK_TD): Likewise.
18808 (PACK_TF): Likewise.
18809 (UNPACK_TF): Likewise.
18810 (UNPACK_TF_0): Likewise.
18811 (UNPACK_TF_1): Likewise.
18812 (PACK_V1TI): Likewise.
18813 (UNPACK_V1TI): Likewise.
18814
18815 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18816 support for decimal floating point builtin functions.
18817 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18818 functions that take constant arguments.
18819 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18820 (rs6000_init_builtins): Setup long double, _Decimal64, and
18821 _Decimal128 types for new builtin functions.
18822 (builtin_function_type): Set the unsigned flags appropriately for
18823 the new builtin functions.
18824 (rs6000_opt_masks): Add support for decimal floating point builtin
18825 functions.
18826
18827 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18828 floating point builtin functions.
18829 (RS6000_BTM_COMMON): Likewise.
18830 (RS6000_BTI_long_double): Likewise.
18831 (RS6000_BTI_dfloat64): Likewise.
18832 (RS6000_BTI_dfloat128): Likewise.
18833 (long_double_type_internal_node): Likewise.
18834 (dfloat64_type_internal_node): Likewise.
18835 (dfloat128_type_internal_node): Likewise.
18836
18837 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18838 2.07 bcd arithmetic instructions.
18839 (UNSPEC_BCDSUB): Likewise.
18840 (UNSPEC_BCD_OVERFLOW): Likewise.
18841 (UNSPEC_BCD_ADD_SUB): Likewise.
18842 (bcd_add_sub): Likewise.
18843 (BCD_TEST): Likewise.
18844 (bcd<bcd_add_sub>): Likewise.
18845 (bcd<bcd_add_sub>_test): Likewise.
18846 (bcd<bcd_add_sub>_test2): Likewise.
18847 (bcd<bcd_add_sub>_<code>): Likewise.
18848 (peephole2 for combined bcd ops): Likewise.
18849
18850 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18851 decimal floating point builtin functions.
18852 (UNSPEC_DENBCD): Likewise.
18853 (UNSPEC_DXEX): Likewise.
18854 (UNSPEC_DIEX): Likewise.
18855 (UNSPEC_DSCLI): Likewise.
18856 (UNSPEC_DSCRI): Likewise.
18857 (D64_D128): Likewise.
18858 (dfp_suffix): Likewise.
18859 (dfp_ddedpd_<mode>): Likewise.
18860 (dfp_denbcd_<mode>): Likewise.
18861 (dfp_dxex_<mode>): Likewise.
18862 (dfp_diex_<mode>): Likewise.
18863 (dfp_dscli_<mode>): Likewise.
18864 (dfp_dscri_<mode>): Likewise.
18865
18866 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18867 builtin functions.
18868 (UNSPEC_CDTBCD): Likewise.
18869 (UNSPEC_CBCDTD): Likewise.
18870 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18871 (UNSPEC_DIVEO): Likewise.
18872 (UNSPEC_DIVEU): Likewise.
18873 (UNSPEC_DIVEUO): Likewise.
18874 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18875 pack/unpack 128-bit types.
18876 (UNSPEC_PACK_128BIT): Likewise.
18877 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18878 (udiv<mode>3): Use idiv_ldiv mode attribute.
18879 (div<mode>3): Likewise.
18880 (addg6s): Add new BCD builtin functions.
18881 (cdtbcd): Likewise.
18882 (cbcdtd): Likewise.
18883 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18884 (div_extend): Likewise.
18885 (div<div_extend>_<mode>"): Likewise.
18886 (FP128_64): Add support for new builtin functions to pack/unpack
18887 128-bit types.
18888 (unpack<mode>): Likewise.
18889 (unpacktf_0): Likewise.
18890 (unpacktf_1): Likewise.
18891 (unpack<mode>_dm): Likewise.
18892 (unpack<mode>_nodm): Likewise.
18893 (pack<mode>): Likewise.
18894 (unpackv1ti): Likewise.
18895 (packv1ti): Likewise.
18896
18897 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18898
18899 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18900 is disabled.
18901
18902 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18903
18904 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18905 * gimplify.c (omp_is_private): Change last argument's type to int.
18906 Only diagnose lastprivate if the simd argument is 1, only diagnose
18907 linear if the simd argument is 2.
18908 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18909 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18910 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18911 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18912 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18913 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18914 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18915 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18916 * tree-nested.c (convert_nonlocal_omp_clauses,
18917 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18918
18919 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18920
18921 PR target/60822
18922 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18923 operand 1.
18924
18925 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18926
18927 * flag-types.h (enum ivar_visibility): Add.
18928
18929 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18930
18931 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18932 function * argument.
18933
18934 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18935
18936 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18937
18938 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18939 Tom de Vries <tom@codesourcery.com>
18940
18941 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18942 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18943 reg-note.
18944 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18945 * emit-rtl.c (try_split): Same.
18946
18947 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18948 Tom de Vries <tom@codesourcery.com>
18949
18950 * common.opt (fuse-caller-save): New option.
18951
18952 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18953
18954 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18955 elements for big-endian.
18956
18957 2014-04-24 Richard Biener <rguenther@suse.de>
18958
18959 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18960 during TER and instead use the sepops interface for expanding
18961 non-GIMPLE_SINGLE_RHS.
18962
18963 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18964
18965 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18966 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18967
18968 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18969
18970 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18971 assembler 64-bit option.
18972 * configure: Regenerate.
18973
18974 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18975
18976 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18977 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18978 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18979 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18980 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18981
18982 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18983
18984 * config/aarch64/aarch64-builtins.c
18985 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18986 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18987 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18988 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18989 builtins.
18990 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18991 (Vrevsuff): New mode attribute.
18992
18993 2014-04-24 Terry Guo <terry.guo@arm.com>
18994
18995 * config/arm/arm.h (machine_function): Define variable
18996 after_arm_reorg here.
18997 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18998 (arm_split_constant): Update the way to access variable
18999 after_arm_reorg.
19000 (arm_reorg): Ditto.
19001 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
19002
19003 2014-04-23 Tom de Vries <tom@codesourcery.com>
19004
19005 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
19006
19007 2014-04-23 David Malcolm <dmalcolm@redhat.com>
19008
19009 * is-a.h: Update comments to reflect the following changes to the
19010 "pointerness" of the API, making the template parameter match the
19011 return type, allowing use of is-a.h with typedefs of pointers.
19012 (is_a_helper::cast): Return a T rather then a pointer to a T, so
19013 that the return type matches the parameter to the is_a_helper.
19014 (as_a): Likewise.
19015 (dyn_cast): Likewise.
19016
19017 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19018 pointer from the is-a.h API.
19019
19020 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19021 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19022 is-a.h API.
19023 (is_a_helper <varpool_node>::test): Likewise, convert to...
19024 (is_a_helper <varpool_node *>::test): ...this.
19025
19026 (varpool_first_variable): Update for removal of implicit pointer
19027 from the is-a.h API.
19028 (varpool_next_variable): Likewise.
19029 (varpool_first_static_initializer): Likewise.
19030 (varpool_next_static_initializer): Likewise.
19031 (varpool_first_defined_variable): Likewise.
19032 (varpool_next_defined_variable): Likewise.
19033 (cgraph_first_defined_function): Likewise.
19034 (cgraph_next_defined_function): Likewise.
19035 (cgraph_first_function): Likewise.
19036 (cgraph_next_function): Likewise.
19037 (cgraph_first_function_with_gimple_body): Likewise.
19038 (cgraph_next_function_with_gimple_body): Likewise.
19039 (cgraph_alias_target): Likewise.
19040 (varpool_alias_target): Likewise.
19041 (cgraph_function_or_thunk_node): Likewise.
19042 (varpool_variable_node): Likewise.
19043 (symtab_real_symbol_p): Likewise.
19044 * cgraphunit.c (referred_to_p): Likewise.
19045 (analyze_functions): Likewise.
19046 (handle_alias_pairs): Likewise.
19047 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19048 * gimple-ssa.h (gimple_vuse_op): Likewise.
19049 (gimple_vdef_op): Likewise.
19050 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19051 * gimple.c (gimple_build_asm_1): Likewise.
19052 (gimple_build_try): Likewise.
19053 (gimple_build_resx): Likewise.
19054 (gimple_build_eh_dispatch): Likewise.
19055 (gimple_build_omp_for): Likewise.
19056 (gimple_omp_for_set_clauses): Likewise.
19057
19058 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19059 (is_a_helper <gimple_statement_asm *>::test): ...this.
19060 (is_a_helper <gimple_statement_bind>::test): Convert to...
19061 (is_a_helper <gimple_statement_bind *>::test): ...this.
19062 (is_a_helper <gimple_statement_call>::test): Convert to...
19063 (is_a_helper <gimple_statement_call *>::test): ...this.
19064 (is_a_helper <gimple_statement_catch>::test): Convert to...
19065 (is_a_helper <gimple_statement_catch *>::test): ...this.
19066 (is_a_helper <gimple_statement_resx>::test): Convert to...
19067 (is_a_helper <gimple_statement_resx *>::test): ...this.
19068 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19069 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19070 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19071 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19072 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19073 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19074 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19075 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19076 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19077 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19078 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19079 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19080 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19081 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19082 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19083 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19084 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19085 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19086 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19087 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19088 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19089 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19090 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19091 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19092 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19093 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19094 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19095 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19096 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19097 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19098 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19099 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19100 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19101 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19102 (is_a_helper <gimple_statement_phi>::test): Convert to...
19103 (is_a_helper <gimple_statement_phi *>::test): ...this.
19104 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19105 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19106 (is_a_helper <gimple_statement_try>::test): Convert to...
19107 (is_a_helper <gimple_statement_try *>::test): ...this.
19108 (is_a_helper <gimple_statement_wce>::test): Convert to...
19109 (is_a_helper <gimple_statement_wce *>::test): ...this.
19110 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19111 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19112 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19113 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19114 (is_a_helper <const gimple_statement_call>::test): Convert to...
19115 (is_a_helper <const gimple_statement_call *>::test): ...this.
19116 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19117 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19118 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19119 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19120 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19121 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19122 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19123 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19124 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19125 Convert to...
19126 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19127 ...this.
19128 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19129 Convert to...
19130 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19131 ...this.
19132 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19133 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19134 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19135 to...
19136 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19137 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19138 to...
19139 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19140 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19141 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19142 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19143 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19144 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19145 to...
19146 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19147 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19148 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19149 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19150 to...
19151 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19152 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19153 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19154 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19155 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19156 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19157 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19158 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19159 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19160 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19161 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19162 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19163 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19164 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19165 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19166 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19167 to...
19168 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19169 ...this.
19170 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19171 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19172
19173 (gimple_use_ops): Update for removal of implicit pointer from the
19174 is-a.h API.
19175 (gimple_set_use_ops): Likewise.
19176 (gimple_vuse): Likewise.
19177 (gimple_vdef): Likewise.
19178 (gimple_vuse_ptr): Likewise.
19179 (gimple_vdef_ptr): Likewise.
19180 (gimple_set_vuse): Likewise.
19181 (gimple_set_vdef): Likewise.
19182 (gimple_omp_return_set_lhs): Likewise.
19183 (gimple_omp_return_lhs): Likewise.
19184 (gimple_omp_return_lhs_ptr): Likewise.
19185 (gimple_call_fntype): Likewise.
19186 (gimple_call_set_fntype): Likewise.
19187 (gimple_call_set_internal_fn): Likewise.
19188 (gimple_call_use_set): Likewise.
19189 (gimple_call_clobber_set): Likewise.
19190 (gimple_bind_vars): Likewise.
19191 (gimple_bind_set_vars): Likewise.
19192 (gimple_bind_body_ptr): Likewise.
19193 (gimple_bind_set_body): Likewise.
19194 (gimple_bind_add_stmt): Likewise.
19195 (gimple_bind_block): Likewise.
19196 (gimple_bind_set_block): Likewise.
19197 (gimple_asm_ninputs): Likewise.
19198 (gimple_asm_noutputs): Likewise.
19199 (gimple_asm_nclobbers): Likewise.
19200 (gimple_asm_nlabels): Likewise.
19201 (gimple_asm_input_op): Likewise.
19202 (gimple_asm_input_op_ptr): Likewise.
19203 (gimple_asm_output_op): Likewise.
19204 (gimple_asm_output_op_ptr): Likewise.
19205 (gimple_asm_set_output_op): Likewise.
19206 (gimple_asm_clobber_op): Likewise.
19207 (gimple_asm_set_clobber_op): Likewise.
19208 (gimple_asm_label_op): Likewise.
19209 (gimple_asm_set_label_op): Likewise.
19210 (gimple_asm_string): Likewise.
19211 (gimple_catch_types): Likewise.
19212 (gimple_catch_types_ptr): Likewise.
19213 (gimple_catch_handler_ptr): Likewise.
19214 (gimple_catch_set_types): Likewise.
19215 (gimple_catch_set_handler): Likewise.
19216 (gimple_eh_filter_types): Likewise.
19217 (gimple_eh_filter_types_ptr): Likewise.
19218 (gimple_eh_filter_failure_ptr): Likewise.
19219 (gimple_eh_filter_set_types): Likewise.
19220 (gimple_eh_filter_set_failure): Likewise.
19221 (gimple_eh_must_not_throw_fndecl): Likewise.
19222 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19223 (gimple_eh_else_n_body_ptr): Likewise.
19224 (gimple_eh_else_e_body_ptr): Likewise.
19225 (gimple_eh_else_set_n_body): Likewise.
19226 (gimple_eh_else_set_e_body): Likewise.
19227 (gimple_try_eval_ptr): Likewise.
19228 (gimple_try_cleanup_ptr): Likewise.
19229 (gimple_try_set_eval): Likewise.
19230 (gimple_try_set_cleanup): Likewise.
19231 (gimple_wce_cleanup_ptr): Likewise.
19232 (gimple_wce_set_cleanup): Likewise.
19233 (gimple_phi_capacity): Likewise.
19234 (gimple_phi_num_args): Likewise.
19235 (gimple_phi_result): Likewise.
19236 (gimple_phi_result_ptr): Likewise.
19237 (gimple_phi_set_result): Likewise.
19238 (gimple_phi_arg): Likewise.
19239 (gimple_phi_set_arg): Likewise.
19240 (gimple_resx_region): Likewise.
19241 (gimple_resx_set_region): Likewise.
19242 (gimple_eh_dispatch_region): Likewise.
19243 (gimple_eh_dispatch_set_region): Likewise.
19244 (gimple_omp_critical_name): Likewise.
19245 (gimple_omp_critical_name_ptr): Likewise.
19246 (gimple_omp_critical_set_name): Likewise.
19247 (gimple_omp_for_clauses): Likewise.
19248 (gimple_omp_for_clauses_ptr): Likewise.
19249 (gimple_omp_for_set_clauses): Likewise.
19250 (gimple_omp_for_collapse): Likewise.
19251 (gimple_omp_for_index): Likewise.
19252 (gimple_omp_for_index_ptr): Likewise.
19253 (gimple_omp_for_set_index): Likewise.
19254 (gimple_omp_for_initial): Likewise.
19255 (gimple_omp_for_initial_ptr): Likewise.
19256 (gimple_omp_for_set_initial): Likewise.
19257 (gimple_omp_for_final): Likewise.
19258 (gimple_omp_for_final_ptr): Likewise.
19259 (gimple_omp_for_set_final): Likewise.
19260 (gimple_omp_for_incr): Likewise.
19261 (gimple_omp_for_incr_ptr): Likewise.
19262 (gimple_omp_for_set_incr): Likewise.
19263 (gimple_omp_for_pre_body_ptr): Likewise.
19264 (gimple_omp_for_set_pre_body): Likewise.
19265 (gimple_omp_parallel_clauses): Likewise.
19266 (gimple_omp_parallel_clauses_ptr): Likewise.
19267 (gimple_omp_parallel_set_clauses): Likewise.
19268 (gimple_omp_parallel_child_fn): Likewise.
19269 (gimple_omp_parallel_child_fn_ptr): Likewise.
19270 (gimple_omp_parallel_set_child_fn): Likewise.
19271 (gimple_omp_parallel_data_arg): Likewise.
19272 (gimple_omp_parallel_data_arg_ptr): Likewise.
19273 (gimple_omp_parallel_set_data_arg): Likewise.
19274 (gimple_omp_task_clauses): Likewise.
19275 (gimple_omp_task_clauses_ptr): Likewise.
19276 (gimple_omp_task_set_clauses): Likewise.
19277 (gimple_omp_task_child_fn): Likewise.
19278 (gimple_omp_task_child_fn_ptr): Likewise.
19279 (gimple_omp_task_set_child_fn): Likewise.
19280 (gimple_omp_task_data_arg): Likewise.
19281 (gimple_omp_task_data_arg_ptr): Likewise.
19282 (gimple_omp_task_set_data_arg): Likewise.
19283 (gimple_omp_taskreg_clauses): Likewise.
19284 (gimple_omp_taskreg_clauses_ptr): Likewise.
19285 (gimple_omp_taskreg_set_clauses): Likewise.
19286 (gimple_omp_taskreg_child_fn): Likewise.
19287 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19288 (gimple_omp_taskreg_set_child_fn): Likewise.
19289 (gimple_omp_taskreg_data_arg): Likewise.
19290 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19291 (gimple_omp_taskreg_set_data_arg): Likewise.
19292 (gimple_omp_task_copy_fn): Likewise.
19293 (gimple_omp_task_copy_fn_ptr): Likewise.
19294 (gimple_omp_task_set_copy_fn): Likewise.
19295 (gimple_omp_task_arg_size): Likewise.
19296 (gimple_omp_task_arg_size_ptr): Likewise.
19297 (gimple_omp_task_set_arg_size): Likewise.
19298 (gimple_omp_task_arg_align): Likewise.
19299 (gimple_omp_task_arg_align_ptr): Likewise.
19300 (gimple_omp_task_set_arg_align): Likewise.
19301 (gimple_omp_single_clauses): Likewise.
19302 (gimple_omp_single_clauses_ptr): Likewise.
19303 (gimple_omp_single_set_clauses): Likewise.
19304 (gimple_omp_target_clauses): Likewise.
19305 (gimple_omp_target_clauses_ptr): Likewise.
19306 (gimple_omp_target_set_clauses): Likewise.
19307 (gimple_omp_target_child_fn): Likewise.
19308 (gimple_omp_target_child_fn_ptr): Likewise.
19309 (gimple_omp_target_set_child_fn): Likewise.
19310 (gimple_omp_target_data_arg): Likewise.
19311 (gimple_omp_target_data_arg_ptr): Likewise.
19312 (gimple_omp_target_set_data_arg): Likewise.
19313 (gimple_omp_teams_clauses): Likewise.
19314 (gimple_omp_teams_clauses_ptr): Likewise.
19315 (gimple_omp_teams_set_clauses): Likewise.
19316 (gimple_omp_sections_clauses): Likewise.
19317 (gimple_omp_sections_clauses_ptr): Likewise.
19318 (gimple_omp_sections_set_clauses): Likewise.
19319 (gimple_omp_sections_control): Likewise.
19320 (gimple_omp_sections_control_ptr): Likewise.
19321 (gimple_omp_sections_set_control): Likewise.
19322 (gimple_omp_for_set_cond): Likewise.
19323 (gimple_omp_for_cond): Likewise.
19324 (gimple_omp_atomic_store_set_val): Likewise.
19325 (gimple_omp_atomic_store_val): Likewise.
19326 (gimple_omp_atomic_store_val_ptr): Likewise.
19327 (gimple_omp_atomic_load_set_lhs): Likewise.
19328 (gimple_omp_atomic_load_lhs): Likewise.
19329 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19330 (gimple_omp_atomic_load_set_rhs): Likewise.
19331 (gimple_omp_atomic_load_rhs): Likewise.
19332 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19333 (gimple_omp_continue_control_def): Likewise.
19334 (gimple_omp_continue_control_def_ptr): Likewise.
19335 (gimple_omp_continue_set_control_def): Likewise.
19336 (gimple_omp_continue_control_use): Likewise.
19337 (gimple_omp_continue_control_use_ptr): Likewise.
19338 (gimple_omp_continue_set_control_use): Likewise.
19339 (gimple_transaction_body_ptr): Likewise.
19340 (gimple_transaction_label): Likewise.
19341 (gimple_transaction_label_ptr): Likewise.
19342 (gimple_transaction_set_body): Likewise.
19343 (gimple_transaction_set_label): Likewise.
19344
19345 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19346 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19347 * ipa-ref.c (ipa_record_reference): Likewise.
19348 * ipa-reference.c (analyze_function): Likewise.
19349 (ipa_reference_write_optimization_summary): Likewise.
19350 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19351 (address_taken_from_non_vtable_p): Likewise.
19352 (comdat_can_be_unshared_p_1): Likewise.
19353 * lto-cgraph.c (lto_output_ref): Likewise.
19354 (add_references): Likewise.
19355 (compute_ltrans_boundary): Likewise.
19356 (output_symtab): Likewise.
19357 (input_ref): Likewise.
19358 (input_cgraph_1): Likewise.
19359 (output_cgraph_opt_summary): Likewise.
19360 * lto-streamer-out.c (lto_output): Likewise.
19361 (output_symbol_p): Likewise.
19362 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19363 (lsei_start_function_in_partition): Likewise.
19364 (lsei_next_variable_in_partition): Likewise.
19365 (lsei_start_variable_in_partition): Likewise.
19366 * symtab.c (insert_to_assembler_name_hash): Likewise.
19367 (unlink_from_assembler_name_hash): Likewise.
19368 (symtab_unregister_node): Likewise.
19369 (symtab_remove_node): Likewise.
19370 (dump_symtab_node): Likewise.
19371 (verify_symtab_base): Likewise.
19372 (verify_symtab_node): Likewise.
19373 (symtab_make_decl_local): Likewise.
19374 (symtab_alias_ultimate_target): Likewise.
19375 (symtab_resolve_alias): Likewise.
19376 (symtab_get_symbol_partitioning_class): Likewise.
19377 * tree-phinodes.c (allocate_phi_node): Likewise.
19378 (reserve_phi_args_for_new_edge): Likewise.
19379 (remove_phi_args): Likewise.
19380 * varpool.c (varpool_node_for_asm): Likewise.
19381 (varpool_remove_unreferenced_decls): Likewise.
19382
19383 2014-04-23 Jeff Law <law@redhat.com>
19384
19385 PR tree-optimization/60902
19386 * tree-ssa-threadedge.c
19387 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19388 invalidate outputs from statements that do not produce useful
19389 outputs for threading.
19390
19391 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19392
19393 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19394 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19395 machine descriptions for Stack Smashing Protector.
19396
19397 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19398
19399 * aarch64.md (<optab>_rol<mode>3): New pattern.
19400 (<optab>_rolsi3_uxtw): Likewise.
19401 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19402
19403 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19404
19405 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19406 (arm_cortex_a12_tune): Likewise.
19407
19408 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19409
19410 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19411
19412 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19413
19414 * config/arm/arm.md (arm_rev16si2): New pattern.
19415 (arm_rev16si2_alt): Likewise.
19416 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19417
19418 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19419
19420 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19421 (rev16<mode>2_alt): Likewise.
19422 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19423 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19424 (aarch_rev16_shleft_mask_imm_p): Likewise.
19425 (aarch_rev16_p_1): Likewise.
19426 (aarch_rev16_p): Likewise.
19427 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19428 (aarch_rev16_shright_mask_imm_p): Likewise.
19429 (aarch_rev16_shleft_mask_imm_p): Likewise.
19430
19431 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19432
19433 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19434 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19435 rev cost.
19436 (cortex_a53_extra_costs): Likewise.
19437 (cortex_a57_extra_costs): Likewise.
19438 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19439 (cortexa7_extra_costs): Likewise.
19440 (cortexa8_extra_costs): Likewise.
19441 (cortexa12_extra_costs): Likewise.
19442 (cortexa15_extra_costs): Likewise.
19443 (v7m_extra_costs): Likewise.
19444 (arm_new_rtx_costs): Handle BSWAP.
19445
19446 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19447
19448 * config/arm/arm.c (cortexa8_extra_costs): New table.
19449 (arm_cortex_a8_tune): New tuning struct.
19450 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19451
19452 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19453
19454 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19455
19456 2014-04-23 Richard Biener <rguenther@suse.de>
19457
19458 * Makefile.in (OBJS): Remove loop-unswitch.o.
19459 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19460 * passes.def (pass_rtl_unswitch): Likewise.
19461 * loop-init.c (gate_rtl_unswitch): Likewise.
19462 (rtl_unswitch): Likewise.
19463 (pass_data_rtl_unswitch): Likewise.
19464 (pass_rtl_unswitch): Likewise.
19465 (make_pass_rtl_unswitch): Likewise.
19466 * rtl.h (reversed_condition): Likewise.
19467 (compare_and_jump_seq): Likewise.
19468 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19469 and make static.
19470 * loop-unroll.c (compare_and_jump_seq): Likewise.
19471
19472 2014-04-23 Richard Biener <rguenther@suse.de>
19473
19474 PR tree-optimization/60903
19475 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19476 commented code block.
19477 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19478 loop flags to newly created BBs and edges.
19479
19480 2014-04-23 Nick Clifton <nickc@redhat.com>
19481
19482 * config/msp430/msp430.c (msp430_handle_option): Move function
19483 to msp430-common.c
19484 (msp430_option_override): Simplify mcu and mcpu option handling.
19485 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19486 support for -mhwmult command line option.
19487 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19488 -mhwmult command line option.
19489 (msp430_hwmult_enabled): Delete.
19490 (msp43o_output_labelref): Add support for -mhwmult command line option.
19491 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19492 (umulsidi3): Likewise.
19493 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19494 (mcpu, mlarge, msmall): Likewise.
19495 (mhwmult): New option.
19496 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19497 prototype.
19498 (msp430_is_f5_mcu): Remove prototype.
19499 (msp430_use_f5_series_hwmult): Add prototype.
19500 * config/msp430/msp430-opts.h: New file.
19501 * common/config/msp430: New directory.
19502 * common/config/msp430/msp430-common.c: New file.
19503 * config.gcc (msp430): Remove target_has_targetm_common.
19504 * doc/invoke.texi: Document -mhwmult command line option.
19505
19506 2014-04-23 Nick Clifton <nickc@redhat.com>
19507
19508 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19509 default-manifest.o if it can be found in the search path.
19510 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19511
19512 2014-04-23 Terry Guo <terry.guo@arm.com>
19513
19514 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19515
19516 2014-04-23 Richard Biener <rguenther@suse.de>
19517
19518 PR middle-end/60895
19519 * tree-inline.c (declare_return_variable): Use mark_addressable.
19520
19521 2014-04-23 Richard Biener <rguenther@suse.de>
19522
19523 PR middle-end/60891
19524 * loop-init.c (loop_optimizer_init): Make sure to apply
19525 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19526
19527 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19528
19529 PR sanitizer/60275
19530 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19531 New options.
19532 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19533 if flag_sanitize_undefined_trap_on_error.
19534 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19535 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19536 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19537 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19538 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19539 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19540 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19541 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19542 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19543 * ubsan.c (ubsan_instrument_unreachable): Return
19544 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19545 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19546 if flag_sanitize_undefined_trap_on_error and
19547 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19548 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19549 instrument_bool_enum_load): Emit __builtin_trap () if
19550 flag_sanitize_undefined_trap_on_error and
19551 __builtin_handle_*_abort () if !flag_sanitize_recover.
19552 * doc/invoke.texi (-fsanitize-recover,
19553 -fsanitize-undefined-trap-on-error): Document.
19554
19555 2014-04-22 Christian Bruel <christian.bruel@st.com>
19556
19557 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19558 Force immediates to SImode.
19559
19560 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19561
19562 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19563 (lroundsfsi2): New.
19564 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19565 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19566 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19567 (nios2_fpu_insn): Add entry for round.
19568 (N2FPU_NO_ERRNO_P): Define.
19569 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19570 flag_errno_math.
19571 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19572
19573 2014-04-22 Richard Henderson <rth@redhat.com>
19574
19575 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19576 (add<GPI>3_compare0): Remove leading * from name.
19577 (add<GPI>3_carryin): Likewise.
19578 (sub<GPI>3_compare0): Likewise.
19579 (sub<GPI>3_carryin): Likewise.
19580 (<su_optab>mulditi3): New expander.
19581 (multi3): New expander.
19582 (madd<GPI>): Remove leading * from name.
19583
19584 2014-04-22 Martin Jambor <mjambor@suse.cz>
19585
19586 * cgraphclones.c (cgraph_function_versioning): Copy
19587 ipa_transforms_to_apply instead of asserting it is empty.
19588
19589 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19590
19591 PR target/60868
19592 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19593 on count_exp to get mode.
19594
19595 2014-04-22 Andrew Pinski <apinski@cavium.com>
19596
19597 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19598 Handle TLS for ILP32.
19599 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19600 (tlsie_small_<mode>): this and handle PTR.
19601 (tlsie_small_sidi): New pattern.
19602 (tlsle_small): Change to an expand to handle ILP32.
19603 (tlsle_small_<mode>): New pattern.
19604 (tlsdesc_small): Rename to ...
19605 (tlsdesc_small_<mode>): this and handle PTR.
19606
19607 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19608
19609 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19610
19611 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19612
19613 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19614 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19615 (aarch64_types_signed_poly_qualifiers): Likewise.
19616 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19617 (aarch64_types_poly_signed_qualifiers): Likewise.
19618 (TYPES_REINTERP_SS): Type macro added.
19619 (TYPES_REINTERP_SU): Likewise.
19620 (TYPES_REINTERP_SP): Likewise.
19621 (TYPES_REINTERP_US): Likewise.
19622 (TYPES_REINTERP_PS): Likewise.
19623 (aarch64_fold_builtin): New expression folding added.
19624 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19625 Declarations removed.
19626 (REINTERP_SS): Declarations added.
19627 (REINTERP_US): Likewise.
19628 (REINTERP_PS): Likewise.
19629 (REINTERP_SU): Likewise.
19630 (REINTERP_SP): Likewise.
19631 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19632 (vreinterpretq_p8_f64): Likewise.
19633 (vreinterpret_p16_f64): Likewise.
19634 (vreinterpretq_p16_f64): Likewise.
19635 (vreinterpret_f32_f64): Likewise.
19636 (vreinterpretq_f32_f64): Likewise.
19637 (vreinterpret_f64_f32): Likewise.
19638 (vreinterpret_f64_p8): Likewise.
19639 (vreinterpret_f64_p16): Likewise.
19640 (vreinterpret_f64_s8): Likewise.
19641 (vreinterpret_f64_s16): Likewise.
19642 (vreinterpret_f64_s32): Likewise.
19643 (vreinterpret_f64_s64): Likewise.
19644 (vreinterpret_f64_u8): Likewise.
19645 (vreinterpret_f64_u16): Likewise.
19646 (vreinterpret_f64_u32): Likewise.
19647 (vreinterpret_f64_u64): Likewise.
19648 (vreinterpretq_f64_f32): Likewise.
19649 (vreinterpretq_f64_p8): Likewise.
19650 (vreinterpretq_f64_p16): Likewise.
19651 (vreinterpretq_f64_s8): Likewise.
19652 (vreinterpretq_f64_s16): Likewise.
19653 (vreinterpretq_f64_s32): Likewise.
19654 (vreinterpretq_f64_s64): Likewise.
19655 (vreinterpretq_f64_u8): Likewise.
19656 (vreinterpretq_f64_u16): Likewise.
19657 (vreinterpretq_f64_u32): Likewise.
19658 (vreinterpretq_f64_u64): Likewise.
19659 (vreinterpret_s64_f64): Likewise.
19660 (vreinterpretq_s64_f64): Likewise.
19661 (vreinterpret_u64_f64): Likewise.
19662 (vreinterpretq_u64_f64): Likewise.
19663 (vreinterpret_s8_f64): Likewise.
19664 (vreinterpretq_s8_f64): Likewise.
19665 (vreinterpret_s16_f64): Likewise.
19666 (vreinterpretq_s16_f64): Likewise.
19667 (vreinterpret_s32_f64): Likewise.
19668 (vreinterpretq_s32_f64): Likewise.
19669 (vreinterpret_u8_f64): Likewise.
19670 (vreinterpretq_u8_f64): Likewise.
19671 (vreinterpret_u16_f64): Likewise.
19672 (vreinterpretq_u16_f64): Likewise.
19673 (vreinterpret_u32_f64): Likewise.
19674 (vreinterpretq_u32_f64): Likewise.
19675
19676 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19677
19678 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19679 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19680 (vreinterpret_p8_s8): Likewise.
19681 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19682 (vreinterpret_p8_s16): Likewise.
19683 (vreinterpret_p8_s32): Likewise.
19684 (vreinterpret_p8_s64): Likewise.
19685 (vreinterpret_p8_f32): Likewise.
19686 (vreinterpret_p8_u8): Likewise.
19687 (vreinterpret_p8_u16): Likewise.
19688 (vreinterpret_p8_u32): Likewise.
19689 (vreinterpret_p8_u64): Likewise.
19690 (vreinterpret_p8_p16): Likewise.
19691 (vreinterpretq_p8_s8): Likewise.
19692 (vreinterpretq_p8_s16): Likewise.
19693 (vreinterpretq_p8_s32): Likewise.
19694 (vreinterpretq_p8_s64): Likewise.
19695 (vreinterpretq_p8_f32): Likewise.
19696 (vreinterpretq_p8_u8): Likewise.
19697 (vreinterpretq_p8_u16): Likewise.
19698 (vreinterpretq_p8_u32): Likewise.
19699 (vreinterpretq_p8_u64): Likewise.
19700 (vreinterpretq_p8_p16): Likewise.
19701 (vreinterpret_p16_s8): Likewise.
19702 (vreinterpret_p16_s16): Likewise.
19703 (vreinterpret_p16_s32): Likewise.
19704 (vreinterpret_p16_s64): Likewise.
19705 (vreinterpret_p16_f32): Likewise.
19706 (vreinterpret_p16_u8): Likewise.
19707 (vreinterpret_p16_u16): Likewise.
19708 (vreinterpret_p16_u32): Likewise.
19709 (vreinterpret_p16_u64): Likewise.
19710 (vreinterpret_p16_p8): Likewise.
19711 (vreinterpretq_p16_s8): Likewise.
19712 (vreinterpretq_p16_s16): Likewise.
19713 (vreinterpretq_p16_s32): Likewise.
19714 (vreinterpretq_p16_s64): Likewise.
19715 (vreinterpretq_p16_f32): Likewise.
19716 (vreinterpretq_p16_u8): Likewise.
19717 (vreinterpretq_p16_u16): Likewise.
19718 (vreinterpretq_p16_u32): Likewise.
19719 (vreinterpretq_p16_u64): Likewise.
19720 (vreinterpretq_p16_p8): Likewise.
19721 (vreinterpret_f32_s8): Likewise.
19722 (vreinterpret_f32_s16): Likewise.
19723 (vreinterpret_f32_s32): Likewise.
19724 (vreinterpret_f32_s64): Likewise.
19725 (vreinterpret_f32_u8): Likewise.
19726 (vreinterpret_f32_u16): Likewise.
19727 (vreinterpret_f32_u32): Likewise.
19728 (vreinterpret_f32_u64): Likewise.
19729 (vreinterpret_f32_p8): Likewise.
19730 (vreinterpret_f32_p16): Likewise.
19731 (vreinterpretq_f32_s8): Likewise.
19732 (vreinterpretq_f32_s16): Likewise.
19733 (vreinterpretq_f32_s32): Likewise.
19734 (vreinterpretq_f32_s64): Likewise.
19735 (vreinterpretq_f32_u8): Likewise.
19736 (vreinterpretq_f32_u16): Likewise.
19737 (vreinterpretq_f32_u32): Likewise.
19738 (vreinterpretq_f32_u64): Likewise.
19739 (vreinterpretq_f32_p8): Likewise.
19740 (vreinterpretq_f32_p16): Likewise.
19741 (vreinterpret_s64_s8): Likewise.
19742 (vreinterpret_s64_s16): Likewise.
19743 (vreinterpret_s64_s32): Likewise.
19744 (vreinterpret_s64_f32): Likewise.
19745 (vreinterpret_s64_u8): Likewise.
19746 (vreinterpret_s64_u16): Likewise.
19747 (vreinterpret_s64_u32): Likewise.
19748 (vreinterpret_s64_u64): Likewise.
19749 (vreinterpret_s64_p8): Likewise.
19750 (vreinterpret_s64_p16): Likewise.
19751 (vreinterpretq_s64_s8): Likewise.
19752 (vreinterpretq_s64_s16): Likewise.
19753 (vreinterpretq_s64_s32): Likewise.
19754 (vreinterpretq_s64_f32): Likewise.
19755 (vreinterpretq_s64_u8): Likewise.
19756 (vreinterpretq_s64_u16): Likewise.
19757 (vreinterpretq_s64_u32): Likewise.
19758 (vreinterpretq_s64_u64): Likewise.
19759 (vreinterpretq_s64_p8): Likewise.
19760 (vreinterpretq_s64_p16): Likewise.
19761 (vreinterpret_u64_s8): Likewise.
19762 (vreinterpret_u64_s16): Likewise.
19763 (vreinterpret_u64_s32): Likewise.
19764 (vreinterpret_u64_s64): Likewise.
19765 (vreinterpret_u64_f32): Likewise.
19766 (vreinterpret_u64_u8): Likewise.
19767 (vreinterpret_u64_u16): Likewise.
19768 (vreinterpret_u64_u32): Likewise.
19769 (vreinterpret_u64_p8): Likewise.
19770 (vreinterpret_u64_p16): Likewise.
19771 (vreinterpretq_u64_s8): Likewise.
19772 (vreinterpretq_u64_s16): Likewise.
19773 (vreinterpretq_u64_s32): Likewise.
19774 (vreinterpretq_u64_s64): Likewise.
19775 (vreinterpretq_u64_f32): Likewise.
19776 (vreinterpretq_u64_u8): Likewise.
19777 (vreinterpretq_u64_u16): Likewise.
19778 (vreinterpretq_u64_u32): Likewise.
19779 (vreinterpretq_u64_p8): Likewise.
19780 (vreinterpretq_u64_p16): Likewise.
19781 (vreinterpret_s8_s16): Likewise.
19782 (vreinterpret_s8_s32): Likewise.
19783 (vreinterpret_s8_s64): Likewise.
19784 (vreinterpret_s8_f32): Likewise.
19785 (vreinterpret_s8_u8): Likewise.
19786 (vreinterpret_s8_u16): Likewise.
19787 (vreinterpret_s8_u32): Likewise.
19788 (vreinterpret_s8_u64): Likewise.
19789 (vreinterpret_s8_p8): Likewise.
19790 (vreinterpret_s8_p16): Likewise.
19791 (vreinterpretq_s8_s16): Likewise.
19792 (vreinterpretq_s8_s32): Likewise.
19793 (vreinterpretq_s8_s64): Likewise.
19794 (vreinterpretq_s8_f32): Likewise.
19795 (vreinterpretq_s8_u8): Likewise.
19796 (vreinterpretq_s8_u16): Likewise.
19797 (vreinterpretq_s8_u32): Likewise.
19798 (vreinterpretq_s8_u64): Likewise.
19799 (vreinterpretq_s8_p8): Likewise.
19800 (vreinterpretq_s8_p16): Likewise.
19801 (vreinterpret_s16_s8): Likewise.
19802 (vreinterpret_s16_s32): Likewise.
19803 (vreinterpret_s16_s64): Likewise.
19804 (vreinterpret_s16_f32): Likewise.
19805 (vreinterpret_s16_u8): Likewise.
19806 (vreinterpret_s16_u16): Likewise.
19807 (vreinterpret_s16_u32): Likewise.
19808 (vreinterpret_s16_u64): Likewise.
19809 (vreinterpret_s16_p8): Likewise.
19810 (vreinterpret_s16_p16): Likewise.
19811 (vreinterpretq_s16_s8): Likewise.
19812 (vreinterpretq_s16_s32): Likewise.
19813 (vreinterpretq_s16_s64): Likewise.
19814 (vreinterpretq_s16_f32): Likewise.
19815 (vreinterpretq_s16_u8): Likewise.
19816 (vreinterpretq_s16_u16): Likewise.
19817 (vreinterpretq_s16_u32): Likewise.
19818 (vreinterpretq_s16_u64): Likewise.
19819 (vreinterpretq_s16_p8): Likewise.
19820 (vreinterpretq_s16_p16): Likewise.
19821 (vreinterpret_s32_s8): Likewise.
19822 (vreinterpret_s32_s16): Likewise.
19823 (vreinterpret_s32_s64): Likewise.
19824 (vreinterpret_s32_f32): Likewise.
19825 (vreinterpret_s32_u8): Likewise.
19826 (vreinterpret_s32_u16): Likewise.
19827 (vreinterpret_s32_u32): Likewise.
19828 (vreinterpret_s32_u64): Likewise.
19829 (vreinterpret_s32_p8): Likewise.
19830 (vreinterpret_s32_p16): Likewise.
19831 (vreinterpretq_s32_s8): Likewise.
19832 (vreinterpretq_s32_s16): Likewise.
19833 (vreinterpretq_s32_s64): Likewise.
19834 (vreinterpretq_s32_f32): Likewise.
19835 (vreinterpretq_s32_u8): Likewise.
19836 (vreinterpretq_s32_u16): Likewise.
19837 (vreinterpretq_s32_u32): Likewise.
19838 (vreinterpretq_s32_u64): Likewise.
19839 (vreinterpretq_s32_p8): Likewise.
19840 (vreinterpretq_s32_p16): Likewise.
19841 (vreinterpret_u8_s8): Likewise.
19842 (vreinterpret_u8_s16): Likewise.
19843 (vreinterpret_u8_s32): Likewise.
19844 (vreinterpret_u8_s64): Likewise.
19845 (vreinterpret_u8_f32): Likewise.
19846 (vreinterpret_u8_u16): Likewise.
19847 (vreinterpret_u8_u32): Likewise.
19848 (vreinterpret_u8_u64): Likewise.
19849 (vreinterpret_u8_p8): Likewise.
19850 (vreinterpret_u8_p16): Likewise.
19851 (vreinterpretq_u8_s8): Likewise.
19852 (vreinterpretq_u8_s16): Likewise.
19853 (vreinterpretq_u8_s32): Likewise.
19854 (vreinterpretq_u8_s64): Likewise.
19855 (vreinterpretq_u8_f32): Likewise.
19856 (vreinterpretq_u8_u16): Likewise.
19857 (vreinterpretq_u8_u32): Likewise.
19858 (vreinterpretq_u8_u64): Likewise.
19859 (vreinterpretq_u8_p8): Likewise.
19860 (vreinterpretq_u8_p16): Likewise.
19861 (vreinterpret_u16_s8): Likewise.
19862 (vreinterpret_u16_s16): Likewise.
19863 (vreinterpret_u16_s32): Likewise.
19864 (vreinterpret_u16_s64): Likewise.
19865 (vreinterpret_u16_f32): Likewise.
19866 (vreinterpret_u16_u8): Likewise.
19867 (vreinterpret_u16_u32): Likewise.
19868 (vreinterpret_u16_u64): Likewise.
19869 (vreinterpret_u16_p8): Likewise.
19870 (vreinterpret_u16_p16): Likewise.
19871 (vreinterpretq_u16_s8): Likewise.
19872 (vreinterpretq_u16_s16): Likewise.
19873 (vreinterpretq_u16_s32): Likewise.
19874 (vreinterpretq_u16_s64): Likewise.
19875 (vreinterpretq_u16_f32): Likewise.
19876 (vreinterpretq_u16_u8): Likewise.
19877 (vreinterpretq_u16_u32): Likewise.
19878 (vreinterpretq_u16_u64): Likewise.
19879 (vreinterpretq_u16_p8): Likewise.
19880 (vreinterpretq_u16_p16): Likewise.
19881 (vreinterpret_u32_s8): Likewise.
19882 (vreinterpret_u32_s16): Likewise.
19883 (vreinterpret_u32_s32): Likewise.
19884 (vreinterpret_u32_s64): Likewise.
19885 (vreinterpret_u32_f32): Likewise.
19886 (vreinterpret_u32_u8): Likewise.
19887 (vreinterpret_u32_u16): Likewise.
19888 (vreinterpret_u32_u64): Likewise.
19889 (vreinterpret_u32_p8): Likewise.
19890 (vreinterpret_u32_p16): Likewise.
19891 (vreinterpretq_u32_s8): Likewise.
19892 (vreinterpretq_u32_s16): Likewise.
19893 (vreinterpretq_u32_s32): Likewise.
19894 (vreinterpretq_u32_s64): Likewise.
19895 (vreinterpretq_u32_f32): Likewise.
19896 (vreinterpretq_u32_u8): Likewise.
19897 (vreinterpretq_u32_u16): Likewise.
19898 (vreinterpretq_u32_u64): Likewise.
19899 (vreinterpretq_u32_p8): Likewise.
19900 (vreinterpretq_u32_p16): Likewise.
19901
19902 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19903
19904 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19905 Pattern extended.
19906 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19907 (sqabs): Likewise.
19908 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19909 (vqnegd_s64): Likewise.
19910 (vqabs_s64): Likewise.
19911 (vqabsd_s64): Likewise.
19912
19913 2014-04-22 Richard Henderson <rth@redhat.com>
19914
19915 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19916 computation to the top of the loop.
19917
19918 2014-04-22 Renlin <renlin.li@arm.com>
19919 Jiong Wang <jiong.wang@arm.com>
19920
19921 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19922 * config/aarch64/aarch64.c (aarch64_layout_frame)
19923 (aarch64_initial_elimination_offset): Likewise.
19924
19925 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19926
19927 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19928 Fix indentation.
19929
19930 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19931
19932 * machmode.h (bitwise_mode_for_mode): Declare.
19933 * stor-layout.h (bitwise_type_for_mode): Likewise.
19934 * stor-layout.c (bitwise_mode_for_mode): New function.
19935 (bitwise_type_for_mode): Likewise.
19936 * builtins.c (fold_builtin_memory_op): Use it instead of
19937 int_mode_for_mode and build_nonstandard_integer_type.
19938
19939 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19940
19941 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19942 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19943 (*-*-solaris2*): Simplify.
19944 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19945 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19946 *-*-solaris2.9* handling.
19947
19948 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19949 as bug.
19950 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19951 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19952 handling, simplify.
19953 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19954 * configure: Regenerate.
19955
19956 * config/i386/sol2-9.h: Remove.
19957
19958 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19959 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19960 Remove Solaris 9 references.
19961
19962 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19963
19964 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19965 (floatuns<GPI:mode><GPF:mode>2): Remove.
19966 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19967 and floatuns conversions.
19968 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19969 and floatuns conversions.
19970 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19971 (w1,w2): New mode attributes for inequal width conversions.
19972
19973 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19974
19975 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19976 the output asm format.
19977
19978 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19979
19980 * config/aarch64/aarch64-simd.md
19981 (aarch64_cm<optab>di): Always split.
19982 (*aarch64_cm<optab>di): New.
19983 (aarch64_cmtstdi): Always split.
19984 (*aarch64_cmtstdi): New.
19985
19986 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19987
19988 PR tree-optimization/60823
19989 * omp-low.c (ipa_simd_modify_function_body): Go through
19990 all SSA_NAMEs and for those refering to vector arguments
19991 which are going to be replaced adjust SSA_NAME_VAR and,
19992 if it is a default definition, change it into a non-default
19993 definition assigned at the beginning of function from new_decl.
19994 (ipa_simd_modify_stmt_ops): Rewritten.
19995 * tree-dfa.c (set_ssa_default_def): When removing default def,
19996 check for NULL loc instead of NULL *loc.
19997
19998 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19999
20000 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
20001 restrictions on core registers for DImode values in Thumb2.
20002
20003 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20004
20005 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
20006 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
20007
20008 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20009
20010 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
20011 (*iordi_notzesidi_di): Likewise.
20012 (*iordi_notsesidi_di): Likewise.
20013
20014 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20015
20016 * config/arm/arm-protos.h (tune_params): New struct members.
20017 * config/arm/arm.c: Initialise tune_params per processor.
20018 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20019 for speed, based on new tune_params.
20020
20021 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20022
20023 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20024 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20025 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20026 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20027 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20028 (vrnda_f64): Likewise.
20029 (vrndi_f64): Likewise.
20030 (vrndm_f64): Likewise.
20031 (vrndn_f64): Likewise.
20032 (vrndp_f64): Likewise.
20033 (vrndx_f64): Likewise.
20034
20035 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20036
20037 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20038 GET_MODE_SIZE argument is enum machine_mode.
20039
20040 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20041
20042 PR target/60910
20043 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20044 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20045
20046 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20047
20048 PR middle-end/60281
20049 * asan.c (asan_emit_stack_protection): Force the base to align to
20050 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20051 appropriate bits if STRICT_ALIGNMENT.
20052 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20053 when asan is on.
20054 (expand_used_vars): Leave a space in the stack frame for alignment
20055 if STRICT_ALIGNMENT.
20056
20057 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20058
20059 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20060 than a gimple.
20061 (gimple_store_p): Likewise.
20062 (gimple_assign_load_p): Likewise.
20063 (gimple_assign_cast_p): Likewise.
20064 (gimple_clobber_p): Likewise.
20065
20066 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20067 rather than a gimple.
20068 (gimple_assign_cast_p): Likewise.
20069
20070 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20071
20072 PR target/60735
20073 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20074 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20075
20076 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20077 more debug information for E500 if -mdebug=reg.
20078
20079 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20080
20081 PR target/60909
20082 * config/i386/i386.c (ix86_expand_builtin)
20083 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20084 register for target RTX.
20085 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20086
20087 2014-04-18 Cong Hou <congh@google.com>
20088
20089 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20090 the widen-mult pattern by handling two operands with different sizes,
20091 and operands whose size is smaller than half of the result type.
20092
20093 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20094
20095 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20096 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20097 (do_estimate_edge_time): Compute it.
20098 * ipa-inline.c (want_inline_small_function_p): Bypass
20099 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20100
20101 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20102
20103 * ipa-inline.c (spec_rem): New static variable.
20104 (dump_overall_stats): New function.
20105 (dump_inline_stats): New function.
20106
20107 2014-04-18 Richard Henderson <rth@redhat.com>
20108
20109 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20110 to GET_MODE_SIZE, not a reg_class_t.
20111
20112 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20113
20114 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20115 (vsx_xxmrglw_<mode>): Likewise.
20116
20117 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20118
20119 PR target/60876
20120 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20121 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20122 (rs6000_init_hard_regno_mode_ok): Likewise.
20123
20124 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20125
20126 * ipa-inline.c (inline_small_functions): Account only non-cold
20127 functions.
20128 * doc/invoke.texi (inline-unit-growth): Update documentation.
20129
20130 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20131
20132 * config/rs6000/rs6000.md (addti3, subti3): New.
20133
20134 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20135
20136 PR target/60863
20137 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20138 comment. Check optimize_insn_for_size_p instead of
20139 optimize_insn_for_speed_p.
20140
20141 2014-04-17 Martin Jambor <mjambor@suse.cz>
20142
20143 * gimple-iterator.c (gsi_start_edge): New function.
20144 * gimple-iterator.h (gsi_start_edge): Declare.
20145 * tree-sra.c (single_non_eh_succ): New function.
20146 (disqualify_ops_if_throwing_stmt): Renamed to
20147 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20148 having one non-EH successor BB.
20149 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20150 generate loads into replacements.
20151 (sra_modify_assign): Likewise and and also use the simple path for
20152 such statements.
20153 (sra_modify_function_body): Commit statements on edges.
20154
20155 2014-04-17 Richard Biener <rguenther@suse.de>
20156
20157 PR middle-end/60849
20158 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20159 comparison results and add clarifying comment.
20160
20161 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20162
20163 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20164 (blank_mode): Initialize it.
20165 (emit_mode_size_inline, emit_mode_nunits_inline,
20166 emit_mode_inner_inline): New functions.
20167 (emit_insn_modes_h): Call them and surround their output with
20168 #if GCC_VERSION >= 4001 ... #endif.
20169 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20170 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20171 mode_* arrays if the argument is __builtin_constant_p.
20172 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20173 is enum machine_mode.
20174
20175 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20176
20177 * passes.c (opt_pass::execute): Adjust.
20178 (pass_manager::execute_pass_mode_switching): Likewise.
20179 (early_local_passes::execute): Likewise.
20180 (execute_one_pass): Pass cfun to the pass's execute method.
20181 * tree-pass.h (opt_pass::execute): Add function * argument.
20182 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20183 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20184 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20185 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20186 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20187 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20188 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20189 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20190 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20191 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20192 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20193 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20194 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20195 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20196 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20197 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20198 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20199 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20200 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20201 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20202 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20203 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20204 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20205 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20206 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20207 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20208 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20209 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20210 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20211 Adjust.
20212
20213 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20214
20215 * passes.c (opt_pass::gate): Take function * argument.
20216 (gate_all_early_local_passes): Merge into
20217 (early_local_passes::gate): this.
20218 (gate_all_early_optimizations): Merge into
20219 (all_early_optimizations::gate): this.
20220 (gate_all_optimizations): Mege into
20221 (all_optimizations::gate): this.
20222 (gate_all_optimizations_g): Merge into
20223 (all_optimizations_g::gate): this.
20224 (gate_rest_of_compilation): Mege into
20225 (rest_of_compilation::gate): this.
20226 (gate_postreload): Merge into
20227 (postreload::gate): this.
20228 (dump_one_pass): Pass cfun to the pass's gate method.
20229 (execute_ipa_summary_passes): Likewise.
20230 (execute_one_pass): Likewise.
20231 (ipa_write_summaries_2): Likewise.
20232 (ipa_write_optimization_summaries_1): Likewise.
20233 (ipa_read_summaries_1): Likewise.
20234 (ipa_read_optimization_summaries_1): Likewise.
20235 (execute_ipa_stmt_fixups): Likewise.
20236 * tree-pass.h (opt_pass::gate): Add function * argument.
20237 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20238 combine-stack-adj.c, combine.c, compare-elim.c,
20239 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20240 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20241 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20242 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20243 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20244 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20245 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20246 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20247 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20248 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20249 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20250 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20251 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20252 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20253 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20254 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20255 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20256 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20257 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20258 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20259 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20260 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20261 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20262 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20263 var-tracking.c, vtable-verify.c, web.c: Adjust.
20264
20265 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20266
20267 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20268 * configure: Regenerate.
20269
20270 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20271
20272 * passes.c (dump_one_pass): don't check pass->has_gate.
20273 (execute_ipa_summary_passes): Likewise.
20274 (execute_one_pass): Likewise.
20275 (ipa_write_summaries_2): Likewise.
20276 (ipa_write_optimization_summaries_1): Likewise.
20277 (ipa_read_optimization_summaries_1): Likewise.
20278 (execute_ipa_stmt_fixups): Likewise.
20279 * tree-pass.h (pass_data::has_gate): Remove.
20280 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20281 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20282 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20283 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20284 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20285 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20286 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20287 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20288 gimple-low.c, gimple-ssa-isolate-paths.c,
20289 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20290 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20291 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20292 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20293 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20294 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20295 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20296 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20297 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20298 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20299 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20300 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20301 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20302 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20303 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20304 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20305 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20306 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20307 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20308 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20309 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20310 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20311 Adjust.
20312
20313 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20314
20315 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20316 declaration.
20317 * passes.c (pass_manager::register_dump_files_1): Merge into
20318 (pass_manager::register_dump_files): this, and remove its handling of
20319 properties since the pass always has the properties anyway.
20320 (pass_manager::pass_manager): Adjust.
20321
20322 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20323
20324 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20325 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20326 dealing with properties.
20327 (pass_manager::register_dump_files): Adjust.
20328
20329 2014-03-20 Mark Wielaard <mjw@redhat.com>
20330
20331 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20332 then represent the bound as normal constant value.
20333
20334 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20335
20336 PR target/60847
20337 Forward port from 4.8 branch
20338 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20339
20340 * config/i386/bmiintrin.h (_blsi_u32): New.
20341 (_blsi_u64): Ditto.
20342 (_blsr_u32): Ditto.
20343 (_blsr_u64): Ditto.
20344 (_blsmsk_u32): Ditto.
20345 (_blsmsk_u64): Ditto.
20346 (_tzcnt_u32): Ditto.
20347 (_tzcnt_u64): Ditto.
20348
20349 2014-04-17 Kito Cheng <kito@0xlab.org>
20350
20351 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20352
20353 2014-04-17 Richard Biener <rguenther@suse.de>
20354
20355 PR middle-end/60849
20356 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20357 boolean results for comparisons.
20358
20359 2014-04-17 Richard Biener <rguenther@suse.de>
20360
20361 PR tree-optimization/60836
20362 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20363 initial PHI args to be gimple values.
20364
20365 2014-04-17 Richard Biener <rguenther@suse.de>
20366
20367 PR tree-optimization/60841
20368 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20369 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20370 of stmts to SLP build.
20371 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20372 (vect_analyze_slp): Likewise.
20373 (vect_analyze_slp_instance): Likewise.
20374 (vect_build_slp_tree): Limit overall SLP tree growth.
20375 * tree-vectorizer.h (vect_analyze_data_refs,
20376 vect_analyze_slp): Adjust prototypes.
20377
20378 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20379
20380 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20381 Silvermont.
20382
20383 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20384
20385 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20386 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20387 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20388 for TARGET_SLOW_PSHUFB
20389
20390 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20391
20392 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20393 * config/i386/i386.c (intel_cost): Ditto.
20394
20395 2014-04-17 Joey Ye <joey.ye@arm.com>
20396
20397 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20398
20399 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20400
20401 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20402 with -fuse-profile.
20403
20404 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20405
20406 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20407 (type_all_derivations_known_p): New predicate.
20408 (type_all_ctors_visible_p): New predicate.
20409 (type_possibly_instantiated_p): New predicate.
20410 (get_odr_type): Compute all_derivations_known.
20411 (dump_odr_type): Dump the flag.
20412 (maybe_record_type): Cleanup.
20413 (record_target_from_binfo): Add bases_to_consider array;
20414 record bases for types w/o instances and skip CXX destructor.
20415 (possible_polymorphic_call_targets_1): Add bases_to_consider
20416 and consider_construction parameters; check if type may have instance.
20417 (get_polymorphic_call_info): Set maybe_in_construction to true
20418 when we know nothing.
20419 (record_targets_from_bases): Skip CXX destructors; they are
20420 never called for types in construction.
20421 (possible_polymorphic_call_targets): Do not record target when
20422 type may not have instance.
20423
20424 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20425
20426 PR ipa/60854
20427 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20428 external aliases alive, too.
20429
20430 2014-04-16 Andrew Pinski <apinski@cavium.com>
20431
20432 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20433 definition.
20434
20435 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20436
20437 * final.c (compute_alignments): Do not apply loop alignment to a block
20438 falling through to the exit.
20439
20440 2014-04-16 Catherine Moore <clm@codesourcery.com>
20441
20442 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20443 Adjust constraints for microMIPS store patterns.
20444
20445 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20446
20447 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20448
20449 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20450
20451 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20452 (append_use): Run at -O0.
20453 (append_vdef): Likewise.
20454 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20455 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20456
20457 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20458
20459 PR tree-optimization/60844
20460 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20461 (propagate_op_to_single_use, remove_visited_stmt_chain,
20462 linearize_expr, repropagate_negates, reassociate_bb): Use it
20463 instead of gsi_remove.
20464
20465 2014-04-16 Martin Jambor <mjambor@suse.cz>
20466
20467 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20468 ipa_transforms_to_apply.
20469 (cgraph_function_versioning): Assert that old_node has empty
20470 ipa_transforms_to_apply.
20471 * trans-mem.c (ipa_tm_create_version): Likewise.
20472 * tree-inline.c (tree_function_versioning): Do not duplicate
20473 ipa_transforms_to_apply.
20474
20475 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20476
20477 PR target/60817
20478 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20479 x86_64-*-* cases.
20480 Pass necessary as flags on 64-bit Solaris/x86.
20481 Use lowercase relocs for x86_64-*-*.
20482 * configure: Regenerate.
20483
20484 2014-04-15 Jan Hubicka <jh@suse.cz>
20485
20486 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20487 (maybe_record_node, likely_target_p): Use it.
20488
20489 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20490
20491 PR target/60839
20492 Revert following patch
20493
20494 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20495
20496 PR target/60735
20497 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20498 software floating point or no floating point registers, do not
20499 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20500 in GPRs that occurs after we tested for GPRs that would never be
20501 true.
20502
20503 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20504 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20505 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20506 specifically allow DDmode, since that does not use the SPE SIMD
20507 instructions.
20508
20509 2014-03-21 Mark Wielaard <mjw@redhat.com>
20510
20511 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20512 as unsigned or int depending on type and value used.
20513
20514 2014-04-15 Richard Biener <rguenther@suse.de>
20515
20516 PR rtl-optimization/56965
20517 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20518 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20519 ... here.
20520 * alias.c (true_dependence_1): Do not call
20521 nonoverlapping_component_refs_p.
20522 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20523 nonoverlapping_component_refs_p.
20524 (indirect_refs_may_alias_p): Likewise.
20525
20526 2014-04-15 Teresa Johnson <tejohnson@google.com>
20527
20528 * cfg.c (dump_bb_info): Fix flags check.
20529 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20530
20531 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20532
20533 PR rtl-optimization/60663
20534 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20535 avoid 0 cost.
20536
20537 2014-04-15 Richard Biener <rguenther@suse.de>
20538
20539 * lto-streamer.h (LTO_major_version): Bump to 4.
20540
20541 2014-04-15 Richard Biener <rguenther@suse.de>
20542
20543 * common.opt (lto_partition_model): New enum.
20544 (flto-partition=): Merge separate options with a single with argument,
20545 add -flto-partition=one support.
20546 * flag-types.h (enum lto_partition_model): Declare.
20547 * opts.c (finish_options): Remove duplicate -flto-partition=
20548 option check.
20549 * lto-wrapper.c (run_gcc): Adjust.
20550
20551 2014-04-15 Richard Biener <rguenther@suse.de>
20552
20553 * alias.c (ncr_compar): New function.
20554 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20555
20556 2014-04-15 Richard Biener <rguenther@suse.de>
20557
20558 * alias.c (record_component_aliases): Do not walk BINFOs.
20559
20560 2014-04-15 Richard Biener <rguenther@suse.de>
20561
20562 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20563 Add struct function argument and adjust.
20564 (find_func_aliases_for_call): Likewise.
20565 (find_func_aliases): Likewise.
20566 (find_func_clobbers): Likewise.
20567 (intra_create_variable_infos): Likewise.
20568 (compute_points_to_sets): Likewise.
20569 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20570
20571 2014-04-15 Richard Biener <rguenther@suse.de>
20572
20573 * tree.c (iterative_hash_expr): Use enum tree_code_class
20574 to store TREE_CODE_CLASS.
20575 (tree_block): Likewise.
20576 (tree_set_block): Likewise.
20577 * tree.h (fold_build_pointer_plus_loc): Use
20578 convert_to_ptrofftype_loc.
20579
20580 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20581
20582 PR plugins/59335
20583 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20584 added in 4.9.
20585
20586 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20587
20588 * cfgloop.h (struct loop): Move force_vectorize down.
20589 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20590 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20591 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20592 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20593 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20594 * tree-core.h (enum annot_expr_kind): Add new kind values.
20595 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20596 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20597 kinds.
20598 * tree.def (ANNOTATE_EXPR): Tweak comment.
20599
20600 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20601
20602 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20603 cxa_pure_virtual).
20604
20605 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20606
20607 * tree.h (TYPE_IDENTIFIER): Declare.
20608 * tree.c (subrange_type_for_debug_p): Use it.
20609 * godump.c (go_format_type): Likewise.
20610 * dwarf2out.c (is_cxx_auto, modified_type_die,
20611 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20612 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20613
20614 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20615
20616 PR lto/60820
20617 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20618
20619 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20620
20621 * config/i386/i386.c (examine_argument): Return bool. Return true if
20622 parameter should be passed in memory.
20623 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20624 (construct_container): Update calls to examine_argument.
20625 (function_arg_advance_64): Ditto.
20626 (return_in_memory_32): Merge with ix86_return_in_memory.
20627 (return_in_memory_64): Ditto.
20628 (return_in_memory_ms_64): Ditto.
20629
20630 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20631
20632 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20633 * coverage.c (coverage_compute_profile_id): Handle externally visible
20634 symbols.
20635
20636 2014-04-14 Martin Jambor <mjambor@suse.cz>
20637
20638 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20639 DECL_DISREGARD_INLINE_LIMITS functions.
20640
20641 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20642
20643 PR target/60827
20644 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20645
20646 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20647
20648 PR target/60827
20649 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20650 optimize_insn_for_speed_p instead of
20651 optimize_function_for_speed_p.
20652
20653 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20654
20655 * doc/invoke.texi (free): Document AArch64.
20656
20657 2014-04-14 Richard Biener <rguenther@suse.de>
20658
20659 PR tree-optimization/60042
20660 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20661 (insert_into_preds_of_block): Do not prevent PHI insertion
20662 for REFERENCE exprs here ...
20663 (eliminate_dom_walker::before_dom_children): ... but prevent
20664 their use here under similar conditions when applied to the
20665 IL after PRE optimizations.
20666
20667 2014-04-14 Richard Biener <rguenther@suse.de>
20668
20669 * passes.def: Move early points-to after early SRA.
20670
20671 2014-04-14 Richard Biener <rguenther@suse.de>
20672
20673 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20674 check for which sign-changes we allow when forwarding
20675 a converted value into a switch.
20676
20677 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20678
20679 * stor-layout.c (place_field): Finalize non-constant offset for the
20680 field, if any.
20681
20682 2014-04-14 Richard Biener <rguenther@suse.de>
20683
20684 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20685 as argument.
20686 (expand_switch_using_bit_tests_p): Likewise.
20687 (process_switch): Compute and pass on speed_p based on the
20688 switch stmt.
20689 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20690 optimize_bb_for_speed_p.
20691
20692 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20693
20694 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20695 * function.h (struct function): Rename has_force_vect_loops into
20696 has_force_vectorize_loops.
20697 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20698 (input_struct_function_base): Likewise.
20699 * lto-streamer-out.c (output_cfg): Likewise.
20700 (output_struct_function_base): Likewise.
20701 * omp-low.c (expand_omp_simd): Likewise.
20702 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20703 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20704 (version_loop_for_if_conversion): Likewise.
20705 (tree_if_conversion): Likewise.
20706 (main_tree_if_conversion): Likewise.
20707 (gate_tree_if_conversion): Likewise.
20708 * tree-inline.c (copy_loops): Likewise.
20709 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20710 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20711 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20712 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20713 * tree-vectorizer.c (vectorize_loops): Likewise.
20714 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20715
20716 2014-04-14 Richard Biener <rguenther@suse.de>
20717
20718 PR lto/60720
20719 * lto-streamer-out.c (wrap_refs): New function.
20720 (lto_output): Wrap symbol references in global initializes in
20721 type-preserving MEM_REFs.
20722
20723 2014-04-14 Christian Bruel <christian.bruel@st.com>
20724
20725 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20726
20727 2014-04-14 Christian Bruel <christian.bruel@st.com>
20728
20729 * config/sh/sh.md (setmemqi): New expand pattern.
20730 * config/sh/sh.h (CLEAR_RATIO): Define.
20731 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20732 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20733
20734 2014-04-14 Richard Biener <rguenther@suse.de>
20735
20736 PR middle-end/55022
20737 * fold-const.c (negate_expr_p): Don't negate directional rounding
20738 division.
20739 (fold_negate_expr): Likewise.
20740
20741 2014-04-14 Richard Biener <rguenther@suse.de>
20742
20743 PR tree-optimization/59817
20744 PR tree-optimization/60453
20745 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20746 recursion to catch all CHRECs in the scalar evolution and restrict
20747 the predicate for the remains appropriately.
20748
20749 2014-04-12 Catherine Moore <clm@codesourcery.com>
20750
20751 * config/mips/constraints.md: Add new register constraint "kb".
20752 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20753 (*movhi_internal): Likewise.
20754 (*movqi_internal): Likewise.
20755 * config/mips/mips.h (M16_STORE_REGS): New register class.
20756 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20757 (REG_CLASS_CONTENTS): Likewise.
20758 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20759
20760 2014-04-11 Tobias Burnus <burnus@net-b.de>
20761
20762 PR c/60194
20763 * doc/invoke.texi (-Wformat-signedness): Document it.
20764 (Wformat=2): Mention that this enables -Wformat-signedness.
20765
20766 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20767
20768 * common/config/epiphany/epiphany-common.c
20769 (epiphany_option_optimization_table): Enable section anchors by
20770 default at -O1 or higher.
20771 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20772 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20773 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20774 carries no extra cost.
20775 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20776 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20777 * config/epiphany/predicates.md (memclob_operand): New predicate.
20778 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20779 Use memclob_operand predicate and X constraint for operand 3.
20780
20781 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20782
20783 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20784 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20785 its operands.
20786
20787 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20788
20789 PR rtl-optimization/60651
20790 * mode-switching.c (optimize_mode_switching): Make sure to emit
20791 sets of a lower numbered entity before sets of a higher numbered
20792 entity to a mode of the same or lower priority.
20793 When creating a seginfo for a basic block that starts with a code
20794 label, move the insertion point past the code label.
20795 (new_seginfo): Document and enforce requirement that
20796 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20797 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20798 * doc/tm.texi: Regenerate.
20799
20800 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20801
20802 PR target/60811
20803 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20804
20805 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20806
20807 * BASE-VER: Set to 4.10.0.
20808
20809 2014-04-11 Tobias Burnus <burnus@net-b.de>
20810
20811 PR other/59055
20812 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20813 * doc/gcc.texi (Service): Update description in the @menu
20814 * doc/invoke.texi (Option Summary): Remove misplaced and
20815 duplicated @menu.
20816
20817 2014-04-11 Steve Ellcey <sellcey@mips.com>
20818 Jakub Jelinek <jakub@redhat.com>
20819
20820 PR middle-end/60556
20821 * expr.c (convert_move): Use emit_store_flag_force instead of
20822 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20823 argument to it.
20824
20825 2014-04-11 Richard Biener <rguenther@suse.de>
20826
20827 PR middle-end/60797
20828 * varasm.c (assemble_alias): Avoid endless error reporting
20829 recursion by setting TREE_ASM_WRITTEN.
20830
20831 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20832
20833 * config/s390/s390.md: Add a splitter for NOT rtx.
20834
20835 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20836
20837 PR rtl-optimization/60663
20838 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20839
20840 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20841 Jakub Jelinek <jakub@redhat.com>
20842
20843 PR lto/60567
20844 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20845 flag from decl_node to node.
20846
20847 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20848
20849 PR debug/60655
20850 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20851 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20852 ameliorating the cases where it can be.
20853
20854 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20855
20856 Revert
20857 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20858
20859 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20860 (loadsync_<mode>): Change mode.
20861 (load_quadpti, store_quadpti): New.
20862 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20863 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20864 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20865
20866 2014-04-09 Cong Hou <congh@google.com>
20867
20868 PR testsuite/60773
20869 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20870 documentation.
20871
20872 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20873
20874 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20875 instead of vnor to exploit possible fusion opportunity in the
20876 future.
20877 (altivec_expand_vec_perm_const_le): Likewise.
20878
20879 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20880
20881 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20882 (loadsync_<mode>): Change mode.
20883 (load_quadpti, store_quadpti): New.
20884 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20885 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20886
20887 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20888
20889 PR target/60763
20890 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20891 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20892 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20893
20894 2014-04-08 Richard Biener <rguenther@suse.de>
20895
20896 PR middle-end/60706
20897 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20898 a 64bit widest int print double-int similar to on HWI64 hosts.
20899
20900 2014-04-08 Richard Biener <rguenther@suse.de>
20901
20902 PR tree-optimization/60785
20903 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20904 default defs properly.
20905
20906 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20907
20908 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20909 (Weffc++): Likewise.
20910
20911 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20912
20913 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20914 set completep to false rather than true.
20915
20916 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20917
20918 PR target/60504
20919 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20920 ARM_TARGET2_DWARF_FORMAT.
20921
20922 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20923
20924 PR target/60609
20925 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20926 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20927 ADDR_DIFF_VEC.
20928
20929 2014-04-07 Richard Biener <rguenther@suse.de>
20930
20931 PR tree-optimization/60766
20932 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20933 (may_eliminate_iv): Convert cand_value_at result to desired type.
20934
20935 2014-04-07 Jason Merrill <jason@redhat.com>
20936
20937 PR c++/60731
20938 * common.opt (-fno-gnu-unique): Add.
20939 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20940
20941 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20942
20943 * haifa-sched.c: Fix outdated function reference and minor
20944 grammar errors in introductory comment.
20945
20946 2014-04-07 Richard Biener <rguenther@suse.de>
20947
20948 PR middle-end/60750
20949 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20950 for noreturn calls.
20951 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20952
20953 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20954
20955 PR debug/55794
20956 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20957 size accounting for thunks.
20958 (pa_asm_output_mi_thunk): Use final_start_function() and
20959 final_end_function() to output function start and end directives.
20960
20961 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20962
20963 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20964 device specific ISA/ feature information. Remove short_sp and
20965 errata_skip ds. Add avr_device_specific_features enum to have device
20966 specific info.
20967 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20968 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20969 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20970 updated device specific info.
20971 * config/avr/avr-mcus.def: Merge device specific details to
20972 dev_attribute field.
20973 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20974 errata_skip.
20975 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20976 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20977 assembler if RMW isa supported by current device.
20978 * config/avr/genmultilib.awk: Update as device info structure changed.
20979 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20980
20981 2014-04-04 Cong Hou <congh@google.com>
20982
20983 PR tree-optimization/60656
20984 * tree-vect-stmts.c (supportable_widening_operation):
20985 Fix a bug that elements in a vector with vect_used_by_reduction
20986 property are incorrectly reordered when the operation on it is not
20987 consistant with the one in reduction operation.
20988
20989 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20990
20991 PR rtl-optimization/60155
20992 * gcse.c (record_set_data): New function.
20993 (single_set_gcse): New function.
20994 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20995 (hoist_code): Likewise.
20996 (get_pressure_class_and_nregs): Likewise.
20997
20998 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20999
21000 * explow.c (probe_stack_range): Emit a final optimization blockage.
21001
21002 2014-04-04 Anthony Green <green@moxielogic.com>
21003
21004 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
21005 typos.
21006
21007 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
21008
21009 PR ipa/59626
21010 * lto-cgraph.c (input_overwrite_node): Check that partitioning
21011 flags are set only during streaming.
21012 * ipa.c (process_references, walk_polymorphic_call_targets,
21013 symtab_remove_unreachable_nodes): Drop bodies of always inline
21014 after early inlining.
21015 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
21016
21017 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21018 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21019
21020 PR debug/60655
21021 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21022 containing a NOT.
21023
21024 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21025
21026 PR bootstrap/60743
21027 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21028 duration.
21029 (cortex_a53_fdivd): Likewise.
21030
21031 2014-04-04 Martin Jambor <mjambor@suse.cz>
21032
21033 PR ipa/60640
21034 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21035 Adjust all callers.
21036 * cgraph.c (clone_of_p): Also return true if thunks match.
21037 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21038 cgraph_function_or_thunk_node and an obsolete comment.
21039 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21040 file.
21041 (build_function_decl_skip_args): Likewise.
21042 (set_new_clone_decl_and_node_flags): New function.
21043 (duplicate_thunk_for_node): Likewise.
21044 (redirect_edge_duplicating_thunks): Likewise.
21045 (cgraph_clone_node): New parameter args_to_skip, pass it to
21046 redirect_edge_duplicating_thunks which is called instead of
21047 cgraph_redirect_edge_callee.
21048 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21049 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21050
21051 2014-04-04 Jeff Law <law@redhat.com>
21052
21053 PR target/60657
21054 * config/arm/predicates.md (const_int_I_operand): New predicate.
21055 (const_int_M_operand): Similarly.
21056 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21057 const_int_operand.
21058 (insv_t2, extv_reg, extzv_t2): Likewise.
21059 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21060 (pop_multiple_with_writeback_and_return): Likewise.
21061 (vfp_pop_multiple_with_writeback): Likewise
21062
21063 2014-04-04 Richard Biener <rguenther@suse.de>
21064
21065 PR ipa/60746
21066 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21067 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21068 non-GIMPLE_LABELs.
21069 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21070 * gimplify.c (gimple_add_tmp_var_fn): New function.
21071 * gimple-expr.h (create_tmp_reg_fn): Declare.
21072 * gimple-expr.c (create_tmp_reg_fn): New function.
21073 * gimple-low.c (record_vars_into): Don't change cfun.
21074 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21075 code generation without cfun.
21076
21077 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21078
21079 PR bootstrap/60719
21080 * Makefile.in (install-driver): Fix shell scripting.
21081
21082 2014-04-03 Cong Hou <congh@google.com>
21083
21084 PR tree-optimization/60505
21085 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21086 threshold of number of iterations below which no vectorization
21087 will be done.
21088 * tree-vect-loop.c (new_loop_vec_info):
21089 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21090 * tree-vect-loop.c (vect_analyze_loop_operations):
21091 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21092 * tree-vect-loop.c (vect_transform_loop):
21093 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21094 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21095 of iterations of the loop and see if we should build the epilogue.
21096
21097 2014-04-03 Richard Biener <rguenther@suse.de>
21098
21099 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21100 (streamer_tree_cache_create): Adjust.
21101 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21102 to allow optional nodes array.
21103 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21104 (streamer_tree_cache_append): Likewise.
21105 (streamer_tree_cache_create): Create nodes array optionally
21106 as specified by parameter.
21107 * lto-streamer-out.c (create_output_block): Avoid maintaining
21108 the node array in the writer cache.
21109 (DFS_write_tree): Remove assertion.
21110 (produce_asm_for_decls): Free the out decl state hash table early.
21111 * lto-streamer-in.c (lto_data_in_create): Adjust for
21112 streamer_tree_cache_create prototype change.
21113
21114 2014-04-03 Richard Biener <rguenther@suse.de>
21115
21116 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21117 set TREE_CHAIN to NULL_TREE.
21118
21119 2014-04-03 Richard Biener <rguenther@suse.de>
21120
21121 PR tree-optimization/60740
21122 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21123 over all GIMPLE_COND operands.
21124
21125 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21126
21127 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21128 (Weffc++): Remove Scott's numbering, merge lists and reference
21129 Wnon-virtual-dtor.
21130
21131 2014-04-03 Nick Clifton <nickc@redhat.com>
21132
21133 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21134 properly.
21135
21136 2014-04-03 Martin Jambor <mjambor@suse.cz>
21137
21138 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21139 mention gcc_unreachable before failing.
21140 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21141 removed symbols.
21142
21143 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21144
21145 PR ipa/60659
21146 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21147 inconsistent code and instead mark the context inconsistent.
21148 (possible_polymorphic_call_targets): For inconsistent contexts
21149 return empty complete list.
21150
21151 2014-04-02 Anthony Green <green@moxielogic.com>
21152
21153 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21154 (extendqisi2, extendhisi2): Define.
21155 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21156 (WCHAR_TYPE): Change to unsigned int.
21157
21158 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21159
21160 PR tree-optimization/60733
21161 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21162 insertion point for PHI candidates to be the end of the feeding
21163 block for the PHI argument.
21164
21165 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21166
21167 PR rtl-optimization/60650
21168 * lra-constraints.c (process_alt_operands): Decrease reject for
21169 earlyclobber matching.
21170
21171 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21172
21173 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21174
21175 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21176
21177 * config/spu/spu.c (pad_bb): Do not crash when the last
21178 insn is CODE_FOR_blockage.
21179
21180 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21181
21182 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21183 lies outside the target mode.
21184
21185 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21186
21187 PR target/60735
21188 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21189 software floating point or no floating point registers, do not
21190 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21191 in GPRs that occurs after we tested for GPRs that would never be
21192 true.
21193
21194 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21195 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21196 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21197 specifically allow DDmode, since that does not use the SPE SIMD
21198 instructions.
21199
21200 2014-04-02 Richard Biener <rguenther@suse.de>
21201
21202 PR middle-end/60729
21203 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21204 MODE_INTs. Properly use negv_optab.
21205 (expand_abs): Likewise.
21206
21207 2014-04-02 Richard Biener <rguenther@suse.de>
21208
21209 PR bootstrap/60719
21210 * Makefile.in (install-driver): Guard extra installs with special
21211 names properly.
21212
21213 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21214
21215 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21216 Document vec_vgbbd.
21217
21218 2014-04-01 Richard Henderson <rth@redhat.com>
21219
21220 PR target/60704
21221 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21222 alternative enabled before register allocation.
21223
21224 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21225
21226 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21227 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21228 typo.
21229 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21230 (nios2_got_address): Update nios2_large_got_address call site.
21231 (nios2_delegitimize_address): New function.
21232 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21233 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21234 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21235
21236 2014-04-01 Martin Husemann <martin@duskware.de>
21237
21238 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21239 for -mabi=32.
21240
21241 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21242
21243 PR rtl-optimization/60604
21244 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21245 check from register_operand.
21246 (register_operand): Redefine in terms of general_operand.
21247 (nonmemory_operand): Use register_operand for the non-constant cases.
21248
21249 2014-04-01 Richard Biener <rguenther@suse.de>
21250
21251 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21252
21253 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21254
21255 * doc/invoke.texi (mapp-regs): Clarify.
21256
21257 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21258
21259 * config/i386/avx512fintrin.h (__v32hi): Define type.
21260 (__v64qi): Likewise.
21261 (_mm512_set1_epi8): Define.
21262 (_mm512_set1_epi16): Define.
21263 (_mm512_set4_epi32): Define.
21264 (_mm512_set4_epi64): Define.
21265 (_mm512_set4_pd): Define.
21266 (_mm512_set4_ps): Define.
21267 (_mm512_setr4_epi64): Define.
21268 (_mm512_setr4_epi32): Define.
21269 (_mm512_setr4_pd): Define.
21270 (_mm512_setr4_ps): Define.
21271 (_mm512_setzero_epi32): Define.
21272
21273 2014-03-31 Martin Jambor <mjambor@suse.cz>
21274
21275 PR middle-end/60647
21276 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21277 callsite_arguments_match_p. Updated all callers. Also check types of
21278 corresponding formal parameters and actual arguments.
21279 (not_all_callers_have_enough_arguments_p) Renamed to
21280 some_callers_have_mismatched_arguments_p.
21281
21282 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21283
21284 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21285
21286 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21287
21288 PR target/60034
21289 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21290 section anchor.
21291
21292 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21293
21294 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21295 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21296 Split out
21297 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21298 Use FMAMODE_NOVF512 mode iterator.
21299 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21300 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21301 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21302 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21303 Split out
21304 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21305 Use VF_128_256 mode iterator.
21306 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21307 Ditto.
21308
21309 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21310
21311 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21312 static chain if needed.
21313
21314 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21315
21316 PR target/60697
21317 * lra-constraints.c (index_part_to_reg): New.
21318 (process_address): Use it.
21319
21320 2014-03-27 Jeff Law <law@redhat.com>
21321 Jakub Jelinek <jakub@redhat.com>
21322
21323 PR target/60648
21324 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21325 gen_rtx_{PLUS,MULT} to build up the address expression.
21326
21327 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21328 creating non-canonical RTL.
21329
21330 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21331
21332 PR ipa/60243
21333 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21334 functions; reorganize to make cheap checks first.
21335 (inline_small_functions): Do not estimate growth when dumping;
21336 it is expensive.
21337 * ipa-inline.h (inline_summary): Add min_size.
21338 (growth_likely_positive): New function.
21339 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21340 (set_cond_stmt_execution_predicate): Cleanup.
21341 (estimate_edge_size_and_time): Compute min_size.
21342 (estimate_calls_size_and_time): Likewise.
21343 (estimate_node_size_and_time): Likewise.
21344 (inline_update_overall_summary): Update min_size.
21345 (do_estimate_edge_time): Likewise.
21346 (do_estimate_edge_size): Update.
21347 (do_estimate_edge_hints): Update.
21348 (growth_likely_positive): New function.
21349
21350 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21351
21352 PR target/60693
21353 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21354 also if addr has VOIDmode.
21355
21356 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21357
21358 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21359 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21360 Declare extern.
21361 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21362 instructions as well as AdvancedSIMD loads.
21363
21364 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21365
21366 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21367 Use crypto_aese type.
21368 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21369 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21370 crypto_aese, crypto_aesmc. Move to types.md.
21371 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21372 crypto_aesmc.
21373 * config/arm/iterators.md (crypto_type): Likewise.
21374
21375 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21376
21377 * cgraph.c: Include expr.h and tree-dfa.h.
21378 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21379 remove LHS.
21380
21381 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21382
21383 PR target/60675
21384 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21385 regs from checking multi-reg pseudos.
21386
21387 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21388
21389 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21390
21391 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21392
21393 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21394 if it would clobber the stack pointer, even temporarily.
21395
21396 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21397
21398 * mode-switching.c: Make small adjustments to the top comment.
21399
21400 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21401
21402 * config/rs6000/constraints.md (wD constraint): New constraint to
21403 match the constant integer to get the top DImode/DFmode out of a
21404 vector in a VSX register.
21405
21406 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21407 match the constant integer to get the top DImode/DFmode out of a
21408 vector in a VSX register.
21409
21410 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21411 for ISA 2.07.
21412
21413 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21414 vbpermq builtins.
21415
21416 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21417 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21418
21419 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21420 Optimize vec_extract of 64-bit values, where the value being
21421 extracted is in the top word, where we can use scalar
21422 instructions. Add direct move and store support. Combine the big
21423 endian/little endian vector select load support into a single insn.
21424 (vsx_extract_<mode>_internal1): Likewise.
21425 (vsx_extract_<mode>_internal2): Likewise.
21426 (vsx_extract_<mode>_load): Likewise.
21427 (vsx_extract_<mode>_store): Likewise.
21428 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21429 combined into vsx_extract_<mode>_load.
21430 (vsx_extract_<mode>_one_le): Likewise.
21431
21432 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21433 define the top 64-bit vector element.
21434
21435 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21436 constraint.
21437
21438 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21439 Document vec_vbpermq builtin.
21440
21441 PR target/60672
21442 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21443 enable use of xxsldwi and xxpermdi builtin functions.
21444 (vec_xxpermdi): Likewise.
21445
21446 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21447 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21448
21449 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21450
21451 PR rtl-optimization/60650
21452 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21453 first_p. Use it.
21454 (find_spills_for): New.
21455 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21456 Spill all pseudos on the second iteration.
21457
21458 2014-03-27 Marek Polacek <polacek@redhat.com>
21459
21460 PR c/50347
21461 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21462 types.
21463
21464 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21465
21466 * config/s390/s390.c (s390_can_use_return_insn): Check for
21467 call-saved FPRs on 31 bit.
21468
21469 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21470
21471 PR middle-end/60682
21472 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21473 if they need regimplification, just drop them instead of
21474 calling gimple_regimplify_operands on them.
21475
21476 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21477
21478 PR target/60580
21479 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21480 (aarch64_frame_pointer_required): Adjust logic.
21481 (aarch64_can_eliminate): Adjust logic.
21482 (aarch64_override_options_after_change): Adjust logic.
21483
21484 2014-03-27 Dehao Chen <dehao@google.com>
21485
21486 * ipa-inline.c (early_inliner): Update node's inline info.
21487
21488 2014-03-26 Dehao Chen <dehao@google.com>
21489
21490 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21491 compiler inserted conditional jumps for NAN float check.
21492
21493 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21494
21495 * ubsan.h (ubsan_create_data): Change second argument's type
21496 to const location_t *.
21497 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21498 _("<unknown>").
21499 (ubsan_create_data): Change second argument to const location_t *PLOC.
21500 Create Loc field whenever PLOC is non-NULL.
21501 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21502 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21503 callers.
21504
21505 PR other/59545
21506 * real.c (real_to_integer2): Change type of low to UHWI.
21507
21508 2014-03-26 Tobias Burnus <burnus@net-b.de>
21509
21510 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21511 (CILK_SELF_SPECS): New define.
21512 (driver_self_specs): Use it.
21513
21514 2014-03-26 Richard Biener <rguenther@suse.de>
21515
21516 * tree-pretty-print.c (percent_K_format): Implement special
21517 case for LTO and its stripped down BLOCK tree.
21518
21519 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21520
21521 PR sanitizer/60636
21522 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21523
21524 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21525 one range is range_int_cst_p, but not both, at least optimize
21526 addition/subtraction of 0 and multiplication by 0 or 1.
21527 * gimple-fold.c (gimple_fold_call): Fold
21528 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21529 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21530 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21531
21532 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21533
21534 PR rtl-optimization/60452
21535 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21536 <case REG>: Return 1 for invalid offsets from the frame pointer.
21537
21538 2014-03-26 Marek Polacek <polacek@redhat.com>
21539
21540 PR c/37428
21541 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21542 a structure/union.
21543
21544 2014-03-26 Marek Polacek <polacek@redhat.com>
21545
21546 PR c/39525
21547 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21548 field members.
21549
21550 2014-03-26 Marek Polacek <polacek@redhat.com>
21551
21552 PR other/59545
21553 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21554 multiplication in unsigned type.
21555
21556 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21557
21558 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21559
21560 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21561
21562 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21563
21564 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21565
21566 PR ipa/60315
21567 * cif-code.def (UNREACHABLE) New code.
21568 * ipa-inline.c (inline_small_functions): Skip edges to
21569 __builtlin_unreachable.
21570 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21571 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21572 predicate to __bulitin_unreachable.
21573 (set_cond_stmt_execution_predicate): Fix issue when
21574 invert_tree_comparison returns ERROR_MARK.
21575 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21576 propagate to inline clones.
21577 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21578 to unreachable.
21579 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21580 * cgraphclones.c (cgraph_clone_node): If call destination is already
21581 ureachable, do not redirect it back.
21582 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21583 unreachable.
21584
21585 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21586
21587 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21588 Do not modify inline clones.
21589
21590 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21591
21592 * config/i386/i386.md (general_sext_operand): New mode attr.
21593 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21594 don't generate (sign_extend (const_int)).
21595 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21596 operands[2]. Use We constraint instead of <i> and
21597 <general_sext_operand> predicate instead of <general_operand>.
21598 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21599 * config/i386/constraints.md (We): New constraint.
21600 * config/i386/predicates.md (x86_64_sext_operand,
21601 sext_operand): New predicates.
21602
21603 2014-03-25 Martin Jambor <mjambor@suse.cz>
21604
21605 PR ipa/60600
21606 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21607 inconsistent devirtualizations to __builtin_unreachable.
21608
21609 2014-03-25 Marek Polacek <polacek@redhat.com>
21610
21611 PR c/35449
21612 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21613
21614 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21615
21616 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21617 order of elements for big-endian.
21618
21619 2014-03-25 Richard Biener <rguenther@suse.de>
21620
21621 PR middle-end/60635
21622 * gimplify-me.c (gimple_regimplify_operands): Update the
21623 re-gimplifed stmt.
21624
21625 2014-03-25 Martin Jambor <mjambor@suse.cz>
21626
21627 PR ipa/59176
21628 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21629 (lto_output_varpool_node): Likewise.
21630 (input_overwrite_node): Likewise.
21631 (input_varpool_node): Likewise.
21632
21633 2014-03-25 Richard Biener <rguenther@suse.de>
21634
21635 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21636 (run_gcc): Likewise.
21637
21638 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21639
21640 * combine.c (simplify_compare_const): Add MODE argument.
21641 Handle mode_width 0 as very large mode_width.
21642 (try_combine, simplify_comparison): Adjust callers.
21643
21644 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21645 type to avoid signed integer overflow.
21646 * explow.c (plus_constant): Likewise.
21647
21648 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21649
21650 * doc/generic.texi: Correct typos.
21651
21652 2014-03-24 Tobias Burnus <burnus@net-b.de>
21653
21654 * doc/invoke.texi (-flto): Expand section about
21655 using static libraries with LTO.
21656
21657 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21658
21659 PR rtl-optimization/60501
21660 * optabs.def (addptr3_optab): New optab.
21661 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21662 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21663 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21664
21665 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21666
21667 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21668
21669 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21670
21671 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21672 _mm512_set1_pd.
21673
21674 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21675 (_mm256_undefined_ps): Define.
21676 (_mm256_undefined_pd): Define.
21677 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21678 (_mm_undefined_pd): Define.
21679 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21680 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21681 (_mm512_undefined_ps): Define.
21682 (_mm512_undefined_pd): Define.
21683 Use _mm*_undefined_*.
21684 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21685
21686 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21687
21688 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21689 (lshr_simd): DI mode added.
21690 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21691 (aarch64_ushr_simddi): Likewise.
21692 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21693 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21694 (vshrd_n_u64): Likewise.
21695
21696 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21697
21698 * Makefile.in (s-macro_list): Depend on cc1.
21699
21700 2014-03-23 Teresa Johnson <tejohnson@google.com>
21701
21702 * ipa-utils.c (ipa_print_order): Use specified dump file.
21703
21704 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21705
21706 PR rtl-optimization/60601
21707 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21708
21709 * gcc.c (eval_spec_function): Initialize save_growing_value.
21710
21711 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21712
21713 PR sanitizer/60613
21714 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21715 code == MINUS_EXPR, never swap op0 with op1.
21716
21717 * toplev.c (init_local_tick): Avoid signed integer multiplication
21718 overflow.
21719 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21720 shift by first operand's bitsize.
21721
21722 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21723
21724 PR target/60610
21725 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21726 redefine to 1 or 0.
21727 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21728 TARGET_ISA_64BIT_P(x).
21729
21730 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21731
21732 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21733 pattern for vector nor instead of subtract from splat(-1).
21734 (altivec_expand_vec_perm_const_le): Likewise.
21735
21736 2014-03-21 Richard Henderson <rth@twiddle.net>
21737
21738 PR target/60598
21739 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21740 related insns after epilogue_completed.
21741
21742 2014-03-21 Martin Jambor <mjambor@suse.cz>
21743
21744 PR ipa/59176
21745 * cgraph.h (symtab_node): New flag body_removed.
21746 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21747 when removing bodies.
21748 * symtab.c (dump_symtab_base): Dump body_removed flag.
21749 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21750 had their bodies removed.
21751
21752 2014-03-21 Martin Jambor <mjambor@suse.cz>
21753
21754 PR ipa/60419
21755 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21756 in the border.
21757
21758 2014-03-21 Richard Biener <rguenther@suse.de>
21759
21760 PR tree-optimization/60577
21761 * tree-core.h (struct tree_base): Document nothrow_flag use
21762 in DECL_NONALIASED.
21763 * tree.h (DECL_NONALIASED): New.
21764 (may_be_aliased): Adjust.
21765 * coverage.c (build_var): Set DECL_NONALIASED.
21766
21767 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21768
21769 * expr.c (expand_expr_real_1): Remove outdated comment.
21770
21771 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21772
21773 PR middle-end/60597
21774 * ira.c (adjust_cleared_regs): Call copy_rtx on
21775 *reg_equiv[REGNO (loc)].src_p before passing it to
21776 simplify_replace_fn_rtx.
21777
21778 PR target/60568
21779 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21780 into CONST, put pic register as first operand of PLUS. Use
21781 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21782
21783 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21784
21785 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21786
21787 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21788
21789 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21790 around for store forwarding issue in the FPU on the UT699.
21791 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21792 loads and operations if -mfix-ut699 is specified.
21793 (divtf3_hq): Tweak attribute.
21794 (sqrttf2_hq): Likewise.
21795
21796 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21797
21798 * calls.c (store_one_arg): Remove incorrect const qualification on the
21799 type of the temporary.
21800 * cfgexpand.c (expand_return): Likewise.
21801 * expr.c (expand_constructor): Likewise.
21802 (expand_expr_real_1): Likewise.
21803
21804 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21805
21806 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21807 of parts.
21808
21809 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21810
21811 PR target/60039
21812 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21813
21814 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21815
21816 * config/arm/aarch-common-protos.h
21817 (alu_cost_table): Fix spelling of "extend".
21818 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21819
21820 2014-03-19 Richard Biener <rguenther@suse.de>
21821
21822 PR middle-end/60553
21823 * tree-core.h (tree_type_common): Re-order pointer members
21824 to reduce recursion depth during GC walks.
21825
21826 2014-03-19 Marek Polacek <polacek@redhat.com>
21827
21828 PR sanitizer/60569
21829 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21830 before accessing it.
21831
21832 2014-03-19 Richard Biener <rguenther@suse.de>
21833
21834 PR lto/59543
21835 * lto-streamer-in.c (input_function): In WPA stage do not drop
21836 debug stmts.
21837
21838 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21839
21840 PR tree-optimization/60559
21841 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21842 with build_zero_cst assignment.
21843
21844 2014-03-18 Kai Tietz <ktietz@redhat.com>
21845
21846 PR rtl-optimization/56356
21847 * sdbout.c (sdbout_parms): Verify that parms'
21848 incoming argument is valid.
21849 (sdbout_reg_parms): Likewise.
21850
21851 2014-03-18 Richard Henderson <rth@redhat.com>
21852
21853 PR target/60562
21854 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21855 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21856 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21857
21858 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21859
21860 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21861 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21862 Italicize plugin event names in description. Explain that
21863 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21864 Remind that no GCC functions should be called after PLUGIN_FINISH.
21865 Explain what pragmas with expansion are.
21866
21867 2014-03-18 Martin Liska <mliska@suse.cz>
21868
21869 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21870 gimple call statement is update.
21871 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21872 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21873
21874 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21875
21876 PR sanitizer/60557
21877 * ubsan.c (ubsan_instrument_unreachable): Call
21878 initialize_sanitizer_builtins.
21879 (ubsan_pass): Likewise.
21880
21881 PR sanitizer/60535
21882 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21883 varpool_finalize_decl instead of rest_of_decl_compilation.
21884
21885 2014-03-18 Richard Biener <rguenther@suse.de>
21886
21887 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21888 by using bitmap_and_compl instead of bitmap_and_compl_into.
21889 (df_rd_transfer_function): Likewise.
21890
21891 2014-03-18 Richard Biener <rguenther@suse.de>
21892
21893 * doc/lto.texi (fresolution): Fix typo.
21894
21895 2014-03-18 Richard Biener <rguenther@suse.de>
21896
21897 * doc/invoke.texi (flto): Update for changes in 4.9.
21898
21899 2014-03-18 Richard Biener <rguenther@suse.de>
21900
21901 * doc/loop.texi: Remove section on the removed lambda framework.
21902 Update loop docs with recent changes in preserving loop structure.
21903
21904 2014-03-18 Richard Biener <rguenther@suse.de>
21905
21906 * doc/lto.texi (-fresolution): Document.
21907
21908 2014-03-18 Richard Biener <rguenther@suse.de>
21909
21910 * doc/contrib.texi: Adjust my name.
21911
21912 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21913
21914 PR ipa/58721
21915 * internal-fn.c: Include diagnostic-core.h.
21916 (expand_BUILTIN_EXPECT): New function.
21917 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21918 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21919 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21920 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21921 IFN_BUILTIN_EXPECT.
21922 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21923 Revert 3 argument __builtin_expect code.
21924 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21925 * gimple-fold.c (gimple_fold_call): Likewise.
21926 * tree.h (fold_builtin_expect): New prototype.
21927 * builtins.c (build_builtin_expect_predicate): Add predictor
21928 argument, if non-NULL, create 3 argument __builtin_expect.
21929 (fold_builtin_expect): No longer static. Add ARG2 argument,
21930 pass it through to build_builtin_expect_predicate.
21931 (fold_builtin_2): Adjust caller.
21932 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21933 * internal-fn.def (BUILTIN_EXPECT): New.
21934
21935 2014-03-18 Tobias Burnus <burnus@net-b.de>
21936
21937 PR ipa/58721
21938 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21939 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21940 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21941
21942 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21943
21944 PR ipa/58721
21945 * predict.c (combine_predictions_for_bb): Fix up formatting.
21946 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21947 fill what it points to if non-NULL.
21948 (tree_predict_by_opcode): Adjust caller, use the predictor.
21949 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21950
21951 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21952
21953 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21954 proper constant for the store mode.
21955
21956 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21957
21958 * symtab.c (change_decl_assembler_name): Fix transparent alias
21959 chain construction.
21960
21961 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21962
21963 * config/aarch64/aarch64.c: Correct the comments about the
21964 aarch64 stack layout.
21965
21966 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21967
21968 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21969 check for GF_OMP_FOR_KIND_FOR.
21970
21971 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21972
21973 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21974 ymm and zmm register names.
21975
21976 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21977
21978 PR target/60516
21979 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21980 note creation for the 2010-08-31 changes.
21981
21982 2014-03-17 Marek Polacek <polacek@redhat.com>
21983
21984 PR middle-end/60534
21985 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21986 as -fno-tree-loop-vectorize.
21987 (expand_omp_simd): Likewise.
21988
21989 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21990
21991 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21992 (eligible_for_call_delay): New prototype.
21993 * config/sparc/sparc.c (tls_call_delay): Rename into...
21994 (eligible_for_call_delay): ...this. Return false if the instruction
21995 cannot be put in the delay slot of a branch.
21996 (eligible_for_restore_insn): Simplify.
21997 (eligible_for_return_delay): Return false if the instruction cannot be
21998 put in the delay slot of a branch and simplify.
21999 (eligible_for_sibcall_delay): Return false if the instruction cannot be
22000 put in the delay slot of a branch.
22001 * config/sparc/sparc.md (fix_ut699): New attribute.
22002 (tls_call_delay): Delete.
22003 (in_call_delay): Reimplement.
22004 (eligible_for_sibcall_delay): Rename into...
22005 (in_sibcall_delay): ...this.
22006 (eligible_for_return_delay): Rename into...
22007 (in_return_delay): ...this.
22008 (in_branch_delay): Reimplement.
22009 (in_uncond_branch_delay): Delete.
22010 (in_annul_branch_delay): Delete.
22011
22012 2014-03-14 Richard Henderson <rth@redhat.com>
22013
22014 PR target/60525
22015 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
22016 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22017 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22018 (floathi splitters): Remove.
22019 (float<SWI48x>xf2): New pattern.
22020 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22021 code that tried to handle DImode for 32-bit, but which was excluded
22022 by the pattern's condition. Drop allocation of stack temporary.
22023 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22024 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22025 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22026 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22027 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22028 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22029 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22030 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22031 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22032 (*float<SWI48x><X87MODEF>2_i387): Remove.
22033 (all float _with_temp splitters): Remove.
22034 (*float<SWI48x><MODEF>2_i387): New pattern.
22035 (*float<SWI48><MODEF>2_sse): New pattern.
22036 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22037 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22038
22039 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22040 Marek Polacek <polacek@redhat.com>
22041
22042 PR middle-end/60484
22043 * common.opt (dump_base_name_prefixed): New Variable.
22044 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22045 if x_dump_base_name_prefixed is already set, set it at the end.
22046
22047 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22048
22049 PR rtl-optimization/60508
22050 * lra-constraints.c (get_reload_reg): Add new parameter
22051 in_subreg_p.
22052 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22053 Pass the new parameter values.
22054
22055 2014-03-14 Richard Biener <rguenther@suse.de>
22056
22057 * common.opt: Revert unintented changes from r205065.
22058 * opts.c: Likewise.
22059
22060 2014-03-14 Richard Biener <rguenther@suse.de>
22061
22062 PR middle-end/60518
22063 * cfghooks.c (split_block): Properly adjust all loops the
22064 block was a latch of.
22065
22066 2014-03-14 Martin Jambor <mjambor@suse.cz>
22067
22068 PR lto/60461
22069 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22070 and simplify it.
22071
22072 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22073
22074 PR target/59396
22075 * config/avr/avr.c (avr_set_current_function): Pass function name
22076 through default_strip_name_encoding before sanity checking instead
22077 of skipping the first char of the assembler name.
22078
22079 2014-03-13 Richard Henderson <rth@redhat.com>
22080
22081 PR debug/60438
22082 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22083 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22084 * config/i386/i386-protos.h: Likewise.
22085 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22086 in the expander instead of a splitter.
22087 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22088 any possibility of requiring a memory.
22089 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22090 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22091 (fp branch splitters): Update for ix86_split_fp_branch.
22092 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22093 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22094 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22095 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22096 (*fop_<MODEF>_3_i387): Likewise.
22097 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22098 (splitters for the fop_* register patterns): Remove.
22099 (fscalexf4_i387): Rename from *fscalexf4_i387.
22100 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22101
22102 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22103
22104 PR tree-optimization/59779
22105 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22106 type for bitsize and maxsize instead of HOST_WIDE_INT.
22107
22108 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22109
22110 PR rtl-optimization/57320
22111 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22112 the CFG after thread_prologue_and_epilogue_insns.
22113
22114 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22115
22116 PR rtl-optimization/57189
22117 * lra-constraints.c (process_alt_operands): Disfavor spilling
22118 vector pseudos.
22119
22120 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22121
22122 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22123
22124 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22125
22126 PR tree-optimization/59025
22127 PR middle-end/60418
22128 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22129 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22130
22131 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22132
22133 PR target/60486
22134 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22135 calls of avr_out_plus_1.
22136
22137 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22138
22139 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22140 BB's single pred and update the father loop's latch info later.
22141
22142 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22143
22144 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22145 (VEC_M): Likewise.
22146 (VEC_N): Likewise.
22147 (VEC_R): Likewise.
22148 (VEC_base): Likewise.
22149 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22150 registers, we need to swap double words in little endian mode.
22151
22152 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22153 to be a container mode for 128-bit integer operations added in ISA
22154 2.07. Unlike TImode and PTImode, the preferred register set is
22155 the Altivec/VMX registers for the 128-bit operations.
22156
22157 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22158 declarations.
22159 (rs6000_split_128bit_ok_p): Likewise.
22160
22161 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22162 macros for creating ISA 2.07 normal and overloaded builtin
22163 functions with 3 arguments.
22164 (BU_P8V_OVERLOAD_3): Likewise.
22165 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22166 for use as overloaded functions.
22167 (VPERM_1TI_UNS): Likewise.
22168 (VSEL_1TI): Likewise.
22169 (VSEL_1TI_UNS): Likewise.
22170 (ST_INTERNAL_1ti): Likewise.
22171 (LD_INTERNAL_1ti): Likewise.
22172 (XXSEL_1TI): Likewise.
22173 (XXSEL_1TI_UNS): Likewise.
22174 (VPERM_1TI): Likewise.
22175 (VPERM_1TI_UNS): Likewise.
22176 (XXPERMDI_1TI): Likewise.
22177 (SET_1TI): Likewise.
22178 (LXVD2X_V1TI): Likewise.
22179 (STXVD2X_V1TI): Likewise.
22180 (VEC_INIT_V1TI): Likewise.
22181 (VEC_SET_V1TI): Likewise.
22182 (VEC_EXT_V1TI): Likewise.
22183 (EQV_V1TI): Likewise.
22184 (NAND_V1TI): Likewise.
22185 (ORC_V1TI): Likewise.
22186 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22187 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22188 overloaded builtin.
22189 (VADDUQM): Likewise.
22190 (VSUBCUQ): Likewise.
22191 (VADDEUQM): Likewise.
22192 (VADDECUQ): Likewise.
22193 (VSUBEUQM): Likewise.
22194 (VSUBECUQ): Likewise.
22195
22196 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22197 __int128_t and __uint128_t types.
22198 (__uint128_type): Likewise.
22199 (altivec_categorize_keyword): Add support for vector __int128_t,
22200 vector __uint128_t, vector __int128, and vector unsigned __int128
22201 as a container type for TImode operations that need to be done in
22202 VSX/Altivec registers.
22203 (rs6000_macro_to_expand): Likewise.
22204 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22205 to support 128-bit integer instructions vaddcuq, vadduqm,
22206 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22207 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22208
22209 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22210 for V1TImode, and set up preferences to use VSX/Altivec registers.
22211 Setup VSX reload handlers.
22212 (rs6000_debug_reg_global): Likewise.
22213 (rs6000_init_hard_regno_mode_ok): Likewise.
22214 (rs6000_preferred_simd_mode): Likewise.
22215 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22216 (easy_altivec_constant): Likewise.
22217 (output_vec_const_move): Likewise.
22218 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22219 simple move.
22220 (rs6000_expand_vector_extract): Likewise.
22221 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22222 addressing.
22223 (rs6000_const_vec): Add support for V1TImode.
22224 (rs6000_emit_le_vsx_load): Swap double words when loading or
22225 storing TImode/V1TImode.
22226 (rs6000_emit_le_vsx_store): Likewise.
22227 (rs6000_emit_le_vsx_move): Likewise.
22228 (rs6000_emit_move): Add support for V1TImode.
22229 (altivec_expand_ld_builtin): Likewise.
22230 (altivec_expand_st_builtin): Likewise.
22231 (altivec_expand_vec_init_builtin): Likewise.
22232 (altivec_expand_builtin): Likewise.
22233 (rs6000_init_builtins): Add support for V1TImode type. Add
22234 support for ISA 2.07 128-bit integer builtins. Define type names
22235 for the VSX/Altivec vector types.
22236 (altivec_init_builtins): Add support for overloaded vector
22237 functions with V1TImode type.
22238 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22239 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22240 external function.
22241 (rs6000_split_128bit_ok_p): Likewise.
22242 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22243 __int128_t and vector __uint128_t.
22244
22245 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22246 and mode attributes.
22247 (VSX_M): Likewise.
22248 (VSX_M2): Likewise.
22249 (VSm): Likewise.
22250 (VSs): Likewise.
22251 (VSr): Likewise.
22252 (VSv): Likewise.
22253 (VS_scalar): Likewise.
22254 (VS_double): Likewise.
22255 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22256
22257 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22258 we support the ISA 2.07 128-bit integer arithmetic instructions.
22259 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22260 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22261 and TImode types for use with the builtin functions.
22262 (V1TI_type_node): Likewise.
22263 (unsigned_V1TI_type_node): Likewise.
22264 (intTI_type_internal_node): Likewise.
22265 (uintTI_type_internal_node): Likewise.
22266
22267 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22268 128-bit builtin functions.
22269 (UNSPEC_VADDEUQM): Likewise.
22270 (UNSPEC_VADDECUQ): Likewise.
22271 (UNSPEC_VSUBCUQ): Likewise.
22272 (UNSPEC_VSUBEUQM): Likewise.
22273 (UNSPEC_VSUBECUQ): Likewise.
22274 (VM): Add V1TImode to vector mode iterators.
22275 (VM2): Likewise.
22276 (VI_unit): Likewise.
22277 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22278 (altivec_vaddcuq): Likewise.
22279 (altivec_vsubuqm): Likewise.
22280 (altivec_vsubcuq): Likewise.
22281 (altivec_vaddeuqm): Likewise.
22282 (altivec_vaddecuq): Likewise.
22283 (altivec_vsubeuqm): Likewise.
22284 (altivec_vsubecuq): Likewise.
22285
22286 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22287 mode iterators.
22288 (BOOL_128): Likewise.
22289 (BOOL_REGS_OUTPUT): Likewise.
22290 (BOOL_REGS_OP1): Likewise.
22291 (BOOL_REGS_OP2): Likewise.
22292 (BOOL_REGS_UNARY): Likewise.
22293 (BOOL_REGS_AND_CR0): Likewise.
22294
22295 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22296 128-bit integer builtin support.
22297 (vec_vadduqm): Likewise.
22298 (vec_vaddecuq): Likewise.
22299 (vec_vaddeuqm): Likewise.
22300 (vec_vsubecuq): Likewise.
22301 (vec_vsubeuqm): Likewise.
22302 (vec_vsubcuq): Likewise.
22303 (vec_vsubuqm): Likewise.
22304
22305 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22306 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22307 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22308 128-bit integer add/subtract to ISA 2.07.
22309
22310 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22311
22312 * config/arc/arc.c (arc_predicate_delay_insns):
22313 Fix third argument passed to conditionalize_nonjump.
22314
22315 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22316
22317 * config/aarch64/aarch64-builtins.c
22318 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22319 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22320 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22321 instead of __builtin_lfloor.
22322 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22323
22324 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22325
22326 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22327 (tree_ssa_ifcombine_bb_1): New function.
22328 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22329 is an empty forwarder block to then_bb or vice versa and then_bb
22330 and else_bb are effectively swapped.
22331
22332 2014-03-12 Christian Bruel <christian.bruel@st.com>
22333
22334 PR target/60264
22335 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22336 REG_CFA_DEF_CFA note.
22337 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22338 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22339
22340 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22341
22342 PR tree-optimization/60454
22343 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22344
22345 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22346
22347 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22348 Do not define target_cpu_default2 to generic.
22349 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22350 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22351 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22352
22353 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22354 Marc Glisse <marc.glisse@inria.fr>
22355
22356 PR tree-optimization/60502
22357 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22358 instead of build_low_bits_mask.
22359
22360 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22361
22362 PR middle-end/60482
22363 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22364 if there are multiple uses, but op doesn't live on E edge.
22365 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22366 clobber stmts before __builtin_unreachable.
22367
22368 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22369
22370 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22371 hard_frame_pointer_rtx.
22372 * cse.c (cse_insn): Remove volatile check.
22373 * cselib.c (cselib_process_insn): Likewise.
22374 * dse.c (scan_insn): Likewise.
22375
22376 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22377
22378 * config/arc/arc.c (conditionalize_nonjump): New function,
22379 broken out of ...
22380 (arc_ifcvt): ... this.
22381 (arc_predicate_delay_insns): Use it.
22382
22383 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22384
22385 * config/arc/predicates.md (extend_operand): During/after reload,
22386 allow const_int_operand.
22387 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22388 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22389 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22390 to "i".
22391 (umulsi3_highpart_i): Likewise.
22392
22393 2014-03-11 Richard Biener <rguenther@suse.de>
22394
22395 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22396 Add asserts to guard possible wrong-code bugs.
22397
22398 2014-03-11 Richard Biener <rguenther@suse.de>
22399
22400 PR tree-optimization/60429
22401 PR tree-optimization/60485
22402 * tree-ssa-structalias.c (set_union_with_increment): Properly
22403 take into account all fields that overlap the shifted vars.
22404 (do_sd_constraint): Likewise.
22405 (do_ds_constraint): Likewise.
22406 (get_constraint_for_ptr_offset): Likewise.
22407
22408 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22409
22410 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22411 (nios2_compute_frame_layout):
22412 Add calculation of cfun->machine->fp_save_offset.
22413 (nios2_expand_prologue): Correct setting of frame pointer register
22414 in prologue.
22415 (nios2_expand_epilogue): Update recovery of stack pointer from
22416 frame pointer accordingly.
22417 (nios2_initial_elimination_offset): Update calculation of offset
22418 for eliminating to HARD_FRAME_POINTER_REGNUM.
22419
22420 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22421
22422 PR ipa/60457
22423 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22424 cgraph_get_create_node on VAR_DECLs.
22425
22426 2014-03-10 Richard Biener <rguenther@suse.de>
22427
22428 PR middle-end/60474
22429 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22430
22431 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22432
22433 * config/vms/vms.opt (vms_float_format): New variable.
22434
22435 2014-03-08 Tobias Burnus <burnus@net-b.de>
22436
22437 * doc/invoke.texi (-fcilkplus): Update implementation status.
22438
22439 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22440 Richard Biener <rguenther@suse.de>
22441
22442 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22443 consistently accross all TUs.
22444 (run_gcc): Enable -fshort-double automatically at link at link-time
22445 and disallow override.
22446
22447 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22448
22449 PR target/58271
22450 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22451 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22452 if they can't be used.
22453
22454 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22455
22456 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22457 for Solaris 11/x86 ld.
22458 * configure: Regenerate.
22459
22460 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22461
22462 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22463 (LIB_TLS_SPEC): Save as ld_tls_libs.
22464 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22465 (HAVE_AS_IX86_TLSLDM): New test.
22466 * configure, config.in: Regenerate.
22467 * config/i386/i386.c (legitimize_tls_address): Fall back to
22468 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22469 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22470 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22471 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22472
22473 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22474
22475 * common.opt (fira-loop-pressure): Mark as optimization.
22476
22477 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22478
22479 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22480 an OpenMP mappable type.
22481
22482 2014-03-06 Matthias Klose <doko@ubuntu.com>
22483
22484 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22485 MULTILIB_OSDIRNAMES is not defined.
22486
22487 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22488 Meador Inge <meadori@codesourcery.com>
22489
22490 PR target/58595
22491 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22492 (arm_legitimize_address): Call legitimize_tls_address for any
22493 arm_tls_referenced_p expression, handle constant addend. Call it
22494 before testing for !TARGET_ARM.
22495 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22496
22497 2014-03-06 Richard Biener <rguenther@suse.de>
22498
22499 PR middle-end/60445
22500 PR lto/60424
22501 PR lto/60427
22502 Revert
22503 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22504
22505 * tree-streamer.c (record_common_node): Assert we don't record
22506 nodes with type double.
22507 (preload_common_node): Skip type double, complex double and double
22508 pointer since it is now frontend dependent due to fshort-double option.
22509
22510 2014-03-06 Richard Biener <rguenther@suse.de>
22511
22512 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22513 or -fno-lto is specified and the linker has full plugin support.
22514 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22515 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22516 * lto-wrapper.c (merge_and_complain): Merge compile-time
22517 optimization levels.
22518 (run_gcc): And pass it through to the link options.
22519
22520 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22521
22522 PR debug/60381
22523 Revert:
22524 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22525 PR debug/59992
22526 * cselib.c (remove_useless_values): Skip to avoid quadratic
22527 behavior if the condition moved from...
22528 (cselib_process_insn): ... here holds.
22529
22530 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22531
22532 PR plugins/59335
22533 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22534 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22535
22536 PR plugins/59335
22537 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22538 (TM_H): Add x86-tune.def.
22539
22540 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22541
22542 * config/aarch64/aarch64.c (generic_tunings):
22543 Use cortexa57_extra_costs.
22544
22545 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22546
22547 PR lto/60404
22548 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22549 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22550 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22551 cost for in_lto_p.
22552
22553 2014-03-04 Heiher <r@hev.cc>
22554
22555 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22556 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22557
22558 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22559
22560 * config/i386/predicates.md (const2356_operand): Change to ...
22561 (const2367_operand): ... this.
22562 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22563 const2367_operand.
22564 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22565 (*avx512pf_scatterpf<mode>sf): Ditto.
22566 (avx512pf_scatterpf<mode>df): Ditto.
22567 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22568 (*avx512pf_scatterpf<mode>df): Ditto.
22569 * config/i386/i386.c (ix86_expand_builtin): Update
22570 incorrect hint operand error message.
22571
22572 2014-03-04 Richard Biener <rguenther@suse.de>
22573
22574 * lto-section-in.c (lto_get_section_data): Fix const cast.
22575
22576 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22577
22578 * tree-streamer.c (record_common_node): Assert we don't record
22579 nodes with type double.
22580 (preload_common_node): Skip type double, complex double and double
22581 pointer since it is now frontend dependent due to fshort-double option.
22582
22583 2014-03-04 Richard Biener <rguenther@suse.de>
22584
22585 PR lto/60405
22586 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22587 (lto_input_toplevel_asms): Likewise.
22588 * lto-section-in.c (lto_get_section_data): Instead do it here
22589 for every section.
22590
22591 2014-03-04 Richard Biener <rguenther@suse.de>
22592
22593 PR tree-optimization/60382
22594 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22595 dead PHIs a reduction.
22596
22597 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22598
22599 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22600 hint value.
22601 (_mm_prefetch): Move out of GCC target("sse") pragma.
22602 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22603 GCC target("prfchw") pragma.
22604 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22605 for locality <= 2.
22606 * config/i386/i386.c (ix86_option_override_internal): Enable
22607 -mprfchw with -mprefetchwt1.
22608
22609 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22610
22611 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22612 Mark as varying.
22613
22614 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22615
22616 * opts.h (CL_PCH_IGNORE): Define.
22617 * targhooks.c (option_affects_pch_p):
22618 Return false for options that have CL_PCH_IGNORE set.
22619 * opt-functions.awk: Process PchIgnore.
22620 * doc/options.texi: Document PchIgnore.
22621
22622 * config/arc/arc.opt (misize): Add PchIgnore property.
22623
22624 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22625
22626 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22627 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22628 constraint on constants to permit them being loaded into
22629 GENERAL_REGS or BASE_REGS.
22630
22631 2014-03-03 Nick Clifton <nickc@redhat.com>
22632
22633 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22634 anti-cacnonical alternatives.
22635 (negandhi3_real): New pattern.
22636 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22637
22638 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22639
22640 * config/avr/avr-mcus.def: Remove atxmega16x1.
22641 * config/avr/avr-tables.opt: Regenerate.
22642 * config/avr/t-multilib: Regenerate.
22643 * doc/avr-mmcu.texi: Regenerate.
22644
22645 2014-03-03 Tobias Grosser <tobias@grosser.es>
22646 Mircea Namolaru <mircea.namolaru@inria.fr>
22647
22648 PR tree-optimization/58028
22649 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22650 scalar dimensions.
22651
22652 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22653
22654 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22655 not handled by recognizers.
22656
22657 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22658
22659 PR middle-end/60175
22660 * function.c (expand_function_end): Don't emit
22661 clobber_return_register sequence if clobber_after is a BARRIER.
22662 * cfgexpand.c (construct_exit_block): Append instructions before
22663 return_label to prev_bb.
22664
22665 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22666
22667 * config/rs6000/constraints.md: Document reserved use of "wc".
22668
22669 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22670
22671 PR ipa/60150
22672 * ipa.c (function_and_variable_visibility): When dissolving comdat
22673 group, also set all symbols to local.
22674
22675 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22676
22677 PR ipa/60306
22678
22679 Revert:
22680 2013-12-14 Jan Hubicka <jh@suse.cz>
22681 PR middle-end/58477
22682 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22683
22684 2014-03-02 Jon Beniston <jon@beniston.com>
22685
22686 PR bootstrap/48230
22687 PR bootstrap/50927
22688 PR bootstrap/52466
22689 PR target/46898
22690 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22691 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22692 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22693 (simple_return, *simple_return): New patterns
22694 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22695 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22696
22697 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22698
22699 * dwarf2out.c (gen_subprogram_die): Tidy.
22700
22701 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22702
22703 PR target/60071
22704 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22705 (*mov_t_msb_neg_negc): ... this new insn.
22706
22707 2014-02-28 Jason Merrill <jason@redhat.com>
22708
22709 PR c++/58678
22710 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22711 function.
22712
22713 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22714
22715 PR c++/60314
22716 * dwarf2out.c (decltype_auto_die): New static.
22717 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22718 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22719 (is_cxx_auto): Likewise.
22720
22721 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22722
22723 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22724 we are not using general regs only.
22725
22726 2014-02-28 Richard Biener <rguenther@suse.de>
22727
22728 PR target/60280
22729 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22730 previous fix and only allow to remove trivial pre-headers
22731 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22732 (remove_forwarder_block): Properly update the latch of a loop.
22733
22734 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22735
22736 PR debug/59992
22737 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22738 (cselib_preserved_hash_table): New.
22739 (preserve_constants_and_equivs): Move preserved vals to it.
22740 (cselib_find_slot): Look it up first.
22741 (cselib_init): Initialize it.
22742 (cselib_finish): Release it.
22743 (dump_cselib_table): Dump it.
22744
22745 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22746
22747 PR debug/59992
22748 * cselib.c (remove_useless_values): Skip to avoid quadratic
22749 behavior if the condition moved from...
22750 (cselib_process_insn): ... here holds.
22751
22752 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22753
22754 PR debug/57232
22755 * var-tracking.c (vt_initialize): Apply the same condition to
22756 preserve the CFA base value.
22757
22758 2014-02-28 Joey Ye <joey.ye@arm.com>
22759
22760 PR target/PR60169
22761 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22762 if reload in progress or completed.
22763
22764 2014-02-28 Tobias Burnus <burnus@net-b.de>
22765
22766 PR middle-end/60147
22767 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22768 NAMELIST_DECL.
22769
22770 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22771
22772 * doc/tm.texi.in (Condition Code Status): Update documention for
22773 relative locations of cc0-setter and cc0-user.
22774
22775 2014-02-27 Jeff Law <law@redhat.com>
22776
22777 PR rtl-optimization/52714
22778 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22779 into two independent simple sets, if I3 is a jump, ensure the
22780 pattern we place into I3 is a (set (pc) ...).
22781
22782 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22783 Jeff Law <law@redhat.com>
22784
22785 PR rtl-optimization/49847
22786 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22787 are in different blocks.
22788 * doc/tm.texi (Condition Code Status): Update documention for
22789 relative locations of cc0-setter and cc0-user.
22790
22791 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22792
22793 PR target/59222
22794 * lra.c (lra_emit_add): Check SUBREG too.
22795
22796 2014-02-27 Andreas Schwab <schwab@suse.de>
22797
22798 * config/m68k/m68k.c (m68k_option_override): Disable
22799 -flive-range-shrinkage for classic m68k.
22800 (m68k_override_options_after_change): Likewise.
22801
22802 2014-02-27 Marek Polacek <polacek@redhat.com>
22803
22804 PR middle-end/59223
22805 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22806 -Wmaybe-uninitialized.
22807
22808 2014-02-27 Alan Modra <amodra@gmail.com>
22809
22810 PR target/57936
22811 * reload1.c (emit_input_reload_insns): When reload_override_in,
22812 set old to rl->in_reg when rl->in_reg is a subreg.
22813
22814 2014-02-26 Richard Biener <rguenther@suse.de>
22815
22816 PR bootstrap/60343
22817 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22818
22819 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22820
22821 * common/config/i386/predicates.md (const1256_operand): Remove.
22822 (const2356_operand): New.
22823 (const_1_to_2_operand): Remove.
22824 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22825 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22826 (*avx512pf_gatherpf<mode>sf): Ditto.
22827 (avx512pf_gatherpf<mode>df): Ditto.
22828 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22829 (*avx512pf_gatherpf<mode>df): Ditto.
22830 (avx512pf_scatterpf<mode>sf): Ditto.
22831 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22832 (*avx512pf_scatterpf<mode>sf): Ditto.
22833 (avx512pf_scatterpf<mode>df): Ditto.
22834 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22835 (*avx512pf_scatterpf<mode>df): Ditto.
22836 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22837
22838 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22839
22840 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22841 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22842 (_mm512_mask_testn_epi64_mask): Move to ...
22843 * config/i386/avx512cdintrin.h: Here.
22844 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22845 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22846 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22847 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22848 TARGET_AVX512F from TARGET_AVX512CD.
22849
22850 2014-02-26 Richard Biener <rguenther@suse.de>
22851
22852 PR ipa/60327
22853 * ipa.c (walk_polymorphic_call_targets): Properly guard
22854 call to inline_update_overall_summary.
22855
22856 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22857
22858 PR target/60280
22859 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22860 and latches only if requested. Fix latch if it is removed.
22861 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22862 LOOPS_HAVE_PREHEADERS.
22863
22864 2014-02-25 Andrew Pinski <apinski@cavium.com>
22865
22866 * builtins.c (expand_builtin_thread_pointer): Create a new target
22867 when the target is NULL.
22868
22869 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22870
22871 PR rtl-optimization/60317
22872 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22873 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22874 * lra-assigns.c: Include params.h.
22875 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22876 other reload pseudos considerations.
22877
22878 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22879
22880 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22881 to use canonical form for nor<mode>3.
22882
22883 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22884
22885 PR target/55426
22886 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22887 conversions.
22888
22889 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22890
22891 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22892 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22893 (ix86_handle_option): Handle OPT_mprefetchwt1.
22894 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22895 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22896 PREFETCHWT1 CPUID.
22897 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22898 OPTION_MASK_ISA_PREFETCHWT1.
22899 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22900 (PTA_PREFETCHWT1): New.
22901 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22902 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22903 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22904 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22905 (*prefetch_avx512pf_<mode>_: Change into ...
22906 (*prefetch_prefetchwt1_<mode>: This.
22907 * config/i386/i386.opt (mprefetchwt1): New.
22908 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22909 (_mm_prefetch): Handle intent to write.
22910 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22911
22912 2014-02-25 Richard Biener <rguenther@suse.de>
22913
22914 PR middle-end/60291
22915 * emit-rtl.c (mem_attrs_htab): Remove.
22916 (mem_attrs_htab_hash): Likewise.
22917 (mem_attrs_htab_eq): Likewise.
22918 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22919 (init_emit_once): Do not allocate mem_attrs_htab.
22920
22921 2014-02-25 Richard Biener <rguenther@suse.de>
22922
22923 PR lto/60319
22924 * lto-opts.c (lto_write_options): Output non-explicit conservative
22925 -fwrapv, -fno-trapv and -fno-strict-overflow.
22926 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22927 (run_gcc): And pass them through.
22928
22929 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22930
22931 * sel-sched.c (calculate_new_fences): New parameter ptime.
22932 Calculate it as a maximum over all fence cycles.
22933 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22934 Print the final schedule timing when sched_verbose.
22935
22936 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22937
22938 PR rtl-optimization/60292
22939 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22940 bit fot the fence instruction.
22941
22942 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22943
22944 * calls.h: Fix typo in comment.
22945
22946 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22947
22948 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22949 adjusting offsetable addresses.
22950
22951 2014-02-24 Guozhi Wei <carrot@google.com>
22952
22953 * sparseset.h (sparseset_pop): Fix the wrong index.
22954
22955 2014-02-24 Walter Lee <walt@tilera.com>
22956
22957 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22958 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22959 triplet.
22960 * common/config/tilegx/tilegx-common.c
22961 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22962 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22963 (LINK_SPEC): Ditto.
22964 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22965 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22966 (tilegx_gimplify_va_arg_expr): Handle big endian.
22967 (tilegx_expand_unaligned_load): Ditto.
22968 (tilegx_expand_unaligned_store): Ditto.
22969 (TARGET_RETURN_IN_MSB): New.
22970 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22971 (TARGET_ENDIAN_DEFAULT): New.
22972 (TARGET_BIG_ENDIAN): Handle big endian.
22973 (BYTES_BIG_ENDIAN): Ditto.
22974 (WORDS_BIG_ENDIAN): Ditto.
22975 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22976 (ENDIAN_SPEC): New.
22977 (EXTRA_SPECS): New.
22978 * config/tilegx/tilegx.md (extv): Handle big endian.
22979 (extzv): Ditto.
22980 (insn_st<n>): Ditto.
22981 (insn_st<n>_add<bitsuffix>): Ditto.
22982 (insn_stnt<n>): Ditto.
22983 (insn_stnt<n>_add<bitsuffix>):Ditto.
22984 (vec_interleave_highv8qi): Handle big endian.
22985 (vec_interleave_highv8qi_be): New.
22986 (vec_interleave_highv8qi_le): New.
22987 (insn_v1int_h): Handle big endian.
22988 (vec_interleave_lowv8qi): Handle big endian.
22989 (vec_interleave_lowv8qi_be): New.
22990 (vec_interleave_lowv8qi_le): New.
22991 (insn_v1int_l): Handle big endian.
22992 (vec_interleave_highv4hi): Handle big endian.
22993 (vec_interleave_highv4hi_be): New.
22994 (vec_interleave_highv4hi_le): New.
22995 (insn_v2int_h): Handle big endian.
22996 (vec_interleave_lowv4hi): Handle big endian.
22997 (vec_interleave_lowv4hi_be): New.
22998 (vec_interleave_lowv4hi_le): New.
22999 (insn_v2int_l): Handle big endian.
23000 (vec_interleave_highv2si): Handle big endian.
23001 (vec_interleave_highv2si_be): New.
23002 (vec_interleave_highv2si_le): New.
23003 (insn_v4int_h): Handle big endian.
23004 (vec_interleave_lowv2si): Handle big endian.
23005 (vec_interleave_lowv2si_be): New.
23006 (vec_interleave_lowv2si_le): New.
23007 (insn_v4int_l): Handle big endian.
23008 * config/tilegx/tilegx.opt (mbig-endian): New option.
23009 (mlittle-endian): New option.
23010 * doc/install.texi: Document tilegxbe-linux.
23011 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
23012
23013 2014-02-24 Martin Jambor <mjambor@suse.cz>
23014
23015 PR ipa/60266
23016 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23017 there are no parameter descriptors.
23018
23019 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23020
23021 PR rtl-optimization/60268
23022 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23023 initialization to ...
23024 (sched_rgn_init): ... here.
23025 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23026
23027 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23028
23029 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23030 names.
23031
23032 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23033
23034 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23035 definition.
23036
23037 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23038
23039 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23040 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23041
23042 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23043
23044 * config/microblaze/predicates.md: Add cmp_op predicate.
23045 * config/microblaze/microblaze.md: Add branch_compare instruction
23046 which uses cmp_op predicate and emits cmp insn before branch.
23047 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23048 to microblaze_expand_conditional_branch and consolidate logic.
23049 (microblaze_expand_conditional_branch): emit branch_compare
23050 insn instead of handling cmp op separate from branch insn.
23051
23052 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23053
23054 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23055 to permit subregs.
23056
23057 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23058
23059 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23060 define_insn with define_expand and new define_insn
23061 *altivec_lve<VI_char>x_internal.
23062 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23063 and new define_insn *altivec_stve<VI_char>x_internal.
23064 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23065 prototype.
23066 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23067 lve*x built-ins.
23068 (altivec_expand_stvex_be): New function.
23069
23070 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23071
23072 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23073 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23074 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23075 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23076
23077 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23078
23079 PR target/60298
23080 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23081 instead of emit_move_insn.
23082
23083 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23084
23085 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23086 vspltw with vsldoi.
23087 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23088 gen_altivec_vsumsws.
23089
23090 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23091
23092 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23093 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23094 (altivec_lvxl_<mode>): New define_expand incorporating
23095 -maltivec=be semantics where needed.
23096 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23097 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23098 semantics where needed.
23099 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23100 (altivec_stvx_<mode>): New define_expand incorporating
23101 -maltivec=be semantics where needed.
23102 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23103 VM2 iterator instead of V4SI.
23104 (altivec_stvxl_<mode>): New define_expand incorporating
23105 -maltivec=be semantics where needed.
23106 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23107 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23108 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23109 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23110 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23111 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23112 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23113 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23114 ALTIVEC_BUILTIN_STVXL.
23115 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23116 (altivec_expand_stvx_be): Likewise.
23117 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23118 (altivec_expand_lvx_be): Likewise.
23119 (altivec_expand_stvx_be): Likewise.
23120 (altivec_expand_builtin): Add cases for
23121 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23122 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23123 (altivec_init_builtins): Add definitions for
23124 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23125 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23126
23127 2014-02-21 Catherine Moore <clm@codesourcery.com>
23128
23129 * doc/invoke.texi (mvirt, mno-virt): Document.
23130 * config/mips/mips.opt (mvirt): New option.
23131 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23132
23133 2014-02-21 Richard Biener <rguenther@suse.de>
23134
23135 PR tree-optimization/60276
23136 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23137 (STMT_VINFO_MIN_NEG_DIST): New macro.
23138 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23139 STMT_VINFO_MIN_NEG_DIST.
23140 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23141 made for negative dependence distances still hold.
23142
23143 2014-02-21 Richard Biener <rguenther@suse.de>
23144
23145 PR middle-end/60291
23146 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23147 DECL_INITIAL for globals not in the current function context.
23148
23149 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23150
23151 PR tree-optimization/56490
23152 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23153 * tree-ssa-uninit.c: Include params.h.
23154 (compute_control_dep_chain): Add num_calls argument, return false
23155 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23156 num_calls to recursive call.
23157 (find_predicates): Change dep_chain into normal array,
23158 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23159 variable and adjust compute_control_dep_chain caller.
23160 (find_def_preds): Likewise.
23161
23162 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23163
23164 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23165 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23166
23167 2014-02-21 Nick Clifton <nickc@redhat.com>
23168
23169 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23170 (pushhi1): Likewise.
23171 (popqi1): Add mode to pre_dec.
23172 (pophi1): Likewise.
23173
23174 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23175
23176 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23177 mode for mask of V8SFmode permutation.
23178
23179 2014-02-20 Richard Henderson <rth@redhat.com>
23180
23181 PR c++/60272
23182 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23183 a new pseudo for OLDVAL.
23184
23185 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23186
23187 PR target/57896
23188 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23189 gen_reg_rtx if d->testing_p.
23190 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23191 if d->testing_p and we will certainly return true.
23192 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23193 if d->testing_p.
23194
23195 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23196
23197 * emit-rtl.c (gen_reg_rtx): Assert that
23198 crtl->emit.regno_pointer_align_length is non-zero.
23199
23200 2014-02-20 Richard Henderson <rth@redhat.com>
23201
23202 PR c++/60272
23203 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23204 on failure the store back into EXPECT.
23205
23206 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23207 Sandra Loosemore <sandra@codesourcery.com>
23208
23209 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23210 * config/nios2/nios2.c (nios2_function_profiler): Add
23211 -fPIC (flag_pic == 2) support.
23212 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23213 (nios2_large_offset_p): New function.
23214 (nios2_unspec_reloc_p): Move up position, update to use
23215 nios2_large_offset_p.
23216 (nios2_unspec_address): Remove function.
23217 (nios2_unspec_offset): New function.
23218 (nios2_large_got_address): New function.
23219 (nios2_got_address): Add large offset support.
23220 (nios2_legitimize_tls_address): Update usage of removed and new
23221 functions.
23222 (nios2_symbol_binds_local_p): New function.
23223 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23224 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23225 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23226 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23227 processing for (const (unspec ...)).
23228 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23229
23230 2014-02-20 Richard Biener <rguenther@suse.de>
23231
23232 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23233 doing the substitution.
23234 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23235
23236 2014-02-20 Martin Jambor <mjambor@suse.cz>
23237
23238 PR ipa/55260
23239 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23240 info when checking whether lattices are bottom.
23241
23242 2014-02-20 Richard Biener <rguenther@suse.de>
23243
23244 PR middle-end/60221
23245 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23246 regions at -O0.
23247
23248 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23249
23250 PR ipa/58555
23251 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23252 parameter specifying the scaling.
23253 (inline_call): Update.
23254 (want_inline_recursively): Guard division by zero.
23255 (recursive_inlining): Update.
23256 * ipa-inline.h (clone_inlined_nodes): Update.
23257
23258 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23259
23260 PR target/60204
23261 * config/i386/i386.c (classify_argument): Pass structures of size
23262 64 bytes or less in register.
23263
23264 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23265 Kirill Yukhin <kirill.yukhin@intel.com>
23266
23267 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23268 (_mm_rcp28_round_ss): Ditto.
23269 (_mm_rsqrt28_round_sd): Ditto.
23270 (_mm_rsqrt28_round_ss): Ditto.
23271 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23272 (_mm_rcp14_round_ss): Ditto.
23273 (_mm_rsqrt14_round_sd): Ditto.
23274 (_mm_rsqrt14_round_ss): Ditto.
23275 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23276 the first input operand, get rid of match_dup.
23277 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23278 attribute to sse.
23279 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23280 Ditto.
23281 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23282 operand as the first input operand, set type attribute.
23283 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23284 Set type attribute.
23285 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23286 operand as the first input operand, set type attribute.
23287
23288 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23289
23290 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23291 bit of zero.
23292
23293 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23294
23295 PR target/60207
23296 * config/i386/i386.c (construct_container): Remove TFmode check
23297 for X86_64_INTEGER_CLASS.
23298
23299 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23300
23301 PR target/59794
23302 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23303 only when -Wpsabi is enabled.
23304
23305 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23306
23307 PR target/59799
23308 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23309 passing arrays in registers are the same as for structs, so remove the
23310 special case for them.
23311
23312 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23313
23314 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23315 destination type, extract only the valid bits if the source type is not
23316 integral and has a different mode.
23317
23318 2014-02-19 Richard Biener <rguenther@suse.de>
23319
23320 PR ipa/60243
23321 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23322 for all calls.
23323
23324 2014-02-19 Richard Biener <rguenther@suse.de>
23325
23326 PR ipa/60243
23327 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23328 (ipa_modify_call_arguments): Emit an argument load explicitely and
23329 preserve virtual SSA form there and for the replacement call.
23330 Do not update SSA form nor free dominance info.
23331
23332 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23333
23334 * ipa.c (function_and_variable_visibility): Also clear WEAK
23335 flag when disolving COMDAT_GROUP.
23336
23337 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23338
23339 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23340 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23341 not devirtualizing.
23342 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23343 do more sanity checks.
23344 (detect_type_change): Return true when giving up early.
23345 (compute_complex_assign_jump_func): Fix type parameter of
23346 ipa_set_ancestor_jf.
23347 (compute_complex_ancestor_jump_func): Likewise.
23348 (update_jump_functions_after_inlining): Fix updating of
23349 ancestor function.
23350 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23351
23352 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23353
23354 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23355 inline clones when edge disappears.
23356
23357 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23358
23359 PR target/60203
23360 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23361 Split 64-bit moves into 2 patterns. Do not allow the use of
23362 direct move for TDmode in little endian, since the decimal value
23363 has little endian bytes within a word, but the 64-bit pieces are
23364 ordered in a big endian fashion, and normal subreg's of TDmode are
23365 not allowed.
23366 (mov<mode>_64bit_dm): Likewise.
23367 (movtd_64bit_nodm): Likewise.
23368
23369 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23370
23371 PR tree-optimization/60174
23372 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23373 statement of an SSA_NAME that occurs in an abnormal PHI node.
23374
23375 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23376
23377 PR sanitizer/60142
23378 * final.c (SEEN_BB): Remove.
23379 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23380 (final_scan_insn): Don't force_source_line on second
23381 NOTE_INSN_BASIC_BLOCK.
23382
23383 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23384
23385 PR target/60205
23386 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23387 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23388 (type_natural_mode): Warn ABI change when %zmm register is not
23389 available for AVX512F vector value passing.
23390
23391 2014-02-18 Kai Tietz <ktietz@redhat.com>
23392
23393 PR target/60193
23394 * config/i386/i386.c (ix86_expand_prologue): Use value in
23395 rax register as displacement when restoring %r10 or %rax.
23396 Fix wrong offset when restoring both registers.
23397
23398 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23399
23400 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23401 assertion with conditional return.
23402
23403 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23404 Uros Bizjak <ubizjak@gmail.com>
23405
23406 PR driver/60233
23407 * config/i386/driver-i386.c (host_detect_local_cpu): If
23408 YMM state is not saved by the OS, also clear has_f16c. Move
23409 CPUID 0x80000001 handling before YMM state saving checking.
23410
23411 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23412
23413 PR rtl-optimization/58960
23414 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23415 factored out from ...
23416 (sched_init): ... here.
23417 (free_global_sched_pressure_data): New, factored out from ...
23418 (sched_finish): ... here.
23419 * sched-int.h (free_global_sched_pressure_data): Declare.
23420 * sched-rgn.c (nr_regions_initial): New static global.
23421 (haifa_find_rgns): Initialize it.
23422 (schedule_region): Disable sched-pressure for the newly
23423 generated regions.
23424
23425 2014-02-17 Richard Biener <rguenther@suse.de>
23426
23427 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23428 release SSA defs of pattern stmts.
23429
23430 2014-02-17 Richard Biener <rguenther@suse.de>
23431
23432 * tree-inline.c (expand_call_inline): Release the virtual
23433 operand defined by the call we are about to inline.
23434
23435 2014-02-17 Richard Biener <rguenther@suse.de>
23436
23437 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23438
23439 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23440 Ilya Tocar <ilya.tocar@intel.com>
23441
23442 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23443 arguments order in builtin.
23444 (_mm512_permutexvar_epi64): Ditto.
23445 (_mm512_mask_permutexvar_epi64): Ditto
23446 (_mm512_maskz_permutexvar_epi32): Ditto
23447 (_mm512_permutexvar_epi32): Ditto
23448 (_mm512_mask_permutexvar_epi32): Ditto
23449
23450 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23451
23452 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23453 (p8_vmrgow): Likewise.
23454
23455 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23456
23457 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23458 endian targets.
23459
23460 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23461
23462 PR target/60203
23463 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23464 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23465 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23466 using direct move instructions on ISA 2.07. Also adjust
23467 instruction length for 64-bit.
23468 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23469 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23470
23471 2014-02-15 Alan Modra <amodra@gmail.com>
23472
23473 PR target/58675
23474 PR target/57935
23475 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23476 find_replacement on parts of insn rtl that might be reloaded.
23477
23478 2014-02-15 Richard Biener <rguenther@suse.de>
23479
23480 PR tree-optimization/60183
23481 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23482 (tree_ssa_phiprop): Calculate and free post-dominators.
23483
23484 2014-02-14 Jeff Law <law@redhat.com>
23485
23486 PR rtl-optimization/60131
23487 * ree.c (get_extended_src_reg): New function.
23488 (combine_reaching_defs): Use it rather than assuming location of REG.
23489 (find_and_remove_re): Verify first operand of extension is
23490 a REG before adding the insns to the copy list.
23491
23492 2014-02-14 Roland McGrath <mcgrathr@google.com>
23493
23494 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23495 * configure: Regenerated.
23496 * config.in: Regenerated.
23497 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23498 instead of ASM_SHORT.
23499
23500 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23501 Richard Earnshaw <rearnsha@arm.com>
23502
23503 PR rtl-optimization/59535
23504 * lra-constraints.c (process_alt_operands): Encourage alternative
23505 when unassigned pseudo class is superset of the alternative class.
23506 (inherit_reload_reg): Don't inherit when optimizing for code size.
23507 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23508 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23509 modes not less than 4 for Thumb1.
23510
23511 2014-02-14 Kyle McMartin <kyle@redhat.com>
23512
23513 PR pch/60010
23514 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23515
23516 2014-02-14 Richard Biener <rguenther@suse.de>
23517
23518 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23519 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23520 Do not strip INDIRECT_REFs.
23521
23522 2014-02-14 Richard Biener <rguenther@suse.de>
23523
23524 PR lto/60179
23525 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23526 DECL_FUNCTION_SPECIFIC_TARGET.
23527 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23528 * tree-streamer-out.c (pack_ts_target_option): Remove.
23529 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23530 (write_ts_function_decl_tree_pointers): Do not stream
23531 DECL_FUNCTION_SPECIFIC_TARGET.
23532 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23533 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23534 (lto_input_ts_function_decl_tree_pointers): Do not stream
23535 DECL_FUNCTION_SPECIFIC_TARGET.
23536
23537 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23538
23539 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23540 (get_initial_def_for_induction, vectorizable_induction): Ignore
23541 debug stmts when looking for exit_phi.
23542 (vectorizable_live_operation): Fix up condition.
23543
23544 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23545
23546 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23547 nreverse() because it changes the content of original tree list.
23548
23549 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23550
23551 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23552 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23553
23554 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23555
23556 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23557 GNU coding standards.
23558
23559 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23560
23561 PR debug/60152
23562 * dwarf2out.c (gen_subprogram_die): Don't call
23563 add_calling_convention_attribute if subr_die is old_die.
23564
23565 2014-02-13 Sharad Singhai <singhai@google.com>
23566
23567 * doc/optinfo.texi: Fix order of nodes.
23568
23569 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23570
23571 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23572 operands[2], not operands[3].
23573
23574 2014-02-13 Richard Biener <rguenther@suse.de>
23575
23576 PR bootstrap/59878
23577 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23578 mention the possibility of an in-tree build.
23579 (CLooG): Update recommended version to 0.18.1, mention the
23580 possibility of an in-tree build and clarify that the ISL
23581 bundled with CLooG does not work.
23582
23583 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23584
23585 PR target/43546
23586 * expr.c (compress_float_constant): If x is a hard register,
23587 extend into a pseudo and then move to x.
23588
23589 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23590
23591 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23592 caused by bad second argument to warning_at() with -mhotpatch and
23593 nested functions (e.g. with gfortran).
23594
23595 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23596
23597 * opts.c (option_name): Remove "enabled by default" rider.
23598
23599 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23600
23601 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23602
23603 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23604 Uros Bizjak <ubizjak@gmail.com>
23605
23606 PR target/60151
23607 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23608 * configure: Regenerated.
23609
23610 2014-02-12 Richard Biener <rguenther@suse.de>
23611
23612 * vec.c (vec_prefix::calculate_allocation): Move as
23613 inline variant to vec.h.
23614 (vec_prefix::calculate_allocation_1): New out-of-line version.
23615 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23616 (vec_prefix::m_has_auto_buf): Rename to ...
23617 (vec_prefix::m_using_auto_storage): ... this.
23618 (vec_prefix::calculate_allocation): Inline the easy cases
23619 and dispatch to calculate_allocation_1 which doesn't need the
23620 prefix address.
23621 (va_heap::reserve): Use gcc_checking_assert.
23622 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23623 m_using_auto_storage.
23624 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23625 member and adjust.
23626 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23627 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23628 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23629
23630 2014-02-12 Richard Biener <rguenther@suse.de>
23631
23632 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23633 when we found a dependence.
23634
23635 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23636
23637 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23638 common code...
23639 (maybe_fold_stmt): ... into this new function.
23640 * omp-low.c (lower_omp): Update comment.
23641
23642 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23643 last use.
23644
23645 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23646 dereference.
23647
23648 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23649
23650 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23651 identifiers in comments.
23652 (cortexa53_extra_costs): Likewise.
23653 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23654 (cortexa7_extra_costs): Likewise.
23655 (cortexa12_extra_costs): Likewise.
23656 (cortexa15_extra_costs): Likewise.
23657 (v7m_extra_costs): Likewise.
23658
23659 2014-02-12 Richard Biener <rguenther@suse.de>
23660
23661 PR middle-end/60092
23662 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23663 of posix_memalign being successful.
23664 (lower_stmt): Restrict lowering of posix_memalign to when
23665 -ftree-bit-ccp is enabled.
23666
23667 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23668
23669 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23670 arg_loc.
23671 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23672
23673 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23674
23675 PR rtl-optimization/60116
23676 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23677 other_insn once the combination has been validated.
23678
23679 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23680
23681 PR lto/59468
23682 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23683 and wrapper.
23684 * ipa-devirt.c: Include demangle.h
23685 (odr_violation_reported): New static variable.
23686 (add_type_duplicate): Update odr_violations.
23687 (maybe_record_node): Add completep parameter; update it.
23688 (record_target_from_binfo): Add COMPLETEP parameter;
23689 update it as needed.
23690 (possible_polymorphic_call_targets_1): Likewise.
23691 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23692 rename FINAL to COMPLETE.
23693 (record_targets_from_bases): Sanity check we found the binfo;
23694 fix COMPLETEP updating.
23695 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23696 parameter, fix computing of COMPLETEP.
23697 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23698 at LTO time do demangling.
23699 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23700 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23701 parameter.
23702 (gimple_get_virt_method_for_binfo): Likewise.
23703 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23704 gimple_get_virt_method_for_vtable): Update prototypes.
23705
23706 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23707
23708 PR target/49008
23709 * genautomata.c (add_presence_absence): Fix typo with
23710 {final_}presence_list.
23711
23712 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23713
23714 PR target/60137
23715 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23716 for VSX/Altivec vectors that land in GPR registers.
23717
23718 2014-02-11 Richard Henderson <rth@redhat.com>
23719 Jakub Jelinek <jakub@redhat.com>
23720
23721 PR debug/59776
23722 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23723 around drhs if type conversion to lacc->type is not useless.
23724
23725 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23726
23727 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23728 tuning struct.
23729 (cortex-a57.cortex-a53): Likewise.
23730 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23731
23732 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23733
23734 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23735 arm_restrict_it.
23736
23737 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23738
23739 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23740 add_options_for_arm_vfp3.
23741
23742 2014-02-11 Jeff Law <law@redhat.com>
23743
23744 PR middle-end/54041
23745 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23746 object with an undesirable mode.
23747
23748 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23749
23750 PR libgomp/60107
23751 * config/i386/sol2-9.h: New file.
23752 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23753 *-*-solaris2.9*): Use it.
23754
23755 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23756
23757 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23758 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23759
23760 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23761
23762 * config/microblaze/microblaze.c: Extend mcpu version format
23763
23764 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23765
23766 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23767
23768 2014-02-10 Richard Henderson <rth@redhat.com>
23769
23770 PR target/59927
23771 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23772 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23773 ms-abi vs -mno-accumulate-outgoing-args.
23774 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23775 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23776 respect to ms-abi.
23777
23778 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23779
23780 PR middle-end/60080
23781 * cfgexpand.c (expand_asm_operands): Attach source location to
23782 ASM_INPUT rtx objects.
23783 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23784
23785 2014-02-10 Nick Clifton <nickc@redhat.com>
23786
23787 * config/mn10300/mn10300.c (popcount): New function.
23788 (mn10300_expand_prologue): Include saved registers in stack usage
23789 count.
23790
23791 2014-02-10 Jeff Law <law@redhat.com>
23792
23793 PR middle-end/52306
23794 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23795 when changing the SET_DEST of a prior insn to avoid an input reload.
23796
23797 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23798
23799 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23800 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23801 -mcall-openbsd, or -mcall-linux.
23802 (CC1_ENDIAN_BIG_SPEC): Remove.
23803 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23804 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23805 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23806 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23807 and %cc1_endian_default.
23808 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23809
23810 2014-02-10 Richard Biener <rguenther@suse.de>
23811
23812 PR tree-optimization/60115
23813 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23814 MEM_REF handling. Properly verify that the accesses are not
23815 out of the objects bound.
23816
23817 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23818
23819 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23820 coretex to cortex.
23821
23822 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23823
23824 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23825 proper constants and fix formatting.
23826 (possible_polymorphic_call_targets): Fix formatting.
23827
23828 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23829 Ilya Tocar <ilya.tocar@intel.com>
23830
23831 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23832 (_mm512_loadu_epi32): Renamed into...
23833 (_mm512_loadu_si512): This.
23834 (_mm512_storeu_epi32): Renamed into...
23835 (_mm512_storeu_si512): This.
23836 (_mm512_maskz_ceil_ps): Removed.
23837 (_mm512_maskz_ceil_pd): Ditto.
23838 (_mm512_maskz_floor_ps): Ditto.
23839 (_mm512_maskz_floor_pd): Ditto.
23840 (_mm512_floor_round_ps): Ditto.
23841 (_mm512_floor_round_pd): Ditto.
23842 (_mm512_ceil_round_ps): Ditto.
23843 (_mm512_ceil_round_pd): Ditto.
23844 (_mm512_mask_floor_round_ps): Ditto.
23845 (_mm512_mask_floor_round_pd): Ditto.
23846 (_mm512_mask_ceil_round_ps): Ditto.
23847 (_mm512_mask_ceil_round_pd): Ditto.
23848 (_mm512_maskz_floor_round_ps): Ditto.
23849 (_mm512_maskz_floor_round_pd): Ditto.
23850 (_mm512_maskz_ceil_round_ps): Ditto.
23851 (_mm512_maskz_ceil_round_pd): Ditto.
23852 (_mm512_expand_pd): Ditto.
23853 (_mm512_expand_ps): Ditto.
23854 * config/i386/i386.c (ix86_builtins): Remove
23855 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23856 (bdesc_args): Ditto.
23857 * config/i386/predicates.md (const1256_operand): New.
23858 (const_1_to_2_operand): Ditto.
23859 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23860 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23861 (*avx512pf_gatherpf<mode>sf): Ditto.
23862 (avx512pf_gatherpf<mode>df): Ditto.
23863 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23864 (*avx512pf_gatherpf<mode>df): Ditto.
23865 (avx512pf_scatterpf<mode>sf): Ditto.
23866 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23867 (*avx512pf_scatterpf<mode>sf): Ditto.
23868 (avx512pf_scatterpf<mode>df): Ditto.
23869 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23870 (*avx512pf_scatterpf<mode>df): Ditto.
23871 (avx512f_expand<mode>): Removed.
23872 (<shift_insn><mode>3<mask_name>): Change predicate type.
23873
23874 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23875
23876 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23877 not at the end of datarefs vector use ordered_remove to avoid
23878 reordering datarefs vector.
23879
23880 PR c/59984
23881 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23882 mark local addressable non-static vars as GOVD_PRIVATE
23883 instead of GOVD_LOCAL.
23884 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23885 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23886 than copying them.
23887
23888 PR middle-end/60092
23889 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23890 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23891 assume_aligned or alloc_align attributes.
23892 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23893 arguments. Handle also assume_aligned and alloc_align attributes.
23894 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23895 calls to functions with assume_aligned or alloc_align attributes.
23896 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23897
23898 2014-02-08 Terry Guo <terry.guo@arm.com>
23899
23900 * doc/invoke.texi: Document ARM -march=armv7e-m.
23901
23902 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23903
23904 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23905 flag on __cilkrts_rethrow builtin.
23906
23907 PR ipa/60026
23908 * ipa-cp.c (determine_versionability): Fail at -O0
23909 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23910 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23911
23912 Revert:
23913 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23914
23915 PR ipa/60026
23916 * tree-inline.c (copy_forbidden): Fail for
23917 __attribute__((optimize (0))) functions.
23918
23919 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23920
23921 * varpool.c: Include pointer-set.h.
23922 (varpool_remove_unreferenced_decls): Variables in other partitions
23923 will not be output; be however careful to not lose information
23924 about partitioning.
23925
23926 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23927
23928 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23929 lookup in the vtable constructor.
23930
23931 2014-02-07 Jeff Law <law@redhat.com>
23932
23933 PR target/40977
23934 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23935 define_insn_and_split.
23936
23937 * ipa-inline.c (inline_small_functions): Fix typos.
23938
23939 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23940
23941 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23942 (s390_can_use_return_insn): Declare.
23943 * config/s390/s390.h (EPILOGUE_USES): Define.
23944 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23945 instructions.
23946 (s390_chunkify_start): Handle return JUMP_LABELs.
23947 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23948 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23949 (s390_can_use_return_insn): New functions.
23950 (s390_fix_long_loop_prediction): Handle conditional returns.
23951 (TARGET_SET_UP_BY_PROLOGUE): Define.
23952 * config/s390/s390.md (ANY_RETURN): New code iterator.
23953 (*creturn, *csimple_return, return, simple_return): New patterns.
23954
23955 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23956
23957 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23958 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23959 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23960 REG_CFA_RESTORE list when deciding not to restore a register.
23961
23962 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23963
23964 * config/s390/s390.c: Include tree-pass.h and context.h.
23965 (s390_early_mach): New function, split out from...
23966 (s390_emit_prologue): ...here.
23967 (pass_data_s390_early_mach): New pass structure.
23968 (pass_s390_early_mach): New class.
23969 (s390_option_override): Create and register early_mach pass.
23970 Move to end of file.
23971
23972 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23973
23974 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23975 to match for the exit block.
23976
23977 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23978
23979 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23980 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23981 Reject misaligned operands.
23982
23983 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23984
23985 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23986
23987 2014-02-07 Richard Biener <rguenther@suse.de>
23988
23989 PR middle-end/60092
23990 * gimple-low.c (lower_builtin_posix_memalign): New function.
23991 (lower_stmt): Call it to lower posix_memalign in a way
23992 to make alignment info accessible.
23993
23994 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23995
23996 PR c++/60082
23997 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23998 __builtin_setjmp_receiver.
23999
24000 2014-02-07 Richard Biener <rguenther@suse.de>
24001
24002 PR middle-end/60092
24003 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
24004 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
24005 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24006 Handle BUILT_IN_POSIX_MEMALIGN.
24007 (find_func_clobbers): Likewise.
24008 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24009 (call_may_clobber_ref_p_1): Likewise.
24010
24011 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24012
24013 PR ipa/59918
24014 * ipa-devirt.c (record_target_from_binfo): Remove overactive
24015 sanity check.
24016
24017 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24018
24019 PR ipa/59469
24020 * lto-cgraph.c (lto_output_node): Use
24021 symtab_get_symbol_partitioning_class.
24022 (lto_output_varpool_node): likewise.
24023 (symtab_get_symbol_partitioning_class): Move here from
24024 lto/lto-partition.c
24025 * cgraph.h (symbol_partitioning_class): Likewise.
24026 (symtab_get_symbol_partitioning_class): Declare.
24027
24028 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24029
24030 * ggc.h (ggc_internal_cleared_alloc): New macro.
24031 * vec.h (vec_safe_copy): Handle memory stats.
24032 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24033 * target-globals.c (save_target_globals): Likewise.
24034
24035 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24036
24037 PR target/60077
24038 * expr.c (emit_move_resolve_push): Export; be bit more selective
24039 on when to clear alias set.
24040 * expr.h (emit_move_resolve_push): Declare.
24041 * function.h (struct function): Add tail_call_marked.
24042 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24043 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24044 * config/i386/i386.md (TImode move expander): De not call
24045 ix86_expand_push.
24046 (FP push expanders): Preserve memory attributes.
24047 * config/i386/sse.md (push<mode>1): Remove.
24048 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24049 (ix86_expand_push): Remove.
24050 * config/i386/mmx.md (push<mode>1): Remove.
24051
24052 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24053
24054 PR rtl-optimization/60030
24055 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24056 lopart with paradoxical subreg before shifting it up by hprec.
24057
24058 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24059
24060 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24061 Remove extra newline at end of file.
24062 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24063 (arm_issue_rate): Handle cortexa57.
24064 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24065 (cortex-a57.cortex-a53): Likewise.
24066
24067 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24068
24069 PR target/59575
24070 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24071 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24072 bitmask.
24073 (arm_expand_prologue): Adjust all callers.
24074 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24075 info, registers also at the lowest numbered registers side. Use
24076 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24077 XEXP.
24078
24079 PR debug/59992
24080 * var-tracking.c (adjust_mems): Before adding a SET to
24081 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24082
24083 2014-02-06 Alan Modra <amodra@gmail.com>
24084
24085 PR target/60032
24086 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24087 change SDmode to DDmode when lra_in_progress.
24088
24089 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24090
24091 PR middle-end/59150
24092 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24093 free_data_ref on the dr first, and before goto again also set dr
24094 to the next dr. For simd_lane_access, free old datarefs[i] before
24095 overwriting it. For get_vectype_for_scalar_type failure, don't
24096 free_data_ref if simd_lane_access.
24097
24098 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24099
24100 PR target/60062
24101 * tree.h (opts_for_fn): New inline function.
24102 (opt_for_fn): Define.
24103 * config/i386/i386.c (ix86_function_regparm): Use
24104 opt_for_fn (decl, optimize) instead of optimize.
24105
24106 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24107
24108 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24109 for SYMBOL_REF in large memory model.
24110
24111 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24112
24113 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24114 and crypto support.
24115 (cortex-a57): Likewise.
24116 (cortex-a57.cortex-a53): Likewise.
24117
24118 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24119 Kugan Vivekanandarajah <kuganv@linaro.org>
24120
24121 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24122 unaligned_access.
24123 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24124
24125 2014-02-06 Richard Biener <rguenther@suse.de>
24126
24127 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24128 set_loop_copy and initialize_original_copy_tables.
24129
24130 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24131
24132 * config/aarch64/aarch64-simd.md
24133 (aarch64_ashr_simddi): Change QI to SI.
24134
24135 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24136 Jakub Jelinek <jakub@redhat.com>
24137
24138 PR middle-end/60013
24139 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24140 of the dataflow.
24141
24142 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24143
24144 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24145 CODE_FOR_altivec_vpku[hw]um to
24146 CODE_FOR_altivec_vpku[hw]um_direct.
24147 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24148 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24149 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24150 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24151
24152 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24153
24154 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24155 generation for -maltivec=be.
24156 (altivec_vsumsws): Simplify redundant test.
24157
24158 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24159
24160 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24161 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24162 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24163 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24164 gen_altivec_vpkuwum.
24165 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24166 BYTES_BIG_ENDIAN.
24167 (altivec_vpks<VI_char>ss): Likewise.
24168 (altivec_vpks<VI_char>us): Likewise.
24169 (altivec_vpku<VI_char>us): Likewise.
24170 (altivec_vpku<VI_char>um): Likewise.
24171 (altivec_vpku<VI_char>um_direct): New (copy of
24172 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24173 internal use).
24174 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24175 target is little endian and -maltivec=be is not specified.
24176 (*altivec_vupkhs<VU_char>_direct): New (copy of
24177 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24178 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24179 target is little endian and -maltivec=be is not specified.
24180 (*altivec_vupkls<VU_char>_direct): New (copy of
24181 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24182 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24183 little endian and -maltivec=be is not specified.
24184 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24185 little endian and -maltivec=be is not specified.
24186
24187 2014-02-05 Richard Henderson <rth@redhat.com>
24188
24189 PR debug/52727
24190 * combine-stack-adj.c: Revert r206943.
24191 * sched-int.h (struct deps_desc): Add last_args_size.
24192 * sched-deps.c (init_deps): Initialize it.
24193 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24194 contain REG_ARGS_SIZE notes.
24195
24196 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24197
24198 * lto-cgraph.c (asm_nodes_output): Make global.
24199 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24200 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24201 (driver_handle_option): Handle OPT_fwpa.
24202
24203 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24204
24205 PR ipa/59947
24206 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24207 a comment typo and formatting issue. If odr_hash hasn't been
24208 created, return vNULL and set *completep to false.
24209
24210 PR middle-end/57499
24211 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24212 bb with no successors.
24213
24214 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24215
24216 PR target/59718
24217 * doc/invoke.texi (-march): Clarify documentation for ARM.
24218 (-mtune): Likewise.
24219 (-mcpu): Likewise.
24220
24221 2014-02-05 Richard Biener <rguenther@suse.de>
24222
24223 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24224 when not vectorizing because of too many alias checks.
24225 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24226 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24227
24228 2014-02-05 Nick Clifton <nickc@redhat.com>
24229
24230 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24231 accept extended registers in any mode when compiling for the MN10300.
24232
24233 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24234
24235 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24236 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24237 sanitization attributes.
24238 (can_inline_edge_p): Likewise.
24239 (sanitize_attrs_match_for_inline_p): New function.
24240
24241 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24242
24243 * ipa-prop.c (detect_type_change): Shor circuit testing of
24244 type changes on THIS pointer.
24245
24246 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24247
24248 PR target/59777
24249 * config/pa/pa.c (legitimize_tls_address): Return original address
24250 if not passed a SYMBOL_REF rtx.
24251 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24252 addresses.
24253 (pa_emit_move_sequence): Simplify TLS source operands.
24254 (pa_legitimate_constant_p): Reject all TLS constants.
24255 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24256 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24257
24258 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24259
24260 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24261 groups when we know they are controlled by LTO.
24262 * varasm.c (default_binds_local_p_1): If object is in other partition,
24263 it will be resolved locally.
24264
24265 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24266
24267 * config/host-linux.c (linux_gt_pch_use_address): Don't
24268 use SSIZE_MAX because it is not always defined.
24269
24270 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24271
24272 PR bootstrap/59913
24273 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24274 threshold for pseudo splitting.
24275 (update_ebb_live_info): Process call argument hard registers and
24276 hard registers from insn definition too.
24277 (max_small_class_regs_num): New constant.
24278 (inherit_in_ebb): Update live hard regs through EBBs. Update
24279 reloads_num only for small register classes. Don't split for
24280 outputs of jumps.
24281
24282 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24283
24284 PR ipa/60058
24285 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24286 is non-null.
24287
24288 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24289
24290 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24291 visibility is safe.
24292
24293 2014-02-04 Marek Polacek <polacek@redhat.com>
24294
24295 * gdbinit.in (pel): Define.
24296
24297 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24298
24299 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24300 behavior.
24301
24302 2014-02-04 Richard Biener <rguenther@suse.de>
24303
24304 PR lto/59723
24305 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24306 in function context local.
24307 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24308 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24309 similar to LTO_imported_decl_ref.
24310
24311 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24312
24313 PR tree-optimization/60002
24314 * cgraphclones.c (build_function_decl_skip_args): Clear
24315 DECL_LANG_SPECIFIC.
24316
24317 PR tree-optimization/60023
24318 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24319 false to gsi_replace.
24320 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24321 has been in some EH region and vec_stmt could throw, add
24322 vec_stmt into the same EH region.
24323 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24324 has no lhs, ignore it.
24325 * internal-fn.c (expand_MASK_LOAD): Likewise.
24326
24327 PR ipa/60026
24328 * tree-inline.c (copy_forbidden): Fail for
24329 __attribute__((optimize (0))) functions.
24330
24331 PR other/58712
24332 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24333 is set, copy one less argument.
24334 (expand_simd_clones): Don't subtract clone_info->inbranch
24335 from simd_clone_struct_alloc argument.
24336
24337 PR rtl-optimization/57915
24338 * recog.c (simplify_while_replacing): If all unary/binary/relational
24339 operation arguments are constant, attempt to simplify those.
24340
24341 PR middle-end/59261
24342 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24343 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24344
24345 2014-02-04 Richard Biener <rguenther@suse.de>
24346
24347 PR tree-optimization/60012
24348 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24349 TBAA disambiguation to all DDRs.
24350
24351 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24352
24353 PR target/59788
24354 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24355 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24356
24357 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24358
24359 PR ipa/59882
24360 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24361
24362 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24363
24364 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24365 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24366
24367 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24368
24369 PR ipa/59831
24370 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24371 to figure out targets of polymorphic calls with known decl.
24372 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24373 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24374 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24375 (get_polymorphic_call_info): ... here.
24376 (get_polymorphic_call_info_from_invariant): New function.
24377
24378 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24379
24380 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24381 lookup via vtable pointer; check for type consistency
24382 and turn inconsitent facts into UNREACHABLE.
24383 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24384 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24385 type inconsistent querries; return UNREACHABLE instead.
24386
24387 2014-02-03 Richard Henderson <rth@twiddle.net>
24388
24389 PR tree-opt/59924
24390 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24391 already processed this node.
24392 (normalize_one_pred_1): Pass along mark_set.
24393 (normalize_one_pred): Create and destroy a pointer_set_t.
24394 (normalize_one_pred_chain): Likewise.
24395
24396 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24397
24398 PR gcov-profile/58602
24399 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24400
24401 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24402
24403 PR ipa/59831
24404 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24405 -fno-devirtualize; try to devirtualize by the knowledge of
24406 virtual table pointer given by aggregate propagation.
24407 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24408 (ipa_print_node_jump_functions): Dump also offset that
24409 is relevant for polymorphic calls.
24410 (determine_known_aggregate_parts): Add arg_type parameter; use it
24411 instead of determining the type from pointer type.
24412 (ipa_compute_jump_functions_for_edge): Update call of
24413 determine_known_aggregate_parts.
24414 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24415 (gimple_get_virt_method_for_binfo): ... here; simplify using
24416 vtable_pointer_value_to_vtable.
24417 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24418 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24419 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24420 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24421 POINTER_PLUS_EXPR.
24422 (vtable_pointer_value_to_binfo): ... here.
24423 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24424
24425 2014-02-03 Teresa Johnson <tejohnson@google.com>
24426
24427 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24428 redef of outer loop index variable.
24429
24430 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24431
24432 PR c++/53017
24433 PR c++/59211
24434 * doc/extend.texi (Function Attributes): Typo.
24435
24436 2014-02-03 Cong Hou <congh@google.com>
24437
24438 PR tree-optimization/60000
24439 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24440 if the vectorized statement is a store. A store statement can only
24441 appear at the end of pattern statements.
24442
24443 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24444
24445 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24446 (ix86_option_override_internal): Default long double to 64-bit for
24447 32-bit Bionic and to 128-bit for 64-bit Bionic.
24448
24449 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24450 TARGET_LONG_DOUBLE_128 is true.
24451 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24452
24453 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24454 (mlong-double-64): Negate -mlong-double-128.
24455 (mlong-double-128): New option.
24456
24457 * config/i386/i386-c.c (ix86_target_macros): Define
24458 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24459
24460 * doc/invoke.texi: Document -mlong-double-128.
24461
24462 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24463
24464 PR rtl-optimization/60024
24465 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24466
24467 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24468
24469 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24470
24471 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24472
24473 PR rtl-optimization/57662
24474 * sel-sched.c (code_motion_path_driver): Do not mark already not
24475 existing blocks in the visiting bitmap.
24476
24477 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24478
24479 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24480 on the insn being emitted.
24481
24482 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24483 Will Deacon <will.deacon@arm.com>
24484
24485 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24486
24487 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24488
24489 * config/arm/arm-tables.opt: Regenerate.
24490
24491 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24492
24493 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24494 for vector types other than V16QImode.
24495 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24496 define_expand, and call altivec_expand_vec_perm_le when producing
24497 code with little endian element order.
24498 (*altivec_vperm_<mode>_internal): New insn having previous
24499 behavior of altivec_vperm_<mode>.
24500 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24501 altivec_expand_vec_perm_le when producing code with little endian
24502 element order.
24503 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24504 behavior of altivec_vperm_<mode>_uns.
24505
24506 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24507
24508 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24509 (altivec_vsumsws): Add handling for -maltivec=be with a little
24510 endian target.
24511 (altivec_vsumsws_direct): New.
24512 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24513 gen_altivec_vsumsws.
24514
24515 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24516
24517 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24518 vtable_pointer_value_to_binfo): New functions.
24519 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24520 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24521
24522 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24523
24524 * config/nios2/nios2.md (load_got_register): Initialize GOT
24525 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24526 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24527
24528 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24529
24530 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24531 preserverd by passthrough, do not propagate the type.
24532
24533 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24534
24535 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24536 (mips_atomic_assign_expand_fenv): New function.
24537 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24538
24539 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24540
24541 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24542 (__builtin_mips_set_fcsr): Likewise.
24543 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24544 MIPS_USI_FTYPE_VOID.
24545 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24546 (mips16_expand_set_fcsr): Likewise.
24547 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24548 (mips16_set_fcsr_stub): Likewise.
24549 (mips16_get_fcsr_one_only_stub): New class.
24550 (mips16_set_fcsr_one_only_stub): Likewise.
24551 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24552 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24553 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24554 (hard_float): New availability predicate.
24555 (mips_builtins): Add get_fcsr and set_fcsr.
24556 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24557 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24558 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24559 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24560 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24561 patterns.
24562
24563 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24564
24565 * config/mips/mips.c (mips_one_only_stub): New class.
24566 (mips_need_mips16_rdhwr_p): Replace with...
24567 (mips16_rdhwr_stub): ...this new variable.
24568 (mips16_stub_call_address): New function.
24569 (mips16_rdhwr_one_only_stub): New class.
24570 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24571 (mips_output_mips16_rdhwr): Delete.
24572 (mips_finish_stub): New function.
24573 (mips_code_end): Use it to handle rdhwr stubs.
24574
24575 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24576
24577 PR target/60017
24578 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24579 when calculating size of integer atomic types.
24580
24581 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24582
24583 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24584
24585 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24586
24587 PR tree-optimization/60003
24588 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24589 * profile.c (branch_prob): Use gimple_call_builtin_p
24590 to check for BUILT_IN_SETJMP_RECEIVER.
24591 * tree-inline.c (copy_bb): Call notice_special_calls.
24592
24593 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24594
24595 PR bootstrap/59985
24596 * lra-constraints.c (process_alt_operands): Update reload_sum only
24597 on the first pass.
24598
24599 2014-01-31 Richard Henderson <rth@redhat.com>
24600
24601 PR middle-end/60004
24602 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24603 until after else_eh is processed.
24604
24605 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24606
24607 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24608 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24609 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24610 in smmintrin.h, remove them.
24611 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24612 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24613 * config/i386/i386.md (ROUND_SAE): Fix value.
24614 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24615 (const48_operand): New.
24616 * config/i386/subst.md (round), (round_expand): Use
24617 const_4_or_8_to_11_operand.
24618 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24619
24620 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24621
24622 * config/i386/constraints.md (Yk): Swap meaning with k.
24623 * config/i386/i386.md (movhi_internal): Change Yk to k.
24624 (movqi_internal): Ditto.
24625 (*k<logic><mode>): Ditto.
24626 (*andhi_1): Ditto.
24627 (*andqi_1): Ditto.
24628 (kandn<mode>): Ditto.
24629 (*<code>hi_1): Ditto.
24630 (*<code>qi_1): Ditto.
24631 (kxnor<mode>): Ditto.
24632 (kortestzhi): Ditto.
24633 (kortestchi): Ditto.
24634 (kunpckhi): Ditto.
24635 (*one_cmplhi2_1): Ditto.
24636 (*one_cmplqi2_1): Ditto.
24637 * config/i386/sse.md (): Change k to Yk.
24638 (avx512f_load<mode>_mask): Ditto.
24639 (avx512f_blendm<mode>): Ditto.
24640 (avx512f_store<mode>_mask): Ditto.
24641 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24642 (avx512f_storedqu<mode>_mask): Ditto.
24643 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24644 Ditto.
24645 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24646 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24647 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24648 (avx512f_maskcmp<mode>3): Ditto.
24649 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24650 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24651 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24652 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24653 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24654 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24655 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24656 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24657 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24658 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24659 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24660 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24661 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24662 (vec_extract_lo_<mode>_maskm): Ditto.
24663 (vec_extract_hi_<mode>_maskm): Ditto.
24664 (avx512f_vternlog<mode>_mask): Ditto.
24665 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24666 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24667 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24668 (avx512f_<code>v8div16qi2_mask): Ditto.
24669 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24670 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24671 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24672 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24673 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24674 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24675 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24676 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24677 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24678 (avx512cd_maskb_vec_dupv8di): Ditto.
24679 (avx512cd_maskw_vec_dupv16si): Ditto.
24680 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24681 (avx512f_vpermi2var<mode>3_mask): Ditto.
24682 (avx512f_vpermi2var<mode>3_mask): Ditto.
24683 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24684 (*avx512f_gathersi<mode>): Ditto.
24685 (*avx512f_gathersi<mode>_2): Ditto.
24686 (*avx512f_gatherdi<mode>): Ditto.
24687 (*avx512f_gatherdi<mode>_2): Ditto.
24688 (*avx512f_scattersi<mode>): Ditto.
24689 (*avx512f_scatterdi<mode>): Ditto.
24690 (avx512f_compress<mode>_mask): Ditto.
24691 (avx512f_compressstore<mode>_mask): Ditto.
24692 (avx512f_expand<mode>_mask): Ditto.
24693 * config/i386/subst.md (mask): Change k to Yk.
24694 (mask_scalar_merge): Ditto.
24695 (sd): Ditto.
24696
24697 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24698
24699 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24700
24701 2014-01-31 Richard Biener <rguenther@suse.de>
24702
24703 PR middle-end/59990
24704 * builtins.c (fold_builtin_memory_op): Make sure to not
24705 use a floating-point mode or a boolean or enumeral type for
24706 the copy operation.
24707
24708 2014-01-30 DJ Delorie <dj@redhat.com>
24709
24710 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24711 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24712 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24713 whenever main() has an epilogue.
24714
24715 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24716
24717 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24718 unused variable "field".
24719 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24720 (vsx_mergeh_<mode>): Likewise.
24721 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24722 (altivec_vmrghh): Likewise.
24723 (altivec_vmrghw): Likewise.
24724 (altivec_vmrglb): Likewise.
24725 (altivec_vmrglh): Likewise.
24726 (altivec_vmrglw): Likewise.
24727 (altivec_vspltb): Add missing uses.
24728 (altivec_vsplth): Likewise.
24729 (altivec_vspltw): Likewise.
24730 (altivec_vspltsf): Likewise.
24731
24732 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24733
24734 PR target/59923
24735 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24736 frame related instructions.
24737
24738 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24739
24740 PR rtl-optimization/59959
24741 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24742 any reload of register whose subreg is invalid.
24743
24744 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24745
24746 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24747 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24748 Add missing return type - void.
24749
24750 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24751
24752 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24753 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24754 remove element index adjustment for endian (now handled in vsx.md
24755 and altivec.md).
24756 (altivec_expand_vec_perm_const): Use
24757 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24758 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24759 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24760 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24761 define_expand and a new define_insn *altivec_vspltb_internal;
24762 adjust for -maltivec=be on a little endian target.
24763 (altivec_vspltb_direct): New.
24764 (altivec_vsplth): Divide into a define_expand and a new
24765 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24766 little endian target.
24767 (altivec_vsplth_direct): New.
24768 (altivec_vspltw): Divide into a define_expand and a new
24769 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24770 little endian target.
24771 (altivec_vspltw_direct): New.
24772 (altivec_vspltsf): Divide into a define_expand and a new
24773 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24774 a little endian target.
24775
24776 2014-01-30 Richard Biener <rguenther@suse.de>
24777
24778 PR tree-optimization/59993
24779 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24780 can propagate form the earlier stmt and avoid the transform
24781 when the intermediate result is needed.
24782
24783 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24784
24785 * README.Portability: Fix typo.
24786
24787 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24788
24789 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24790 comparison_operator with ordered_comparison_operator.
24791
24792 2014-01-30 Nick Clifton <nickc@redhat.com>
24793
24794 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24795 Rename to mn10300_store_multiple_regs.
24796 * config/mn10300/mn10300.c: Likewise.
24797 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24798 store_multiple_regs.
24799 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24800 Call mn10300_store_multiple_regs.
24801
24802 2014-01-30 Nick Clifton <nickc@redhat.com>
24803 DJ Delorie <dj@redhat.com>
24804
24805 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24806 %fp 2 to keep registers after it properly word-aligned.
24807 (rl78_alloc_physical_registers_umul): Handle the case where both
24808 input operands are the same.
24809
24810 2014-01-30 Richard Biener <rguenther@suse.de>
24811
24812 PR tree-optimization/59903
24813 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24814 check properly.
24815
24816 2014-01-30 Jason Merrill <jason@redhat.com>
24817
24818 PR c++/59633
24819 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24820
24821 PR c++/59645
24822 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24823
24824 2014-01-30 Richard Biener <rguenther@suse.de>
24825
24826 PR tree-optimization/59951
24827 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24828
24829 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24830
24831 PR target/59784
24832 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24833 SFmode to DFmode case.
24834
24835 2014-01-29 DJ Delorie <dj@redhat.com>
24836
24837 * config/msp430/msp430.opt (-minrt): New.
24838 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24839 if -minrt given.
24840 (ENDFILE_SPEC): Likewise.
24841
24842 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24843
24844 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24845 (estimate_function_body_sizes): Use it.
24846
24847 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24848
24849 PR c++/58561
24850 * dwarf2out.c (is_cxx_auto): New.
24851 (is_base_type): Use it.
24852 (gen_type_die_with_usage): Likewise.
24853
24854 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24855
24856 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24857 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24858 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24859 -maltivec=be with LE targets.
24860 (vsx_mergeh_<mode>): Likewise.
24861 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24862 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24863 (altivec_vmrghb): Replace with define_expand and new
24864 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24865 (altivec_vmrghb_direct): New define_insn.
24866 (altivec_vmrghh): Replace with define_expand and new
24867 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24868 (altivec_vmrghh_direct): New define_insn.
24869 (altivec_vmrghw): Replace with define_expand and new
24870 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24871 (altivec_vmrghw_direct): New define_insn.
24872 (*altivec_vmrghsf): Adjust for endianness.
24873 (altivec_vmrglb): Replace with define_expand and new
24874 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24875 (altivec_vmrglb_direct): New define_insn.
24876 (altivec_vmrglh): Replace with define_expand and new
24877 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24878 (altivec_vmrglh_direct): New define_insn.
24879 (altivec_vmrglw): Replace with define_expand and new
24880 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24881 (altivec_vmrglw_direct): New define_insn.
24882 (*altivec_vmrglsf): Adjust for endianness.
24883 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24884 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24885 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24886 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24887 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24888 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24889 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24890 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24891
24892 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24893
24894 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24895 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24896 whitespace.
24897
24898 2014-01-29 Richard Biener <rguenther@suse.de>
24899
24900 PR tree-optimization/58742
24901 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24902 associate_pointerplus_align.
24903 (associate_pointerplus_diff): New function.
24904 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24905 and associate_pointerplus_diff.
24906
24907 2014-01-29 Richard Biener <rguenther@suse.de>
24908
24909 * lto-streamer.h (LTO_major_version): Bump to 3.
24910 (LTO_minor_version): Reset to 0.
24911
24912 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24913
24914 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24915 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24916 (arm_file_start): Generate correct asm header for armv7ve.
24917 * config/arm/bpabi.h: Add multilib support for armv7ve.
24918 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24919 and cortex-a15 to armv7ve.
24920 * config/arm/t-aprofile: Add multilib support for armv7ve.
24921 * doc/invoke.texi: Document -march=armv7ve.
24922
24923 2014-01-29 Richard Biener <rguenther@suse.de>
24924
24925 PR tree-optimization/58742
24926 * tree-ssa-forwprop.c (associate_plusminus): Return true
24927 if we changed sth, defer EH cleanup to ...
24928 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24929 (simplify_mult): New function.
24930
24931 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24932
24933 PR middle-end/59917
24934 PR tree-optimization/59920
24935 * tree.c (build_common_builtin_nodes): Remove
24936 __builtin_setjmp_dispatcher initialization.
24937 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24938 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24939 instead of gsi_after_labels + manually skipping debug stmts.
24940 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24941 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24942 * tree-inline.c (copy_edges_for_bb): Remove
24943 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24944 argument. Ignore computed_goto_p stmts. Don't call
24945 make_abnormal_goto_edges. If a call might need abnormal edges
24946 for non-local gotos, see if it already has an edge to
24947 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24948 with true argument, don't do anything then, otherwise add
24949 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24950 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24951 caller.
24952 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24953 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24954 (lower_stmt): Don't set data->calls_builtin_setjmp.
24955 (lower_builtin_setjmp): Adjust comment.
24956 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24957 * tree-cfg.c (found_computed_goto): Remove.
24958 (factor_computed_gotos): Remove.
24959 (make_goto_expr_edges): Return bool, true for computed gotos.
24960 Don't call make_abnormal_goto_edges.
24961 (build_gimple_cfg): Don't set found_computed_goto, don't call
24962 factor_computed_gotos.
24963 (computed_goto_p): No longer static.
24964 (make_blocks): Don't set found_computed_goto.
24965 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24966 (make_edges): If make_goto_expr_edges returns true, push bb
24967 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24968 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24969 vector. Record mapping between bbs and OpenMP regions if there
24970 are any, adjust make_gimple_omp_edges caller. Call
24971 handle_abnormal_edges.
24972 (make_abnormal_goto_edges): Remove.
24973 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24974 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24975 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24976 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24977 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24978 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24979 filling *region also set *region_idx to (*region)->entry->index.
24980
24981 PR other/58712
24982 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24983 For REGs set ORIGINAL_REGNO.
24984
24985 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24986
24987 * doc/md.texi: Mention that a target shouldn't implement
24988 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24989 than hi/lo pair.
24990
24991 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24992
24993 PR tree-optimization/59594
24994 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24995 a copy of the datarefs vector rather than the vector itself.
24996
24997 2014-01-28 Jason Merrill <jason@redhat.com>
24998
24999 PR c++/53756
25000 * dwarf2out.c (auto_die): New static.
25001 (gen_type_die_with_usage): Handle C++1y 'auto'.
25002 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
25003 on definition.
25004
25005 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
25006
25007 PR target/59672
25008 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
25009 (SPEC_X32): Likewise.
25010 (SPEC_64): Likewise.
25011 * config/i386/i386.c (ix86_option_override_internal): Turn off
25012 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
25013 for TARGET_16BIT.
25014 (x86_file_start): Output .code16gcc for TARGET_16BIT.
25015 * config/i386/i386.h (TARGET_16BIT): New macro.
25016 (TARGET_16BIT_P): Likewise.
25017 * config/i386/i386.opt: Add m16.
25018 * doc/invoke.texi: Document -m16.
25019
25020 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25021
25022 PR preprocessor/59935
25023 * input.c (location_get_source_line): Bail out on when line number
25024 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25025
25026 2014-01-28 Richard Biener <rguenther@suse.de>
25027
25028 PR tree-optimization/58742
25029 * tree-ssa-forwprop.c (associate_plusminus): Handle
25030 pointer subtraction of the form (T)(P + A) - (T)P.
25031
25032 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25033
25034 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25035 at const_int_cost.
25036
25037 2014-01-28 Richard Biener <rguenther@suse.de>
25038
25039 Revert
25040 2014-01-28 Richard Biener <rguenther@suse.de>
25041
25042 PR rtl-optimization/45364
25043 PR rtl-optimization/59890
25044 * var-tracking.c (local_get_addr_clear_given_value): Handle
25045 already cleared slot.
25046 (val_reset): Handle not allocated local_get_addr_cache.
25047 (vt_find_locations): Use post-order on the inverted CFG.
25048
25049 2014-01-28 Richard Biener <rguenther@suse.de>
25050
25051 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25052
25053 2014-01-28 Richard Biener <rguenther@suse.de>
25054
25055 PR rtl-optimization/45364
25056 PR rtl-optimization/59890
25057 * var-tracking.c (local_get_addr_clear_given_value): Handle
25058 already cleared slot.
25059 (val_reset): Handle not allocated local_get_addr_cache.
25060 (vt_find_locations): Use post-order on the inverted CFG.
25061
25062 2014-01-28 Alan Modra <amodra@gmail.com>
25063
25064 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25065 * configure.ac <recursive call for build != host>: Define
25066 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25067 and LD_FOR_BUILD too.
25068 * configure: Regenerate.
25069
25070 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25071
25072 * config/i386/i386.c (get_builtin_code_for_version): Separate
25073 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25074 Broadwell from Haswell.
25075
25076 2014-01-27 Steve Ellcey <sellcey@mips.com>
25077
25078 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25079 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25080 * config/mips/mips.c (mips_option_override): Change setting
25081 of TARGET_DSP.
25082 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25083 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25084 Change from Mask to Var.
25085
25086 2014-01-27 Jeff Law <law@redhat.com>
25087
25088 * ipa-inline.c (inline_small_functions): Fix typo.
25089
25090 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25091
25092 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25093 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25094 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25095 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25096 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25097 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25098 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25099 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25100 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25101 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25102 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25103 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25104 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25105 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25106 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25107 (_mm512_storeu_epi64): Ditto.
25108 (_mm512_cmpge_epi32_mask): Ditto.
25109 (_mm512_cmpge_epu32_mask): Ditto.
25110 (_mm512_cmpge_epi64_mask): Ditto.
25111 (_mm512_cmpge_epu64_mask): Ditto.
25112 (_mm512_cmple_epi32_mask): Ditto.
25113 (_mm512_cmple_epu32_mask): Ditto.
25114 (_mm512_cmple_epi64_mask): Ditto.
25115 (_mm512_cmple_epu64_mask): Ditto.
25116 (_mm512_cmplt_epi32_mask): Ditto.
25117 (_mm512_cmplt_epu32_mask): Ditto.
25118 (_mm512_cmplt_epi64_mask): Ditto.
25119 (_mm512_cmplt_epu64_mask): Ditto.
25120 (_mm512_cmpneq_epi32_mask): Ditto.
25121 (_mm512_cmpneq_epu32_mask): Ditto.
25122 (_mm512_cmpneq_epi64_mask): Ditto.
25123 (_mm512_cmpneq_epu64_mask): Ditto.
25124 (_mm512_expand_pd): Ditto.
25125 (_mm512_expand_ps): Ditto.
25126 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25127 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25128 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25129 * config/i386/i386.c (ix86_builtins): Add
25130 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25131 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25132 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25133 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25134 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25135 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25136 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25137 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25138 IX86_BUILTIN_PMOVUSQW512_MEM.
25139 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25140 __builtin_ia32_pmovsqd512mem_mask,
25141 __builtin_ia32_pmovqd512mem_mask,
25142 __builtin_ia32_pmovusqw512mem_mask,
25143 __builtin_ia32_pmovsqw512mem_mask,
25144 __builtin_ia32_pmovqw512mem_mask,
25145 __builtin_ia32_pmovusdw512mem_mask,
25146 __builtin_ia32_pmovsdw512mem_mask,
25147 __builtin_ia32_pmovdw512mem_mask,
25148 __builtin_ia32_pmovqb512mem_mask,
25149 __builtin_ia32_pmovusqb512mem_mask,
25150 __builtin_ia32_pmovsqb512mem_mask,
25151 __builtin_ia32_pmovusdb512mem_mask,
25152 __builtin_ia32_pmovsdb512mem_mask,
25153 __builtin_ia32_pmovdb512mem_mask.
25154 (bdesc_args): Add __builtin_ia32_expanddf512,
25155 __builtin_ia32_expandsf512.
25156 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25157 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25158 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25159 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25160 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25161 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25162 (avx512f_<code>v8div16qi2_mask_store): This.
25163 (avx512f_expand<mode>): New.
25164
25165 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25166
25167 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25168 New.
25169 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25170 (_mm512_prefetch_i32scatter_pd): Ditto.
25171 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25172 (_mm512_prefetch_i64scatter_pd): Ditto.
25173 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25174 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25175 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25176 (_mm512_prefetch_i32scatter_ps): Ditto.
25177 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25178 (_mm512_prefetch_i64scatter_ps): Ditto.
25179 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25180 * config/i386/i386-builtin-types.def: Define
25181 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25182 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25183 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25184 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25185 IX86_BUILTIN_SCATTERPFQPD.
25186 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25187 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25188 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25189 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25190 __builtin_ia32_scatterpfqps.
25191 (ix86_expand_builtin): Expand new built-ins.
25192 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25193 fix memory access data type.
25194 (*avx512pf_gatherpf<mode>_mask): Ditto.
25195 (*avx512pf_gatherpf<mode>): Ditto.
25196 (avx512pf_scatterpf<mode>): Ditto.
25197 (*avx512pf_scatterpf<mode>_mask): Ditto.
25198 (*avx512pf_scatterpf<mode>): Ditto.
25199 (GATHER_SCATTER_SF_MEM_MODE): New.
25200 (avx512pf_gatherpf<mode>df): Ditto.
25201 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25202 (*avx512pf_scatterpf<mode>df): Ditto.
25203
25204 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25205
25206 PR bootstrap/59934
25207 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25208 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25209 reached.
25210
25211 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25212
25213 * common/config/arm/arm-common.c
25214 (arm_rewrite_mcpu): Handle multiple names.
25215 * config/arm/arm.h
25216 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25217
25218 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25219
25220 * gimple-builder.h (create_gimple_tmp): Delete.
25221
25222 2014-01-27 Christian Bruel <christian.bruel@st.com>
25223
25224 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25225 words comparisons.
25226
25227 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25228
25229 * config/pa/pa.md (call): Generate indirect long calls to non-local
25230 functions when outputing 32-bit code.
25231 (call_value): Likewise except for special call to buggy powf function.
25232
25233 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25234 portable runtime and PIC indirect calls.
25235 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25236 and PIC call sequences. Use ldo instead of blr to set return register
25237 in PIC call sequence.
25238
25239 2014-01-25 Walter Lee <walt@tilera.com>
25240
25241 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25242 avoid clobbering a live register.
25243
25244 2014-01-25 Walter Lee <walt@tilera.com>
25245
25246 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25247 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25248 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25249 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25250
25251 2014-01-25 Walter Lee <walt@tilera.com>
25252
25253 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25254 arguments on even registers.
25255 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25256 STACK_BOUNDARY.
25257 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25258 (BIGGEST_ALIGNMENT): Ditto.
25259 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25260
25261 2014-01-25 Walter Lee <walt@tilera.com>
25262
25263 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25264 insns before bundling.
25265 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25266
25267 2014-01-25 Walter Lee <walt@tilera.com>
25268
25269 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25270 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25271 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25272
25273 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25274
25275 * config/mips/constraints.md (kl): Delete.
25276 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25277 define expands, using...
25278 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25279 instructions for MIPS16.
25280 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25281 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25282
25283 2014-01-25 Walter Lee <walt@tilera.com>
25284
25285 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25286 (clzdi2): Ditto.
25287 (ffsdi2): Ditto.
25288
25289 2014-01-25 Walter Lee <walt@tilera.com>
25290
25291 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25292 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25293
25294 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25295
25296 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25297 Handle XOR.
25298
25299 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25300
25301 * print-rtl.c (in_call_function_usage): New var.
25302 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25303 EXPR_LIST mode as mode and not as reg note name.
25304
25305 PR middle-end/59561
25306 * cfgloopmanip.c (copy_loop_info): If
25307 loop->warned_aggressive_loop_optimizations, make sure
25308 the flag is set in target loop too.
25309
25310 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25311
25312 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25313 flag_cilkplus.
25314 * builtins.def: Likewise.
25315 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25316 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25317 * ira.c (ira_setup_eliminable_regset): Likewise.
25318 * omp-low.c (gate_expand_omp): Likewise.
25319 (execute_lower_omp): Likewise.
25320 (diagnose_sb_0): Likewise.
25321 (gate_diagnose_omp_blocks): Likewise.
25322 (simd_clone_clauses_extract): Likewise.
25323 (gate): Likewise.
25324
25325 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25326
25327 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25328 correction for little endian...
25329 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25330 here.
25331
25332 2014-01-24 Jeff Law <law@redhat.com>
25333
25334 PR tree-optimization/59919
25335 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25336 for non-returning calls.
25337
25338 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25339
25340 * common/config/aarch64/aarch64-common.c
25341 (aarch64_rewrite_mcpu): Handle multiple names.
25342 * config/aarch64/aarch64.h
25343 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25344
25345 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25346
25347 * input.c (add_file_to_cache_tab): Handle the case where fopen
25348 returns NULL.
25349
25350 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25351
25352 PR target/59929
25353 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25354 from push operand if code of push isn't PRE_DEC.
25355
25356 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25357
25358 PR target/59909
25359 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25360 -mquad-memory-atomic. Update -mquad-memory documentation to say
25361 it is only used for non-atomic loads/stores.
25362
25363 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25364 -mquad-memory or -mquad-memory-atomic switches.
25365
25366 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25367 -mquad-memory-atomic to ISA 2.07 support.
25368
25369 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25370 to separate support of normal quad word memory operations (ldq, stq)
25371 from the atomic quad word memory operations.
25372
25373 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25374 support to separate non-atomic quad word operations from atomic
25375 quad word operations. Disable non-atomic quad word operations in
25376 little endian mode so that we don't have to swap words after the
25377 load and before the store.
25378 (quad_load_store_p): Add comment about atomic quad word support.
25379 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25380 options printed with -mdebug=reg.
25381
25382 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25383 -mquad-memory-atomic as the test for whether we have quad word
25384 atomic instructions.
25385 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25386 or -mp8-vector are used, allow byte/half-word atomic operations.
25387
25388 * config/rs6000/sync.md (load_lockedti): Insure that the address
25389 is a proper indexed or indirect address for the lqarx instruction.
25390 On little endian systems, swap the hi/lo registers after the lqarx
25391 instruction.
25392 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25393 insure the address is valid for the lqarx instruction.
25394 (store_conditionalti): Insure that the address is a proper indexed
25395 or indirect address for the stqcrx. instruction. On little endian
25396 systems, swap the hi/lo registers before doing the stqcrx.
25397 instruction.
25398 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25399 insure the address is valid for the stqcrx. instruction.
25400
25401 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25402 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25403 type of quad memory support is available.
25404
25405 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25406
25407 PR regression/59915
25408 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25409 there is a danger of looping.
25410
25411 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25412
25413 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25414 force flag_ira_loop_pressure if set via command line.
25415
25416 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25417
25418 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25419 (ashr_simd): New builtin handling DI mode.
25420 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25421 (aarch64_sshr_simddi): New match pattern.
25422 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25423 (vshrd_n_s64): Likewise.
25424 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25425
25426 2014-01-23 Nick Clifton <nickc@redhat.com>
25427
25428 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25429 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25430 favour of mcu specific scripts.
25431 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25432 430x multilibs.
25433
25434 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25435 Alex Velenko <Alex.Velenko@arm.com>
25436
25437 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25438 (vaddv_s16): Likewise.
25439 (vaddv_s32): Likewise.
25440 (vaddv_u8): Likewise.
25441 (vaddv_u16): Likewise.
25442 (vaddv_u32): Likewise.
25443 (vaddvq_s8): Likewise.
25444 (vaddvq_s16): Likewise.
25445 (vaddvq_s32): Likewise.
25446 (vaddvq_s64): Likewise.
25447 (vaddvq_u8): Likewise.
25448 (vaddvq_u16): Likewise.
25449 (vaddvq_u32): Likewise.
25450 (vaddvq_u64): Likewise.
25451 (vaddv_f32): Likewise.
25452 (vaddvq_f32): Likewise.
25453 (vaddvq_f64): Likewise.
25454 (vmaxv_f32): Likewise.
25455 (vmaxv_s8): Likewise.
25456 (vmaxv_s16): Likewise.
25457 (vmaxv_s32): Likewise.
25458 (vmaxv_u8): Likewise.
25459 (vmaxv_u16): Likewise.
25460 (vmaxv_u32): Likewise.
25461 (vmaxvq_f32): Likewise.
25462 (vmaxvq_f64): Likewise.
25463 (vmaxvq_s8): Likewise.
25464 (vmaxvq_s16): Likewise.
25465 (vmaxvq_s32): Likewise.
25466 (vmaxvq_u8): Likewise.
25467 (vmaxvq_u16): Likewise.
25468 (vmaxvq_u32): Likewise.
25469 (vmaxnmv_f32): Likewise.
25470 (vmaxnmvq_f32): Likewise.
25471 (vmaxnmvq_f64): Likewise.
25472 (vminv_f32): Likewise.
25473 (vminv_s8): Likewise.
25474 (vminv_s16): Likewise.
25475 (vminv_s32): Likewise.
25476 (vminv_u8): Likewise.
25477 (vminv_u16): Likewise.
25478 (vminv_u32): Likewise.
25479 (vminvq_f32): Likewise.
25480 (vminvq_f64): Likewise.
25481 (vminvq_s8): Likewise.
25482 (vminvq_s16): Likewise.
25483 (vminvq_s32): Likewise.
25484 (vminvq_u8): Likewise.
25485 (vminvq_u16): Likewise.
25486 (vminvq_u32): Likewise.
25487 (vminnmv_f32): Likewise.
25488 (vminnmvq_f32): Likewise.
25489 (vminnmvq_f64): Likewise.
25490
25491 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25492
25493 * config/aarch64/aarch64-simd.md
25494 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25495 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25496 (*aarch64_mul3_elt<mode>): Likewise.
25497 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25498 (*aarch64_mul3_elt_to_64v2df): Likewise.
25499 (*aarch64_mla_elt<mode>): Likewise.
25500 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25501 (*aarch64_mls_elt<mode>): Likewise.
25502 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25503 (*aarch64_fma4_elt<mode>): Likewise.
25504 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25505 (*aarch64_fma4_elt_to_64v2df): Likewise.
25506 (*aarch64_fnma4_elt<mode>): Likewise.
25507 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25508 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25509 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25510 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25511 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25512 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25513 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25514 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25515 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25516
25517 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25518
25519 * config/aarch64/aarch64-simd.md
25520 (aarch64_be_checked_get_lane<mode>): New define_expand.
25521 * config/aarch64/aarch64-simd-builtins.def
25522 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25523 New builtin definition.
25524 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25525 Use new safe be builtin.
25526
25527 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25528
25529 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25530 New define_insn.
25531 (aarch64_be_st1<mode>): Likewise.
25532 (aarch_ld1<VALL:mode>): Define_expand modified.
25533 (aarch_st1<VALL:mode>): Likewise.
25534 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25535 (UNSPEC_ST1): Likewise.
25536
25537 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25538
25539 * config/microblaze/microblaze.md: Add trap insn and attribute
25540
25541 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25542
25543 PR preprocessor/58580
25544 * input.h (location_get_source_line): Take an additional line_size
25545 parameter.
25546 (void diagnostics_file_cache_fini): Declare new function.
25547 * input.c (struct fcache): New type.
25548 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25549 New static constants.
25550 (diagnostic_file_cache_init, total_lines_num)
25551 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25552 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25553 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25554 (get_next_line, read_next_line, goto_next_line, read_line_num):
25555 New static function definitions.
25556 (diagnostic_file_cache_fini): New function.
25557 (location_get_source_line): Take an additional output line_len
25558 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25559 read_line_num.
25560 * diagnostic.c (diagnostic_finish): Call
25561 diagnostic_file_cache_fini.
25562 (adjust_line): Take an additional input parameter for the length
25563 of the line, rather than calculating it with strlen.
25564 (diagnostic_show_locus): Adjust the use of
25565 location_get_source_line and adjust_line with respect to their new
25566 signature. While displaying a line now, do not stop at the first
25567 null byte. Rather, display the zero byte as a space and keep
25568 going until we reach the size of the line.
25569 * Makefile.in: Add vec.o to OBJS-libcommon
25570
25571 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25572 Ilya Tocar <ilya.tocar@intel.com>
25573
25574 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25575 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25576 (__builtin_ia32_kmov16): Ditto.
25577 * config/i386/i386.md (UNSPEC_KMOV): New.
25578 (kmovw): Ditto.
25579
25580 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25581
25582 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25583 (_mm512_storeu_si512): Ditto.
25584
25585 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25586
25587 PR target/52125
25588 * rtl.h (get_referenced_operands): Declare.
25589 * recog.c (get_referenced_operands): New function.
25590 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25591 operands have been referenced when recording LO_SUM references.
25592
25593 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25594
25595 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25596
25597 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25598
25599 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25600 Enable for generic and recent AMD targets.
25601
25602 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25603
25604 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25605 ARG_SIZE note when adjustment was eliminated.
25606
25607 2014-01-22 Jeff Law <law@redhat.com>
25608
25609 PR tree-optimization/59597
25610 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25611 in file. Accept new argument REGISTERING and use it to modify
25612 dump output appropriately.
25613 (register_jump_thread): Corresponding changes.
25614 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25615 thread paths involving joiner blocks. Add code to dump cancelled
25616 jump threading paths.
25617
25618 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25619
25620 PR rtl-optimization/59477
25621 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25622 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25623
25624 2014-01-22 Tom Tromey <tromey@redhat.com>
25625
25626 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25627 PARAMS.
25628 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25629
25630 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25631
25632 PR rtl-optimization/59896
25633 * lra-constraints.c (process_alt_operands): Check unused note for
25634 matched operands of insn with no output reloads.
25635
25636 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25637
25638 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25639 (mips_move_from_gpr_cost): Likewise.
25640
25641 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25642
25643 PR rtl-optimization/59858
25644 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25645 ira_class_hard_regs_num.
25646 (process_alt_operands): Increase reject for dying matched operand.
25647
25648 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25649
25650 PR target/59003
25651 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25652 smaller than size, perform several stores or loads and stores
25653 at dst + count - size to store or copy all of size bytes, rather
25654 than just last modesize bytes.
25655
25656 2014-01-20 DJ Delorie <dj@redhat.com>
25657
25658 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25659 that CLOBBERs are REGs before propogating their values.
25660
25661 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25662
25663 PR middle-end/59789
25664 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25665 (cgraph_inline_failed_type): New function.
25666 * cgraph.h (DEFCIFCODE): Add type.
25667 (cgraph_inline_failed_type_t): New enum.
25668 (cgraph_inline_failed_type): New prototype.
25669 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25670 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25671 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25672 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25673 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25674 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25675 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25676 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25677 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25678 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25679 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25680 OPTIMIZATION_MISMATCH.
25681 * tree-inline.c (expand_call_inline): Emit errors during
25682 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25683
25684 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25685
25686 PR target/59685
25687 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25688 mode attribute in insn output.
25689
25690 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25691
25692 * output.h (output_constant): Delete.
25693 * varasm.c (output_constant): Make private.
25694
25695 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25696
25697 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25698
25699 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25700
25701 PR middle-end/59860
25702 * tree.h (fold_builtin_strcat): New prototype.
25703 * builtins.c (fold_builtin_strcat): No longer static. Add len
25704 argument, if non-NULL, don't call c_strlen. Optimize
25705 directly into __builtin_memcpy instead of __builtin_strcpy.
25706 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25707 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25708
25709 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25710
25711 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25712 for SImode_address_operand operands, having only a REG argument.
25713
25714 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25715
25716 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25717 loader name using mbig-endian.
25718 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25719
25720 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25721
25722 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25723 (-mtune): Likewise.
25724 (-mcpu): Likewise.
25725
25726 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25727
25728 * config/aarch64/aarch64-protos.h
25729 (aarch64_cannot_change_mode_class_ptr): Declare.
25730 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25731 aarch64_cannot_change_mode_class_ptr): New.
25732 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25733 backend hook aarch64_cannot_change_mode_class.
25734
25735 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25736
25737 * common/config/aarch64/aarch64-common.c
25738 (aarch64_handle_option): Don't handle any option order logic here.
25739 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25740 selected_cpu, warn on architecture version mismatch.
25741 (aarch64_override_options): Fix parsing order for option strings.
25742
25743 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25744 Iain Sandoe <iain@codesourcery.com>
25745
25746 PR bootstrap/59496
25747 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25748 warning. Amend comment to reflect current functionality.
25749
25750 2014-01-20 Richard Biener <rguenther@suse.de>
25751
25752 PR middle-end/59860
25753 * builtins.c (fold_builtin_strcat): Remove case better handled
25754 by tree-ssa-strlen.c.
25755
25756 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25757
25758 * config/aarch64/aarch64.opt
25759 (mcpu, march, mtune): Make case-insensitive.
25760
25761 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25762
25763 PR target/59880
25764 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25765 if operands[1] is a REG or ZERO_EXTEND of a REG.
25766
25767 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25768
25769 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25770
25771 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25772
25773 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25774 long non-pic millicode calls.
25775
25776 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25777
25778 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25779
25780 2014-01-19 Kito Cheng <kito@0xlab.org>
25781
25782 * builtins.c (expand_movstr): Check movstr expand done or fail.
25783
25784 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25785 H.J. Lu <hongjiu.lu@intel.com>
25786
25787 PR target/59379
25788 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25789 to DImode for zero-extended addresses.
25790
25791 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25792
25793 PR rtl-optimization/57763
25794 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25795 on the new indirect jump_insn and increment LABEL_NUSES (label).
25796
25797 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25798
25799 PR bootstrap/59580
25800 PR bootstrap/59583
25801 * config.gcc (x86_archs): New variable.
25802 (x86_64_archs): Likewise.
25803 (x86_cpus): Likewise.
25804 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25805 --with-arch/--with-cpu= options.
25806 Support --with-arch=/--with-cpu={nehalem,westmere,
25807 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25808
25809 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25810
25811 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25812 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25813
25814 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25815
25816 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25817
25818 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25819
25820 PR target/58944
25821 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25822 clear cpp_get_options (parse_in)->warn_unused_macros for
25823 ix86_target_macros_internal with cpp_define.
25824
25825 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25826
25827 * jump.c (delete_related_insns): Keep (use (insn))s.
25828 * reorg.c (redundant_insn): Check for barriers too.
25829
25830 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25831
25832 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25833
25834 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25835
25836 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25837 call to $$dyncall when TARGET_LONG_CALLS is true.
25838
25839 2014-01-17 Jeff Law <law@redhat.com>
25840
25841 * ree.c (combine_set_extension): Temporarily disable test for
25842 changing number of hard registers.
25843
25844 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25845
25846 PR middle-end/58125
25847 * ipa-inline-analysis.c (inline_free_summary):
25848 Do not free summary of aliases.
25849
25850 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25851
25852 PR middle-end/59706
25853 * gimplify.c (gimplify_expr): Use create_tmp_var
25854 instead of create_tmp_var_raw. If cond doesn't have
25855 integral type, don't add the IFN_ANNOTATE builtin at all.
25856
25857 2014-01-17 Martin Jambor <mjambor@suse.cz>
25858
25859 PR ipa/59736
25860 * ipa-cp.c (prev_edge_clone): New variable.
25861 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25862 Also resize prev_edge_clone vector.
25863 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25864 (ipcp_edge_removal_hook): New function.
25865 (ipcp_driver): Register ipcp_edge_removal_hook.
25866
25867 2014-01-17 Andrew Pinski <apinski@cavium.com>
25868 Steve Ellcey <sellcey@mips.com>
25869
25870 PR target/59462
25871 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25872 of operator mode.
25873
25874 2014-01-17 Jeff Law <law@redhat.com>
25875
25876 PR middle-end/57904
25877 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25878 so that pass_ccp runs first.
25879
25880 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25881
25882 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25883 (ix86_adjust_cost): Use !TARGET_XXX.
25884 (do_reorder_for_imul): Likewise.
25885 (swap_top_of_ready_list): Likewise.
25886 (ix86_sched_reorder): Likewise.
25887
25888 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25889
25890 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25891 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25892 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25893 (intel_memset): New. Duplicate slm_memset.
25894 (intel_cost): New. Duplicate slm_cost.
25895 (m_INTEL): New macro.
25896 (processor_target_table): Add "intel".
25897 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25898 with PROCESSOR_INTEL for "intel".
25899 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25900 PROCESSOR_SILVERMONT.
25901 (ix86_issue_rate): Likewise.
25902 (ix86_adjust_cost): Likewise.
25903 (ia32_multipass_dfa_lookahead): Likewise.
25904 (swap_top_of_ready_list): Likewise.
25905 (ix86_sched_reorder): Likewise.
25906 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25907 instead of TARGET_OPT_AGU.
25908 * config/i386/i386.h (TARGET_INTEL): New.
25909 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25910 (processor_type): Add PROCESSOR_INTEL.
25911 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25912 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25913
25914 2014-01-17 Marek Polacek <polacek@redhat.com>
25915
25916 PR c/58346
25917 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25918 size is zero.
25919
25920 2014-01-17 Richard Biener <rguenther@suse.de>
25921
25922 PR tree-optimization/46590
25923 * opts.c (default_options_table): Add entries for
25924 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25925 all enabled at -O1 but not for -Og.
25926 * common.opt (fbranch-count-reg): Remove Init(1).
25927 (fmove-loop-invariants): Likewise.
25928 (ftree-pta): Likewise.
25929
25930 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25931
25932 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25933 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25934 decls to at least the GCC 4.8 used alignments.
25935
25936 PR fortran/59440
25937 * tree-nested.c (convert_nonlocal_reference_stmt,
25938 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25939 of GIMPLE_BIND stmts, adjust associated decls.
25940
25941 2014-01-17 Richard Biener <rguenther@suse.de>
25942
25943 PR tree-optimization/46590
25944 * vec.h (vec<>::bseach): New member function implementing
25945 binary search according to C89 bsearch.
25946 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25947 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25948 bitmap pointer again. Make accesses_in_loop a flat array.
25949 (mem_ref_obstack): New global.
25950 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25951 (mark_ref_stored): Likewise.
25952 (ref_indep_loop_p_2): Likewise.
25953 (set_ref_stored_in_loop): New helper function.
25954 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25955 (memref_free): Adjust.
25956 (record_mem_ref_loc): Simplify.
25957 (gather_mem_refs_stmt): Adjust.
25958 (sort_locs_in_loop_postorder_cmp): New function.
25959 (analyze_memory_references): Sort accesses_in_loop after
25960 loop postorder number.
25961 (find_ref_loc_in_loop_cmp): New function.
25962 (for_all_locs_in_loop): Find relevant cluster of locs in
25963 accesses_in_loop and iterate without recursion.
25964 (execute_sm): Avoid uninit warning.
25965 (struct ref_always_accessed): Simplify.
25966 (ref_always_accessed::operator ()): Likewise.
25967 (ref_always_accessed_p): Likewise.
25968 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25969 loop postorder numbers here.
25970 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25971 numbers.
25972
25973 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25974
25975 PR c++/57945
25976 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25977 on decls for which assemble_alias has been called.
25978
25979 2014-01-17 Nick Clifton <nickc@redhat.com>
25980
25981 * config/msp430/msp430.opt: (mcpu): New option.
25982 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25983 (msp430_option_override): Parse target_cpu. If the MCU name
25984 matches a generic string, clear target_mcu.
25985 (msp430_attr): Allow numeric interrupt values up to 63.
25986 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25987 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25988 option.
25989 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25990 Add mcpu matches.
25991 * config/msp430/msp430.md (popm): Use %J rather than %I.
25992 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25993 (addhi_cy_i): Use immediate_operand for operand 2.
25994 * doc/invoke.texi: Document -mcpu option.
25995
25996 2014-01-17 Richard Biener <rguenther@suse.de>
25997
25998 PR rtl-optimization/38518
25999 * df.h (df_analyze_loop): Declare.
26000 * df-core.c: Include cfgloop.h.
26001 (df_analyze_1): Split out main part of df_analyze.
26002 (df_analyze): Adjust.
26003 (loop_inverted_post_order_compute): New function.
26004 (loop_post_order_compute): Likewise.
26005 (df_analyze_loop): New function avoiding whole-function
26006 postorder computes.
26007 * loop-invariant.c (find_defs): Use df_analyze_loop.
26008 (find_invariants): Adjust.
26009 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
26010
26011 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
26012
26013 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
26014 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
26015
26016 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26017
26018 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26019 traversal when removing references.
26020
26021 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26022
26023 PR ipa/59775
26024 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26025
26026 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26027
26028 PR middle-end/56791
26029 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26030 pushing a reload for an autoinc when we had previously reloaded an
26031 inner part of the address.
26032
26033 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26034
26035 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26036 field.
26037 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26038 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26039 when not giving up or versioning for alias only because of
26040 loop->safelen.
26041 (vect_analyze_data_ref_dependences): Set to true.
26042 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26043 is a GIMPLE_PHI.
26044 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26045 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26046 to the condition.
26047
26048 PR middle-end/58344
26049 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26050
26051 PR target/59839
26052 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26053 operand 0 predicate for gathers, use a new pseudo as subtarget.
26054
26055 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26056
26057 PR middle-end/59609
26058 * lra-constraints.c (process_alt_operands): Add printing debug info.
26059 Check absence of input/output reloads for matched operands too.
26060
26061 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26062
26063 PR rtl-optimization/59835
26064 * ira.c (ira_init_register_move_cost): Increase cost for
26065 impossible modes.
26066
26067 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26068
26069 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26070
26071 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26072
26073 PR target/59780
26074 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26075 non-register objects. Use gen_(high/low)part more consistently.
26076 Fix assertions.
26077
26078 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26079
26080 PR target/59844
26081 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26082 endian support, remove tests for WORDS_BIG_ENDIAN.
26083 (p8_mfvsrd_3_<mode>): Likewise.
26084 (reload_gpr_from_vsx<mode>): Likewise.
26085 (reload_gpr_from_vsxsf): Likewise.
26086 (p8_mfvsrd_4_disf): Likewise.
26087
26088 2014-01-16 Richard Biener <rguenther@suse.de>
26089
26090 PR rtl-optimization/46590
26091 * lcm.c (compute_antinout_edge): Use postorder iteration.
26092 (compute_laterin): Use inverted postorder iteration.
26093
26094 2014-01-16 Nick Clifton <nickc@redhat.com>
26095
26096 PR middle-end/28865
26097 * varasm.c (output_constant): Return the number of bytes actually
26098 emitted.
26099 (output_constructor_array_range): Update the field size with the
26100 number of bytes emitted by output_constant.
26101 (output_constructor_regular_field): Likewise. Also do not
26102 complain if the total number of bytes emitted is now greater
26103 than the expected fieldpos.
26104 * output.h (output_constant): Update prototype and descriptive comment.
26105
26106 2014-01-16 Marek Polacek <polacek@redhat.com>
26107
26108 PR middle-end/59827
26109 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26110 it is error_mark_node.
26111
26112 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26113
26114 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26115 VALID_AVX256_REG_OR_OI_MODE.
26116
26117 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26118
26119 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26120 current procedure should be profiled.
26121
26122 2014-01-15 Andrew Pinski <apinski@cavium.com>
26123
26124 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26125 of moving from/to the STACK_REG register class.
26126
26127 2014-01-15 Richard Henderson <rth@redhat.com>
26128
26129 PR debug/54694
26130 * reginfo.c (global_regs_decl): Globalize.
26131 * rtl.h (global_regs_decl): Declare.
26132 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26133 reserved via global_regs.
26134
26135 2014-01-15 Teresa Johnson <tejohnson@google.com>
26136
26137 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26138
26139 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26140
26141 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26142 and vmulosh rather than call gen_vec_widen_smult_*.
26143 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26144 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26145 (vec_widen_smult_even_v16qi): Likewise.
26146 (vec_widen_umult_even_v8hi): Likewise.
26147 (vec_widen_smult_even_v8hi): Likewise.
26148 (vec_widen_umult_odd_v16qi): Likewise.
26149 (vec_widen_smult_odd_v16qi): Likewise.
26150 (vec_widen_umult_odd_v8hi): Likewise.
26151 (vec_widen_smult_odd_v8hi): Likewise.
26152 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26153 vmuloub rather than call gen_vec_widen_umult_*.
26154 (vec_widen_umult_lo_v16qi): Likewise.
26155 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26156 vmulosb rather than call gen_vec_widen_smult_*.
26157 (vec_widen_smult_lo_v16qi): Likewise.
26158 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26159 rather than call gen_vec_widen_umult_*.
26160 (vec_widen_umult_lo_v8hi): Likewise.
26161 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26162 rather than call gen_vec_widen_smult_*.
26163 (vec_widen_smult_lo_v8hi): Likewise.
26164
26165 2014-01-15 Jeff Law <law@redhat.com>
26166
26167 PR tree-optimization/59747
26168 * ree.c (find_and_remove_re): Properly handle case where a second
26169 eliminated extension requires widening a copy created for elimination
26170 of a prior extension.
26171 (combine_set_extension): Ensure that the number of hard regs needed
26172 for a destination register does not change when we widen it.
26173
26174 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26175
26176 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26177 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26178 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26179 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26180 (avr-*-rtems*): Likewise.
26181 (bfin*-rtems*): Likewise.
26182 (moxie-*-rtems*): Likewise.
26183 (h8300-*-rtems*): Likewise.
26184 (i[34567]86-*-rtems*): Likewise.
26185 (lm32-*-rtems*): Likewise.
26186 (m32r-*-rtems*): Likewise.
26187 (m68k-*-rtems*): Likewise.
26188 (microblaze*-*-rtems*): Likewise.
26189 (mips*-*-rtems*): Likewise.
26190 (powerpc-*-rtems*): Likewise.
26191 (sh-*-rtems*): Likewise.
26192 (sparc-*-rtems*): Likewise.
26193 (sparc64-*-rtems*): Likewise.
26194 (v850-*-rtems*): Likewise.
26195 (m32c-*-rtems*): Likewise.
26196
26197 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26198
26199 PR rtl-optimization/59511
26200 * ira.c (ira_init_register_move_cost): Use memory costs for some
26201 cases of register move cost calculations.
26202 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26203 instead of BB frequency.
26204 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26205 * lra-assigns.c (find_hard_regno_for): Ditto.
26206
26207 2014-01-15 Richard Biener <rguenther@suse.de>
26208
26209 PR tree-optimization/59822
26210 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26211 (vectorizable_load): Use it to hoist defs of uses of invariant
26212 loads out of the loop.
26213
26214 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26215 Kugan Vivekanandarajah <kuganv@linaro.org>
26216
26217 PR target/59695
26218 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26219 truncation.
26220
26221 2014-01-15 Richard Biener <rguenther@suse.de>
26222
26223 PR rtl-optimization/59802
26224 * lcm.c (compute_available): Use inverted postorder to seed
26225 the initial worklist.
26226
26227 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26228
26229 PR target/59803
26230 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26231 ADDR_REGS for invalid symrefs in non-PIC code.
26232
26233 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26234
26235 PR other/58712
26236 * builtins.c (determine_block_size): Initialize *probable_max_size
26237 even if len_rtx is CONST_INT.
26238
26239 2014-01-14 Andrew Pinski <apinski@cavium.com>
26240
26241 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26242 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26243 (cortexa53_tunings): Likewise.
26244 (aarch64_sched_issue_rate): New function.
26245 (TARGET_SCHED_ISSUE_RATE): Define.
26246
26247 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26248
26249 * ira-costs.c (find_costs_and_classes): Add missed
26250 ira_init_register_move_cost_if_necessary.
26251
26252 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26253
26254 PR target/59787
26255 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26256
26257 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26258
26259 PR target/59794
26260 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26261 to indicate if type is used for function return value. Warn ABI
26262 change if the vector mode isn't available for function return value.
26263 (ix86_function_arg_advance): Pass false to type_natural_mode.
26264 (ix86_function_arg): Likewise.
26265 (ix86_gimplify_va_arg): Likewise.
26266 (function_arg_32): Don't warn ABI change.
26267 (ix86_function_value): Pass true to type_natural_mode.
26268 (ix86_return_in_memory): Likewise.
26269 (ix86_struct_value_rtx): Removed.
26270 (TARGET_STRUCT_VALUE_RTX): Likewise.
26271
26272 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26273
26274 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26275 converting a conditional jump into a conditional return.
26276
26277 2014-01-14 Richard Biener <rguenther@suse.de>
26278
26279 PR tree-optimization/58921
26280 PR tree-optimization/59006
26281 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26282 hoisting invariant stmts.
26283 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26284 invariant loads on the preheader edge if possible.
26285
26286 2014-01-14 Joey Ye <joey.ye@arm.com>
26287
26288 * doc/plugin.texi (Building GCC plugins): Update to C++.
26289
26290 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26291
26292 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26293 (_mm_rcp28_round_ss): Ditto.
26294 (_mm_rsqrt28_round_sd): Ditto.
26295 (_mm_rsqrt28_round_ss): Ditto.
26296 (_mm_rcp28_sd): Ditto.
26297 (_mm_rcp28_ss): Ditto.
26298 (_mm_rsqrt28_sd): Ditto.
26299 (_mm_rsqrt28_ss): Ditto.
26300 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26301 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26302 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26303 (IX86_BUILTIN_RCP28SD): Ditto.
26304 (IX86_BUILTIN_RCP28SS): Ditto.
26305 (IX86_BUILTIN_RSQRT28SD): Ditto.
26306 (IX86_BUILTIN_RSQRT28SS): Ditto.
26307 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26308 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26309 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26310 (ix86_expand_special_args_builtin): Expand new FTYPE.
26311 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26312 (srcp14<mode>): Make insn unary.
26313 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26314 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26315 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26316 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26317 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26318 Fix rounding: make it SAE only.
26319 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26320 Ditto.
26321 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26322 Ditto.
26323 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26324 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26325 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26326 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26327 (round_saeonly_mask_scalar_operand4): Ditto.
26328 (round_saeonly_mask_scalar_op3): Ditto.
26329 (round_saeonly_mask_scalar_op4): Ditto.
26330
26331 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26332
26333 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26334 Implement -maltivec=be for vec_insert and vec_extract.
26335
26336 2014-01-10 DJ Delorie <dj@redhat.com>
26337
26338 * config/msp430/msp430.md (call_internal): Don't allow memory
26339 references with SP as the base register.
26340 (call_value_internal): Likewise.
26341 * config/msp430/constraints.md (Yc): New. For memory references
26342 that don't use SP as a base register.
26343
26344 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26345 "an integer without a # prefix"
26346 * config/msp430/msp430.md (epilogue_helper): Use it.
26347
26348 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26349
26350 PR target/59617
26351 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26352 AVX512F gather builtins.
26353 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26354 on gather decls with INTEGER_TYPE masktype.
26355 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26356 directly into the builtin rather than hoisting it before loop.
26357
26358 PR tree-optimization/59387
26359 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26360 (scev_const_prop): If folded_casts and type has undefined overflow,
26361 use force_gimple_operand instead of force_gimple_operand_gsi and
26362 for each added stmt if it is assign with
26363 arith_code_with_undefined_signed_overflow, call
26364 rewrite_to_defined_overflow.
26365 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26366 gimple-fold.h instead.
26367 (arith_code_with_undefined_signed_overflow,
26368 rewrite_to_defined_overflow): Moved to ...
26369 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26370 rewrite_to_defined_overflow): ... here. No longer static.
26371 Include gimplify-me.h.
26372 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26373 rewrite_to_defined_overflow): New prototypes.
26374
26375 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26376
26377 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26378
26379 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26380
26381 * builtins.c (get_object_alignment_2): Minor tweak.
26382 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26383
26384 2014-01-13 Christian Bruel <christian.bruel@st.com>
26385
26386 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26387 optimized non constant lengths.
26388
26389 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26390
26391 PR libgomp/59194
26392 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26393 load as __atomic_load_N if possible.
26394
26395 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26396
26397 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26398 target parameter.
26399 (rs6000_expand_builtin): Adjust call.
26400
26401 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26402
26403 PR target/58115
26404 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26405 * config/rs6000/rs6000.c: Include target-globals.h.
26406 (rs6000_set_current_function): Instead of doing target_reinit
26407 unconditionally, use save_target_globals_default_opts and
26408 restore_target_globals.
26409
26410 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26411 FPSCR.
26412 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26413 (rs6000_expand_builtin): Handle mffs and mtfsf.
26414 (rs6000_init_builtins): Define mffs and mtfsf.
26415 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26416 (rs6000_mffs): New pattern.
26417 (rs6000_mtfsf): New pattern.
26418
26419 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26420
26421 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26422 Start narrowing with START. Apply candidate-use pair
26423 and check overall cost in narrowing.
26424 (iv_ca_prune): Pass new argument.
26425
26426 2014-01-10 Jeff Law <law@redhat.com>
26427
26428 PR middle-end/59743
26429 * ree.c (combine_reaching_defs): Ensure the defining statement
26430 occurs before the extension when optimizing extensions with
26431 different source and destination hard registers.
26432
26433 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26434
26435 PR ipa/58585
26436 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26437 vtables into the type inheritance graph.
26438
26439 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26440
26441 PR rtl-optimization/59754
26442 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26443 modes in the REGNO != REGNO case.
26444
26445 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26446
26447 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26448
26449 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26450
26451 PR tree-optimization/59745
26452 * tree-predcom.c (tree_predictive_commoning_loop): Call
26453 free_affine_expand_cache if giving up because components is NULL.
26454
26455 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26456 GC in payload of target_globals struct instead of allocating them on
26457 the heap and the larger structs separately using GC.
26458 * target-globals.h (struct target_globals): Make regs, hard_regs,
26459 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26460 of GTY((skip)) and change type to void *.
26461 (reset_target_globals): Cast loads from those fields to corresponding
26462 types.
26463
26464 2014-01-10 Steve Ellcey <sellcey@mips.com>
26465
26466 PR plugins/59335
26467 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26468 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26469 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26470
26471 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26472
26473 PR target/59744
26474 * aarch64-modes.def (CC_Zmode): New flags mode.
26475 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26476 represents an equality.
26477 (aarch64_get_condition_code): Handle CC_Zmode.
26478 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26479
26480 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26481
26482 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26483 extraction in good case.
26484
26485 2014-01-10 Richard Biener <rguenther@suse.de>
26486
26487 PR tree-optimization/59374
26488 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26489 checking after SLP discovery. Mark stmts not participating
26490 in any SLP instance properly.
26491
26492 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26493
26494 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26495 when handling a SET rtx.
26496
26497 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26498
26499 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26500 (cortex-a57): Likewise.
26501 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26502
26503 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26504
26505 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26506 non-iwmmxt builtins.
26507
26508 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26509
26510 PR ipa/58252
26511 PR ipa/59226
26512 * ipa-devirt.c record_target_from_binfo): Take as argument
26513 stack of binfos and lookup matching one for virtual inheritance.
26514 (possible_polymorphic_call_targets_1): Update.
26515
26516 2014-01-10 Huacai Chen <chenhc@lemote.com>
26517
26518 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26519 kernel strings for Loongson-2E/2F/3A.
26520
26521 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26522
26523 PR middle-end/59670
26524 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26525 is_gimple_call before calling gimple_call_internal_p.
26526
26527 2014-01-09 Steve Ellcey <sellcey@mips.com>
26528
26529 * Makefile.in (TREE_FLOW_H): Remove.
26530 (TREE_SSA_H): Add file names from tree-flow.h.
26531 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26532 * tree.h: Remove tree-flow.h reference.
26533 * hash-table.h: Remove tree-flow.h reference.
26534 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26535 reference with tree-ssa-loop.h.
26536
26537 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26538
26539 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26540 default element-order behavior for -maltivec.
26541 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26542 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26543 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26544 when targeting big endian, at least for now.
26545 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26546
26547 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26548
26549 PR middle-end/47735
26550 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26551 var satisfies use_register_for_decl, just take into account type
26552 alignment, rather than decl alignment.
26553
26554 PR tree-optimization/59622
26555 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26556 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26557 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26558 Don't devirtualize for inplace at all. For targets.length () == 1,
26559 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26560
26561 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26562
26563 * config/i386/i386.md (cpu): Remove the unused btver1.
26564
26565 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26566
26567 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26568
26569 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26570
26571 PR target/58115
26572 * tree-core.h (struct target_globals): New forward declaration.
26573 (struct tree_target_option): Add globals field.
26574 * tree.h (TREE_TARGET_GLOBALS): Define.
26575 (prepare_target_option_nodes_for_pch): New prototype.
26576 * target-globals.h (struct target_globals): Define even if
26577 !SWITCHABLE_TARGET.
26578 * tree.c (prepare_target_option_node_for_pch,
26579 prepare_target_option_nodes_for_pch): New functions.
26580 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26581 * config/i386/i386.c: Include target-globals.h.
26582 (ix86_set_current_function): Instead of doing target_reinit
26583 unconditionally, use save_target_globals_default_opts and
26584 restore_target_globals.
26585
26586 2014-01-09 Richard Biener <rguenther@suse.de>
26587
26588 PR tree-optimization/59715
26589 * tree-cfg.h (split_critical_edges): Declare.
26590 * tree-cfg.c (split_critical_edges): Export.
26591 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26592
26593 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26594
26595 * cfgexpand.c (expand_stack_vars): Optionally disable
26596 asan stack protection.
26597 (expand_used_vars): Likewise.
26598 (partition_stack_vars): Likewise.
26599 * asan.c (asan_emit_stack_protection): Optionally disable
26600 after return stack usage.
26601 (instrument_derefs): Optionally disable memory access instrumentation.
26602 (instrument_builtin_call): Likewise.
26603 (instrument_strlen_call): Likewise.
26604 (asan_protect_global): Optionally disable global variables protection.
26605 * doc/invoke.texi: Added doc for new options.
26606 * params.def: Added new options.
26607 * params.h: Likewise.
26608
26609 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26610
26611 PR rtl-optimization/59724
26612 * ifcvt.c (cond_exec_process_if_block): Don't call
26613 flow_find_head_matching_sequence with 0 longest_match.
26614 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26615 non-active insns if !stop_after.
26616 (try_head_merge_bb): Revert 2014-01-07 changes.
26617
26618 2014-01-08 Jeff Law <law@redhat.com>
26619
26620 * ree.c (get_sub_rtx): New function, extracted from...
26621 (merge_def_and_ext): Here.
26622 (combine_reaching_defs): Use get_sub_rtx.
26623
26624 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26625
26626 * cgraph.h (varpool_variable_node): Do not choke on null node.
26627
26628 2014-01-08 Catherine Moore <clm@codesourcery.com>
26629
26630 * config/mips/mips.md (simple_return): Attempt to use JRC
26631 for microMIPS.
26632 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26633
26634 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26635
26636 PR rtl-optimization/59137
26637 * reorg.c (steal_delay_list_from_target): Call update_block for
26638 elided insns.
26639 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26640
26641 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26642
26643 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26644 two duplicate entries.
26645
26646 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26647
26648 Revert:
26649 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26650
26651 * config/mips/mips.c (mips_truncated_op_cost): New function.
26652 (mips_rtx_costs): Adjust test for BADDU.
26653 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26654
26655 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26656
26657 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26658 (*baddu_si): ...this new pattern.
26659
26660 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26661
26662 PR ipa/59722
26663 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26664
26665 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26666
26667 PR middle-end/57748
26668 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26669 inner_reference_p.
26670 (expand_expr, expand_normal): Adjust.
26671 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26672 inner_reference_p. Use inner_reference_p to expand inner references.
26673 (store_expr): Adjust.
26674 * cfgexpand.c (expand_call_stmt): Adjust.
26675
26676 2014-01-08 Rong Xu <xur@google.com>
26677
26678 * gcov-io.c (gcov_var): Move from gcov-io.h.
26679 (gcov_position): Ditto.
26680 (gcov_is_error): Ditto.
26681 (gcov_rewrite): Ditto.
26682 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26683 only part to libgcc/libgcov.h.
26684
26685 2014-01-08 Marek Polacek <polacek@redhat.com>
26686
26687 PR middle-end/59669
26688 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26689
26690 2014-01-08 Marek Polacek <polacek@redhat.com>
26691
26692 PR sanitizer/59667
26693 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26694
26695 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26696
26697 PR rtl-optimization/59649
26698 * stor-layout.c (get_mode_bounds): For BImode return
26699 0 and STORE_FLAG_VALUE.
26700
26701 2014-01-08 Richard Biener <rguenther@suse.de>
26702
26703 PR middle-end/59630
26704 * gimple.h (is_gimple_builtin_call): Remove.
26705 (gimple_builtin_call_types_compatible_p): New.
26706 (gimple_call_builtin_p): New overload.
26707 * gimple.c (is_gimple_builtin_call): Remove.
26708 (validate_call): Rename to ...
26709 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26710 check return types.
26711 (validate_type): New static function.
26712 (gimple_call_builtin_p): New overload and adjust.
26713 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26714 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26715 (gimple_fold_stmt_to_constant_1): Likewise.
26716 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26717
26718 2014-01-08 Richard Biener <rguenther@suse.de>
26719
26720 PR middle-end/59471
26721 * gimplify.c (gimplify_expr): Gimplify register-register type
26722 VIEW_CONVERT_EXPRs to separate stmts.
26723
26724 2014-01-07 Jeff Law <law@redhat.com>
26725
26726 PR middle-end/53623
26727 * ree.c (combine_set_extension): Handle case where source
26728 and destination registers in an extension insn are different.
26729 (combine_reaching_defs): Allow source and destination registers
26730 in extension to be different under limited circumstances.
26731 (add_removable_extension): Remove restriction that the
26732 source and destination registers in the extension are the same.
26733 (find_and_remove_re): Emit a copy from the extension's
26734 destination to its source after the defining insn if
26735 the source and destination registers are different.
26736
26737 PR middle-end/59285
26738 * ifcvt.c (merge_if_block): If we are merging a block with more than
26739 one successor with a block with no successors, remove any BARRIER
26740 after the second block.
26741
26742 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26743
26744 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26745
26746 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26747
26748 PR target/59652
26749 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26750 for 14-bit register offsets when INT14_OK_STRICT is false.
26751
26752 2014-01-07 Roland Stigge <stigge@antcom.de>
26753 Michael Meissner <meissner@linux.vnet.ibm.com>
26754
26755 PR 57386/target
26756 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26757 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26758
26759 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26760
26761 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26762 -mcpu.
26763
26764 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26765
26766 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26767 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26768 rtx is const0_rtx or not.
26769
26770 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26771
26772 PR target/58115
26773 * target-globals.c (save_target_globals): Remove this_fn_optab
26774 handling.
26775 * toplev.c: Include optabs.h.
26776 (target_reinit): Temporarily restore the global options if another
26777 set of options are in force.
26778
26779 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26780
26781 PR rtl-optimization/58668
26782 * cfgcleanup.c (flow_find_cross_jump): Don't count
26783 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26784 to determine what is counted.
26785 (flow_find_head_matching_sequence): Use active_insn_p to determine
26786 what is counted.
26787 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26788 counting change.
26789 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26790 determine what is counted.
26791
26792 PR tree-optimization/59643
26793 * tree-predcom.c (split_data_refs_to_components): If one dr is
26794 read and one write, determine_offset fails and the write isn't
26795 in the bad component, just put the read into the bad component.
26796
26797 2014-01-07 Mike Stump <mikestump@comcast.net>
26798 Jakub Jelinek <jakub@redhat.com>
26799
26800 PR pch/59436
26801 * tree-core.h (struct tree_optimization_option): Change optabs
26802 type from unsigned char * to void *.
26803 * optabs.c (init_tree_optimization_optabs): Adjust
26804 TREE_OPTIMIZATION_OPTABS initialization.
26805
26806 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26807
26808 PR target/59644
26809 * config/i386/i386.h (struct machine_function): Add
26810 no_drap_save_restore field.
26811 * config/i386/i386.c (ix86_save_reg): Use
26812 !cfun->machine->no_drap_save_restore instead of
26813 crtl->stack_realign_needed.
26814 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26815 this function clears frame_pointer_needed. Set
26816 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26817 and DRAP reg is needed.
26818
26819 2014-01-06 Marek Polacek <polacek@redhat.com>
26820
26821 PR c/57773
26822 * doc/implement-c.texi: Mention that other integer types are
26823 permitted as bit-field types in strictly conforming mode.
26824
26825 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26826
26827 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26828 is newly allocated.
26829
26830 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26831
26832 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26833
26834 2014-01-06 Martin Jambor <mjambor@suse.cz>
26835
26836 PR ipa/59008
26837 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26838 to int.
26839 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26840
26841 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26842
26843 PR debug/59350
26844 PR debug/59510
26845 * var-tracking.c (add_stores): Preserve the value of the source even if
26846 we don't record the store.
26847
26848 2014-01-06 Terry Guo <terry.guo@arm.com>
26849
26850 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26851
26852 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26853
26854 PR bootstrap/59541
26855 * config/darwin.c (darwin_function_section): Adjust return values to
26856 correspond to optimisation changes made in r206070.
26857
26858 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26859
26860 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26861 from prefetch_block tune setting.
26862 (nocona_cost): Correct size of prefetch block to 64.
26863
26864 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26865
26866 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26867 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26868 used to save the static chain register in the computation of the offset
26869 from which the FP registers need to be restored.
26870
26871 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26872
26873 PR tree-optimization/59519
26874 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26875 ICE if get_current_def (current_new_name) is already non-NULL, as long
26876 as it is a phi result of some other phi in *new_exit_bb that has
26877 the same argument.
26878
26879 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26880 or vmovdqu* for misaligned_operand.
26881 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26882 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26883 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26884 aligned_mem for AVX512F masked aligned load and store builtins and for
26885 non-temporal moves.
26886
26887 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26888
26889 PR tree-optimization/59651
26890 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26891 Address range for negative step should be added by TYPE_SIZE_UNIT.
26892
26893 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26894
26895 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26896 overlapping registers also for registers other than the stack pointer.
26897
26898 2014-01-03 Marek Polacek <polacek@redhat.com>
26899
26900 PR other/59661
26901 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26902 __builtin_FILE.
26903
26904 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26905
26906 PR target/59625
26907 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26908 asm goto as jump.
26909
26910 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26911 (push splitter): Use <P:MODE_SIZE> instead of
26912 GET_MODE_SIZE (<P:MODE>mode).
26913 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26914 (mov -1, reg peephole2): Likewise.
26915 * config/i386/sse.md (*mov<mode>_internal,
26916 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26917 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26918 *<code><mode>3, *andnot<mode>3<mask_name>,
26919 <mask_codefor><code><mode>3<mask_name>): Likewise.
26920 * config/i386/subst.md (mask_mode512bit_condition,
26921 sd_mask_mode512bit_condition): Likewise.
26922
26923 2014-01-02 Xinliang David Li <davidxl@google.com>
26924
26925 PR tree-optimization/59303
26926 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26927 (dump_predicates): Better output format.
26928 (pred_equal_p): New function.
26929 (is_neq_relop_p): Ditto.
26930 (is_neq_zero_form_p): Ditto.
26931 (pred_expr_equal_p): Ditto.
26932 (pred_neg_p): Ditto.
26933 (simplify_pred): Ditto.
26934 (simplify_preds_2): Ditto.
26935 (simplify_preds_3): Ditto.
26936 (simplify_preds_4): Ditto.
26937 (simplify_preds): Ditto.
26938 (push_pred): Ditto.
26939 (push_to_worklist): Ditto.
26940 (get_pred_info_from_cmp): Ditto.
26941 (is_degenerated_phi): Ditto.
26942 (normalize_one_pred_1): Ditto.
26943 (normalize_one_pred): Ditto.
26944 (normalize_one_pred_chain): Ditto.
26945 (normalize_preds): Ditto.
26946 (normalize_cond_1): Remove function.
26947 (normalize_cond): Ditto.
26948 (is_gcond_subset_of): Ditto.
26949 (is_subset_of_any): Ditto.
26950 (is_or_set_subset_of): Ditto.
26951 (is_and_set_subset_of): Ditto.
26952 (is_norm_cond_subset_of): Ditto.
26953 (pred_chain_length_cmp): Ditto.
26954 (convert_control_dep_chain_into_preds): Type change.
26955 (find_predicates): Ditto.
26956 (find_def_preds): Ditto.
26957 (destroy_predicates_vecs): Ditto.
26958 (find_matching_predicates_in_rest_chains): Ditto.
26959 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26960 (is_pred_expr_subset): Ditto.
26961 (is_pred_chain_subset_of): Ditto.
26962 (is_included_in): Ditto.
26963 (is_superset_of): Ditto.
26964
26965 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26966
26967 Update copyright years.
26968
26969 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26970
26971 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26972 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26973 config/arc/arc.md, config/arc/arc.opt,
26974 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26975 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26976 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26977 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26978 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26979 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26980 vtable-verify.c, vtable-verify.h: Use the standard form for the
26981 copyright notice.
26982
26983 2014-01-02 Tobias Burnus <burnus@net-b.de>
26984
26985 * gcc.c (process_command): Update copyright notice dates.
26986 * gcov-dump.c: Ditto.
26987 * gcov.c: Ditto.
26988 * doc/cpp.texi: Bump @copying's copyright year.
26989 * doc/cppinternals.texi: Ditto.
26990 * doc/gcc.texi: Ditto.
26991 * doc/gccint.texi: Ditto.
26992 * doc/gcov.texi: Ditto.
26993 * doc/install.texi: Ditto.
26994 * doc/invoke.texi: Ditto.
26995
26996 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26997
26998 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26999
27000 2014-01-01 Jakub Jelinek <jakub@redhat.com>
27001
27002 * config/i386/sse.md (*mov<mode>_internal): Guard
27003 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
27004
27005 PR rtl-optimization/59647
27006 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
27007 new_rtx into UNSIGNED_FLOAT rtxes.
27008 \f
27009 Copyright (C) 2014 Free Software Foundation, Inc.
27010
27011 Copying and distribution of this file, with or without modification,
27012 are permitted in any medium without royalty provided the copyright
27013 notice and this notice are preserved.