Add JUMP_LABEL_AS_INSN
[gcc.git] / gcc / ChangeLog
1 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2
3 * rtl.h (JUMP_LABEL_AS_INSN): New.
4
5 2014-08-27 David Malcolm <dmalcolm@redhat.com>
6
7 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
8 rtx_expr_list **.
9 (alloc_EXPR_LIST): Strengthen return type from rtx to
10 rtx_expr_list *.
11 (remove_free_EXPR_LIST_node): Likewise for param.
12 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
13 from rtx to rtx_expr_list *.
14 * sched-int.h (struct deps_desc): Strengthen fields
15 "pending_read_mems" and "pending_write_mems" from rtx to
16 rtx_expr_list *.
17
18 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
19 rtx to rtx_expr_list *.
20 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
21 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
22 rtx_expr_list **.
23 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
24 from rtx to rtx_expr_list *.
25 * loop-iv.c (simplify_using_initial_values): Strengthen local
26 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
27 "pnote_next" from rtx * to rtx_expr_list **.
28 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
29 param "exprp" from rtx * to rtx_expr_list **.
30 (add_insn_mem_dependence): Strengthen local "mem_list" from
31 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
32 to rtx_expr_list *.
33 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
34 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
35 param "old_mems_p" from rtx * to rtx_expr_list **.
36 * var-tracking.c (struct adjust_mem_data): Strengthen field
37 "side_effects" from rtx to rtx_expr_list *.
38 (adjust_insn): Replace NULL_RTX with NULL when assigning to
39 rtx_expr_list *.
40 (prepare_call_arguments): Likewise.
41
42 2014-08-27 David Malcolm <dmalcolm@redhat.com>
43
44 * function.h (struct rtl_data): Strengthen field
45 "x_stack_slot_list" from rtx to rtx_expr_list *.
46
47 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
48 when assigning to stack_slot_list.
49
50 2014-08-27 David Malcolm <dmalcolm@redhat.com>
51
52 * function.h (struct rtl_data): Strengthen field
53 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
54 * rtl.h (remove_node_from_expr_list): Strengthen second param from
55 rtx * to rtx_expr_list **.
56
57 * cfgbuild.c (make_edges): In loop over
58 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
59 rtx_expr_list *, and use methods of the latter class to clarify
60 the code.
61 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
62 rtx_expr_list *, and use methods of the latter class to clarify
63 the code.
64 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
65 * reload1.c (set_initial_label_offsets): Likewise for local "x".
66 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
67 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
68 to rtx_expr_list *. Use methods of the latter class to clarify
69 the code.
70
71 2014-08-27 David Malcolm <dmalcolm@redhat.com>
72
73 * function.h (struct expr_status): Strengthen field
74 "x_forced_labels" from rtx to rtx_expr_list *.
75
76 * cfgbuild.c (make_edges): Split local "x" into two locals,
77 strengthening one from rtx to rtx_expr_list *, and using methods
78 of said class.
79 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
80 loop over forced_labels, introduce strengthen it from rtx to
81 rtx_expr_list *, using methods to clarify the code.
82 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
83 to rtx_expr_list *, using methods of said class to clarify the
84 code.
85 * reload1.c (set_initial_label_offsets): Split local "x" into two
86 per-loop variables, strengthening the first from rtx to
87 rtx_expr_list * and using methods.
88
89 2014-08-27 David Malcolm <dmalcolm@redhat.com>
90
91 * coretypes.h (class rtx_expr_list): Add forward declaration.
92 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
93 * gengenrtl.c (special_rtx): Add EXPR_LIST.
94 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
95 invariant: GET_CODE (X) == EXPR_LIST.
96 (is_a_helper <rtx_expr_list *>::test): New.
97 (rtx_expr_list::next): New.
98 (rtx_expr_list::element): New.
99 (gen_rtx_EXPR_LIST): New.
100
101 2014-08-27 David Malcolm <dmalcolm@redhat.com>
102
103 * varasm.c (mark_constants): Convert a GET_CODE check into a
104 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
105 Use methods of rtx_sequence to clarify the code.
106
107 2014-08-27 David Malcolm <dmalcolm@redhat.com>
108
109 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
110 local "seq" via a checked cast, and use methods of rtx_sequence
111 to simplify the code.
112
113 2014-08-27 David Malcolm <dmalcolm@redhat.com>
114
115 * resource.c (mark_referenced_resources): Strengthen local
116 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
117 using methods of rtx_sequence to clarify the code.
118 (find_dead_or_set_registers): Within the switch statement, convert
119 a GET_CODE check to a dyn_cast, introducing local "seq". Within
120 the JUMP_P handling, introduce another local "seq", adding a
121 checked cast to rtx_sequence *. In both cases, use methods of
122 rtx_sequence to clarify the code.
123 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
124 via a checked cast, and use methods of rtx_sequence to simplify
125 the code.
126
127 2014-08-27 David Malcolm <dmalcolm@redhat.com>
128
129 * reorg.c (redundant_insn): In two places in the function, replace
130 a check of GET_CODE with a dyn_cast, introducing local "seq", and
131 usings methods of rtx_sequence to clarify the code.
132
133 2014-08-27 David Malcolm <dmalcolm@redhat.com>
134
135 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
136 local "seq" with a checked cast, and use methods of rtx_sequence
137 to clarify the code.
138
139 2014-08-27 David Malcolm <dmalcolm@redhat.com>
140
141 * function.c (contains): Introduce local "seq" for PATTERN (insn),
142 with a checked cast, in the region for where we know it's a
143 SEQUENCE. Use methods of rtx_sequence.
144
145 2014-08-27 David Malcolm <dmalcolm@redhat.com>
146
147 * final.c (get_attr_length_1): Replace GET_CODE check with a
148 dyn_cast, introducing local "seq" and the use of methods of
149 rtx_sequence.
150 (shorten_branches): Likewise, introducing local "body_seq".
151 Strengthen local "inner_insn" from rtx to rtx_insn *.
152 (reemit_insn_block_notes): Replace GET_CODE check with a
153 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
154 Use methods of rtx_sequence.
155 (final_scan_insn): Likewise, introducing local "seq" for when
156 "body" is known to be a SEQUENCE, using its methods.
157
158 2014-08-27 David Malcolm <dmalcolm@redhat.com>
159
160 * except.c (can_throw_external): Strengthen local "seq" from rtx
161 to rtx_sequence *. Use methods of rtx_sequence.
162 (insn_nothrow_p): Likewise.
163
164 2014-08-27 David Malcolm <dmalcolm@redhat.com>
165
166 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
167 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
168 Use methods of rtx_sequence.
169 (scan_trace): Likewise for local "pat".
170
171 2014-08-27 David Malcolm <dmalcolm@redhat.com>
172
173 * coretypes.h (class rtx_sequence): Add forward declaration.
174 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
175 invariant: GET_CODE (X) == SEQUENCE.
176 (is_a_helper <rtx_sequence *>::test): New.
177 (is_a_helper <const rtx_sequence *>::test): New.
178 (rtx_sequence::len): New.
179 (rtx_sequence::element): New.
180 (rtx_sequence::insn): New.
181
182 2014-08-27 David Malcolm <dmalcolm@redhat.com>
183
184 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
185 rtx_insn_list **.
186 (alloc_INSN_LIST): Strengthen return type from rtx to
187 rtx_insn_list *.
188 (copy_INSN_LIST): Likewise for return type and param.
189 (concat_INSN_LIST): Likewise for both params and return type.
190 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
191 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
192 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
193 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
194
195 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
196 "implicit_sets", "control_uses", "clobbers" from rtx to
197 rtx_insn_list *.
198 (struct deps_desc): Likewise for fields "pending_read_insns",
199 "pending_write_insns", "pending_jump_insns",
200 "last_pending_memory_flush", "last_function_call",
201 "last_function_call_may_noreturn", "sched_before_next_call",
202 "sched_before_next_jump".
203 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
204 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
205
206 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
207 from rtx to rtx_insn_list *.
208 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
209 rtx_insn_list *.
210
211 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
212 to rtx_insn_list **.
213 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
214 rtx_insn_list *.
215 (queue_insn): Likewise for local "link".
216 (struct haifa_saved_data): Strengthen field "insn_queue" from
217 rtx * to rtx_insn_list **.
218 (save_backtrack_point): Update allocation of save->insn_queue to
219 reflect the strengthening of elements from rtx to rtx_insn_list *.
220 (queue_to_ready): Strengthen local "link" from rtx to
221 rtx_insn_list *; use methods "next" and "insn" when traversing the
222 list.
223 (early_queue_to_ready): Likewise for locals "link", "next_link",
224 "prev_link".
225 (schedule_block): Update allocation of insn_queue to reflect the
226 strengthening of elements from rtx to rtx_insn_list *. Strengthen
227 local "link" from rtx to rtx_insn_list *, and use methods when
228 working it.
229 (add_to_speculative_block): Strengthen locals "twins" and
230 "next_node" from rtx to rtx_insn_list *, and use methods when
231 working with them. Strengthen local "twin" from rtx to
232 rtx_insn *, eliminating a checked cast.
233 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
234 from rtx to rtx_insn_list *, and use methods when working with
235 them.
236
237 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
238 from rtx to rtx_insn_list *, adding a checked cast.
239 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
240 rtx_insn_list **.
241 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
242 "newlink" from rtx to rtx_insn_list *. Strengthen local
243 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
244 from rtx to rtx_insn *.
245 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
246 from rtx to rtx_insn_list *. Use methods of the latter class.
247 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
248 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
249 (remove_free_INSN_LIST_node): Strengthen return type and local
250 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
251 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
252 rtx_insn_list *, using "insn" method.
253
254 * sched-deps.c (add_dependence_list): Strengthen param "list"
255 from rtx to rtx_insn_list *, and use methods when working with it.
256 (add_dependence_list_and_free): Strengthen param "listp" from
257 rtx * to rtx_insn_list **.
258 (remove_from_dependence_list): Strenghten param "listp" from rtx *
259 to rtx_insn_list **, and use methods when working with *listp.
260 (remove_from_both_dependence_lists): Strengthen param "listp" from
261 rtx * to rtx_insn_list **
262 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
263 to rtx_insn_list **. Eliminate local "link", in favor of two new
264 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
265 respectively.
266 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
267 by introducing local "cond_deps".
268 (remove_from_deps): Strengthen param "insn" from rtx to
269 rtx_insn *.
270
271 * sched-rgn.c (concat_insn_mem_list): Strengthen param
272 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
273 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
274 Use methods of rtx_insn_list.
275
276 * store-motion.c (struct st_expr): Strengthen fields
277 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
278 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
279 rtx_insn_list *.
280 (find_moveable_store): Split out "tmp" into multiple more-tightly
281 scoped locals. Use methods of rtx_insn_list *.
282 (compute_store_table): Strengthen local "tmp" from rtx to
283 rtx_insn *. Use methods of rtx_insn_list *.
284
285 2014-08-27 David Malcolm <dmalcolm@redhat.com>
286
287 * coretypes.h (class rtx_insn_list): Add forward declaration.
288 * rtl.h (class rtx_insn_list): New subclass of rtx_def
289 (is_a_helper <rtx_insn_list *>::test): New.
290 (rtx_insn_list::next): New.
291 (rtx_insn_list::insn): New.
292 (gen_rtx_INSN_LIST): Add prototype.
293 * emit-rtl.c (gen_rtx_INSN_LIST): New.
294 * gengenrtl.c (special_rtx): Add INSN_LIST.
295
296 2014-08-27 David Malcolm <dmalcolm@redhat.com>
297
298 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
299 "prev" from rtx to rtx_insn *.
300
301 2014-08-27 David Malcolm <dmalcolm@redhat.com>
302
303 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
304 functions. Require merely an rtx for now, not an rtx_insn *.
305 (BLOCK_FOR_INSN): Likewise.
306 (INSN_LOCATION): Likewise.
307 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
308
309 2014-08-27 David Malcolm <dmalcolm@redhat.com>
310
311 * rtl.h (PATTERN): Convert this macro into a pair of inline
312 functions, for now, requiring const_rtx and rtx.
313
314 2014-08-27 David Malcolm <dmalcolm@redhat.com>
315
316 * target.def (unwind_emit): Strengthen param "insn" from rtx to
317 rtx_insn *.
318 (final_postscan_insn): Likewise.
319 (adjust_cost): Likewise.
320 (adjust_priority): Likewise.
321 (variable_issue): Likewise.
322 (macro_fusion_pair_p): Likewise.
323 (dfa_post_cycle_insn): Likewise.
324 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
325 (first_cycle_multipass_issue): Likewise.
326 (dfa_new_cycle): Likewise.
327 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
328 (speculate_insn): Likewise for param "insn".
329 (gen_spec_check): Likewise for params "insn" and "label".
330 (get_insn_spec_ds): Likewise for param "insn".
331 (get_insn_checked_ds): Likewise.
332 (dispatch_do): Likewise.
333 (dispatch): Likewise.
334 (cannot_copy_insn_p): Likewise.
335 (invalid_within_doloop): Likewise.
336 (legitimate_combined_insn): Likewise.
337 (needed): Likewise.
338 (after): Likewise.
339
340 * doc/tm.texi: Automatically updated to reflect changes to
341 target.def.
342
343 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
344 working with insn.
345 (schedule_block): Likewise.
346 (sched_init): Likewise.
347 (sched_speculate_insn): Strengthen param "insn" from rtx to
348 rtx_insn *.
349 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
350 working with insn.
351 * hooks.c (hook_bool_rtx_true): Rename to...
352 hook_bool_rtx_insn_true): ...this, and strengthen first param from
353 rtx to rtx_insn *.
354 (hook_constcharptr_const_rtx_null): Rename to...
355 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
356 first param from const_rtx to const rtx_insn *.
357 (hook_bool_rtx_int_false): Rename to...
358 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
359 param from rtx to rtx_insn *.
360 (hook_void_rtx_int): Rename to...
361 (hook_void_rtx_insn_int): ...this, and strengthen first param from
362 rtx to rtx_insn *.
363
364 * hooks.h (hook_bool_rtx_true): Rename to...
365 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
366 rtx to rtx_insn *.
367 (hook_bool_rtx_int_false): Rename to...
368 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
369 param from rtx to rtx_insn *.
370 (hook_void_rtx_int): Rename to...
371 (hook_void_rtx_insn_int): ...this, and strengthen first param from
372 rtx to rtx_insn *.
373 (hook_constcharptr_const_rtx_null): Rename to...
374 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
375 first param from const_rtx to const rtx_insn *.
376
377 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
378 and local "prev" from rtx to rtx_insn *.
379
380 * sched-int.h (sched_speculate_insn): Strengthen first param from
381 rtx to rtx_insn *.
382
383 * sel-sched.c (create_speculation_check): Likewise for local "label".
384 * targhooks.c (default_invalid_within_doloop): Strengthen param
385 "insn" from const_rtx to const rtx_insn *.
386 * targhooks.h (default_invalid_within_doloop): Strengthen param
387 from const_rtx to const rtx_insn *.
388
389 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
390 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
391
392 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
393 "insn".
394 (arc_invalid_within_doloop): Likewise, with const.
395
396 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
397 (arm_cannot_copy_insn_p): Likewise for param "insn".
398 (arm_unwind_emit): Likewise.
399
400 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
401 "dep_insn".
402
403 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
404 (c6x_variable_issue): Likewise. Removed now-redundant checked
405 cast.
406 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
407
408 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
409 Likewise for param "insn".
410 (epiphany_mode_after): Likewise.
411 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
412 params "insn", "dep_insn".
413 (epiphany_mode_needed): Likewise for param "insn".
414 (epiphany_mode_after): Likewise.
415
416 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
417 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
418 (ix86_avx_u128_mode_needed): Likewise.
419 (ix86_i387_mode_needed): Likewise.
420 (ix86_mode_needed): Likewise.
421 (ix86_avx_u128_mode_after): Likewise.
422 (ix86_mode_after): Likewise.
423 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
424 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
425 (ix86_adjust_priority): Likewise for param "insn".
426 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
427 (do_dispatch): Likewise.
428 (has_dispatch): Likewise.
429 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
430
431 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
432 reflect renaming of default hook implementation from
433 hook_constcharptr_const_rtx_null to
434 hook_constcharptr_const_rtx_insn_null.
435 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
436 rtx to rtx_insn *.
437 (ia64_variable_issue): Likewise for param "insn".
438 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
439 (ia64_dfa_new_cycle): Likewise.
440 (ia64_get_insn_spec_ds): Likewise.
441 (ia64_get_insn_checked_ds): Likewise.
442 (ia64_speculate_insn): Likewise.
443 (ia64_gen_spec_check): Likewise for params "insn", "label".
444 (ia64_asm_unwind_emit): Likewise for param "insn".
445
446 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
447
448 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
449 "insn", "def_insn".
450 (m68k_sched_variable_issue): Likewise for param "insn".
451
452 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
453 "def_insn".
454
455 * config/microblaze/microblaze.c (microblaze_adjust_cost):
456 Likewise for params "insn", "dep".
457
458 * config/mips/mips.c (mips_adjust_cost): Likewise.
459 (mips_variable_issue): Likewise for param "insn".
460 (mips_final_postscan_insn): Likewise.
461
462 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
463 for params "insn", "dep".
464
465 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
466 "dep_insn".
467 (pa_adjust_priority): Likewise for param "insn".
468
469 * config/picochip/picochip.c (picochip_sched_adjust_cost):
470 Likewise for params "insn", "dep_insn".
471
472 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
473 param "insn".
474 (rs6000_variable_issue): Likewise.
475 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
476 (rs6000_debug_adjust_cost): Likewise.
477 (rs6000_adjust_priority): Likewise for param "insn".
478 (rs6000_use_sched_lookahead_guard): Likewise.
479 (get_next_active_insn): Likewise for return type and both params.
480 (redefine_groups): Likewise for params "prev_head_insn", "tail"
481 and locals "insn", "next_insn".
482 (pad_groups): Likewise.
483
484 * config/s390/s390.c (s390_adjust_priority): Likewise for param
485 "insn".
486 (s390_cannot_copy_insn_p): Likewise.
487 (s390_sched_variable_issue): Likewise for third param, eliminating
488 checked cast.
489 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
490 default hook implementation from hook_constcharptr_const_rtx_null
491 to hook_constcharptr_const_rtx_insn_null.
492
493 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
494 from rtx to rtx_insn *.
495 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
496 (sh_variable_issue): Likewise for param "insn".
497 (sh_dfa_new_cycle): Likewise.
498 (sh_mode_needed): Likewise.
499 (sh_mode_after): Likewise.
500
501 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
502 params "insn", "dep_insn".
503 (hypersparc_adjust_cost): Likewise.
504 (sparc_adjust_cost): Likewise.
505
506 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
507 param, eliminated checked cast.
508 (spu_sched_adjust_cost): Likewise for first and third params.
509
510 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
511 params "insn" and "dep_insn" from rtx to rtx_insn *.
512
513 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
514
515 2014-08-27 David Malcolm <dmalcolm@redhat.com>
516
517 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
518 (set_is_load_p): ...this, updating to work on a SET pattern rather
519 than an insn.
520 (is_store_insn): Rename to...
521 (set_is_store_p): ...this, updating to work on a SET pattern
522 rather than an insn.
523 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
524 top of function to where it is needed. Rewrite the bogus
525 condition that checks for "insn" and "dep" being PARALLEL to
526 instead use single_set, introducing locals "insn_set" and
527 "dep_set". Given that we only ever returned "cost" for a non-pair
528 of SETs, bail out early if we don't have a pair of SET.
529 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
530 use the new locals "insn_set" and "dep_set", and update calls to
531 is_load_insn and is_store_insn to be calls to set_is_load_p and
532 set_is_store_p.
533
534 2014-08-27 Guozhi Wei <carrot@google.com>
535
536 PR target/62262
537 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
538 amount before using it.
539
540 2014-08-27 Richard Biener <rguenther@suse.de>
541
542 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
543 get_maxval_strlen inside a more useful API.
544 (gimple_fold_builtin_with_strlen): Remove and fold into ...
545 (gimple_fold_builtin): ... caller.
546 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
547 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
548 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
549 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
550 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
551 gimple_fold_builtin_sprintf): Adjust to compute maxval
552 themselves.
553
554 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
555
556 PR other/62248
557 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
558
559 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
560 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
561 Anna Tikhonova <anna.tikhonova@intel.com>
562 Ilya Tocar <ilya.tocar@intel.com>
563 Andrey Turetskiy <andrey.turetskiy@intel.com>
564 Ilya Verbin <ilya.verbin@intel.com>
565 Kirill Yukhin <kirill.yukhin@intel.com>
566 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
567
568 * config/i386/sse.md
569 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
570 Use `concat_tg_mode' attribute to determine asm register size.
571
572 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
573 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
574 Anna Tikhonova <anna.tikhonova@intel.com>
575 Ilya Tocar <ilya.tocar@intel.com>
576 Andrey Turetskiy <andrey.turetskiy@intel.com>
577 Ilya Verbin <ilya.verbin@intel.com>
578 Kirill Yukhin <kirill.yukhin@intel.com>
579 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
580
581 * config/i386/sse.md
582 (define_mode_iterator VI48_AVX512VL): New.
583 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
584 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
585 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
586 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
587 with VI1): Change mode iterator.
588 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
589 with VI_ULOADSTORE_BW_AVX512VL): New.
590 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
591 with VI_ULOADSTORE_F_AVX512VL): Ditto.
592 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
593 with VI1): Change mode iterator.
594 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
595 with VI_ULOADSTORE_BW_AVX512VL): New.
596 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
597 with VI_ULOADSTORE_F_AVX512VL): Ditto.
598 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
599 with VI1): Change mode iterator.
600 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
601 with VI_ULOADSTORE_BW_AVX512VL): New.
602 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
603 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
604 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
605 (define_insn "<avx512>_storedqu<mode>_mask" with
606 VI48_AVX512VL): New.
607 (define_insn "<avx512>_storedqu<mode>_mask" with
608 VI12_AVX512VL): Ditto.
609
610 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
611 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
612 Anna Tikhonova <anna.tikhonova@intel.com>
613 Ilya Tocar <ilya.tocar@intel.com>
614 Andrey Turetskiy <andrey.turetskiy@intel.com>
615 Ilya Verbin <ilya.verbin@intel.com>
616 Kirill Yukhin <kirill.yukhin@intel.com>
617 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
618
619 * config/i386/sse.md
620 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
621 (define_mode_iterator VI48_AVX512BW): New.
622 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
623 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
624 with VI48_AVX2_48_AVX512F): New.
625 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
626 with VI2_AVX512VL): Ditto.
627
628 2014-08-27 Richard Biener <rguenther@suse.de>
629
630 PR middle-end/62239
631 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
632 (fold_builtin_3): Do not fold strcat_chk here.
633 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
634 from builtins.c.
635 (gimple_fold_builtin): Fold strcat_chk here.
636
637 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
638
639 * dwarf2out.h (dwarf2out_decl): Remove prototype.
640 * dwarf2out.c (dwarf2out_decl): Make static.
641
642 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
643
644 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
645
646 2014-08-26 David Malcolm <dmalcolm@redhat.com>
647
648 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
649 from rtx to rtx_insn *.
650 (cselib_lookup_from_insn): Likewise for final param.
651 (cselib_subst_to_values_from_insn): Likewise.
652 (cselib_add_permanent_equiv): Likewise.
653
654 * cselib.c (cselib_current_insn): Likewise for this variable.
655 (cselib_subst_to_values_from_insn): Likewise for param "insn".
656 (cselib_lookup_from_insn): Likewise.
657 (cselib_add_permanent_equiv): Likewise for param "insn" and local
658 "save_cselib_current_insn".
659 (cselib_process_insn): Replace use of NULL_RTX with NULL.
660
661 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
662 from rtx to rtx_insn *.
663
664 2014-08-26 David Malcolm <dmalcolm@redhat.com>
665
666 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
667 rtx_insn *.
668
669 2014-08-26 David Malcolm <dmalcolm@redhat.com>
670
671 * df.h (df_dump_insn_problem_function): Strengthen first param of
672 this callback from const_rtx to const rtx_insn *.
673 (struct df_insn_info): Strengthen field "insn" from rtx to
674 rtx_insn *.
675 (DF_REF_INSN): Eliminate this function, reinstating the older
676 macro definition.
677 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
678 (df_reg_defined): Likewise.
679 (df_find_use): Likewise.
680 (df_reg_used): Likewise.
681 (df_dump_insn_top): Strengthen param 1 from const_rtx to
682 const rtx_insn *.
683 (df_dump_insn_bottom): Likewise.
684 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
685 (df_insn_debug_regno): Likewise.
686 (debug_df_insn): Likewise.
687 (df_rd_simulate_one_insn): Likewise for param 2.
688 (df_word_lr_simulate_defs): Likewise for param 1.
689 (df_word_lr_simulate_uses): Likewise.
690 (df_md_simulate_one_insn): Likewise for param 2.
691 (df_simulate_find_noclobber_defs): Likewise for param 1.
692 (df_simulate_find_defs): Likewise.
693 (df_simulate_defs): Likewise.
694 (df_simulate_uses): Likewise.
695 (df_simulate_one_insn_backwards): Likewise for param 2.
696 (df_simulate_one_insn_forwards): Likewise.
697 (df_uses_create): Likewise for param 2.
698 (df_insn_create_insn_record): Likewise for param 1.
699 (df_insn_delete): Likewise.
700 (df_insn_rescan): Likewise.
701 (df_insn_rescan_debug_internal): Likewise.
702 (df_insn_change_bb): Likewise.
703 (df_notes_rescan): Likewise.
704 * rtl.h (remove_death): Likewise for param 2.
705 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
706 const rtx_insn *.
707 * sched-int.h (reemit_notes): Strengthen param from rtx to
708 rtx_insn *.
709 * valtrack.h (propagate_for_debug): Likewise for param 1.
710
711 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
712 local "tmp_rtx" from const_rtx to const rtx_insn *.
713 * combine.c (remove_death): Strengthen param "insn" from rtx to
714 rtx_insn *.
715 (move_deaths): Likewise for local "where_dead".
716 * cse.c (delete_trivially_dead_insns): Introduce local
717 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
718 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
719 rtx_insn *.
720 (df_reg_defined): Likewise.
721 (df_find_use): Likewise.
722 (df_reg_used): Likewise.
723 (df_dump_insn_problem_data): Strengthen param "insn" from
724 const_rtx to const rtx_insn *.
725 (df_dump_insn_top): Likewise.
726 (df_dump_insn_bottom): Likewise.
727 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
728 (df_insn_debug_regno): Likewise.
729 (debug_df_insn): Likewise.
730 (DF_REF_INSN): Delete.
731 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
732 from rtx to rtx_insn *.
733 (df_chain_insn_top_dump): Strengthen param "insn" from
734 const_rtx to const rtx_insn *.
735 (df_chain_insn_bottom_dump): Likewise.
736 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
737 rtx_insn *.
738 (df_word_lr_simulate_uses): Likewise.
739 (df_print_note): Likewise.
740 (df_remove_dead_and_unused_notes): Likewise.
741 (df_set_unused_notes_for_mw): Likewise.
742 (df_set_dead_notes_for_mw): Likewise.
743 (df_create_unused_note): Likewise.
744 (df_simulate_find_defs): Likewise.
745 (df_simulate_find_uses): Likewise.
746 (df_simulate_find_noclobber_defs): Likewise.
747 (df_simulate_defs): Likewise.
748 (df_simulate_uses): Likewise.
749 (df_simulate_one_insn_backwards): Likewise.
750 (df_simulate_one_insn_forwards): Likewise.
751 (df_md_simulate_one_insn): Likewise.
752 * df-scan.c (df_uses_create): Likewise.
753 (df_insn_create_insn_record): Likewise.
754 (df_insn_delete): Likewise.
755 (df_insn_rescan): Likewise.
756 (df_insn_rescan_debug_internal): Likewise.
757 (df_insn_change_bb): Likewise.
758 (df_notes_rescan): Likewise.
759 (df_refs_add_to_chains): Likewise.
760 (df_insn_refs_verify): Likewise.
761 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
762 when invoking df_insn_delete.
763 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
764 (set_unique_reg_note): Add checked cast.
765 * final.c (cleanup_subreg_operands): Likewise.
766 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
767 "insn" from rtx to rtx_insn *.
768 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
769 "last" from rtx to rtx_insn *.
770 * ira-emit.c (change_regs_in_insn): New function.
771 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
772 Invoke change_regs_in_insn rather than change_regs.
773 * ira.c (update_equiv_regs): Strengthen locals "insn",
774 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
775 for_each_rtx_in_insn rather than for_each_rtx.
776 * recog.c (confirm_change_group): Add checked casts.
777 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
778 Add checked cast.
779 (peep2_fill_buffer): Add checked cast.
780 * rtlanal.c (remove_note): Likewise.
781 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
782 locals "next" "end" from rtx to rtx_insn *.
783
784 2014-08-26 David Malcolm <dmalcolm@redhat.com>
785
786 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
787 to rtx_insn *.
788 (struct reg_use_data): Likewise for field "insn".
789 (insn_cost): Likewise for param.
790 (real_insn_for_shadow): Likewise for return type and param.
791 (increase_insn_priority): Likewise for param 1.
792 (debug_dependencies): Likewise for both params.
793
794 * haifa-sched.c (insn_delay): Likewise for param "insn".
795 (real_insn_for_shadow): Likewise for return type and param "insn".
796 (update_insn_after_change): Likewise for param "insn".
797 (recompute_todo_spec): Likewise for param "next" and locals "pro",
798 "other".
799 (insn_cost): Likewise for param "insn".
800 (increase_insn_priority): Likewise.
801 (calculate_reg_deaths): Likewise.
802 (setup_insn_reg_pressure_info): Likewise.
803 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
804 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
805 (model_recompute): Likewise.
806 (must_restore_pattern_p): Likewise for param "next".
807 (model_excess_cost): Likewise for param "insn".
808 (queue_remove): Likewise.
809 (adjust_priority): Likewise for param "prev".
810 (update_register_pressure): Likewise for param "insn".
811 (setup_insn_max_reg_pressure): Likewise for local "insn".
812 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
813 (model_add_to_schedule): Likewise.
814 (model_reset_queue_indices): Likewise for local "insn".
815 (unschedule_insns_until): Strengthen local "recompute_vec" from
816 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
817 "con" from rtx to rtx_insn *.
818 (restore_last_backtrack_point): Likewise for both locals "x". Add
819 checked casts.
820 (estimate_insn_tick): Likewise for param "insn".
821 (commit_schedule): Likewise for params "prev_head", "tail" and
822 local "x".
823 (verify_shadows): Likewise for locals "i1", "i2".
824 (dump_insn_stream): Likewise for params "head", "tail" and locals
825 "next_tail", "insn".
826 (schedule_block): Likewise for locals "insn", "x". Add a checked
827 cast.
828 (fix_inter_tick): Likewise for params "head", "tail".
829 (create_check_block_twin): Likewise for local "jump".
830 (haifa_change_pattern): Likewise for param "insn".
831 (haifa_speculate_insn): Likewise.
832 (dump_new_block_header): Likewise for params "head", "tail".
833 (fix_jump_move): Likewise for param "jump".
834 (move_block_after_check): Likewise.
835 (sched_init_insn_luid): Likewise for param "insn".
836 (sched_init_luids): Likewise for local "insn".
837 (insn_luid): Likewise for param "insn".
838 (init_h_i_d): Likewise.
839 (haifa_init_h_i_d): Likewise for local "insn".
840 (haifa_init_insn): Likewise for param "insn".
841 * sched-deps.c (add_dependence): Likewise for local "real_pro",
842 "other".
843 (create_insn_reg_use): Likewise for param "insn".
844 (setup_insn_reg_uses): Likewise. Add a checked cast.
845 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
846 "tail" from rtx to rtx_insn *.
847 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
848 "insn", "next_tail".
849
850 2014-08-26 David Malcolm <dmalcolm@redhat.com>
851
852 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
853 from rtx to rtx_insn *.
854 (model_add_to_schedule): Likewise for locals "start", "end",
855 "iter".
856
857 2014-08-26 David Malcolm <dmalcolm@redhat.com>
858
859 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
860 rtx_insn *.
861 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
862 "to" and locals "insn", "next", "copy". Remove now-redundant
863 checked cast.
864
865 2014-08-26 David Malcolm <dmalcolm@redhat.com>
866
867 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
868 rtx_insn * and param 4 from rtx * to rtx_insn **.
869 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
870 param 2 from rtx * to rtx_insn **.
871
872 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
873 rtx_insn * and final param from rtx * to rtx_insn **.
874
875 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
876 from rtx to rtx_insn *.
877 (try_head_merge_bb): Likewise for both locals named "move_upto".
878 * df-problems.c (can_move_insns_across): Likewise for params
879 "from", "to", "across_from", "across_to" and locals "insn",
880 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
881 rtx_insn **.
882 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
883 from rtx to rtx_insn *.
884 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
885 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
886 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
887 rtx_insn *.
888 (noce_try_abs): Likewise.
889 (noce_get_condition): Likewise for param "jump". Strengthen param
890 "earliest" from rtx * to rtx_insn **.
891 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
892 rtx_insn *.
893 (find_cond_trap): Likewise.
894 (dead_or_predicable): Likewise for local "earliest".
895 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
896 checked cast.
897 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
898 and local "prev". Strengthen param "earliest" from rtx * to
899 rtx_insn **.
900 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
901 Strengthen param "earliest" from rtx * to rtx_insn **.
902
903 2014-08-26 David Malcolm <dmalcolm@redhat.com>
904
905 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
906 "to" and local "insn" from rtx to rtx_insn *.
907
908 2014-08-26 David Malcolm <dmalcolm@redhat.com>
909
910 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
911 from rtx to rtx_insn *.
912 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
913 (code_motion_path_driver): Likewise for local "last_insn".
914 (simplify_changed_insns): Likewise for local "insn".
915
916 2014-08-26 David Malcolm <dmalcolm@redhat.com>
917
918 * rtl.h (push_to_sequence): Strengthen param from rtx to
919 rtx_insn *.
920 (push_to_sequence2): Likewise for both params.
921 (delete_insns_since): Likewise for param.
922 (reorder_insns_nobb): Likewise for all three params.
923 (set_new_first_and_last_insn): Likewise for both params.
924
925 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
926 rtx_insn *. Remove now-redundant cast.
927 (set_last_insn): Likewise.
928
929 * builtins.c (expand_builtin_return): Strengthen local
930 "call_fusage" from rtx to rtx_insn *.
931 * cfgrtl.c (create_basic_block_structure): Likewise for local
932 "after".
933 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
934 "first", "last" and local "insn".
935 (delete_insns_since): Likewise for param "from".
936 (reorder_insns_nobb): Likewise for params "from", "to", "after"
937 and local "x".
938 (push_to_sequence): Likewise for param "first" and local "last".
939 (push_to_sequence2): Likewise for params "first" and "last".
940 * lra.c (emit_add3_insn): Likewise for local "last".
941 (lra_emit_add): Likewise.
942 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
943 "last_insn".
944 (process_address_1): Likewise for locals "insn", last".
945 * modulo-sched.c (ps_first_note): Likewise for return type.
946 * optabs.c (expand_binop_directly): Likewise for param "last".
947
948 2014-08-26 David Malcolm <dmalcolm@redhat.com>
949
950 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
951 to rtx_insn*.
952 * emit-rtl.c (get_last_insn_anywhere): Likewise.
953
954 2014-08-26 David Malcolm <dmalcolm@redhat.com>
955
956 * function.h (struct sequence_stack): Strengthen fields "first"
957 and "last" from rtx to rtx_insn *.
958 (struct emit_status): Likewise for fields "x_first_insn" and
959 "x_last_insn".
960
961 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
962 (set_first_insn): Add checked cast.
963 (get_last_insn): Remove now-redundant checked cast.
964 (set_last_insn): Add checked cast.
965
966 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
967 "saved_first" and "saved_last" from rtx to rtx_insn *.
968
969 2014-08-26 David Malcolm <dmalcolm@redhat.com>
970
971 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
972 (unlink_insn_chain): Strengthen both params from rtx to
973 rtx_insn *.
974
975 * cfgrtl.c (cfg_layout_function_header): Likewise for this
976 variable.
977 (unlink_insn_chain): Likewise for params "first" and "last".
978 Remove now-redundant checked cast.
979 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
980 (fixup_reorder_chain): Strengthen local "insn" from rtx to
981 rtx_insn *.
982 * emit-rtl.c (link_insn_into_chain): Likewise for all three
983 params.
984 (add_insn): Likewise for param "insn" and local "prev".
985 (add_insn_after_nobb): Likewise for both params and local "next".
986 (add_insn_before_nobb): Likewise for both params and local "prev".
987 (add_insn_after): Rename param "after" to "uncast_after",
988 introducing local "after" with another checked cast.
989 (add_insn_before): Rename params "insn" and "before", giving them
990 "uncast_" prefixes, adding the old names back using checked casts.
991 (emit_note_after): Likewise for param "after".
992 (emit_note_before): Likewise for param "before".
993 (emit_label): Add a checked cast.
994
995 2014-08-26 David Malcolm <dmalcolm@redhat.com>
996
997 * cselib.h (cselib_record_sets_hook): Strengthen initial param
998 "insn" from rtx to rtx_insn *.
999
1000 * cselib.c (cselib_record_sets_hook): Likewise.
1001
1002 * var-tracking.c (add_with_sets): Likewise, renaming back from
1003 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1004 to rtx_insn *.
1005
1006 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1007
1008 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1009 and "header_" from rtx to rtx_insn *.
1010 (struct basic_block_d): Likewise for field "head_" within "x"
1011 field of union basic_block_il_dependent.
1012 (BB_HEAD): Drop function...
1013 (SET_BB_HEAD): ...and this function in favor of...
1014 (BB_HEAD): ...reinstate macro.
1015 (BB_END): Drop function...
1016 (SET_BB_END): ...and this function in favor of...
1017 (BB_END): ...reinstate macro.
1018 (BB_HEADER): Drop function...
1019 (SET_BB_HEADER): ...and this function in favor of...
1020 (BB_HEADER): ...reinstate macro.
1021
1022 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1023 (fix_crossing_unconditional_branches): Likewise.
1024 * caller-save.c (save_call_clobbered_regs): Likewise.
1025 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1026 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1027 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1028 (merge_blocks_move_successor_nojumps): Likewise.
1029 (outgoing_edges_match): Update use of for_each_rtx to
1030 for_each_rtx_in_insn.
1031 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1032 (expand_gimple_cond): Likewise.
1033 (expand_gimple_tailcall): Likewise.
1034 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1035 SET_BB_END.
1036 (construct_exit_block): Drop use of SET_BB_END.
1037 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1038 rtx_insn *.
1039 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1040 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1041 SET_BB_HEAD and SET_BB_END.
1042 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1043 SET_BB_END.
1044 (rtl_delete_block): Drop use of SET_BB_HEAD.
1045 (rtl_split_block): Drop use of SET_BB_END.
1046 (emit_nop_for_unique_locus_between): Likewise.
1047 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1048 (block_label): Drop use of SET_BB_HEAD.
1049 (fixup_abnormal_edges): Drop use of SET_BB_END.
1050 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1051 (relink_block_chain): Likewise.
1052 (fixup_reorder_chain): Drop use of SET_BB_END.
1053 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1054 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1055 rtx_insn **. Drop use of SET_BB_HEADER.
1056 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1057 SET_BB_HEAD.
1058 (BB_HEAD): Delete this function.
1059 (SET_BB_HEAD): Likewise.
1060 (BB_END): Likewise.
1061 (SET_BB_END): Likewise.
1062 (BB_HEADER): Likewise.
1063 (SET_BB_HEADER): Likewise.
1064 * emit-rtl.c (add_insn_after): Rename param "insn" to
1065 "uncast_insn", adding a new local "insn" and a checked cast to
1066 rtx_insn *. Drop use of SET_BB_END.
1067 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1068 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1069 (reorder_insns): Drop use of SET_BB_END.
1070 (emit_insn_after_1): Strengthen param "first" and locals "last",
1071 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1072 (emit_pattern_after_noloc): Add checked cast.
1073 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1074 (restore_other_notes): Likewise.
1075 (move_insn): Likewise.
1076 (sched_extend_bb): Likewise.
1077 (fix_jump_move): Likewise.
1078 * ifcvt.c (noce_process_if_block): Likewise.
1079 (dead_or_predicable): Likewise.
1080 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1081 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1082 * sel-sched-ir.c (sel_move_insn): Likewise.
1083 * sel-sched.c (move_nop_to_previous_block): Likewise.
1084
1085 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1086 SET_BB_END.
1087 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1088
1089 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1090
1091 * basic-block.h (create_basic_block_structure): Strengthen params
1092 1 "head" and 2 "end" from rtx to rtx_insn *.
1093 * cfgrtl.c (create_basic_block_structure): Likewise.
1094 (rtl_create_basic_block): Update casts from void * to rtx to
1095 rtx_insn *, so that we can pass them as rtx_insn * to
1096 create_basic_block_structure.
1097 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1098
1099 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1100
1101 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1102 rtx_insn **.
1103 (check_for_inc_dec): Strengthen param "insn" from rtx to
1104 rtx_insn *.
1105
1106 * cselib.h (cselib_process_insn): Likewise.
1107
1108 * cselib.c (cselib_record_sets): Likewise.
1109 (cselib_process_insn): Likewise.
1110
1111 * dse.c (struct insn_info): Likewise for field "insn".
1112 (check_for_inc_dec_1): Likewise for local "insn".
1113 (check_for_inc_dec): Likewise for param "insn".
1114 (scan_insn): Likewise.
1115 (dse_step1): Likewise for local "insn".
1116
1117 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1118 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1119
1120 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1121
1122 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1123 from rtx to rtx_insn *.
1124 (DEP_PRO): Delete this function and...
1125 (SET_DEP_PRO): ...this function in favor of...
1126 (DEP_PRO): ...reinstate this macro.
1127 (DEP_CON): Delete this function and...
1128 (SET_DEP_CON): ...this function in favor of...
1129 (DEP_CON): ...reinstate this old macro.
1130 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1131 (init_dep): Likewise.
1132 (set_priorities): Likewise for both params.
1133 (sd_copy_back_deps): Likewise for params 1 and 2.
1134
1135 * haifa-sched.c (priority): Likewise for param "insn" and local
1136 "next".
1137 (set_priorities): Likewise for params "head" and "tail" and local
1138 "insn".
1139 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1140 local "consumer".
1141 (add_to_speculative_block): Add a checked cast.
1142 (create_check_block_twin): Drop use of SET_DEP_CON.
1143 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1144 rtx to rtx_insn *.
1145
1146 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1147 Drop use of SET_DEP_PRO
1148 (init_dep): Strengthen params "pro" and "con" from rtx to
1149 rtx_insn *.
1150 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1151 use of SET_DEP_CON.
1152 (DEP_PRO): Delete.
1153 (DEP_CON): Delete.
1154 (SET_DEP_PRO): Delete.
1155 (SET_DEP_CON): Delete.
1156
1157 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1158
1159 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1160 from rtx to rtx_insn *.
1161 (VINSN_INSN_RTX): Eliminate rvalue function and...
1162 (SET_VINSN_INSN): ...lvalue function in favor of...
1163 (VINSN_INSN_RTX): reinstate this old macro.
1164
1165 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1166 in favor of VINSN_INSN_RTX.
1167 (VINSN_INSN_RTX): Delete this function.
1168 (SET_VINSN_INSN_RTX): Likewise.
1169
1170 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1171
1172 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1173 (BND_TO): Delete this function and...
1174 (SET_BND_TO): ...this functions in favor of...
1175 (BND_TO): ...reinstating this macro.
1176 (struct _fence): Strengthen field "executing_insns" from
1177 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1178 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1179 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1180 and param "insn" from rtx to insn_t.
1181 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1182 rtx_insn *.
1183
1184 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1185 vec<rtx_insn *> .
1186 (rtx_vec_t): Likewise.
1187 (struct sched_deps_info_def): Strengthen param of "start_insn"
1188 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1189 "note_mem_dep" callback and first param of "note_dep" callback.
1190
1191 * haifa-sched.c (add_to_speculative_block): Strengthen param
1192 "insn" from rtx to rtx_insn *.
1193 (clear_priorities): Likewise.
1194 (calc_priorities): Likewise for local "insn".
1195
1196 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1197 Remove redundant checked cast.
1198 (haifa_note_mem_dep): Likewise for param "pending_insn".
1199 (haifa_note_dep): Likewise for param "elem".
1200 (note_mem_dep): Likewise for param "e".
1201 (sched_analyze_1): Add checked casts.
1202 (sched_analyze_2): Likewise.
1203
1204 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1205 from rtx to rtx_insn *.
1206 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1207 from vec<rtx> * to vec<rtx_insn *> *.
1208
1209 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1210 scaffolding.
1211 (flist_add): Strengthen param "executing_insns" from
1212 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1213 (advance_deps_context): Remove now-redundant checked cast.
1214 (init_fences): Replace uses of NULL_RTX with NULL.
1215 (merge_fences): Strengthen params "last_scheduled_insn" and
1216 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1217 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1218 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1219 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1220 an instruction, rather than doing double-duty as a pattern.
1221 (return_nop_to_pool): Update for change of insn_t.
1222 (deps_init_id): Remove now-redundant checked cast.
1223 (struct sched_scan_info_def): Strengthen param of "init_insn"
1224 callback from rtx to insn_t.
1225 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1226 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1227 NULL.
1228 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1229 "end" from rtx to rtx_insn *.
1230 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1231 (rtx insn_rtx, bool force_unique_p)
1232 (BND_TO): Delete function.
1233 (SET_BND_TO): Delete function.
1234
1235 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1236 rtx to rtx_insn *.
1237 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1238 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1239 rtx to rtx_insn *.
1240 (undo_transformations): Likewise for param "insn".
1241 (update_liveness_on_insn): Likewise.
1242 (compute_live_below_insn): Likewise for param "insn" and local
1243 "succ".
1244 (update_data_sets): Likewise for param "insn".
1245 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1246 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1247 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1248 rtx_insn *.
1249 (move_cond_jump): Likewise for param "insn".
1250 (move_cond_jump): Drop use of SET_BND_TO.
1251 (compute_av_set_on_boundaries): Likewise.
1252 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1253 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1254 from rtx to rtx_insn *.
1255 (maybe_emit_renaming_copy): Likewise for param "insn".
1256 (maybe_emit_speculative_check): Likewise.
1257 (handle_emitting_transformations): Likewise.
1258 (remove_insn_from_stream): Likewise.
1259 (code_motion_process_successors): Strengthen local "succ" from rtx
1260 to insn_t.
1261
1262 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1263
1264 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1265 ilist_t, not _xlist_t;
1266 (ILIST_INSN): Define in terms of new union field "insn".
1267 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1268 _XLIST_NEXT.
1269 (struct _list_node): Add new field "insn" to the union, of type
1270 insn_t.
1271 (ilist_add): Replace macro with an inline function, requiring an
1272 insn_t.
1273 (ilist_remove): Define this macro directly in terms of
1274 _list_remove, rather than indirectly via _xlist_remove.
1275 (ilist_clear): Likewise, in terms of _list_clear rather than
1276 _xlist_clear.
1277 (ilist_is_in_p): Replace macro with an inline function, requiring
1278 an insn_t.
1279 (_list_iter_cond_insn): New function.
1280 (ilist_iter_remove): Define this macro directly in terms of
1281 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1282 (ilist_iterator): Define directly in terms of _list_iterator
1283 rather than indirectly through _xlist_iterator.
1284 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1285 than in terms of _FOR_EACH_X.
1286 (FOR_EACH_INSN_1): Likewise.
1287
1288 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1289
1290 PR target/60606
1291 PR target/61330
1292 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1293 DECL_HARD_REGISTER and return for invalid register specifications.
1294 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1295 DECL_HARD_REGISTER, call expand_one_error_var.
1296 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1297 CC_REGNUM with non-MODE_CC modes.
1298 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1299
1300 2014-08-26 Marek Polacek <polacek@redhat.com>
1301
1302 PR c/61271
1303 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1304
1305 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1306
1307 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1308 qi cost; add di cost.
1309 (cortexa57_addrcost_table): Likewise.
1310
1311 2014-08-26 Marek Polacek <polacek@redhat.com>
1312
1313 PR c/61271
1314 * expr.c (is_aligning_offset): Remove logical not.
1315
1316 2014-08-26 Marek Polacek <polacek@redhat.com>
1317
1318 PR c/61271
1319 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1320 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1321
1322 2014-08-26 Richard Biener <rguenther@suse.de>
1323
1324 PR tree-optimization/62175
1325 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1326 expand possibly trapping operations.
1327
1328 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1329
1330 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1331 "insn" from rtx to rtx_insn *.
1332 (permute_load): Likewise for param "insn".
1333 (permute_store): Likewise.
1334 (handle_special_swappables): Likewise for local "insn".
1335 (replace_swap_with_copy): Likewise for locals "insn" and
1336 "new_insn".
1337 (rs6000_analyze_swaps): Likewise for local "insn".
1338
1339 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1340
1341 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1342 to rtx_insn *.
1343
1344 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1345
1346 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1347 "note_list" from rtx to rtx_insn *.
1348 (BB_NOTE_LIST): Replace this function and...
1349 (SET_BB_NOTE_LIST): ...this function with...
1350 (BB_NOTE_LIST): ...the former macro implementation.
1351
1352 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1353 local "from_start" from rtx to rtx_insn *. Strengthen param
1354 "to_endp" from rtx * to rtx_insn **.
1355
1356 * haifa-sched.c (concat_note_lists): Likewise.
1357 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1358 BB_NOTE_LIST.
1359 (sel_restore_notes): Likewise.
1360 (move_bb_info): Likewise.
1361 (BB_NOTE_LIST): Delete this function.
1362 (SET_BB_NOTE_LIST): Delete this function.
1363 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1364 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1365
1366 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1367
1368 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1369 from rtx * to rtx_insn **.
1370 (reorder2): Likewise.
1371 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1372 from rtx to rtx_insn *.
1373
1374 * doc/tm.texi: Update mechanically for above change to target.def.
1375
1376 * sched-int.h (note_list): Strengthen this variable from rtx to
1377 rtx_insn *.
1378 (remove_notes): Likewise for both params.
1379 (restore_other_notes): Likewise for return type and first param.
1380 (struct ready_list): Strengthen field "vec" from rtx * to
1381 rtx_insn **.
1382 (struct dep_replacement): Strenghten field "insn" from rtx to
1383 rtx_insn *.
1384 (struct deps_desc): Likewise for fields "last_debug_insn",
1385 "last_args_size".
1386 (struct haifa_sched_info): Likewise for callback field
1387 "can_schedule_ready_p"'s param, for first param of "new_ready"
1388 callback field, for both params of "rank" callback field, for
1389 first field of "print_insn" callback field (with a const), for
1390 both params of "contributes_to_priority" callback, for param
1391 of "insn_finishes_block_p" callback, for fields "prev_head",
1392 "next_tail", "head", "tail", for first param of "add_remove_insn"
1393 callback, for first param of "begin_schedule_ready" callback, for
1394 both params of "begin_move_insn" callback, and for second param
1395 of "advance_target_bb" callback.
1396 (add_dependence): Likewise for params 1 and 2.
1397 (sched_analyze): Likewise for params 2 and 3.
1398 (deps_analyze_insn): Likewise for param 2.
1399 (ready_element): Likewise for return type.
1400 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1401 (try_ready): Strenghten param from rtx to rtx_insn *.
1402 (sched_emit_insn): Likewise for return type.
1403 (record_delay_slot_pair): Likewise for params 1 and 2.
1404 (add_delay_dependencies): Likewise for param.
1405 (contributes_to_priority): Likewise for both params.
1406 (find_modifiable_mems): Likewise.
1407
1408 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1409 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1410 "first_older_only_insn" from rtx to rtx_insn *.
1411 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1412 rtx_insn **.
1413
1414 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1415 "last_scheduled_iter0" from rtx to rtx_insn *.
1416 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1417 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1418 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1419 "insn" from rtx to rtx_insn *.
1420 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1421 rtx_insn **.
1422 (c6x_sched_reorder2): Strengthen param "ready" and locals
1423 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1424 "insn" from rtx to rtx_insn *.
1425 (c6x_variable_issue): Add a checked cast when assigning from insn
1426 to ss.last_scheduled_iter0.
1427 (split_delayed_branch): Strengthen param "insn" and local "i1"
1428 from rtx to rtx_insn *.
1429 (split_delayed_nonbranch): Likewise.
1430 (undo_split_delayed_nonbranch): Likewise for local "insn".
1431 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1432 "entry_after", "end_packet", "head_insn", "tail_insn",
1433 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1434 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1435 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1436 but add a checked cast on loop->start_label. Consolidate calls to
1437 avoid assigning result of gen_spkernel to "insn", now an
1438 rtx_insn *.
1439
1440 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1441 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1442 rtx to rtx_insn *.
1443 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1444 rtx_insn **. Strengthen locals "top", "next" from rtx to
1445 rtx_insn *.
1446 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1447 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1448 (add_parameter_dependencies): Strengthen params "call", "head" and
1449 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1450 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1451 (add_dependee_for_func_arg): Likewise for param "arg" and local
1452 "insn".
1453 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1454 "tail" and locals "insn", "first_arg".
1455
1456 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1457 for params "head", "tail" and locals "insn", "next", "next_tail".
1458 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1459 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1460 "insn", "lowest", "highest" from rtx to rtx_insn *.
1461 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1462 rtx_insn **.
1463 (ia64_sched_reorder2): Likewise.
1464
1465 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1466 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1467 from rtx * to rtx_insn **.
1468 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1469 rtx_insn **.
1470 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1471 rtx_insn *.
1472 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1473 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1474 to rtx_insn *.
1475
1476 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1477 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1478 to rtx_insn *.
1479 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1480 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1481 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1482 rtx_insn **.
1483 (vr4130_reorder): Likewise.
1484 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1485 rtx to rtx_insn *.
1486 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1487 rtx_insn **.
1488 (mips_sched_reorder): Likewise.
1489 (mips_sched_reorder2): Likewise.
1490
1491 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1492
1493 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1494 Strengthen local "tmp" from rtx to rtx_insn *.
1495 (rs6000_sched_reorder2): Likewise.
1496
1497 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1498 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1499 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1500 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1501
1502 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1503 "tmp2" from rtx to rtx_insn *.
1504 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1505 Strengthen local "insn" from rtx to rtx_insn *.
1506 (ready_reorder): Strengthen param "ready" from rtx * to
1507 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1508 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1509 (sh_reorder2): Likewise.
1510
1511 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1512 local "insn" from rtx to rtx_insn *.
1513
1514 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1515 rtx_insn *.
1516 (scheduled_insns): Strengthen this variable from vec<rtx> to
1517 vec<rtx_insn *>.
1518 (set_modulo_params): Likewise for locals "i1", "i2".
1519 (record_delay_slot_pair): Likewise for params "i1", "i2".
1520 (add_delay_dependencies): Likewise for param "insn".
1521 (cond_clobbered_p): Likewise.
1522 (recompute_todo_spec): Likewise for local "prev".
1523 (last_scheduled_insn): Likewise for this variable.
1524 (nonscheduled_insns_begin): Likewise.
1525 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1526 rtx_insn **.
1527 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1528 rtx_insn *.
1529 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1530 Strengthen local "insn" from rtx to rtx_insn *.
1531 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1532 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1533 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1534 (ready_remove_first): Likewise for return type and local "t".
1535 (ready_element): Likewise for return type.
1536 (ready_remove): Likewise for return type and local "t".
1537 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1538 (check_clobbered_conditions): Strengthen local "x" from rtx to
1539 rtx_insn *, adding a checked cast.
1540 (schedule_insn): Likewise for param "insn".
1541 (remove_notes): Likewise for params "head", "tail" and locals
1542 "next_tail", "insn", "next".
1543 (struct haifa_saved_data): Likewise for fields
1544 "last_scheduled_insn", "nonscheduled_insns_begin".
1545 (save_backtrack_point): Update for change to field "vec" of
1546 struct ready_list.
1547 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1548 rtx_insn **.
1549 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1550 from rtx to rtx_insn *
1551 (resolve_dependencies): Strengthen param "insn" from rtx to
1552 rtx_insn *
1553 (restore_other_notes): Likewise for return type, for param "head"
1554 and local "note_head".
1555 (undo_all_replacements): Likewise for local "insn".
1556 (first_nonscheduled_insn): Likewise for return type and local "insn".
1557 (queue_to_ready): Likewise for local "insn", adding checked casts.
1558 (early_queue_to_ready): Likewise for local "insn".
1559 (debug_ready_list_1): Strengthen local "p" from rtx * to
1560 rtx_insn **.
1561 (move_insn): Strengthen param "insn" and local "note" from rtx to
1562 rtx_insn *
1563 (insn_finishes_cycle_p): Likewise for param "insn".
1564 (max_issue): Likewise for local "insn".
1565 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1566 to rtx_insn **.
1567 (commit_schedule): Strengthen param "prev_head" and local "insn"
1568 from rtx to rtx_insn *
1569 (prune_ready_list): Likewise for local "insn".
1570 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1571 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1572 (set_priorities): Likewise for local "prev_head".
1573 (try_ready): Likewise for param "next".
1574 (fix_tick_ready): Likewise.
1575 (change_queue_index): Likewise.
1576 (sched_extend_ready_list): Update for change to field "vec" of
1577 struct ready_list.
1578 (generate_recovery_code): Strengthen param "insn" from rtx to
1579 rtx_insn *.
1580 (begin_speculative_block): Likewise.
1581 (create_check_block_twin): Likewise for param "insn" and locals
1582 "label", "check", "twin". Introduce local "check_pat" to avoid
1583 "check" being used as a plain rtx before being used as an insn.
1584 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1585 extracting elements from ready_list.
1586 (sched_remove_insn): Strengthen param "insn" from rtx to
1587 rtx_insn *.
1588 (sched_emit_insn): Likewise for return type.
1589 (ready_remove_first_dispatch): Likewise for return type and local
1590 "insn".
1591
1592 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1593
1594 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1595 const rtx_insn *.
1596
1597 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1598 from rtx to rtx_insn *.
1599 (add_dependence_list): Likewise for param "insn". Add a checked
1600 cast.
1601 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1602 to rtx_insn *. Strengthen param "list_p" from rtx * to
1603 rtx_insn **.
1604 (chain_to_prev_insn): Strengthen param "insn" and locals
1605 "prec_nonnote", "i" from rtx to rtx_insn *.
1606 (flush_pending_lists): Likewise for param "insn".
1607 (cur_insn): Likewise for this variable.
1608 (haifa_start_insn): Add a checked cast.
1609 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1610 (sched_analyze_reg): Likewise for param "insn".
1611 (sched_analyze_1): Likewise.
1612 (sched_analyze_2): Likewise. Add checked casts.
1613 (sched_analyze_insn): Likewise. Also for local "prev".
1614 (deps_analyze_insn): Likewise for param "insn".
1615 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1616 (add_dependence_1): Likewise for params "insn", "elem".
1617 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1618 (parse_add_or_inc): Likewise for param "insn".
1619 (find_inc): Likewise for local "inc_cand".
1620 (find_modifiable_mems): Likewise for params "head", "tail" and
1621 locals "insn", "next_tail".
1622
1623 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1624 (begin_schedule_ready): Likewise for param "insn".
1625 (begin_move_insn): Likewise for params "insn" and "last".
1626 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1627 const rtx_insn *.
1628 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1629 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1630 (ebb_add_remove_insn): Likewise for param "insn".
1631 (advance_target_bb): Likewise.
1632
1633 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1634 "insn".
1635 (check_live): Likewise for param "insn".
1636 (init_ready_list): Likewise for local "insn".
1637 (can_schedule_ready_p): Likewise for param "insn".
1638 (begin_schedule_ready): Likewise.
1639 (new_ready): Likewise for param "next".
1640 (rgn_print_insn): Likewise for param "insn".
1641 (rgn_rank): Likewise for params "insn1", "insn2".
1642 (contributes_to_priority): Likewise for params "next", "insn".
1643 (rgn_insn_finishes_block_p): Likewise for param "insn".
1644 (add_branch_dependences): Likewise for params "head", "tail" and
1645 locals "insn", "last".
1646 (rgn_add_remove_insn): Likewise for param "insn".
1647 (advance_target_bb): Likewise.
1648
1649 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1650 const_rtx to const rtx_insn *.
1651
1652 * sel-sched-dump.h (sel_print_insn): Likewise.
1653
1654 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1655 (deps_init_id): Likewise.
1656
1657 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1658 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1659 rtx_insn **.
1660
1661 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1662
1663 * output.h (final_start_function): Strengthen param 1 from rtx to
1664 rtx_insn *.
1665
1666 * final.c (final_start_function): Likewise, renaming back from
1667 "uncast_first" to "first", and dropping the checked cast from rtx
1668 to rtx_insn *.
1669
1670 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1671
1672 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1673 * final.c (final): Likewise. Rename param back from
1674 "uncast_first" to "first" and eliminate the checked cast from rtx
1675 to rtx_insn *.
1676
1677 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1678
1679 * output.h (shorten_branches): Strengthen param from rtx to
1680 rtx_insn *.
1681
1682 * final.c (shorten_branches): Likewise, renaming param back from
1683 "uncast_first" to "first", and dropping the checked cast from rtx
1684 to rtx_insn *.
1685
1686 * genattr.c (gen_attr): Likewise when writing out the prototype of
1687 shorten_branches.
1688
1689 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1690
1691 * sched-int.h (struct haifa_sched_info): Strengthen fields
1692 "prev_head" and "next_tail" from rtx to rtx_insn *.
1693
1694 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1695
1696 * rtl.h (rtx_jump_table_data::get_labels): New method.
1697 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1698 with use of the new rtx_jump_table_data::get_labels method.
1699 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1700 to rtx_jump_table_data *. Simplify by using get_labels method.
1701 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1702 a dyn_cast, introducing local "table", using it to replace
1703 label-lookup logic with a get_labels method call.
1704 (patch_jump_insn): Simplify using get_labels method.
1705 * dwarf2cfi.c (create_trace_edges): Likewise.
1706 * rtlanal.c (label_is_jump_target_p): Likewise.
1707
1708 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1709
1710 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1711 to rtx_insn *.
1712
1713 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1714 (unshare_all_rtl_again): Likewise, also for local "p".
1715
1716 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1717
1718 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1719 to rtx_insn *.
1720 * cfgrtl.c (delete_insn_and_edges): Likewise.
1721
1722 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1723
1724 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1725 from rtx to rtx_insn *.
1726
1727 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1728
1729 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1730
1731 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1732 locals "returnjump", "epilogue_end", "insn", "next".
1733
1734 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1735 "returnjump" from rtx * to rtx_insn **.
1736 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1737
1738 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1739
1740 * basic-block.h (struct edge_def). Strengthen "r" within
1741 union edge_def_insns from rtx to rtx_insn *.
1742
1743 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1744 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1745 rtx_insn *.
1746 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1747 from rtx to rtx_insn *.
1748 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1749 rtx_insn *.
1750 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1751 (reg_used_on_edge): Likewise.
1752 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1753 (gt_pch_nx): New overload for rtx_insn *&.
1754 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1755 from rtx to rtx_insn *.
1756
1757 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1758
1759 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1760 from rtx to rtx_insn *.
1761 (BB_FOOTER): Replace function with access macro.
1762 (SET_BB_FOOTER): Delete.
1763
1764 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1765 with BB_FOOTER.
1766 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1767 (emit_barrier_after_bb): Likewise.
1768 (record_effective_endpoints): Likewise.
1769 (relink_block_chain): Likewise.
1770 (fixup_fallthru_exit_predecessor): Likewise.
1771 (cfg_layout_duplicate_bb): Likewise.
1772 (cfg_layout_split_block): Likewise.
1773 (cfg_layout_delete_block): Likewise.
1774 (cfg_layout_merge_blocks): Likewise.
1775 (BB_FOOTER): Delete function.
1776 (SET_BB_FOOTER): Delete function.
1777 * combine.c (update_cfg_for_uncondjump): Replace uses of
1778 SET_BB_FOOTER with BB_FOOTER.
1779
1780 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1781
1782 * except.h (struct eh_landing_pad_d): Strengthen field
1783 "landing_pad" from rtx to rtx_code_label *.
1784
1785 * except.c (sjlj_emit_dispatch_table): Likewise for param
1786 "dispatch_label"
1787 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1788
1789 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1790
1791 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1792 first param from rtx to rtx_insn *.
1793 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1794 field "set_frame_ptr_insn".
1795 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1796 "csend" from rtx to rtx_code_label *.
1797 (xtensa_expand_atomic): Likewise for local "csloop".
1798 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1799 rtx_insn *.
1800 (xtensa_call_tls_desc): Likewise for return type and locals
1801 "call_insn", "insns".
1802 (xtensa_legitimize_tls_address): Likewise for local "insns".
1803 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1804
1805 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1806
1807 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1808 first param from rtx to rtx_insn *.
1809 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1810 "insn".
1811
1812 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1813
1814 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1815 Strengthen param 1 from rtx to rtx_insn *.
1816 (tilepro_output_cbranch): Likewise.
1817 (tilepro_adjust_insn_length): Likewise.
1818 (tilepro_final_prescan_insn): Likewise for sole param.
1819
1820 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1821 Likewise for local "last".
1822 (cbranch_predicted_p): Likewise for param "insn".
1823 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1824 (tilepro_output_cbranch_with_opcode): Likewise.
1825 (tilepro_output_cbranch): Likewise.
1826 (frame_emit_load): Likewise for return type and locals "seq",
1827 "insn".
1828 (emit_sp_adjust): Likewise for return type and local "insn".
1829 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1830 "insn".
1831 (tilepro_adjust_insn_length): Likewise for param "insn".
1832 (next_insn_to_bundle): Likewise for return type and params
1833 "r", "end".
1834 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1835 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1836 local "new_insns".
1837 (match_addli_pcrel): Likewise for param "insn".
1838 (replace_addli_pcrel): Likewise.
1839 (match_auli_pcrel): Likewise.
1840 (replace_auli_pcrel): Likewise.
1841 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1842 "next_insn".
1843 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1844 "queue", "next_queue", "prev".
1845 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1846 (tilepro_final_prescan_insn): Likewise for param "insn".
1847
1848 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1849
1850 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1851 Strengthen param 1 from rtx to rtx_insn *.
1852 (tilegx_output_cbranch): Likewise.
1853 (tilegx_adjust_insn_length): Likewise.
1854 (tilegx_final_prescan_insn): Likewise for sole param.
1855
1856 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1857 or local "last".
1858 (cbranch_predicted_p): Likewise for param "insn".
1859 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1860 (tilegx_output_cbranch_with_opcode): Likewise.
1861 (tilegx_output_cbranch): Likewise.
1862 (frame_emit_load): Likewise for return type.
1863 (set_frame_related_p): Likewise for locals "seq", "insn".
1864 (emit_sp_adjust): Likewise for return type, and for local "insn".
1865 Introduce local "pat" for use in place of "insn" where the latter
1866 isn't an instruction.
1867 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1868 from rtx to rtx_insn *.
1869 (tilegx_adjust_insn_length): Likewise for param "insn".
1870 (next_insn_to_bundle): Likewise for return type and params "r" and
1871 "end".
1872 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1873 "end".
1874 (replace_insns): Likewise for params "old_insn", "new_insns".
1875 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1876 "new_insns".
1877 (replace_mov_pcrel_step2): Likewise.
1878 (replace_mov_pcrel_step3): Likewise.
1879 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1880 "next_insn".
1881 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1882 "queue", "next_queue", "prev".
1883 (tilegx_output_mi_thunk): Likewise for local "insn".
1884 (tilegx_final_prescan_insn): Likewise for param "insn".
1885
1886 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1887
1888 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1889 rtx to rtx_insn *.
1890 (frame_emit_load): Likewise.
1891 (frame_emit_add_imm): Likewise, also for local "insn".
1892 (spu_expand_prologue): Likewise for local "insn".
1893 (struct spu_bb_info): Likewise for field "prop_jump".
1894 (emit_nop_for_insn): Likewise for param "insn" and local
1895 "new_insn".
1896 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1897 "hbr_insn".
1898 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1899 locals "hint", "insn".
1900 (get_branch_target): Likewise for param "branch".
1901 (insn_clobbers_hbr): Likewise for param "insn".
1902 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1903 locals "insn", "before_4", "before_16".
1904 (insert_hbrp): Likewise for local "insn".
1905 (spu_machine_dependent_reorg): Likewise for locals "branch",
1906 "insn", "next", "bbend".
1907 (uses_ls_unit): Likewise for param "insn".
1908 (get_pipe): Likewise.
1909 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1910 introducing a checked cast.
1911 (spu_sched_adjust_cost): Likewise for params "insn" and
1912 "dep_insn".
1913 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1914 (spu_sms_res_mii): Likewise.
1915
1916 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1917
1918 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1919 from rtx to rtx_insn *.
1920 (output_cbranch): Likewise for param 6.
1921 (output_return): Likewise for param 1.
1922 (output_sibcall): Likewise.
1923 (output_v8plus_shift): Likewise.
1924 (output_v8plus_mult): Likewise.
1925 (output_v9branch): Likewise for param 7.
1926 (output_cbcond): Likewise for param 3.
1927
1928 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1929 for local "insn".
1930 (sparc_legitimize_pic_address): Likewise.
1931 (sparc_emit_call_insn): Likewise.
1932 (emit_save_or_restore_regs): Likewise.
1933 (emit_window_save): Likewise for return type and local "insn".
1934 (sparc_expand_prologue): Likewise for local "insn".
1935 (sparc_flat_expand_prologue): Likewise.
1936 (output_return): Likewise for param "insn".
1937 (output_sibcall): Likewise for param "insn" and local "delay".
1938 (output_ubranch): Likewise for param "insn".
1939 (output_cbranch): Likewise.
1940 (output_cbcond): Likewise.
1941 (output_v9branch): Likewise.
1942 (output_v8plus_shift): Likewise.
1943 (sparc_output_mi_thunk): Likewise for local "insn".
1944 (get_some_local_dynamic_name): Likewise.
1945 (output_v8plus_mult): Likewise for param "insn".
1946
1947 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1948
1949 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1950 from rtx to rtx_insn *.
1951 (output_branchy_insn): Likewise for param 3.
1952 (output_far_jump): Likewise for param 1.
1953 (final_prescan_insn): Likewise.
1954 (sh_insn_length_adjustment): Likewise for sole param.
1955
1956 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1957 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1958 rtx_code_label *.
1959 (sh_emit_compare_and_set): Likewise for local "lab".
1960 (output_far_jump): Strengthen param "insn" and local "prev" from
1961 rtx to rtx_insn *.
1962 (output_branchy_insn): Likewise for param "insn" and local
1963 "next_insn".
1964 (output_ieee_ccmpeq): Likewise for param "insn".
1965 (struct label_ref_list_d): Strengthen field "label" from rtx to
1966 rtx_code_label *.
1967 (pool_node): Likewise.
1968 (pool_window_label): Likewise for this global.
1969 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1970 (dump_table): Strengthen params "start", "barrier" and local
1971 "scan" from rtx to rtx_insn *.
1972 (broken_move): Likewise for param "insn".
1973 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1974 Strengthen param "first_mova" from rtx * to rtx_insn **.
1975 (mova_p): Likewise for param "insn".
1976 (fixup_mova): Likewise for param "mova".
1977 (find_barrier): Likewise for return type, params "mova" and
1978 "from", and locals "barrier_before_mova", "found_barrier",
1979 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1980 "label" from rtx to rtx_code_label *.
1981 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1982 rtx to rtx_insn *.
1983 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1984 (split_branches): Likewise for param "first" and local "insn".
1985 (final_prescan_insn): Likewise for param "insn".
1986 (sequence_insn_p): Likewise for locals "prev", "next".
1987 (sh_insn_length_adjustment): Likewise for param "insn".
1988 (sh_can_redirect_branch): Likewise for local "insn".
1989 (find_r0_life_regions): Likewise for locals "end", "insn".
1990 (sh_output_mi_thunk): Likewise for local "insns".
1991
1992 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1993
1994 * config/score/score.c (score_output_mi_thunk): Strengthen local
1995 "insn" from rtx to rtx_insn *.
1996 (score_prologue): Likewise.
1997
1998 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1999
2000 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2001 1 from rtx to rtx_insn *.
2002 (s390_emit_jump): Likewise for return type.
2003 (s390_emit_call): Likewise.
2004 (s390_load_got): Likewise.
2005
2006 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2007 variable.
2008 (s390_match_ccmode): Likewise for param "insn".
2009 (s390_emit_jump): Likewise for return type.
2010 (s390_split_branches): Likewise for local "label".
2011 (struct constant): Strengthen field "label" from rtx to
2012 rtx_code_label *.
2013 (struct constant_pool): Likewise for field "label". Strengthen
2014 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2015 rtx_insn *.
2016 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2017 insns.
2018 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2019 (s390_end_pool): Likewise.
2020 (s390_dump_pool): Likewise for local "insn".
2021 (s390_mainpool_start): Likewise.
2022 (s390_chunkify_start): Likewise.
2023 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2024 with insns. Strengthen locals "label", "jump", "barrier", "next",
2025 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2026 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2027 rtx_insn *.
2028 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2029 "jump", "label", "next_insn".
2030 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2031 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2032 "tbegin_insn".
2033 (s390_load_got): Likewise for return type and local "insns".
2034 (s390_save_gprs_to_fprs): Likewise for local "insn".
2035 (s390_restore_gprs_from_fprs): Likewise.
2036 (pass_s390_early_mach::execute): Likewise.
2037 (s390_emit_prologue): Likewise for local "insns".
2038 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2039 rtx_code_label *.
2040 (s390_emit_call): Strengthen return type and local "insn" from
2041 rtx to rtx_insn *.
2042 (s390_emit_tpf_eh_return): Likewise for local "insn".
2043 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2044 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2045 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2046 local "cur_insn".
2047 (s390_non_addr_reg_read_p): Likewise for param "insn".
2048 (find_cond_jump): Likewise for return type and param "insn".
2049 (s390_swap_cmp): Likewise for param "insn".
2050 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2051 "prev_insn", "next_insn".
2052 (s390_reorg): Likewise for locals "insn", "target".
2053 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2054 (s390_sched_variable_issue): For now, rename param "insn" to
2055 "uncast_insn", introducing a checked cast.
2056 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2057 insn.
2058 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2059 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2060
2061 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2062
2063 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2064 param from rtx to rtx_insn *.
2065 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2066
2067 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2068
2069 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2070 4 from rtx to rtx_insn *.
2071 (rs6000_final_prescan_insn): Likewise for first param.
2072 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2073 local "insn".
2074 (rs6000_get_some_local_dynamic_name): Likewise.
2075 (output_cbranch): Likewise for param "insn".
2076 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2077 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2078 (rs6000_emit_allocate_stack): Likewise for local "insn".
2079 (load_cr_save): Likewise.
2080 (restore_saved_cr): Likewise.
2081 (restore_saved_lr): Likewise.
2082 (emit_cfa_restores): Likewise.
2083 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2084 "deleted_debug_label".
2085 (rs6000_output_mi_thunk): Likewise for local "insn".
2086 (rs6000_final_prescan_insn): Likewise for param "insn".
2087
2088 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2089
2090 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2091 Strengthen param "insn" from rtx to rtx_insn *.
2092 * config/picochip/picochip.c (picochip_current_prescan_insn):
2093 Likewise for this variable.
2094 (picochip_final_prescan_insn): Likewise for param "insn".
2095
2096 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2097
2098 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2099 from rtx to rtx_insn *.
2100 (pa_output_indirect_call): Likewise.
2101 (pa_adjust_insn_length): Likewise.
2102 (pa_attr_length_millicode_call): Likewise.
2103 (pa_attr_length_call): Likewise.
2104 (pa_attr_length_indirect_call): Likewise.
2105
2106 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2107 "insn".
2108 (pa_attr_length_millicode_call): Likewise.
2109 (pa_attr_length_call): Likewise.
2110 (pa_output_call): Likewise.
2111 (pa_attr_length_indirect_call): Likewise.
2112 (pa_output_indirect_call): Likewise.
2113
2114 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2115
2116 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2117 Strengthen first param from rtx to rtx_insn *.
2118 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2119 param "insn".
2120
2121 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2122
2123 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2124 type from rtx to rtx_insn *.
2125 (mips_expand_call): Likewise.
2126 (mips_adjust_insn_length): Likewise for first param.
2127 (mips_output_conditional_branch): Likewise.
2128 (mips_output_order_conditional_branch): Likewise.
2129 (mips_final_prescan_insn): Likewise.
2130
2131 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2132 rtx_insn * for the SEQUENCE case.
2133 (SEQ_END): Likewise.
2134 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2135 (mips_emit_call_insn): Likewise, also for local "insn".
2136 (mips16_gp_pseudo_reg): Likewise for local "scan".
2137 (mips16_build_call_stub): Likewise for return type and for local
2138 "insn". Introduce a new local "pattern" so that "insn" can indeed
2139 be an insn.
2140 (mips_expand_call): Strengthen return type and local "insn" from
2141 rtx to rtx_insn *.
2142 (mips_block_move_loop): Strengthen local "label" from rtx to
2143 rtx_code_label *.
2144 (mips_expand_synci_loop): Likewise for locals "label",
2145 "end_label".
2146 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2147 rtx_insn *.
2148 (mips16e_collect_argument_saves): Likewise for locals "insn",
2149 "next".
2150 (mips_find_gp_ref): Likewise for param of callback for "pred"
2151 param, and for local "insn".
2152 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2153 (mips_insn_has_flexible_gp_ref_p): Likewise.
2154 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2155 local "insn".
2156 (mips_epilogue_set_cfa): Likewise for local "insn".
2157 (mips_expand_epilogue): Likewise.
2158 (mips_adjust_insn_length): Likewise for param "insn".
2159 (mips_output_conditional_branch): Likewise.
2160 (mips_output_order_conditional_branch): Likewise.
2161 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2162 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2163 "falu2_turn_enabled_insn".
2164 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2165 "done_label" from rtx to rtx_code_label *.
2166 (struct mips16_constant): Likewise for field "label".
2167 (mips16_add_constant): Likewise for return type.
2168 (mips16_emit_constants_1): Strengthen return type and param "insn"
2169 from rtx to rtx_insn *.
2170 (mips16_emit_constants): Likewise for param "insn".
2171 (mips16_insn_length): Likewise.
2172 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2173 to rtx_code_label *.
2174 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2175 from rtx to rtx_insn *.
2176 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2177 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2178 (r10k_simplify_address): Strengthen param "insn" and local
2179 "def_insn" from rtx to rtx_insn *.
2180 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2181 rtx_insn *.
2182 (r10k_needs_protection_p_1): Update target type of cast of data
2183 from to rtx to rtx_insn *.
2184 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2185 rtx * to rtx_insn **.
2186 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2187 rtx_insn *.
2188 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2189 (mips_call_expr_from_insn): Likewise for param "insn".
2190 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2191 (mips_find_pic_call_symbol): Likewise for param "insn".
2192 (mips_annotate_pic_calls): Likewise for local "insn".
2193 (mips_sim_insn): Likewise for this variable.
2194 (struct mips_sim): Likewise for field "insn" within elements of
2195 last_set array.
2196 (mips_sim_wait_reg): Likewise for param "insn".
2197 (mips_sim_wait_regs): Likewise.
2198 (mips_sim_wait_units): Likewise.
2199 (mips_sim_wait_insn): Likewise.
2200 (mips_sim_issue_insn): Likewise.
2201 (mips_sim_finish_insn): Likewise.
2202 (mips_seq_time): Likewise for param "seq" and local "insn".
2203 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2204 locals "first", "second".
2205 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2206 "last", "last2", "next".
2207 (mips_avoid_hazard): Likewise for params "after", "insn".
2208 (mips_reorg_process_insns): Likewise for locals "insn",
2209 "last_insn", "subinsn", "next_insn".
2210 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2211 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2212 "jump_sequence".
2213 (mips_output_mi_thunk): Likewise for local "insn".
2214 (mips_final_prescan_insn): Likewise for param "insn".
2215
2216 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2217
2218 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2219 Strengthen return type and local "insns" from rtx to rtx_insn *.
2220 (microblaze_legitimize_tls_address): Likewise for local "insns".
2221 (microblaze_block_move_loop): Strengthen local "label" from rtx
2222 to rtx_code_label *.
2223 (microblaze_expand_prologue): Strengthen two locals named "insn"
2224 from rtx to rtx_insn *.
2225 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2226 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2227 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2228 to rtx_code_label *.
2229
2230 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2231
2232 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2233 param from rtx to rtx_insn *.
2234 (mep_reuse_lo): Likewise for third param.
2235 (mep_use_post_modify_p): Likewise for first param.
2236 (mep_core_address_length): Likewise.
2237 (mep_cop_address_length): Likewise.
2238 (mep_final_prescan_insn): Likewise.
2239 (mep_store_data_bypass_p): Likewise for both params.
2240 (mep_mul_hilo_bypass_p): Likewise.
2241 (mep_ipipe_ldc_p): Likewise for param.
2242
2243 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2244 (mep_rewrite_mult): Likewise.
2245 (mep_rewrite_mulsi3): Likewise.
2246 (mep_rewrite_maddsi3): Likewise.
2247 (mep_reuse_lo_p_1): Likewise.
2248 (mep_reuse_lo_p): Likewise.
2249 (mep_frame_expr): Likewise.
2250 (mep_make_parallel): Likewise for both params.
2251 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2252 local "insn".
2253 (mep_use_post_modify_p): Likewise for param "insn".
2254 (mep_core_address_length): Likewise.
2255 (mep_cop_address_length): Likewise.
2256 (mep_reg_set_in_function): Likewise for local "insn".
2257 (mep_asm_without_operands_p): Likewise.
2258 (F): Likewise for return type and param "x".
2259 (add_constant): Likewise for local "insn".
2260 (maybe_dead_move): Likewise for return type and local "insn".
2261 (mep_expand_prologue): Likewise for local "insn".
2262 (mep_final_prescan_insn): Likewise for param "insn".
2263 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2264 "next", "follow", "x".
2265 (mep_insert_repeat_label_last): Likewise for return type, param
2266 "last_insn", and locals "next", "prev". Strengthen param "label"
2267 from rtx to rtx_code_label *.
2268 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2269 rtx_insn *.
2270 (struct mep_doloop_end): Likewise for fields "insn" and
2271 "fallthrough".
2272 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2273 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2274 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2275 rtx_insn *.
2276 (mep_invert_branch): Likewise for params "insn" and "after".
2277 (mep_reorg_erepeat): Likewise for param "insns" and locals
2278 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2279 "l" from rtx to rtx_code_label *.
2280 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2281 from rtx to rtx_insn *.
2282 (mep_reorg_addcombine): Likewise for param "insns" and locals
2283 "i", "n".
2284 (add_sp_insn_p): Likewise for param "insn".
2285 (mep_reorg_noframe): Likewise for param "insns" and locals
2286 "start_frame_insn", "end_frame_insn", "next".
2287 (mep_reorg): Likewise for local "insns".
2288 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2289 cast.
2290 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2291 (mep_mul_hilo_bypass_p): Likewise.
2292 (mep_ipipe_ldc_p): Likewise for param "insn".
2293 (mep_make_bundle): Likewise for return type, param "cop" and local
2294 "insn", splitting out the latter into a new local "seq" for when it
2295 is a SEQUENCE rather than an insn.
2296 (core_insn_p): Likewise for param "insn".
2297 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2298 "last", "first", "note", "prev", "core_insn".
2299
2300 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2301
2302 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2303 rtx to rtx_insn *.
2304 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2305 (m68k_final_prescan_insn): Likewise for first param.
2306
2307 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2308 (m68k_set_frame_related): Likewise for param "insn".
2309 (output_btst): Likewise for param "insn".
2310 (m68k_final_prescan_insn): Likewise.
2311 (m68k_move_to_reg): Likewise for local "insn".
2312 (m68k_call_tls_get_addr): Likewise for local "insns".
2313 (m68k_call_m68k_read_tp): Likewise.
2314 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2315 (m68k_output_mi_thunk): Likewise for local "insn".
2316
2317 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2318
2319 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2320 first param from rtx to rtx_insn *.
2321 (iq2000_adjust_insn_length): Likewise.
2322 (iq2000_output_conditional_branch): Likewise.
2323 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2324 "insn" and local "nop_insn".
2325 (iq2000_annotate_frame_insn): Likewise for param "insn".
2326 (iq2000_expand_prologue): Likewise for both locals "insn".
2327 (iq2000_adjust_insn_length): Likewise for param "insn".
2328 (iq2000_output_conditional_branch): Likewise.
2329
2330 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2331
2332 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2333 "insns" from rtx to rtx_insn *.
2334 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2335 (struct spill_fill_data): Likewise for field "init_after" and for
2336 elements of array field "prev_insn".
2337 (spill_restore_mem): Likewise for locals "insn", "first".
2338 (do_spill): Likewise for local "insn".
2339 (do_restore): Likewise.
2340 (ia64_expand_prologue): Likewise.
2341 (ia64_expand_epilogue): Likewise.
2342 (emit_insn_group_barriers): Likewise for locals "insn",
2343 "last_label".
2344 (emit_all_insn_group_barriers): Likewise for locals "insn",
2345 "last".
2346 (dfa_stop_insn): Likewise for this global.
2347 (dfa_pre_cycle_insn): Likewise.
2348 (ia64_nop): Likewise.
2349 (final_emit_insn_group_barriers): Likewise for locals "insn",
2350 "last".
2351 (emit_predicate_relation_info): Likewise for locals "head", "n",
2352 "insn", "b", "a".
2353 (ia64_reorg): Likewise for local "insn".
2354 (ia64_output_mi_thunk): Likewise.
2355 (expand_vec_perm_interleave_2): Likewise for local "seq".
2356
2357 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2358
2359 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2360 param 1 "insn" from rtx to rtx_insn *.
2361 (ix86_use_lea_for_mov): Likewise.
2362 (ix86_avoid_lea_for_addr): Likewise.
2363 (ix86_split_lea_for_addr): Likewise.
2364 (ix86_lea_for_add_ok): Likewise.
2365 (ix86_output_call_insn): Likewise.
2366
2367 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2368 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2369 (ix86_output_function_epilogue): Likewise for locals "insn",
2370 "deleted_debug_label".
2371 (legitimize_tls_address): Likewise for local "insn".
2372 (get_some_local_dynamic_name): Likewise.
2373 (increase_distance): Likewise for params "prev", "next".
2374 (distance_non_agu_define_in_bb): Likewise for params "insn",
2375 "start" and locals "prev", "next".
2376 (distance_non_agu_define): Likewise for param "insn".
2377 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2378 locals "next", "prev".
2379 (distance_agu_use): Likewise for param "insn".
2380 (ix86_lea_outperforms): Likewise.
2381 (ix86_ok_to_clobber_flags): Likewise.
2382 (ix86_avoid_lea_for_add): Likewise.
2383 (ix86_use_lea_for_mov): Likewise.
2384 (ix86_avoid_lea_for_addr): Likewise.
2385 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2386 (ix86_split_lea_for_addr): Likewise for param "insn".
2387 (ix86_lea_for_add_ok): Likewise for param "insn".
2388 (ix86_expand_carry_flag_compare): Likewise for local
2389 "compare_seq".
2390 (ix86_expand_int_movcc): Likewise.
2391 (ix86_output_call_insn): Likewise for param "insn".
2392 (ix86_output_call_insn): Likewise for local "i".
2393 (x86_output_mi_thunk): Introduce local "insn", using it in place
2394 of "tmp" when dealing with insns.
2395 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2396 "start".
2397 (ix86_pad_returns): Likewise for locals "ret", "prev".
2398 (ix86_count_insn_bb): Likewise for local "insn".
2399 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2400 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2401 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2402 (expand_vec_perm_interleave2): Likewise for local "seq".
2403 (expand_vec_perm_vperm2f128_vblend): Likewise.
2404 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2405 call to for_each_rtx with for_each_rtx_in_insn.
2406
2407 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2408
2409 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2410 "label" from rtx to rtx_code_label *.
2411 (ix86_expand_prologue): Likewise.
2412 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2413 "varargs_label".
2414 (ix86_split_idivmod): Likewise for locals "end_label" and
2415 "qimode_label".
2416 (ix86_expand_branch): Likewise for local "label2".
2417 (ix86_expand_aligntest): Likewise for return type and local "label".
2418 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2419 "top_label".
2420 (expand_movmem_epilogue): Likewise for the various locals named
2421 "label".
2422 (expand_setmem_epilogue): Likewise.
2423 (expand_small_movmem_or_setmem): Likewise for local "label".
2424 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2425 Strengthen param "done_label" from rtx * to rtx_code_label **.
2426 Strengthen locals "loop_label" and "label" from rtx to
2427 rtx_code_label *.
2428 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2429 Likewise for locals "loop_label", "label".
2430 (ix86_expand_set_or_movmem): Likewise for locals "label",
2431 "jump_around_label", "hot_label".
2432 (ix86_expand_strlensi_unroll_1): Likewise for locals
2433 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2434 "end_2_label".
2435 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2436 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2437 "label2", "jump_label".
2438 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2439 local "label".
2440 (ix86_expand_lfloorceil): Likewise for local "label".
2441 (ix86_expand_rint): Likewise.
2442 (ix86_expand_floorceildf_32): Likewise.
2443 (ix86_expand_floorceil): Likewise.
2444 (ix86_expand_rounddf_32): Likewise.
2445 (ix86_expand_trunc): Likewise.
2446 (ix86_expand_truncdf_32): Likewise.
2447 (ix86_expand_round): Likewise.
2448
2449 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2450
2451 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2452 first param from rtx to rtx_insn *.
2453 (h8300_insn_length_from_table): Likewise.
2454 * config/h8300/h8300.c (F): Likewise for return type and param
2455 "x".
2456 (Fpa): Add a checked cast to rtx_insn *.
2457 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2458 rtx_insn *.
2459 (final_prescan_insn): Likewise for param "insn".
2460 (h8300_binary_length): Likewise.
2461 (h8300_insn_length_from_table): Likewise.
2462
2463 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2464
2465 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2466 Strengthen first param "insn" from rtx to rtx_insn *.
2467
2468 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2469 Likewise.
2470 (frame_insn): Likewise for return type. Introduce local "insn"
2471 for use in place of local "x" for use as an rtx_insn *.
2472 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2473 (epiphany_expand_prologue): Likewise for local "insn".
2474 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2475 * config/epiphany/resolve-sw-modes.c
2476 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2477 "seq".
2478
2479 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2480
2481 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2482 param from rtx to rtx_insn *.
2483 (c6x_final_prescan_insn): Likewise for first param.
2484
2485 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2486 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2487 (c6x_expand_compare): Strengthen local "insns" from rtx to
2488 rtx_insn *.
2489 (c6x_get_unit_specifier): Likewise for param "insn".
2490 (c6x_print_unit_specifier_field): Likewise.
2491 (c6x_final_prescan_insn): Likewise.
2492 (emit_add_sp_const): Likewise for local "insn".
2493 (c6x_expand_prologue): Likewise.
2494
2495 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2496
2497 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2498 param 1 from rtx to rtx_insn *.
2499 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2500 the various locals named "insn".
2501 (expand_epilogue_reg_restore): Likewise.
2502 (frame_related_constant_load): Likewise.
2503 (add_to_reg): Likewise.
2504 (emit_link_insn): Likewise.
2505 (do_link): Likewise.
2506 (expand_interrupt_handler_prologue): Likewise.
2507 (branch_dest): Likewise for param "branch".
2508 (asm_conditional_branch): Likewise for param "insn".
2509 (gen_one_bundle): Likewise for elements of param "slot" and local
2510 "t".
2511 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2512 elements of local "slot".
2513 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2514 "queue", "next_queue", "prev".
2515 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2516 (add_sched_insns_for_speculation): Likewise for local "insn".
2517
2518 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2519
2520 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2521 from rtx to rtx_insn *.
2522 (output_movhi): Likewise.
2523 (output_movsisf): Likewise.
2524 (avr_out_tstsi): Likewise.
2525 (avr_out_tsthi): Likewise.
2526 (avr_out_tstpsi): Likewise.
2527 (avr_out_compare): Likewise.
2528 (avr_out_compare64): Likewise.
2529 (avr_out_movpsi): Likewise.
2530 (ashlqi3_out): Likewise.
2531 (ashlhi3_out): Likewise.
2532 (ashlsi3_out): Likewise.
2533 (ashrqi3_out): Likewise.
2534 (ashrhi3_out): Likewise.
2535 (ashrsi3_out): Likewise.
2536 (lshrqi3_out): Likewise.
2537 (lshrhi3_out): Likewise.
2538 (lshrsi3_out): Likewise.
2539 (avr_out_ashlpsi3): Likewise.
2540 (avr_out_ashrpsi3): Likewise.
2541 (avr_out_lshrpsi3): Likewise.
2542 (avr_out_fract): Likewise.
2543 (avr_out_sbxx_branch): Likewise.
2544 (avr_out_round): Likewise.
2545 (avr_out_xload): Likewise.
2546 (avr_out_movmem): Likewise.
2547 (adjust_insn_length): Likewise.
2548 (avr_out_lpm): Likewise.
2549 (reg_unused_after): Likewise.
2550 (_reg_unused_after): Likewise.
2551 (avr_jump_mode): Likewise for second param.
2552 (jump_over_one_insn): Likewise for first param.
2553 (avr_final_prescan_insn): Likewise.
2554 (out_shift_with_cnt): Likewise for second param.
2555
2556 * config/avr/avr.c (get_sequence_length): Likewise for param
2557 "insns" and local "insn".
2558 (emit_push_byte): Likewise for local "insn".
2559 (emit_push_sfr): Likewise.
2560 (avr_prologue_setup_frame): Likewise for locals "insn",
2561 "fp_plus_insns", "sp_plus_insns".
2562 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2563 "sp_plus_insns".
2564 (avr_jump_mode): Likewise for param "insn".
2565 (avr_final_prescan_insn): Likewise.
2566 (avr_find_unused_d_reg): Likewise.
2567 (avr_out_lpm_no_lpmx): Likewise.
2568 (avr_out_lpm): Likewise.
2569 (avr_out_xload): Likewise.
2570 (output_movqi): Likewise.
2571 (output_movhi): Likewise.
2572 (out_movqi_r_mr): Likewise.
2573 (out_movhi_r_mr): Likewise.
2574 (out_movsi_r_mr): Likewise.
2575 (out_movsi_mr_r): Likewise.
2576 (output_movsisf): Likewise.
2577 (avr_out_load_psi): Likewise.
2578 (avr_out_store_psi): Likewise.
2579 (avr_out_movpsi): Likewise.
2580 (out_movqi_mr_r): Likewise.
2581 (avr_out_movhi_mr_r_xmega): Likewise.
2582 (out_movhi_mr_r): Likewise.
2583 (compare_condition): Likewise for param "insn" and local "next".
2584 (compare_sign_p): Likewise for param "insn".
2585 (compare_diff_p): Likewise.
2586 (compare_eq_p): Likewise.
2587 (avr_out_compare): Likewise.
2588 (avr_out_compare64): Likewise.
2589 (avr_out_tsthi): Likewise.
2590 (avr_out_tstpsi): Likewise.
2591 (avr_out_tstsi): Likewise.
2592 (out_shift_with_cnt): Likewise.
2593 (ashlqi3_out): Likewise.
2594 (ashlhi3_out): Likewise.
2595 (avr_out_ashlpsi3): Likewise.
2596 (ashlsi3_out): Likewise.
2597 (ashrqi3_out): Likewise.
2598 (ashrhi3_out): Likewise.
2599 (avr_out_ashrpsi3): Likewise.
2600 (ashrsi3_out): Likewise.
2601 (lshrqi3_out): Likewise.
2602 (lshrhi3_out): Likewise.
2603 (avr_out_lshrpsi3): Likewise.
2604 (lshrsi3_out): Likewise.
2605 (avr_out_fract): Likewise.
2606 (avr_out_round): Likewise.
2607 (avr_adjust_insn_length): Likewise.
2608 (reg_unused_after): Likewise.
2609 (_reg_unused_after): Likewise.
2610 (avr_compare_pattern): Likewise.
2611 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2612 and locals "branch1", "branch2", "insn2", "jump".
2613 (avr_reorg): Likewise for local "insn".
2614 (avr_2word_insn_p): Likewise for param "insn".
2615 (jump_over_one_insn_p): Likewise.
2616 (avr_out_sbxx_branch): Likewise.
2617 (avr_out_movmem): Likewise.
2618
2619 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2620
2621 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2622 param from rtx to rtx_insn *.
2623 (thumb1_final_prescan_insn): Likewise.
2624 (thumb2_final_prescan_insn): Likewise.
2625
2626 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2627 rtx to rtx_insn *.
2628 (struct minipool_node): Likewise for field "insn".
2629 (dump_minipool): Likewise for param "scan".
2630 (create_fix_barrier): Likewise for local "from". Strengthen local
2631 "label" from rtx to rtx_code_label *.
2632 (push_minipool_barrier): Strengthen param "insn" from rtx to
2633 rtx_insn *.
2634 (push_minipool_fix): Likewise.
2635 (note_invalid_constants): Likewise.
2636 (thumb2_reorg): Likewise for local "insn".
2637 (arm_reorg): Likewise.
2638 (thumb2_final_prescan_insn): Likewise for param
2639 "insn" and local "first_insn".
2640 (arm_final_prescan_insn): Likewise for param "insn" and locals
2641 "start_insn", "this_insn".
2642 (arm_debugger_arg_offset): Likewise for param "insn".
2643 (thumb1_emit_multi_reg_push): Likewise for return type and local
2644 "insn".
2645 (thumb1_final_prescan_insn): Likewise for param "insn".
2646 (thumb_far_jump_used_p): Likewise for local "insn".
2647 (thumb1_expand_prologue): Likewise.
2648 (arm_expand_epilogue_apcs_frame): Likewise.
2649 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2650 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2651 from rtx to rtx_code_label *.
2652 (arm_split_atomic_op): Likewise for local "label".
2653 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2654
2655 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2656
2657 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2658 first param from rtx to rtx_insn *.
2659 (arc_verify_short): Likewise.
2660 (arc_short_long): Likewise.
2661 (arc_need_delay): Likewise.
2662
2663 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2664 "target_insn".
2665 (arc_ccfsm_advance): Likewise for param "insn" and locals
2666 "start_insn", "this_insn".
2667 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2668 (arc_ccfsm_post_advance): Likewise for param "insn".
2669 (arc_next_active_insn): Likewise for return type and param "insn".
2670 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2671 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2672 (output_short_suffix): Likewise for local "insn".
2673 (arc_final_prescan_insn): Likewise for param "insn". Remove
2674 now-redundant checked cast.
2675 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2676 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2677 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2678 for use where lc_set became an insn.
2679 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2680 rtx to rtx_insn *.
2681 (arc_get_insn_variants): Likewise for local "prev".
2682 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2683 "next".
2684 (arc_predicate_delay_insns): Likewise for local "insn".
2685 (arc_pad_return): Likewise for local "prev". For now, add a
2686 checked cast when extracting the insn from "final_sequence".
2687 (arc_short_long): Likewise for param "insn".
2688 (arc_need_delay): Likewise for param "insn" and local "next".
2689 (arc_label_align): Likewise for locals "prev", "next".
2690
2691 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2692
2693 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2694 "insn" from rtx to rtx_insn *.
2695 (alpha_gp_save_rtx): Likewise for local "seq".
2696 (alpha_instantiate_decls): Likewise for local "top".
2697 (get_some_local_dynamic_name): Likewise for local "insn".
2698 (alpha_does_function_need_gp): Likewise.
2699 (set_frame_related_p): Likewise for return type and for locals
2700 "seq" and "insn".
2701 (emit_frame_store_1): Likewise for local "insn".
2702 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2703 (alpha_end_function): Likewise for local "insn".
2704 (alpha_output_mi_thunk_osf): Likewise.
2705 (alphaev4_insn_pipe): Likewise for param "insn".
2706 (alphaev5_insn_pipe): Likewise.
2707 (alphaev4_next_group): Likewise for return type and param 1
2708 "insn".
2709 (alphaev5_next_group): Likewise.
2710 (alpha_align_insns_1): Likewise for return type and param 1 of
2711 callback param "next_group", and for locals "i", "next", "prev",
2712 "where", "where2", "insn".
2713
2714 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2715
2716 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2717 rather than modifying the stmt.
2718
2719 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2720
2721 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2722 cgraph_state conversion.
2723
2724 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2725
2726 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2727 Strengthen local "insns" from rtx to rtx_insn *.
2728 (aarch64_set_frame_expr): Likewise for local "insn".
2729 (aarch64_save_or_restore_fprs): Likewise.
2730 (aarch64_save_or_restore_callee_save_registers): Likewise.
2731 (aarch64_expand_prologue): Likewise.
2732 (aarch64_expand_epilogue): Likewise.
2733 (aarch64_output_mi_thunk): Likewise.
2734 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2735 "label2" from rtx to rtx_code_label *.
2736 (aarch64_split_atomic_op): Likewise for local "label".
2737
2738 2014-08-25 Martin Liska <mliska@suse.cz>
2739
2740 * cgraph.h (symtab_node):
2741 (bool needed_p (void)): created from decide_is_symbol_needed
2742 (bool referred_to_p (void)): created from referred_to_p
2743 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2744 * cgraph.h (cgraph_node):
2745 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2746 (void expand (void)): created from expand_function
2747 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2748 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2749 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2750 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2751 * cgraph.h (varpool_node):
2752 (static void add (tree decl): created from varpool_add_new_variable
2753 * cgraph.h (cgraph_edge):
2754 void remove (void);
2755 (void remove_caller (void)): created from cgraph_edge_remove_caller
2756 (void remove_callee (void)): created from cgraph_edge_remove_callee
2757 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2758 created from cgraph_set_call_stmt
2759 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2760 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2761 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2762 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2763 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2764 created from cgraph_speculative_call_info
2765 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2766 int freq_scale, bool update_original)): created from cgraph_clone_edge
2767 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2768 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2769 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2770 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2771 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2772 (static void rebuild_references (void)): created from cgraph_rebuild_references
2773 * cgraph.h (symbol_table):
2774 (create_reference): renamed from add_reference
2775 (maybe_create_reference): renamed from maybe_add_reference
2776 (void register_symbol (symtab_node *node)): new function
2777 (void clear_asm_symbols (void)): new function
2778 (void unregister (symtab_node *node)): new function
2779 (void release_symbol (cgraph_node *node, int uid)): new function
2780 (cgraph_node * allocate_cgraph_symbol (void)): new function
2781 (void initialize (void)): created from cgraph_init
2782 (symtab_node *first_symbol (void)):new function
2783 (asm_node *first_asm_symbol (void)):new function
2784 (symtab_node *first_defined_symbol (void)):new function
2785 (varpool_node *first_variable (void)):new function
2786 (varpool_node *next_variable (varpool_node *node)):new function
2787 (varpool_node *first_static_initializer (void)):new function
2788 (varpool_node *next_static_initializer (varpool_node *node)):new function
2789 (varpool_node *first_defined_variable (void)):new function
2790 (varpool_node *next_defined_variable (varpool_node *node)):new function
2791 (cgraph_node *first_defined_function (void)):new function
2792 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2793 (cgraph_node *first_function (void)):new function
2794 (cgraph_node *next_function (cgraph_node *node)):new function
2795 (cgraph_node *first_function_with_gimple_body (void)):new function
2796 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2797 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2798 created from symtab_remove_unreachable_nodes
2799 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2800 (void process_new_functions (void)): created from cgraph_process_new_functions
2801 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2802 (bool output_variables (void)): created from varpool_node::output_variables
2803 (void output_asm_statements (void)): created from output_asm_statements
2804 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2805 (void compile (void)): created from compile
2806 (void output_weakrefs (void)): created from output_weakrefs
2807 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2808 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2809 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2810 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2811 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2812 created from cgraph_next_function_with_gimple_body
2813 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2814 created from cgraph_remove_edge_removal_hook
2815 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2816 created from cgraph_add_node_removal_hook
2817 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2818 created from cgraph_remove_node_removal_hook
2819 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2820 created from varpool_add_node_removal_hook
2821 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2822 created from varpool_remove_node_removal_hook
2823 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2824 created from cgraph_add_function_insertion_hook
2825 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2826 created from cgraph_remove_function_insertion_hook
2827 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2828 created from varpool_add_variable_insertion_hook
2829 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2830 created from varpool_remove_variable_insertion_hook
2831 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2832 created from cgraph_add_edge_duplication_hook
2833 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2834 created from cgraph_remove_edge_duplication_hook
2835 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2836 created from cgraph_add_node_duplication_hook
2837 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2838 created from cgraph_remove_node_duplication_hook
2839 (void call_edge_removal_hooks (cgraph_edge *e)):
2840 created from cgraph_call_edge_removal_hooks
2841 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2842 created from call_function_insertion_hooks
2843 (void call_cgraph_removal_hooks (cgraph_node *node)):
2844 created from cgraph_call_node_removal_hooks
2845 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2846 created from cgraph_node::call_duplication_hooks
2847 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2848 created from cgraph_call_edge_duplication_hooks
2849 (void call_varpool_removal_hooks (varpool_node *node)):
2850 created from varpool_call_node_removal_hooks
2851 (void call_varpool_insertion_hooks (varpool_node *node)):
2852 created from varpool_call_variable_insertion_hooks
2853 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2854 created from insert_to_assembler_name_hash
2855 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2856 created from unlink_from_assembler_name_hash
2857 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2858 created from symtab_prevail_in_asm_name_hash
2859 (void symtab_initialize_asm_name_hash (void)):
2860 created from symtab_initialize_asm_name_hash
2861 (void change_decl_assembler_name (tree decl, tree name)):
2862 created from change_decl_assembler_name
2863 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2864 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2865 created from decl_assembler_name_hash
2866 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2867 created from decl_assembler_name_equal
2868 (static hashval_t hash_node_by_assembler_name (const void *p)):
2869 created from hash_node_by_assembler_name
2870 (static int eq_assembler_name (const void *p1, const void *p2)):
2871 created from eq_assembler_name
2872
2873 2014-08-25 Marek Polacek <polacek@redhat.com>
2874
2875 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2876
2877 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2878
2879 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2880 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2881 SWI1248_AVX512BW mode iterator.
2882
2883 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2884
2885 PR target/62111
2886 * config/sh/predicates.md (general_extend_operand): Disable
2887 TRUNCATE before reload completes.
2888
2889 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2890
2891 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2892
2893 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2894
2895 PR target/61996
2896 * config/sh/sh.opt (musermode): Allow negative form.
2897 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2898 targets that don't support it.
2899 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2900 Document -mno-usermode option.
2901
2902 2014-08-24 Kito Cheng <kito@0xlab.org>
2903
2904 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2905 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2906 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2907 * doc/tm.texi: Regenerate.
2908
2909 2014-08-24 Kito Cheng <kito@0xlab.org>
2910
2911 * ira.c: Fix typo in comment.
2912
2913 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2914
2915 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2916 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2917
2918 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2919
2920 PR target/62038
2921 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2922 last_address when the current function is a thunk.
2923 (pa_asm_output_mi_thunk): When we don't have named sections or they
2924 are not being used, check that thunk can reach the stub table with a
2925 short branch.
2926
2927 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2928
2929 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2930 rtx_insn *.
2931 (pass_web::execute): Likewise for local "insn".
2932
2933 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2934
2935 * var-tracking.c (struct micro_operation_def): Strengthen field
2936 "insn" from rtx to rtx_insn *.
2937 (struct emit_note_data_def): Likewise.
2938 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2939 (vt_stack_adjustments): Likewise for local "insn".
2940 (adjust_insn): Likewise for param "insn".
2941 (val_store): Likewise.
2942 (val_resolve): Likewise.
2943 (struct count_use_info): Likewise for field "insn".
2944 (log_op_type): Likewise for param "insn".
2945 (reverse_op): Likewise.
2946 (prepare_call_arguments): Likewise.
2947 (add_with_sets): The initial param takes an insn, but we can't
2948 yet strengthen it from rtx to rtx_insn * since it's used as a
2949 cselib_record_sets_hook callback. For now rename initial param
2950 from "insn" to "uncast_insn", and introduce a local "insn" of
2951 the stronger rtx_insn * type, with a checked cast.
2952 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2953 rtx_insn *.
2954 (emit_note_insn_var_location): Likewise.
2955 (emit_notes_for_changes): Likewise.
2956 (emit_notes_for_differences): Likewise.
2957 (next_non_note_insn_var_location): Likewise for return type and
2958 for param "insn".
2959 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2960 (vt_initialize): Likewise for local "insn".
2961 (delete_debug_insns): Likewise for locals "insn" and "next".
2962
2963 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2964
2965 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2966 rtx_insn *.
2967 (mark_constant_pool): Likewise for local "insn".
2968
2969 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2970
2971 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2972 rtx to rtx_insn *.
2973 (dead_debug_promote_uses): Likewise.
2974 (dead_debug_insert_temp): Likewise.
2975
2976 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2977
2978 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2979 from const_rtx to const rtx_insn *.
2980 (store_killed_after): Likewise. Strengthen locals "last", "act"
2981 from rtx to rtx_insn *.
2982 (store_killed_before): Strengthen param "insn" from const_rtx to
2983 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2984 (find_moveable_store): Strengthen param "insn" from rtx to
2985 rtx_insn *.
2986 (compute_store_table): Likewise for local "insn".
2987 (insert_insn_start_basic_block): Likewise for param "insn" and
2988 locals "prev", "before", "insn".
2989 (insert_store): For now, add a checked cast to rtx_insn * on the
2990 result of gen_move_insn.
2991 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2992 to rtx_insn *.
2993 (replace_store_insn): Likewise. For now, add a checked cast to
2994 rtx_insn * on the result of gen_move_insn.
2995
2996 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2997
2998 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2999 rtx_insn *.
3000 (expand_sjlj_dispatch_table): Likewise.
3001
3002 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3003
3004 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3005 "insn" from rtx to rtx_insn *.
3006
3007 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3008
3009 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3010 "insn" from rtx to rtx_insn *.
3011 (dup_block_and_redirect): Likewise for param 3 "before".
3012
3013 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3014 from rtx to rtx_insn *.
3015 (move_insn_for_shrink_wrap): Likewise.
3016 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3017 (dup_block_and_redirect): Likewise for param "before" and local
3018 "insn".
3019 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3020 "end".
3021 (convert_to_simple_return): Likewise for local "start".
3022
3023 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3024 Strengthen local "insn" from rtx to rtx_insn *, for use when
3025 invoking requires_stack_frame_p.
3026
3027 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3028
3029 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3030 rtx_insn *.
3031 (speculate_expr): Likewise for locals "orig_insn_rtx",
3032 "spec_insn_rtx".
3033 (eq_transformed_insns): Likewise for locals "i1", "i2".
3034 (check_for_new_jump): Likewise for return type and local "end".
3035 (find_new_jump): Likewise for return type and local "jump".
3036 (sel_split_edge): Likewise for local "jump".
3037 (sel_create_recovery_block): Likewise.
3038 (sel_redirect_edge_and_branch_force): Likewise.
3039 (sel_redirect_edge_and_branch): Likewise.
3040
3041 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3042
3043 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3044 "new_insn" from rtx to rtx_insn *.
3045 (create_insn_rtx_with_rhs): Likewise for return type and for local
3046 "insn_rtx".
3047 (create_insn_rtx_with_lhs): Likewise.
3048 (create_speculation_check): Likewise for local "insn_rtx".
3049 (implicit_clobber_conflict_p): Likewise for local "insn".
3050 (get_expr_cost): Likewise.
3051 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3052 (move_cond_jump): Likewise for locals "next", "prev", "link",
3053 "head", "from", "to".
3054
3055 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3056
3057 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3058 "next" from rtx to rtx_insn *.
3059 (find_conditional_protection): Likewise for local "next".
3060 (is_conditionally_protected): Likewise for local "insn1".
3061 (is_pfree): Likewise for locals "insn1", "insn2".
3062
3063 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3064
3065 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3066 from rtx to rtx_insn *.
3067
3068 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3069 locals "insn1", "insn2" from rtx to rtx_insn *.
3070 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3071 locals "insn", "prev", "last_jump", "next_tail".
3072 (schedule_ebb): Likewise for params "head", "tail".
3073 (schedule_ebbs): Likewise for locals "tail", "head".
3074
3075 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3076 to rtx_insn on "last_insn" in one of the invocations of
3077 schedule_ebb.
3078
3079 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3080
3081 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3082 "elem", "insn" from rtx to rtx_insn *.
3083 (change_spec_dep_to_hard): Likewise.
3084 (get_back_and_forw_lists): Likewise for local "con".
3085 (sd_add_dep): Likewise for locals "elem", "insn".
3086 (sd_resolve_dep): Likewise for locals "pro", "con".
3087 (sd_unresolve_dep): Likewise.
3088 (sd_delete_dep): Likewise.
3089 (chain_to_prev_insn): Likewise for local "pro".
3090 (find_inc): Likewise for locals "pro", "con".
3091
3092 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3093
3094 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3095 to rtx_insn *.
3096 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3097 const rtx_insn *.
3098 (modified_between_p): Strengthen local "insn" from rtx to
3099 rtx_insn *.
3100 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3101 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3102 const rtx_insn *.
3103
3104 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3105
3106 * resource.c (next_insn_no_annul): Strengthen local "next" from
3107 rtx to rtx_insn *.
3108 (mark_referenced_resources): Likewise for local "insn".
3109
3110 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3111
3112 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3113 to rtx_insn *.
3114 (find_reloads): Likewise for param 1.
3115 (subst_reloads): Likewise for sole param.
3116 (find_equiv_reg): Likwise for param 2.
3117 (regno_clobbered_p): Likwise for param 2.
3118 (reload): Likewise for param 1.
3119
3120 * caller-save.c (save_call_clobbered_regs): Strengthen local
3121 "insn" from rtx to rtx_insn *.
3122 (insert_one_insn): Likewise for local "insn".
3123
3124 * reload.c (this_insn): Likewise for this global.
3125 (find_reloads): Likewise for param "insn".
3126 (find_reloads_toplev): Likewise.
3127 (find_reloads_address): Likewise.
3128 (subst_reg_equivs): Likewise.
3129 (update_auto_inc_notes): Likewise.
3130 (find_reloads_address_1): Likewise.
3131 (find_reloads_subreg_address): Likewise.
3132 (subst_reloads): Likewise.
3133 (find_equiv_reg): Likewise, also for local "p".
3134 (regno_clobbered_p): Likewise for param "insn".
3135
3136 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3137 array.
3138 (spill_reg_store): Likewise for the elements of this array.
3139 (remove_init_insns): Likewise for local "equiv_insn".
3140 (will_delete_init_insn_p): Likewise for param "insn".
3141 (reload): Likewise for param ""first" and local "insn".
3142 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3143 rtx_insn *.
3144 (calculate_elim_costs_all_insns): Likewise.
3145 (delete_caller_save_insns): Likewise.
3146 (spill_failure): Likewise for param "insn".
3147 (delete_dead_insn): Likewise.
3148 (set_label_offsets): Likewise.
3149 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3150 "prev_insn".
3151 (elimination_costs_in_insn): Likewise for param "insn".
3152 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3153 when referring to an insn.
3154 (set_initial_label_offsets): Likewise.
3155 (set_offsets_for_label): Strengthen param "insn" from rtx to
3156 rtx_insn *.
3157 (init_eliminable_invariants): Likewise for param "first" and local
3158 "insn".
3159 (fixup_eh_region_note): Likewise for param "insn".
3160 (reload_as_needed): Likewise for locals "prev", "insn",
3161 "old_next", "old_prev", "next".
3162 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3163 "last".
3164 (reload_inheritance_insn): Strengthen elements of this array from
3165 rtx to rtx_insn *.
3166 (failed_reload): Likewise for param "insn".
3167 (choose_reload_regs): Likewise for local "insn". Replace use of
3168 NULL_RTX with NULL when referring to an insn.
3169 (input_reload_insns): Strengthen elements of this array from rtx
3170 to rtx_insn *.
3171 (other_input_address_reload_insns): Likewise for this global.
3172 (other_input_reload_insns): Likewise for this global.
3173 (input_address_reload_insns): Likwise for the elements of this
3174 array.
3175 (inpaddr_address_reload_insns): Likwise for the elements of this
3176 array.
3177 (output_reload_insns): Likewise for the elements of this array.
3178 (output_address_reload_insns): Likewise for the elements of this
3179 array.
3180 (outaddr_address_reload_insns): Likewise for the elements of this
3181 array.
3182 (operand_reload_insns): Likewise for this global.
3183 (other_operand_reload_insns): Likewise for this global.
3184 (other_output_reload_insns): Likewise for the elements of this
3185 array.
3186 (new_spill_reg_store): Likewise for the elements of this
3187 array.
3188 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3189 Strengthen local "where" from rtx * to rtx_insn **.
3190 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3191 from rtx to rtx_insn *.
3192 (do_input_reload): Likewise for local "insn".
3193 (do_output_reload): Likewise for local "insn".
3194 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3195 (emit_insn_if_valid_for_reload): Likewise for return type and local
3196 "last". Add checked cast to rtx_insn when returning "insn" since
3197 this has been through emit_insn.
3198 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3199 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3200 returning "insn" since it's been through
3201 emit_insn_if_valid_for_reload at this point.
3202 (delete_output_reload): Strengthen param "insn" and locals
3203 "output_reload_insn", "i2" from rtx to rtx_insn *.
3204 (delete_address_reloads): Likewise for params "dead_insn",
3205 "current_insn" and locals "prev", "next".
3206 (delete_address_reloads_1): Likewise for params "dead_insn",
3207 "current_insn" and locals "prev", "i2".
3208 (inc_for_reload): Likewise for locals "last", "add_insn".
3209 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3210 rtx_insn *.
3211
3212 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3213 param of this duplicate of the prototype from reload.h
3214
3215 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3216
3217 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3218 rtx to rtx_insn *.
3219 (regstat_bb_compute_calls_crossed): Likewise.
3220
3221 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3222
3223 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3224 to rtx_insn *.
3225 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3226 with an insn.
3227 (regrename_analyze): Strengthen local "insn" from rtx to
3228 rtx_insn *.
3229 (scan_rtx_reg): Likewise for param "insn".
3230 (scan_rtx_address): Likewise.
3231 (scan_rtx): Likewise.
3232 (restore_operands): Likewise.
3233 (record_out_operands): Likewise.
3234 (build_def_use): Likewise for local "insn". Replace use of
3235 NULL_RTX with NULL when dealing with an insn.
3236
3237 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3238
3239 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3240 * reginfo.c (reg_scan): Likewise, also for local "insn".
3241 (reg_scan_mark_refs): Likewise for param "insn".
3242 (init_subregs_of_mode): Likewise for local "insn".
3243
3244 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3245
3246 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3247 "insn" from rtx to rtx_insn *.
3248 (replace_oldest_value_reg): Likewise for param "insn".
3249 (replace_oldest_value_addr): Likewise.
3250 (replace_oldest_value_mem): Likewise.
3251 (apply_debug_insn_changes): Likewise for local "last_insn".
3252 (copyprop_hardreg_forward_1): Likewise for local "insn".
3253
3254 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3255
3256 * reg-stack.c (next_flags_user): Strengthen return type and param
3257 "insn" from rtx to rtx_insn *.
3258 (straighten_stack): Likewise for param "insn".
3259 (check_asm_stack_operands): Likewise.
3260 (remove_regno_note): Likewise.
3261 (emit_pop_insn): Likewise for return type, param "insn", local
3262 "pop_insn".
3263 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3264 "limit" from rtx to rtx_insn *.
3265 (swap_to_top): Likewise for param "insn".
3266 (move_for_stack_reg): Likewise.
3267 (move_nan_for_stack_reg): Likewise.
3268 (swap_rtx_condition): Likewise.
3269 (compare_for_stack_reg): Likewise.
3270 (subst_all_stack_regs_in_debug_insn): Likewise.
3271 (subst_stack_regs_pat): Likewise, and local "insn2".
3272 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3273 rtx_insn *.
3274 (subst_stack_regs): Likewise.
3275 (change_stack): Likewise.
3276 (convert_regs_1): Likewise for locals "insn", "next".
3277
3278 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3279
3280 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3281 rtx_insn *.
3282 (combine_set_extension): Likewise for param "curr_insn".
3283 (transform_ifelse): Likewise for param "def_insn".
3284 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3285 from vec<rtx> * to vec<rtx_insn *> *.
3286 (is_cond_copy_insn): Likewise for param "insn".
3287 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3288 to vec<rtx_insn *>.
3289 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3290 local "def_insn" from rtx to rtx_insn *.
3291 (get_sub_rtx): Likewise for param "def_insn".
3292 (merge_def_and_ext): Likewise.
3293 (combine_reaching_defs): Likewise.
3294 (add_removable_extension): Likewise for param "insn".
3295 (find_removable_extensions): Likewise for local "insn".
3296 (find_and_remove_re): Likewise for locals "curr_insn" and
3297 "def_insn". Strengthen locals "reinsn_del_list" and
3298 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3299
3300 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3301
3302 * recog.c (split_insn): Strengthen param "insn" and locals
3303 "first", "last" from rtx to rtx_insn *.
3304 (split_all_insns): Likewise for locals "insn", "next".
3305 (split_all_insns_noflow): Likewise.
3306
3307 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3308
3309 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3310 const rtx_insn *.
3311 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3312 (debug_rtx_find): Likewise for param 1 "x".
3313
3314 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3315 const_rtx to const rtx_insn *. Likewise for local "insn".
3316 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3317 (debug_rtx_find): Likewise for param 1 "x".
3318 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3319 from const_rtx to const rtx_insn * within the appropriate cases of
3320 the switch statement.
3321
3322 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3323 Strengthen local "insns" from rtx to rtx_insn * since this is
3324 passed to a call to debug_rtx_list.
3325
3326 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3327
3328 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3329 to rtx_insn *.
3330
3331 * function.c (stack_protect_epilogue): Add checked cast to
3332 rtx_insn for now when invoking predict_insn_def.
3333
3334 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3335 rtx_insn *.
3336 (predict_insn_def): Likewise.
3337 (rtl_predict_edge): Likewise for local "last_insn".
3338 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3339 const rtx_insn *.
3340 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3341 to rtx_insn *.
3342 (bb_estimate_probability_locally): Likewise for local "last_insn".
3343 (expensive_function_p): Likewise for local "insn".
3344
3345 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3346 local "jmp", since this is used when invoking predict_insn_def.
3347
3348 2014-08-22 Marek Polacek <polacek@redhat.com>
3349
3350 PR c++/62199
3351 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3352
3353 2014-08-22 Marek Polacek <polacek@redhat.com>
3354
3355 PR c/61271
3356 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3357 a comparison in parens.
3358 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3359 in parens.
3360
3361 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3362
3363 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3364 rtx_insn *.
3365
3366 * cprop.c (fis_get_condition): Likewise.
3367
3368 * postreload.c (reload_cse_regs): Likewise for param "first".
3369 (reload_cse_simplify): Likewise for param "insn".
3370 (reload_cse_regs_1): Likewise for local "insn".
3371 (reload_cse_simplify_set): Likewise for param "insn".
3372 (reload_cse_simplify_operands): Likewise.
3373 (struct reg_use): Likewise for field "insn".
3374 (reload_combine_purge_insn_uses): Likewise for param "insn".
3375 (fixup_debug_insns): Likewise for params "from", "to" and local
3376 "insn".
3377 (try_replace_in_use): Likewise for local "use_insn".
3378 (reload_combine_recognize_const_pattern): Likewise for param
3379 "insn" and locals "add_moved_after_insn", "use_insn".
3380 (reload_combine_recognize_pattern): Likewise for param "insn" and
3381 local "prev".
3382 (reload_combine): Likewise for locals "insn", "prev".
3383 (reload_combine_note_use): Likewise for param "insn".
3384 (move2add_use_add2_insn): Likewise.
3385 (move2add_use_add3_insn): Likewise.
3386 (reload_cse_move2add): Likewise, also for local "next".
3387 (move2add_note_store): Likewise for local "insn".
3388
3389 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3390
3391 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3392 rtx to rtx_insn *.
3393 (struct unoccr): Likewise.
3394 (struct modifies_mem): Likewise.
3395 (alloc_mem): Likewise for local "insn".
3396 (insert_expr_in_table): Likewise for param "insn".
3397 (dump_expr_hash_table_entry): Likewise for local "insn".
3398 (oprs_unchanged_p): Likewise for param "insn".
3399 (load_killed_in_block_p): Likewise for local "setter".
3400 (record_last_reg_set_info): Likewise for param "insn".
3401 (record_last_reg_set_info_regno): Likewise.
3402 (record_last_mem_set_info): Likewise.
3403 (record_last_set_info): Likewise for local "last_set_insn".
3404 (record_opr_changes): Likewise for param "insn".
3405 (hash_scan_set): Likewise.
3406 (compute_hash_table): Likewise for local "insn".
3407 (get_avail_load_store_reg): Likewise for param "insn".
3408 (eliminate_partially_redundant_load): Likewise, also for locals
3409 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3410 RTX for insns.
3411 (eliminate_partially_redundant_loads): Likewise for local "insn".
3412
3413 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3414
3415 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3416 rtx to rtx_insn *.
3417 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3418 (expand_twoval_unop): Likewise for locals entry_last", "last".
3419 (expand_twoval_binop): Likewise.
3420 (expand_twoval_binop_libfunc): Likewise for local "insns".
3421 (widen_leading): Likewise for local "last".
3422 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3423 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3424 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3425 (expand_parity): Likewise for locals "last" and "seq".
3426 (expand_ffs): Likewise for local "seq". Strengthen local
3427 "nonzero_label" from rtx to rtx_code_label *.
3428 (expand_absneg_bit): Strengthen local "insns" from rtx to
3429 rtx_insn *.
3430 (expand_unop_direct): Likewise for local "last".
3431 (expand_unop): Likewise for locals "last", "insns".
3432 (expand_abs_nojump): Likewise for local "last".
3433 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3434 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3435 rtx_insn *.
3436 (expand_copysign_absneg): Strengthen local "label" from rtx to
3437 rtx_code_label *.
3438 (expand_copysign_bit): Strengthen local "insns" from rtx to
3439 rtx_insn *.
3440 (struct no_conflict_data): Likewise for fields "first", "insn".
3441 (emit_libcall_block_1): Likewise for param "insns" and locals
3442 "next", "last", "insn".
3443 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3444 on "insns" when invoking emit_libcall_block_1. Ultimately we
3445 want to strengthen insns itself.
3446 (prepare_cmp_insn): Strengthen local "last" from rtx to
3447 rtx_insn *.
3448 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3449 (prepare_float_lib_cmp): Likewise for local "insns".
3450 (emit_conditional_move): Likewise for local "last".
3451 (emit_conditional_add): Likewise.
3452 (have_sub2_insn): Likewise for local "seq".
3453 (expand_float): Likewise for local "insns". Strengthen locals
3454 "label", "neglabel" from rtx to rtx_code_label *.
3455 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3456 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3457 (expand_fixed_convert): Likewise for local "insns" (to
3458 rtx_insn *).
3459 (expand_sfix_optab): Likewise for local "last".
3460 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3461 to rtx_code_label *.
3462 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3463 from rtx to rtx_insn *.
3464 (expand_atomic_fetch_op): Likewise for local "insn".
3465 (maybe_legitimize_operand_same_code): Likewise for local "last".
3466 (maybe_legitimize_operands): Likewise.
3467
3468 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3469
3470 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3471 "insn" from rtx to rtx_insn *.
3472 (ps_rtl_insn): Likewise for return type.
3473 (doloop_register_get): Likewise for params "head", "tail" and
3474 locals "insn", "first_insn_not_to_check".
3475 (schedule_reg_move): Likewise for local "this_insn".
3476 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3477 of gen_move_insn for now.
3478 (reset_sched_times): Strengthen local "insn" from rtx to
3479 rtx_insn *.
3480 (permute_partial_schedule): Likewise.
3481 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3482 (dump_insn_location): Likewise for param "insn".
3483 (loop_canon_p): Likewise for local "insn".
3484 (sms_schedule): Likewise.
3485 (print_partial_schedule): Likewise.
3486 (ps_has_conflicts): Likewise.
3487
3488 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3489
3490 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3491 "tailp" from rtx * to rtx_insn **.
3492
3493 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3494 from rtx to rtx_insn *.
3495 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3496 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3497 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3498 rtx to rtx_insn *.
3499 * modulo-sched.c (const_iteration_count): Strengthen return type
3500 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3501 use of NULL_RTX with NULL when working with insns.
3502 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3503 to rtx_insn *.
3504 (sms_schedule): Likewise.
3505 * sched-rgn.c (init_ready_list): Likewise, also for locals
3506 "src_head" and "src_next_tail".
3507 (compute_block_dependences): Likewise.
3508 (free_block_dependencies): Likewise.
3509 (debug_rgn_dependencies): Likewise.
3510 (free_rgn_deps): Likewise.
3511 (compute_priorities): Likewise.
3512 (schedule_region): Likewise.
3513 * sel-sched.c (find_ebb_boundaries): Likewise.
3514
3515 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3516 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3517
3518 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3519
3520 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3521 from rtx to rtx_insn *.
3522 (new_seginfo): Likewise for param "insn".
3523 (create_pre_exit): Likewise for locals "last_insn",
3524 "before_return_copy", "return_copy".
3525 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3526 "mode_set".
3527
3528 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3529
3530 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3531 from rtx to rtx_insn *.
3532 (lra_push_insn): Likewise for 1st param.
3533 (lra_push_insn_and_update_insn_regno_info): Likewise.
3534 (lra_pop_insn): Likewise for return type.
3535 (lra_invalidate_insn_data): Likewise for 1st param.
3536 (lra_set_insn_deleted): Likewise.
3537 (lra_delete_dead_insn): Likewise.
3538 (lra_process_new_insns): Likewise for first 3 params.
3539 (lra_set_insn_recog_data): Likewise for 1st param.
3540 (lra_update_insn_recog_data): Likewise.
3541 (lra_set_used_insn_alternative): Likewise.
3542 (lra_invalidate_insn_regno_info): Likewise.
3543 (lra_update_insn_regno_info): Likewise.
3544 (lra_former_scratch_operand_p): Likewise.
3545 (lra_eliminate_regs_1): Likewise.
3546 (lra_get_insn_recog_data): Likewise.
3547
3548 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3549 rtx to rtx_insn *.
3550
3551 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3552 "mv1" and "mv2".
3553 (substitute_within_insn): New.
3554 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3555 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3556 Replace call to "substitute" with call to substitute_within_insn.
3557
3558 * lra-constraints.c (curr_insn): Strengthen from rtx to
3559 rtx_insn *.
3560 (get_equiv_with_elimination): Likewise for param "insn".
3561 (match_reload): Strengthen params "before" and "after" from rtx *
3562 to rtx_insn **.
3563 (emit_spill_move): Likewise for return type. Add a checked cast
3564 to rtx_insn * on result of gen_move_insn for now.
3565 (check_and_process_move): Likewise for local "before". Replace
3566 NULL_RTX with NULL when referring to insns.
3567 (process_addr_reg): Strengthen params "before" and "after" from
3568 rtx * to rtx_insn **.
3569 (insert_move_for_subreg): Likewise.
3570 (simplify_operand_subreg): Strengthen locals "before" and "after"
3571 from rtx to rtx_insn *.
3572 (process_address_1): Strengthen params "before" and "after" from
3573 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3574 rtx to rtx_insn *.
3575 (process_address): Strengthen params "before" and "after" from
3576 rtx * to rtx_insn **.
3577 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3578 (curr_insn_transform): Strengthen locals "before" and "after"
3579 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3580 to insns.
3581 (loc_equivalence_callback): Update cast of "data", changing
3582 resulting type from rtx to rtx_insn *.
3583 (substitute_pseudo_within_insn): New.
3584 (inherit_reload_reg): Strengthen param "insn" from rtx to
3585 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3586 NULL when referring to insns. Add a checked cast to rtx_insn *
3587 when using usage_insn to invoke lra_update_insn_regno_info.
3588 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3589 likewise for locals "restore", "save". Add checked casts to
3590 rtx_insn * when using usage_insn to invoke
3591 lra_update_insn_regno_info and lra_process_new_insns. Replace
3592 NULL_RTX with NULL when referring to insns.
3593 (split_if_necessary): Strengthen param "insn" from rtx to
3594 rtx_insn *.
3595 (update_ebb_live_info): Likewise for params "head", "tail" and local
3596 "prev_insn".
3597 (get_last_insertion_point): Likewise for return type and local "insn".
3598 (get_live_on_other_edges): Likewise for local "last".
3599 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3600 "prev_insn", "next_insn", "restore".
3601 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3602 (undo_optional_reloads): Likewise for local "insn".
3603
3604 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3605 "insn".
3606 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3607 insns.
3608 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3609 rtx_insn *.
3610 (spill_pseudos): Likewise for local "insn".
3611 (init_elimination): Likewise.
3612 (process_insn_for_elimination): Likewise for param "insn".
3613
3614 * lra-lives.c (curr_insn): Likewise.;
3615
3616 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3617 (remove_pseudos): Likewise for param "insn".
3618 (spill_pseudos): Likewise for local "insn".
3619 (lra_final_code_change): Likewise for locals "insn", "curr".
3620
3621 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3622 (lra_set_insn_deleted): Likewise.
3623 (lra_delete_dead_insn): Likewise, and for local "prev".
3624 (new_insn_reg): Likewise for param "insn".
3625 (lra_set_insn_recog_data): Likewise.
3626 (lra_update_insn_recog_data): Likewise.
3627 (lra_set_used_insn_alternative): Likewise.
3628 (get_insn_freq): Likewise.
3629 (invalidate_insn_data_regno_info): Likewise.
3630 (lra_invalidate_insn_regno_info): Likewise.
3631 (lra_update_insn_regno_info): Likewise.
3632 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3633 vec<rtx_insn *>.
3634 (lra_push_insn_1): Strengthen param "insn" from rtx to
3635 rtx_insn *.
3636 (lra_push_insn): Likewise.
3637 (lra_push_insn_and_update_insn_regno_info): Likewise.
3638 (lra_pop_insn): Likewise for return type and local "insn".
3639 (push_insns): Likewise for params "from", "to", and local "insn".
3640 (setup_sp_offset): Likewise for params "from", "last" and locals
3641 "before", "insn".
3642 (lra_process_new_insns): Likewise for params "insn", "before",
3643 "after" and local "last".
3644 (struct sloc): Likewise for field "insn".
3645 (lra_former_scratch_operand_p): Likewise for param "insn".
3646 (remove_scratches): Likewise for locals "insn", "last".
3647 (check_rtl): Likewise for local "insn".
3648 (add_auto_inc_notes): Likewise for param "insn".
3649 (update_inc_notes): Likewise for local "insn".
3650 (lra): Replace NULL_RTX with NULL when referring to insn.
3651
3652 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3653
3654 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3655 to rtx_insn *.
3656 (resolve_reg_notes): Likewise.
3657 (resolve_simple_move): Likewise for return type, param "insn", and
3658 locals "insns", "minsn".
3659 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3660 (resolve_use): Likewise.
3661 (resolve_debug): Likewise.
3662 (find_decomposable_shift_zext): Likewise.
3663 (resolve_shift_zext): Likewise for return type, param "insn", and
3664 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3665 (decompose_multiword_subregs): Likewise for local "insn",
3666 "orig_insn", "decomposed_shift", "end".
3667
3668 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3669
3670 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3671 param "insns" from rtx to rtx_insn *.
3672
3673 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3674 rtx to rtx_insn *.
3675 (struct iv_to_split): Likewise.
3676 (loop_exit_at_end_p): Likewise for local "insn".
3677 (split_edge_and_insert): Likewise for param "insns".
3678 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3679 and locals "seq", "jump".
3680 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3681 "branch_code"; update invocations of compare_and_jump_seq to
3682 eliminate NULL_RTX in favor of NULL.
3683 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3684 rtx to rtx_insn *.
3685 (reset_debug_uses_in_loop): Likewise.
3686 (analyze_insn_to_expand_var): Likewise for param "insn".
3687 (analyze_iv_to_split_insn): Likewise.
3688 (analyze_insns_in_loop): Likewise for local "insn".
3689 (insert_base_initialization): Likewise for param
3690 "insn" and local "seq".
3691 (split_iv): Likewise for param "insn" and local "seq".
3692 (expand_var_during_unrolling): Likewise for param "insn".
3693 (insert_var_expansion_initialization): Likewise for local "seq".
3694 (combine_var_copies_in_loop_exit): Likewise.
3695 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3696 "insn".
3697 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3698 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3699 "next".
3700
3701 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3702
3703 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3704 rtx_insn *.
3705 (iv_analyze_result): Likewise.
3706 (iv_analyze_expr): Likewise.
3707 (biv_p): Likewise.
3708
3709 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3710 local "def_insn" from rtx to rtx_insn *.
3711 (get_biv_step_1): Likewise for local "insn".
3712 (iv_analyze_expr): Likewise for param "insn".
3713 (iv_analyze_def): Likewise for local "insn".
3714 (iv_analyze_op): Likewise for param "insn".
3715 (iv_analyze): Likewise.
3716 (iv_analyze_result): Likewise.
3717 (biv_p): Likewise.
3718 (suitable_set_for_replacement): Likewise.
3719 (simplify_using_initial_values): Likewise for local "insn".
3720 (iv_number_of_iterations): Likewise for param "insn".
3721 (check_simple_exit): Add checked cast to rtx_insn when invoking
3722 iv_number_of_iterations for now (until get_condition is
3723 strengthened).
3724
3725 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3726 "insn" from rtx to rtx_insn *.
3727 (analyze_insns_in_loop): Likewise for local "insn".
3728
3729 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3730
3731 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3732 to rtx_insn *.
3733 (struct invariant): Likewise.
3734 (hash_invariant_expr_1): Likewise for param "insn".
3735 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3736 (find_exits): Likewise for local "insn".
3737 (create_new_invariant): Likewise for param "insn".
3738 (check_dependencies): Likewise.
3739 (find_invariant_insn): Likewise.
3740 (record_uses): Likewise.
3741 (find_invariants_insn): Likewise.
3742 (find_invariants_bb): Likewise for local "insn".
3743 (get_pressure_class_and_nregs): Likewise for param "insn".
3744 (calculate_loop_reg_pressure): Likewise for local "insn".
3745
3746 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3747
3748 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3749 to rtx_insn *.
3750 (add_test): Likewise for locals "seq", "jump".
3751 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3752
3753 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3754
3755 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3756 rtx_insn *.
3757 (rebuild_jump_labels_chain): Likewise for param "chain".
3758
3759 * cfgexpand.c (pass_expand::execute): Add checked cast to
3760 rtx_insn * when calling rebuild_jump_labels_chain in region where
3761 we know e->insns.r is non-NULL.
3762
3763 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3764 rtx_insn *.
3765 (rebuild_jump_labels): Likewise.
3766 (rebuild_jump_labels_chain): Likewise for param "chain".
3767 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3768 (init_label_info): Likewise for param "f".
3769 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3770 "prev_nonjump_insn".
3771 (mark_all_labels): Likewise for param "f" and locals "insn",
3772 "prev_nonjump_insn".
3773
3774 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3775
3776 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3777 from rtx to rtx_insn *insn.
3778 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3779 (ira_add_allocno_copy): Likewise.
3780 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3781 rtx to rtx_insn *.
3782 (ira_create_copy): Likewise.
3783 (ira_add_allocno_copy): Likewise.
3784 (create_bb_allocnos): Likewise for local "insn".
3785 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3786 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3787 process_regs_for_copy for rtx_insn * param.
3788 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3789 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3790 process_regs_for_copy for rtx_insn * param.
3791 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3792 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3793 (record_operand_costs): Likewise.
3794 (scan_one_insn): Likewise for return type, and for param "insn".
3795 (process_bb_for_costs): Likewise for local "insn".
3796 (process_bb_node_for_hard_reg_moves): Likewise.
3797 * ira-emit.c (struct move): Likewise for field "insn".
3798 (create_move): Eliminate use of NULL_RTX when dealing with an
3799 rtx_insn *.
3800 (emit_move_list): Strengthen return type and locals "result",
3801 "insn" from rtx to rtx_insn *insn.
3802 (emit_moves): Likewise for locals "insns", "tmp".
3803 (ira_emit): Likewise for local "insn".
3804 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3805 "insn".
3806 (find_call_crossed_cheap_reg): Likewise.
3807 (process_bb_node_lives): Likewise for local "insn".
3808 * ira.c (decrease_live_ranges_number): Likewise.
3809 (compute_regs_asm_clobbered): Likewise.
3810 (build_insn_chain): Likewise.
3811 (find_moveable_pseudos): Likewise, also locals "def_insn",
3812 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3813 to rtx_insn **. Add a checked cast when assigning from
3814 "closest_use" into closest_uses array in a region where we know
3815 it's a non-NULL insn.
3816 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3817 to rtx_insn *.
3818 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3819 "last_interesting_insn", "uin".
3820 (move_unallocated_pseudos): Likewise for locals "def_insn",
3821 "move_insn", "newinsn".
3822
3823 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3824
3825 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3826 Strengthen locals "done_label", "do_error" from rtx to
3827 rtx_code_label *.
3828 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3829 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3830 rtx_code_label *.
3831 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3832 "done_label", "do_error" to rtx_code_label * and local "last" to
3833 rtx_insn *.
3834 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3835 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3836 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3837 "after_lopart_neg", "do_overflow", "hipart_different" to
3838 rtx_code_label * and local "last" to rtx_insn *.
3839
3840 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3841
3842 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3843 "insn" and "move_insn" from rtx to rtx_insn *.
3844
3845 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3846
3847 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3848 rtx_insn *.
3849 (cheap_bb_rtx_cost_p): Likewise.
3850 (first_active_insn): Likewise for return type and local "insn".
3851 (last_active_insn): Likewise for return type and locals "insn",
3852 "head".
3853 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3854 "insn_b".
3855 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3856 "seq".
3857 (noce_try_move): Likewise for local "seq".
3858 (noce_try_store_flag): Likewise.
3859 (noce_try_store_flag_constants): Likewise.
3860 (noce_try_addcc): Likewise.
3861 (noce_try_store_flag_mask): Likewise.
3862 (noce_try_cmove): Likewise.
3863 (noce_try_minmax): Likewise.
3864 (noce_try_abs): Likewise.
3865 (noce_try_sign_mask): Likewise.
3866 (noce_try_bitop): Likewise.
3867 (noce_can_store_speculate_p): Likewise for local "insn".
3868 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3869 seq".
3870 (check_cond_move_block): Likewise for local "insn".
3871 (cond_move_convert_if_block): Likewise.
3872 (cond_move_process_if_block): Likewise for locals "seq",
3873 "loc_insn".
3874 (noce_find_if_block): Likewise for local "jump".
3875 (merge_if_block): Likewise for local "last".
3876 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3877 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3878 (block_has_only_trap): Likewise for return type and local "trap".
3879 (find_if_case_1): Likewise for local "jump".
3880 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3881 "insn".
3882
3883 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3884
3885 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3886 "last_insn", "loop_end" from rtx to rtx_insn *.
3887
3888 * hw-doloop.c (scan_loop): Likewise for local "insn".
3889 (discover_loop): Likewise for param "tail_insn".
3890 (discover_loops): Likewise for local "tail".
3891
3892 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3893 cast to rtx_insn * when assigning from an rtx local to a
3894 hwloop_info's "last_insn" field.
3895
3896 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3897
3898 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3899 (add_delay_dependencies): Strengthen local "pro" from rtx to
3900 rtx_insn *.
3901 (recompute_todo_spec): Likewise.
3902 (dep_cost_1): Likewise for locals "insn", "used".
3903 (schedule_insn): Likewise for local "dbg".
3904 (schedule_insn): Likewise for locals "pro", "next".
3905 (unschedule_insns_until): Likewise for local "con".
3906 (restore_pattern): Likewise for local "next".
3907 (estimate_insn_tick): Likewise for local "pro".
3908 (resolve_dependencies): Likewise for local "next".
3909 (fix_inter_tick): Likewise.
3910 (fix_tick_ready): Likewise for local "pro".
3911 (add_to_speculative_block): Likewise for locals "check", "twin",
3912 "pro".
3913 (sched_extend_bb): Likewise for locals "end", "insn".
3914 (init_before_recovery): Likewise for local "x".
3915 (sched_create_recovery_block): Likewise for local "barrier".
3916 (create_check_block_twin): Likewise for local "pro".
3917 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3918 "consumer".
3919 (unlink_bb_notes): Update for change to type of bb_header.
3920 Strengthen locals "prev", "label", "note", "next" from rtx to
3921 rtx_insn *.
3922 (clear_priorities): Likewise for local "pro".
3923
3924 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3925
3926 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3927 rtx_insn *.
3928 (test_insn): Likewise for this global.
3929 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3930 const rtx_insn *.
3931 (oprs_anticipatable_p): Likewise.
3932 (oprs_available_p): Likewise.
3933 (insert_expr_in_table): Strengthen param "insn" from rtx to
3934 rtx_insn *.
3935 (hash_scan_set): Likewise.
3936 (hash_scan_clobber): Likewise.
3937 (hash_scan_call): Likewise.
3938 (hash_scan_insn): Likewise.
3939 (compute_hash_table_work): Likewise for local "insn".
3940 (process_insert_insn): Likewise for return type and local "pat".
3941 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3942 "pat", "pat_end", "maybe_cc0_setter".
3943 (pre_edge_insert): Likewise for local "insn".
3944 (pre_insert_copy_insn): Likewise for param "insn".
3945 (pre_insert_copies): Likewise for local "insn".
3946 (struct set_data): Likewise for field "insn".
3947 (single_set_gcse): Likewise for param "insn".
3948 (gcse_emit_move_after): Likewise.
3949 (pre_delete): Likewise for local "insn".
3950 (update_bb_reg_pressure): Likewise for param "from" and local
3951 "insn".
3952 (should_hoist_expr_to_dom): Likewise for param "from".
3953 (hoist_code): Likewise for local "insn".
3954 (get_pressure_class_and_nregs): Likewise for param "insn".
3955 (calculate_bb_reg_pressure): Likewise for local "insn".
3956 (compute_ld_motion_mems): Likewise.
3957
3958 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3959
3960 * genpeep.c (main): Rename param back from "uncast_ins1" to
3961 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3962 checked cast.
3963
3964 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3965
3966 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3967
3968 PR target/62195
3969 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3970 documentation to state it is only for VSX operations.
3971
3972 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3973 constraint only active if VSX.
3974
3975 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3976 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3977 (lfiwzx): Likewise.
3978
3979 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3980
3981 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3982 Strengthen local "insn" from rtx to rtx_insn *.
3983 (use_killed_between): Likewise for param "target_insn".
3984 (all_uses_available_at): Likewise for param "target_insn" and
3985 local "next".
3986 (update_df_init): Likewise for params "def_insn", "insn".
3987 (update_df): Likewise for param "insn".
3988 (try_fwprop_subst): Likewise for param "def_insn" and local
3989 "insn".
3990 (free_load_extend): Likewise for param "insn".
3991 (forward_propagate_subreg): Likewise for param "def_insn" and
3992 local "use_insn".
3993 (forward_propagate_asm): Likewise for param "def_insn" and local
3994 "use_insn".
3995 (forward_propagate_and_simplify): Likewise for param "def_insn"
3996 and local "use_insn".
3997 (forward_propagate_into): Likewise for locals "def_insn" and
3998 "use_insn".
3999
4000 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4001
4002 * function.c (emit_initial_value_sets): Strengthen local "seq"
4003 from rtx to rtx_insn *.
4004 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4005 local "seq".
4006 (instantiate_virtual_regs): Likewise for local "insn".
4007 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4008 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4009 (expand_function_end): Likewise for locals "insn" and "seq".
4010 (epilogue_done): Likewise for local "insn".
4011 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4012 "last", "trial".
4013 (reposition_prologue_and_epilogue_notes): Likewise for locals
4014 "insn", "last", "note", "first".
4015 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4016 (pass_match_asm_constraints::execute): Likewise for local "insn".
4017
4018 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4019
4020 * output.h (final_scan_insn): Strengthen return type from rtx to
4021 rtx_insn *.
4022 (final_forward_branch_p): Likewise for param.
4023 (current_output_insn): Likewise for this global.
4024
4025 * final.c (rtx debug_insn): Likewise for this variable.
4026 (current_output_insn): Likewise.
4027 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4028 adding "insn" back in as an rtx_insn * with a checked cast, so
4029 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4030 first param.
4031 (compute_alignments): Strengthen local "label" from rtx to
4032 rtx_insn *.
4033 (shorten_branches): Rename param from "first" to "uncast_first",
4034 introducing a new local rtx_insn * "first" using a checked cast to
4035 effectively strengthen "first" from rtx to rtx_insn * without
4036 affecting the type signature. Strengthen locals "insn", "seq",
4037 "next", "label" from rtx to rtx_insn *.
4038 (change_scope): Strengthen param "orig_insn" and local "insn" from
4039 rtx to rtx_insn *.
4040 (final_start_function): Rename param from "first" to "uncast_first",
4041 introducing a new local rtx_insn * "first" using a checked cast to
4042 effectively strengthen "first" from rtx to rtx_insn * without
4043 affecting the type signature. Strengthen local "insn" from rtx to
4044 rtx_insn *.
4045 (dump_basic_block_info): Strengthen param "insn" from rtx to
4046 rtx_insn *.
4047 (final): Rename param from "first" to "uncast_first",
4048 introducing a new local rtx_insn * "first" using a checked cast to
4049 effectively strengthen "first" from rtx to rtx_insn * without
4050 affecting the type signature. Strengthen locals "insn", "next"
4051 from rtx to rtx_insn *.
4052 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4053 rtx_insn *.
4054 (call_from_call_insn): Strengthen param "insn" from rtx to
4055 rtx_call_insn *.
4056 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4057 introducing a new local rtx_insn * "insn" using a checked cast to
4058 effectively strengthen "insn" from rtx to rtx_insn * without
4059 affecting the type signature. Strengthen return type and locals
4060 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4061 now-redundant checked cast to rtx_insn * from both invocations of
4062 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4063 introducing a local "call_insn" for use when invoking
4064 call_from_call_insn.
4065 (notice_source_line): Strengthen param "insn" from rtx to
4066 rtx_insn *.
4067 (leaf_function_p): Likewise for local "insn".
4068 (final_forward_branch_p): Likewise.
4069 (leaf_renumber_regs): Likewise for param "first".
4070 (rest_of_clean_state): Likewise for locals "insn" and "next".
4071 (self_recursive_call_p): Likewise for param "insn".
4072 (collect_fn_hard_reg_usage): Likewise for local "insn".
4073 (get_call_fndecl): Likewise for param "insn".
4074 (get_call_cgraph_rtl_info): Likewise.
4075 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4076 introducing a new local rtx_insn * "insn" using a checked cast to
4077 effectively strengthen "insn" from rtx to rtx_insn * without
4078 affecting the type signature.
4079
4080 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4081 cast when assigning from param "insn" to current_output_insn.
4082 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4083 so that we can assign it back to current_output_insn.
4084
4085 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4086
4087 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4088 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4089 atmxt540s and atmxt540sreva devices.
4090 * config/avr/avr-tables.opt: Regenerate.
4091 * config/avr/t-multilib: Regenerate.
4092 * doc/avr-mmcu.texi: Regenerate.
4093
4094 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4095
4096 * expr.c (convert_move): Strengthen local "insns" from rtx to
4097 rtx_insn *.
4098 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4099 "top_label" from rtx to rtx_code_label *.
4100 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4101 rtx_insn *.
4102 (emit_single_push_insn): Likewise for locals "prev", "last".
4103 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4104 to rtx_code_label *.
4105 (store_constructor): Likewise for locals "loop_start", "loop_end".
4106 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4107 rtx_insn *.
4108 (expand_expr_real_2): Likewise.
4109 (expand_expr_real_1): Strengthen local "label" from rtx to
4110 rtx_code_label *.
4111
4112 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4113
4114 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4115 from rtx to rtx_insn *.
4116 (store_bit_field_1): Likewise.
4117 (extract_bit_field_1): Likewise.
4118 (expand_mult_const): Likewise for local "insns".
4119 (expmed_mult_highpart): Strengthen local "label" from rtx to
4120 rtx_code_label *.
4121 (expand_smod_pow2): Likewise.
4122 (expand_sdiv_pow2): Likewise.
4123 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4124 rtx_insn *. Strengthen locals "label", "label1", "label2",
4125 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4126 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4127 (emit_store_flag): Likewise.
4128 (emit_store_flag_force): Strengthen local "label" from rtx to
4129 rtx_code_label *.
4130 (do_cmp_and_jump): Likewise for param "label".
4131
4132 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4133
4134 * explow.c (force_reg): Strengthen local "insn" from rtx to
4135 rtx_insn *.
4136 (adjust_stack_1): Likewise.
4137 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4138 "final_label", "available_label", "space_available" from rtx to
4139 rtx_code_label *.
4140 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4141 (anti_adjust_stack_and_probe): Likewise.
4142
4143 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4144
4145 * except.h (sjlj_emit_function_exit_after): Strengthen param
4146 "after" from rtx to rtx_insn *. This is only called with
4147 result of get_last_insn (in function.c) so type-change should be
4148 self-contained.
4149
4150 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4151 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4152 to rtx_insn *. These fields are only used from except.c so this
4153 type-change should be self-contained to this patch.
4154
4155 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4156 local "last" from rtx to rtx_insn *.
4157 (dw2_build_landing_pads): Likewise for local "seq".
4158 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4159 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4160 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4161 rtx to rtx_insn *.
4162 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4163 to rtx_insn *.
4164 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4165 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4166 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4167 referring to an insn. Strengthen local "dispatch_label" from
4168 rtx to rtx_code_label *.
4169 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4170 rtx_insn *.
4171 (expand_eh_return): Strengthen local "around_label" from
4172 rtx to rtx_code_label *.
4173 (convert_to_eh_region_ranges): Strengthen locals "iter",
4174 "last_action_insn", "first_no_action_insn",
4175 "first_no_action_insn_before_switch",
4176 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4177
4178 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4179
4180 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4181 from rtx to rtx_insn *.
4182 (cached_next_real_insn): Likewise.
4183 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4184 working with insns.
4185 (dwarf2out_var_location): Strengthen locals "next_real",
4186 "next_note", "expected_next_loc_note", "last_start", "insn" from
4187 rtx to rtx_insn *.
4188
4189 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4190
4191 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4192 from rtx to rtx_insn *.
4193 (create_pseudo_cfg): Likewise for local "insn".
4194
4195 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4196
4197 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4198 from rtx to rtx_insn *.
4199 (df_bb_regno_last_def_find): Likewise.
4200
4201 * df-problems.c (df_rd_bb_local_compute): Likewise.
4202 (df_lr_bb_local_compute): Likewise.
4203 (df_live_bb_local_compute): Likewise.
4204 (df_chain_remove_problem): Likewise.
4205 (df_chain_create_bb): Likewise.
4206 (df_word_lr_bb_local_compute): Likewise.
4207 (df_remove_dead_eq_notes): Likewise for param "insn".
4208 (df_note_bb_compute): Likewise for local "insn".
4209 (simulate_backwards_to_point): Likewise.
4210 (df_md_bb_local_compute): Likewise.
4211
4212 * df-scan.c (df_scan_free_bb_info): Likewise.
4213 (df_scan_start_dump): Likewise.
4214 (df_scan_start_block): Likewise.
4215 (df_install_ref_incremental): Likewise for local "insn".
4216 (df_insn_rescan_all): Likewise.
4217 (df_reorganize_refs_by_reg_by_insn): Likewise.
4218 (df_reorganize_refs_by_insn_bb): Likewise.
4219 (df_recompute_luids): Likewise.
4220 (df_bb_refs_record): Likewise.
4221 (df_update_entry_exit_and_calls): Likewise.
4222 (df_bb_verify): Likewise.
4223
4224 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4225
4226 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4227 "first_note" from rtx to rtx_insn *.
4228 (get_node_of_insn): Likewise for param 2 "insn".
4229 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4230
4231 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4232 rtx_insn *.
4233 (mem_write_insn_p): Likewise.
4234 (mem_access_insn_p): Likewise.
4235 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4236 (def_has_ccmode_p): Likewise for param "insn".
4237 (add_cross_iteration_register_deps): Likewise for locals
4238 "def_insn" and "use_insn".
4239 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4240 (build_intra_loop_deps): Likewise for local "src_insn".
4241 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4242 to rtx_insn *.
4243 (get_node_of_insn): Likewise for param "insn".
4244
4245 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4246
4247 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4248 (deletable_insn_p): Strengthen param "insn" from rtx to
4249 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4250 find_call_stack_args, since this is guarded by CALL_P (insn).
4251 (marked_insn_p): Strengthen param "insn" from rtx to
4252 rtx_insn *.
4253 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4254 invoking find_call_stack_args, since this is guarded by
4255 CALL_P (insn).
4256 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4257 rtx_insn *; we know this is an insn since this was called by
4258 mark_nonreg_stores.
4259 (mark_nonreg_stores_2): Likewise.
4260 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4261 rtx_insn *.
4262 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4263 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4264 to rtx_insn *.
4265 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4266 from rtx to rtx_insn *.
4267 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4268 "next", "ref_insn".
4269 (delete_unmarked_insns): Likewise for locals "insn", "next".
4270 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4271 (mark_reg_dependencies): Likewise for param "insn".
4272 (rest_of_handle_ud_dce): Likewise for local "insn".
4273 (word_dce_process_block): Likewise.
4274 (dce_process_block): Likewise.
4275
4276 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4277
4278 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4279 from rtx to rtx_insn *.
4280 (struct change_cc_mode_args): Likewise for field "insn".
4281 (this_insn): Strengthen from rtx to rtx_insn *.
4282 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4283 with insn.
4284 (validate_canon_reg): Strengthen param "insn" from rtx to
4285 rtx_insn *.
4286 (canon_reg): Likewise.
4287 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4288 dealing with insn.
4289 (record_jump_equiv): Strengthen param "insn" from rtx to
4290 rtx_insn *.
4291 (try_back_substitute_reg): Likewise, also for locals "prev",
4292 "bb_head".
4293 (find_sets_in_insn): Likewise for param "insn".
4294 (canonicalize_insn): Likewise.
4295 (cse_insn): Likewise. Add a checked cast.
4296 (invalidate_from_clobbers): Likewise for param "insn".
4297 (invalidate_from_sets_and_clobbers): Likewise.
4298 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4299 dealing with insn.
4300 (cse_prescan_path): Strengthen local "insn" from rtx to
4301 rtx_insn *.
4302 (cse_extended_basic_block): Likewise for locals "insn" and
4303 "prev_insn".
4304 (cse_main): Likewise for param "f".
4305 (check_for_label_ref): Likewise for local "insn".
4306 (set_live_p): Likewise for second param ("insn").
4307 (insn_live_p): Likewise for first param ("insn") and for local
4308 "next".
4309 (cse_change_cc_mode_insn): Likewise for first param "insn".
4310 (cse_change_cc_mode_insns): Likewise for first and second params
4311 "start" and "end".
4312 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4313 and "end".
4314 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4315 "cc_src_insn".
4316
4317 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4318 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4319 Anna Tikhonova <anna.tikhonova@intel.com>
4320 Ilya Tocar <ilya.tocar@intel.com>
4321 Andrey Turetskiy <andrey.turetskiy@intel.com>
4322 Ilya Verbin <ilya.verbin@intel.com>
4323 Kirill Yukhin <kirill.yukhin@intel.com>
4324 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4325
4326 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4327 New.
4328 * config/i386/sse.md
4329 (define_mode_iterator VI248_AVX2): Delete.
4330 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4331 (define_mode_iterator VI48_AVX2): Ditto.
4332 (define_insn <shift_insn><mode>3): Delete.
4333 (define_insn "<shift_insn><mode>3<mask_name>" with
4334 VI2_AVX2_AVX512BW): New.
4335 (define_insn "<shift_insn><mode>3<mask_name>" with
4336 VI48_AVX2): Ditto.
4337
4338 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4339 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4340 Anna Tikhonova <anna.tikhonova@intel.com>
4341 Ilya Tocar <ilya.tocar@intel.com>
4342 Andrey Turetskiy <andrey.turetskiy@intel.com>
4343 Ilya Verbin <ilya.verbin@intel.com>
4344 Kirill Yukhin <kirill.yukhin@intel.com>
4345 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4346
4347 * config/i386/sse.md
4348 (define_mode_iterator VI4F_BRCST32x2): New.
4349 (define_mode_attr 64x2_mode): Ditto.
4350 (define_mode_attr 32x2mode): Ditto.
4351 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4352 with VI4F_BRCST32x2): Ditto.
4353 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4354 with V16FI mode iterator): Ditto.
4355 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4356 with V16FI): Ditto.
4357 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4358 with VI8F_BRCST64x2): Ditto.
4359
4360 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4361 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4362 Anna Tikhonova <anna.tikhonova@intel.com>
4363 Ilya Tocar <ilya.tocar@intel.com>
4364 Andrey Turetskiy <andrey.turetskiy@intel.com>
4365 Ilya Verbin <ilya.verbin@intel.com>
4366 Kirill Yukhin <kirill.yukhin@intel.com>
4367 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4368
4369 * config/i386/sse.md
4370 (define_mode_iterator VI8_AVX512VL): New.
4371 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4372
4373 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4374
4375 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4376 (define_mode_iterator V48_AVX512VL): New.
4377 (define_mode_iterator V12_AVX512VL): Ditto.
4378 (define_insn <avx512>_load<mode>_mask): Split into two similar
4379 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4380 Refactor output template.
4381 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4382
4383 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4384
4385 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4386 rtx_insn *.
4387 (reg_available_p): Likewise for param "insn".
4388 (insert_set_in_table): Likewise.
4389 (hash_scan_set): Likewise.
4390 (hash_scan_insn): Likewise.
4391 (make_set_regs_unavailable): Likewise.
4392 (compute_hash_table_work): Likewise for local "insn".
4393 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4394 const rtx_insn *.
4395 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4396 (try_replace_reg): Likewise.
4397 (find_avail_set): Likewise.
4398 (cprop_jump): Likewise for params "setcc", "jump".
4399 (constprop_register): Likewise for param "insn".
4400 (cprop_insn): Likewise.
4401 (do_local_cprop): Likewise.
4402 (local_cprop_pass): Likewise for local "insn".
4403 (bypass_block): Likewise for params "setcc" and "jump".
4404 (bypass_conditional_jumps): Likewise for locals "setcc" and
4405 "insn".
4406 (one_cprop_pass): Likewise for local "insn".
4407
4408 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4409
4410 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4411 from rtx to rtx_insn *.
4412 (struct comparison): Likewise, also for field "prev_clobber".
4413 (conforming_compare): Likewise for param "insn".
4414 (arithmetic_flags_clobber_p): Likewise.
4415 (find_flags_uses_in_insn): Likewise.
4416 (find_comparison_dom_walker::before_dom_children): Likewise for
4417 locals "insn", "next", "last_clobber".
4418 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4419
4420 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4421
4422 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4423 "insn" from rtx to rtx_insn *.
4424 (single_set_for_csa): Likewise for param "insn".
4425 (record_one_stack_ref): Likewise.
4426 (try_apply_stack_adjustment): Likewise.
4427 (struct record_stack_refs_data): Likewise for field "insn".
4428 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4429 (prev_active_insn_bb): Likewise for return type and param "insn".
4430 (next_active_insn_bb): Likewise.
4431 (force_move_args_size_note): Likewise for params "prev" and "last"
4432 and locals "test", "next_candidate", "prev_candidate".
4433 (combine_stack_adjustments_for_block): Strengthen locals
4434 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4435 rtx_insn *.
4436
4437 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4438
4439 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4440 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4441 (subst_insn): Likewise for this variable.
4442 (added_links_insn): Likewise.
4443 (struct insn_link): Likewise for field "insn".
4444 (alloc_insn_link): Likewise for param "insn".
4445 (struct undobuf): Likewise for field "other_insn".
4446 (find_single_use): Likewise for param "insn" and local "next".
4447 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4448 (delete_noop_moves): Likewise for locals "insn", "next".
4449 (create_log_links): Likewise for locals "insn", "use_insn".
4450 Strengthen local "next_use" from rtx * to rtx_insn **.
4451 (insn_a_feeds_b): Likewise for params "a", "b".
4452 (combine_instructions): Likewise for param "f" and locals "insn",
4453 "next", "prev", "first", "last_combined_insn", "link", "link1",
4454 "temp". Replace use of NULL_RTX with NULL when referring to
4455 insns.
4456 (setup_incoming_promotions): Likewise for param "first"
4457 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4458 (can_combine_p): Likewise for params "insn", "i3", "pred",
4459 "pred2", "succ", "succ2" and for local "p".
4460 (combinable_i3pat): Likewise for param "i3".
4461 (cant_combine_insn_p): Likewise for param "insn".
4462 (likely_spilled_retval_p): Likewise.
4463 (adjust_for_new_dest): Likewise.
4464 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4465 (try_combine): Likewise for return type and for params "i3", "i2",
4466 "i1", "i0", "last_combined_insn", and for locals "insn",
4467 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4468 "i0_insn". Eliminate local "tem" in favor of new locals
4469 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4470 checked cast for now to rtx_insn * on the return type of
4471 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4472 insns.
4473 (find_split_point): Strengthen param "insn" from rtx to
4474 rtx_insn *.
4475 (simplify_set): Likewise for local "other_insn".
4476 (recog_for_combine): Likewise for param "insn".
4477 (record_value_for_reg): Likewise.
4478 (record_dead_and_set_regs_1): Likewise for local
4479 "record_dead_insn".
4480 (record_dead_and_set_regs): Likewise for param "insn".
4481 (record_promoted_value): Likewise.
4482 (check_promoted_subreg): Likewise.
4483 (get_last_value_validate): Likewise.
4484 (reg_dead_at_p): Likewise.
4485 (move_deaths): Likewise for param "to_insn".
4486 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4487 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4488 in favor of new locals "tem_note" and "tem_insn", the latter being
4489 an rtx_insn *.
4490 (distribute_links): Strengthen locals "place", "insn" from rtx to
4491 rtx_insn *.
4492
4493 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4494
4495 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4496 than a const_rtx.
4497 (can_delete_label_p): Require a const rtx_code_label * rather than
4498 a const_rtx.
4499 (delete_insn): Add checked cast to rtx_code_label * when we know
4500 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4501 rtx to rtx_insn *.
4502 (delete_insn_chain): Strengthen locals "prev" and "current" from
4503 rtx to rtx_insn *. Add a checked cast when assigning from
4504 "finish" (strengthening the params will come later). Add a
4505 checked cast to rtx_note * in region where we know
4506 NOTE_P (current).
4507 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4508 rtx_insn *.
4509 (compute_bb_for_insn): Likewise.
4510 (free_bb_for_insn): Likewise for local "insn".
4511 (compute_bb_for_insn): Likewise.
4512 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4513 local "insn" from rtx to rtx_insn *
4514 (flow_active_insn_p): Require a const rtx_insn * rather than a
4515 const_rtx.
4516 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4517 rtx_insn *.
4518 (can_fallthru): Likewise for locals "insn" and "insn2".
4519 (bb_note): Likewise for local "note".
4520 (first_insn_after_basic_block_note): Likewise for local "note" and
4521 for return type.
4522 (rtl_split_block): Likewise for locals "insn" and "next".
4523 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4524 "end".
4525 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4526 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4527 "prev", "tmp".
4528 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4529 them), "kill_from", "barrier", "new_insn".
4530 (patch_jump_insn): Likewise for params "insn", "old_label".
4531 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4532 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4533 "old_label", "new_label".
4534 (rtl_tidy_fallthru_edge): Likewise for local "q".
4535 (rtl_split_edge): Likewise for locals "before", "last".
4536 (commit_one_edge_insertion): Likewise for locals "before",
4537 "after", "insns", "tmp", "last", adding a checked cast where
4538 currently necessary.
4539 (commit_edge_insertions): Likewise.
4540 (rtl_dump_bb): Likewise for locals "insn", "last".
4541 (print_rtl_with_bb): Likewise for local "x".
4542 (rtl_verify_bb_insns): Likewise for local "x".
4543 (rtl_verify_bb_pointers): Likewise for local "insn".
4544 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4545 "head", "end".
4546 (rtl_verify_fallthru): Likewise for local "insn".
4547 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4548 (purge_dead_edges): Likewise for local "insn".
4549 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4550 (skip_insns_after_block): Likewise for return type and for locals
4551 "insn", "last_insn", "next_head", "prev".
4552 (record_effective_endpoints): Likewise for locals "next_insn",
4553 "insn", "end".
4554 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4555 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4556 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4557 (duplicate_insn_chain): For now, add checked cast from rtx to
4558 rtx_insn * when returning insn.
4559 (cfg_layout_duplicate_bb): Likewise for local "insn".
4560 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4561 "prev", "remaints".
4562 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4563 (rtl_block_empty_p): Likewise.
4564 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4565 "split_point", "last".
4566 (rtl_block_ends_with_call_p): Likewise for local "insn".
4567 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4568 const rtx_insn *.
4569 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4570 "split_at_insn" from rtx to rtx_insn *.
4571 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4572 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4573 to const rtx_insn *.
4574 (rtl_account_profile_record): Likewise.
4575
4576 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4577
4578 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4579 rtx to rtx_insn *.
4580 (average_num_loop_insns): Likewise.
4581 (init_set_costs): Likewise for local "seq".
4582 (seq_cost): Likewise for param "seq", from const_rtx to const
4583 rtx_insn *.
4584
4585 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4586
4587 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4588 rtx to rtx_insn *.
4589
4590 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4591
4592 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4593 "f1" and "f2" from rtx * to rtx_insn **.
4594 (flow_find_head_matching_sequence): Likewise.
4595
4596 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4597 "cbranch_insn" from rtx to rtx_insn *.
4598 (thread_jump): Likewise for local "insn".
4599 (try_forward_edges): Likewise for local "last".
4600 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4601 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4602 "real_b_end".
4603 (can_replace_by): Likewise for params "i1", "i2".
4604 (old_insns_match_p): Likewise.
4605 (merge_notes): Likewise.
4606 (walk_to_nondebug_insn): Likewise for param "i1".
4607 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4608 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4609 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4610 (flow_find_head_matching_sequence): Strengthen params "f1" and
4611 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4612 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4613 rtx_insn *.
4614 (outgoing_edges_match): Likewise for locals "last1", "last2".
4615 (try_crossjump_to_edge): Likewise for local "insn".
4616 Replace call to for_each_rtx with for_each_rtx_in_insn.
4617
4618 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4619 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4620 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4621 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4622 (try_optimize_cfg): Strengthen local "last" from rtx to
4623 rtx_insn *.
4624 (delete_dead_jumptables): Likewise for locals "insn", "next",
4625 "label".
4626
4627 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4628 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4629 "rtx else_first_tail", to reflect the basic-block.h changes above.
4630
4631 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4632
4633 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4634 rtx_insn *.
4635 (purge_dead_tablejump_edges): Likewise.
4636 (find_bb_boundaries): Likewise for locals "insn", "end",
4637 "flow_transfer_insn".
4638
4639 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4640
4641 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4642 "ins" and "prev" from rtx to rtx_insn *.
4643
4644 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4645
4646 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4647 rtx_insn *.
4648 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4649 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4650 "scan_start".
4651 (load_register_parameters): Likewise for local "before_arg".
4652 (check_sibcall_argument_overlap): Likewise for param "insn".
4653 (expand_call): Likewise for locals "normal_call_insns",
4654 "tail_call_insns", "insns", "before_call", "after_args",
4655 "before_arg", "last", "prev". Strengthen one of the "last" from
4656 rtx to rtx_call_insn *.
4657 (fixup_tail_calls): Strengthen local "insn" from rtx to
4658 rtx_insn *.
4659 (emit_library_call_value_1): Likewise for locals "before_call" and
4660 "last".
4661
4662 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4663
4664 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4665 and "last" from rtx to rtx_insn *.
4666 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4667 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4668 rtx_call_insn *.
4669 (expand_errno_check): Strengthen local "lab" from rtx to
4670 rtx_code_label *.
4671 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4672 rtx_insn *.
4673 (expand_builtin_mathfn_2): Likewise.
4674 (expand_builtin_mathfn_ternary): Likewise.
4675 (expand_builtin_mathfn_3): Likewise.
4676 (expand_builtin_interclass_mathfn): Likewise for local "last".
4677 (expand_builtin_int_roundingfn): Likewise for local "insns".
4678 (expand_builtin_int_roundingfn_2): Likewise.
4679 (expand_builtin_strlen): Likewise for local "before_strlen".
4680 (expand_builtin_strncmp): Likewise for local "seq".
4681 (expand_builtin_signbit): Likewise for local "last".
4682 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4683 from rtx to rtx_code_label *.
4684 (expand_stack_restore): Strengthen local "prev" from rtx to
4685 rtx_insn *.
4686
4687 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4688
4689 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4690 to rtx_insn *.
4691 (struct btr_def_s): Likewise.
4692 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4693 const rtx_insn *.
4694 (add_btr_def): Likewise.
4695 (new_btr_user): Likewise.
4696 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4697 rtx to rtx_insn *.
4698 (link_btr_uses): Likewise.
4699 (move_btr_def): Likewise for locals "insp", "old_insn",
4700 "new_insn". Add checked cast to rtx_insn * for now on result of
4701 gen_move_insn.
4702 (can_move_up): Strengthen param "insn" from const_rtx to
4703 const rtx_insn *.
4704
4705 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4706
4707 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4708 rtx_insn *.
4709 (get_uncond_jump_length): Likewise for locals "label", "jump".
4710 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4711 "jump", "insn".
4712 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4713 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4714 (find_jump_block): Likewise for local "insn".
4715 (fix_crossing_conditional_branches): Likewise for locals
4716 "old_jump", "new_jump".
4717 (fix_crossing_unconditional_branches): Likewise for locals
4718 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4719 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4720
4721 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4722
4723 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4724 rtx to rtx_insn *.
4725 (struct mem_insn): Likewise for field "insn".
4726 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4727 (reg_next_inc_use): Likewise.
4728 (reg_next_def): Likewise.
4729 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4730 from rtx to rtx_insn *.
4731 (move_insn_before): Likewise for param "next_insn" and local "insns".
4732 (attempt_change): Likewise for local "mov_insn".
4733 (try_merge): Likewise for param "last_insn".
4734 (get_next_ref): Likewise for return type and local "insn".
4735 Strengthen param "next_array" from rtx * to rtx_insn **.
4736 (parse_add_or_inc): Strengthen param "insn" from rtx to
4737 rtx_insn *.
4738 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4739 the latter).
4740 (merge_in_block): Likewise for locals "insn", "curr",
4741 "other_insn".
4742 (pass_inc_dec::execute): Update allocations of the arrays to
4743 reflect the stronger types.
4744
4745 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4746
4747 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4748 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4749 from rtx to rtx_code_label *.
4750
4751 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4752
4753 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4754 to rtx_insn *.
4755
4756 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4757
4758 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4759 generated a warning and prevented bootstrapping the compiler.
4760
4761 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4762
4763 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4764 rtx_insn *.
4765
4766 * jump.c (delete_related_insns): Likewise, also for locals "next"
4767 and "prev".
4768
4769 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4770
4771 * genautomata.c (output_internal_insn_latency_func): When writing
4772 the function "internal_insn_latency" to insn-automata.c,
4773 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4774 allowing the optional guard function of (define_bypass) clauses to
4775 expect a pair of rtx_insn *, rather than a pair of rtx.
4776 (output_insn_latency_func): When writing the function
4777 "insn_latency", add an "uncast_" prefix to params "insn" and
4778 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4779 using checked casts from the params, thus enabling the above
4780 change to the generated "internal_insn_latency" function.
4781
4782 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4783
4784 PR tree-optimization/62091
4785 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4786 handle correctly arrays.
4787 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4788 inheritance binfos.
4789 (record_known_type): Walk into inner type.
4790 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4791 condition on no type changes.
4792
4793 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4794
4795 * genattrtab.c (write_attr_get): Within the generated get_attr_
4796 functions, rename param "insn" to "uncast_insn" and reintroduce
4797 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4798 is an rtx_insn * within insn-attrtab.c
4799
4800 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4801
4802 * output.h (peephole): Strengthen return type from rtx to
4803 rtx_insn *.
4804 * rtl.h (delete_for_peephole): Likewise for both params.
4805 * genpeep.c (main): In generated "peephole" function, strengthen
4806 return type and local "insn" from rtx to rtx_insn *. For now,
4807 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4808 rtx_insn *, with a checked cast.
4809 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4810 locals "insn", "next", "prev" from rtx to rtx_insn *.
4811
4812 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4813
4814 PR tree-optimization/62112
4815 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4816 * gimple-iterator.h (gsi_replace): Return bool.
4817 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4818 moved from ref_may_alias_global_p.
4819 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4820 New overloads.
4821 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4822 (stmt_kills_ref_p_1): Rename...
4823 (stmt_kills_ref_p): ... to this.
4824 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4825 stmt_kills_ref_p): Declare.
4826 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4827 Move the self-assignment case...
4828 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4829
4830 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4831
4832 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4833
4834 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4835 "after". For now, don't strengthen param "trial", which requires
4836 adding checked casts when returning it.
4837
4838 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4839
4840 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4841 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4842 "var_location" hook from rtx to rtx_insn *.
4843 (debug_nothing_rtx): Delete in favor of...
4844 (debug_nothing_rtx_code_label): New prototype.
4845 (debug_nothing_rtx_rtx): Delete unused prototype.
4846 (debug_nothing_rtx_insn): New prototype.
4847
4848 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4849 invoking debug_hooks->var_location (in two places, one in a NOTE
4850 case of a switch statement, the other guarded by a CALL_P
4851 conditional. Add checked cast to rtx_code_label * when invoking
4852 debug_hooks->label (within CODE_LABEL case of switch statement).
4853
4854 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4855 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4856 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4857 (xcoff_debug_hooks): Likewise.
4858 * debug.c (do_nothing_debug_hooks): Likewise.
4859 (debug_nothing_rtx): Delete in favor of...
4860 (debug_nothing_rtx_insn): New function.
4861 (debug_nothing_rtx_rtx): Delete unused function.
4862 (debug_nothing_rtx_code_label): New function.
4863 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4864 debug_nothing_rtx to debug_nothing_rtx_code_label.
4865 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4866 to rtx_insn *.
4867 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4868 debug_nothing_rtx to debug_nothing_rtx_insn.
4869 (sdbout_label): Strengthen param "insn" from rtx to
4870 rtx_code_label *.
4871 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4872 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4873 "var_location" hook from debug_nothing_rtx to
4874 debug_nothing_rtx_insn.
4875
4876 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4877
4878 * recog.h (insn_output_fn): Update this function typedef to match
4879 the changes below to the generated output functions, strengthening
4880 the 2nd param from rtx to rtx_insn *.
4881
4882 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4883 insn when invoking an output function, to match the new signature
4884 of insn_output_fn with a stronger second param.
4885
4886 * genconditions.c (write_header): In the generated code for
4887 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4888 to match the other changes in this patch.
4889
4890 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4891 the generated "gen_" functions from rtx to rtx_insn * within their
4892 implementations.
4893
4894 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4895 the subfunctions within the generated "recog_", "split", "peephole2"
4896 function trees from rtx to rtx_insn *. For now, the top-level
4897 generated functions ("recog", "split", "peephole2") continue to
4898 take a plain rtx for "insn", to avoid introducing dependencies on
4899 other patches. Rename this 2nd param from "insn" to
4900 "uncast_insn", and reintroduce "insn" as a local variable of type
4901 rtx_insn *, initialized at the top of the generated function with
4902 a checked cast on "uncast_insn".
4903 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4904 the generated "gen_" functions from rtx to rtx_insn * within their
4905 prototypes.
4906
4907 * genoutput.c (process_template): Strengthen the 2nd param within
4908 the generated "output_" functions "insn" from rtx to rtx_insn *.
4909
4910 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4911
4912 * tree-profile.c (tree_profiling): Skip external functions
4913 when doing coverage instrumentation.
4914 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4915
4916 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4917
4918 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4919 (vec_mergee): Likewise.
4920 (vec_mergeo): Likewise.
4921 (vec_cntlz): Likewise.
4922 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4923 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4924 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4925 VMRGEW, and VMRGOW.
4926 * doc/extend.texi: Document various forms of vec_cpsgn,
4927 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4928 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4929 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4930 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4931 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4932
4933 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4934
4935 * config/rs6000/rs6000.c (context.h): New include.
4936 (tree-pass.h): Likewise.
4937 (make_pass_analyze_swaps): New decl.
4938 (rs6000_option_override): Register pass_analyze_swaps.
4939 (swap_web_entry): New subsclass of web_entry_base (df.h).
4940 (special_handling_values): New enum.
4941 (union_defs): New function.
4942 (union_uses): Likewise.
4943 (insn_is_load_p): Likewise.
4944 (insn_is_store_p): Likewise.
4945 (insn_is_swap_p): Likewise.
4946 (rtx_is_swappable_p): Likewise.
4947 (insn_is_swappable_p): Likewise.
4948 (chain_purpose): New enum.
4949 (chain_contains_only_swaps): New function.
4950 (mark_swaps_for_removal): Likewise.
4951 (swap_const_vector_halves): Likewise.
4952 (adjust_subreg_index): Likewise.
4953 (permute_load): Likewise.
4954 (permute_store): Likewise.
4955 (handle_special_swappables): Likewise.
4956 (replace_swap_with_copy): Likewise.
4957 (dump_swap_insn_table): Likewise.
4958 (rs6000_analyze_swaps): Likewise.
4959 (pass_data_analyze_swaps): New pass_data.
4960 (pass_analyze_swaps): New rtl_opt_pass.
4961 (make_pass_analyze_swaps): New function.
4962 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4963
4964 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4965
4966 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4967 type from rtx to rtx_insn *.
4968 (create_copy_of_insn_rtx): Likewise.
4969 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4970 (create_copy_of_insn_rtx): Likewise, also for local "res".
4971
4972 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4973
4974 * rtl.h (find_first_parameter_load): Strengthen return type from
4975 rtx to rtx_insn *.
4976 * rtlanal.c (find_first_parameter_load): Strengthen return type
4977 from rtx to rtx_insn *. Add checked cast for now, to postpone
4978 strengthening the params.
4979
4980 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4981
4982 PR fortran/44054
4983 * diagnostic.c: Set default caret.
4984 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4985 line is needed.
4986 * diagnostic.h (struct diagnostic_context):
4987
4988 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4989
4990 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4991 (sel_bb_head): Strengthen return type insn_t (currently just an
4992 rtx) to rtx_insn *.
4993 (sel_bb_end): Likewise.
4994
4995 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4996 (sel_bb_head): Strengthen return type and local "head" from
4997 insn_t (currently just an rtx) to rtx_insn *.
4998 (sel_bb_end): Likewise for return type.
4999 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5000 working with insn.
5001
5002 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5003
5004 * basic-block.h (get_last_bb_insn): Strengthen return type from
5005 rtx to rtx_insn *.
5006 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5007 end".
5008
5009 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5010
5011 PR fortran/44054
5012 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5013 to here ...
5014 (diagnostic_report_diagnostic): ... from here.
5015 * toplev.c (general_init): Move code to c-family.
5016
5017 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5018
5019 * df.h (web_entry_base): Replace existing struct web_entry with a
5020 new class web_entry_base with only the predecessor member.
5021 (unionfind_root): Remove declaration and move to class member.
5022 (unionfind_union): Remove declaration and move to friend
5023 function.
5024 (union_defs): Remove declaration.
5025 * web.c (web_entry_base::unionfind_root): Modify to be member
5026 function and adjust accessors.
5027 (unionfind_union): Modify to be friend function and adjust
5028 accessors.
5029 (web_entry): New subclass of web_entry_base containing the reg
5030 member.
5031 (union_match_dups): Modify for struct -> class changes.
5032 (union_defs): Likewise.
5033 (entry_register): Likewise.
5034 (pass_web::execute): Likewise.
5035
5036 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5037
5038 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5039 builtin define __VEC_ELEMENT_REG_ORDER__.
5040
5041 2014-08-20 Martin Jambor <mjambor@suse.cz>
5042 Wei Mi <wmi@google.com>
5043
5044 PR ipa/60449
5045 PR middle-end/61776
5046 * tree-ssa-operands.c (update_stmt_operands): Remove
5047 MODIFIED_NORETURN_CALLS.
5048 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5049 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5050 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5051 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5052 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5053 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5054 (gimple_call_set_ctrl_altering): New func.
5055 (gimple_call_ctrl_altering_p): Ditto.
5056 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5057 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5058 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5059 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5060 remove MODIFIED_NORETURN_CALLS.
5061
5062 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5063
5064 * coverage.c (coverage_compute_profile_id): Return non-0;
5065 also handle symbols with unique name.
5066 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5067
5068 2014-08-20 Steve Ellcey <sellcey@mips.com>
5069
5070 PR middle-end/49191
5071 * doc/sourcebuild.texi (non_strict_align): New.
5072
5073 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5074
5075 * cgraphunit.c (ipa_passes, compile): Reshedule
5076 symtab_remove_unreachable_nodes passes; update comments.
5077 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5078 TODO_remove_functions before the pass; the functions ought to be
5079 already removed.
5080 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5081 TODO_remove_functions.
5082 * passes.c (pass_data_early_local_passes): Do not schedule function
5083 removal.
5084 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5085
5086 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5087
5088 PR c/59304
5089 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5090 before setting the option.
5091 * diagnostic.c (diagnostic_classify_diagnostic): Record
5092 command-line status.
5093
5094 2014-08-20 Richard Biener <rguenther@suse.de>
5095
5096 PR lto/62190
5097 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5098 to build uint{16,32,64}_type_node.
5099
5100 2014-08-20 Terry Guo <terry.guo@arm.com>
5101
5102 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5103 with immediate_operand.
5104
5105 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5106
5107 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5108 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5109 NULL.
5110
5111 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5112
5113 PR preprocessor/51303
5114 * incpath.c (remove_duplicates): Use cpp_warning.
5115
5116 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5117
5118 PR c/60975
5119 PR c/53063
5120 * doc/options.texi (CPP): Document it.
5121 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5122 * optc-gen.awk: Handle CPP.
5123 * opth-gen.awk: Likewise.
5124
5125 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5126
5127 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5128 rtx_insn *.
5129 (duplicate_insn_chain): Likewise.
5130 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5131 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5132 checked cast for now (until we can strengthen the params in the
5133 same way).
5134 (duplicate_insn_chain): Likewise.
5135
5136 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5137
5138 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5139 rtx_insn *.
5140 (prev_cc0_setter): Likewise.
5141
5142 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5143 rtx_insn *, adding checked casts for now as necessary.
5144 (prev_cc0_setter): Likewise.
5145
5146 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5147
5148 * expr.h (emit_move_insn): Strengthen return type from rtx to
5149 rtx_insn *.
5150 (emit_move_insn_1): Likewise.
5151 (emit_move_complex_push): Likewise.
5152 (emit_move_complex_parts): Likewise.
5153
5154 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5155 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5156 with insns.
5157 (emit_move_complex_push): Strengthen return type from rtx to
5158 rtx_insn *.
5159 (emit_move_complex): Likewise, also for local "ret".
5160 (emit_move_ccmode): Likewise.
5161 (emit_move_multi_word): Likewise for return type and locals
5162 "last_insn", "seq".
5163 (emit_move_insn_1): Likewise for return type and locals "result",
5164 "ret".
5165 (emit_move_insn): Likewise for return type and local "last_insn".
5166 (compress_float_constant): Likewise.
5167
5168 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5169
5170 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5171 from rtx to rtx_insn *.
5172
5173 * rtl.h (emit_insn_before): Likewise.
5174 (emit_insn_before_noloc): Likewise.
5175 (emit_insn_before_setloc): Likewise.
5176 (emit_jump_insn_before): Likewise.
5177 (emit_jump_insn_before_noloc): Likewise.
5178 (emit_jump_insn_before_setloc): Likewise.
5179 (emit_call_insn_before): Likewise.
5180 (emit_call_insn_before_noloc): Likewise.
5181 (emit_call_insn_before_setloc): Likewise.
5182 (emit_debug_insn_before): Likewise.
5183 (emit_debug_insn_before_noloc): Likewise.
5184 (emit_debug_insn_before_setloc): Likewise.
5185 (emit_label_before): Likewise.
5186 (emit_insn_after): Likewise.
5187 (emit_insn_after_noloc): Likewise.
5188 (emit_insn_after_setloc): Likewise.
5189 (emit_jump_insn_after): Likewise.
5190 (emit_jump_insn_after_noloc): Likewise.
5191 (emit_jump_insn_after_setloc): Likewise.
5192 (emit_call_insn_after): Likewise.
5193 (emit_call_insn_after_noloc): Likewise.
5194 (emit_call_insn_after_setloc): Likewise.
5195 (emit_debug_insn_after): Likewise.
5196 (emit_debug_insn_after_noloc): Likewise.
5197 (emit_debug_insn_after_setloc): Likewise.
5198 (emit_label_after): Likewise.
5199 (emit_insn): Likewise.
5200 (emit_debug_insn): Likewise.
5201 (emit_jump_insn): Likewise.
5202 (emit_call_insn): Likewise.
5203 (emit_label): Likewise.
5204 (gen_clobber): Likewise.
5205 (emit_clobber): Likewise.
5206 (gen_use): Likewise.
5207 (emit_use): Likewise.
5208 (emit): Likewise.
5209
5210 (emit_barrier_before): Strengthen return type from rtx to
5211 rtx_barrier *.
5212 (emit_barrier_after): Likewise.
5213 (emit_barrier): Likewise.
5214
5215 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5216 from rtx to rtx_insn *. Add checked casts for now when converting
5217 "last" from rtx to rtx_insn *.
5218 (emit_insn_before_noloc): Likewise for return type.
5219 (emit_jump_insn_before_noloc): Likewise.
5220 (emit_call_insn_before_noloc): Likewise.
5221 (emit_debug_insn_before_noloc): Likewise.
5222 (emit_barrier_before): Strengthen return type and local "insn"
5223 from rtx to rtx_barrier *.
5224 (emit_label_before): Strengthen return type from rtx to
5225 rtx_insn *. Add checked cast for now when returning param
5226 (emit_pattern_after_noloc): Strengthen return type from rtx to
5227 rtx_insn *. Add checked casts for now when converting "last" from
5228 rtx to rtx_insn *.
5229 (emit_insn_after_noloc): Strengthen return type from rtx to
5230 rtx_insn *.
5231 (emit_jump_insn_after_noloc): Likewise.
5232 (emit_call_insn_after_noloc): Likewise.
5233 (emit_debug_insn_after_noloc): Likewise.
5234 (emit_barrier_after): Strengthen return type from rtx to
5235 rtx_barrier *.
5236 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5237 Add checked cast for now when converting "label" from rtx to
5238 rtx_insn *.
5239 (emit_pattern_after_setloc): Strengthen return type from rtx to
5240 rtx_insn *. Add checked casts for now when converting "last" from
5241 rtx to rtx_insn *.
5242 (emit_pattern_after): Strengthen return type from rtx to
5243 rtx_insn *.
5244 (emit_insn_after_setloc): Likewise.
5245 (emit_insn_after): Likewise.
5246 (emit_jump_insn_after_setloc): Likewise.
5247 (emit_jump_insn_after): Likewise.
5248 (emit_call_insn_after_setloc): Likewise.
5249 (emit_call_insn_after): Likewise.
5250 (emit_debug_insn_after_setloc): Likewise.
5251 (emit_debug_insn_after): Likewise.
5252 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5253 when converting "last" from rtx to rtx_insn *.
5254 (emit_pattern_before): Strengthen return type from rtx to
5255 rtx_insn *.
5256 (emit_insn_before_setloc): Likewise.
5257 (emit_insn_before): Likewise.
5258 (emit_jump_insn_before_setloc): Likewise.
5259 (emit_jump_insn_before): Likewise.
5260 (emit_call_insn_before_setloc): Likewise.
5261 (emit_call_insn_before): Likewise.
5262 (emit_debug_insn_before_setloc): Likewise.
5263 (emit_debug_insn_before): Likewise.
5264 (emit_insn): Strengthen return type and locals "last", "insn",
5265 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5266 within cases where we know we have an insn.
5267 (emit_debug_insn): Likewise.
5268 (emit_jump_insn): Likewise.
5269 (emit_call_insn): Strengthen return type and local "insn" from rtx
5270 to rtx_insn *.
5271 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5272 a checked cast to rtx_insn * for now on "label".
5273 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5274 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5275 (emit_use): Likewise.
5276 (gen_use): Likewise, also for local "seq".
5277 (emit): Likewise for return type and local "insn".
5278 (rtx_insn): Likewise for return type and local "new_rtx".
5279
5280 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5281 from rtx to rtx_barrier *.
5282
5283 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5284 changed return type from rtx to rtx_insn *, we must update
5285 "emit_fn" type, and this in turn means updating...
5286 (frame_insn): ...this. Strengthen return type from rtx to
5287 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5288
5289 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5290
5291 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5292 rtx to rtx_jump_table_data *. Also for local.
5293 * rtl.h (emit_jump_table_data): Likewise.
5294
5295 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5296
5297 * basic-block.h (create_basic_block_structure): Strengthen third
5298 param "bb_note" from rtx to rtx_note *.
5299 * rtl.h (emit_note_before): Strengthen return type from rtx to
5300 rtx_note *.
5301 (emit_note_after): Likewise.
5302 (emit_note): Likewise.
5303 (emit_note_copy): Likewise. Also, strengthen param similarly.
5304 * function.h (struct rtl_data): Strengthen field
5305 "x_stack_check_probe_note" from rtx to rtx_note *.
5306
5307 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5308 from rtx to rtx_note *.
5309 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5310 "bb_note" from rtx to rtx_note *.
5311 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5312 when calling emit_note_copy.
5313 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5314 rtx_note *.
5315 (emit_note_after): Likewise.
5316 (emit_note_before): Likewise.
5317 (emit_note_copy): Likewise. Also, strengthen param similarly.
5318 (emit_note): Likewise.
5319 * except.c (emit_note_eh_region_end): Likewise for return type.
5320 Strengthen local "next" from rtx to rtx_insn *.
5321 (convert_to_eh_region_ranges): Strengthen local "note"
5322 from rtx to rtx_note *.
5323 * final.c (change_scope): Likewise.
5324 (reemit_insn_block_notes): Likewise, for both locals named "note".
5325 Also, strengthen local "insn" from rtx to rtx_insn *.
5326 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5327 rtx to rtx_note *.
5328 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5329 strengthen local "seq" from rtx to rtx_insn *.
5330 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5331 to rtx_note *.
5332 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5333 vec<rtx_note *>.
5334 (get_bb_note_from_pool): Strengthen return type from rtx to
5335 rtx_note *.
5336 (sel_create_basic_block): Strengthen local "new_bb_note" from
5337 insn_t to rtx_note *.
5338 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5339 "note" from rtx to rtx_note *.
5340 (emit_notes_in_bb): Likewise.
5341
5342 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5343
5344 * function.h (struct rtl_data): Strengthen field
5345 "x_parm_birth_insn" from rtx to rtx_insn *.
5346 * function.c (struct assign_parm_data_all): Strengthen fields
5347 "first_conversion_insn" and "last_conversion_insn" from rtx to
5348 rtx_insn *.
5349
5350 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5351
5352 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5353 to rtx_insn *; also for local "var_end_seq".
5354 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5355 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5356 "insn".
5357 (expand_gimple_cond): Likewise for locals "last2" and "last".
5358 (mark_transaction_restart_calls): Likewise for local "insn".
5359 (expand_gimple_stmt): Likewise for return type and locals "last"
5360 and "insn".
5361 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5362 (avoid_complex_debug_insns): Likewise for param "insn".
5363 (expand_debug_locations): Likewise for locals "insn", "last",
5364 "prev_insn" and "insn2".
5365 (expand_gimple_basic_block): Likewise for local "last".
5366 (construct_exit_block): Likewise for locals "head", "end",
5367 "orig_end".
5368 (pass_expand::execute): Likewise for locals "var_seq",
5369 "var_ret_seq", "next".
5370
5371 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5372
5373 * asan.h (asan_emit_stack_protection): Strengthen return type from
5374 rtx to rtx_insn *.
5375 * asan.c (asan_emit_stack_protection): Likewise. Add local
5376 "insns" to hold the return value.
5377
5378 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5379
5380 * basic-block.h (bb_note): Strengthen return type from rtx to
5381 rtx_note *.
5382 * sched-int.h (bb_note): Likewise.
5383 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5384
5385 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5386
5387 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5388 rtx_insn *.
5389
5390 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5391 "insn" from rtx to rtx_insn *.
5392 (make_debug_insn_raw): Strengthen return type from rtx to
5393 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5394 (make_jump_insn_raw): Strengthen return type from rtx to
5395 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5396 (make_call_insn_raw): Strengthen return type from rtx to
5397 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5398 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5399 callback from rtx to rtx_insn *; likewise for local "insn" and
5400 "next", adding a checked cast to rtx_insn in the relevant cases of
5401 the switch statement.
5402 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5403 callback from rtx to rtx_insn *.
5404 (emit_pattern_after_setloc): Likewise.
5405 (emit_pattern_after): Likewise.
5406 (emit_pattern_before_setloc): Likewise.
5407 (emit_pattern_before): Likewise.
5408
5409 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5410
5411 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5412 rtx_call_insn *.
5413 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5414 accepting an rtx_insn *.
5415 (last_call_insn): Strengthen return type from rtx to
5416 rtx_call_insn *.
5417
5418 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5419
5420 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5421 "insns" from rtx to rtx_insn *.
5422 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5423 locals "insn" and "prev".
5424
5425 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5426
5427 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5428 rtx_jump_table_data **.
5429
5430 * cfgbuild.c (make_edges): Introduce local "table", using it in
5431 place of "tmp" for jump table data.
5432 (find_bb_boundaries): Strengthen local "table" from rtx to
5433 rtx_jump_table_data *.
5434 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5435 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5436 (try_crossjump_to_edge): Likewise.
5437 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5438 "table".
5439 (patch_jump_insn): Introduce local "table", using it in place of
5440 "tmp" for jump table data.
5441 (force_nonfallthru_and_redirect): Introduce local "table", so that
5442 call to tablejump_p can receive an rtx_jump_table_data **. Update
5443 logic around the call to overwrite "note" appropriately if
5444 tablejump_p returns non-zero.
5445 (get_last_bb_insn): Introduce local "table", using it in place of
5446 "tmp" for jump table data.
5447 * dwarf2cfi.c (create_trace_edges): Likewise.
5448
5449 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5450 from rtx to rtx_jump_table_data *.
5451 (create_fix_barrier): Strengthen local "tmp" from rtx to
5452 rtx_jump_table_data *.
5453 (arm_reorg): Likewise for local "table".
5454
5455 * config/s390/s390.c (s390_chunkify_start): Likewise.
5456
5457 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5458
5459 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5460 rtx to rtx_jump_table_data *.
5461
5462 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5463 rtx_jump_table_data **. Add a checked cast when writing through
5464 the pointer: we know there that local "table" is non-NULL and that
5465 JUMP_TABLE_DATA_P (table) holds.
5466 (label_is_jump_target_p): Introduce local "table", using it in
5467 place of "tmp" for jump table data.
5468
5469 2014-08-19 Marek Polacek <polacek@redhat.com>
5470
5471 PR c++/62153
5472 * doc/invoke.texi: Document -Wbool-compare.
5473
5474 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5475
5476 * rtl.h (entry_of_function): Strengthen return type from rtx to
5477 rtx_insn *.
5478 * cfgrtl.c (entry_of_function): Likewise.
5479
5480 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5481
5482 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5483 rtx_insn *, adding a checked cast for now.
5484 (get_last_insn): Likewise.
5485
5486 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5487
5488 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5489 rtx_code_label *.
5490
5491 * emit-rtl.c (gen_label_rtx): Likewise.
5492
5493 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5494
5495 * rtl.h (previous_insn): Strengthen return type from rtx to
5496 rtx_insn *.
5497 (next_insn): Likewise.
5498 (prev_nonnote_insn): Likewise.
5499 (prev_nonnote_insn_bb): Likewise.
5500 (next_nonnote_insn): Likewise.
5501 (next_nonnote_insn_bb): Likewise.
5502 (prev_nondebug_insn): Likewise.
5503 (next_nondebug_insn): Likewise.
5504 (prev_nonnote_nondebug_insn): Likewise.
5505 (next_nonnote_nondebug_insn): Likewise.
5506 (prev_real_insn): Likewise.
5507 (next_real_insn): Likewise.
5508 (prev_active_insn): Likewise.
5509 (next_active_insn): Likewise.
5510
5511 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5512 rtx_insn *, adding a checked cast.
5513 (previous_insn): Likewise.
5514 (next_nonnote_insn): Likewise.
5515 (next_nonnote_insn_bb): Likewise.
5516 (prev_nonnote_insn): Likewise.
5517 (prev_nonnote_insn_bb): Likewise.
5518 (next_nondebug_insn): Likewise.
5519 (prev_nondebug_insn): Likewise.
5520 (next_nonnote_nondebug_insn): Likewise.
5521 (prev_nonnote_nondebug_insn): Likewise.
5522 (next_real_insn): Likewise.
5523 (prev_real_insn): Likewise.
5524 (next_active_insn): Likewise.
5525 (prev_active_insn): Likewise.
5526
5527 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5528 param "stepfunc" so that it returns an rtx_insn * rather than an
5529 rtx, to track the change to prev_nonnote_insn_bb, which is the
5530 only function this is called with.
5531 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5532
5533 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5534
5535 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5536 assert.
5537
5538 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5539
5540 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5541 (class rtx_nonjump_insn): Likewise.
5542 (class rtx_jump_insn): Likewise.
5543 (class rtx_call_insn): Likewise.
5544 (class rtx_jump_table_data): Likewise.
5545 (class rtx_barrier): Likewise.
5546 (class rtx_code_label): Likewise.
5547 (class rtx_note): Likewise.
5548
5549 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5550 adding the invariant DEBUG_INSN_P (X).
5551 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5552 the invariant NONJUMP_INSN_P (X).
5553 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5554 the invariant JUMP_P (X).
5555 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5556 the invariant CALL_P (X).
5557 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5558 invariant JUMP_TABLE_DATA_P (X).
5559 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5560 invariant BARRIER_P (X).
5561 (class rtx_code_label): New, a subclass of rtx_insn, adding
5562 the invariant LABEL_P (X).
5563 (class rtx_note): New, a subclass of rtx_insn, adding
5564 the invariant NOTE_P(X).
5565 (is_a_helper <rtx_debug_insn *>::test): New.
5566 (is_a_helper <rtx_nonjump_insn *>::test): New.
5567 (is_a_helper <rtx_jump_insn *>::test): New.
5568 (is_a_helper <rtx_call_insn *>::test): New.
5569 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5570 overloaded for both rtx and rtx_insn *.
5571 (is_a_helper <rtx_barrier *>::test): New.
5572 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5573 for both rtx and rtx_insn *.
5574 (is_a_helper <rtx_note *>::test): New.
5575
5576 2014-08-19 Marek Polacek <polacek@redhat.com>
5577
5578 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5579 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5580 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5581 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5582
5583 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5584
5585 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5586 rtx_insn *. To help with transition, for now, convert from an
5587 access macro into a pair of functions: BND_TO, returning an
5588 rtx_insn *, and...
5589 (SET_BND_TO): New function, for use where BND_TO is used as an
5590 lvalue.
5591
5592 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5593 SET_BND_TO.
5594 (BND_TO): New function, adding a checked cast.
5595 (SET_BND_TO): New function.
5596
5597 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5598 SET_BND_TO.
5599 (compute_av_set_on_boundaries): Likewise.
5600
5601 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5602
5603 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5604 destination if it is used in source.
5605 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5606 (*popcount<mode>2_falsedep_1): Likewise.
5607
5608 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5609
5610 PR other/62168
5611 * configure.ac: Set install_gold_as_default to no first.
5612 * configure: Regenerated.
5613
5614 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5615
5616 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5617 "note_list" field will eventually be an rtx_insn *. To help with
5618 transition, for now, convert from an access macro into a pair of
5619 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5620 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5621 used as an lvalue.
5622
5623 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5624 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5625
5626 * sel-sched-ir.c (init_bb): Likewise.
5627 (sel_restore_notes): Likewise.
5628 (move_bb_info): Likewise.
5629 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5630 (SET_BB_NOTE_LIST): New function.
5631
5632 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5633
5634 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5635 field will eventually be an rtx_insn *. To help with transition,
5636 for now, convert from an access macro into a pair of functions:
5637 VINSN_INSN_RTX, returning an rtx_insn *, and...
5638 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5639 is used as an lvalue.
5640
5641 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5642 SET_VINSN_INSN_RTX where it's used as an lvalue.
5643 (VINSN_INSN_RTX): New function.
5644 (SET_VINSN_INSN_RTX): New function.
5645
5646 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5647
5648 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5649 eventually be rtx_insn *, but to help with transition, for now,
5650 convert from an access macro into a pair of functions: DEP_PRO
5651 returning an rtx_insn * and...
5652 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5653 lvalue, returning an rtx&.
5654 (DEP_CON): Analogous changes to DEP_PRO above.
5655 (SET_DEP_CON): Likewise.
5656
5657 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5658 an lvalue to SET_DEP_CON.
5659 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5660 (sd_copy_back_deps): Likewise for DEP_CON.
5661 (DEP_PRO): New function, adding a checked cast for now.
5662 (DEP_CON): Likewise.
5663 (SET_DEP_PRO): New function.
5664 (SET_DEP_CON): Likewise.
5665
5666 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5667
5668 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5669 (extra_options): Add i386/cygwin.opt.
5670 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5671 (CPP_SPEC): Accept -pthread.
5672 (LINK_SPEC): Ditto.
5673 (GOMP_SELF_SPECS): Update comment.
5674 * config/i386/cygwin.opt: New file for -pthread flag.
5675
5676 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5677
5678 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5679 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5680 that we can return an rtx_insn *.
5681
5682 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5683
5684 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5685 when building executables, not DLLs. Add --large-address-aware
5686 under the same conditions.
5687 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5688 when building executables, not DLLs. Add --large-address-aware
5689 under the same conditions when using -m32.
5690
5691 * config/i386/cygwin-stdint.h: Throughout, make type
5692 definitions dependent on target architecture, not host.
5693
5694 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5695
5696 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5697 the return type from rtx to rtx_insn *, which will enable various
5698 conversions in followup patches. For now this is is done by a
5699 checked cast.
5700 (NEXT_INSN): Likewise.
5701 (SET_PREV_INSN): Convert to an inline function. This is intended
5702 for use as an lvalue, and so returns an rtx& to allow in-place
5703 modification.
5704 (SET_NEXT_INSN): Likewise.
5705
5706 2014-07-08 Mark Wielaard <mjw@redhat.com>
5707
5708 PR debug/59051
5709 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5710
5711 2014-08-19 Marek Polacek <polacek@redhat.com>
5712
5713 PR c/61271
5714 * cgraphunit.c (handle_alias_pairs): Fix condition.
5715
5716 2014-08-19 Richard Biener <rguenther@suse.de>
5717
5718 * gimple-fold.c (fold_gimple_assign): Properly build a
5719 null-pointer constant when devirtualizing addresses.
5720
5721 2014-07-07 Mark Wielaard <mjw@redhat.com>
5722
5723 * dwarf2out.c (decl_quals): New function.
5724 (modified_type_die): Take one cv_quals argument instead of two,
5725 one for const and one for volatile.
5726 (add_type_attribute): Likewise.
5727 (generic_parameter_die): Call add_type_attribute with one modifier
5728 argument.
5729 (base_type_for_mode): Likewise.
5730 (add_bounds_info): Likewise.
5731 (add_subscript_info): Likewise.
5732 (gen_array_type_die): Likewise.
5733 (gen_descr_array_type_die): Likewise.
5734 (gen_entry_point_die): Likewise.
5735 (gen_enumeration_type_die): Likewise.
5736 (gen_formal_parameter_die): Likewise.
5737 (gen_subprogram_die): Likewise.
5738 (gen_variable_die): Likewise.
5739 (gen_const_die): Likewise.
5740 (gen_field_die): Likewise.
5741 (gen_pointer_type_die): Likewise.
5742 (gen_reference_type_die): Likewise.
5743 (gen_ptr_to_mbr_type_die): Likewise.
5744 (gen_inheritance_die): Likewise.
5745 (gen_subroutine_type_die): Likewise.
5746 (gen_typedef_die): Likewise.
5747 (force_type_die): Likewise.
5748
5749 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5750
5751 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5752 if unset.
5753 * configure: Regenerate.
5754
5755 2014-08-19 Richard Biener <rguenther@suse.de>
5756
5757 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5758 DECL_EXTERNALs in BLOCKs as non-references.
5759 * tree-streamer-out.c (streamer_write_chain): Likewise.
5760
5761 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5762 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5763 Anna Tikhonova <anna.tikhonova@intel.com>
5764 Ilya Tocar <ilya.tocar@intel.com>
5765 Andrey Turetskiy <andrey.turetskiy@intel.com>
5766 Ilya Verbin <ilya.verbin@intel.com>
5767 Kirill Yukhin <kirill.yukhin@intel.com>
5768 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5769
5770 * config/i386/sse.md
5771 (define_mode_iterator VI48_AVX512F): Delete.
5772 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5773 (define_mode_iterator VI2_AVX512VL): Ditto.
5774 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5775 Delete.
5776 (define_insn
5777 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5778 New.
5779 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5780 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5781 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5782 with VI48_AVX512F_AVX512VL): New.
5783 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5784 with VI2_AVX512VL): Ditto.
5785
5786 2014-08-19 Marek Polacek <polacek@redhat.com>
5787
5788 * doc/invoke.texi: Document -Wc99-c11-compat.
5789
5790 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5791
5792 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5793 for rvalues, and...
5794 (SET_PREV_INSN): New macro, for use as an lvalue.
5795 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5796
5797 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5798 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5799 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5800 (fixup_abnormal_edges): Likewise.
5801 (unlink_insn_chain): Likewise.
5802 (fixup_reorder_chain): Likewise.
5803 (cfg_layout_delete_block): Likewise.
5804 (cfg_layout_merge_blocks): Likewise.
5805 * combine.c (update_cfg_for_uncondjump): Likewise.
5806 * emit-rtl.c (link_insn_into_chain): Likewise.
5807 (remove_insn): Likewise.
5808 (delete_insns_since): Likewise.
5809 (reorder_insns_nobb): Likewise.
5810 (emit_insn_after_1): Likewise.
5811 * final.c (rest_of_clean_state): Likewise.
5812 (final_scan_insn): Likewise.
5813 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5814 * haifa-sched.c (concat_note_lists): Likewise.
5815 (remove_notes): Likewise.
5816 (restore_other_notes): Likewise.
5817 (move_insn): Likewise.
5818 (unlink_bb_notes): Likewise.
5819 (restore_bb_notes): Likewise.
5820 * jump.c (delete_for_peephole): Likewise.
5821 * optabs.c (emit_libcall_block_1): Likewise.
5822 * reorg.c (emit_delay_sequence): Likewise.
5823 (fill_simple_delay_slots): Likewise.
5824 * sel-sched-ir.c (sel_move_insn): Likewise.
5825 (sel_remove_insn): Likewise.
5826 (get_bb_note_from_pool): Likewise.
5827 * sel-sched.c (move_nop_to_previous_block): Likewise.
5828
5829 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5830 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5831 (c6x_gen_bundles): Likewise.
5832 (hwloop_optimize): Likewise.
5833 * config/frv/frv.c (frv_function_prologue): Likewise.
5834 (frv_register_nop): Likewise.
5835 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5836 (ia64_reorg): Likewise.
5837 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5838 (mep_make_bundle): Likewise.
5839 (mep_bundle_insns): Likewise.
5840 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5841 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5842 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5843
5844 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5845
5846 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5847 return type from rtx to rtx_insn *.
5848 (BB_END): Likewise.
5849 (BB_HEADER): Likewise.
5850 (BB_FOOTER): Likewise.
5851 (SET_BB_HEAD): Convert to a function.
5852 (SET_BB_END): Likewise.
5853 (SET_BB_HEADER): Likewise.
5854 (SET_BB_FOOTER): Likewise.
5855
5856 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5857 Strengthen the return type from rtx to rtx_insn *. For now, this
5858 is done by adding a checked cast, but this will eventually
5859 become a field lookup.
5860 (BB_END): Likewise.
5861 (BB_HEADER): Likewise.
5862 (BB_FOOTER): Likewise.
5863 (SET_BB_HEAD): New function, from macro of same name. This is
5864 intended for use as an lvalue, and so returns an rtx& to allow
5865 in-place modification.
5866 (SET_BB_END): Likewise.
5867 (SET_BB_HEADER): Likewise.
5868 (SET_BB_FOOTER): Likewise.
5869
5870 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5871
5872 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5873 for rvalues, and...
5874 (SET_BB_HEAD): New macro, for use as a lvalue.
5875 (BB_END, SET_BB_END): Likewise.
5876 (BB_HEADER, SET_BB_HEADER): Likewise.
5877 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5878
5879 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5880 of BB_* macros into SET_BB_* macros.
5881 (fix_crossing_unconditional_branches): Likewise.
5882 * caller-save.c (save_call_clobbered_regs): Likewise.
5883 (insert_one_insn): Likewise.
5884 * cfgbuild.c (find_bb_boundaries): Likewise.
5885 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5886 (outgoing_edges_match): Likewise.
5887 (try_optimize_cfg): Likewise.
5888 * cfgexpand.c (expand_gimple_cond): Likewise.
5889 (expand_gimple_tailcall): Likewise.
5890 (expand_gimple_basic_block): Likewise.
5891 (construct_exit_block): Likewise.
5892 * cfgrtl.c (delete_insn): Likewise.
5893 (create_basic_block_structure): Likewise.
5894 (rtl_delete_block): Likewise.
5895 (rtl_split_block): Likewise.
5896 (emit_nop_for_unique_locus_between): Likewise.
5897 (rtl_merge_blocks): Likewise.
5898 (block_label): Likewise.
5899 (try_redirect_by_replacing_jump): Likewise.
5900 (emit_barrier_after_bb): Likewise.
5901 (fixup_abnormal_edges): Likewise.
5902 (record_effective_endpoints): Likewise.
5903 (relink_block_chain): Likewise.
5904 (fixup_reorder_chain): Likewise.
5905 (fixup_fallthru_exit_predecessor): Likewise.
5906 (cfg_layout_duplicate_bb): Likewise.
5907 (cfg_layout_split_block): Likewise.
5908 (cfg_layout_delete_block): Likewise.
5909 (cfg_layout_merge_blocks): Likewise.
5910 * combine.c (update_cfg_for_uncondjump): Likewise.
5911 * emit-rtl.c (add_insn_after): Likewise.
5912 (remove_insn): Likewise.
5913 (reorder_insns): Likewise.
5914 (emit_insn_after_1): Likewise.
5915 * haifa-sched.c (get_ebb_head_tail): Likewise.
5916 (restore_other_notes): Likewise.
5917 (move_insn): Likewise.
5918 (sched_extend_bb): Likewise.
5919 (fix_jump_move): Likewise.
5920 * ifcvt.c (noce_process_if_block): Likewise.
5921 (dead_or_predicable): Likewise.
5922 * ira.c (update_equiv_regs): Likewise.
5923 * reg-stack.c (change_stack): Likewise.
5924 * sel-sched-ir.c (sel_move_insn): Likewise.
5925 * sel-sched.c (move_nop_to_previous_block): Likewise.
5926
5927 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5928 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5929
5930 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5931
5932 * rtl.h (for_each_rtx_in_insn): New function.
5933 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5934
5935 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5936
5937 * coretypes.h (class rtx_insn): Add forward declaration.
5938
5939 * rtl.h: Include is-a.h.
5940 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5941 workaround to ensure gengtype knows inheritance is occurring,
5942 whilst continuing to use the pre-existing special-casing for
5943 rtx_def.
5944 (class rtx_insn): New subclass of rtx_def, adding the
5945 invariant that we're dealing with something we can sanely use
5946 INSN_UID, NEXT_INSN, PREV_INSN on.
5947 (is_a_helper <rtx_insn *>::test): New.
5948 (is_a_helper <const rtx_insn *>::test): New.
5949
5950 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5951
5952 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5953
5954 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5955
5956 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5957 comdats as extern.
5958
5959 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5960
5961 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5962 to BUILT_IN_UNREACHABLE.
5963
5964 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5965
5966 PR target/62011
5967 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5968 New tune flag.
5969 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5970 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5971 (ffs<mode>2): Do not expand with tzcnt for
5972 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5973 (ffssi2_no_cmove): Ditto.
5974 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5975 (ctz<mode>2): New expander.
5976 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5977 (*ctz<mode>2_falsedep): New insn.
5978 (*ctz<mode>2): Rename from ctz<mode>2.
5979 (clz<mode>2_lzcnt): New expander.
5980 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5981 (*clz<mode>2_lzcnt_falsedep): New insn.
5982 (*clz<mode>2): Rename from ctz<mode>2.
5983 (popcount<mode>2): New expander.
5984 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5985 (*popcount<mode>2_falsedep): New insn.
5986 (*popcount<mode>2): Rename from ctz<mode>2.
5987 (*popcount<mode>2_cmp): Remove.
5988 (*popcountsi2_cmp_zext): Ditto.
5989
5990 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5991
5992 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5993 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5994 * config/microblaze/microblaze.h
5995 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5996
5997 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5998
5999 PR other/62168
6000 * configure.ac: Set install_gold_as_default to no for
6001 --enable-gold=no.
6002 * configure: Regenerated.
6003
6004 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6005
6006 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6007 * config.in: Add undef of HAVE_isl.
6008 * configure: Regenerate.
6009 * configure.ac: Add definition of HAVE_isl.
6010 * graphite-blocking.c: Add checking of HAVE_isl.
6011 * graphite-dependences.c: Likewise.
6012 * graphite-interchange.c: Likewise.
6013 * graphite-isl-ast-to-gimple.c: Likewise.
6014 * graphite-optimize-isl.c: Likewise.
6015 * graphite-poly.c: Likewise.
6016 * graphite-scop-detection.c: Likewise.
6017 * graphite-sese-to-poly.c: Likewise.
6018 * graphite.c: Likewise.
6019 * toplev.c: Replace the checking of HAVE_cloog with the checking
6020 of HAVE_isl.
6021
6022 2014-08-18 Richard Biener <rguenther@suse.de>
6023
6024 PR tree-optimization/62090
6025 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6026 (fold_builtin_3): Do not fold snprintf.
6027 (fold_builtin_4): Likewise.
6028 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6029 moved from builtins.c.
6030 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6031 (gimple_fold_builtin): Do not fold sprintf here.
6032
6033 2014-08-18 Richard Biener <rguenther@suse.de>
6034
6035 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6036 code to ...
6037 (maybe_canonicalize_mem_ref_addr): ... this function.
6038 (fold_stmt_1): Apply it here before all simplification.
6039
6040 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6041
6042 PR ipa/61800
6043 * cgraph.h (cgraph_node::create_indirect_edge): Add
6044 compute_indirect_info param.
6045 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6046 indirect_info only when it is required.
6047 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6048 indirect_info fore cloned indirect edge.
6049
6050 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6051 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6052 Anna Tikhonova <anna.tikhonova@intel.com>
6053 Ilya Tocar <ilya.tocar@intel.com>
6054 Andrey Turetskiy <andrey.turetskiy@intel.com>
6055 Ilya Verbin <ilya.verbin@intel.com>
6056 Kirill Yukhin <kirill.yukhin@intel.com>
6057 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6058
6059 * config/i386/sse.md
6060 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6061 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6062
6063 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6064 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6065 Anna Tikhonova <anna.tikhonova@intel.com>
6066 Ilya Tocar <ilya.tocar@intel.com>
6067 Andrey Turetskiy <andrey.turetskiy@intel.com>
6068 Ilya Verbin <ilya.verbin@intel.com>
6069 Kirill Yukhin <kirill.yukhin@intel.com>
6070 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6071
6072 * config/i386/sse.md
6073 (define_mode_iterator VF1_AVX512VL): New.
6074 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6075 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6076 New.
6077
6078 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6079 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6080 Anna Tikhonova <anna.tikhonova@intel.com>
6081 Ilya Tocar <ilya.tocar@intel.com>
6082 Andrey Turetskiy <andrey.turetskiy@intel.com>
6083 Ilya Verbin <ilya.verbin@intel.com>
6084 Kirill Yukhin <kirill.yukhin@intel.com>
6085 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6086
6087 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6088 * config/i386/i386.md
6089 (define_code_iterator any_float): New.
6090 (define_code_attr floatsuffix): New.
6091 * config/i386/sse.md
6092 (define_mode_iterator VF1_128_256VL): New.
6093 (define_mode_iterator VF2_512_256VL): New.
6094 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6095 TARGET check.
6096 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6097 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6098 New.
6099 (define_mode_attr qq2pssuff): New.
6100 (define_mode_attr sselongvecmode): New.
6101 (define_mode_attr sselongvecmodelower): New.
6102 (define_mode_attr sseintvecmode3): New.
6103 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6104 New.
6105 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6106 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6107 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6108 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6109
6110 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6111 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6112 Anna Tikhonova <anna.tikhonova@intel.com>
6113 Ilya Tocar <ilya.tocar@intel.com>
6114 Andrey Turetskiy <andrey.turetskiy@intel.com>
6115 Ilya Verbin <ilya.verbin@intel.com>
6116 Kirill Yukhin <kirill.yukhin@intel.com>
6117 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6118
6119 * config/i386/sse.md
6120 (define_mode_iterator VF2_AVX512VL): New.
6121 (define_mode_attr sseintvecmode2): New.
6122 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6123 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6124 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6125 (define_insn
6126 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6127 Ditto.
6128 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6129 Ditto.
6130 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6131 Ditto.
6132
6133 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6134 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6135 Anna Tikhonova <anna.tikhonova@intel.com>
6136 Ilya Tocar <ilya.tocar@intel.com>
6137 Andrey Turetskiy <andrey.turetskiy@intel.com>
6138 Ilya Verbin <ilya.verbin@intel.com>
6139 Kirill Yukhin <kirill.yukhin@intel.com>
6140 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6141
6142 * config/i386/i386.md
6143 (define_insn "*movoi_internal_avx"): Add evex version.
6144 (define_insn "*movti_internal"): Ditto.
6145
6146 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6147 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6148 Anna Tikhonova <anna.tikhonova@intel.com>
6149 Ilya Tocar <ilya.tocar@intel.com>
6150 Andrey Turetskiy <andrey.turetskiy@intel.com>
6151 Ilya Verbin <ilya.verbin@intel.com>
6152 Kirill Yukhin <kirill.yukhin@intel.com>
6153 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6154
6155 * config/i386/i386.md
6156 (define_attr "isa"): Add avx512dq, noavx512dq.
6157 (define_attr "enabled"): Ditto.
6158 * config/i386/sse.md
6159 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6160
6161 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6162 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6163 Anna Tikhonova <anna.tikhonova@intel.com>
6164 Ilya Tocar <ilya.tocar@intel.com>
6165 Andrey Turetskiy <andrey.turetskiy@intel.com>
6166 Ilya Verbin <ilya.verbin@intel.com>
6167 Kirill Yukhin <kirill.yukhin@intel.com>
6168 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6169
6170 * config/i386/i386.c
6171 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6172 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6173 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6174 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6175 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6176 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6177 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6178 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6179 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6180 * config/i386/sse.md
6181 (define_mode_iterator VMOVE): Allow V4TI mode.
6182 (define_mode_iterator V_AVX512VL): New.
6183 (define_mode_iterator V): New handling for AVX512VL.
6184 (define_insn "avx512f_load<mode>_mask"): Delete.
6185 (define_insn "<avx512>_load<mode>_mask"): New.
6186 (define_insn "avx512f_store<mode>_mask"): Delete.
6187 (define_insn "<avx512>_store<mode>_mask"): New.
6188
6189
6190 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6191
6192 PR sanitizer/62089
6193 * asan.c (instrument_derefs): Fix bitfield check.
6194
6195 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6196
6197 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6198 * config/rs6000/htm.md (ttest): Remove clobber.
6199 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6200 (and_operand): Reformat.
6201 (and_2rld_operand): New predicate.
6202 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6203 parameter.
6204 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6205 parameter. Handle AND directly.
6206 (rs6000_split_logical_di): Remove last parameter.
6207 (rs6000_split_logical): Remove last parameter. Remove obsolete
6208 comment.
6209 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6210 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6211 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6212 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6213 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6214 and 5 anonymous splitters): Delete.
6215 (and<mode>3): New expander.
6216 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6217 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6218 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6219 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6220 (floatdisf2_internal1): Remove clobbers.
6221 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6222 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6223 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6224 (and<mode>3 for BOOL_128): Remove clobber.
6225 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6226 rs6000_split_logical.
6227 (*bool<mode>3_internal for BOOL_128): Adjust call of
6228 rs6000_split_logical.
6229 (*boolc<mode>3_internal1 for BOOL_128,
6230 *boolc<mode>3_internal2 for BOOL_128,
6231 *boolcc<mode>3_internal1 for BOOL_128,
6232 *boolcc<mode>3_internal2 for BOOL_128,
6233 *eqv<mode>3_internal1 for BOOL_128,
6234 *eqv<mode>3_internal2 for BOOL_128,
6235 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6236 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6237 clobber.
6238 (*vec_reload_and_reg_<mptrsize>): Delete.
6239
6240 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6241
6242 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6243 and split, *boolccsi3_internal3 and split): Delete.
6244 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6245 *boolccdi3_internal3 and split): Delete.
6246 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6247 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6248
6249 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6250
6251 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6252 and split, *boolcsi3_internal3 and split): Delete.
6253 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6254 *boolcdi3_internal3 and split): Delete.
6255 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6256
6257 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6258
6259 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6260 <'u'>: Also support printing the low-order 16 bits.
6261 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6262 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6263 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6264 *booldi3_internal3 and split): Delete.
6265 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6266 *bool<mode>3_dot2): New.
6267 (two anonymous define_splits for non_logical_cint_operand): Merge.
6268
6269 2014-08-17 Marek Polacek <polacek@redhat.com>
6270 Manuel López-Ibáñez <manu@gcc.gnu.org>
6271
6272 PR c/62059
6273 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6274 (diagnostic_show_locus): Don't print caret diagnostic
6275 if a column is larger than the line_width.
6276
6277 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6278
6279 * common.opt: Make the ISL AST generator to be the main code generator
6280 of Graphite.
6281
6282 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6283
6284 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6285
6286 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6287
6288 PR target/61641
6289 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6290 Declare.
6291 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6292 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6293 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6294 Define.
6295 * config/pa/pa.md (begin_brtab): Delete insn.
6296 (end_brtab): Likewise.
6297
6298 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6299
6300 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6301
6302 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6303
6304 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6305 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6306 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6307 (get_dynamic_type): Remove.
6308 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6309 (clear_speculation): Bring to ipa-deivrt.h
6310 (get_class_context): Rename to ...
6311 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6312 (contains_type_p): Update.
6313 (get_dynamic_type): Rename to ...
6314 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6315 (possible_polymorphic_call_targets): UPdate.
6316 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6317 * ipa-prop.c (ipa_analyze_call_uses): Update.
6318
6319 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6320
6321 * doc/invoke.texi (SH options): Document missing processor variant
6322 options. Remove references to Hitachi. Undocument deprecated mspace
6323 option.
6324
6325 2014-08-15 Jason Merrill <jason@redhat.com>
6326
6327 * tree.c (type_hash_canon): Uncomment assert.
6328
6329 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6330
6331 * input.h (in_system_header_at): Add comment.
6332
6333 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6334
6335 PR fortran/44054
6336 * diagnostic.c (build_message_string): Make it extern.
6337 * diagnostic.h (build_message_string): Make it extern.
6338
6339 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6340
6341 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6342 load/store from/to non-floating class pseudo.
6343
6344 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6345
6346 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6347
6348 2014-08-15 Richard Biener <rguenther@suse.de>
6349
6350 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6351 (get_constraint_for_ssa_var): Remove dead code.
6352 (get_constraint_for_1): Adjust.
6353 (find_what_var_points_to): Likewise.
6354 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6355
6356 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6357
6358 PR target/61878
6359 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6360 (_mm512_mask_cmpge_epu32_mask): Ditto.
6361 (_mm512_cmpge_epu32_mask): Ditto.
6362 (_mm512_mask_cmpge_epi64_mask): Ditto.
6363 (_mm512_cmpge_epi64_mask): Ditto.
6364 (_mm512_mask_cmpge_epu64_mask): Ditto.
6365 (_mm512_cmpge_epu64_mask): Ditto.
6366 (_mm512_mask_cmple_epi32_mask): Ditto.
6367 (_mm512_cmple_epi32_mask): Ditto.
6368 (_mm512_mask_cmple_epu32_mask): Ditto.
6369 (_mm512_cmple_epu32_mask): Ditto.
6370 (_mm512_mask_cmple_epi64_mask): Ditto.
6371 (_mm512_cmple_epi64_mask): Ditto.
6372 (_mm512_mask_cmple_epu64_mask): Ditto.
6373 (_mm512_cmple_epu64_mask): Ditto.
6374 (_mm512_mask_cmplt_epi32_mask): Ditto.
6375 (_mm512_cmplt_epi32_mask): Ditto.
6376 (_mm512_mask_cmplt_epu32_mask): Ditto.
6377 (_mm512_cmplt_epu32_mask): Ditto.
6378 (_mm512_mask_cmplt_epi64_mask): Ditto.
6379 (_mm512_cmplt_epi64_mask): Ditto.
6380 (_mm512_mask_cmplt_epu64_mask): Ditto.
6381 (_mm512_cmplt_epu64_mask): Ditto.
6382 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6383 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6384 (_mm512_cmpneq_epu32_mask): Ditto.
6385 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6386 (_mm512_cmpneq_epi64_mask): Ditto.
6387 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6388 (_mm512_cmpneq_epu64_mask): Ditto.
6389 (_mm512_castpd_ps): Ditto.
6390 (_mm512_castpd_si512): Ditto.
6391 (_mm512_castps_pd): Ditto.
6392 (_mm512_castps_si512): Ditto.
6393 (_mm512_castsi512_ps): Ditto.
6394 (_mm512_castsi512_pd): Ditto.
6395 (_mm512_castpd512_pd128): Ditto.
6396 (_mm512_castps512_ps128): Ditto.
6397 (_mm512_castsi512_si128): Ditto.
6398 (_mm512_castpd512_pd256): Ditto.
6399 (_mm512_castps512_ps256): Ditto.
6400 (_mm512_castsi512_si256): Ditto.
6401 (_mm512_castpd128_pd512): Ditto.
6402 (_mm512_castps128_ps512): Ditto.
6403 (_mm512_castsi128_si512): Ditto.
6404 (_mm512_castpd256_pd512): Ditto.
6405 (_mm512_castps256_ps512): Ditto.
6406 (_mm512_castsi256_si512): Ditto.
6407 (_mm512_cmpeq_epu32_mask): Ditto.
6408 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6409 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6410 (_mm512_cmpeq_epu64_mask): Ditto.
6411 (_mm512_cmpgt_epu32_mask): Ditto.
6412 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6413 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6414 (_mm512_cmpgt_epu64_mask): Ditto.
6415 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6416 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6417 * config/i386/i386.c (enum ix86_builtins): Add
6418 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6419 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6420 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6421 (bdesc_args): Add __builtin_ia32_si512_256si,
6422 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6423 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6424 __builtin_ia32_pd512_pd.
6425 (ix86_expand_args_builtin): Handle new FTYPEs.
6426 * config/i386/sse.md (castmode): Add 512-bit modes.
6427 (AVX512MODE2P): New.
6428 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6429 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6430
6431 2014-08-15 Richard Biener <rguenther@suse.de>
6432
6433 * fold-const.c (tree_swap_operands_p): Put all constants
6434 last, also strip sign-changing NOPs when considering further
6435 canonicalization. Canonicalize also when optimizing for size.
6436
6437 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6438
6439 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6440 one_match > zero_match case to just before simple_sequence.
6441
6442 2014-08-15 Richard Biener <rguenther@suse.de>
6443
6444 * data-streamer.h (streamer_string_index, string_for_index):
6445 Remove.
6446 * data-streamer-out.c (streamer_string_index): Make static.
6447 * data-streamer-in.c (string_for_index): Likewise.
6448 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6449 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6450
6451 2014-08-15 Richard Biener <rguenther@suse.de>
6452
6453 PR tree-optimization/62031
6454 * tree-data-ref.c (dr_analyze_indices): Do not set
6455 DR_UNCONSTRAINED_BASE.
6456 (dr_may_alias_p): All indirect accesses have to go the
6457 formerly DR_UNCONSTRAINED_BASE path.
6458 * tree-data-ref.h (struct indices): Remove
6459 unconstrained_base member.
6460 (DR_UNCONSTRAINED_BASE): Remove.
6461
6462 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6463
6464 PR middle-end/62092
6465 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6466 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6467 in OMP_CLAUSE_MAP in some outer target region.
6468
6469 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6470
6471 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6472 name_expansion_cache.
6473 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6474 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6475 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6476 (difference_cannot_overflow_p): New parameter. Use affine
6477 expansion for equality check.
6478 (iv_elimination_compare_lt): Pass new argument.
6479
6480 2014-08-14 DJ Delorie <dj@redhat.com>
6481
6482 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6483 variables to the accumulator.
6484
6485 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6486 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6487 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6488 with far-far moves.
6489
6490 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6491 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6492 (umulqihi3_virt): Likewise.
6493 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6494 (umulqihi3_real): Likewise.
6495
6496 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6497
6498 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6499
6500 PR tree-optimization/62091
6501 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6502 function_entry_reached.
6503 (walk_aliased_vdefs): Clear it here.
6504 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6505
6506 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6507
6508 * ipa-utils.h (compare_virtual_tables): Declare.
6509 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6510
6511 2014-08-14 Marek Polacek <polacek@redhat.com>
6512
6513 DR 458
6514 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6515 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6516
6517 2014-08-14 Tom de Vries <tom@codesourcery.com>
6518
6519 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6520
6521 2014-08-14 Tom de Vries <tom@codesourcery.com>
6522
6523 PR rtl-optimization/62004
6524 PR rtl-optimization/62030
6525 * ifcvt.c (rtx_interchangeable_p): New function.
6526 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6527 * emit-rtl.h (mem_attrs_eq_p): Declare.
6528
6529 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6530
6531 * graphite-scop-detection.c:
6532 Add inclusion of cp-tree.h.
6533 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6534 in case they are pointers to object types
6535
6536 2014-08-14 Richard Biener <rguenther@suse.de>
6537
6538 * BASE-VER: Change to 5.0.0
6539
6540 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6541 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6542 Anna Tikhonova <anna.tikhonova@intel.com>
6543 Ilya Tocar <ilya.tocar@intel.com>
6544 Andrey Turetskiy <andrey.turetskiy@intel.com>
6545 Ilya Verbin <ilya.verbin@intel.com>
6546 Kirill Yukhin <kirill.yukhin@intel.com>
6547 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6548
6549 * config/i386/sse.md (define_mode_attr avx512): New.
6550 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6551 V4DI modes.
6552 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6553 (define_mode_attr ssse3_avx2): Ditto.
6554 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6555 (define_mode_attr avx2_avx512bw): New.
6556 (define_mode_attr ssedoublemodelower): New.
6557 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6558 V32HI, V64QI modes.
6559 (define_mode_attr ssebytemode): Allow V8DI modes.
6560 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6561 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6562 (define_mode_attr ssePSmode2): New.
6563 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6564 V16HI, V32HI modes.
6565 (define_mode_attr dbpsadbwmode): New.
6566 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6567 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6568 (vi8_sse4_1_avx2_avx512): New.
6569 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6570 mode attribute.
6571 (define_mode_attr blendbits): Move before its immediate use.
6572
6573 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6574 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6575 Anna Tikhonova <anna.tikhonova@intel.com>
6576 Ilya Tocar <ilya.tocar@intel.com>
6577 Andrey Turetskiy <andrey.turetskiy@intel.com>
6578 Ilya Verbin <ilya.verbin@intel.com>
6579 Kirill Yukhin <kirill.yukhin@intel.com>
6580 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6581
6582 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6583 * config/i386/subst.md
6584 (define_mode_iterator SUBST_V): Update.
6585 (define_mode_iterator SUBST_A): Ditto.
6586 (define_subst_attr "mask_operand7"): New.
6587 (define_subst_attr "mask_operand10"): New.
6588 (define_subst_attr "mask_operand_arg34") : New.
6589 (define_subst_attr "mask_expand_op3"): New.
6590 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6591 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6592 (define_subst_attr "mask_avx512vl_condition"): New.
6593 (define_subst_attr "round_mask_operand4"): Ditto.
6594 (define_subst_attr "round_mask_scalar_op3"): Delete.
6595 (define_subst_attr "round_mask_op4"): New.
6596 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6597 V16SImode.
6598 (define_subst_attr "round_modev8sf_condition"): New.
6599 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6600 <MODE>mode.
6601 (define_subst_attr "round_saeonly_mask_operand4"): New.
6602 (define_subst_attr "round_saeonly_mask_op4"): New.
6603 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6604 V8DImode, V16SImode.
6605 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6606 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6607 (define_subst_attr "mask_expand4_args"): New.
6608 (define_subst "mask_expand4"): New.
6609
6610 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6611 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6612 Anna Tikhonova <anna.tikhonova@intel.com>
6613 Ilya Tocar <ilya.tocar@intel.com>
6614 Andrey Turetskiy <andrey.turetskiy@intel.com>
6615 Ilya Verbin <ilya.verbin@intel.com>
6616 Kirill Yukhin <kirill.yukhin@intel.com>
6617 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6618
6619 * config/i386/i386.md
6620 (define_attr "isa"): Add avx512bw,noavx512bw.
6621 (define_attr "enabled"): Ditto.
6622 (define_split): Add 32/64-bit mask logic.
6623 (define_insn "*k<logic>qi"): New.
6624 (define_insn "*k<logic>hi"): New.
6625 (define_insn "*anddi_1"): Add mask version.
6626 (define_insn "*andsi_1"): Ditto.
6627 (define_insn "*<code><mode>_1"): Ditto.
6628 (define_insn "*<code>hi_1"): Ditto.
6629 (define_insn "kxnor<mode>"): New.
6630 (define_insn "kunpcksi"): New.
6631 (define_insn "kunpckdi"): New.
6632 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6633 (define_insn "*one_cmplhi2_1"): Ditto.
6634
6635 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6636 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6637 Anna Tikhonova <anna.tikhonova@intel.com>
6638 Ilya Tocar <ilya.tocar@intel.com>
6639 Andrey Turetskiy <andrey.turetskiy@intel.com>
6640 Ilya Verbin <ilya.verbin@intel.com>
6641 Kirill Yukhin <kirill.yukhin@intel.com>
6642 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6643
6644 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6645 V32HImode.
6646
6647 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6648 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6649 Anna Tikhonova <anna.tikhonova@intel.com>
6650 Ilya Tocar <ilya.tocar@intel.com>
6651 Andrey Turetskiy <andrey.turetskiy@intel.com>
6652 Ilya Verbin <ilya.verbin@intel.com>
6653 Kirill Yukhin <kirill.yukhin@intel.com>
6654 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6655
6656 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6657 registers.
6658 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6659 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6660 xmm/ymm16+ when availble.
6661 * config/i386/i386.h
6662 (HARD_REGNO_NREGS): Add mask regs.
6663 (VALID_AVX512F_REG_MODE): Ditto.
6664 (VALID_AVX512F_REG_MODE) : Define.
6665 (VALID_MASK_AVX512BW_MODE): Ditto.
6666 (reg_class) (MASK_REG_P(X)): Define.
6667 * config/i386/i386.md: Do not split long moves with mask register,
6668 use kmovb if avx512bw is availible.
6669 (movdi_internal): Handle mask registers.
6670
6671 2014-08-14 Richard Biener <rguenther@suse.de>
6672
6673 PR tree-optimization/62081
6674 * tree-ssa-loop.c (pass_fix_loops): New pass.
6675 (pass_tree_loop::gate): Do not fixup loops here.
6676 * tree-pass.h (make_pass_fix_loops): Declare.
6677 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6678
6679 2014-08-14 Richard Biener <rguenther@suse.de>
6680
6681 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6682 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6683
6684 2014-08-14 Richard Biener <rguenther@suse.de>
6685
6686 PR tree-optimization/62090
6687 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6688 (fold_builtin_2): Do not fold sprintf.
6689 (fold_builtin_3): Likewise.
6690 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6691 moved from builtins.c.
6692 (gimple_fold_builtin): Fold sprintf.
6693
6694 2014-08-14 Richard Biener <rguenther@suse.de>
6695
6696 PR rtl-optimization/62079
6697 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6698 run cleanup_cfg.
6699
6700 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6701
6702 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6703 current_function_decl.
6704
6705 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6706
6707 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6708 cgraph_function_node to cgraph_node::function_symbol
6709 refactoring.
6710
6711 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6712
6713 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6714 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6715
6716 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6717
6718 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6719 warning.
6720
6721 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6722
6723 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6724 generator.
6725
6726 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6727
6728 PR target/62025
6729 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6730 any registers that are used in mem_insn.
6731
6732 2014-08-12 Steve Ellcey <sellcey@mips.com>
6733
6734 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6735
6736 2014-08-12 Steve Ellcey <sellcey@mips.com>
6737
6738 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6739 (MULTILIB_DIRNAMES): Ditto.
6740 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6741 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6742 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6743 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6744 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6745 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6746
6747 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6748
6749 PR target/61413
6750 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6751 of __ARM_SIZEOF_WCHAR_T.
6752
6753 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6754
6755 PR target/62098
6756 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6757 Remove unnecessary attributes.
6758
6759 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6760
6761 * internal-fn.c (init_internal_fns): Fix off-by-one.
6762
6763 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6764 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6765 Anna Tikhonova <anna.tikhonova@intel.com>
6766 Ilya Tocar <ilya.tocar@intel.com>
6767 Andrey Turetskiy <andrey.turetskiy@intel.com>
6768 Ilya Verbin <ilya.verbin@intel.com>
6769 Kirill Yukhin <kirill.yukhin@intel.com>
6770 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6771
6772 * config/i386/i386.c (standard_sse_constant_opcode): Use
6773 vpxord/vpternlog if avx512 is availible.
6774
6775 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6776
6777 PR middle-end/62103
6778 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6779 bitfields, that is when size doesn't match the size of type or the
6780 size of the constructor.
6781
6782 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6783
6784 * config/rs6000/constraints.md (wh constraint): New constraint,
6785 for FP registers if direct move is available.
6786 (wi constraint): New constraint, for VSX/FP registers that can
6787 handle 64-bit integers.
6788 (wj constraint): New constraint for VSX/FP registers that can
6789 handle 64-bit integers for direct moves.
6790 (wk constraint): New constraint for VSX/FP registers that can
6791 handle 64-bit doubles for direct moves.
6792 (wy constraint): Make documentation match implementation.
6793
6794 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6795 scalar_in_vmx_p field to simplify tests of whether SFmode or
6796 DFmode can go in the Altivec registers.
6797 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6798 (rs6000_setup_reg_addr_masks): Likewise.
6799 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6800 field, and wh/wi/wj/wk constraints.
6801 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6802 the wh/wi/wj/wk constraints.
6803 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6804 upper registers, prefer VSX registers unless the operation is a
6805 memory operation with REG+OFFSET addressing.
6806
6807 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6808 DImode. Change SFmode to use ww constraint instead of d to allow
6809 SF registers in the upper registers.
6810 (VSr2): Likewise.
6811 (VSr3): Likewise.
6812 (VSr5): Fix thinko in comment.
6813 (VSa): New mode attribute that is an alternative to wa, that
6814 returns the VSX register class that a mode can go in, but may not
6815 be the preferred register class.
6816 (VS_64dm): New mode attribute for appropriate register classes for
6817 referencing 64-bit elements of vectors for direct moves and normal
6818 moves.
6819 (VS_64reg): Likewise.
6820 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6821 register allocator to only registers the data type can handle.
6822 (vsx_le_perm_load_<mode>): Likewise.
6823 (vsx_le_perm_store_<mode>): Likewise.
6824 (vsx_xxpermdi2_le_<mode>): Likewise.
6825 (vsx_xxpermdi4_le_<mode>): Likewise.
6826 (vsx_lxvd2x2_le_<mode>): Likewise.
6827 (vsx_lxvd2x4_le_<mode>): Likewise.
6828 (vsx_stxvd2x2_le_<mode>): Likewise.
6829 (vsx_add<mode>3): Likewise.
6830 (vsx_sub<mode>3): Likewise.
6831 (vsx_mul<mode>3): Likewise.
6832 (vsx_div<mode>3): Likewise.
6833 (vsx_tdiv<mode>3_internal): Likewise.
6834 (vsx_fre<mode>2): Likewise.
6835 (vsx_neg<mode>2): Likewise.
6836 (vsx_abs<mode>2): Likewise.
6837 (vsx_nabs<mode>2): Likewise.
6838 (vsx_smax<mode>3): Likewise.
6839 (vsx_smin<mode>3): Likewise.
6840 (vsx_sqrt<mode>2): Likewise.
6841 (vsx_rsqrte<mode>2): Likewise.
6842 (vsx_tsqrt<mode>2_internal): Likewise.
6843 (vsx_fms<mode>4): Likewise.
6844 (vsx_nfma<mode>4): Likewise.
6845 (vsx_eq<mode>): Likewise.
6846 (vsx_gt<mode>): Likewise.
6847 (vsx_ge<mode>): Likewise.
6848 (vsx_eq<mode>_p): Likewise.
6849 (vsx_gt<mode>_p): Likewise.
6850 (vsx_ge<mode>_p): Likewise.
6851 (vsx_xxsel<mode>): Likewise.
6852 (vsx_xxsel<mode>_uns): Likewise.
6853 (vsx_copysign<mode>3): Likewise.
6854 (vsx_float<VSi><mode>2): Likewise.
6855 (vsx_floatuns<VSi><mode>2): Likewise.
6856 (vsx_fix_trunc<mode><VSi>2): Likewise.
6857 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6858 (vsx_x<VSv>r<VSs>i): Likewise.
6859 (vsx_x<VSv>r<VSs>ic): Likewise.
6860 (vsx_btrunc<mode>2): Likewise.
6861 (vsx_b2trunc<mode>2): Likewise.
6862 (vsx_floor<mode>2): Likewise.
6863 (vsx_ceil<mode>2): Likewise.
6864 (vsx_<VS_spdp_insn>): Likewise.
6865 (vsx_xscvspdp): Likewise.
6866 (vsx_xvcvspuxds): Likewise.
6867 (vsx_float_fix_<mode>2): Likewise.
6868 (vsx_set_<mode>): Likewise.
6869 (vsx_extract_<mode>_internal1): Likewise.
6870 (vsx_extract_<mode>_internal2): Likewise.
6871 (vsx_extract_<mode>_load): Likewise.
6872 (vsx_extract_<mode>_store): Likewise.
6873 (vsx_splat_<mode>): Likewise.
6874 (vsx_xxspltw_<mode>): Likewise.
6875 (vsx_xxspltw_<mode>_direct): Likewise.
6876 (vsx_xxmrghw_<mode>): Likewise.
6877 (vsx_xxmrglw_<mode>): Likewise.
6878 (vsx_xxsldwi_<mode>): Likewise.
6879 (vsx_xscvdpspn): Tighten constraints to only use register classes
6880 the types use.
6881 (vsx_xscvspdpn): Likewise.
6882 (vsx_xscvdpspn_scalar): Likewise.
6883
6884 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6885 wj, and wk constraints.
6886 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6887 general purpose registers.
6888
6889 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6890 direct moves.
6891 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6892 DImode instead of wm. Use wk constraint for direct move of DFmode
6893 instead of wm.
6894 (extendsidi2_lfiwax): Likewise.
6895 (lfiwax): Likewise.
6896 (lfiwzx): Likewise.
6897 (movdi_internal64): Likewise.
6898
6899 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6900 wk constraints. Make the wy constraint documentation match them
6901 implementation.
6902
6903 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6904
6905 Replacement of isl_int by isl_val
6906 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6907 (compute_bounds_for_param): use isl_val instead of isl_int
6908 (compute_bounds_for_loop): likewise
6909 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6910 (build_linearized_memory_access): use isl_val instead of isl_int
6911 (pdr_stride_in_loop): likewise
6912 * graphite-optimize-isl.c:
6913 (getPrevectorMap): use isl_val instead of isl_int
6914 * graphite-poly.c:
6915 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6916 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6917 (extern the_isl_ctx): declare
6918 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6919 (extract_affine_gmp): likewise
6920 (wrap): likewise
6921 (build_loop_iteration_domains): likewise
6922 (add_param_constraints): likewise
6923
6924 2014-08-11 Richard Biener <rguenther@suse.de>
6925
6926 PR tree-optimization/62075
6927 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6928 handle uses in patterns.
6929
6930 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6931 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6932 Anna Tikhonova <anna.tikhonova@intel.com>
6933 Ilya Tocar <ilya.tocar@intel.com>
6934 Andrey Turetskiy <andrey.turetskiy@intel.com>
6935 Ilya Verbin <ilya.verbin@intel.com>
6936 Kirill Yukhin <kirill.yukhin@intel.com>
6937 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6938
6939 * common/config/i386/i386-common.c
6940 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6941 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6942 (ix86_handle_option): Handle OPT_mavx512vl.
6943 * config/i386/cpuid.h (bit_AVX512VL): Define.
6944 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6945 set -mavx512vl accordingly.
6946 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6947 OPTION_MASK_ISA_AVX512VL.
6948 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6949 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6950 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6951 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6952 * config/i386/i386.h (TARGET_AVX512VL): Define.
6953 (TARGET_AVX512VL_P(x)): Ditto.
6954 * config/i386/i386.opt: Add mavx512vl.
6955
6956 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6957
6958 PR tree-optimization/62073
6959 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6960 a basic block.
6961
6962 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6963 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6964 Anna Tikhonova <anna.tikhonova@intel.com>
6965 Ilya Tocar <ilya.tocar@intel.com>
6966 Andrey Turetskiy <andrey.turetskiy@intel.com>
6967 Ilya Verbin <ilya.verbin@intel.com>
6968 Kirill Yukhin <kirill.yukhin@intel.com>
6969 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6970
6971 * common/config/i386/i386-common.c
6972 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6973 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6974 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6975 (ix86_handle_option): Handle OPT_mavx512bw.
6976 * config/i386/cpuid.h (bit_AVX512BW): Define.
6977 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6978 set -mavx512bw accordingly.
6979 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6980 OPTION_MASK_ISA_AVX512BW.
6981 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6982 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6983 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6984 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6985 * config/i386/i386.h (TARGET_AVX512BW): Define.
6986 (TARGET_AVX512BW_P(x)): Ditto.
6987 * config/i386/i386.opt: Add mavx512bw.
6988
6989 2014-08-11 Richard Biener <rguenther@suse.de>
6990
6991 PR tree-optimization/62070
6992 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6993 Remove SSA checking.
6994
6995 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6996
6997 * asan.c (asan_check_flags): New enum.
6998 (build_check_stmt_with_calls): Removed function.
6999 (build_check_stmt): Split inlining logic to
7000 asan_expand_check_ifn.
7001 (instrument_derefs): Rename parameter.
7002 (instrument_mem_region_access): Rename parameter.
7003 (instrument_strlen_call): Likewise.
7004 (asan_expand_check_ifn): New function.
7005 (asan_instrument): Remove old code.
7006 (pass_sanopt::execute): Change handling of
7007 asan-instrumentation-with-call-threshold.
7008 (asan_clear_shadow): Fix formatting.
7009 (asan_function_start): Likewise.
7010 (asan_emit_stack_protection): Likewise.
7011 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7012 Update description.
7013 * internal-fn.c (expand_ASAN_CHECK): New function.
7014 * internal-fn.def (ASAN_CHECK): New internal function.
7015 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7016 Update description.
7017 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7018 * tree.c: Small comment fix.
7019
7020 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7021
7022 * gimple.c (gimple_call_fnspec): Support internal functions.
7023 (gimple_call_return_flags): Use const.
7024 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7025 * internal-fn.def: Add fnspec information.
7026 * internal-fn.h (internal_fn_fnspec): New function.
7027 (init_internal_fns): Declare new function.
7028 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7029 (init_internal_fns): New function.
7030 * tree-core.h: Update macro call.
7031 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7032
7033 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7034
7035 * lto-streamer.h (struct output_block::symbol): Change from
7036 struct symtab_node to plain symtab_node.
7037 (referenced_from_this_partition_p): Change first parameter
7038 from struct symtab_node to plain symtab_node.
7039
7040 2014-08-10 Marek Polacek <polacek@redhat.com>
7041
7042 PR c/51849
7043 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7044
7045 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7046
7047 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7048 DECL correctly; do not give up on types in static storage.
7049
7050 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7051
7052 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7053
7054 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7055
7056 * graphite-isl-ast-to-gimple.c:
7057 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7058
7059 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7060
7061 2014-08-08 Guozhi Wei <carrot@google.com>
7062
7063 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7064
7065 2014-08-08 Cary Coutant <ccoutant@google.com>
7066
7067 * dwarf2out.c (get_skeleton_type_unit): Remove.
7068 (output_skeleton_debug_sections): Remove skeleton type units.
7069 (output_comdat_type_unit): Likewise.
7070 (dwarf2out_finish): Likewise.
7071
7072 2014-08-07 Yi Yang <ahyangyi@google.com>
7073
7074 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7075
7076 2014-08-08 Richard Biener <rguenther@suse.de>
7077
7078 * lto-streamer.h (struct lto_input_block): Make it a class
7079 with a constructor.
7080 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7081 (struct lto_function_header, struct lto_simple_header,
7082 struct lto_simple_header_with_strings,
7083 struct lto_decl_header, struct lto_function_header): Make
7084 a simple inheritance hieararchy. Remove unused fields.
7085 (struct lto_asm_header): Remove.
7086 * lto-streamer-out.c (produce_asm): Adjust.
7087 (lto_output_toplevel_asms): Likewise.
7088 (produce_asm_for_decls): Likewise.
7089 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7090 * data-streamer-in.c (string_for_index): Likewise.
7091 * ipa-inline-analysis.c (inline_read_section): Likewise.
7092 * ipa-prop.c (ipa_prop_read_section): Likewise.
7093 (read_replacements_section): Likewise.
7094 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7095 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7096 (lto_destroy_simple_input_block): Likewise.
7097 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7098 (lto_input_toplevel_asms): Likewise.
7099
7100 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7101 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7102 Anna Tikhonova <anna.tikhonova@intel.com>
7103 Ilya Tocar <ilya.tocar@intel.com>
7104 Andrey Turetskiy <andrey.turetskiy@intel.com>
7105 Ilya Verbin <ilya.verbin@intel.com>
7106 Kirill Yukhin <kirill.yukhin@intel.com>
7107 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7108
7109 * common/config/i386/i386-common.c
7110 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7111 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7112 (ix86_handle_option): Handle OPT_mavx512dq.
7113 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7114 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7115 set -mavx512dq accordingly.
7116 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7117 OPTION_MASK_ISA_AVX512DQ.
7118 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7119 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7120 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7121 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7122 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7123 (TARGET_AVX512DQ_P(x)): Ditto.
7124 * config/i386/i386.opt: Add mavx512dq.
7125
7126 2014-08-08 Richard Biener <rguenther@suse.de>
7127
7128 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7129 target_percent, target_percent_s): Export.
7130 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7131 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7132 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7133 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7134 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7135 Move to gimple-fold.c.
7136 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7137 strcat and strcpy.
7138 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7139 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7140 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7141 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7142 (rewrite_call_expr_array): Remove.
7143 (fold_builtin_sprintf_chk): Likewise.
7144 (fold_builtin_snprintf_chk): Likewise.
7145 (fold_builtin_varargs): Remove handling of sprintf_chk,
7146 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7147 (gimple_fold_builtin_sprintf_chk): Remove.
7148 (gimple_fold_builtin_snprintf_chk): Likewise.
7149 (gimple_fold_builtin_varargs): Likewise.
7150 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7151 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7152 * gimple.c (gimple_seq_add_seq_without_update): New function.
7153 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7154 * gimple-fold.c: Include output.h.
7155 (gsi_replace_with_seq_vops): New function, split out from ...
7156 (gimplify_and_update_call_from_tree): ... here.
7157 (replace_call_with_value): New function.
7158 (replace_call_with_call_and_fold): Likewise.
7159 (var_decl_component_p): Moved from builtins.c.
7160 (gimple_fold_builtin_memory_op): Moved from builtins.c
7161 fold_builtin_memory_op and rewritten to GIMPLE.
7162 (gimple_fold_builtin_memset): Likewise.
7163 (gimple_fold_builtin_strcpy): Likewise.
7164 (gimple_fold_builtin_strncpy): Likewise.
7165 (gimple_fold_builtin_strcat): Likewise.
7166 (gimple_fold_builtin_fputs): Likewise.
7167 (gimple_fold_builtin_memory_chk): Likewise.
7168 (gimple_fold_builtin_stxcpy_chk): Likewise.
7169 (gimple_fold_builtin_stxncpy_chk): Likewise.
7170 (gimple_fold_builtin_snprintf_chk): Likewise.
7171 (gimple_fold_builtin_sprintf_chk): Likewise.
7172 (gimple_fold_builtin_strlen): New function.
7173 (gimple_fold_builtin_with_strlen): New function split out from
7174 gimple_fold_builtin.
7175 (gimple_fold_builtin): Change signature and handle
7176 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7177 here. Call gimple_fold_builtin_with_strlen.
7178 (gimple_fold_call): Adjust.
7179
7180 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7181
7182 * calls.c (precompute_arguments): Check
7183 promoted_for_signed_and_unsigned_p and set the promoted mode.
7184 (promoted_for_signed_and_unsigned_p): New function.
7185 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7186 and set the promoted mode.
7187 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7188 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7189 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7190
7191
7192 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7193
7194 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7195 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7196 (expand_call): Likewise.
7197 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7198 to get promoted mode.
7199 * combine.c (record_promoted_value): Skip > 0 comparison with
7200 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7201 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7202 of SUBREG_PROMOTED_UNSIGNED_P.
7203 (convert_modes): Likewise.
7204 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7205 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7206 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7207 SUBREG_PROMOTED_UNSIGNED_SET.
7208 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7209 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7210 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7211 SUBREG_PROMOTED_SET.
7212 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7213 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7214 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7215 of SUBREG_PROMOTED_UNSIGNED_P.
7216 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7217 (SUBREG_PROMOTED_SET): New define.
7218 (SUBREG_PROMOTED_GET): Likewise.
7219 (SUBREG_PROMOTED_SIGN): Likewise.
7220 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7221 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7222 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7223 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7224 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7225 (nonzero_bits1): Skip > 0 comparison with the results as
7226 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7227 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7228 of !SUBREG_PROMOTED_UNSIGNED_P.
7229 * simplify-rtx.c (simplify_unary_operation_1): Use new
7230 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7231 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7232 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7233 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7234
7235 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7236
7237 * ipa-devirt.c: Include gimple-pretty-print.h
7238 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7239 further tests.
7240 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7241 (get_polymorphic_call_info): Fix return value
7242 (type_change_info): New sturcture based on ipa-prop
7243 variant.
7244 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7245 based on ipa-prop variant.
7246 (extr_type_from_vtbl_ptr_store): New function
7247 based on ipa-prop variant.
7248 (record_known_type): New function.
7249 (check_stmt_for_type_change): New function.
7250 (get_dynamic_type): New function.
7251 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7252 * tree-ssa-pre.c: ipa-utils.h
7253 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7254 machinery; sanity check with ipa-prop devirtualization.
7255 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7256 polymorphic flag.
7257
7258 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7259
7260 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7261 * alias.c, cfgexpand.c, cgraphbuild.c,
7262 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7263 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7264 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7265 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7266 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7267 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7268 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7269 dse.c, except.c, gengtype.c, gimple-expr.c,
7270 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7271 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7272 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7273 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7274 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7275 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7276 pointer-set.h.
7277 * pointer-set.c: Remove file.
7278 * pointer-set.h: Remove file.
7279
7280 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7281
7282 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7283 * config/arm/types.md (f_sels, f_seld): Delete.
7284
7285 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7286
7287 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7288 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7289 (aarch64_movdi_<mode>high): Likewise.
7290 (aarch64_mov<mode>high_di): Likewise.
7291 (aarch64_movdi_<mode>low): Likewise.
7292 (aarch64_mov<mode>low_di): Likewise.
7293 (aarch64_movtilow_tilow): Likewise.
7294 Add comment explaining usage of fp,simd attributes and of
7295 TARGET_FLOAT and TARGET_SIMD.
7296
7297 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7298 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7299
7300 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7301 Use MOVN when one of the half-words is 0xffff.
7302
7303 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7304
7305 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7306
7307 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7308
7309 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7310 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7311 (rfs_str): String corresponding to RFS_* constants.
7312 (rank_for_schedule_stats_t): New typedef.
7313 (rank_for_schedule_stats): New static variable.
7314 (rfs_result): New static function.
7315 (rank_for_schedule): Track statistics for deciding heuristics.
7316 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7317 static functions.
7318 (ready_sort): Use them for debug printouts.
7319 (schedule_block): Init statistics state. Print statistics on
7320 rank_for_schedule decisions.
7321
7322 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7323
7324 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7325
7326 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7327
7328 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7329 constraint.
7330
7331 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7332
7333 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7334 function to not conflict.
7335 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7336 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7337 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7338 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7339 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7340 of pointer_map.
7341
7342 2014-08-07 Marek Polacek <polacek@redhat.com>
7343
7344 * fold-const.c (fold_binary_loc): Add folding of
7345 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7346
7347 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7348
7349 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7350 instead of type size.
7351 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7352
7353 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7354
7355 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7356 (*thumb1_movqi_insn): Likewise.
7357 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7358
7359 2014-08-07 Tom de Vries <tom@codesourcery.com>
7360
7361 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7362 (glibc_2_11_or_earlier): Remove effective-target keywords.
7363
7364 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7365
7366 * config/arm/arm.c (bdesc_2arg): Fix typo.
7367 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7368
7369 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7370
7371 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7372
7373 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7374
7375 PR debug/61923
7376 * haifa-sched.c (advance_one_cycle): Fix dump.
7377 (schedule_block): Don't advance cycle if we are already at the
7378 beginning of the cycle.
7379
7380 2014-08-06 Martin Jambor <mjambor@suse.cz>
7381
7382 PR ipa/61393
7383 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7384
7385 2014-08-06 Richard Biener <rguenther@suse.de>
7386
7387 PR lto/62034
7388 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7389 SCCs here.
7390 (lto_input_tree): Pop SCCs here.
7391
7392 2014-08-06 Richard Biener <rguenther@suse.de>
7393
7394 PR tree-optimization/61320
7395 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7396 handle misaligned loads.
7397
7398 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7399
7400 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7401 (aarch64_expand_vec_perm_const): Check for dup before zip.
7402
7403 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7404
7405 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7406 CONST_INT_P instead of GET_CODE and compare.
7407 (aarch64_select_cc_mode): Likewise.
7408 (aarch64_print_operand): Likewise.
7409 (aarch64_rtx_costs): Likewise.
7410 (aarch64_simd_valid_immediate): Likewise.
7411 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7412 (aarch64_simd_emit_pair_result_insn): Likewise.
7413
7414 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7415
7416 * gdbhooks.py (find_gcc_source_dir): New helper function.
7417 (class PassNames): New class, locating and parsing passes.def.
7418 (class BreakOnPass): New command "break-on-pass".
7419
7420 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7421
7422 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7423 getting olde.
7424
7425 2014-08-05 Richard Biener <rguenther@suse.de>
7426
7427 PR rtl-optimization/61672
7428 * emit-rtl.h (mem_attrs_eq_p): Declare.
7429 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7430 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7431 * cfgcleanup.c (merge_memattrs): Likewise.
7432 Include emit-rtl.h.
7433
7434 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7435
7436 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7437 rather than singleton vectors.
7438 (vqdmlsls_lane_s32): Likewise.
7439
7440 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7441
7442 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7443 Use VSDQ_HSI mode iterator.
7444 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7445 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7446 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7447 Use BUILTIN_VDQHS macro.
7448 (sqrdmulh_laneq): Likewise.
7449 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7450 (vqdmlals_laneq_s32): Likewise.
7451 (vqdmlslh_laneq_s16): Likewise.
7452 (vqdmlsls_laneq_s32): Likewise.
7453 (vqdmulhh_laneq_s16): Likewise.
7454 (vqdmulhs_laneq_s32): Likewise.
7455 (vqrdmulhh_laneq_s16): Likewise.
7456 (vqrdmulhs_laneq_s32): Likewise.
7457
7458 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7459
7460 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7461 (vmuld_laneq_f64): Likewise.
7462 (vmuls_laneq_f32): Likewise.
7463 (vmul_n_f64): Likewise.
7464 (vmuld_lane_f64): Reimplement in C.
7465 (vmuls_lane_f32): Likewise.
7466
7467 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7468
7469 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7470 to reservation.
7471 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7472
7473 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7474
7475 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7476 (rbitsi2): Likewise.
7477 (*arm_rev): Set predicable and predicable_short_it attributes.
7478
7479 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7480
7481 * convert.c (convert_to_integer): Guard transformation to lrint by
7482 -fno-math-errno.
7483
7484 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7485
7486 * config/aarch64/aarch64-builtins.c
7487 (aarch64_simd_builtin_type_mode): Delete.
7488 (v8qi_UP): Remap to V8QImode.
7489 (v4hi_UP): Remap to V4HImode.
7490 (v2si_UP): Remap to V2SImode.
7491 (v2sf_UP): Remap to V2SFmode.
7492 (v1df_UP): Remap to V1DFmode.
7493 (di_UP): Remap to DImode.
7494 (df_UP): Remap to DFmode.
7495 (v16qi_UP):V16QImode.
7496 (v8hi_UP): Remap to V8HImode.
7497 (v4si_UP): Remap to V4SImode.
7498 (v4sf_UP): Remap to V4SFmode.
7499 (v2di_UP): Remap to V2DImode.
7500 (v2df_UP): Remap to V2DFmode.
7501 (ti_UP): Remap to TImode.
7502 (ei_UP): Remap to EImode.
7503 (oi_UP): Remap to OImode.
7504 (ci_UP): Map to CImode.
7505 (xi_UP): Remap to XImode.
7506 (si_UP): Remap to SImode.
7507 (sf_UP): Remap to SFmode.
7508 (hi_UP): Remap to HImode.
7509 (qi_UP): Remap to QImode.
7510 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7511 (VAR1): Build builtin name.
7512 (aarch64_init_simd_builtins): Remove dead code.
7513
7514 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7515
7516 * graphite-isl-ast-to-gimple.c:
7517 (set_options): New function.
7518 (scop_to_isl_ast): Add calling of set_options.
7519
7520 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7521
7522 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7523 (analyze_iv_to_split_insn): Don't initialize them.
7524 (get_ivts_expr): Removed.
7525 (allocate_basic_variable, insert_base_initialization): Use
7526 SET_SRC instead of *get_ivts_expr.
7527 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7528
7529 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7530
7531 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7532 (translate_isl_ast_for_loop): Add checking of the
7533 flag_loop_parallelize_all.
7534 (ast_build_before_for): New function.
7535 (scop_to_isl_ast): Add checking of the
7536 flag_loop_parallelize_all.
7537 * graphite-dependences.c: Move the defenition of the
7538 scop_get_dependences from graphite-optimize-isl.c to this file.
7539 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7540 (carries_deps): Add checking of the x's value.
7541 * graphite-optimize-isl.c: Move the defenition of the
7542 scop_get_dependences to graphite-dependences.c.
7543 * graphite-poly.h: Add declarations of scop_get_dependences
7544 and carries_deps.
7545
7546 2014-08-04 Rohit <rohitarulraj@freescale.com>
7547
7548 PR target/60102
7549 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7550 names.
7551 (alt_reg_names): Likewise.
7552 (rs6000_dwarf_register_span): For SPE high registers, replace
7553 dwarf register numbers with GCC hard register numbers.
7554 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7555 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7556 register number for the corresponding GCC hard register number.
7557 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7558 newly added GCC hard register numbers for SPE high registers.
7559 (DWARF_FRAME_REGISTERS): Likewise.
7560 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7561 (DWARF_FRAME_REGNUM): Likewise.
7562 (FIXED_REGISTERS): Likewise.
7563 (CALL_USED_REGISTERS): Likewise.
7564 (CALL_REALLY_USED_REGISTERS): Likewise.
7565 (REG_ALLOC_ORDER): Likewise.
7566 (enum reg_class): Likewise.
7567 (REG_CLASS_NAMES): Likewise.
7568 (REG_CLASS_CONTENTS): Likewise.
7569 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7570
7571 2014-08-04 Richard Biener <rguenther@suse.de>
7572
7573 * gimple-fold.h (gimple_fold_builtin): Remove.
7574 * gimple-fold.c (gimple_fold_builtin): Make static.
7575 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7576 fold_stmt, not gimple_fold_builtin.
7577
7578 2014-08-04 Martin Liska <mliska@suse.cz>
7579
7580 * cgraph.h (csi_end_p): Removed.
7581 (csi_next): Likewise.
7582 (csi_node): Likewise.
7583 (csi_start): Likewise.
7584 (cgraph_node_in_set_p): Likewise.
7585 (cgraph_node_set_size): Likewise.
7586 (vsi_end_p): Likewise.
7587 (vsi_next): Likewise.
7588 (vsi_node): Likewise.
7589 (vsi_start): Likewise.
7590 (varpool_node_set_size): Likewise.
7591 (cgraph_node_set_nonempty_p): Likewise.
7592 (varpool_node_set_nonempty_p): Likewise.
7593 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7594 cgraph_node_set.
7595 * ipa-inline-transform.c: Likewise.
7596 * ipa-utils.c (cgraph_node_set_new): Removed.
7597 (cgraph_node_set_add): Likewise.
7598 (cgraph_node_set_remove): Likewise.
7599 (cgraph_node_set_find): Likewise.
7600 (dump_cgraph_node_set): Likewise.
7601 (debug_cgraph_node_set): Likewise.
7602 (free_cgraph_node_set): Likewise.
7603 (varpool_node_set_new): Likewise.
7604 (varpool_node_set_add): Likewise.
7605 (varpool_node_set_remove): Likewise.
7606 (varpool_node_set_find): Likewise.
7607 (dump_varpool_node_set): Likewise.
7608 (free_varpool_node_set): Likewise.
7609 (debug_varpool_node_set): Likewise.
7610 * tree-emutls.c (struct tls_var_data):
7611 (emutls_index): Removed.
7612 (emutls_decl): Likewise.
7613 (gen_emutls_addr): Function implementation uses newly added
7614 hash_map<varpool_node *, tls_var_data>.
7615 (clear_access_vars): Likewise.
7616 (create_emultls_var): Likewise.
7617 (ipa_lower_emutls): Likewise.
7618 (reset_access): New function.
7619
7620 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7621
7622 * config/i386/i386.c (ix86_option_override_internal): Add
7623 PTA_RDRND and PTA_MOVBE for bdver4.
7624
7625 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7626 James Greenhalgh <james.greenhalgh@arm.com>
7627
7628 * doc/md.texi (clrsb): Document.
7629 (clz): Change reference to x into operand 1.
7630 (ctz): Likewise.
7631 (popcount): Likewise.
7632
7633 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7634
7635 PR target/61713
7636 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7637 move to subtarget in serial version if result is ignored.
7638
7639 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7640 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7641
7642 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7643 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7644 (sched_analyze_insn): Update use of try_group_insn to
7645 sched_macro_fuse_insns.
7646 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7647 arguments that are not conditional jumps.
7648
7649 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7650
7651 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7652 family information. Handle BTVER2 cpu with cpuid family value.
7653
7654 2014-08-04 Tom de Vries <tom@codesourcery.com>
7655
7656 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7657 (glibc_2_11_or_earlier): Document effective-target keywords.
7658
7659 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7660
7661 * ipa-devirt.c (odr_type_warn_count): Add type.
7662 (possible_polymorphic_call_targets): Set it.
7663 (ipa_devirt): Use it.
7664
7665 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7666
7667 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7668 Document.
7669 * ipa-devirt.c: Include hash-map.h
7670 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7671 (clear_speculation): Break out of ...
7672 (get_class_context): ... here; speed up handling obviously useless
7673 speculations.
7674 (odr_type_warn_count, decl_warn_count): New structures.
7675 (final_warning_record): New structure.
7676 (final_warning_records): New static variable.
7677 (possible_polymorphic_call_targets): Cleanup handling of
7678 speculative info; do not build speculation when user do not care;
7679 record info about warnings when asked for.
7680 (add_decl_warning): New function.
7681 (type_warning_cmp): New function.
7682 (decl_warning_cmp): New function.
7683 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7684 (gate): Enable pass when warnings are requested.
7685 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7686 options.
7687
7688 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7689
7690 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7691 Fix cast.
7692 (hash_map::remove): New method.
7693 (hash_map::traverse): New method.
7694 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7695 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7696 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7697 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7698 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7699 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7700 pointer_map.
7701
7702 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7703
7704 * hash-set.h: new File.
7705 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7706 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7707 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7708 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7709 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7710 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7711 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7712 varpool.c: Use hash_set instead of pointer_set.
7713
7714 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7715
7716 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7717
7718 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7719
7720 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7721 for frame access when strict_p is false.
7722
7723 2014-08-01 Renlin Li <renlin.li@arm.com>
7724 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7725
7726 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7727 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7728 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7729 Declaration.
7730 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7731 predicate.
7732 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7733 aarch64_mem_pair_offset.
7734
7735 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7736
7737 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7738 offset.
7739 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7740 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7741
7742 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7743
7744 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7745
7746 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7747
7748 PR regression/61510
7749 * cgraphunit.c (analyze_functions): Use get_create rather than get
7750 for decls which are clones of abstract functions.
7751
7752 2014-08-01 Martin Liska <mliska@suse.cz>
7753
7754 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7755 * ipa-prop.h (count_formal_params): Global function created from static.
7756 * ipa-prop.c (count_formal_params): Likewise.
7757 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7758 profiles for semantically equivalent functions.
7759 * passes.c (do_per_function): If we load body of a function
7760 during WPA, this condition should behave same.
7761 * varpool.c (ctor_for_folding): More tolerant assert for variable
7762 aliases created during WPA.
7763
7764 2014-08-01 Martin Liska <mliska@suse.cz>
7765
7766 * doc/invoke.texi (Options That Control Optimization): Documentation
7767 for -foptimize-strlen introduced. Optimization levels default options
7768 fixed.
7769
7770 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7771
7772 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7773 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7774 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7775 type to bool.
7776 * stor-layout.h (min_align_of_type): New prototype.
7777 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7778 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7779 check.
7780 * ubsan.c: Include builtins.h.
7781 (ubsan_expand_bounds_ifn): Change return type to bool,
7782 always return true.
7783 (ubsan_expand_null_ifn): Change return type to bool, change
7784 argument to gimple_stmt_iterator *. Handle both null and alignment
7785 sanitization, take type from ckind argument's type rather than
7786 first argument.
7787 (instrument_member_call): Removed.
7788 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7789 Handle both null and alignment sanitization, don't say whole
7790 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7791 call instead of 2 argument.
7792 (instrument_null): Adjust instrument_mem_ref caller. Don't
7793 instrument calls here.
7794 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7795 like SANITIZE_NULL.
7796 * stor-layout.c (min_align_of_type): New function.
7797 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7798 Or it into SANITIZE_UNDEFINED.
7799 * doc/invoke.texi (-fsanitize=alignment): Document.
7800
7801 2014-07-31 Andi Kleen <ak@linux.intel.com>
7802
7803 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7804
7805 2014-07-31 Andi Kleen <ak@linux.intel.com>
7806
7807 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7808 inchash.
7809 (vn_reference_compute_hash): Dito.
7810 (vn_nary_op_compute_hash): Dito.
7811 (vn_phi_compute_hash): Dito.
7812 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7813
7814 2014-07-31 Andi Kleen <ak@linux.intel.com>
7815
7816 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7817 Rename to inchash:add_expr_commutative. Convert to inchash.
7818 (iterative_hash_hashable_expr): Rename to
7819 inchash:add_hashable_expr. Convert to inchash.
7820 (avail_expr_hash): Dito.
7821
7822 2014-07-31 Andi Kleen <ak@linux.intel.com>
7823
7824 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7825 Convert to inchash.
7826
7827 2014-07-31 Andi Kleen <ak@linux.intel.com>
7828
7829 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7830
7831 2014-07-31 Andi Kleen <ak@linux.intel.com>
7832
7833 * Makefile.in (OBJS): Add rtlhash.o
7834 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7835 (loc_checksum): Dito.
7836 (loc_checksum_ordered): Dito.
7837 (hash_loc_operands): Dito.
7838 (hash_locs): Dito.
7839 (hash_loc_list): Dito.
7840 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7841 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7842 * rtlhash.c: New file.
7843 * rtlhash.h: New file.
7844
7845 2014-07-31 Andi Kleen <ak@linux.intel.com>
7846
7847 * inchash.h (inchash): Change inchash class to namespace.
7848 (class hash): ... Rename from inchash.
7849 (add_object): Move from macro to class template.
7850 * lto-streamer-out.c (hash_tree): Change inchash
7851 to inchash::hash.
7852 * tree.c (build_type_attribute_qual_variant): Dito.
7853 (type_hash_list): Dito.
7854 (attribute_hash_list): Dito.
7855 (iterative_hstate_expr): Rename to inchash::add_expr
7856 (build_range_type_1): Change inchash to inchash::hash
7857 and use hash::add_expr.
7858 (build_array_type_1): Dito.
7859 (build_function_type): Dito
7860 (build_method_type_directly): Dito.
7861 (build_offset_type): Dito.
7862 (build_complex_type): Dito.
7863 (make_vector_type): Dito.
7864 * tree.h (iterative_hash_expr): Dito.
7865
7866 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7867
7868 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7869
7870 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7871
7872 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7873 correct alphabetical position.
7874 (vpaddd_f64): Rewrite using builtins.
7875 (vpaddd_s64): Move to correct alphabetical position.
7876 (vpaddd_u64): New.
7877
7878 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7879
7880 PR target/61844
7881 * config/sh/sh.c (sh_legitimate_address_p,
7882 sh_legitimize_reload_address): Handle reg+reg address modes when
7883 ALLOW_INDEXED_ADDRESS is false.
7884 * config/sh/predicates.md (general_movsrc_operand,
7885 general_movdst_operand): Likewise.
7886
7887 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7888
7889 * config/aarch64/aarch64-builtins.c
7890 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7891 BYTES_BIG_ENDIAN.
7892
7893 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7894
7895 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7896 the generated mask based on BYTES_BIG_ENDIAN.
7897 (aarch64_simd_check_vect_par_cnst_half): New.
7898 * config/aarch64/aarch64-protos.h
7899 (aarch64_simd_check_vect_par_cnst_half): New.
7900 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7901 the check out to aarch64_simd_check_vect_par_cnst_half.
7902 (vect_par_cnst_lo_half): Likewise.
7903 * config/aarch64/aarch64-simd.md
7904 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7905 (move_hi_quad_<mode>): Always generate a low mask.
7906
7907 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7908
7909 * doc/invoke.texi (AVR Options): Add documentation about
7910 __AVR_DEVICE_NAME__ built-in macro.
7911
7912 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7913
7914 PR target/61948
7915 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7916 constraints are satisfied.
7917 (<shift>di3_neon): Likewise.
7918
7919 2014-07-31 Richard Biener <rguenther@suse.de>
7920
7921 PR tree-optimization/61964
7922 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7923 by structural equality.
7924
7925 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7926
7927 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7928 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7929 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7930 New enums.
7931 * gcc.c (sanitize_spec_function): Support new option.
7932 (SANITIZER_SPEC): Remove now redundant check.
7933 * opts.c (common_handle_option): Support new option.
7934 (finish_options): Check for incompatibilities.
7935 * toplev.c (process_options): Split userspace-specific checks.
7936
7937 2014-07-31 Richard Biener <rguenther@suse.de>
7938
7939 * lto-streamer.h (struct output_block): Remove global.
7940 (struct data_in): Remove labels, num_named_labels and
7941 num_unnamed_labels.
7942 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7943 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7944
7945 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7946
7947 PR c++/60517
7948 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7949 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7950 (isolate_path): New argument to avoid inserting a trap.
7951 (find_implicit_erroneous_behaviour): Handle returning the address
7952 of a local variable.
7953 (find_explicit_erroneous_behaviour): Likewise.
7954
7955 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7956
7957 PR lto/61868
7958 * toplev.c (init_random_seed): Move piece of code never called to
7959 set_random_seed.
7960 (set_random_seed): see above.
7961
7962 2014-07-31 Tom de Vries <tom@codesourcery.com>
7963
7964 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7965
7966 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7967
7968 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7969 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7970
7971 2014-07-31 Richard Biener <rguenther@suse.de>
7972
7973 * data-streamer.h (streamer_write_data_stream): Declare here,
7974 renamed from ...
7975 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7976 * lto-cgraph.c (lto_output_node): Adjust.
7977 (lto_output_varpool_node): Likewise.
7978 * data-streamer-out.c (streamer_string_index): Likewise.
7979 (streamer_write_data_stream, lto_append_block): Move from ...
7980 * lto-section-out.c (lto_output_data_stream,
7981 lto_append_block): ... here.
7982
7983 2014-07-30 Mike Stump <mikestump@comcast.net>
7984
7985 * configure.ac: Also check for popen.
7986 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7987 * configure: Regenerate.
7988 * config.in: Regenerate.
7989
7990 2014-07-30 Martin Jambor <mjambor@suse.cz>
7991
7992 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7993 parameter to gimple.
7994
7995 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7996
7997 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7998 address as second parameter to __tpf_eh_return routine.
7999
8000 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8001
8002 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8003 Thumb2.
8004
8005 2014-07-30 Tom Tromey <tromey@redhat.com>
8006
8007 PR c/59855
8008 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8009 * doc/extend.texi (Type Attributes): Document designated_init
8010 attribute.
8011
8012 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8013
8014 * graphite-isl-ast-to-gimple.c:
8015 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8016 (gcc_expression_from_isl_expression): Pass type to
8017 gcc_expression_from_isl_ast_expr_id.
8018
8019 2014-07-30 Richard Biener <rguenther@suse.de>
8020
8021 * lto-streamer.h (lto_write_data): New function.
8022 * langhooks.c (lhd_append_data): Do not free block.
8023 * lto-section-out.c (lto_write_data): New function writing
8024 raw data to the current section.
8025 (lto_write_stream): Adjust for langhook semantic change.
8026 (lto_destroy_simple_output_block): Write header directly.
8027 * lto-opts.c (lto_write_options): Write options directly.
8028 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8029 (lto_output_toplevel_asms): Likewise.
8030 (copy_function_or_variable): Copy data directly.
8031 (write_global_references): Output index table directly.
8032 (lto_output_decl_state_refs): Likewise.
8033 (write_symbol): Write data directly.
8034 (produce_symtab): Adjust.
8035 (produce_asm_for_decls): Output header and refs directly.
8036
8037 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8038
8039 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8040 to speculative_targets
8041 (get_class_context): Fix handling of contextes without outer type;
8042 avoid matching non-polymorphic types in LTO.
8043 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8044 parameter to speculative_targetsp; handle speculation.
8045 (dump_possible_polymorphic_call_targets): Update dumping.
8046
8047 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8048
8049 * common.opt (Wodr): Enable by default.
8050
8051 2014-07-29 Olivier Hainque <hainque@adacore.com>
8052
8053 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8054
8055 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8056
8057 PR bootstrap/61914
8058 * gengtype.c (strtoken): New function.
8059 (create_user_defined_type): Replace strtok with strtoken.
8060
8061 2014-07-29 Nathan Sidwell <nathan@acm.org>
8062
8063 * gcov-io.c (gcov_var): Make hidden.
8064 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8065 (gcov_do_dump): Declare.
8066 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8067
8068 2014-07-29 Martin Jambor <mjambor@suse.cz>
8069
8070 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8071 parameter to gimple.
8072 (sra_modify_assign): Likewise.
8073
8074 2014-07-29 Richard Biener <rguenther@suse.de>
8075
8076 PR middle-end/52478
8077 * expr.c (expand_expr_real_2): Revert last change.
8078
8079 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8080
8081 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8082 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8083 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8084 call.
8085 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8086 (contains_type_p): Forward declare.
8087 (polymorphic_call_target_hasher::hash): Hash speculative info.
8088 (polymorphic_call_target_hasher::equal): Compare speculative info.
8089 (get_class_context): Handle speuclation.
8090 (contains_type_p): Update.
8091 (get_polymorphic_call_info_for_decl): Update.
8092 (walk_ssa_copies): Break out from ...
8093 (get_polymorphic_call_info): ... here; set speculative context
8094 before giving up.
8095 * ipa-prop.c (ipa_write_indirect_edge_info,
8096 ipa_read_indirect_edge_info): Stream speculative context.
8097 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8098 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8099 SPECULATIVE_MAYBE_DERIVED_TYPE).
8100 (possible_polymorphic_call_targets overriders): Update.
8101 (dump_possible_polymorphic_call_targets overriders): Update.
8102 (dump_possible_polymorphic_call_target_p overriders): Update.
8103
8104 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8105
8106 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8107 ipa-devirt path; fix thinko there.
8108
8109 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8110
8111 * config/i386/i386.c (ix86_return_in_memory): Replace one
8112 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8113
8114 2014-07-28 Marek Polacek <polacek@redhat.com>
8115
8116 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8117
8118 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8119
8120 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8121 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8122 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8123 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8124 (USE_LD_AS_NEEDED): Likewise.
8125 (ASM_APP_ON): Likewise.
8126 (ASM_APP_OFF): Likewise.
8127 (TARGET_POSIX_IO): Likewise.
8128 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8129 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8130 (USE_LD_AS_NEEDED): Likewise.
8131 (ASM_APP_ON): Likewise.
8132 (ASM_APP_OFF): Likewise.
8133 (TARGET_POSIX_IO): Likewise.
8134
8135 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8136
8137 PR middle-end/61734
8138 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8139 operators other than the equality operators.
8140
8141 2014-07-28 Richard Biener <rguenther@suse.de>
8142
8143 PR middle-end/52478
8144 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8145 sure to register SImode ones, not only >= word_mode ones.
8146 * expr.c (expand_expr_real_2): When expanding -ftrapv
8147 binops do not use OPTAB_LIB_WIDEN.
8148
8149 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8150
8151 PR middle-end/61919
8152 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8153 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8154 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8155 inserting them in the insn stream.
8156
8157 2014-07-28 Marek Polacek <polacek@redhat.com>
8158
8159 PR middle-end/61913
8160 * common.opt (Wodr): Add Var.
8161
8162 2014-07-28 Richard Biener <rguenther@suse.de>
8163
8164 PR tree-optimization/61921
8165 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8166 if there is a varpool node before dereferencing it.
8167
8168 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8169
8170 * graphite-sese-to-poly.c:
8171 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8172 id of the pbb), which contains pointer to the pbb1.
8173
8174 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8175
8176 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8177
8178 * graphite-isl-ast-to-gimple.c:
8179 (graphite_create_new_guard): New function.
8180 (translate_isl_ast_node_if): New function.
8181 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8182
8183 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8184
8185 2014-07-27 Anthony Green <green@moxielogic.com>
8186
8187 * config.gcc: Add moxie-*-moxiebox* configuration.
8188 * config/moxie/moxiebox.h: New file.
8189
8190 2014-07-26 Andrew Pinski <apinski@cavium.com>
8191
8192 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8193 from the read only register.
8194
8195 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8196
8197 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8198 as the allocation class if it isn't likely to be spilled.
8199
8200 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8201
8202 * rtl.h (tls_referenced_p): Declare.
8203 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8204 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8205 (mips_cannot_force_const_mem): Use tls_referenced_p.
8206 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8207 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8208 instead of pa_tls_referenced_p.
8209 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8210 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8211 (pa_legitimate_constant_p): Likewise.
8212 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8213 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8214 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8215 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8216 rs6000_tls_referenced_p.
8217 (rs6000_tls_symbol_ref_1): Delete.
8218
8219 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8220
8221 PR target/44551
8222 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8223 Optimize inverse of a VEC_CONCAT.
8224
8225 2014-07-25 Xinliang David Li <davidxl@google.com>
8226
8227 * params.def: New parameter.
8228 * coverage.c (get_coverage_counts): Check new flag.
8229 (coverage_compute_profile_id): Check new flag.
8230 (coverage_begin_function): Check new flag.
8231 (coverage_end_function): Check new flag.
8232 * value-prof.c (coverage_node_map_initialized_p): New function.
8233 (init_node_map): Populate map with all functions.
8234 * doc/invoke.texi: Document new parameter.
8235
8236 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8237 Richard Biener <rguenther@suse.de>
8238
8239 * lto-streamer-out.c (struct sccs): Turn to ...
8240 (class DFS): ... this one; refactor the DFS walk so it can
8241 be re-done on per-SCC basis.
8242 (DFS::DFS): New constructor.
8243 (DFS::~DFS): New destructor.
8244 (hash_tree): Add new MAP argument holding in-SCC hash values;
8245 remove POINTER_TYPE hashing hack.
8246 (scc_entry_compare): Rename to ...
8247 (DFS::scc_entry_compare): ... this one.
8248 (hash_scc): Rename to ...
8249 (DFS::hash_scc): ... this one; pass output_block instead
8250 of streamer_cache; work harder to get unique and stable SCC
8251 hashes.
8252 (DFS_write_tree): Rename to ...
8253 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8254 (lto_output_tree): Update.
8255
8256 2014-07-25 Andi Kleen <ak@linux.intel.com>
8257
8258 * lto-streamer-out.c (hash_tree): Convert to inchash.
8259
8260 2014-07-25 Andi Kleen <ak@linux.intel.com>
8261
8262 * tree.c (build_type_attribute_qual_variant): Use inchash.
8263 (type_hash_list): Dito.
8264 (attribute_hash_list): Dito
8265 (iterative_hstate_expr): Dito.
8266 (iterative_hash_expr): Dito.
8267 (build_range_type_1): Dito.
8268 (build_array_type_1): Dito.
8269 (build_function_type): Dito.
8270 (build_method_type_directly): Dito.
8271 (build_offset_type): Dito.
8272 (build_complex_type): Dito.
8273 (make_vector_type): Dito.
8274 * tree.h (iterative_hash_expr): Add compat wrapper.
8275 (iterative_hstate_expr): Add.
8276
8277 2014-07-25 Andi Kleen <ak@linux.intel.com>
8278
8279 * Makefile.in (OBJS): Add inchash.o.
8280 (PLUGIN_HEADERS): Add inchash.h.
8281 * ipa-devirt.c: Include inchash.h.
8282 * lto-streamer-out.c: Dito.
8283 * tree-ssa-dom.c: Dito.
8284 * tree-ssa-pre.c: Dito.
8285 * tree-ssa-sccvn.c: Dito.
8286 * tree-ssa-tail-merge.c: Dito.
8287 * asan.c: Dito.
8288 * tree.c (iterative_hash_hashval_t): Move to ...
8289 (iterative_hash_host_wide_int): Move to ...
8290 * inchash.c: Here. New file.
8291 * tree.h (iterative_hash_hashval_t): Move to ...
8292 (iterative_hash_host_wide_int): Move to ...
8293 * inchash.h: Here. New file.
8294
8295 2014-07-25 Richard Biener <rguenther@suse.de>
8296
8297 PR middle-end/61762
8298 PR middle-end/61894
8299 * fold-const.c (native_encode_int): Add and handle offset
8300 parameter to do partial encodings of expr.
8301 (native_encode_fixed): Likewise.
8302 (native_encode_real): Likewise.
8303 (native_encode_complex): Likewise.
8304 (native_encode_vector): Likewise.
8305 (native_encode_string): Likewise.
8306 (native_encode_expr): Likewise.
8307 * fold-const.c (native_encode_expr): Add offset parameter
8308 defaulting to -1.
8309 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8310 (fold_ctor_reference): Handle all reads from tcc_constant
8311 ctors.
8312
8313 2014-07-25 Richard Biener <rguenther@suse.de>
8314
8315 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8316 as possibly unused.
8317
8318 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8319
8320 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8321
8322 2014-07-24 Kyle McMartin <kyle@redhat.com>
8323
8324 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8325
8326 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8327
8328 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8329 Add prototype.
8330 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8331 function.
8332 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8333 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8334 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8335
8336 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8337
8338 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8339 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8340 aggregate types. Instead, *all* aggregate types, except for single-
8341 element or homogeneous float/vector aggregates, are quadword-aligned
8342 if required by their type alignment. Issue -Wpsabi note when a type
8343 is now treated differently than before.
8344
8345 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8346
8347 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8348 does not fit fully into floating-point registers, and there is still
8349 space in the register parameter area, use GPRs to pass those parts
8350 of the argument. Issue -Wpsabi note if any parameter is now treated
8351 differently than before.
8352 (rs6000_arg_partial_bytes): Update.
8353
8354 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8355
8356 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8357
8358 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8359
8360 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8361 * toplev.c (initialize_rtl): Don't use it. Move previously
8362 "language-dependent" calls to...
8363 (backend_init): ...here.
8364 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8365 Assert that RTL initialization hasn't happend yet.
8366
8367 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8368
8369 PR rtl-optimization/61629
8370 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8371 they have already been initialized.
8372
8373 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8374
8375 PR middle-end/61268
8376 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8377 DECL_INCOMING_RTL and entry_parm.
8378 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8379 * calls.c (load_register_parameters): Likewise argument values.
8380 (emit_library_call_value_1, store_one_arg): Likewise argument
8381 save areas.
8382 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8383 stack slot.
8384 * explow.c (validize_mem): Modify the argument in-place.
8385
8386 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8387
8388 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8389 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8390
8391 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8392
8393 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8394 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8395
8396 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8397
8398 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8399 (aarch64_save_callee_saves): New parameter "skip_wb".
8400 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8401
8402 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8403
8404 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8405 "wb_candidate2".
8406 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8407
8408 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8409
8410 * graphite-isl-ast-to-gimple.c:
8411 (graphite_create_new_loop): Add calling of isl_id_free to properly
8412 decrement reference counts.
8413
8414 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8415
8416 2014-07-24 Martin Liska <mliska@suse.cz>
8417 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8418 function used.
8419 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8420 (rs6000_code_end): Likewise.
8421
8422 2014-07-24 Martin Liska <mliska@suse.cz>
8423
8424 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8425 symtab_node funtion used.
8426 (rs6000_xcoff_declare_object_name): Likewise.
8427
8428 2014-07-24 Martin Liska <mliska@suse.cz>
8429
8430 * cgraphunit.c (compile): Correct function used.
8431
8432 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8433
8434 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8435 as non-indexable.
8436
8437 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8438
8439 PR lto/61802
8440 * varasm.c (bss_initializer_p): Handle offlined ctors.
8441 (align_variable, get_variable_align): Likewise.
8442 (make_decl_one_only): Likewise.
8443 (default_binds_local_p_1): Likewise.
8444 (decl_binds_to_current_def_p): Likewise.
8445 (get_variable_section): Get constructor if it is offlined.
8446 (assemble_variable_contents): Sanity check that the caller
8447 streamed in the ctor in LTO.
8448
8449 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8450
8451 * graphite-isl-ast-to-gimple.c:
8452 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8453 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8454 isl_ast_op_pdiv_r to the different case.
8455
8456 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8457
8458 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8459
8460 PR middle-end/61876
8461 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8462 when flag_errno_math is on.
8463
8464 2014-07-24 Martin Liska <mliska@suse.cz>
8465
8466 * cgraph.h (varpool_node):
8467 (availability get_availability (void)):
8468 created from cgraph_variable_initializer_availability
8469 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8470 created from: cgraph_variable_initializer_availability
8471 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8472 (void finalize_named_section_flags (void)):
8473 created from varpool_finalize_named_section_flags
8474 (bool assemble_decl (void)): created from varpool_assemble_decl
8475 (void analyze (void)): created from varpool_analyze_node
8476 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8477 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8478 (void remove_initializer (void)): created from varpool_remove_initializer
8479 (tree get_constructor (void)): created from varpool_get_constructor
8480 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8481 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8482 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8483 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8484 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8485 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8486 (static bool output_variables (void)): created from varpool_output_variables
8487 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8488 created from varpool_extra_name_alias
8489 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8490 (static void dump_varpool (FILE *f)): created from dump_varpool
8491 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8492 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8493 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8494 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8495 (void assemble_aliases (void)): created from assemble_aliases
8496
8497 2014-07-24 Martin Liska <mliska@suse.cz>
8498
8499 * cgraph.h (symtab_node):
8500 (void register_symbol (void)): created from symtab_register_node
8501 (void remove (void)): created from symtab_remove_node
8502 (void dump (FILE *f)): created from dump_symtab_node
8503 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8504 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8505 (struct ipa_ref *add_reference (symtab_node *referred_node,
8506 enum ipa_ref_use use_type)): created from add_reference
8507 (struct ipa_ref *add_reference (symtab_node *referred_node,
8508 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8509 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8510 gimple stmt)): created from maybe_add_reference
8511 (bool semantically_equivalent_p (symtab_node *target)): created from
8512 symtab_semantically_equivalent_p
8513 (void remove_from_same_comdat_group (void)): created from
8514 remove_from_same_comdat_group
8515 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8516 symtab_add_to_same_comdat_group
8517 (void dissolve_same_comdat_group_list (void)): created from
8518 symtab_dissolve_same_comdat_group_list
8519 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8520 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8521 created from symtab_alias_ultimate_target
8522 (inline symtab_node *next_defined_symbol (void)): created from
8523 symtab_next_defined_symbol
8524 (bool resolve_alias (symtab_node *target)): created from
8525 symtab_resolve_alias
8526 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8527 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8528 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8529 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8530 (void set_section (const char *section)): created from set_section_1
8531 (enum availability get_availability (void)): created from symtab_node_availability
8532 (void make_decl_local (void)): created from symtab_make_decl_local
8533 (bool real_symbol_p (void)): created from symtab_read_node
8534 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8535 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8536 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8537 symtab_in_same_comdat_p;
8538 (bool address_taken_from_non_vtable_p (void)): created from
8539 address_taken_from_non_vtable_p
8540 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8541 (static void dump_table (FILE *)): created from dump_symtab
8542 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8543 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8544 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8545 symtab_used_from_object_file_p
8546 (void dump_base (FILE *)): created from dump_symtab_base
8547 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8548 (void unregister (void)): created from symtab_unregister_node
8549 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8550 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8551 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8552 symtab_nonoverwritable_alias_1
8553 * cgraph.h (cgraph_node):
8554 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8555 created from cgraph_remove_node_and_inline_clones
8556 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8557 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8558 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8559 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8560 created from cgraph_function_node
8561 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8562 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8563 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8564 created from cgraph_create_clone
8565 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8566 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8567 created from cgraph_create_virtual_clone
8568 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8569 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8570 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8571 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8572 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8573 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8574 created from cgraph_function_version_info
8575 (struct cgraph_function_version_info *insert_new_function_version (void)):
8576 created from insert_new_cgraph_node_version
8577 (struct cgraph_function_version_info *function_version (void)): created from
8578 get_cgraph_node_version
8579 (void analyze (void)): created from analyze_function
8580 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8581 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8582 tree real_alias) cgraph_add_thunk
8583 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8584 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8585 created from cgraph_function_or_thunk_node
8586 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8587 created from expand_thunk
8588 (void reset (void)): created from cgraph_reset_node
8589 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8590 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8591 (void remove (void)): created from cgraph_remove_node
8592 (void dump (FILE *f)): created from dump_cgraph_node
8593 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8594 (bool get_body (void)): created from cgraph_get_body
8595 (void release_body (void)): created from cgraph_release_function_body
8596 (void unnest (void)): created from cgraph_unnest_node
8597 (void make_local (void)): created from cgraph_make_node_local
8598 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8599 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8600 gcov_type count, int freq)): created from cgraph_create_edge
8601 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8602 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8603 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8604 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8605 created from cgraph_create_edge_including_clones
8606 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8607 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8608 (void remove_callers (void)): created from cgraph_node_remove_callers
8609 (void remove_callees (void)): created from cgraph_node_remove_callees
8610 (enum availability get_availability (void)): created from cgraph_function_body_availability
8611 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8612 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8613 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8614 (void call_duplication_hooks (cgraph_node *node2)): created from
8615 cgraph_call_node_duplication_hooks
8616 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8617 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8618 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8619 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8620 (void call_function_insertion_hooks (void)):
8621 created from cgraph_call_function_insertion_hooks
8622 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8623 (bool local_p (void)): created from cgraph_local_node
8624 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8625 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8626 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8627 (inline bool only_called_directly_or_aliased_p (void)):
8628 created from cgraph_only_called_directly_or_aliased_p
8629 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8630 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8631 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8632 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8633 (bool can_remove_if_no_direct_calls_p (void)):
8634 created from cgraph_can_remove_if_no_direct_calls_p
8635 (inline bool has_gimple_body_p (void)):
8636 created from cgraph_function_with_gimple_body_p
8637 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8638 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8639 (static inline void debug_cgraph (void)): created from debug_cgraph
8640 (static void record_function_versions (tree decl1, tree decl2)):
8641 created from record_function_versions
8642 (static void delete_function_version (tree decl)):
8643 created from delete_function_version
8644 (static void add_new_function (tree fndecl, bool lowered)):
8645 created from cgraph_add_new_function
8646 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8647 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8648 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8649 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8650 (static cgraph_node *get_for_asmname (tree asmname)):
8651 created from cgraph_node_for_asm
8652 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8653 created from cgraph_same_body_alias
8654 (static bool used_from_object_file_p_worker (cgraph_node *node,
8655 void *): new function
8656 (static bool non_local_p (cgraph_node *node, void *)):
8657 created from cgraph_non_local_node_p_1
8658 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8659 created from verify_cgraph
8660 (static bool make_local (cgraph_node *node, void *)):
8661 created from cgraph_make_node_local
8662 (static cgraph_node *create_alias (tree alias, tree target)):
8663 created from cgraph_create_function_alias
8664 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8665 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8666 created from cgraph_create_edge_1
8667 * cgraph.h (varpool_node):
8668 (void remove (void)): created from varpool_remove_node
8669 (void dump (FILE *f)): created from dump_varpool_node
8670
8671 2014-07-24 Richard Biener <rguenther@suse.de>
8672
8673 PR ipa/61823
8674 * tree-ssa-structalias.c (create_variable_info_for_1):
8675 Use varpool_get_constructor.
8676 (create_variable_info_for): Likewise.
8677
8678 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8679
8680 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8681 subtract outgoing area size when restoring stack_pointer_rtx.
8682
8683 2014-07-24 Nick Clifton <nickc@redhat.com>
8684
8685 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8686 that operations are taking place in parallel.
8687 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8688
8689 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8690
8691 * omp-low.c (extract_omp_for_data): Add missing break statement.
8692
8693 2014-07-24 Richard Biener <rguenther@suse.de>
8694
8695 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8696 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8697 and adjust MOVE_RATIO query accordingly.
8698 (estimate_num_insns): Adjust callers.
8699 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8700 * ipa-cp.c (gather_context_independent_values,
8701 estimate_local_effects): Likewise.
8702 * ipa-split.c (consider_split): Likewise.
8703
8704 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8705
8706 * config/i386/driver-i386.c: Remove names of unused arguments and
8707 unnecessary unused attributes.
8708 * config/i386/host-mingw32.c: Likewise.
8709 * config/i386/i386.c: Likewise.
8710 * config/i386/winnt-stubs.c: Likewise.
8711 * config/i386/winnt.c: Likewise.
8712
8713 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8714
8715 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8716 (aarch64_gen_loadwb_pair): New helper function.
8717 (aarch64_expand_epilogue): Simplify code using new helper functions.
8718 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8719
8720 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8721
8722 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8723 (aarch64_gen_storewb_pair): New helper function.
8724 (aarch64_expand_prologue): Simplify code using new helper functions.
8725 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8726
8727 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8728
8729 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8730 Rename to aarch64_save_callee_saves, remove restore code.
8731 (aarch64_restore_callee_saves): New function.
8732
8733 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8734
8735 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8736 (aarch64_save_callee_saves): New function to handle reg save
8737 for both core and vectore regs.
8738
8739 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8740
8741 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8742 (aarch64_gen_store_pair): New helper function.
8743 (aarch64_save_or_restore_callee_save_registers)
8744 (aarch64_save_or_restore_fprs): Use new helper functions.
8745
8746 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8747
8748 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8749 (aarch64_save_or_restore_callee_save_registers)
8750 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8751
8752 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8753
8754 * config/aarch64/aarch64.c
8755 (aarch64_save_or_restore_callee_save_registers)
8756 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8757
8758 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8759
8760 * config/aarch64/aarch64.c
8761 (aarch64_save_or_restore_callee_save_registers)
8762 (aarch64_save_or_restore_fprs): Remove 'increment'.
8763
8764 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8765
8766 * config/aarch64/aarch64.c
8767 (aarch64_save_or_restore_callee_save_registers)
8768 (aarch64_save_or_restore_fprs): Use register offset in
8769 cfun->machine->frame.reg_offset.
8770
8771 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8772
8773 * config/aarch64/aarch64.c
8774 (aarch64_save_or_restore_callee_save_registers)
8775 (aarch64_save_or_restore_fprs): Remove base_rtx.
8776
8777 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8778
8779 * config/aarch64/aarch64.c
8780 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8781 to 'start_offset'. Remove local variable 'start_offset'.
8782
8783 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8784
8785 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8786 type to HOST_WIDE_INT.
8787
8788 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8789
8790 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8791 (aarch64_save_or_restore_fprs)
8792 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8793
8794 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8795
8796 * config/arm/t-rtems-eabi: Add
8797 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8798 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8799 mbig-endian/mthumb/march=armv7-r, and
8800 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8801 multilibs.
8802
8803 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8804 Chris Johns <chrisj@rtems.org>
8805 Joel Sherrill <joel.sherrill@oarcorp.com>
8806
8807 * config.gcc: Add nios2-*-rtems*.
8808 * config/nios2/rtems.h: New file.
8809 * gcc/config/nios2/t-rtems: New file.
8810
8811 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8812
8813 PR target/61396
8814 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8815 constant numbers, not general constants.
8816 (rs6000_expand_vector_init): Ditto.
8817
8818 2014-07-23 Nathan Sidwell <nathan@acm.org>
8819
8820 * gcov-tool.c (gcov_list): Declare here.
8821 (set_gcov_list): Remove.
8822 (gcov_output_files): Set gcov_list directly.
8823
8824 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8825
8826 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8827
8828 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8829
8830 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8831 callee-saved registers are available for padding purpose
8832 and r3 is not mandatory, then prefer use those callee-saved
8833 instead of r3.
8834
8835 2014-07-23 Richard Biener <rguenther@suse.de>
8836
8837 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8838 * combine.c: Include statistics.h and params.h.
8839 (combine_instructions): Guard three and four insn combines
8840 with max-combine-insns value. Record statistics for combines
8841 performed.
8842 * doc/invoke.texi (max-combine-insns): Document new param.
8843
8844 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8845
8846 * graphite-isl-ast-to-gimple.c:
8847 (translate_isl_ast_node_block): New function.
8848 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8849
8850 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8851 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8852
8853 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8854
8855 * graphite-isl-ast-to-gimple.c:
8856 (get_max_schedule_dimensions): New function.
8857 (extend_schedule): Likewise.
8858 (generate_isl_schedule): Add calling of extend_schedule and
8859 get_max_schedule_dimensions.
8860
8861 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8862
8863 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8864 (case UNSPEC): Handle UNSPEC_RBIT.
8865
8866 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8867
8868 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8869 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8870
8871 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8872
8873 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8874
8875 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8876
8877 * graphite-isl-ast-to-gimple.c:
8878 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8879 (ivs_params_clear):
8880 (build_iv_mapping): New function.
8881 (translate_isl_ast_node_user): Likewise.
8882 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8883
8884 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8885 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8886 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8887
8888 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8889
8890 PR target/55701
8891 * config/arm/arm.md (setmem): New pattern.
8892 * config/arm/arm-protos.h (struct tune_params): New fields.
8893 (arm_gen_setmem): New prototype.
8894 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8895 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8896 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8897 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8898 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8899 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8900 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8901 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8902 (arm_const_inline_cost): New function.
8903 (arm_block_set_max_insns): New function.
8904 (arm_block_set_non_vect_profit_p): New function.
8905 (arm_block_set_vect_profit_p): New function.
8906 (arm_block_set_unaligned_vect): New function.
8907 (arm_block_set_aligned_vect): New function.
8908 (arm_block_set_unaligned_non_vect): New function.
8909 (arm_block_set_aligned_non_vect): New function.
8910 (arm_block_set_vect, arm_gen_setmem): New functions.
8911
8912 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8913
8914 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8915
8916 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8917
8918 PR target/61855
8919 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8920 out of #ifdef __OPTIMIZE__.
8921
8922 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8923
8924 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8925 different trapping status if -fnon-call-exceptions is enabled.
8926
8927 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8928
8929 * expr.c (store_field): Handle VOIDmode for calls that return values
8930 in multiple locations.
8931
8932 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8933
8934 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8935 (altivec_vsldoi_<mode>): Likewise.
8936
8937 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8938
8939 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8940 to the number of characters in the line.
8941
8942 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8943
8944 * graphite-isl-ast-to-gimple.c: Add using of
8945 build_nonstandard_integer_type instead of int128_integer_type_node.
8946
8947 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8948
8949 * toplev.c (output_stack_usage): Adjust the location of the warning.
8950
8951 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8952
8953 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8954 (*membar_storeload): Disable for LEON3.
8955
8956 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8957
8958 PR rtl-optimization/61461
8959 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8960
8961 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8962
8963 PR target/61794
8964 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8965 Fix instruction constraint.
8966 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8967
8968 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8969
8970 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8971
8972 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8973
8974 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8975 GNU coding standards.
8976 (nds32_register_move_cost): Likewise.
8977 (nds32_memory_move_cost): Likewise.
8978 (nds32_address_cost): Likewise.
8979
8980 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8981
8982 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8983
8984 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8985
8986 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8987 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8988 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8989 (HAVE_sync_compare_and_swapqi): Define.
8990 (HAVE_sync_compare_and_swaphi): Likewise.
8991 (HAVE_sync_compare_and_swapsi): Likewise.
8992
8993 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8994
8995 * config/mips/p5600.md: Add missing cpu tests.
8996
8997 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8998
8999 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9000 (vmla_f64): Likewise.
9001 (vfms_f64): Likewise.
9002 (vmls_f64): Likewise.
9003
9004 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9005
9006 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9007 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9008
9009 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9010
9011 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9012 (vmlal_high_lane_s32): Likewise.
9013 (vmlal_high_lane_u16): Likewise.
9014 (vmlal_high_lane_u32): Likewise.
9015 (vmlsl_high_lane_s16): Likewise.
9016 (vmlsl_high_lane_s32): Likewise.
9017 (vmlsl_high_lane_u16): Likewise.
9018 (vmlsl_high_lane_u32): Likewise.
9019
9020 2014-07-17 Terry Guo <terry.guo@arm.com>
9021
9022 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9023 (alus_reg): Renamed to alus_sreg.
9024 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9025 from alu_reg to alu_sreg. Change type of dsp instructions from
9026 alu_reg to alu_dsp_reg.
9027 * config/arm/thumb1.md: Likewise.
9028 * config/arm/thumb2.md: Likewise.
9029 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9030 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9031 with alu_sreg and alus_sreg.
9032 * config/arm/arm1026ejs.md (alu_op): Likewise.
9033 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9034 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9035 * config/arm/fa526.md (526_alu_op): Likewise.
9036 * config/arm/fa606te.md (606te_alu_op): Likewise.
9037 * config/arm/fa626te.md (626te_alu_op): Likewise.
9038 * config/arm/fa726te.md (726te_alu_op): Likewise.
9039 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9040 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9041 alu_sreg, alu_dsp_reg and alus_sreg.
9042 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9043 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9044 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9045 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9046 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9047 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9048 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9049 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9050 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9051 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9052 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9053 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9054 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9055 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9056 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9057 alus_reg to alus_sreg.
9058
9059 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9060
9061 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9062 infinity format.
9063
9064 2014-07-17 Richard Biener <rguenther@suse.de>
9065
9066 PR rtl-optimization/61801
9067 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9068 don't set reg_pending_barrier if it appears in a debug-insn.
9069
9070 2014-07-16 DJ Delorie <dj@redhat.com>
9071
9072 * config/rx/rx.c (rx_option_override): Fix alignment values.
9073 (rx_align_for_label): Likewise.
9074
9075 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9076
9077 PR target/61737.
9078 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9079 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9080 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9081 functions.
9082 (cris_print_index, cris_print_operand, cris_constant_index_p)
9083 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9084 (cris_address_cost): Ditto last CONSTANT_P.
9085 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9086 callers changed. Yield cris_offsettable_symbol for non-PIC
9087 constant symbolic expressions including labels. Yield cris_unspec
9088 for all unspecs.
9089 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9090 target to pic_offset_table_rtx for calls that will likely go
9091 through PLT, const0_rtx when they can't. All callers changed.
9092 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9093 symbolic expressions to be PICified. Remove second, redundant,
9094 assert on can_create_pseudo_p returning non-zero. Use
9095 replace_equiv_address_nv, not replace_equiv_address, for final
9096 operand update.
9097 * config/cris/cris.md ("movsi"): Move variable t to pattern
9098 toplevel. Adjust assert for new cris_symbol_type member. Use
9099 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9100 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9101 for lapc stricter.
9102 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9103 ("call", "call_value"): Use second incoming operand as a marker
9104 for pic-offset-table-register being used.
9105 ("*expanded_call_non_v32", "*expanded_call_v32")
9106 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9107 second incoming operand to CALL, match cris_call_type_marker.
9108 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9109 ("*expanded_call_side"): Ditto. Fix typo in comment.
9110 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9111 CONSTANT_P.
9112 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9113 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9114 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9115 users changed. Add members cris_offsettable_symbol and cris_unspec.
9116 (cris_symbol_type): Rename from cris_pic_symbol_type.
9117 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9118 just CONSTANT_P.
9119 * config/cris/cris-protos.h (cris_symbol_type_of,
9120 cris_expand_pic_call_address): Adjust prototypes.
9121 (cris_legitimate_constant_p): New prototype.
9122
9123 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9124 an existing tmake_file. Don't add t-slibgcc and t-linux.
9125
9126 2014-07-17 Jason Merrill <jason@redhat.com>
9127
9128 PR c++/61623
9129 * symtab.c (symtab_remove_from_same_comdat_group): Also
9130 set_comdat_group to NULL_TREE.
9131 (verify_symtab): Fix diagnostic.
9132
9133 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9134
9135 PR target/61662
9136 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9137
9138 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9139
9140 Support location tracking for built-in macro tokens
9141 * input.h (is_location_from_builtin_token): New function declaration.
9142 * input.c (is_location_from_builtin_token): New function definition.
9143 * toplev.c (general_init): Tell libcpp what the pre-defined
9144 spelling location for built-in tokens is.
9145
9146 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9147
9148 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9149 on the FUNCTION_DECL.
9150
9151 2014-07-16 Richard Biener <rguenther@suse.de>
9152
9153 PR other/61782
9154 * doc/extend.texi (always_inline): Clarify.
9155
9156 2014-07-15 Eric Christopher <echristo@gmail.com>
9157
9158 * doc/invoke.texi (Link Options): Document -z option.
9159
9160 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9161
9162 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9163 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9164
9165 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9166
9167 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9168
9169 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9170
9171 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9172 varpool_assemble_decl.
9173 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9174 true.
9175
9176 2014-07-15 Michael Matz <matz@suse.de>
9177
9178 PR rtl-optimization/61772
9179 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9180
9181 2014-07-15 Richard Biener <rguenther@suse.de>
9182
9183 * opts.c (default_options_table): Disable bit-ccp at -Og.
9184
9185 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9186
9187 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9188
9189 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9190
9191 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9192 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9193 call langhook for unknown declaration.
9194 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9195 * tree.h (DECL_ARGUMENTS): Update.
9196 * print-tree.c (print_node): Update.
9197 * tree-core.h (tree_decl_non_common): Remove arguments.
9198 (tree_function_decl): Add arguments.
9199
9200 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9201
9202 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9203
9204 2014-07-14 Richard Biener <rguenther@suse.de>
9205
9206 PR tree-optimization/61779
9207 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9208 simplifying a condition.
9209
9210 2014-07-14 Richard Biener <rguenther@suse.de>
9211
9212 * builtins.c (c_strlen): Make only_value == 2 really only
9213 affect warning generation.
9214
9215 2014-07-14 Richard Biener <rguenther@suse.de>
9216
9217 PR tree-optimization/61757
9218 PR tree-optimization/61783
9219 PR tree-optimization/61787
9220 * tree-ssa-dom.c (record_equality): Revert canonicalization
9221 change and add comment.
9222 (propagate_rhs_into_lhs): Revert previous fix, removing
9223 loop depth restriction again.
9224
9225 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9226
9227 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9228 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9229 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9230 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9231 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9232 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9233 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9234
9235 2014-07-14 Richard Biener <rguenther@suse.de>
9236
9237 * cgraph.h (decl_in_symtab_p): Make inline.
9238
9239 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9240
9241 PR middle-end/61294
9242 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9243
9244 PR target/61656
9245 * config/i386/i386.c (classify_argument): Don't merge classes above
9246 number of words.
9247
9248 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9249
9250 * cgraph.h (symtab_node): Add nonzero_address.
9251 (decl_in_symtab_p): Break out from ...
9252 (symtab_get_node): ... here.
9253 * fold-const.c: Include cgraph.h
9254 (tree_single_nonzero_warnv_p): Use symtab to determine
9255 if symbol is non-zero.
9256 * symtab.c (symtab_node::nonzero_address): New method.
9257
9258 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9259
9260 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9261 forgotten in previous commit.
9262
9263 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9264
9265 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9266 on builtin types.
9267 * ipa-devirt.c: Include stor-layout.h and intl.h
9268 (odr_subtypes_equivalent_p): New function.
9269 (warn_odr): New function.
9270 (warn_type_mismatch): New function.
9271 (odr_types_equivalent_p): New function.
9272 (add_type_duplicate): Use it.
9273 * common.opt (Wodr): New flag.
9274 * doc/invoke.texi (Wodr): Document new warning.
9275
9276 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9277
9278 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9279 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9280 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9281 (varpool_get_constructor): Push CTORS_IN timevar.
9282 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9283
9284 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9285
9286 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9287 Remove VOID_FTYPE_PUSHORT.
9288 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9289 Change code to USHORT_FTYPE_VOID.
9290 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9291 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9292 (ix86_atomic_assign_expand_fenv): Update for
9293 __builtin_ia32_fnstsw changes.
9294 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9295 (fnstsw): Change operand 0 to nonimmediate operand.
9296
9297 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9298
9299 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9300 (varpool_get_constructor): New function.
9301 (varpool_ctor_useable_for_folding_p): Break out from ...
9302 (ctor_for_folding): ... here; use varpool_get_constructor.
9303 (varpool_assemble_decl): Likewise.
9304 * lto-streamer.h (struct output_block): Turn cgraph_node
9305 to symbol filed.
9306 (lto_input_variable_constructor): Declare.
9307 * ipa-visibility.c (function_and_variable_visibility): Use
9308 varpool_get_constructor.
9309 * cgraph.h (varpool_get_constructor): Declare.
9310 (varpool_ctor_useable_for_folding_p): New function.
9311 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9312 parameter; return error_mark_node for non-trivial constructors.
9313 (lto_write_tree_1, DFS_write_tree): Update use of
9314 get_symbol_initial_value.
9315 (output_function): Update initialization of symbol.
9316 (output_constructor): New function.
9317 (copy_function): Rename to ..
9318 (copy_function_or_variable): ... this one; handle vars too.
9319 (lto_output): Output variable sections.
9320 * lto-streamer-in.c (input_constructor): New function.
9321 (lto_read_body): Rename from ...
9322 (lto_read_body_or_constructor): ... this one; handle vars too.
9323 (lto_input_variable_constructor): New function.
9324 * ipa-prop.c (ipa_prop_write_jump_functions,
9325 ipa_prop_write_all_agg_replacement): Update.
9326 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9327 (output_cgraph_opt_summary): Set symbol to NULL.
9328
9329 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9330
9331 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9332 non-polymorphic types.
9333 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9334 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9335 of types is not polymorphic.
9336
9337 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9338
9339 * lra-constraints.c (remove_inheritance_pseudos): Process
9340 destination pseudo too.
9341
9342 2014-07-11 Rong Xu <xur@google.com>
9343
9344 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9345 commit r212448.
9346
9347 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9348
9349 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9350 * config/avr/avr-devices.c (AVR_MCU): Same.
9351 (avr_mcu_types): add text start value to end of device list.
9352 * config/avr/avr-mcus.def: Add text section start for all devices.
9353 (ata5782): Add new avr5 device.
9354 (ata5831): Same.
9355 * config/avr/avr-tables.opt: Regenerate.
9356 * config/avr/avr.h: Add declaration for text section start handler.
9357 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9358 SPEC functions.
9359 (LINK_SPEC): Include text section start handler to linker spec.
9360 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9361 pass -Ttext option to linker if the text section start for the device
9362 is not zero.
9363 * config/avr/t-multilib: Regenerate.
9364 * doc/avr-mmcu.texi: Regenerate.
9365
9366 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9367
9368 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9369 * config/rs6000/aix52.h (LINK_SPEC): Same.
9370 * config/rs6000/aix53.h (LINK_SPEC): Same.
9371 * config/rs6000/aix61.h (LINK_SPEC): Same.
9372 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9373
9374 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9375
9376 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9377 (graphite_verify): New function.
9378 (ivs_params_clear): New function.
9379 (gcc_expression_from_isl_ast_expr_id): New function.
9380 (gcc_expression_from_isl_expr_int): New function.
9381 (binary_op_to_tree): New function.
9382 (ternary_op_to_tree): New function.
9383 (unary_op_to_tree): New function.
9384 (nary_op_to_tree): New function.
9385 (gcc_expression_from_isl_expr_op): New function.
9386 (gcc_expression_from_isl_expression): New function.
9387 (graphite_create_new_loop): New function.
9388 (translate_isl_ast_for_loop): New function.
9389 (get_upper_bound): New function.
9390 (graphite_create_new_loop_guard): New function.
9391 (translate_isl_ast_node_for): New function.
9392 (translate_isl_ast): New function.
9393 (add_parameters_to_ivs_params): New function.
9394 (scop_to_isl_ast): New parameter ip.
9395 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9396
9397 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9398
9399 * config/xtensa/predicates.md (call expander): Update for
9400 DECL_SECTION_NAME being string.
9401
9402 2014-07-11 Richard Biener <rguenther@suse.de>
9403
9404 PR middle-end/61473
9405 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9406 can be implemented with a single load followed by a single store.
9407 (c_strlen): Only warn when only_value is not 2.
9408
9409 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9410
9411 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9412
9413 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9414
9415 PR target/61561
9416 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9417 (*movhi_bytes): Likewise.
9418 (*arm_movqi_insn): Likewise.
9419
9420 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9421
9422 PR target/56858
9423 * config/alpha/alpha.c: Include tree-pass.h, context.h
9424 and pass_manager.h.
9425 (pass_data_handle_trap_shadows): New pass.
9426 (pass_handle_trap_shadows::gate): New pass gate function.
9427 (make_pass_handle_trap_shadows): New function.
9428 (rest_of_handle_trap_shadows): Ditto.
9429
9430 (alpha_align_insns_1): Rename from alpha_align_insns.
9431 (pass_data_align_insns): New pass.
9432 (pass_align_insns::gate): New pass gate function.
9433 (make_pass_aling_insns): New function.
9434 (rest_of_align_insns): Ditto.
9435 (alpha_align_insns): Ditto.
9436
9437 (alpha_option_override): Declare handle_trap_shadows info
9438 and align_insns_info. Register handle_trap_shadows and align_insns
9439 passes here.
9440 (alpha_reorg): Do not call alpha_trap_shadows and
9441 alpha_align_insn from here.
9442
9443 (alpha_pad_function_end): Do not skip BARRIERs.
9444
9445 2014-07-10 Rong Xu <xur@google.com>
9446
9447 Add gcov-tool: an offline gcda profile processing tool support.
9448 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9449 (gcov_is_error): Ditto.
9450 (gcov_read_string): Ditto.
9451 (gcov_read_sync): Ditto.
9452 * gcov-io.h: Move counter defines to gcov-counter.def.
9453 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9454 * coverage.c: Ditto.
9455 * gcov-tool.c: Offline gcda profile processing tool.
9456 (unlink_gcda_file): Remove one gcda file.
9457 (unlink_profile_dir): Remove gcda files from the profile path.
9458 (gcov_output_files): Output gcda files to an output dir.
9459 (profile_merge): Merge two profiles in directory.
9460 (print_merge_usage_message): Print merge usage.
9461 (merge_usage): Print merge usage and exit.
9462 (do_merge): Driver for profile merge sub-command.
9463 (profile_rewrite): Rewrite profile.
9464 (print_rewrite_usage_message): Print rewrite usage.
9465 (rewrite_usage): Print rewrite usage and exit.
9466 (do_rewrite): Driver for profile rewrite sub-command.
9467 (print_usage): Print gcov-info usage and exit.
9468 (print_version): Print gcov-info version.
9469 (process_args): Process arguments.
9470 (main): Main routine for gcov-tool.
9471 * Makefile.in: Build and install gcov-tool.
9472 * gcov-counter.def: New file split from gcov-io.h.
9473 * doc/gcc.texi: Include gcov-tool.texi.
9474 * doc/gcov-tool.texi: Document for gcov-tool.
9475
9476 2014-07-10 Richard Biener <rguenther@suse.de>
9477
9478 PR tree-optimization/61757
9479 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9480 (propagate_rhs_into_lhs): Revert part of last change.
9481
9482 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9483
9484 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9485 FUNCTION_DECLs.
9486
9487 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9488
9489 PR middle-end/53590
9490 * function.c (allocate_struct_function): Revert r188667 change.
9491
9492 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9493
9494 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9495
9496 * doc/install.texi: Remove links to defunct package providers for
9497 Solaris.
9498
9499 2014-07-09 Tom de Vries <tom@codesourcery.com>
9500
9501 * final.c (get_call_fndecl): Declare.
9502 (self_recursive_call_p): New function.
9503 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9504
9505 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9506
9507 * ipa-devirt.c (record_node): Walk through aliases.
9508
9509 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9510
9511 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9512
9513 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9514
9515 Revert:
9516 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9517
9518 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9519
9520 * ipa-visibility.c (function_and_variable_visibility): Remove
9521 temporary hack disabling local aliases on AIX.
9522
9523 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9524
9525 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9526 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9527
9528 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9529
9530 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9531 * rs6000/rs6000.c: Inline output of .set instruction.
9532 (declare_alias_data): New struct.
9533 (rs6000_declare_alias): New function.
9534 (rs6000_xcoff_declare_function_name): Use it.
9535 (rs6000_xcoff_declare_object_name): New function.
9536 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9537 (ASM_OUTPUT_DEF): Turn to empty definition.
9538
9539 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9540
9541 PR bootstrap/61679
9542 * hash-table.h: use hash_table::value_type instead of
9543 Descriptor::value_type in the return types of several methods.
9544
9545 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9546
9547 * tree-pass.h (pass_data): Remove has_execute member.
9548 * passes.c (execute_one_pass): Don't check pass->has_execute.
9549 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9550 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9551 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9552 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9553 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9554 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9555 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9556 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9557 gimple-low.c, gimple-ssa-isolate-paths.c,
9558 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9559 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9560 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9561 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9562 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9563 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9564 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9565 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9566 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9567 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9568 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9569 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9570 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9571 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9572 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9573 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9574 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9575 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9576 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9577 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9578 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9579 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9580 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9581 web.c: Remove initializer for pass_data::has_execute.
9582
9583 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9584
9585 * graphite-htab.h: Use hash_map instead of hash_table.
9586 * graphite-clast-to-gimple.c: Adjust.
9587 * passes.c: Use hash_map instead of hash_table.
9588 * sese.c: Likewise.
9589 * sese.h: Remove now unused code.
9590
9591 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9592
9593 PR target/61599
9594 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9595 than zero.
9596
9597 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9598
9599 PR rtl-optimization/61673
9600 * combine.c (simplify_comparison): Test just mode's sign bit
9601 in tmode rather than the sign bit and any bits above it.
9602
9603 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9604
9605 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9606 Add __isl_give to the declaration.
9607 (generate_isl_schedule): Likewise.
9608 (scop_to_isl_ast): Likewise.
9609
9610 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9611
9612 * config/arm/arm.c (cortexa5_extra_costs): New table.
9613 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9614
9615 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9616
9617 PR tree-optimization/61725
9618 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9619 range, use range_includes_zerop_p instead of integer_zerop on
9620 vr0->min, only use log2 of max if min is not negative.
9621
9622 2014-07-08 Richard Biener <rguenther@suse.de>
9623
9624 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9625 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9626 restriction on loop depth difference.
9627 (record_equality): Likewise.
9628 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9629 (loop_depth_of_name): Remove.
9630 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9631 restriction on loop depth difference.
9632 (init_copy_prop): Likewise.
9633
9634 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9635
9636 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9637 parameter.
9638 (walk_aliased_vdefs): Likewise.
9639 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9640 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9641 (detect_type_change_from_memory_writes): Check if entry was reached.
9642
9643 2014-07-08 Richard Biener <rguenther@suse.de>
9644
9645 PR tree-optimization/61681
9646 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9647 NONLOCAL inside ESCAPED.
9648
9649 2014-07-08 Richard Biener <rguenther@suse.de>
9650
9651 PR tree-optimization/61680
9652 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9653 Handle properly all read-write dependences with group accesses.
9654
9655 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9656
9657 PR tree-optimization/61576
9658 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9659 block containing reduction statement is predecessor of phi basi block.
9660
9661 2014-07-08 Marek Polacek <polacek@redhat.com>
9662
9663 PR c/60226
9664 * fold-const.c (round_up_loc): Change the parameter type.
9665 Remove assert.
9666 * fold-const.h (round_up_loc): Adjust declaration.
9667 * stor-layout.c (finalize_record_size): Check for too large types.
9668
9669 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9670
9671 * symtab.c: Include calls.h.
9672 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9673
9674 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9675
9676 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9677 little-endian code generation.
9678 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9679 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9680 (spe_evmergehilo): Rename to...
9681 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9682 (spe_evmergelo): Rename to...
9683 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9684 (spe_evmergelohi): Rename to...
9685 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9686 (spe_evmergehi, spe_evmergehilo): New expanders.
9687 (spe_evmergelo, spe_evmergelohi): Likewise.
9688 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9689 (*frob_tf_ti): Likewise.
9690 (*frob_<mode>_di_2): Likewise.
9691 (*frob_tf_di_8_2): Likewise.
9692 (*frob_di_<mode>): Likewise.
9693 (*frob_ti_tf): Likewise.
9694 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9695 (*frob_ti_<mode>_8_2): Likewise.
9696 (*frob_ti_tf_2): Likewise.
9697 (mov_si<mode>_e500_subreg0): Rename to...
9698 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9699 endianness only.
9700 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9701 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9702 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9703 the big endianness only.
9704 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9705 (*mov_si<mode>_e500_subreg0_2): Rename to...
9706 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9707 big big endianness only.
9708 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9709 (*mov_si<mode>_e500_subreg4): Rename to...
9710 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9711 endianness only.
9712 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9713 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9714 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9715 the big endianness only.
9716 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9717 pattern.
9718 (*mov_si<mode>_e500_subreg4_2): Rename to...
9719 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9720 endianness only.
9721 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9722 (*mov_sitf_e500_subreg8): Rename to...
9723 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9724 endianness only.
9725 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9726 (*mov_sitf_e500_subreg8_2): Rename to...
9727 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9728 endianness only.
9729 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9730 (*mov_sitf_e500_subreg12): Rename to...
9731 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9732 endianness only.
9733 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9734 (*mov_sitf_e500_subreg12_2): Rename to...
9735 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9736 endianness only.
9737 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9738
9739 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9740
9741 * asan.c (instrument_strlen_call): Do not instrument first byte
9742 in strlen if already instrumented.
9743
9744 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9745
9746 * config/arm/arm.opt (mwords-little-endian): Delete.
9747 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9748 of TARGET_LITTLE_WORDS.
9749 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9750 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9751 warning.
9752 * doc/invoke.texi: Remove references to -mwords-little-endian.
9753
9754 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9755
9756 * expmed.c (struct init_expmed_rtl): Change all fields but
9757 pow2 and cint from struct rtx_def to rtx.
9758 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9759 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9760 at the end again.
9761
9762 2014-07-06 Marek Polacek <polacek@redhat.com>
9763
9764 PR c/6940
9765 * doc/invoke.texi: Document -Wsizeof-array-argument.
9766
9767 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9768
9769 * wide-int.h (wide_int_storage): Change declaration from struct
9770 to class.
9771
9772 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9773
9774 * cgraph.c (cgraph_create_indirect_edge): Update call of
9775 get_polymorphic_call_info.
9776 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9777 (possible_polymorphic_call_targets): Add parameter call.
9778 (decl_maybe_in_construction_p): New predicate.
9779 (get_polymorphic_call_info): Add parameter call;
9780 use decl_maybe_in_construction_p.
9781 * gimple-fold.c (fold_gimple_assign): Update use of
9782 possible_polymorphic_call_targets.
9783 (gimple_fold_call): Likewise.
9784 * ipa-prop.c: Inlcude calls.h
9785 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9786 (param_type_may_change_p): New predicate.
9787 (detect_type_change_from_memory_writes): Break out from ...
9788 (detect_type_change): ... this one; use param_type_may_change_p.
9789 (detect_type_change_ssa): Use param_type_may_change_p.
9790 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9791
9792 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9793
9794 PR target/49423
9795 * config/arm/arm-protos.h (arm_legitimate_address_p,
9796 arm_is_constant_pool_ref): Add prototypes.
9797 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9798 (arm_is_constant_pool_ref) New function.
9799 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9800 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9801 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9802 operand. Remove pool_range and neg_pool_range attributes.
9803 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9804 pool_range and neg_pool_range attributes.
9805 * config/arm/constraints.md (Uh): New constraint.
9806 (Uq): Don't allow constant pool references.
9807
9808 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9809
9810 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9811 (move_lo_quad_internal_be_<mode>): Likewise.
9812 (move_lo_quad_<mode>): Convert to define_expand.
9813 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9814 (aarch64_simd_move_hi_quad_be_<mode>): New.
9815 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9816 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9817 (aarch64_combinez_be<mode>): New.
9818 (aarch64_combine<mode>): Convert to define_expand.
9819 (aarch64_combine_internal<mode>): New.
9820 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9821
9822 2014-07-04 Tom de Vries <tom@codesourcery.com>
9823
9824 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9825 combination of earlyclobber and read/write modifiers.
9826
9827 2014-07-04 Tom de Vries <tom@codesourcery.com>
9828
9829 * config/aarch64/aarch64-simd.md
9830 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9831
9832 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9833
9834 PR target/61714
9835 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9836
9837 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9838
9839 PR middle-end/61654
9840 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9841
9842 PR tree-optimization/61684
9843 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9844 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9845
9846 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9847 Kito Cheng <kito@0xlab.org>
9848 Monk Chiang <sh.chiang04@gmail.com>
9849
9850 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9851 (nds32_symbol_load_store_p): Move to ...
9852 (nds32_fp_as_gp_check_available): Move to ...
9853 * config/nds32/nds32-fp-as-gp.c: ... here.
9854 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9855 extern declaration.
9856
9857 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9858 Kito Cheng <kito@0xlab.org>
9859 Monk Chiang <sh.chiang04@gmail.com>
9860
9861 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9862 (nds32_expand_store_multiple): Move to ...
9863 (nds32_expand_movmemqi): Move to ...
9864 * config/nds32/nds32-memory-manipulation.c: ... here.
9865
9866 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9867 Kito Cheng <kito@0xlab.org>
9868 Monk Chiang <sh.chiang04@gmail.com>
9869
9870 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9871 (nds32_output_casesi_pc_relative): Move to ...
9872 (nds32_output_casesi): Move to ...
9873 (nds32_mem_format): Move to ...
9874 (nds32_output_16bit_store): Move to ...
9875 (nds32_output_16bit_load): Move to ...
9876 (nds32_output_32bit_store): Move to ...
9877 (nds32_output_32bit_load): Move to ...
9878 (nds32_output_32bit_load_s): Move to ...
9879 (nds32_output_stack_push): Move to ...
9880 (nds32_output_stack_pop): Move to ...
9881 * config/nds32/nds32-md-auxiliary.c: ... here.
9882
9883 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9884 Ling-Hua Tseng <uranus@tinlans.org>
9885
9886 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9887 the purpose of this file.
9888
9889 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9890 Kito Cheng <kito@0xlab.org>
9891 Monk Chiang <sh.chiang04@gmail.com>
9892
9893 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9894 (nds32_address_cost): Move implementation to ...
9895 * config/nds32/nds32-cost.c: ... here.
9896 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9897 (nds32_address_cost_impl): Declare.
9898
9899 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9900 Kito Cheng <kito@0xlab.org>
9901 Monk Chiang <sh.chiang04@gmail.com>
9902
9903 * config/nds32/nds32.c
9904 (nds32_consecutive_registers_load_store_p): Move to ...
9905 (nds32_valid_multiple_load_store): Move to ...
9906 (nds32_valid_stack_push_pop): Move to ...
9907 (nds32_can_use_bclr_p): Move to ...
9908 (nds32_can_use_bset_p): Move to ...
9909 (nds32_can_use_btgl_p): Move to ...
9910 (nds32_can_use_bitci_p): Move to ...
9911 * config/nds32/nds32-predicates.c: ... here.
9912
9913 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9914 Kito Cheng <kito@0xlab.org>
9915 Monk Chiang <sh.chiang04@gmail.com>
9916
9917 * config/nds32/nds32.c
9918 (nds32_expand_builtin_null_ftype_reg): Move to ...
9919 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9920 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9921 (nds32_init_builtins): Move implementation to ...
9922 (nds32_expand_builtin): Move implementation to ...
9923 * config/nds32/nds32-intrinsic.c: ... here.
9924 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9925 (nds32_expand_builtin_impl): Declare.
9926
9927 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9928 Kito Cheng <kito@0xlab.org>
9929 Monk Chiang <sh.chiang04@gmail.com>
9930
9931 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9932 (nds32_emit_section_tail_template): Move to ...
9933 (nds32_emit_isr_jmptbl_section): Move to ...
9934 (nds32_emit_isr_vector_section): Move to ...
9935 (nds32_emit_isr_reset_conten): Move to ...
9936 (nds32_check_isr_attrs_conflict): Move to ...
9937 (nds32_construct_isr_vectors_information): Move to ...
9938 (nds32_asm_file_start): Move implementation to ...
9939 (nds32_asm_file_end): Move implementation to ...
9940 * config/nds32/nds32-isr.c: ... here.
9941 * config/nds32/nds32-protos.h
9942 (nds32_check_isr_attrs_conflict): Declare.
9943 (nds32_construct_isr_vectors_information): Declare.
9944 (nds32_asm_file_start_for_isr): Declare.
9945 (nds32_asm_file_end_for_isr): Declare.
9946
9947 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9948 Kito Cheng <kito@0xlab.org>
9949 Monk Chiang <sh.chiang04@gmail.com>
9950
9951 * config.gcc (nds32*): Add new modules to extra_objs.
9952 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9953 (nds32be-*-*): Likewise.
9954 * config/nds32/nds32-cost.c: New file.
9955 * config/nds32/nds32-fp-as-gp.c: New file.
9956 * config/nds32/nds32-intrinsic.c: New file.
9957 * config/nds32/nds32-isr.c: New file.
9958 * config/nds32/nds32-md-auxiliary.c: New file.
9959 * config/nds32/nds32-memory-manipulation.c: New file.
9960 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9961 * config/nds32/nds32-predicates.c: New file.
9962 * config/nds32/t-nds32: New file.
9963
9964 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9965
9966 PR tree-optimization/61682
9967 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9968 using cases and when one of the operands is equal to 1.
9969
9970 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9971
9972 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9973 ashr<mode>3): Correct mode of operands[2].
9974 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9975 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9976 Correct mode of operands[2]. Fix split condition.
9977
9978 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9979
9980 * arm.md (arch): Add armv6_or_vfpv3.
9981 (arch_enabled): Add test for the above.
9982 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9983 on VFP9.
9984 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9985
9986 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9987
9988 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9989 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9990 HWI 1 and negate the unsigned value.
9991 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9992 use AND instead of shift.
9993 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9994
9995 2014-07-03 Marek Polacek <polacek@redhat.com>
9996
9997 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9998 (-fsanitize=float-divide-by-zero): Move to the table with
9999 -fsanitize=undefined suboptions.
10000 (-fsanitize=float-cast-overflow): Likewise.
10001
10002 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10003
10004 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10005 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10006 endianness.
10007
10008 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10009
10010 * loop-invariant.c (struct invariant): Add a new member: eqno;
10011 (find_identical_invariants): Update eqno;
10012 (create_new_invariant): Init eqno;
10013 (get_inv_cost): Compute comp_cost with eqno;
10014
10015 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10016
10017 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10018 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10019 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10020 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10021 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10022
10023 2014-07-02 Christian Bruel <christian.bruel@st.com>
10024
10025 PR target/29349
10026 PR target/53513
10027 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10028 (make_preds_opaque): Delete.
10029 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10030 (commit_mode_sets): New function.
10031 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10032 Process all modes at once.
10033 * basic-block.h (pre_edge_lcm_avs): Declare.
10034 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10035 Call clear_aux_for_edges. Fix comments.
10036 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10037 (pre_edge_rev_lcm): Idem.
10038 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10039 parameter.
10040 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10041 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10042 Idem.
10043 * config/i386/i386.c (x96_emit_mode_set): Idem.
10044 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10045 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10046 (fpscr_toggle) Disallow from delay slot.
10047 * target.def (emit_mode_set): Add prev_mode parameter.
10048 * doc/tm.texi: Regenerate.
10049
10050 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10051
10052 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10053 variable i.
10054
10055 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10056
10057 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10058 vtable_pointer_value_to_vtable): Constify.
10059 (contains_polymorphic_type_p): Declare.
10060 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10061 vtable_pointer_value_to_vtable): Constify.
10062 (contains_polymorphic_type_p): New predicate.
10063 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10064 polymorphic types.
10065 (ipa_set_ancestor_jf): Likewise.
10066 (detect_type_change): Return false in easy cases.
10067 (compute_complex_assign_jump_func): Require type to contain
10068 polymorphic type.
10069 (compute_known_type_jump_func): Likewise.
10070
10071 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10072
10073 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10074 Remove.
10075 (type_in_anonymous_namespace_p): Constify argument.
10076 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10077 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10078 (main_odr_variant): New function.
10079 (hash_type_name): Make static; update assert; do not ICE on
10080 non-records.
10081 (types_same_for_odr): Bring here from tree.c; simplify and remove
10082 old structural comparing code that doesn't work for templates.
10083 (odr_hasher::equal): Update assert.
10084 (add_type_duplicate): Return true when bases should be computed;
10085 replace incomplete loader by complete; do not output duplicated
10086 warnings; do not ICE on non-records; set odr_violated flag.
10087 (get_odr_type): Be ready to replace incomplete type by complete
10088 one; work on ODR variants instead of main variants; reorder item
10089 in array so bases have still smaller indexes.
10090 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10091 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10092
10093 2014-07-01 Cary Coutant <ccoutant@google.com>
10094
10095 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10096 lookup.
10097 (resolve_addr_in_expr): When replacing the rtx in a location list
10098 entry, get a new address table entry.
10099 (dwarf2out_finish): Call index_location_lists even if there are no
10100 addr_index_table entries yet.
10101
10102 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10103
10104 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10105 change for not being obvious.
10106
10107 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10108
10109 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10110 unused argument.
10111
10112 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10113
10114 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10115 (vcagt_f64): Likewise.
10116 (vcale_f64): Likewise.
10117 (vcaled_f64): Likewise.
10118 (vcales_f32): Likewise.
10119 (vcalt_f64): Likewise.
10120 (vcaltd_f64): Likewise.
10121 (vcalts_f32): Likewise.
10122
10123 2014-07-01 Marek Polacek <polacek@redhat.com>
10124
10125 * doc/invoke.texi: Document -Wint-conversion.
10126
10127 2014-07-01 Marek Polacek <polacek@redhat.com>
10128
10129 PR c/58286
10130 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10131
10132 2014-07-01 Martin Liska <mliska@suse.cz>
10133
10134 IPA REF alias refactoring
10135 * cgraph.h (iterate_direct_aliases): New function.
10136 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10137 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10138 FOR_EACH_ALIAS added.
10139 (cgraph_for_node_and_aliases): Likewise.
10140 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10141 * ipa-inline.c (reset_edge_caches): Likewise.
10142 (update_caller_keys): Likewise.
10143 * trans-mem.c (ipa_tm_execute): Likewise.
10144 *varpool.c (varpool_analyze_node): Likewise.
10145 (varpool_for_node_and_aliases): Likewise.
10146 * ipa-ref.h (first_alias): New function.
10147 (last_alias): Likewise.
10148 (has_aliases_p): Likewise.
10149 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10150 is sensitive to IPA_REF_ALIASes.
10151 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10152 are put at the beginning of the list.
10153 (symtab_node::iterate_direct_aliases): New function.
10154
10155 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10156
10157 Revert:
10158 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10159 type is complete.
10160 (write_ts_type_common_tree_pointers): Do not stream fields not set
10161 for incomplete types; do not stream duplicated fields for variants;
10162 sanity check that variant and type match.
10163 (write_ts_type_non_common_tree_pointers): Likewise.
10164 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10165 TYPE_SIZE whether type is complete.
10166 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10167 write_ts_type_common_tree_pointers
10168 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10169
10170 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10171
10172 * var-tracking.c (add_stores): Return instead of asserting if old
10173 and new values for conditional store are the same.
10174
10175 2014-06-30 Richard Henderson <rth@redhat.com>
10176
10177 PR rtl-opt/61608
10178 PR target/39284
10179 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10180 the cfg if there were any changes.
10181 * passes.def: Revert move of peephole2 after reorder_blocks;
10182 move duplicate_computed_gotos before peephole2.
10183
10184 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10185
10186 * except.c (emit_note_eh_region_end): New helper function.
10187 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10188 emit EH_REGION_END note.
10189 * jump.c (cleanup_barriers): Do not split a call and its
10190 corresponding CALL_ARG_LOCATION note.
10191
10192 2014-06-30 Jeff Law <law@redhat.com>
10193
10194 PR tree-optimization/61607
10195 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10196 deeper into the SSA_NAME_VALUE chain.
10197
10198 2014-06-30 Marek Polacek <polacek@redhat.com>
10199
10200 * convert.c (convert_to_integer): Don't instrument conversions if the
10201 function has no_sanitize_undefined attribute.
10202 * ubsan.c: Don't run the ubsan pass if the function has
10203 no_sanitize_undefined attribute.
10204
10205 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10206
10207 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10208 -fsanitize=undefined suboptions.
10209
10210 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10211
10212 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10213 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10214 against bigendian and adjust indices.
10215
10216 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10217
10218 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10219
10220 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10221
10222 PR target/61633
10223 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10224 Add alternative; make early clobber. Adjust both split patterns
10225 to use operand 0 as the working register.
10226
10227 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10228
10229 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10230 as ira_object_id_map might be NULL, or 1.
10231
10232 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10233
10234 * loop-invariant.c (get_inv_cost): Handle register class.
10235 (gain_for_invariant): Check the register pressure of the inv
10236 and its overlapped register class, other than all.
10237
10238 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10239
10240 * doc/invoke.texi (Optimize Options): Fix descriptions of
10241 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10242
10243 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10244
10245 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10246 documentation.
10247
10248 2014-06-29 Tobias Grosser <tobias@grosser.es>
10249
10250 PR bootstrap/61650
10251 * graphite-isl-ast-to-gimple.c: Add missing guards.
10252
10253 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10254
10255 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10256 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10257 * flag-types.h: Add new enum fgraphite_generator.
10258 * graphite-isl-ast-to-gimple.c: New.
10259 * graphite-isl-ast-to-gimple.h: New.
10260 * graphite.c (graphite_transform_loops): Add choice of Graphite
10261 code generator, which depends on flag_graphite_code_gen.
10262
10263 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10264
10265 * graphite-dependences.c (subtract_commutative_associative_deps):
10266 Add NULL checking of the following variables: must_raw_no_source,
10267 may_raw_no_source, must_war_no_source, may_war_no_source,
10268 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10269 must_war, may_war, must_waw, may_waw.
10270
10271 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10272
10273 * graphite-clast-to-gimple.c: gloog is renamed to
10274 graphite_regenerate_ast_cloog. gloog_error is renamed to
10275 graphite_regenerate_error.
10276 * graphite-clast-to-gimple.h: The definition of the struct
10277 bb_pbb_def is moved to graphite-htab.h.
10278 Add inclusion of the hash-table.h.
10279 * graphite-htab.h: The declaration of the function gloog is moved
10280 to graphite-clast-to-gimple.h and renamed to
10281 graphite_regenerate_ast_cloog.
10282 * graphite.c (graphite_transform_loops): gloog is renamed
10283 to graphite_regenerate_ast_cloog.
10284
10285 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10286
10287 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10288 type is complete.
10289 (write_ts_type_common_tree_pointers): Do not stream fields not set
10290 for incomplete types; do not stream duplicated fields for variants;
10291 sanity check that variant and type match.
10292 (write_ts_type_non_common_tree_pointers): Likewise.
10293 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10294 TYPE_SIZE whether type is complete.
10295 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10296 write_ts_type_common_tree_pointers
10297 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10298
10299 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10300
10301 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10302
10303 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10304
10305 * tree-inline.c (remap_type_1): Do not duplicate fields
10306 that are shared in between type and its main variant.
10307
10308 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10309
10310 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10311 of the type.
10312 (ipa_set_ancestor_jf) Likewise.
10313 (check_stmt_for_type_change): Check that we work on main variant.
10314 (detect_type_change): Look into main variant.
10315 (compute_known_type_jump_func): Check that main variant has BINFO.
10316
10317 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10318
10319 * ipa-devirt.c (set_type_binfo): New function.
10320 (add_type_duplicate): Use it.
10321 (get_odr_type): Sanity check that binfos points to main variants.
10322 (get_class_context): Be sure the context's outer_type is main variant.
10323 (contains_type_p): Walk main variant.
10324 (get_polymorphic_call_info_for_decl): Set outer_type to be
10325 main variant.
10326 (get_polymorphic_call_info): Likewise.
10327 (possible_polymorphic_call_targets): Sanity check that we operate
10328 on main variant.
10329
10330 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10331
10332 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10333
10334 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10335
10336 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10337 accidental change due to wide-int branch merge.
10338
10339 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10340
10341 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10342 compressed debug support.
10343 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10344 * configure: Regenerate.
10345 * config.in: Regenerate.
10346 * common.opt (compressed_debug_sections): New enum.
10347 (gz, gz=): New options.
10348 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10349 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10350 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10351 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10352 LINK_COMPRESS_DEBUG_SPEC.
10353 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10354 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10355 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10356 (Debugging Options): Document -gz[=type].
10357
10358 2014-06-27 Martin Jambor <mjambor@suse.cz>
10359
10360 PR ipa/61160
10361 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10362 args_to_skip, use those from node instead. Copy args_to_skip and
10363 combined_args_to_skip from node to the new thunk.
10364 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10365 (cgraph_create_virtual_clone): Moved computation of
10366 combined_args_to_skip...
10367 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10368
10369 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10370
10371 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10372 redundant diagnostic machinary.
10373
10374 2014-06-27 Richard Biener <rguenther@suse.de>
10375
10376 * tree-ssa-math-opts.c (bswap_replace): Fix
10377 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10378
10379 2014-06-27 Martin Liska <mliska@suse.cz>
10380
10381 * gimple.h (gimple_location_safe): New function introduced.
10382 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10383 of gimple_location_safe replaces gimple_location.
10384 (gimple_fold_call): Likewise.
10385 * ipa-devirt.c (ipa_devirt): Likewise.
10386 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10387 * ipa.c (walk_polymorphic_call_targets): Likewise.
10388 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10389
10390 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10391
10392 PR tree-optimization/57233
10393 PR tree-optimization/61299
10394 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10395 functions.
10396 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10397 would be lowered to scalar shifts, check if corresponding
10398 shifts and vector BIT_IOR_EXPR are supported and don't lower
10399 or lower just to narrower vector type in that case.
10400 * expmed.c (expand_shift_1): Fix up handling of vector
10401 shifts and rotates.
10402
10403 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10404
10405 PR target/61586
10406 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10407
10408 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10409
10410 * doc/invoke.texi (-fsemantic-interposition): Document.
10411 * common.opt (fsemantic-interposition): New flag.
10412 * varasm.c (decl_replaceable_p): Use it.
10413
10414 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10415
10416 PR target/61542
10417 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10418 extraction other than index 3.
10419
10420 2014-06-26 Teresa Johnson <tejohnson@google.com>
10421
10422 * doc/invoke.texi: Fix typo.
10423 * dumpfile.c: Add support for documented -fdump-* options
10424 optimized/missed/note/optall.
10425
10426 2014-06-26 Martin Jambor <mjambor@suse.cz>
10427
10428 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10429 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10430 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10431 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10432 * opts.c (default_options_optimization): Set
10433 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10434 * doc/invoke.texi (allow-load-data-races)
10435 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10436 (allow-store-data-races): Document the new default.
10437
10438 2014-06-26 Martin Jambor <mjambor@suse.cz>
10439
10440 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10441 renamed to ipa_impossible_devirt_target. Fix typo.
10442 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10443 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10444 ipa_impossible_devirt_target.
10445
10446 2014-06-26 Richard Biener <rguenther@suse.de>
10447
10448 PR tree-optimization/61607
10449 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10450 explaining why we restrict copies on loop depth.
10451 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10452 on loop depth.
10453 (record_equivalences_from_phis): Instead add it here.
10454
10455 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10456
10457 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10458 (LTO_WRAPPER_OBJS): New variable.
10459 (lto-wrapper$(exeext)): Use it.
10460 * collect2.c: Include "collect-utils.h".
10461 (verbose, debug): Remove variables.
10462 (at_file_supplied): No longer static.
10463 (tool_name): New variable.
10464 (do_wait, fork_execute, maybe_unlink): Don't declare.
10465 (tool_cleanup): No longer static.
10466 (notice): Remove function.
10467 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10468 fork_execute calls.
10469 (collect_wait, do_wait, collect_execute): Remove functions.
10470 (maybe_unlink): No longer static.
10471 * collect2.h (verbose, debug): Don't declare.
10472 (at_file_supplied): Declare.
10473 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10474 changed.
10475 (collect_execute): Replace with implementation from collect2, plus a
10476 new arg use_atfile. All callers changed.
10477 (collect_wait): Replace with implementation from collect2.
10478 (maybe_unlink_file): Remove function.
10479 (fork_execute): Replace with implementation from collect2, plus a
10480 new arg use_atfile. All callers changed.
10481 (do_wait): Add call to utils_cleanup to the error path.
10482 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10483 (tool_cleanup): Adjust declarations.
10484 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10485 * tlink.c: Include "collect-utils.h".
10486 (tlink_execute): New arg use_atfile. All callers changed.
10487 (tlink_init, tlink_execute): Remove declarations.
10488
10489 * collect-utils.c (save_temps): New variable.
10490 (do_wait): Use it instead of debug. Use fatal_error.
10491 * collect-utils.h (save_temps): Declare.
10492 * collect2.c (verbose): Rename from vflag. All uses changed.
10493 (tool_cleanup): New function, copied from collect_atexit.
10494 (collect_atexit, handler): Just call it.
10495 * collect2.h (verbose): Declaration renamed from vflag.
10496 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10497 debug.
10498
10499 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10500 (lto-wrapper$(exeext)): Link with collect-utils.o.
10501 * collect-utils.c: New file.
10502 * collect-utils.h: New file.
10503 * lto-wrapper.c: Include "collect-utils.h".
10504 (args_name): Delete variable.
10505 (tool_name): New variable.
10506 (tool_cleanup): New function.
10507 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10508 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10509 (fork_execute): Remove functions.
10510
10511 2014-06-26 Nick Clifton <nickc@redhat.com>
10512
10513 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10514
10515 * doc/extend.texi (Function Attributes): Fix typo in description
10516 of RX vector attribute.
10517
10518 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10519
10520 * config.gcc (supported_defaults): Error when passing either
10521 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10522
10523 2014-06-26 Richard Biener <rguenther@suse.de>
10524
10525 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10526 propagating volatile pointers.
10527
10528 2014-06-26 Richard Biener <rguenther@suse.de>
10529
10530 PR tree-optimization/61607
10531 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10532 loop if we redirected its latch edge.
10533 (thread_block_1): Do not cancel loops prematurely.
10534
10535 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10536
10537 * toplev.c (backend_init_target): Move init_emit_regs and
10538 init_regs to...
10539 (backend_init) ... here; skip ira_init_once and backend_init_target.
10540 (target_reinit) ... and here; clear
10541 this_target_rtl->lang_dependent_initialized.
10542 (lang_dependent_init_target): Clear
10543 this_target_rtl->lang_dependent_initialized;
10544 break out rtl initialization to ...
10545 (initialize_rtl): ... here; call also backend_init_target
10546 and ira_init_once.
10547 * toplev.h (initialize_rtl): New function.
10548 * function.c: Include toplev.h
10549 (init_function_start): Call initialize_rtl.
10550 * rtl.h (target_rtl): Add target_specific_initialized,
10551 lang_dependent_initialized.
10552
10553 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10554 Jakub Jelinek <jakub@redhat.com>
10555
10556 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10557
10558 2014-06-25 Tom de Vries <tom@codesourcery.com>
10559
10560 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10561
10562 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10563
10564 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10565 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10566 Issue a strict overflow warning if appropriate.
10567
10568 2014-06-25 Martin Liska <mliska@suse.cz>
10569
10570 IPA REF refactoring
10571 * Makefile.in: Removed header file (ipa-ref-inline.h).
10572 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10573 called.
10574 (cgraph_speculative_call_info): Likewise.
10575 (cgraph_for_node_thunks_and_aliases): Likewise.
10576 (cgraph_for_node_and_aliases): Likewise.
10577 (verify_cgraph_node): Likewise.
10578 * cgraph.h: Batch of IPA REF functions become member functions of
10579 symtab_node: add_reference, maybe_add_reference, clone_references,
10580 clone_referring, clone_reference, find_reference,
10581 remove_stmt_references, remove_all_references,
10582 remove_all_referring, dump_references, dump_referring,
10583 has_alias_p, iterate_reference, iterate_referring.
10584 * cgraphbuild.c (record_reference): New IPA REF function used.
10585 (record_type_list): Likewise.
10586 (record_eh_tables): Likewise.
10587 (mark_address): Likewise.
10588 (mark_load): Likewise.
10589 (mark_store): Likewise.
10590 (pass_build_cgraph_edges): Likewise.
10591 (rebuild_cgraph_edge): Likewise.
10592 (cgraph_rebuild_references): Likewise.
10593 (pass_remove_cgraph_callee_edges): Likewise.
10594 * cgraphclones.c (cgraph_clone_node): Likewise.
10595 (cgraph_create_virtual_clone): Likewise.
10596 (cgraph_materialize_clone): Likewise.
10597 (cgraph_materialize_all_clones): Likewise.
10598 * cgraphunit.c (cgraph_reset_node): Likewise.
10599 (cgraph_reset_node): Likewise.
10600 (analyze_function): Likewise.
10601 (assemble_thunks_and_aliases): Likewise.
10602 (expand_function): Likewise.
10603 * ipa-comdats.c (propagate_comdat_group): Likewise.
10604 (enqueue_references): Likewise.
10605 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10606 (create_specialized_node): Likewise.
10607 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10608 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10609 * ipa-inline.c (reset_edge_caches): Likewise.
10610 (update_caller_keys): Likewise.
10611 (execute): Likewise.
10612 * ipa-prop.c (remove_described_reference): Likewise.
10613 (propagate_controlled_uses): Likewise.
10614 (ipa_edge_duplication_hook): Likewise.
10615 (ipa_modify_call_arguments): Likewise.
10616 * ipa-pure-const.c (propagate_pure_const): Likewise.
10617 * ipa-ref-inline.h: Header file removed, functions moved
10618 to symtab_node class.
10619 * ipa-ref.c (remove_reference): New class member function.
10620 (cannot_lead_to_return): New class member function.
10621 (referring_ref_list): Likewise.
10622 (referred_ref_list): Likewise.
10623 Rest of functions moved to symtab_node class.
10624 * ipa-ref.h: New member functions remove_reference,
10625 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10626 to ipa_ref class.
10627 ipa_ref_list class has new member functions: first_reference,
10628 first_referring, clear, nreferences.
10629 * ipa-reference.c (analyze_function): New IPA REF function used.
10630 (write_node_summary_p): Likewise.
10631 (ipa_reference_write_optimization_summary): Likewise.
10632 * ipa-split.c (split_function): Likewise.
10633 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10634 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10635 (function_and_variable_visibility): Likewise.
10636 * ipa.c (has_addr_references_p): Likewise.
10637 (process_references): Argument type changed.
10638 (symtab_remove_unreachable_nodes): New IPA REF function used.
10639 (process_references): Likewise.
10640 (set_writeonly_bit): Likewise.
10641 * lto-cgraph.c: Implementation of new symtab_node member functions
10642 that uses new IPA REF functions.
10643 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10644 function used.
10645 * lto-streamer-out.c (output_symbol_p): Likewise.
10646 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10647 changed.
10648 * symtab.c: Implementation of new IPA REF API.
10649 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10650 (ipa_tm_create_version): Likewise.
10651 (ipa_tm_execute): Likewise.
10652 * tree-emutls.c (gen_emutls_addr): Likewise.
10653 * tree-inline.c (copy_bb): Likewise.
10654 (delete_unreachable_blocks_update_callgraph): Likewise.
10655 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10656 (varpool_for_node_and_aliases): Likewise.
10657
10658 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10659
10660 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10661
10662 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10663
10664 PR bootstrap/61598
10665 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10666 tree_node * instead of tree_node *.
10667 (fold): Adjust.
10668 (print_fold_checksum): Likewise.
10669 (fold_check_failed): Likewise.
10670 (debug_fold_checksum): Likewise.
10671 (fold_build1_stat_loc): Likewise.
10672 (fold_build2_stat_loc): Likewise.
10673 (fold_build3_stat_loc): Likewise.
10674 (fold_build_call_array_loc): Likewise.
10675
10676 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10677
10678 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10679 implementation with call to...
10680 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10681 function.
10682 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10683 Declare.
10684
10685 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10686
10687 PR tree-optimization/57742
10688 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10689 after replacing the statement.
10690
10691 2014-06-25 Nick Clifton <nickc@redhat.com>
10692
10693 * config/v850/v850.c (GHS_default_section_names): Change to const
10694 char * type.
10695 (GHS_current_section_names): Likewise.
10696 (v850_insert_attributes): Do not build strings, just assign the
10697 names directly. Change the type of 'chosen_section' to const
10698 char*.
10699 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10700 directly to the array entry.
10701 * config/v850/v850.h (GHS_default_section_names): Change to const
10702 char * type.
10703 (GHS_current_section_names): Likewise.
10704
10705 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10706
10707 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10708 (LANG_HOOKS_DECLS): Add it.
10709 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10710 has correct type.
10711 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10712 * langhooks.h (struct lang_hooks_for_decls): Add
10713 omp_clause_linear_ctor hook.
10714 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10715 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10716 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10717 combined simd loop use omp_clause_linear_ctor hook.
10718
10719 2014-06-24 Cong Hou <congh@google.com>
10720
10721 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10722 pattern recognition.
10723 (type_conversion_p): PROMOTION is true if it's a type promotion
10724 conversion, and false otherwise. Return true if the given expression
10725 is a type conversion one.
10726 * tree-vectorizer.h: Adjust the number of patterns.
10727 * tree.def: Add SAD_EXPR.
10728 * optabs.def: Add sad_optab.
10729 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10730 * expr.c (expand_expr_real_2): Likewise.
10731 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10732 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10733 * optabs.c (optab_for_tree_code): Likewise.
10734 * tree-cfg.c (estimate_operator_cost): Likewise.
10735 * tree-ssa-operands.c (get_expr_operands): Likewise.
10736 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10737 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10738 * doc/generic.texi: Add document for SAD_EXPR.
10739 * doc/md.texi: Add document for ssad and usad.
10740
10741 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10742
10743 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10744 qualification in cast.
10745
10746 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10747
10748 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10749 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10750 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10751 (tree_function_decl): ... here.
10752 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10753 streaming of vindex to ...
10754 (write_ts_function_decl_tree_pointers): ... here.
10755 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10756 Do not stream DECL_VINDEX.
10757 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10758
10759 2014-06-24 Catherine Moore <clm@codesourcery.com>
10760 Sandra Loosemore <sandra@codesourcery.com>
10761
10762 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10763 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10764 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10765
10766 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10767
10768 * doc/invoke.texi (Warning Options): Remove duplicated
10769 -Wmaybe-uninitialized.
10770
10771 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10772
10773 PR tree-optimization/57742
10774 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10775 (handle_builtin_malloc, handle_builtin_memset): New functions.
10776 (strlen_optimize_stmt): Call them.
10777 * passes.def: Move strlen after loop+dom but before vrp.
10778
10779 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10780
10781 PR target/61570
10782 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10783 model family 6 CPU with has_longmode never use a CPU without
10784 64-bit support.
10785
10786 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10787
10788 PR target/61570
10789 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10790 the last change.
10791
10792 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10793
10794 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10795 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10796 pointer_map.
10797 * hash-map.h: New file.
10798 * ipa-comdats.c: Use hash_map instead of pointer_map.
10799 * ipa.c: Likewise.
10800 * lto-section-out.c: Adjust.
10801 * lto-streamer.h: Replace pointer_map with hash_map.
10802 * symtab.c (verify_symtab): Likewise.
10803 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10804 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10805 * tree-streamer.h: Likewise.
10806 * tree-streamer.c: Adjust.
10807 * pointer-set.h: Remove pointer_map.
10808
10809 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10810
10811 * hash-table.h: Add a template arg to choose between storing values
10812 and storing pointers to values, and then provide partial
10813 specializations for both.
10814 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10815 should store, not the type values should point to.
10816 * tree-into-ssa.c (var_info_hasher): Likewise.
10817 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10818 * tree-complex.c: Adjust.
10819 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10820 table instead of int_tree_map *.
10821 * tree-parloops.c: Adjust.
10822 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10823 type is being stored.
10824 * tree-vectorizer.c: Adjust.
10825
10826 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10827
10828 * hash-table.h: Remove a layer of indirection from hash_table so that
10829 it contains the hash table's data instead of a pointer to the data.
10830 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10831 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10832 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10833 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10834 fold-const.c, gcse.c, ggc-common.c,
10835 gimple-ssa-strength-reduction.c, gimplify.c,
10836 graphite-clast-to-gimple.c, graphite-dependences.c,
10837 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10838 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10839 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10840 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10841 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10842 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10843 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10844 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10845 tree-ssa-live.c, tree-ssa-loop-im.c,
10846 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10847 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10848 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10849 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10850 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10851 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10852 vtable-verify.c, vtable-verify.h: Adjust.
10853
10854 2014-06-24 Richard Biener <rguenther@suse.de>
10855
10856 PR tree-optimization/61572
10857 * tree-ssa-sink.c (statement_sink_location): Do not sink
10858 loads from hard registers.
10859
10860 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10861
10862 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10863 not mentioned in clauses use private clause if the iterator is
10864 declared in #pragma omp for simd, and when adding lastprivate
10865 instead, add it to the outer #pragma omp for too. Diagnose
10866 if the variable is private in outer context. For simd collapse > 1
10867 loops, replace all iterators with temporaries.
10868 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10869 same even in collapse > 1 loops.
10870
10871 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10872 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10873 non-NULL.
10874 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10875 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10876 non-NULL.
10877 (gimplify_adjust_omp_clauses): Likewise.
10878 * omp-low.c (lower_rec_simd_input_clauses,
10879 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10880 safelen the same as safelen(1).
10881 * tree-nested.c (convert_nonlocal_omp_clauses,
10882 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10883 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10884 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10885 Fixup handling of GIMPLE_OMP_TARGET.
10886 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10887 GIMPLE_OMP_TARGET.
10888
10889 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10890
10891 PR tree-optimization/61554
10892 * tree-ssa-propagate.c: Include "bitmap.h".
10893 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10894 properly update constructor/destructor.
10895 (substitute_and_fold_dom_walker::before_dom_children):
10896 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10897 need_eh_cleaup instead.
10898 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10899 need_eh_cleanup.
10900
10901 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10902
10903 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10904 * tree-pass.h (make_pass_ipa_single_use): New pass.
10905 * cgraph.h (used_by_single_function): New flag.
10906 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10907 Stream it.
10908 * passes.def (pass_ipa_single_use): Scedule.
10909 * ipa.c (BOTTOM): New macro.
10910 (meet): New function
10911 (propagate_single_user): New function.
10912 (ipa_single_use): New function.
10913 (pass_data_ipa_single_use): New pass.
10914 (pass_ipa_single_use): New pass.
10915 (pass_ipa_single_use::gate): New gate.
10916 (make_pass_ipa_single_use): New function.
10917
10918 2014-06-23 Kai Tietz <ktietz@redhat.com>
10919
10920 PR target/39284
10921 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10922 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10923
10924 2014-06-23 Richard Biener <rguenther@suse.de>
10925
10926 * tree-ssa-loop.c (gate_loop): New function.
10927 (pass_tree_loop::gate): Call it.
10928 (pass_data_tree_no_loop, pass_tree_no_loop,
10929 make_pass_tree_no_loop): New.
10930 * tree-vectorizer.c: Include tree-scalar-evolution.c
10931 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10932 required.
10933 (pass_slp_vectorize::clone): New method.
10934 * timevar.def (TV_TREE_NOLOOP): New.
10935 * tree-pass.h (make_pass_tree_no_loop): Declare.
10936 * passes.def (pass_tree_no_loop): New pass group with
10937 SLP vectorizer.
10938
10939 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10940
10941 PR target/61570
10942 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10943 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10944
10945 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10946
10947 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10948 "yes" where needed.
10949
10950 2014-06-23 Alan Modra <amodra@gmail.com>
10951
10952 PR bootstrap/61583
10953 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10954 to zero on debug statements.
10955
10956 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10957
10958 PR target/60825
10959 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10960 Ignore third operand if present by marking qualifier_internal.
10961
10962 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10963
10964 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10965 vector extension.
10966 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10967 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10968 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10969 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10970 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10971 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10972 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10973 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10974 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10975 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10976 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10977 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10978 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10979 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10980 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10981 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10982 logic in GCC vector extensions
10983
10984 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10985 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10986 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10987 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10988 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10989 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10990 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10991 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10992 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10993 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10994
10995 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10996
10997 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10998 extensions.
10999
11000 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11001 (vget_low_s64): Use __GET_LOW macro.
11002 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11003 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11004 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11005 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11006 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11007
11008 (vcombine_s64): Use GCC vector extensions; remove cast.
11009 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11010 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11011 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11012 Fix type signature; remove cast.
11013
11014 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11015
11016 PR target/60825
11017 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11018 V1DFmode.
11019 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11020 add V1DFmode
11021 (BUILTIN_VD1): New.
11022 (BUILTIN_VD_RE): Remove.
11023 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11024 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11025 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11026 variant but not df.
11027 (vreinterpretv1df*, vreinterpret*v1df): New.
11028 (vreinterpretdf*, vreinterpret*df): Remove.
11029 * config/aarch64/aarch64-simd.md (aarch64_create,
11030 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11031 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11032 (VD1): New.
11033 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11034 (vcreate_f64): Remove cast, use v1df builtin.
11035 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11036 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11037 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11038 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11039 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11040 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11041 add range check using __builtin_aarch64_im_lane_boundsi.
11042 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11043 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11044 type signature, use gcc vector extensions.
11045 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11046 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11047 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11048 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11049 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11050 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11051 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11052 vreinterpret_u64_f64): Use v1df builtin not df.
11053
11054 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11055
11056 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11057 vector registers.
11058
11059 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11060
11061 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11062 priority directly.
11063
11064 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11065
11066 * loop-invariant.c (pre_check_invariant_p): New function.
11067 (find_invariant_insn): Call pre_check_invariant_p.
11068
11069 2014-06-22 Richard Henderson <rth@redhat.com>
11070
11071 PR target/61565
11072 * compare-elim.c (struct comparison): Add eh_note.
11073 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11074 a redundant comparison in a different EH region. Purge EH edges if
11075 necessary.
11076
11077 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11078
11079 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11080 (var_shift): Use it.
11081 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11082 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11083 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11084 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11085 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11086 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11087 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11088 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11089 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11090 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11091 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11092 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11093 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11094 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11095 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11096 *rotldi3_internal15be): Use the new attribute. Merge register and
11097 integer alternatives.
11098
11099 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11100
11101 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11102 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11103 split, *ashrdi3_internal3 and split): Delete, merge into...
11104 (ashr<mode>3): New expander.
11105 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11106 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11107
11108 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11109
11110 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11111 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11112 *rotldi3_internal3 and split): Delete, merge into...
11113 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11114 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11115 Use "rotlw" extended mnemonic.
11116
11117 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11118
11119 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11120 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11121 and split, *ashldi3_internal3 and split): Delete, merge into...
11122 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11123 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11124
11125 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11126
11127 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11128 (lshrsi3, two anonymous define_insns and define_splits,
11129 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11130 *lshrdi3_internal3 and split): Delete, merge into...
11131 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11132 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11133
11134 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11135
11136 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11137 Remove "O" alternative.
11138
11139 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11140
11141 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11142 (mips_move_from_gpr_cost): Likewise.
11143 (mips_register_move_cost): Update accordingly.
11144 (mips_secondary_reload_class): Remove name of in_p.
11145
11146 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11147
11148 PR target/61503
11149 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11150 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11151
11152 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11153
11154 * config/nios2/nios2.c: Include "builtins.h".
11155
11156 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11157
11158 * cgraph.h (tls_model_names): New variable.
11159 * print-tree.c (print_node): Simplify.
11160 * varpool.c (tls_model_names): New variable.
11161 (dump_varpool_node): Output tls model.
11162
11163 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11164
11165 * ipa-visibility.c (function_and_variable_visibility): Disable
11166 temporarily local aliases for some targets.
11167
11168 2014-06-20 Marek Polacek <polacek@redhat.com>
11169
11170 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11171 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11172 into SANITIZE_UNDEFINED.
11173 * doc/invoke.texi: Describe -fsanitize=bounds.
11174 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11175 functions created in the FEs.
11176 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11177 (expand_UBSAN_BOUNDS): New function.
11178 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11179 * internal-fn.h: Don't define internal functions here.
11180 * opts.c (common_handle_option): Add -fsanitize=bounds.
11181 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11182 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11183 * tree-core.h: Define internal functions here.
11184 (struct tree_base): Add ifn field.
11185 * tree-pretty-print.c: Include "internal-fn.h".
11186 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11187 * tree.c (get_callee_fndecl): Likewise.
11188 (build_call_expr_internal_loc): New function.
11189 * tree.def (CALL_EXPR): Update description.
11190 * tree.h (CALL_EXPR_IFN): Define.
11191 (build_call_expr_internal_loc): Declare.
11192 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11193 types.
11194 (ubsan_type_descriptor): Change bool parameter to enum
11195 ubsan_print_style. Adjust the code. Add handling of
11196 UBSAN_PRINT_ARRAY.
11197 (ubsan_expand_bounds_ifn): New function.
11198 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11199 (ubsan_build_overflow_builtin): Likewise.
11200 (instrument_bool_enum_load): Likewise.
11201 (ubsan_instrument_float_cast): Likewise.
11202 * ubsan.h (enum ubsan_print_style): New enum.
11203 (ubsan_expand_bounds_ifn): Declare.
11204 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11205
11206 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11207
11208 * config/rs6000/rs6000.md: Append `DONE' to preparation
11209 statements of `bswap' pattern splitters.
11210
11211 2014-06-20 Tom de Vries <tom@codesourcery.com>
11212
11213 * target.def (call_fusage_contains_non_callee_clobbers): Update
11214 definition.
11215 * doc/tm.texi: Regenerate.
11216
11217 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11218 Max Ostapenko <m.ostapenko@partner.samsung.com>
11219
11220 PR sanitizer/61547
11221 * asan.c (instrument_strlen_call): Fixed instrumentation of
11222 trailing byte.
11223
11224 2014-06-20 Martin Jambor <mjambor@suse.cz>
11225
11226 PR ipa/61540
11227 * ipa-prop.c (impossible_devirt_target): New function.
11228 (try_make_edge_direct_virtual_call): Use it, also instead of
11229 asserting.
11230
11231 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11232 Max Ostapenko <m.ostapenko@partner.samsung.com>
11233
11234 PR sanitizer/61530
11235 * asan.c (build_check_stmt): Add condition.
11236
11237 2014-06-20 Martin Jambor <mjambor@suse.cz>
11238
11239 PR ipa/61211
11240 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11241 expanded clones.
11242
11243 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11244
11245 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11246 Update comments.
11247 (VCONQ): Make comment more helpful.
11248 (VCON): Delete.
11249 * config/aarch64/aarch64-simd.md
11250 (aarch64_sqdmulh_lane<mode>):
11251 Use VCOND for operands 2. Update lane checking and flipping logic.
11252 (aarch64_sqrdmulh_lane<mode>): Likewise.
11253 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11254 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11255 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11256 attribute of operand 3 to VCOND.
11257 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11258 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11259 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11260 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11261 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11262 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11263 define_insn.
11264 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11265 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11266 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11267 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11268 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11269 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11270 operand to VCOND. Update lane flipping and bounds checking logic.
11271 (aarch64_sqdmlal2_lane<mode>): Likewise.
11272 (aarch64_sqdmlsl_lane<mode>): Likewise.
11273 (aarch64_sqdmull_lane<mode>): Likewise.
11274 (aarch64_sqdmull2_lane<mode>): Likewise.
11275 (aarch64_sqdmlal_laneq<mode>):
11276 Replace VCON usage with VCONQ.
11277 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11278 (aarch64_sqdmlal2_laneq<mode>): Emit
11279 aarch64_sqdmlal2_laneq<mode>_internal insn.
11280 Replace VCON with VCONQ.
11281 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11282 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11283 (aarch64_sqdmull_laneq<mode>): Emit
11284 aarch64_sqdmull_laneq<mode>_internal insn.
11285 Replace VCON with VCONQ.
11286 (aarch64_sqdmull2_laneq<mode>): Emit
11287 aarch64_sqdmull2_laneq<mode>_internal insn.
11288 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11289 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11290 of 3rd argument to int16x4_t.
11291 (vqdmlalh_lane_s16): Likewise.
11292 (vqdmlslh_lane_s16): Likewise.
11293 (vqdmull_high_lane_s16): Likewise.
11294 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11295 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11296 (vqdmlsl_lane_s16): Likewise.
11297 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11298 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11299 (vqdmlals_lane_s32): Likewise.
11300 (vqdmlsls_lane_s32): Likewise.
11301 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11302 (vqdmulls_lane_s32): Likewise.
11303 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11304 (vqdmlsl_lane_s32): Likewise.
11305 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11306 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11307 (vqrdmulhh_lane_s16): Likewise.
11308 (vqdmlsl_high_lane_s16): Likewise.
11309 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11310 (vqdmlsl_high_lane_s32): Likewise.
11311 (vqrdmulhs_lane_s32): Likewise.
11312
11313 2014-06-20 Tom de Vries <tom@codesourcery.com>
11314
11315 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11316 get_call_reg_set_usage.
11317
11318 2014-06-20 Tom de Vries <tom@codesourcery.com>
11319
11320 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11321 it contains all call_used_regs.
11322
11323 2014-06-20 Tom de Vries <tom@codesourcery.com>
11324
11325 * final.c (collect_fn_hard_reg_usage): Add and use variable
11326 function_used_regs.
11327
11328 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11329
11330 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11331 (set_init_priority, get_init_priority, set_fini_priority,
11332 get_fini_priority): New methods.
11333 * tree.c (init_priority_for_decl): Remove.
11334 (init_ttree): Do not initialize init priority.
11335 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11336 (decl_priority_info): Remove.
11337 (decl_init_priority_insert): Rewrite.
11338 (decl_fini_priority_insert): Rewrite.
11339 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11340 tree_priority_map_marked_p): Remove.
11341 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11342 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11343 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11344 not output priorities.
11345 (pack_ts_function_decl_value_fields): Likewise.
11346 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11347 not input priorities.
11348 (unpack_ts_function_decl_value_fields): Likewise.
11349 * symtab.c (symbol_priority_map): Declare.
11350 (init_priority_hash): Declare.
11351 (symtab_unregister_node): Unregister from priority hash, too.
11352 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11353 New methods.
11354 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11355 (symbol_priority_info): New function.
11356 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11357 New methods.
11358 * tree-core.h (tree_priority_map): Remove.
11359
11360 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11361
11362 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11363 0xff to uint64_t before shifting it up.
11364
11365 2014-06-20 Julian Brown <julian@codesourcery.com>
11366 Chung-Lin Tang <cltang@codesourcery.com>
11367
11368 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11369 TARGET_THUMB1_ONLY. Add comments.
11370
11371 2014-06-19 Tom de Vries <tom@codesourcery.com>
11372
11373 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11374 return type to void.
11375 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11376
11377 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11378
11379 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11380 as "move", from depends_on.
11381
11382 2014-06-19 Terry Guo <terry.guo@arm.com>
11383
11384 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11385 stage.
11386
11387 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11388
11389 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11390 Remove cr5.
11391 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11392
11393 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11394
11395 PR target/61550
11396 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11397 addresses here if reload in progress or completed.
11398
11399 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11400
11401 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11402 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11403 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11404 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11405 (mips_register_priority): New function that implements the target
11406 hook TARGET_REGISTER_PRIORITY.
11407 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11408 (mips_lra_p): Likewise for TARGET_LRA_P.
11409 (TARGET_REGISTER_PRIORITY): Define macro.
11410 (TARGET_SPILL_CLASS): Likewise.
11411 (TARGET_LRA_P): Likewise.
11412 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11413 classes.
11414 (REG_CLASS_NAMES): Likewise.
11415 (REG_CLASS_CONTENTS): Likewise.
11416 (BASE_REG_CLASS): Use M16_SP_REGS.
11417 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11418 New set attribute to enable alternatives depending on the register
11419 allocator used.
11420 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11421 (*lea64): Disable pattern for MIPS16.
11422 * config/mips/mips.opt (mlra): New option.
11423
11424 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11425
11426 * lra-constraints.c (base_to_reg): New function.
11427 (process_address): Use new function.
11428
11429 2014-06-18 Tom de Vries <tom@codesourcery.com>
11430
11431 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11432 * config/aarch64/aarch64.c
11433 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11434 (aarch64_emit_call_insn): New function.
11435 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11436 of emit_call_insn.
11437 * config/aarch64/aarch64.md (define_expand "call_internal")
11438 (define_expand "call_value_internal", define_expand "sibcall_internal")
11439 (define_expand "sibcall_value_internal"): New.
11440 (define_expand "call", define_expand "call_value")
11441 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11442 expand variant and aarch64_emit_call_insn.
11443
11444 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11445 Tom de Vries <tom@codesourcery.com>
11446
11447 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11448 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11449 Redefine to true.
11450 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11451 clobbers to CALL_INSN_FUNCTION_USAGE.
11452 (define_expand "sibcall_internal")
11453 (define_expand "sibcall_value_internal"): New.
11454 (define_expand "call", define_expand "call_value"): Add argument to
11455 arm_emit_call_insn.
11456 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11457 (define_expand "sibcall_value"): Use sibcall_value_internal and
11458 arm_emit_call_insn.
11459
11460 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11461
11462 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11463
11464 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11465
11466 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11467 __udivmoddi4.
11468
11469 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11470
11471 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11472 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11473 annotations. Fix DWARF information.
11474
11475 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11476
11477 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11478 __udivmoddi4, and fixups for negative operands.
11479
11480 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11481
11482 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11483
11484 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11485
11486 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11487 to __udivmoddi4.
11488
11489 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11490
11491 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11492 manipulation.
11493
11494 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11495
11496 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11497 describing register usage on function entry and exit.
11498
11499 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11500
11501 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11502 (__aeabi_ldivmod): Fix whitespace.
11503
11504 2014-06-18 Andreas Schwab <schwab@suse.de>
11505
11506 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11507 Remove blank line after @item.
11508
11509 2014-06-18 Richard Henderson <rth@redhat.com>
11510
11511 PR target/61545
11512 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11513
11514 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11515
11516 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11517 POST_MODIFY for neon loads and stores.
11518 (arm_print_operand): Output post-index register for neon loads and
11519 stores.
11520
11521 2014-06-18 Richard Biener <rguenther@suse.de>
11522
11523 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11524
11525 2014-06-18 Richard Biener <rguenther@suse.de>
11526
11527 * tree-pass.h (make_pass_dce_loop): Remove.
11528 * passes.def: Replace pass_dce_loop with pass_dce.
11529 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11530 changed free niter estimates and reset the scev cache.
11531 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11532 make_pass_dce_loop): Remove.
11533 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11534 (fini_copy_prop): Return whether something changed. Always
11535 let substitute_and_fold perform DCE and free niter estimates
11536 and reset the scev cache if so.
11537 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11538 (pass_data_copy_prop): Do not unconditionally schedule
11539 cleanup-cfg or update-ssa.
11540
11541 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11542
11543 PR tree-optimization/61518
11544 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11545 reduction var is used in reduction stmt or phi-function only.
11546
11547 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11548
11549 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11550
11551 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11552
11553 PR tree-optimization/61517
11554 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11555 whose rhs's first tree is the source expression instead of the
11556 expression itself.
11557 (find_bswap_or_nop): Likewise.
11558 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11559 gimple stmt whose rhs's first tree is the source. In the memory source
11560 case, move the stmt to be replaced close to one of the original load to
11561 avoid the problem of a store between the load and the stmt's original
11562 location.
11563 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11564 signature.
11565
11566 2014-06-18 Andreas Schwab <schwab@suse.de>
11567
11568 PR rtl-optimization/54555
11569 * postreload.c (move2add_use_add2_insn): Substitute
11570 STRICT_LOW_PART only if it is cheaper.
11571
11572 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11573
11574 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11575 Do not use unspec as call operand. Use memory_operand instead of
11576 memory_nox32_operand and add "m" operand constraint. Disable
11577 pattern for TARGET_X32.
11578 (*sibcall_pop_memory): Ditto.
11579 (*sibcall_value_memory): Ditto.
11580 (*sibcall_value_pop_memory): Ditto.
11581 (sibcall peepholes): Merge SImode and DImode patterns using
11582 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11583 Disable pattern for TARGET_X32. Check if eliminated register is
11584 really dead after call insn. Generate call RTX without unspec operand.
11585 (sibcall_value peepholes): Ditto.
11586 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11587 instead of memory_nox32_operand. Check if eliminated register is
11588 really dead after call insn. Generate call RTX without unspec operand.
11589 (sibcall_value_pop peepholes): Ditto.
11590 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11591
11592 2014-06-18 Terry Guo <terry.guo@arm.com>
11593
11594 PR target/61544
11595 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11596 reach the head.
11597
11598 2014-06-18 Olivier Hainque <hainque@adacore.com>
11599
11600 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11601 memorization of the end of block source location.
11602 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11603 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11604 end source location info we have on the block entry/exit code we
11605 generate.
11606
11607 2014-06-18 Richard Biener <rguenther@suse.de>
11608
11609 * common.opt (fssa-phiopt): New option.
11610 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11611 but not with -Og.
11612 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11613 * doc/invoke.texi (-fssa-phiopt): Document.
11614
11615 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11616
11617 * genattrtab.c (n_bypassed): New variable.
11618 (process_bypasses): Initialise n_bypassed.
11619 Count number of bypassed reservations.
11620 (make_automaton_attrs): Allocate space for bypassed reservations
11621 rather than number of bypasses.
11622
11623 2014-06-18 Richard Biener <rguenther@suse.de>
11624
11625 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11626 we propagated anything.
11627 (substitute_and_fold_dom_walker::before_dom_children): Something
11628 changed if we propagated into PHI arguments.
11629 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11630 we removed a stmt.
11631
11632 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11633
11634 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11635 vector case.
11636 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11637 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11638 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11639 Introduces alternative way of loads group permutaions.
11640 (vect_transform_grouped_load): Try alternative way of permutations.
11641
11642 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11643
11644 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11645 changed in ORT_TARGET region, don't jump to do_outer.
11646 (struct gimplify_adjust_omp_clauses_data): New type.
11647 (gimplify_adjust_omp_clauses_1): Adjust for data being
11648 a struct gimplify_adjust_omp_clauses_data pointer instead
11649 of tree *. Pass pre_p as a new argument to
11650 lang_hooks.decls.omp_finish_clause hook.
11651 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11652 splay_tree_foreach to pass both list_p and pre_p.
11653 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11654 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11655 gimplify_adjust_omp_clauses callers.
11656 * langhooks.c (lhd_omp_finish_clause): New function.
11657 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11658 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11659 * langhooks.h (struct lang_hooks_for_decls): Add a new
11660 gimple_seq * argument to omp_finish_clause hook.
11661 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11662 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11663 (scan_omp_parallel, lower_omp_for): When adding
11664 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11665 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11666 * tree-nested.c (convert_nonlocal_omp_clauses,
11667 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11668 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11669
11670 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11671
11672 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11673 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11674
11675 2014-06-17 Xinliang David Li <davidxl@google.com>
11676
11677 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11678 * passes.c (pass_init_dump_file): Do not set initialize
11679 flag to false unconditionally.
11680
11681 2014-06-17 Richard Biener <rguenther@suse.de>
11682
11683 * genopinit.c (main): Use vec<>::qsort method.
11684 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11685 Likewise.
11686 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11687
11688 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11689
11690 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11691 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11692 (mips_move_to_gpr_cost): Remove ST_REGS case.
11693 (mips_move_from_gpr_cost): Likewise.
11694 (mips_register_move_cost): Likewise.
11695 (mips_secondary_reload_class): Likewise.
11696
11697 2014-06-17 Richard Biener <rguenther@suse.de>
11698
11699 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11700 (pass_all_optimizations): Move 3rd copy-prop pass from after
11701 fre to before ifcombine/phiopt.
11702
11703 2014-06-17 Richard Biener <rguenther@suse.de>
11704
11705 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11706 and allow all blocks to be forwarders.
11707
11708 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11709
11710 PR target/61483
11711 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11712 variable 'size'; calculate 'size' right in the front; use
11713 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11714 pcum->aapcs_stack_words.
11715
11716 2014-06-17 Nick Clifton <nickc@redhat.com>
11717
11718 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11719 (umulhi3, mulsidi3, umulsidi3): Likewise.
11720
11721 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11722
11723 PR middle-end/61508
11724 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11725 check for section name.
11726
11727 2014-06-17 Richard Biener <rguenther@suse.de>
11728
11729 * tree-ssa-propagate.c: Include domwalk.h.
11730 (substitute_and_fold): Outline main worker into a domwalker ...
11731 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11732 Schedule stmts we can fully propagate for removal. Remove
11733 poor-mans DCE.
11734 (substitute_and_fold): Apply a dominator walk to perform
11735 substitution. Process stmts scheduled for removal here.
11736
11737 2014-06-17 Richard Biener <rguenther@suse.de>
11738
11739 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11740 of PHI node moving.
11741
11742 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11743
11744 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11745 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11746 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11747 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11748 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11749 TARGET_HARD_FLOAT.
11750 (get_fpscr) : Likewise.
11751
11752 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11753
11754 PR rtl-optimization/61325
11755 * lra-constraints.c (valid_address_p): Add forward declaration.
11756 (simplify_operand_subreg): Check address validity before and after
11757 alter_reg of memory subreg.
11758
11759 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11760
11761 * config/i386/i386.c (decide_alg): Correctly handle
11762 maximum size of stringop algorithm.
11763
11764 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11765
11766 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11767
11768 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11769
11770 PR rtl-optimization/61522
11771 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11772
11773 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11774
11775 Revert:
11776 * symtab.c (symtab_node::reset_section): New method.
11777 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11778 for localization.
11779 * cgraph.h (reset_section): Declare.
11780 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11781 do not consider comdat locals.
11782 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11783 for new symbol.
11784 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11785 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11786 reset sections of symbols dragged out of the comdats.
11787 (function_and_variable_visibility): Reset sections of
11788 localized symbols.
11789
11790 2014-06-16 Richard Biener <rguenther@suse.de>
11791
11792 PR tree-optimization/61482
11793 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11794 [-INF(OVF), +INF(OVF)] range.
11795
11796 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11797
11798 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11799 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11800 handling 32-bit multiplication.
11801
11802 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11803
11804 PR middle-end/61430
11805 * lra-lives.c (process_bb_lives): Skip creating copy during
11806 insn scan when src/dest has constrained to same regno.
11807
11808 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11809
11810 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11811 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11812
11813 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11814
11815 * asan.c (check_func): New function.
11816 (maybe_create_ssa_name): Likewise.
11817 (build_check_stmt_with_calls): Likewise.
11818 (use_calls_p): Likewise.
11819 (report_error_func): Change interface.
11820 (build_check_stmt): Allow non-integer lengths; add support
11821 for new parameter.
11822 (asan_instrument): Likewise.
11823 (instrument_mem_region_access): Moved code to build_check_stmt.
11824 (instrument_derefs): Likewise.
11825 (instrument_strlen_call): Likewise.
11826 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11827 * doc/invoke.texi: Describe new parameter.
11828 * params.def: Define new parameter.
11829 * params.h: Likewise.
11830 * sanitizer.def: Describe new builtins.
11831
11832 2014-06-16 Richard Biener <rguenther@suse.de>
11833
11834 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11835 Make all defs available at the end.
11836 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11837
11838 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11839
11840 PR plugins/45078
11841 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11842
11843 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11844
11845 PR bootstrap/61516
11846 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11847 initialization. Replace remaining use of uid.
11848
11849 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11850
11851 * c-family/c-common.c (handle_tls_model_attribute): Use
11852 set_decl_tls_model.
11853 * c-family/c-common.c (handle_tls_model_attribute): Use
11854 set_decl_tls_model.
11855 * cgraph.h (struct varpool_node): Add tls_model.
11856 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11857 * tree.h (DECL_TLS_MODEL): Update.
11858 (DECL_THREAD_LOCAL_P): Check that variable is static.
11859 (decl_tls_model): Declare.
11860 (set_decl_tls_model): Declare.
11861 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11862 set symbol prorperties.
11863 (get_emutls_init_templ_addr): Cleanup.
11864 (new_emutls_decl): Update.
11865 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11866 (lto_input_varpool_node): Likewise.
11867 * lto-streamer-out.c (hash_tree): Likewise.
11868 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11869 not stream DECL_TLS_MODEL.
11870 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11871 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11872
11873 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11874
11875 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11876
11877 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11878
11879 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11880 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11881 lists.
11882 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11883 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11884 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11885 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11886 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11887 (df_get_artificial_defs, df_get_artificial_uses)
11888 (df_single_def, df_single_use): Update accordingly.
11889 (df_refs_chain_dump): Take the first element in a linked list as
11890 parameter, rather than a pointer to an array of pointers.
11891 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11892 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11893 (df_chain_create_bb_process_use): Likewise.
11894 (df_md_bb_local_compute_process_def): Likewise.
11895 * fwprop.c (process_defs, process_uses): Likewise.
11896 (register_active_defs, update_uses): Likewise.
11897 (forward_propagate_asm): Update for new df_ref linking.
11898 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11899 (df_null_ref_rec, df_null_mw_rec): Likewise.
11900 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11901 explicitly.
11902 (df_scan_free_bb_info): Remove check for null artificial_defs.
11903 (df_install_ref_incremental): Adjust for new df_ref linking.
11904 Use a single-element insertion rather than a full sort.
11905 (df_ref_chain_delete_du_chain): Take the first element
11906 in a linked list as parameter, rather than a pointer to an array of
11907 pointers.
11908 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11909 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11910 (df_insn_info_delete): Remove check for null defs and call to
11911 df_scan_free_mws_vec.
11912 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11913 null rather than df_null_*_rec.
11914 (df_insn_rescan_debug_internal): Likewise, and update null
11915 checks in the same way. Remove check for null defs.
11916 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11917 Move a single element rather doing a full sort.
11918 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11919 linking.
11920 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11921 Initialize df_ref and df_mw_hardreg lists to null rather than
11922 df_null_*_rec.
11923 (df_ref_compare): Take df_refs as parameter, transferring the
11924 old interface to...
11925 (df_ref_ptr_compare): ...this new function.
11926 (df_sort_and_compress_refs): Update accordingly.
11927 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11928 old interface to...
11929 (df_mw_ptr_compare): ...this new function.
11930 (df_sort_and_compress_mws): Update accordingly.
11931 (df_install_refs, df_install_mws): Return a linked list rather than
11932 an array of pointers.
11933 (df_refs_add_to_chains): Assert that old lists are empty rather
11934 than freeing them.
11935 (df_insn_refs_verify): Don't handle null defs speciailly.
11936 * web.c (union_match_dups): Update for new df_ref linking.
11937
11938 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11939
11940 * df.h (df_ref_create, df_ref_remove): Delete.
11941 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11942 (df_ref_remove): Likewise.
11943
11944 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11945
11946 * df.h (df_single_def, df_single_use): New functions.
11947 * ira.c (find_moveable_pseudos): Use them.
11948
11949 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11950
11951 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11952 * df-problems.c (df_note_bb_compute): Use it.
11953 * regstat.c (regstat_bb_compute_ri): Likewise.
11954
11955 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11956
11957 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11958 * cse.c (cse_extended_basic_block): Use them.
11959 * dce.c (mark_artificial_use): Likewise.
11960 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11961 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11962 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11963 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11964 (df_simulate_initialize_backwards): Likewise.
11965 (df_simulate_finalize_backwards): Likewise.
11966 (df_simulate_initialize_forwards): Likewise.
11967 (df_md_simulate_artificial_defs_at_top): Likewise.
11968 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11969 * regrename.c (init_rename_info): Likewise.
11970 * regstat.c (regstat_bb_compute_ri): Likewise.
11971 (regstat_bb_compute_calls_crossed): Likewise.
11972
11973 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11974
11975 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11976 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11977 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11978 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11979 * combine.c (create_log_links): Likewise.
11980 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11981 (try_eliminate_compare): Likewise.
11982 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11983 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11984 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11985 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11986 (word_dce_process_block, dce_process_block): Likewise.
11987 * ddg.c (def_has_ccmode_p): Likewise.
11988 * df-core.c (df_bb_regno_first_def_find): Likewise.
11989 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11990 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11991 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11992 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11993 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11994 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11995 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11996 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11997 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11998 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11999 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12000 * fwprop.c (local_ref_killed_between_p): Likewise.
12001 (all_uses_available_at, free_load_extend): Likewise.
12002 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12003 * hw-doloop.c (scan_loop): Likewise.
12004 * ifcvt.c (dead_or_predicable): Likewise.
12005 * init-regs.c (initialize_uninitialized_regs): Likewise.
12006 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12007 (process_bb_node_lives): Likewise.
12008 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12009 (find_moveable_pseudos): Likewise.
12010 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12011 * recog.c (peep2_find_free_register): Likewise.
12012 * ree.c (get_defs): Likewise.
12013 * regstat.c (regstat_bb_compute_ri): Likewise.
12014 (regstat_bb_compute_calls_crossed): Likewise.
12015 * sched-deps.c (find_inc, find_mem): Likewise.
12016 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12017 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12018 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12019 (prepare_shrink_wrap): Likewise.
12020 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12021 * web.c (union_defs, pass_web::execute): Likewise.
12022 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12023 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12024
12025 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12026
12027 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12028 to inheritance pseudos.
12029 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12030
12031 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12032
12033 PR target/61415
12034 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12035 (BU_MISC_2): Rename to ...
12036 (BU_LDBL128_2): ... this.
12037 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12038 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12039 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12040 RS6000_BTM_LDBL128.
12041 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12042 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12043 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12044 (unpacktf_1): Likewise.
12045 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12046 (__builtin_longdouble_dw1): Likewise.
12047 * doc/sourcebuild.texi (longdouble128): Document.
12048
12049 2014-06-13 Jeff Law <law@redhat.com>
12050
12051 PR rtl-optimization/61094
12052 PR rtl-optimization/61446
12053 * ree.c (combine_reaching_defs): Get the mode for the copy from
12054 the extension insn rather than the defining insn.
12055
12056 2014-06-13 Dehao Chen <dehao@google.com>
12057
12058 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12059
12060 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12061
12062 * doc/install.texi (--enable-linker-plugin-configure-flags)
12063 (--enable-linker-plugin-flags): Document new flags.
12064
12065 2014-06-13 Martin Jambor <mjambor@suse.cz>
12066
12067 PR ipa/61186
12068 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12069 cache_token if returning early.
12070
12071 2014-06-13 Nick Clifton <nickc@redhat.com>
12072
12073 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12074 requested alignment is active.
12075 (LABEL_ALIGN): Likewise.
12076 (LOOP_ALIGN): Likewise.
12077
12078 2014-06-13 Richard Biener <rguenther@suse.de>
12079
12080 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12081 Rewrite to propagate the VN result into all uses where
12082 possible and to remove stmts becoming dead because of that.
12083 (eliminate): Generalize stmt removal handling, remove in
12084 reverse dominator order to support proper debug stmt
12085 generation. Update stmts before removing stmts.
12086 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12087
12088 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12089
12090 PR tree-optimization/61375
12091 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12092 symbolic number cannot be represented in an uint64_t.
12093 (find_bswap_or_nop_1): Likewise.
12094
12095 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12096
12097 * symtab.c (symtab_node::reset_section): New method.
12098 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12099 for localization.
12100 * cgraph.h (reset_section): Declare.
12101 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12102 do not consider comdat locals.
12103 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12104 for new symbol.
12105 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12106 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12107 reset sections of symbols dragged out of the comdats.
12108 (function_and_variable_visibility): Reset sections of
12109 localized symbols.
12110
12111 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12112
12113 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12114 to use symtab and decl_binds_to_current_def_p
12115 * tree-vectorizer.c (increase_alignment): Increase alignment
12116 of alias target, too.
12117
12118 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12119
12120 PR middle-end/61486
12121 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12122 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12123 if outer combined construct is distribute.
12124 (gimplify_omp_for): For OMP_DISTRIBUTE set
12125 gimplify_omp_ctxp->distribute.
12126 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12127 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12128 mapping into decl map.
12129
12130 2014-06-12 Jason Merrill <jason@redhat.com>
12131
12132 * common.opt (fabi-version): Change default to 0.
12133
12134 2014-06-12 Jason Merrill <jason@redhat.com>
12135
12136 * toplev.c (process_options): Reject -fabi-version=1.
12137
12138 2014-06-12 Jeff Law <law@redhat.com>
12139
12140 PR tree-optimization/61009
12141 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12142 value when we stop processing a block due to problematic PHIs.
12143
12144 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12145
12146 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12147 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12148 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12149 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12150 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12151 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12152 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12153 are not in the spec.
12154
12155 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12156
12157 PR target/59843
12158 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12159 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12160 Support V1DFmode.
12161
12162 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12163
12164 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12165
12166 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12167
12168 PR target/61443
12169 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12170 loading from address spaces.
12171
12172 2014-06-12 Martin Liska <mliska@suse.cz>
12173
12174 PR ipa/61462
12175 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12176 statement is reachable.
12177
12178 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12179
12180 * symtab.c (section_hash): New hash.
12181 (symtab_unregister_node): Clear section before freeing.
12182 (hash_section_hash_entry): New haser.
12183 (eq_sections): New function.
12184 (symtab_node::set_section_for_node): New method.
12185 (set_section_1): Update.
12186 (symtab_node::set_section): Take string instead of tree as parameter.
12187 (symtab_resolve_alias): Update.
12188 * cgraph.h (section_hash_entry_d): New structure.
12189 (section_hash_entry): New typedef.
12190 (cgraph_node): Change comdat_group_ to x_comdat_group,
12191 change section_ to x_section and turn into section_hash_entry;
12192 update accestors; put set_section_for_node offline.
12193 * tree.c (decl_section_name): Turn into string.
12194 (set_decl_section_name): Change parameter to be string.
12195 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12196 * sdbout.c (sdbout_one_type): Update.
12197 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12198 * varasm.c (IN_NAMED_SECTION, get_named_section,
12199 resolve_unique_section, hot_function_section, get_named_text_section,
12200 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12201 make_decl_rtl, default_unique_section): Update.
12202 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12203 (c6x_elf_unique_section): Update.
12204 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12205 * config/pa/pa.c (pa_function_section): Update.
12206 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12207 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12208 * config/arc/arc.c (arc_in_small_data_p): Update.
12209 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12210 * config/mcore/mcore.c (mcore_unique_section): Update.
12211 * config/mips/mips.c (mips16_build_function_stub): Update.
12212 (mips16_build_call_stub): Update.
12213 (mips_function_rodata_section): Update.
12214 (mips_in_small_data_p): Update.
12215 * config/score/score.c (score_in_small_data_p): Update.
12216 * config/rx/rx.c (rx_in_small_data): Update.
12217 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12218 (rs6000_xcoff_asm_named_section): Update.
12219 (rs6000_xcoff_unique_section): Update.
12220 * config/frv/frv.c (frv_string_begins_with): Update.
12221 (frv_in_small_data_p): Update.
12222 * config/v850/v850.c (v850_encode_data_area): Update.
12223 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12224 (bfin_handle_l1_data_attribute): Update.
12225 (bfin_handle_l2_attribute): Update.
12226 * config/mep/mep.c (mep_unique_section): Update.
12227 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12228 Update.
12229 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12230 (h8300_handle_tiny_data_attribute): Update.
12231 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12232 (m32r_in_small_data_p): Update.
12233 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12234 * config/i386/i386.c (ix86_in_large_data_p): Update.
12235 * config/i386/winnt.c (i386_pe_unique_section): Update.
12236 * config/darwin.c (darwin_function_section): Update.
12237 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12238 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12239 (new_emutls_decl): Update.
12240 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12241 input_varpool_node): Update.
12242 (ead_string_cst): Turn to ...
12243 (read_string): ... this one.
12244 * dwarf2out.c (secname_for_decl): Update.
12245 * asan.c (asan_protect_global): Update.
12246
12247 2014-06-11 DJ Delorie <dj@redhat.com>
12248
12249 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12250 cache lines.
12251 * config/rx/rx.c (rx_option_override): Likewise.
12252 (rx_align_for_label): Likewise.
12253
12254 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12255
12256 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12257
12258 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12259 prototype.
12260
12261 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12262
12263 * common.md: New file.
12264 * doc/md.texi: Update description of generic, machine-independent
12265 constraints.
12266 * config/s390/constraints.md (e): Delete.
12267 * Makefile.in (md_file): Include common.md.
12268 * config/m32c/t-m32c (md_file): Likewise.
12269 * genpreds.c (general_mem): New array.
12270 (generic_constraint_letters): Remove constraints now defined by
12271 common.md.
12272 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12273 Allow the first character to be '<' or '>' as well.
12274 * genoutput.c (general_mem): New array.
12275 (indep_constraints): Remove constraints now defined by common.md.
12276 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12277 Remove special handling of 'm'.
12278 * ira-costs.c (record_reg_classes): Remove special handling of
12279 constraints now defined by common.md.
12280 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12281 * ira-lives.c (single_reg_class): Likewise.
12282 (ira_implicitly_set_insn_hard_regs): Likewise.
12283 * lra-constraints.c (reg_class_from_constraints): Likewise.
12284 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12285 * postreload.c (reload_cse_simplify_operands): Likewise.
12286 * reload.c (push_secondary_reload, scratch_reload_class)
12287 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12288 * reload1.c (maybe_fix_stack_asms): Likewise.
12289 * targhooks.c (default_secondary_reload): Likewise.
12290 * stmt.c (parse_output_constraint): Likewise.
12291 * recog.c (preprocess_constraints): Likewise.
12292 (constrain_operands, peep2_find_free_register): Likewise.
12293 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12294 must be handled specially.
12295
12296 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12297
12298 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12299 * genpreds.c (have_const_dbl_constraints): Delete.
12300 (add_constraint): Don't set it.
12301 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12302 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12303 constraints using the lookup_constraint logic.
12304 * ira-lives.c (single_reg_class): Likewise.
12305 * ira.c (ira_setup_alts): Likewise.
12306 * lra-constraints.c (process_alt_operands): Likewise.
12307 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12308 * reload.c (find_reloads): Likewise.
12309
12310 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12311
12312 * genpreds.c (const_int_start, const_int_end): New variables.
12313 (choose_enum_order): Output CONST_INT constraints before memory
12314 constraints.
12315 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12316 Add CT_CONST_INT.
12317 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12318 * ira.c (ira_setup_alts): Likewise.
12319 * lra-constraints.c (process_alt_operands): Likewise.
12320 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12321 * reload.c (find_reloads): Likewise.
12322
12323 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12324
12325 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12326 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12327 * recog.c (preprocess_constraints): Update accordingly.
12328
12329 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12330
12331 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12332 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12333 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12334 * genpreds.c (print_type_tree): New function.
12335 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12336 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12337 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12338 Write out enum constraint_type and get_constraint_type.
12339 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12340 constraint_num rather than a constraint string.
12341 (satisfies_address_constraint_p): Likewise.
12342 (reg_class_from_constraints): Avoid old constraint macros.
12343 (process_alt_operands, process_address_1): Likewise.
12344 (curr_insn_transform): Likewise.
12345 * ira-costs.c (record_reg_classes): Likewise.
12346 (record_operand_costs): Likewise.
12347 * ira-lives.c (single_reg_class): Likewise.
12348 (ira_implicitly_set_insn_hard_regs): Likewise.
12349 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12350 * postreload.c (reload_cse_simplify_operands): Likewise.
12351 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12352 (constrain_operands, peep2_find_free_register): Likewise.
12353 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12354 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12355 * reload1.c (maybe_fix_stack_asms): Likewise.
12356 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12357 * targhooks.c (default_secondary_reload): Likewise.
12358 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12359 to EXTRA_CONSTRAINT_STR.
12360 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12361
12362 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12363
12364 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12365 (write_constraint_satisfied_p_array): ...this new function.
12366 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12367 an array.
12368 (write_insn_preds_c): Update accordingly.
12369
12370 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12371
12372 * genpreds.c (write_lookup_constraint): Rename to...
12373 (write_lookup_constraint_1): ...this.
12374 (write_lookup_constraint_array): New function.
12375 (write_tm_preds_h): Define lookup_constraint as an inline function
12376 that uses write_lookup_constraint_array where possible.
12377 (write_insn_preds_c): Update for the changes above.
12378
12379 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12380
12381 * doc/md.texi (regclass_for_constraint): Rename to...
12382 (reg_class_for_constraint): ...this.
12383 * genpreds.c (num_constraints, enum_order, register_start)
12384 (register_end, satisfied_start, memory_start, memory_end)
12385 (address_start, address_end): New variables.
12386 (add_constraint): Count the number of constraints.
12387 (choose_enum_order): New function.
12388 (write_enum_constraint_num): Iterate over enum_order.
12389 (write_regclass_for_constraint): Rename to...
12390 (write_reg_class_for_constraint_1): ...this and update output
12391 accordingly.
12392 (write_constraint_satisfied_p): Rename to...
12393 (write_constraint_satisfied_p_1): ...this and update output
12394 accordingly. Do nothing if all extra constraints are register
12395 constraints.
12396 (write_insn_extra_memory_constraint): Delete.
12397 (write_insn_extra_address_constraint): Delete.
12398 (write_range_function): New function.
12399 (write_tm_preds_h): Define constraint_satisfied_p and
12400 reg_class_for_constraint as inline functions that do a range check
12401 before calling the out-of-line function. Use write_range_function
12402 to implement insn_extra_{register,memory,address}_constraint,
12403 the first of which is new.
12404 (write_insn_preds_c): Update after above changes to write_* functions.
12405 (main): Call choose_enum_order.
12406
12407 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12408
12409 PR tree-optimization/61306
12410 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12411 expression instead of its size.
12412 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12413 false to prevent optimization when the result is unpredictable due to
12414 arithmetic right shift of signed type with highest byte is set.
12415 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12416 (init_symbolic_number): Likewise.
12417 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12418 when the result is unpredictable due to sign extension.
12419
12420 2014-06-11 Terry Guo <terry.guo@arm.com>
12421
12422 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12423 (*thumb1_addsi3): Ditto.
12424 (*thumb_subdi3): Ditto.
12425 (thumb1_subsi3_insn): Ditto.
12426 (*thumb_mulsi3): Ditto.
12427 (*thumb_mulsi3_v6): Ditto.
12428 (*thumb1_andsi3_insn): Ditto.
12429 (thumb1_bicsi3): Ditto.
12430 (*thumb1_iorsi3_insn): Ditto.
12431 (*thumb1_xorsi3_insn): Ditto.
12432 (*thumb1_ashlsi3): Ditto.
12433 (*thumb1_ashrsi3): Ditto.
12434 (*thumb1_lshrsi3): Ditto.
12435 (*thumb1_rotrsi3): Ditto.
12436 (*thumb1_negdi2): Ditto.
12437 (*thumb1_negsi2): Ditto.
12438 (*thumb1_abssi2): Ditto.
12439 (*thumb1_neg_abssi2): Ditto.
12440 (*thumb1_one_cmplsi2): Ditto.
12441 (*thumb1_zero_extendhisi2): Ditto.
12442 (*thumb1_zero_extendqisi2): Ditto.
12443 (*thumb1_zero_extendqisi2_v6): Ditto.
12444 (thumb1_extendhisi2): Ditto.
12445 (thumb1_extendqisi2): Ditto.
12446 (*thumb1_movdi_insn): Ditto.
12447 (*thumb1_movsi_insn): Ditto.
12448 (*thumb1_movhi_insn): Ditto.
12449 (thumb_movhi_clobber): Ditto.
12450 (*thumb1_movqi_insn): Ditto.
12451 (*thumb1_movhf): Ditto.
12452 (*thumb1_movsf_insn): Ditto.
12453 (*thumb_movdf_insn): Ditto.
12454 (movmem12b): Ditto.
12455 (movmem8b): Ditto.
12456 (cbranchqi4): Ditto.
12457 (cbranchsi4_insn): Ditto.
12458 (cbranchsi4_scratch): Ditto.
12459 (*negated_cbranchsi4): Ditto.
12460 (*tbit_cbranch): Ditto.
12461 (*tlobits_cbranch): Ditto.
12462 (*tstsi3_cbranch): Ditto.
12463 (*cbranchne_decr1): Ditto.
12464 (*addsi3_cbranch): Ditto.
12465 (*addsi3_cbranch_scratch): Ditto.
12466 (*thumb_cmpdi_zero): Ditto.
12467 (cstoresi_eq0_thumb1): Ditto.
12468 (cstoresi_ne0_thumb1): Ditto.
12469 (*cstoresi_eq0_thumb1_insn): Ditto.
12470 (*cstoresi_ne0_thumb1_insn): Ditto.
12471 (cstoresi_nltu_thumb1): Ditto.
12472 (cstoresi_ltu_thumb1): Ditto.
12473 (thumb1_addsi3_addgeu): Ditto.
12474 (*thumb_jump): Ditto.
12475 (*call_reg_thumb1_v5): Ditto.
12476 (*call_reg_thumb1): Ditto.
12477 (*call_value_reg_thumb1_v5): Ditto.
12478 (*call_value_reg_thumb1): Ditto.
12479 (*call_insn): Ditto.
12480 (*call_value_insn): Ditto.
12481 (thumb1_casesi_internal_pic): Ditto.
12482 (thumb1_casesi_dispatch): Ditto.
12483 (*thumb1_indirect_jump): Ditto.
12484 (prologue_thumb1_interwork): Ditto.
12485 (*epilogue_insns): Ditto.
12486 (consttable_1): Ditto.
12487 (consttable_2): Ditto.
12488 (tablejump): Ditto.
12489 (*thumb1_tablejump): Ditto.
12490 (thumb_eh_return): Ditto.
12491 (define_peephole2): Two of them are thumb1 only and got moved into
12492 new file thumb1.md.
12493 (define_split): Six of them are thumb1 only and got moved into new
12494 file thumb1.md.
12495 * config/arm/thumb1.md: New file comprised of above thumb1 only
12496 patterns.
12497
12498 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12499
12500 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12501 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12502 dependencies.
12503 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12504 (aarch64_crc_builtin_datum): New struct.
12505 (aarch64_crc_builtin_data): New.
12506 (aarch64_init_crc32_builtins): New function.
12507 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12508 (aarch64_crc32_expand_builtin): New.
12509 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12510 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12511 __ARM_FEATURE_CRC32 when appropriate.
12512 (TARGET_CRC32): Define.
12513 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12514 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12515 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12516 (aarch64_<crc_variant>): New pattern.
12517 * config/aarch64/arm_acle.h: New file.
12518 * config/aarch64/iterators.md (CRC): New int iterator.
12519 (crc_variant, crc_mode): New int attributes.
12520 * doc/aarch64-acle-intrinsics.texi: New file.
12521 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12522 Include aarch64-acle-intrinsics.texi.
12523
12524 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12525
12526 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12527 check for stores group of length 3.
12528 (vect_permute_store_chain): New permutations for stores group of
12529 length 3.
12530 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12531 of vec_perm_shuffle for the new permutations.
12532
12533 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12534
12535 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12536 table rewriting temporarily on targets not supporting ONE_ONLY.
12537
12538 2014-06-11 Richard Biener <rguenther@suse.de>
12539
12540 PR middle-end/61437
12541 Revert
12542 2014-06-04 Richard Biener <rguenther@suse.de>
12543
12544 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12545 TREE_PUBLIC and DECL_EXTERNAL decls.
12546
12547 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12548
12549 * varasm.c (set_implicit_section): New function.
12550 (resolve_unique_section): Use it to set implicit section
12551 for aliases, too.
12552 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12553 (default_function_section): Likewise.
12554 (decl_binds_to_current_def_p): Constify argument.
12555 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12556 * asan.c (asan_protect_global): Use
12557 symtab_get_node (decl)->implicit_section.
12558 * symtab.c (dump_symtab_base): Dump implicit sections.
12559 (verify_symtab_base): Verify sanity of sectoins and comdats.
12560 (symtab_resolve_alias): Alias share the section of its target.
12561 (set_section_1): New function.
12562 (symtab_node::set_section): Move here, recurse to aliases.
12563 (verify_symtab): Check for duplicated symtab lists.
12564 * tree-core.h (implicit_section_name_p): Remove.
12565 * tree-vect-data-refs.c: Include varasm.h.
12566 (vect_can_force_dr_alignment_p): Fix conditional on when
12567 decl bints to current definition; use
12568 symtab_get_node (decl)->implicit_section.
12569 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12570 * cgraph.h (struct symtab_node): Add implicit_section.
12571 (set_section): Rename to ...
12572 (set_section_for_node): ... this one.
12573 (set_section): Declare.
12574 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12575 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12576 input_overwrite_node, input_varpool_node): Stream implicit_section.
12577 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12578 removal; it will fail in LTO.
12579
12580 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12581
12582 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12583 Change second alternative type to f_mcr.
12584 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12585 and 12th alternatives' types to f_mcr and f_mrc.
12586 (*movdi_aarch64): Same for 12th and 13th alternatives.
12587 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12588 (aarch64_movtilow_tilow): Change type to fmov.
12589
12590 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12591
12592 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12593 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12594
12595 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12596
12597 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12598 New expander.
12599 (aarch64_sqrdmulh_lane<mode>): Likewise.
12600 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12601 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12602 (aarch64_sqdmulh_laneq<mode>): New expander.
12603 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12604 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12605 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12606 (aarch64_sqdmulh_lane<mode>): New expander.
12607 (aarch64_sqrdmulh_lane<mode>): Likewise.
12608 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12609 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12610 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12611 (aarch64_sqdmlal_laneq<mode>): Likewise.
12612 (aarch64_sqdmlsl_lane<mode>): Likewise.
12613 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12614 (aarch64_sqdmlal2_lane<mode>): Likewise.
12615 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12616 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12617 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12618 (aarch64_sqdmull_lane<mode>): Likewise.
12619 (aarch64_sqdmull_laneq<mode>): Likewise.
12620 (aarch64_sqdmull2_lane<mode>): Likewise.
12621 (aarch64_sqdmull2_laneq<mode>): Likewise.
12622
12623 2014-06-10 Richard Biener <rguenther@suse.de>
12624
12625 PR tree-optimization/61438
12626 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12627 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12628 insertion of IVs if running PRE.
12629 (eliminate): Adjust.
12630 (pass_pre::execute): Likewise.
12631 (pass_fre::execute): Likewise.
12632
12633 2014-06-10 Richard Biener <rguenther@suse.de>
12634
12635 PR middle-end/61456
12636 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12637 Do not use the main variant for the type comparison.
12638 (ncr_compar): Likewise.
12639 (nonoverlapping_component_refs_p): Likewise.
12640
12641 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12642
12643 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12644 REG_CFA_RESTORE mode.
12645
12646 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12647
12648 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12649 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12650 expand_vec_perm_pblendv.
12651
12652 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12653
12654 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12655 available.
12656 Simplify description of __crc32d and __crc32cd intrinsics.
12657 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12658 availability.
12659
12660 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12661
12662 PR lto/61334
12663 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12664 * config.in: Regenerate.
12665 * configure: Likewise.
12666
12667 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12668
12669 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12670 and public vars.
12671 (intersect_static_var_sets): Remove.
12672 (propagate): Do not prune local statics.
12673
12674 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12675
12676 PR fortran/60928
12677 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12678 Set lastprivate_firstprivate even if omp_private_outer_ref
12679 langhook returns true.
12680 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12681 langhook, call unshare_expr on new_var and call
12682 build_outer_var_ref to get the last argument.
12683
12684 2014-06-10 Marek Polacek <polacek@redhat.com>
12685
12686 PR c/60988
12687 * doc/extend.texi: Add cindex for transparent_union.
12688
12689 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12690
12691 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12692 init_symbolic_number ().
12693
12694 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12695
12696 PR middle-end/61141
12697 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12698 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12699 (verify_rtl_sharing): Likewise.
12700
12701 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12702
12703 PR c++/54442
12704 * tree.c (build_qualified_type): Use a canonical type for
12705 TYPE_CANONICAL.
12706
12707 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12708
12709 * config/arm/arm-modes.def: Remove XFmode.
12710
12711 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12712
12713 PR target/61062
12714 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12715 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12716 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12717 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12718 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12719 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12720 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12721 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12722 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12723
12724 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12725
12726 * tree-core.h (tree_decl_with_vis): Remove section_name.
12727
12728 2014-06-09 Kito Cheng <kito@0xlab.org>
12729
12730 * ira.c (ira): Don't call init_caller_save if LRA enabled
12731 since LRA use its own infrastructure to handle that.
12732
12733 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12734
12735 * symtab.c (dump_symtab_base): Update dumping.
12736 (symtab_make_decl_local): Clear only DECL_COMDAT.
12737 * tree-vect-data-refs.c (Check that variable is static before
12738 tampering with sections.
12739 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12740 (cgraph_create_virtual_clone): Likewise.
12741 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12742 (decl_section_name, set_decl_section_name): New accessors.
12743 (find_decls_types_r): Do not walk section name
12744 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12745 (decl_comdat_group, decl_comdat_group_id): Constify.
12746 (decl_section_name, set_decl_section_name): Update.
12747 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12748 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12749 (cgraph_make_node_local_1): Clear section and comdat group.
12750 * cgraph.h (set_comdat_group): Sanity check.
12751 (get_section, set_section): New.
12752 * ipa-comdats.c (ipa_comdats): Use get_section.
12753 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12754 * lto-streamer-out.c: Do not follow section names.
12755 * c-family/c-common.c (handle_section_attribute): Update.
12756 * lto-cgraph.c (lto_output_node): Output section.
12757 (lto_output_varpool_node): Likewise.
12758 (read_comdat_group): Rename to ...
12759 (read_identifier): ... this one.
12760 (read_string_cst): New function.
12761 (input_node, input_varpool_node): Input section names.
12762 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12763 (new_emutls_decl): Update.
12764 (secname_for_decl): Check section names only of static vars.
12765 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12766 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12767 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12768 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12769 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12770 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12771 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12772 * config/v850/v850.c (v850_insert_attributes): Likewise.
12773 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12774 Likewise.
12775 (h8300_handle_tiny_data_attribute): Likewise.
12776 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12777 (bfin_handle_l2_attribute): Likewise.
12778
12779 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12780
12781 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12782 remove static initializer.
12783
12784 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12785
12786 * varasm.c (use_blocks_for_decl_p): Check symbol table
12787 instead of alias attribute.
12788 (place_block_symbol): Recurse on aliases.
12789
12790 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12791
12792 * ipa-visibility.c: Include varasm.h
12793 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12794
12795 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12796
12797 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12798 outputting aliases.
12799
12800 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12801
12802 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12803 from test_insn into GGC space escape via SET_SRC.
12804
12805 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12806
12807 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12808 call statement, if any.
12809 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12810 statements, if any. Tidy up.
12811
12812 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12813
12814 PR target/61431
12815 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12816 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12817 handles swapping the two 64-bit double words on little endian
12818 systems. Include V1TImode and optionally TImode in VSX_LE so that
12819 these types are properly swapped. Change all of the insns and
12820 splits that do the 64-bit swaps to use VSX_LE.
12821 (vsx_le_perm_load_<mode>): Likewise.
12822 (vsx_le_perm_store_<mode>): Likewise.
12823 (splitters for little endian memory operations): Likewise.
12824 (vsx_xxpermdi2_le_<mode>): Likewise.
12825 (vsx_lxvd2x2_le_<mode>): Likewise.
12826 (vsx_stxvd2x2_le_<mode>): Likewise.
12827
12828 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12829
12830 PR target/61423
12831 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12832 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12833 and corresponding splitters. Zero extend general register
12834 or memory input operand to XMM temporary. Enable for
12835 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12836 (floatunssi<mode>2): Update expander predicate.
12837
12838 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12839
12840 PR rtl-optimization/61325
12841 * lra-constraints.c (process_address_1): Check scale equal to one
12842 to prevent transformation: base + scale * index => base + new_reg.
12843
12844 2014-06-06 Richard Biener <rguenther@suse.de>
12845
12846 PR tree-optimization/59299
12847 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12848 a def operand.
12849 (nearest_common_dominator_of_uses): Likewise.
12850 (statement_sink_location): Adjust. Support sinking loads.
12851
12852 2014-06-06 Martin Jambor <mjambor@suse.cz>
12853
12854 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12855 (build_agg_jump_func_from_list): Likewise.
12856 (determine_known_aggregate_parts): Renamed to
12857 determine_locally_known_aggregate_parts. Moved some functionality
12858 to the two functions above, removed bound checks.
12859
12860 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12861
12862 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12863 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12864 (aarch64_progress_pointer): Likewise.
12865 (aarch64_copy_one_part_and_move_pointers): Likewise.
12866 (aarch64_expand_movmen): Likewise.
12867 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12868 * config/aarch64/aarch64.md (movmem<mode>): New.
12869
12870 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12871
12872 * targhooks.c (default_add_stmt_cost): Call target specific
12873 hook instead of default one.
12874
12875 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12876
12877 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12878 endianness instead of host endianness.
12879 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12880 comments.
12881
12882 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12883
12884 PR debug/53927
12885 * function.c (instantiate_decls): Process the saved static chain.
12886 (expand_function_start): If not optimizing, save the static chain
12887 onto the stack.
12888 * tree-nested.c (convert_all_function_calls): Always create the static
12889 chain for nested functions if not optimizing.
12890
12891 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12892
12893 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12894
12895 2014-06-06 Richard Biener <rguenther@suse.de>
12896
12897 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12898 (construct_init_block): Likewise.
12899 (construct_exit_block): Likewise.
12900 (pass_expand::execute): Likewise.
12901 * graphite.c (graphite_transforms): Replace check for current_loops
12902 with a check for > 1 loops.
12903 (pass_graphite_transforms::execute): Adjust.
12904 * ipa-split.c (split_function): Remove check for current_loops.
12905 * omp-low.c (expand_parallel_call): Likewise.
12906 (expand_omp_for_init_counts): Likewise.
12907 (extract_omp_for_update_vars): Likewise.
12908 (expand_omp_for_generic): Likewise.
12909 (expand_omp_sections): Likewise.
12910 (expand_omp_target): Likewise.
12911 * tracer.c (tail_duplicate): Likewise.
12912 (pass_tracer::execute): Likewise.
12913 * trans-mem.c (expand_transaction): Likewise.
12914 * tree-complex.c (expand_complex_div_wide): Likewise.
12915 * tree-eh.c (lower_resx): Likewise.
12916 (cleanup_empty_eh_merge_phis): Likewise.
12917 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12918 current_loops with a check for > 1 loops.
12919 (pass_predcom::execute): Adjust.
12920 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12921 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12922 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12923 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12924 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12925 * tree-switch-conversion.c (process_switch): Likewise.
12926 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12927 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12928 (execute_vrp): Likewise.
12929 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12930
12931 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12932
12933 * rtl.h (insn_location): Declare.
12934 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12935 with UNKNOWN_LOCATION.
12936 * emit-rtl.c (insn_location): New function.
12937 * final.c (notice_source_line): Check that the instruction has a
12938 location before retrieving it and use insn_location.
12939 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12940 * print-rtl.c (print_rtx): Likewise.
12941
12942 2014-06-06 Richard Biener <rguenther@suse.de>
12943
12944 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12945
12946 2014-06-06 Christian Bruel <christian.bruel@st.com>
12947
12948 PR tree-optimization/43934
12949 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12950 cost.
12951
12952 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12953
12954 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12955 return NO_REGS for extra address and memory constraints. Handle
12956 operands that match (or are equivalent to something that matches)
12957 extra constant constraints. Ignore other non-register operands.
12958
12959 2014-06-06 Alan Modra <amodra@gmail.com>
12960
12961 PR target/61300
12962 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12963 * doc/tm.texi: Regenerate.
12964 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12965 Use throughout in place of REG_PARM_STACK_SPACE.
12966 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12967 "incoming" param. Pass to rs6000_function_parms_need_stack.
12968 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12969 prototype_p when incoming. Use function decl when incoming
12970 to handle K&R style functions.
12971 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12972 (INCOMING_REG_PARM_STACK_SPACE): Define.
12973
12974 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12975
12976 PR target/52472
12977 * cfgexpand.c (expand_debug_expr): Use address space of nested
12978 TREE_TYPE for ADDR_EXPR and MEM_REF.
12979
12980 2014-06-05 Jeff Law <law@redhat.com>
12981
12982 PR tree-optimization/61289
12983 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12984 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12985 looking for those which match LHS. All callers changed.
12986 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12987 parameters and code which manipulated them. All callers changed.
12988 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12989 and DST_MAP parameters. Simplify invalidation code by just calling
12990 invalidate_equivalences. All callers changed.
12991 (thread_across_edge): Simplify now that we don't need to maintain
12992 the map of equivalences to invalidate.
12993
12994 2014-06-05 Kai Tietz <ktietz@redhat.com>
12995 Richard Henderson <rth@redhat.com>
12996
12997 PR target/46219
12998 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12999 checking for !TARGET_X32.
13000 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13001 (sibcall_intern): New define_insn, plus required peepholes.
13002 (sibcall_pop_intern): Likewise.
13003 (sibcall_value_intern): Likewise.
13004 (sibcall_value_pop_intern): Likewise.
13005
13006 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13007
13008 * tree-inline.c (tree_function_versioning): Check DF info existence
13009 before accessing it.
13010
13011 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13012
13013 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13014 frame_size.
13015 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13016 aarch64_frame hard_fp_offset and frame_size.
13017 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13018 frame_size; remove original_frame_size.
13019 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13020 (aarch64_initial_elimination_offset): Remove frame_size and
13021 offset. Use aarch64_frame frame_size.
13022
13023 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13024 Jiong Wang <jiong.wang@arm.com>
13025 Renlin <renlin.li@arm.com>
13026
13027 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13028 initialization of R30 offset. Update offset. Iterate core
13029 regisers upto X30. Remove X29, X30 specific code.
13030
13031 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13032 Jiong Wang <jiong.wang@arm.com>
13033
13034 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13035 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13036 (aarch64_register_saved_on_entry): Adjust test.
13037
13038 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13039
13040 * config/aarch64/aarch64.h (machine_function): Move
13041 saved_varargs_size from here...
13042 (aarch64_frame): ... to here.
13043
13044 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13045 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13046 (aarch64_initial_elimination_offset)
13047 (aarch64_setup_incoming_varargs): Adjust location of
13048 saved_varargs_size.
13049
13050 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13051
13052 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13053 layout comment.
13054
13055 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13056 Prachi Godbole <Prachi.Godbole@imgtec.com>
13057
13058 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13059 mips32r5 entry to use PROCESSOR_P5600.
13060 * config/mips/mips-tables.opt: Regenerate.
13061 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13062 * config/mips/mips.c (mips_fmadd_bypass): New function.
13063 (mips_rtx_cost_data): Add costs for p5600.
13064 (mips_issue_rate): Add support for p5600.
13065 (mips_multipass_dfa_lookahead): Likewise.
13066 * config/mips/mips.h (TUNE_P5600): New define.
13067 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13068 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13069 * config/mips/mips.md: Include p5600.md.
13070 (processor): Add p5600.
13071 * config/mips/p5600.md: New file.
13072
13073 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13074
13075 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13076 * config/i386/predicates.md (palignr_operand): New.
13077 Indicates if permutation is suitable for palignr instruction.
13078
13079 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13080
13081 PR tree-optimization/61319
13082 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13083 stmt belongs to loop.
13084
13085 2014-06-05 Richard Biener <rguenther@suse.de>
13086
13087 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13088 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13089 (lookup_tmp_var): Adjust.
13090 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13091
13092 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13093
13094 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13095
13096 2014-06-05 Marek Polacek <polacek@redhat.com>
13097
13098 PR c/49706
13099 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13100
13101 2014-06-04 Tom de Vries <tom@codesourcery.com>
13102
13103 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13104 CONST_INT.
13105
13106 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13107
13108 PR tree-optimization/61385
13109 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13110
13111 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13112
13113 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13114 changed to use fatal_error.
13115 (main): Ensure lto_wrapper_cleanup is run atexit.
13116
13117 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13118
13119 * lra-constraints.c (valid_address_p): Move earlier in file.
13120 (address_eliminator): New structure.
13121 (satisfies_memory_constraint_p): New function.
13122 (satisfies_address_constraint_p): Likewise.
13123 (process_alt_operands, process_address, curr_insn_transform): Use them.
13124
13125 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13126
13127 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13128 const pointer.
13129 (target_lra_int, default_target_lra_int, this_target_lra_int)
13130 (op_alt_data): Delete.
13131 * lra.h (lra_init): Delete.
13132 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13133 (init_insn_code_data_once): Remove op_alt_data handling.
13134 (finish_insn_code_data_once): Likewise.
13135 (init_op_alt_data): Delete.
13136 (get_static_insn_data): Initialize operand_alternative to null.
13137 (free_insn_recog_data): Cast operand_alternative before freeing it.
13138 (setup_operand_alternative): Take the operand_alternative as
13139 parameter and assume it isn't already cached in the static
13140 insn data.
13141 (lra_set_insn_recog_data): Update accordingly.
13142 (lra_init): Delete.
13143 * ira.c (ira_init): Don't call lra_init.
13144 * target-globals.h (this_target_lra_int): Declare.
13145 (target_globals): Remove lra_int.
13146 (restore_target_globals): Update accordingly.
13147 * target-globals.c: Don't include lra-int.h.
13148 (default_target_globals, save_target_globals): Remove lra_int.
13149
13150 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13151
13152 * recog.h (operand_alternative): Convert reg_class, reject,
13153 matched and matches into bitfields.
13154 (preprocess_constraints): New overload.
13155 (preprocess_insn_constraints): New function.
13156 (preprocess_constraints): Take the insn as parameter.
13157 (recog_op_alt): Change into a pointer.
13158 (target_recog): Add x_op_alt.
13159 * recog.c (asm_op_alt): New variable.
13160 (recog_op_alt): Change into a pointer.
13161 (preprocess_constraints): New overload, replacing the old function
13162 definition with one that doesn't use global state.
13163 (preprocess_insn_constraints): New function.
13164 (preprocess_constraints): Use them. Take the insn as parameter.
13165 Use asm_op_alt for asms.
13166 (recog_init): Free existing x_op_alt entries.
13167 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13168 pointer const.
13169 (make_early_clobber_and_input_conflicts): Likewise.
13170 (process_bb_node_lives): Pass the insn to process_constraints.
13171 * reg-stack.c (check_asm_stack_operands): Likewise.
13172 (subst_asm_stack_regs): Likewise.
13173 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13174 * regrename.c (build_def_use): Likewise.
13175 * sched-deps.c (sched_analyze_insn): Likewise.
13176 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13177 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13178 (note_invalid_constants): Likewise.
13179 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13180 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13181 const.
13182
13183 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13184
13185 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13186 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13187 alternatives.
13188 (make_early_clobber_and_input_conflicts): Likewise.
13189 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13190
13191 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13192
13193 * recog.h (alternative_class): New function.
13194 (which_op_alt): Return a const recog_op_alt.
13195 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13196 (subst_asm_stack_regs): Likewise.
13197 * config/arm/arm.c (note_invalid_constants): Likewise.
13198 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13199 the operand_alternative; use alternative class instead.
13200 * sel-sched.c (get_reg_class): Likewise.
13201 * regrename.c (build_def_use): Likewise.
13202 (hide_operands, restore_operands, record_out_operands): Update type
13203 accordingly.
13204
13205 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13206
13207 * recog.h (recog_op_alt): Convert to a flat array.
13208 (which_op_alt): New function.
13209 * recog.c (recog_op_alt): Convert to a flat array.
13210 (preprocess_constraints): Update accordingly, grouping all
13211 operands of the same alternative together, rather than the
13212 other way around.
13213 * ira-lives.c (check_and_make_def_conflict): Likewise.
13214 (make_early_clobber_and_input_conflicts): Likewise.
13215 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13216 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13217 (subst_asm_stack_regs): Likewise.
13218 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13219 * regrename.c (hide_operands, record_out_operands): Likewise.
13220 (build_def_use): Likewise.
13221 * sel-sched.c (get_reg_class): Likewise.
13222 * config/arm/arm.c (note_invalid_constants): Likewise.
13223
13224 2014-06-04 Jason Merrill <jason@redhat.com>
13225
13226 PR c++/51253
13227 PR c++/61382
13228 * gimplify.c (gimplify_arg): Non-static.
13229 * gimplify.h: Declare it.
13230
13231 2014-06-04 Richard Biener <rguenther@suse.de>
13232
13233 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13234 TREE_PUBLIC and DECL_EXTERNAL decls.
13235
13236 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13237
13238 * regcprop.c (copyprop_hardreg_forward_1): Account for
13239 HARD_REGNO_CALL_PART_CLOBBERED.
13240
13241 2014-06-04 Richard Biener <rguenther@suse.de>
13242
13243 * configure.ac: Check whether the underlying type of int64_t
13244 is long or long long.
13245 * configure: Regenerate.
13246 * config.in: Likewise.
13247 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13248 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13249
13250 2014-06-04 Richard Biener <rguenther@suse.de>
13251
13252 PR tree-optimization/60098
13253 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13254 we hit a kill.
13255 (dse_optimize_stmt): Simplify, now that we found a kill
13256 earlier.
13257
13258 2014-06-04 Richard Biener <rguenther@suse.de>
13259
13260 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13261 of accesses with non-invariant address.
13262
13263 2014-06-04 Martin Liska <mliska@suse.cz>
13264
13265 * cgraph.h (cgraph_make_wrapper): New function introduced.
13266 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13267 * ipa-inline.h (inline_analyze_function): The function is global.
13268 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13269
13270 2014-06-04 Martin Liska <mliska@suse.cz>
13271
13272 * tree.h (private_lookup_attribute_starting): New function.
13273 (lookup_attribute_starting): Likewise.
13274 * tree.c (private_lookup_attribute_starting): Likewise.
13275
13276 2014-06-04 Martin Liska <mliska@suse.cz>
13277
13278 * cgraph.h (expand_thunk): New argument added.
13279 (address_taken_from_non_vtable_p): New global function.
13280 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13281 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13282 * cgraphunit.c (analyze_function): Likewise.
13283 (assemble_thunks_and_aliases): Argument added to call.
13284 (expand_thunk): New argument forces to produce GIMPLE thunk.
13285
13286 2014-06-04 Martin Liska <mliska@suse.cz>
13287
13288 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13289 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13290 * profile.c (branch_prob): Likewise.
13291
13292 2014-06-04 Martin Jambor <mjambor@suse.cz>
13293
13294 PR ipa/61340
13295 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13296 handler for switch on an ipa_ref_use enum.
13297 * ipa-reference.c (analyze_function): Likewise.
13298
13299 2014-06-04 Kai Tietz <ktietz@redhat.com>
13300
13301 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13302 from old call-instruction.
13303
13304 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13305
13306 * config/aarch64/aarch64.c (aarch64_classify_address)
13307 (aarch64_legitimize_reload_address): Support full addressing modes
13308 for vector modes.
13309 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13310 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13311
13312 2014-06-03 Andrew Pinski <apinski@cavium.com>
13313
13314 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13315 for OP0.
13316
13317 2014-06-03 Andrew Pinski <apinski@cavium.com>
13318
13319 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13320 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13321
13322 2014-06-03 Kai Tietz <ktietz@redhat.com>
13323
13324 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13325 for 64-bit ms-abi.
13326
13327 2014-06-03 Dehao Chen <dehao@google.com>
13328
13329 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13330 the same loop.
13331
13332 2014-06-03 Marek Polacek <polacek@redhat.com>
13333
13334 PR c/60439
13335 * doc/invoke.texi: Document -Wswitch-bool.
13336 * function.c (stack_protect_epilogue): Cast controlling expression of
13337 the switch to int.
13338 * gengtype.c (walk_type): Generate switch expression with its
13339 controlling expression cast to int.
13340
13341 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13342
13343 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13344 and attiny841.
13345 * config/avr/avr-tables.opt: Regenerate.
13346 * config/avr/t-multilib: Regenerate.
13347 * doc/avr-mmcu.texi: Regenerate.
13348
13349 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13350 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13351
13352 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13353 (ata6617c, ata664251): Add new avr35 devices.
13354 (ata6612c): Add new avr4 device.
13355 (ata6613c, ata6614q): Add new avr5 devices.
13356 * config/avr/avr-tables.opt: Regenerate.
13357 * config/avr/t-multilib: Regenerate.
13358 * doc/avr-mmcu.texi: Regenerate.
13359
13360 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13361
13362 * gcc/config/aarch64/aarch64-builtins.c
13363 (aarch64_types_binop_ssu_qualifiers): New static data.
13364 (TYPES_BINOP_SSU): Define.
13365 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13366 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13367 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13368 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13369 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13370 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13371 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13372 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13373 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13374 suffix to builtin function name, remove cast.
13375 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13376 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13377 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13378
13379 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13380
13381 * gcc/config/aarch64/aarch64-builtins.c
13382 (aarch64_types_binop_uus_qualifiers,
13383 aarch64_types_shift_to_unsigned_qualifiers,
13384 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13385 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13386 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13387 sqshlu_n, uqshl_n): Update qualifiers.
13388 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13389 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13390 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13391 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13392 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13393 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13394 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13395 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13396 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13397 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13398 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13399 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13400 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13401 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13402 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13403 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13404 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13405 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13406 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13407 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13408 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13409 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13410 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13411 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13412 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13413 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13414 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13415
13416 2014-06-03 Teresa Johnson <tejohnson@google.com>
13417
13418 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13419
13420 2014-06-02 Jason Merrill <jason@redhat.com>
13421
13422 PR c++/61020
13423 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13424
13425 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13426
13427 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13428 location == 0.
13429
13430 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13431
13432 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13433 New pattern.
13434 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13435 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13436 * config/aarch64/iterators.md (REVERSE): New iterator.
13437 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13438 (rev_op): New int_attribute.
13439 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13440 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13441 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13442 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13443 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13444 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13445 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13446 Replace temporary __asm__ with __builtin_shuffle.
13447
13448 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13449
13450 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13451 mips64r5.
13452 * config/mips/mips-tables.opt: Regenerate.
13453 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13454 to use mips_isa_rev rather than ISA_MIPS32R2.
13455 * config/mips/mips.h (ISA_MIPS32R3): New define.
13456 (ISA_MIPS32R5): New define.
13457 (ISA_MIPS64R3): New define.
13458 (ISA_MIPS64R5): New define.
13459 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13460 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13461 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13462 and mips64r5.
13463 (MIPS_ISA_SYNCI_SPEC): Likewise.
13464 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13465 (LINK_SPEC): Added mips32r3 and mips32r5.
13466 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13467 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13468 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13469 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13470 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13471 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13472 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13473
13474 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13475
13476 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13477 options.
13478 * config/mips/mips.opt (mxpa): New option.
13479 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13480 assembler.
13481
13482 2014-06-03 Martin Jambor <mjambor@suse.cz>
13483
13484 PR ipa/61160
13485 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13486 thunks.
13487
13488 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13489
13490 PR tree-optimization/61328
13491 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13492 initialization from find_bswap_or_nop_1.
13493 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13494 in source_expr2 before using the size value the function sets. Also
13495 make use of init_symbolic_number () in both the old place and
13496 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13497 doing recursion in the GIMPLE_BINARY_RHS case.
13498
13499 2014-06-03 Richard Biener <rguenther@suse.de>
13500
13501 PR tree-optimization/61383
13502 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13503 stmts can't trap.
13504
13505 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13506
13507 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13508 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13509 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13510 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13511 in this file.
13512 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13513 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13514 * system.h: ...here and make it unconditional.
13515 * target.def (conditional_register_usage): Mention
13516 define_register_constraint instead of old-style constraint macros.
13517 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13518 * doc/tm.texi: Regenerate.
13519 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13520 protected by !USE_MD_CONSTRAINTS.
13521 * config/frv/frv.md: Remove quote from old version of documentation.
13522 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13523 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13524 CONST_DOUBLE_OK_FOR_LETTER.
13525 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13526
13527 2014-06-02 Andrew Pinski <apinski@cavium.com>
13528
13529 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13530 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13531 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13532 file whose name depends on -mabi= and -mbig-endian.
13533 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13534 Handle LP64 better and handle ilp32 too.
13535 (MULTILIB_OPTIONS): Delete.
13536 (MULTILIB_DIRNAMES): Delete.
13537
13538 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13539
13540 * expr.h: Remove prototypes of functions defined in builtins.c.
13541 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13542 Remove prototypes of functions defined in builtins.c.
13543 * builtins.h: Update prototype list to include all exported functions.
13544 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13545 no_c99_libc_has_function): Move to targhooks.c
13546 (build_string_literal, build_call_expr_loc_array,
13547 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13548 to tree.c.
13549 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13550 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13551 no_c99_libc_has_function): Relocate from builtins.c.
13552 * tree.c: Include builtins.h.
13553 (build_call_expr_loc_array, build_call_expr_loc_vec,
13554 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13555 from builtins.c.
13556 * fold-const.h (fold_fma): Move prototype to builtins.h.
13557 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13558 * asan.c: Include builtins.h.
13559 * cfgexpand.c: Likewise.
13560 * convert.c: Likewise.
13561 * emit-rtl.c: Likewise.
13562 * except.c: Likewise.
13563 * expr.c: Likewise.
13564 * fold-const.c: Likewise.
13565 * gimple-fold.c: Likewise.
13566 * gimple-ssa-strength-reduction.c: Likewise.
13567 * gimplify.c: Likewise.
13568 * ipa-inline.c: Likewise.
13569 * ipa-prop.c: Likewise.
13570 * lto-streamer-out.c: Likewise.
13571 * stmt.c: Likewise.
13572 * tree-inline.c: Likewise.
13573 * tree-object-size.c: Likewise.
13574 * tree-sra.c: Likewise.
13575 * tree-ssa-ccp.c: Likewise.
13576 * tree-ssa-forwprop.c: Likewise.
13577 * tree-ssa-loop-ivcanon.c: Likewise.
13578 * tree-ssa-loop-ivopts.c: Likewise.
13579 * tree-ssa-math-opts.c: Likewise.
13580 * tree-ssa-reassoc.c: Likewise.
13581 * tree-ssa-threadedge.c: Likewise.
13582 * tree-streamer-in.c: Likewise.
13583 * tree-vect-data-refs.c: Likewise.
13584 * tree-vect-patterns.c: Likewise.
13585 * tree-vect-stmts.c: Likewise.
13586 * config/aarch64/aarch64.c: Likewise.
13587 * config/alpha/alpha.c: Likewise.
13588 * config/arc/arc.c: Likewise.
13589 * config/arm/arm.c: Likewise.
13590 * config/avr/avr.c: Likewise.
13591 * config/bfin/bfin.c: Likewise.
13592 * config/c6x/c6x.c: Likewise.
13593 * config/cr16/cr16.c: Likewise.
13594 * config/cris/cris.c: Likewise.
13595 * config/epiphany/epiphany.c: Likewise.
13596 * config/fr30/fr30.c: Likewise.
13597 * config/frv/frv.c: Likewise.
13598 * config/h8300/h8300.c: Likewise.
13599 * config/i386/i386.c: Likewise.
13600 * config/i386/winnt.c: Likewise.
13601 * config/ia64/ia64.c: Likewise.
13602 * config/iq2000/iq2000.c: Likewise.
13603 * config/lm32/lm32.c: Likewise.
13604 * config/m32c/m32c.c: Likewise.
13605 * config/m32r/m32r.c: Likewise.
13606 * config/m68k/m68k.c: Likewise.
13607 * config/mcore/mcore.c: Likewise.
13608 * config/mep/mep.c: Likewise.
13609 * config/microblaze/microblaze.c: Likewise.
13610 * config/mips/mips.c: Likewise.
13611 * config/mmix/mmix.c: Likewise.
13612 * config/mn10300/mn10300.c: Likewise.
13613 * config/moxie/moxie.c: Likewise.
13614 * config/msp430/msp430.c: Likewise.
13615 * config/nds32/nds32.c: Likewise.
13616 * config/pa/pa.c: Likewise.
13617 * config/pdp11/pdp11.c: Likewise.
13618 * config/picochip/picochip.c: Likewise.
13619 * config/rl78/rl78.c: Likewise.
13620 * config/rs6000/rs6000.c: Likewise.
13621 * config/rx/rx.c: Likewise.
13622 * config/s390/s390.c: Likewise.
13623 * config/score/score.c: Likewise.
13624 * config/sh/sh.c: Likewise.
13625 * config/sparc/sparc.c: Likewise.
13626 * config/spu/spu.c: Likewise.
13627 * config/stormy16/stormy16.c: Likewise.
13628 * config/tilegx/tilegx.c: Likewise.
13629 * config/tilepro/tilepro.c: Likewise.
13630 * config/v850/v850.c: Likewise.
13631 * config/vax/vax.c: Likewise.
13632 * config/xtensa/xtensa.c: Likewise.
13633
13634 2014-06-02 Jeff Law <law@redhat.com>
13635
13636 PR rtl-optimization/61094
13637 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13638 was marked as do_no_reextend. If a copy is needed to eliminate
13639 an extension, then mark it as do_not_reextend.
13640
13641 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13642
13643 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13644
13645 2014-06-02 Richard Henderson <rth@redhat.com>
13646
13647 PR target/61336
13648 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13649 addresses inside asms. Use output_operand_lossage instead of
13650 gcc_unreachable.
13651
13652 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13653
13654 PR target/61239
13655 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13656 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13657
13658 2014-06-02 Tom de Vries <tom@codesourcery.com>
13659
13660 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13661 case that x has VOIDmode.
13662
13663 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13664
13665 * varasm.c (copy_constant): Delete function.
13666 (build_constant_desc): Don't call it.
13667
13668 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13669
13670 PR target/61154
13671 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13672 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13673 with immediate_operand.
13674
13675 2014-06-02 Andreas Schwab <schwab@suse.de>
13676
13677 * config/ia64/ia64.c
13678 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13679 pending_data_specs first.
13680
13681 2014-06-02 Richard Biener <rguenther@suse.de>
13682
13683 PR tree-optimization/61378
13684 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13685 valueized_anything.
13686
13687 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13688
13689 * config/i386/constraints.md (Bw): Rename from 'w'.
13690 (Bz): Rename from 'z'.
13691 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13692
13693 2014-06-01 Kai Tietz <ktietz@redhat.com>
13694
13695 PR target/61377
13696 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13697 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13698 instead of m constraint.
13699
13700 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13701
13702 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13703 a separate alternative where the scratch operand 2 is marked as
13704 early clobber.
13705
13706 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13707
13708 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13709 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13710 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13711 and __builtins_arm_get_fpscr.
13712 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13713 __builtins_arm_get_fpscr.
13714 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13715 __builtins_arm_ldfpscr.
13716 (arm_atomic_assign_expand_fenv): New function.
13717 * config/arm/vfp.md (set_fpscr): New pattern.
13718 (get_fpscr) : Likewise.
13719 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13720 VUNSPEC_SET_FPSCR.
13721 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13722 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13723
13724 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13725
13726 * asan.c (report_error_func): Add SLOW_P argument, use
13727 BUILT_IN_ASAN_*_N if set.
13728 (build_check_stmt): Likewise.
13729 (instrument_derefs): If T has insufficient alignment,
13730 force same handling as for odd sizes.
13731
13732 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13733 BUILT_IN_ASAN_REPORT_STORE_N): New.
13734 * asan.c (struct asan_mem_ref): Change access_size type to
13735 HOST_WIDE_INT.
13736 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13737 update_mem_ref_hash_table): Likewise.
13738 (asan_mem_ref_hasher::hash): Hash in a HWI.
13739 (report_error_func): Change size_in_bytes argument to HWI.
13740 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13741 two.
13742 (build_shadow_mem_access): New function.
13743 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13744 Handle size_in_bytes not power of two or larger than 16.
13745 (instrument_derefs): Don't give up if size_in_bytes is not
13746 power of two or is larger than 16.
13747
13748 2014-05-30 Kai Tietz <ktietz@redhat.com>
13749
13750 PR target/60104
13751 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13752 for sibling-tail-calls.
13753 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13754 to its use.
13755 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13756 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13757
13758 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13759
13760 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13761 * config/avr/avr-tables.opt: Regenerate.
13762 * config/avr/t-multilib: Regenerate.
13763 * doc/avr-mmcu.texi: Regenerate.
13764
13765 2014-05-30 Ian Lance Taylor <iant@google.com>
13766
13767 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13768 target("sse").
13769
13770 2014-05-30 Tom de Vries <tom@codesourcery.com>
13771
13772 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13773 Redefine as true.
13774
13775 2014-05-30 Tom de Vries <tom@codesourcery.com>
13776
13777 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13778 * lra.c (initialize_lra_reg_info_element): Add init of
13779 actual_call_used_reg_set field.
13780 (lra): Call lra_create_live_ranges before lra_inheritance for
13781 -fuse-caller-save.
13782 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13783 -fuse-caller-save.
13784 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13785 instead of call_used_reg_set for -fuse-caller-save.
13786 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13787
13788 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13789
13790 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13791 to mov_imm.
13792 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13793
13794 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13795
13796 * ira.c (ira_get_dup_out_num): Check for output operands at
13797 the start of the loop. Handle cases where an included alternative
13798 follows an excluded one.
13799
13800 2014-05-29 Mike Stump <mikestump@comcast.net>
13801
13802 PR debug/61352
13803 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13804 post ld passes when lto is used.
13805
13806 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13807
13808 PR rtl-optimization/61325
13809 * lra-constraints.c (process_address): Rename to process_address_1.
13810 (process_address): New function.
13811
13812 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13813
13814 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13815 TYPES_BINOPV): New static data.
13816 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13817 New builtin.
13818 * config/aarch64/aarch64-simd.md (aarch64_ext,
13819 aarch64_im_lane_boundsi): New patterns.
13820 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13821 patterns for EXT.
13822 (aarch64_evpc_ext): New function.
13823
13824 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13825
13826 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13827 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13828 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13829 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13830 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13831
13832 2014-05-29 Tom de Vries <tom@codesourcery.com>
13833
13834 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13835
13836 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13837 Richard Sandiford <rdsandiford@googlemail.com>
13838
13839 * arm/iterators.md (shiftable_ops): New code iterator.
13840 (t2_binop0, arith_shift_insn): New code attributes.
13841 * arm/predicates.md (shift_nomul_operator): New predicate.
13842 * arm/arm.md (insn_enabled): Delete.
13843 (enabled): Remove insn_enabled test.
13844 (*arith_shiftsi): Delete. Replace with ...
13845 (*<arith_shift_insn>_multsi): ... new pattern.
13846 (*<arith_shift_insn>_shiftsi): ... new pattern.
13847 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13848
13849 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13850 Tom de Vries <tom@codesourcery.com>
13851
13852 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13853 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13854 clobber.
13855 (mips_split_call): Use POST_CALL_TMP_REG.
13856 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13857
13858 2014-05-29 Tom de Vries <tom@codesourcery.com>
13859
13860 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13861 with #ifdef STACK_REGS.
13862
13863 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13864
13865 * varasm.c (get_variable_section): Walk aliases.
13866 (place_block_symbol): Walk aliases.
13867
13868 2014-05-28 Tom de Vries <tom@codesourcery.com>
13869
13870 Revert:
13871 2014-05-28 Tom de Vries <tom@codesourcery.com>
13872
13873 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13874 * lra.c (initialize_lra_reg_info_element): Add init of
13875 actual_call_used_reg_set field.
13876 (lra): Call lra_create_live_ranges before lra_inheritance for
13877 -fuse-caller-save.
13878 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13879 -fuse-caller-save.
13880 * lra-constraints.c (need_for_call_save_p): Use
13881 actual_call_used_reg_set instead of call_used_reg_set for
13882 -fuse-caller-save.
13883 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13884
13885 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13886
13887 * doc/md.texi: Document that the % constraint character must
13888 be at the beginning of the string.
13889 * genoutput.c (validate_insn_alternatives): Check that '=',
13890 '+' and '%' only appear at the beginning of a constraint.
13891 * ira.c (commutative_constraint_p): Delete.
13892 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13893 at the start of the string.
13894 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13895 duplicate '='s.
13896 * config/arm/neon.md (bicdi3_neon): Likewise.
13897 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13898 (slt_si, sltu_si): Likewise.
13899 * config/vax/vax.md (sbcdi3): Likewise.
13900 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13901 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13902 (mul64): Move '%' to beginning of constraint.
13903 * config/arm/arm.md (*xordi3_insn): Likewise.
13904 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13905 (xorsi3): Likewise.
13906
13907 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13908
13909 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13910
13911 2014-05-28 Jason Merrill <jason@redhat.com>
13912
13913 PR c++/47202
13914 * cgraph.h (symtab_node::get_comdat_group_id): New.
13915 * cgraphunit.c (analyze_functions): Call it.
13916 * symtab.c (dump_symtab_node): Likewise.
13917 * tree.c (decl_comdat_group_id): New.
13918 * tree.h: Declare it.
13919 * lto-streamer-out.c (write_symbol): Use it.
13920 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13921
13922 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13923
13924 PR bootstrap/PR61146
13925 * wide-int.cc: Do not include longlong.h when compiling with clang.
13926
13927 2014-05-28 Richard Biener <rguenther@suse.de>
13928
13929 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13930 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13931 (vrp_visit_assignment_or_call): Print less vertical space.
13932 (vrp_visit_stmt): Likewise.
13933 (vrp_visit_phi_node): Likewise. For a PHI argument with
13934 VR_VARYING range consider recording it as copy.
13935
13936 2014-05-28 Richard Biener <rguenther@suse.de>
13937
13938 Revert
13939 2014-05-28 Richard Biener <rguenther@suse.de>
13940
13941 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13942
13943 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13944
13945 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13946 sufficiently aligned and an offset is used at the same time.
13947 (expand_expr_real_1): Likewise.
13948
13949 2014-05-28 Richard Biener <rguenther@suse.de>
13950
13951 PR middle-end/61045
13952 * fold-const.c (fold_comparison): When folding
13953 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13954 the sign of the remaining constant operand stays the same.
13955
13956 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13957
13958 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13959 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13960 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13961 to the assembler.
13962 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13963 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13964 (m32bit-doubles) Likewise.
13965 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13966 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13967 option for RL78.
13968
13969 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13970
13971 * configure.ac ($gcc_cv_ld_clearcap): New test.
13972 * configure: Regenerate.
13973 * config.in: Regenerate.
13974 * config/sol2.opt (mclear-hwcap): New option.
13975 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13976 * config/sol2-clearcap.map: Moved here from
13977 testsuite/gcc.target/i386/clearcap.map.
13978 * config/sol2-clearcapv2.map: Move here from
13979 gcc.target/i386/clearcapv2.map.
13980 * config/t-sol2 (install): Depend on install-clearcap-map.
13981 (install-clearcap-map): New target.
13982 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13983 -mclear-hwcap.
13984
13985 2014-05-28 Richard Biener <rguenther@suse.de>
13986
13987 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13988 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13989 ... here and remove the rest.
13990 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13991
13992 2014-05-28 Richard Biener <rguenther@suse.de>
13993
13994 PR tree-optimization/61335
13995 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13996 new range fails, drop to varying.
13997
13998 2014-05-28 Olivier Hainque <hainque@adacore.com>
13999
14000 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14001 (CPP_SPEC): Add entry for -mcpu=8548.
14002 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14003 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14004
14005 2014-05-28 Tom de Vries <tom@codesourcery.com>
14006
14007 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14008 * lra.c (initialize_lra_reg_info_element): Add init of
14009 actual_call_used_reg_set field.
14010 (lra): Call lra_create_live_ranges before lra_inheritance for
14011 -fuse-caller-save.
14012 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14013 -fuse-caller-save.
14014 * lra-constraints.c (need_for_call_save_p): Use
14015 actual_call_used_reg_set instead of call_used_reg_set for
14016 -fuse-caller-save.
14017 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14018
14019 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14020 Tom de Vries <tom@codesourcery.com>
14021
14022 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14023 to gccoptlist.
14024 (@item -fuse-caller-save): New item.
14025
14026 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14027 Tom de Vries <tom@codesourcery.com>
14028
14029 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14030 OPT_fuse_caller_save.
14031
14032 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14033 Tom de Vries <tom@codesourcery.com>
14034
14035 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14036 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14037 get_call_reg_set_usage.
14038 * resource.c (mark_set_resources, mark_target_live_regs): Use
14039 get_call_reg_set_usage.
14040 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14041 field.
14042 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14043 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14044 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14045 * ira-build.c (ira_create_allocno): Init
14046 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14047 (create_cap_allocno, propagate_allocno_info)
14048 (propagate_some_info_from_allocno)
14049 (copy_info_to_removed_store_destinations): Handle
14050 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14051 * ira-costs.c (ira_tune_allocno_costs): Use
14052 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14053
14054 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14055 Tom de Vries <tom@codesourcery.com>
14056
14057 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14058 and function_used_regs_valid fields.
14059 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14060 find_all_hard_reg_sets.
14061 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14062 (get_call_reg_set_usage): New function.
14063 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14064 * regs.h (get_call_reg_set_usage): Declare.
14065
14066 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14067
14068 PR libgcc/61152
14069 * config/dbx.h (License): Add Runtime Library Exception.
14070 * config/newlib-stdint.h (License): Same.
14071 * config/rtems.h (License): Same
14072 * config/initfini-array.h (License): Same
14073 * config/v850/v850.h (License): Same.
14074 * config/v850/v850-opts.h (License): Same
14075 * config/v850/rtems.h (License): Same.
14076
14077 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14078
14079 PR target/61044
14080 * doc/extend.texi (Local Labels): Note that label differences are
14081 not supported for AVR.
14082
14083 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14084 Olivier Hainque <hainque@adacore.com>
14085
14086 * rtl.h (set_for_reg_notes): Declare.
14087 * emit-rtl.c (set_for_reg_notes): New function.
14088 (set_unique_reg_note): Use it.
14089 * optabs.c (add_equal_note): Likewise
14090
14091 2014-05-27 Andrew Pinski <apinski@cavium.com>
14092
14093 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14094 Use <w> for the register in assembly template.
14095 (stack_protect_test): Use the mode of operands[0] for the result.
14096 (stack_protect_test_<mode>): Use <w> for the register
14097 in assembly template.
14098
14099 2014-05-27 DJ Delorie <dj@redhat.com>
14100
14101 * config/rx/rx.c (add_vector_labels): New.
14102 (rx_output_function_prologue): Call it.
14103 (rx_handle_func_attribute): Don't require empty arguments.
14104 (rx_handle_vector_attribute): New.
14105 (rx_attribute_table): Add "vector" attribute.
14106 * doc/extend.texi (interrupt, vector): Document new/changed
14107 RX-specific attributes.
14108
14109 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14110
14111 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14112
14113 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14114 predicate to detect a negative quotient.
14115
14116 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14117
14118 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14119 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14120 Add X - Y CMP 0 to X CMP Y transformation.
14121 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14122
14123 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14124
14125 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14126 before printing.
14127
14128 2014-05-27 Steve Ellcey <sellcey@mips.com>
14129
14130 * config/mips/mips.c: Add include of cgraph.h.
14131
14132 2014-05-27 Richard Biener <rguenther@suse.de>
14133
14134 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14135
14136 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14137
14138 PR libgcc/61152
14139 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14140 * config/arm/arm-cores.def (License): Same.
14141 * config/arm/arm-opts.h (License): Same.
14142 * config/arm/aout.h (License): Same.
14143 * config/arm/bpabi.h (License): Same.
14144 * config/arm/elf.h (License): Same.
14145 * config/arm/linux-elf.h (License): Same.
14146 * config/arm/linux-gas.h (License): Same.
14147 * config/arm/netbsd-elf.h (License): Same.
14148 * config/arm/uclinux-eabi.h (License): Same.
14149 * config/arm/uclinux-elf.h (License): Same.
14150 * config/arm/vxworks.h (License): Same.
14151
14152 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14153
14154 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14155 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14156 (arm_init_neon_builtins): Handle NEON_BSWAP.
14157 Define required type nodes.
14158 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14159 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14160 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14161 * config/arm/iterators.md (VDQHSD): New mode iterator.
14162
14163 2014-05-27 Richard Biener <rguenther@suse.de>
14164
14165 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14166 Try using literal operands when comparing value-ranges failed.
14167
14168 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14169
14170 * ira.c (commutative_operand): Adjust for change to recog_data.
14171 [Missing from previous commit.]
14172
14173 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14174
14175 * system.h (TEST_BIT): New macro.
14176 * recog.h (alternative_mask): New type.
14177 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14178 (recog_data_d): Replace alternative_enabled_p array with
14179 enabled_alternatives.
14180 (target_recog): New structure.
14181 (default_target_recog, this_target_recog): Declare.
14182 (get_enabled_alternatives, recog_init): Likewise.
14183 * recog.c (default_target_recog, this_target_recog): New variables.
14184 (get_enabled_alternatives): New function.
14185 (extract_insn): Use it.
14186 (recog_init): New function.
14187 (preprocess_constraints, constrain_operands): Adjust for change to
14188 recog_data.
14189 * postreload.c (reload_cse_simplify_operands): Likewise.
14190 * reload.c (find_reloads): Likewise.
14191 * ira-costs.c (record_reg_classes): Likewise.
14192 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14193 all alternatives after a disabled one would be skipped.
14194 (ira_implicitly_set_insn_hard_regs): Likewise.
14195 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14196 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14197 with enabled_alternatives.
14198 * lra.c (free_insn_recog_data): Update accordingly.
14199 (lra_update_insn_recog_data): Likewise.
14200 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14201 * lra-constraints.c (process_alt_operands): Likewise. Handle
14202 only_alternative as part of the enabled mask.
14203 * target-globals.h (this_target_recog): Declare.
14204 (target_globals): Add a recog field.
14205 (restore_target_globals): Restore this_target_recog.
14206 * target-globals.c: Include recog.h.
14207 (default_target_globals): Initialize recog field.
14208 (save_target_globals): Likewise.
14209 * reginfo.c (reinit_regs): Call recog_init.
14210 * toplev.c (backend_init_target): Likewise.
14211
14212 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14213
14214 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14215 rather than any named insn's code.
14216
14217 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14218
14219 PR libgcc/61152
14220 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14221 * config/arm/arm-cores.def (License): Same.
14222
14223 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14224
14225 * tree.h (decl_comdat_group): Declare.
14226 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14227 * tree.c (decl_comdat_group): Here.
14228
14229 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14230
14231 PR rtl-optimization/61222
14232 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14233 the shift, truncate the PLUS operand to the result mode.
14234
14235 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14236
14237 PR target/61271
14238 * config/i386/i386.c (ix86_rtx_costs)
14239 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14240 Fix condition.
14241
14242 2014-05-26 Martin Jambor <mjambor@suse.cz>
14243
14244 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14245 subreg uses.
14246
14247 2014-05-26 Richard Biener <rguenther@suse.de>
14248
14249 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14250 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14251 Provide specializations.
14252 (wi::int_traits <HOST_WIDE_INT>,
14253 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14254
14255 2014-05-26 Alan Modra <amodra@gmail.com>
14256
14257 PR target/61098
14258 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14259 params and return a bool. Remove dead code. Update comment.
14260 Assert we have a const_int source. Remove bogus code from
14261 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14262 handling of constants > 2G and reg_equal note, from..
14263 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14264 return value. Update comment. If we can, use a new pseudo
14265 for intermediate calculations.
14266 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14267 prototype.
14268 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14269 call to rs6000_emit_set_const in splitter.
14270 (movdi_internal64+2, +3): Likewise.
14271
14272 2014-05-26 Richard Biener <rguenther@suse.de>
14273
14274 * system.h: Define __STDC_FORMAT_MACROS before
14275 including inttypes.h.
14276 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14277 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14278 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14279 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14280 HOST_WIDEST_INT_C): Remove.
14281 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14282 if C99 inttypes.h is not available.
14283 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14284 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14285 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14286 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14287 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14288 (struct output_info): Likewise.
14289 (print_statistics): Adjust.
14290 (dump_bitmap_statistics): Likewise.
14291 * bt-load.c (migrate_btr_defs): Print with PRId64.
14292 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14293 (MAX_SAFE_MULTIPLIER): Adjust.
14294 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14295 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14296 dump_cgraph_node): Likewise.
14297 * final.c (dump_basic_block_info): Likewise.
14298 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14299 * gcov.c (format_gcov): Likewise.
14300 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14301 for calculation.
14302 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14303 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14304 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14305 Use PRId64 for dumping.
14306 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14307 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14308 (add_allocno_hard_regs): Adjust.
14309 * loop-doloop.c (doloop_modify): Print using PRId64.
14310 * loop-iv.c (inverse): Compute in uint64_t.
14311 (determine_max_iter, iv_number_of_iterations): Likewise.
14312 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14313 Print using PRId64.
14314 * lto-streamer-out.c (write_symbol): Use uint64_t.
14315 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14316 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14317 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14318 * modulo-sched.c (const_iteration_count): Use int64_t.
14319 (sms_schedule): Dump using PRId64.
14320 * predict.c (dump_prediction): Likewise.
14321 * pretty-print.h (pp_widest_integer): Remove.
14322 * profile.c (get_working_sets, is_edge_inconsistent,
14323 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14324 * tree-pretty-print.c (pp_double_int): Remove case handling
14325 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14326 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14327 and adjust users.
14328 (pass_optimize_bswap::execute): Remove restriction on hosts.
14329 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14330 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14331 * tree.c (widest_int_cst_value): Remove.
14332 * tree.h (widest_int_cst_value): Likewise.
14333 * value-prof.c (dump_histogram_value): Print using PRId64.
14334 * gengtype.c (main): Also inject int64_t.
14335 * ggc-page.c (struct max_alignment): Use int64_t.
14336 * alloc-pool.c (struct allocation_object_def): Likewise.
14337 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14338 for computation.
14339 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14340 * doc/tm.texi: Regenerated.
14341 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14342 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14343 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14344 mmix_output_register_setting): Use [u]int64_t in prototypes.
14345 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14346 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14347 mmix_output_octa, mmix_output_shifted_value): Adjust.
14348 (mmix_intval): Adjust. Remove unreachable case.
14349 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14350
14351 2014-05-26 Richard Biener <rguenther@suse.de>
14352
14353 * configure.ac: Drop __int64 type check. Insist that we
14354 found uint64_t and int64_t.
14355 * hwint.h (HOST_BITS_PER___INT64): Remove.
14356 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14357 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14358 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14359 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14360 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14361 for dst_q_src_df_rms_cdt.
14362 * configure: Regenerate.
14363 * config.in: Likewise.
14364
14365 2014-05-26 Michael Tautschnig <mt@debian.org>
14366
14367 PR target/61249
14368 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14369 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14370
14371 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14372
14373 PR rtl-optimization/61278
14374 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14375
14376 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14377
14378 PR rtl-optimization/61220
14379 Part of PR rtl-optimization/61225
14380 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14381 insn; skip split_edge for a block with only one successor.
14382
14383 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14384
14385 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14386 for variables.
14387
14388 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14389
14390 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14391 (update_vtable_references): New function.
14392 (function_and_variable_visibility): Rewrite also vtable initializers.
14393 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14394
14395 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14396
14397 * ggc.h (ggc_grow): New function.
14398 * ggc-none.c (ggc_grow): New function.
14399 * ggc-page.c (ggc_grow): Likewise.
14400
14401 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14402
14403 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14404 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14405 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14406 varpool_externally_visible_p, can_replace_by_local_alias,
14407 update_visibility_by_resolution_info, function_and_variable_visibility,
14408 pass_data_ipa_function_and_variable_visibility,
14409 make_pass_ipa_function_and_variable_visibility,
14410 whole_program_function_and_variable_visibility,
14411 pass_data_ipa_whole_program_visibility,
14412 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14413 * cgraph.h (cgraph_local_node_p): Declare.
14414 * ipa-visibility.c: New file.
14415 * Makefile.in (OBJS): Add ipa-visiblity.o
14416
14417 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14418
14419 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14420 that var decl is available.
14421
14422 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14423
14424 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14425 symtab_node pointer.
14426 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14427 (find_decls_types_r): Do not walk COMDAT_GROUP.
14428 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14429 * varasm.c (make_decl_one_only): Use set_comdat_group;
14430 create node if needed.
14431 * ipa-inline-transform.c (save_inline_function_body): Update
14432 way we decl->symtab mapping.
14433 * symtab.c (symtab_hash, hash_node, eq_node
14434 symtab_insert_node_to_hashtable): Remove.
14435 (symtab_register_node): Update.
14436 (symtab_unregister_node): Update.
14437 (symtab_get_node): Reimplement as inline function.
14438 (symtab_add_to_same_comdat_group): Update.
14439 (symtab_dissolve_same_comdat_group_list): Update.
14440 (dump_symtab_base): Update.
14441 (verify_symtab_base): Update.
14442 (symtab_make_decl_local): Update.
14443 (fixup_same_cpp_alias_visibility): Update.
14444 (symtab_nonoverwritable_alias): Update.
14445 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14446 * ipa.c (update_visibility_by_resolution_info): UPdate.
14447 * bb-reorder.c: Include cgraph.h
14448 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14449 with comdat groups.
14450 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14451 * cgraph.c (cgraph_get_create_node): Update.
14452 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14453 and comdat_group_.
14454 (symtab_get_node): Make inline.
14455 (symtab_insert_node_to_hashtable): Remove.
14456 (symtab_can_be_discarded): Update.
14457 (decl_comdat_group): New function.
14458 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14459 Update.
14460 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14461 comdat group name.
14462 (read_comdat_group): New function.
14463 (input_node, input_varpool_node): Use it.
14464 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14465 comdat groups.
14466 * mips.c (mips_start_unique_function): Likewise.
14467 (ix86_code_end): Likewise.
14468 (rs6000_code_end): Likweise.
14469 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14470
14471 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14472
14473 * gengtype-state.c (fatal_reading_state): Bring offline.
14474 * optabs.c (widening_optab_handler): Bring offline.
14475 * optabs.h (widening_optab_handler): Likewise.
14476 * final.c (get_attr_length_1): Likewise.
14477
14478 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14479
14480 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14481
14482 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14483
14484 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14485 (ppc440-compare): Include shift with dot.
14486 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14487 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14488 without dot.
14489 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14490 without dot.
14491 (e6500_sfx2): Include it.
14492 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14493 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14494 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14495 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14496 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14497 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14498 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14499 *lshiftrt_internal1le, *lshiftrt_internal1be,
14500 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14501 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14502 *rotldi3_internal10le, *rotldi3_internal10be,
14503 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14504 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14505 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14506 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14507 define_insns): Use type "shift" in the appropriate alternatives.
14508
14509 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14510
14511 * config/rs6000/rs6000.md (type): Add "logical". Delete
14512 "fast_compare".
14513 (dot): Adjust comment.
14514 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14515 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14516 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14517 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14518 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14519 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14520 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14521 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14522
14523 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14524 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14525 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14526 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14527 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14528 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14529 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14530 * config/rs6000/8540.md (ppc8540_su): Adjust.
14531 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14532 cell-cmp-microcoded): Adjust.
14533 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14534 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14535 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14536 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14537 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14538 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14539 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14540 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14541 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14542 Adjust.
14543 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14544 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14545 Adjust. Adjust comment.
14546 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14547 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14548
14549 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14550
14551 * config/rs6000/rs6000.md (type): Add "add".
14552 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14553 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14554 define_insns): Use it.
14555 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14556
14557 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14558 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14559 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14560 * config/rs6000/601.md (ppc601-integer): Adjust.
14561 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14562 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14563 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14564 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14565 * config/rs6000/8540.md (ppc8540_su): Adjust.
14566 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14567 cell-cmp-microcoded): Adjust.
14568 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14569 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14570 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14571 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14572 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14573 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14574 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14575 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14576 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14577 Adjust.
14578 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14579 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14580 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14581 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14582
14583 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14584
14585 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14586 "delayed_compare", "var_delayed_compare".
14587 (var_shift): New attribute.
14588 (cell_micro): Adjust.
14589 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14590 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14591 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14592 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14593 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14594 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14595 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14596 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14597 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14598 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14599 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14600 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14601 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14602 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14603 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14604 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14605 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14606 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14607 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14608 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14609 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14610 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14611 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14612 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14613 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14614
14615 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14616 * config/rs6000/440.md (ppc440-integer): Adjust.
14617 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14618 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14619 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14620 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14621 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14622 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14623 * config/rs6000/8540.md (ppc8540_su): Adjust.
14624 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14625 cell-cmp-microcoded): Adjust.
14626 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14627 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14628 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14629 e500mc64_delayed): Adjust.
14630 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14631 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14632 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14633 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14634 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14635 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14636 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14637 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14638 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14639 Adjust comment.
14640 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14641 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14642
14643 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14644
14645 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14646 (bits): New mode_attr.
14647 (idiv_ldiv): Delete mode_attr.
14648 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14649 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14650 rs6000_adjust_priority, is_nonpipeline_insn,
14651 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14652
14653 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14654 * config/rs6000/440.md (ppc440-idiv): Adjust.
14655 * config/rs6000/476.md (ppc476-idiv): Adjust.
14656 * config/rs6000/601.md (ppc601-idiv): Adjust.
14657 * config/rs6000/603.md (ppc603-idiv): Adjust.
14658 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14659 ppc620-ldiv): Adjust.
14660 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14661 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14662 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14663 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14664 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14665 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14666 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14667 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14668 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14669 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14670 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14671 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14672 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14673 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14674 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14675 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14676 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14677 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14678
14679 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14680
14681 * config/rs6000/rs6000.md (type): Delete "insert_word",
14682 "insert_dword". Add "insert".
14683 (size): Update comment.
14684 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14685 insn_must_be_first_in_group): Adjust.
14686 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14687 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14688 *insvsi_internal6, insvdi_internal): Adjust.
14689
14690 * config/rs6000/40x.md (ppc403-integer): Adjust.
14691 * config/rs6000/440.md (ppc440-integer): Adjust.
14692 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14693 * config/rs6000/601.md (ppc601-integer): Adjust.
14694 * config/rs6000/603.md (ppc603-integer): Adjust.
14695 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14696 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14697 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14698 * config/rs6000/8540.md (ppc8540_su): Adjust.
14699 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14700 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14701 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14702 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14703 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14704 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14705 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14706 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14707 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14708 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14709 * config/rs6000/power7.md (power7-integer): Adjust.
14710 * config/rs6000/power8.md (power8-1cyc): Adjust.
14711 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14712 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14713
14714 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14715
14716 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14717 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14718 (size): New attribute.
14719 (dot): New attribute.
14720 (cell_micro): Adjust.
14721 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14722 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14723 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14724 umuldi3_highpart): Adjust.
14725 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14726 rs6000_adjust_priority, is_nonpipeline_insn,
14727 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14728
14729 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14730 ppc405-imul3): Adjust.
14731 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14732 * config/rs6000/476.md (ppc476-imul): Adjust.
14733 * config/rs6000/601.md (ppc601-imul): Adjust.
14734 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14735 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14736 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14737 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14738 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14739 Adjust.
14740 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14741 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14742 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14743 cell-imul): Adjust.
14744 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14745 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14746 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14747 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14748 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14749 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14750 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14751 power4-lmul, power4-imul, power4-imul3): Adjust.
14752 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14753 power5-lmul, power5-imul, power5-imul3): Adjust.
14754 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14755 power6-lmul, power6-imul, power6-imul3): Adjust.
14756 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14757 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14758
14759 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14760 rs64a-lmul): Adjust.
14761 * config/rs6000/titan.md (titan_imul): Adjust.
14762
14763 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14764
14765 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14766 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14767 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14768 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14769 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14770 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14771 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14772 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14773 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14774 * config/rs6000/titan.md: Delete nonsensical comment.
14775 (titan_imul): Add type imul3.
14776 (titan_mulhw): Remove type imul3; add type halfmul.
14777
14778 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14779
14780 * config/rs6000/rs6000.md (type): Reorder, reformat.
14781
14782 2014-05-23 Martin Jambor <mjambor@suse.cz>
14783
14784 PR tree-optimization/53787
14785 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14786 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14787 analysis_done, update all uses.
14788 * ipa-prop.c: Include domwalk.h
14789 (param_analysis_info): Removed.
14790 (param_aa_status): New type.
14791 (ipa_bb_info): Likewise.
14792 (func_body_info): Likewise.
14793 (ipa_get_bb_info): New function.
14794 (aa_overwalked): Likewise.
14795 (find_dominating_aa_status): Likewise.
14796 (parm_bb_aa_status_for_bb): Likewise.
14797 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14798 (load_from_unmodified_param): Accept func_body_info as a parameter
14799 instead of parms_ainfo.
14800 (parm_ref_data_preserved_p): Changed to use new param AA info.
14801 (parm_ref_data_pass_through_p): Likewise.
14802 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14803 (compute_complex_assign_jump_func): Changed to use new param AA info.
14804 (compute_complex_ancestor_jump_func): Likewise.
14805 (ipa_compute_jump_functions_for_edge): Likewise.
14806 (ipa_compute_jump_functions): Removed.
14807 (ipa_compute_jump_functions_for_bb): New function.
14808 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14809 declarations down.
14810 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14811 and info, moved variable declarations down.
14812 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14813 node and info.
14814 (ipa_analyze_stmt_uses): Likewise.
14815 (ipa_analyze_params_uses): Removed.
14816 (ipa_analyze_params_uses_in_bb): New function.
14817 (ipa_analyze_controlled_uses): Likewise.
14818 (free_ipa_bb_info): Likewise.
14819 (analysis_dom_walker): New class.
14820 (ipa_analyze_node): Handle node-specific forbidden analysis,
14821 initialize and free func_body_info, use dominator walker.
14822 (ipcp_modif_dom_walker): New class.
14823 (ipcp_transform_function): Create and free func_body_info, use
14824 ipcp_modif_dom_walker, moved a lot of functionality there.
14825
14826 2014-05-23 Marek Polacek <polacek@redhat.com>
14827 Jakub Jelinek <jakub@redhat.com>
14828
14829 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14830 * gcc.c (sanitize_spec_function): Likewise.
14831 * convert.c (convert_to_integer): Include "ubsan.h". Add
14832 floating-point to integer instrumentation.
14833 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14834 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14835 SANITIZE_NONDEFAULT.
14836 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14837 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14838 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14839 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14840 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14841 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14842 float/double/long double.
14843 (ubsan_instrument_float_cast): New function.
14844 * ubsan.h (ubsan_instrument_float_cast): Declare.
14845
14846 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14847
14848 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14849 predicate.
14850 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14851 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14852 Adjust for tailcalling through registers.
14853 * config/aarch64/aarch64.h (enum reg_class): New caller save
14854 register class.
14855 (REG_CLASS_NAMES): Likewise.
14856 (REG_CLASS_CONTENTS): Likewise.
14857 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14858 Allow tailcalling without decls.
14859
14860 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14861
14862 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14863 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14864
14865 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14866 gsi, and variables v_* to v*.
14867
14868 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14869
14870 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14871
14872 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14873
14874 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14875 * omp-low.c: Update accordingly.
14876
14877 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14878 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14879 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14880 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14881 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14882 GF_OMP_TARGET_KIND_UPDATE.
14883
14884 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14885 Explicitly enumerate the expected region types.
14886
14887 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14888
14889 PR other/56955
14890 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14891 documentation; the old documentation didn't clearly state the
14892 constraints on the contents of the pointed-to storage.
14893
14894 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14895
14896 Fix bootstrap error on ia64
14897 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14898 Return default value.
14899
14900 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14901
14902 PR tree-optimization/54733
14903 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14904 (CMPNOP): Define.
14905 (find_bswap_or_nop_load): New.
14906 (find_bswap_1): Renamed to ...
14907 (find_bswap_or_nop_1): This. Also add support for memory source.
14908 (find_bswap): Renamed to ...
14909 (find_bswap_or_nop): This. Also add support for memory source and
14910 detection of bitwise operations equivalent to load in target
14911 endianness.
14912 (execute_optimize_bswap): Likewise. Also move its leading comment back
14913 in place and split statement transformation into ...
14914 (bswap_replace): This.
14915
14916 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14917
14918 PR rtl-optimization/61215
14919 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14920 simplify_gen_subreg until final substitution.
14921
14922 2014-05-23 Alan Modra <amodra@gmail.com>
14923
14924 PR target/61231
14925 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14926 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14927 Use "Y" constraint rather than "m".
14928
14929 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14930
14931 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14932 define.
14933 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14934 New function declaration.
14935 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14936 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14937 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14938 (aarch64_init_builtins) : Initialize builtins
14939 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14940 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14941 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14942 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14943 and __builtins_aarch64_set_fpsr.
14944 (aarch64_atomic_assign_expand_fenv): New function.
14945 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14946 (get_fpcr) : Likewise.
14947 (set_fpsr) : Likewise.
14948 (get_fpsr) : Likewise.
14949 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14950 and UNSPECV_SET_FPSR.
14951 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14952 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14953 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14954
14955 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14956
14957 PR rtl-optimization/60969
14958 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14959 constraints. Set up mem cost for NO_REGS case.
14960
14961 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14962
14963 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14964
14965 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14966
14967 * config/darwin.c: Include "lto-section-names.h".
14968 (LTO_SEGMENT_NAME): Don't define.
14969 * config/i386/winnt.c: Include "lto-section-names.h".
14970 * lto-streamer.c: Include "lto-section-names.h".
14971 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14972 * lto-wrapper.c: Include "lto-section-names.h".
14973 (LTO_SECTION_NAME_PREFIX): Don't define.
14974 * lto-section-names.h: New file.
14975 * cgraphunit.c: Include "lto-section-names.h".
14976
14977 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14978
14979 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14980
14981 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14982
14983 PR target/61208
14984 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14985
14986 2014-05-22 Nick Clifton <nickc@redhat.com>
14987
14988 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14989
14990 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14991
14992 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14993 -> (T)A transformation to integer types.
14994
14995 2014-05-22 Teresa Johnson <tejohnson@google.com>
14996
14997 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14998 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14999 (gcov_rewrite): Use gcov_nonruntime_assert.
15000 (gcov_open): Ditto.
15001 (gcov_write_words): Ditto.
15002 (gcov_write_length): Ditto.
15003 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15004 gcc_assert from IN_LIBGCOV code.
15005 (gcov_read_summary): Use gcov_error to flag profile corruption.
15006 (gcov_sync): Use gcov_nonruntime_assert.
15007 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15008 (gcov_histo_index): Use gcov_nonruntime_assert.
15009 (static void gcov_histogram_merge): Ditto.
15010 (compute_working_sets): Ditto.
15011 * gcov-io.h (gcov_nonruntime_assert): Define.
15012 (gcov_error): Define for !IN_LIBGCOV
15013
15014 2014-05-22 Richard Biener <rguenther@suse.de>
15015
15016 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15017 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15018 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15019 and deallocation site.
15020 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15021 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15022 passing through the incoming points-to set.
15023 (handle_lhs_call): Use flags argument instead of recomputing it.
15024 (find_func_aliases_for_call): Call handle_lhs_call with proper
15025 call return flags.
15026
15027 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15028
15029 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15030 all padding bits in REAL_VALUE_TYPE are cleared.
15031
15032 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15033
15034 Cleanup and improve multipass_dfa_lookahead_guard
15035 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15036 (core2i7_first_cycle_multipass_begin,)
15037 (core2i7_first_cycle_multipass_issue,)
15038 (core2i7_first_cycle_multipass_backtrack): Update signature.
15039 * config/ia64/ia64.c
15040 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15041 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15042 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15043 hook definition.
15044 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15045 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15046 values.
15047 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15048 return values.
15049 * doc/tm.texi: Regenerate.
15050 * doc/tm.texi.in
15051 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15052 * haifa-sched.c (ready_try): Make signed to allow negative values.
15053 (rebug_ready_list_1): Update.
15054 (choose_ready): Simplify.
15055 (sched_extend_ready_list): Update.
15056
15057 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15058
15059 Remove IA64 speculation tweaking flags
15060 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15061 speculation tuning flags.
15062 (msched-prefer-non-data-spec-insns,)
15063 (msched-prefer-non-control-spec-insns): Obsolete options.
15064 * haifa-sched.c (choose_ready): Remove handling of
15065 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15066 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15067 and PREFER_NON_DATA_SPEC.
15068 * sel-sched.c (process_spec_exprs): Remove handling of
15069 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15070
15071 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15072
15073 Improve scheduling debug output
15074 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15075 (advance_one_cycle): Update.
15076 (schedule_insn, queue_to_ready): Add debug printouts.
15077 (debug_ready_list_1): New static function.
15078 (debug_ready_list): Update.
15079 (max_issue): Add debug printouts.
15080 (dump_insn_stream): New static function.
15081 (schedule_block): Use it. Also better indent printouts.
15082
15083 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15084
15085 Fix sched_insn debug counter
15086 * haifa-sched.c (schedule_insn): Update.
15087 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15088 (save_backtrack_point, restore_backtrack_point): Update.
15089 (first_nonscheduled_insn): New static function.
15090 (queue_to_ready, choose_ready): Use it.
15091 (schedule_block): Init nonscheduled_insns_begin.
15092 (sched_emit_insn): Update.
15093
15094
15095 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15096
15097 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15098 to GENERAL_REGS.
15099 (aarch64_secondary_reload) : LikeWise.
15100 (aarch64_class_max_nregs) : Remove CORE_REGS.
15101 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15102 (REG_CLASS_NAMES) : Likewise.
15103 (REG_CLASS_CONTENTS) : LikeWise.
15104 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15105
15106 2014-05-21 Guozhi Wei <carrot@google.com>
15107
15108 PR target/61202
15109 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15110 constraint.
15111 (vqdmulhq_n_s16): Likewise.
15112
15113 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15114
15115 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15116
15117 2014-05-21 Marek Polacek <polacek@redhat.com>
15118
15119 PR sanitizer/61272
15120 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15121
15122 2014-05-21 Martin Jambor <mjambor@suse.cz>
15123
15124 * doc/invoke.texi (Optimize Options): Document parameters
15125 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15126 ipa-cp-array-index-hint-bonus.
15127
15128 2014-05-21 Mark Wielaard <mjw@redhat.com>
15129
15130 PR debug/16063
15131 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15132 version >= 3 or not strict DWARF.
15133 * langhooks.h (struct lang_hooks_for_types): Add
15134 enum_underlying_base_type.
15135 * langhooks.c (lhd_enum_underlying_base_type): New function.
15136 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15137 enum_underlying_base_type.
15138 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15139 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15140 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15141
15142 2014-05-21 Richard Biener <rguenther@suse.de>
15143
15144 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15145
15146 2014-05-21 John Marino <gnugcc@marino.st>
15147
15148 * config.gcc (*-*-dragonfly*): New target.
15149 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15150 * configure: Regenerate.
15151 * config/dragonfly-stdint.h: New.
15152 * config/dragonfly.h: New.
15153 * config/dragonfly.opt: New.
15154 * config/i386/dragonfly.h: New.
15155 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15156
15157 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15158
15159 * tree.def (VOID_CST): New.
15160 * tree-core.h (TI_VOID): New.
15161 * tree.h (void_node): New.
15162 * tree.c (tree_node_structure_for_code, tree_code_size)
15163 (iterative_hash_expr): Handle VOID_CST.
15164 (build_common_tree_nodes): Initialize void_node.
15165
15166 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15167
15168 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15169 functions.
15170 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15171
15172 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15173 more places.
15174
15175 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15176 flag_reorder_blocks_and_partition.
15177 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15178
15179 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15180
15181 PR target/54236
15182 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15183 constraints.
15184 (*addc_r_t): Add new insn_and_split.
15185
15186 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15187
15188 PR middle-end/61252
15189 * omp-low.c (handle_simd_reference): New function.
15190 (lower_rec_input_clauses): Use it. Defer adding reference
15191 initialization even for reduction without placeholder if in simd,
15192 handle it properly later on.
15193
15194 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15195
15196 PR tree-optimization/60899
15197 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15198 assume all static symbols will have definition wile parsing and
15199 check the do have definition later in compilation; check that
15200 variable referring symbol will be output before concluding that
15201 reference is safe; be conservative for referring local statics;
15202 be more precise about when comdat is output in other partition.
15203
15204 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15205
15206 PR bootstrap/60984
15207 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15208 parameter.
15209 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15210 (ipa_inline): Loop inline_to_all_callers until no more aliases
15211 are removed.
15212
15213 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15214
15215 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15216 set writeonly flag only for vars actually written to.
15217
15218 2014-05-20 Dehao Chen <dehao@google.com>
15219
15220 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15221 and callee count to get clone count.
15222 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15223 count in copy_body.
15224
15225 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15226
15227 PR rtl-optimization/61243
15228 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15229
15230 2014-05-20 Xinliang David Li <davidxl@google.com>
15231
15232 * cgraphunit.c (walk_polymorphic_call_targets): Add
15233 dbgcnt and fopt-info support.
15234 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15235 * ipa-devirt.c (ipa_devirt): Ditto.
15236 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15237 * ipa.c (walk_polymorphic_call_targets): Ditto.
15238 * gimple-fold.c (fold_gimple_assign): Ditto.
15239 (gimple_fold_call): Ditto.
15240 * dbgcnt.def: New counter.
15241
15242 2014-05-20 DJ Delorie <dj@redhat.com>
15243
15244 * config/msp430/msp430.md (split): Don't allow subregs when
15245 splitting SImode adds.
15246 (andneghi): Fix subtraction logic.
15247 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15248
15249 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15250
15251 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15252 symbols.
15253 * except.c (switch_to_exception_section, resolve_unique_section,
15254 get_named_text_section, default_function_rodata_section,
15255 align_variable, get_block_for_decl, default_section_type_flags):
15256 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15257 * symtab.c (symtab_add_to_same_comdat_group,
15258 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15259 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15260 Likewise.
15261 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15262 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15263 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15264 (c6x_function_in_section_p): Likewise.
15265 * config/darwin.c (machopic_select_section): Likewise.
15266 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15267 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15268 * config/mep/mep.c (mep_select_section): LIkewise.
15269 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15270
15271 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15272
15273 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15274 EH region of calls to pure functions that can throw an exception.
15275 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15276 (copy_reference_ops_from_call): Also copy the EH region of the call if
15277 it can throw an exception.
15278
15279 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15280
15281 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15282 nested VEC_SELECTs that are inverses of each other.
15283
15284 2014-05-20 Richard Biener <rguenther@suse.de>
15285
15286 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15287 (extract_and_process_scc_for_name): not here.
15288 (cond_dom_walker::before_dom_children): Only process
15289 stmts that end the BB in interesting ways.
15290 (run_scc_vn): Mark param uses as visited.
15291
15292 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15293
15294 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15295 arm_restrict_it.
15296
15297 2014-05-20 Nick Clifton <nickc@redhat.com>
15298
15299 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15300 (msp430_gimplify_va_arg_expr): New function.
15301 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15302
15303 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15304 operand 0 in order to prevent confusion about the number of
15305 registers involved.
15306
15307 2014-05-20 Richard Biener <rguenther@suse.de>
15308
15309 PR tree-optimization/61221
15310 * tree-ssa-pre.c (el_to_update): Remove.
15311 (eliminate_dom_walker::before_dom_children): Handle released
15312 VDEFs by value-numbering them to the associated VUSE. Update
15313 stmt immediately for substituted call address.
15314 (eliminate): Remove delayed stmt updating code.
15315 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15316 possibly late re-numbered vuses.
15317 (vn_reference_lookup_2): Adjust.
15318 (vn_reference_lookup_pieces): Likewise.
15319 (vn_reference_lookup): Likewise.
15320
15321 2014-05-20 Richard Biener <rguenther@suse.de>
15322
15323 * config.gcc: Remove need_64bit_hwint.
15324 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15325 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15326 it to be true.
15327 * config.in: Regenerate.
15328 * configure: Likewise.
15329
15330 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15331
15332 * doc/extend.texi: Create Label Attributes section,
15333 move all label attributes into it and reference it.
15334
15335 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15336
15337 * arm.c (thumb1_reorg): When scanning backwards skip anything
15338 that's not a proper insn.
15339
15340 2014-05-19 Richard Biener <rguenther@suse.de>
15341
15342 PR tree-optimization/61221
15343 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15344 Do nothing for unreachable blocks.
15345 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15346 Improve unreachability detection.
15347
15348 2014-05-19 Richard Biener <rguenther@suse.de>
15349
15350 PR tree-optimization/61209
15351 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15352
15353 2014-05-19 Nick Clifton <nickc@redhat.com>
15354
15355 * except.c (init_eh): Fix computation of builtin setjmp buffer
15356 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15357
15358 2014-05-19 Richard Biener <rguenther@suse.de>
15359
15360 PR tree-optimization/61184
15361 * tree-vrp.c (is_negative_overflow_infinity): Use
15362 TREE_OVERFLOW_P and do that check first.
15363 (is_positive_overflow_infinity): Likewise.
15364 (is_overflow_infinity): Likewise.
15365 (vrp_operand_equal_p): Properly treat operands with
15366 differing overflow as not equal.
15367
15368 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15369
15370 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15371 shift simplification where it was intended.
15372
15373 2014-05-19 Christian Bruel <christian.bruel@st.com>
15374
15375 PR target/61195
15376 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15377
15378 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15379
15380 PR target/61084
15381 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15382 than wide_int.
15383
15384 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15385
15386 * reg-notes.def (CROSSING_JUMP): Likewise.
15387 * rtl.h (rtx_def): Update comment for jump flag.
15388 (CROSSING_JUMP_P): Define.
15389 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15390 of a REG_CROSSING_JUMP note.
15391 * cfghooks.c (tidy_fallthru_edges): Likewise.
15392 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15393 * emit-rtl.c (try_split): Likewise.
15394 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15395 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15396 * jump.c (redirect_jump_2): Likewise.
15397 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15398 (relax_delay_slots): Likewise.
15399 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15400 (bbit_di): Likewise.
15401 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15402 * config/sh/sh.md (jump_compact): Likewise.
15403 * bb-reorder.c (rotate_loop): Likewise.
15404 (pass_duplicate_computed_gotos::execute): Likewise.
15405 (add_reg_crossing_jump_notes): Rename to...
15406 (update_crossing_jump_flags): ...this.
15407 (pass_partition_blocks::execute): Update accordingly.
15408
15409 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15410
15411 * tree.h: Remove extraneous template <>.
15412
15413 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15414
15415 * ipa.c (symtab_remove_unreachable_nodes): Remove
15416 symbol from comdat group if its body was eliminated.
15417 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15418 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15419 (symtab_unregister_node): ... this one.
15420 (verify_symtab_base): More strict checking of comdats.
15421 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15422
15423 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15424
15425 * tree-pass.h (make_pass_ipa_comdats): New pass.
15426 * timevar.def (TV_IPA_COMDATS): New timevar.
15427 * passes.def (pass_ipa_comdats): Add.
15428 * Makefile.in (OBJS): Add ipa-comdats.o
15429 * ipa-comdats.c: New file.
15430
15431 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15432
15433 * ipa.c (update_visibility_by_resolution_info): New function.
15434 (function_and_variable_visibility): Use it.
15435
15436 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15437
15438 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15439 New functions.
15440 (FOR_EACH_DEFINED_SYMBOL): New macro.
15441 (varpool_first_static_initializer, varpool_next_static_initializer,
15442 varpool_first_defined_variable, varpool_next_defined_variable):
15443 Fix comments.
15444 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15445
15446 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15447
15448 * ggc-page.c (ggc_handle_finalizers): Add comment.
15449
15450 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15451
15452 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15453 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15454 (ggc_internal_cleared_alloc): Likewise.
15455 * ggc-page.c (finalizer): New class.
15456 (vec_finalizer): Likewise.
15457 (globals::finalizers): New member.
15458 (globals::vec_finalizers): Likewise.
15459 (ggc_internal_alloc): Record the finalizer if any for the block being
15460 allocated.
15461 (ggc_handle_finalizers): New function.
15462 (ggc_collect): Call ggc_handle_finalizers.
15463 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15464 finalizer.
15465 (ggc_internal_cleared_alloc): Likewise.
15466 (finalize): New function.
15467 (need_finalization_p): Likewise.
15468 (ggc_alloc): Install the type's destructor as the finalizer if it
15469 might do something.
15470 (ggc_cleared_alloc): Likewise.
15471 (ggc_vec_alloc): Likewise.
15472 (ggc_cleared_vec_alloc): Likewise.
15473
15474 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15475
15476 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15477
15478 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15479
15480 * alias.c (record_alias_subset): Adjust.
15481 * bitmap.c (bitmap_element_allocate): Likewise.
15482 (bitmap_gc_alloc_stat): Likewise.
15483 * cfg.c (init_flow): Likewise.
15484 (alloc_block): Likewise.
15485 (unchecked_make_edge): Likewise.
15486 * cfgloop.c (alloc_loop): Likewise.
15487 (flow_loops_find): Likewise.
15488 (rescan_loop_exit): Likewise.
15489 * cfgrtl.c (init_rtl_bb_info): Likewise.
15490 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15491 (cgraph_allocate_node): Likewise.
15492 (cgraph_create_edge_1): Likewise.
15493 (cgraph_allocate_init_indirect_info): Likewise.
15494 * cgraphclones.c (cgraph_clone_edge): Likewise.
15495 * cgraphunit.c (add_asm_node): Likewise.
15496 (init_lowered_empty_function): Likewise.
15497 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15498 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15499 (alpha_use_linkage): Likewise.
15500 * config/arc/arc.c (arc_init_machine_status): Likewise.
15501 * config/arm/arm.c (arm_init_machine_status): Likewise.
15502 * config/avr/avr.c (avr_init_machine_status): Likewise.
15503 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15504 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15505 * config/cris/cris.c (cris_init_machine_status): Likewise.
15506 * config/darwin.c (machopic_indirection_name): Likewise.
15507 (darwin_build_constant_cfstring): Likewise.
15508 (darwin_enter_string_into_cfstring_table): Likewise.
15509 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15510 * config/frv/frv.c (frv_init_machine_status): Likewise.
15511 * config/i386/i386.c (get_dllimport_decl): Likewise.
15512 (ix86_init_machine_status): Likewise.
15513 (assign_386_stack_local): Likewise.
15514 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15515 (i386_pe_maybe_record_exported_symbol): Likewise.
15516 (i386_pe_record_stub): Likewise.
15517 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15518 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15519 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15520 (m32c_note_pragma_address): Likewise.
15521 * config/mep/mep.c (mep_init_machine_status): Likewise.
15522 (mep_note_pragma_flag): Likewise.
15523 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15524 (mips16_local_alias): Likewise.
15525 (mips_init_machine_status): Likewise.
15526 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15527 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15528 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15529 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15530 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15531 * config/pa/pa.c (pa_init_machine_status): Likewise.
15532 (pa_get_deferred_plabel): Likewise.
15533 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15534 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15535 (rs6000_init_machine_status): Likewise.
15536 (output_toc): Likewise.
15537 * config/s390/s390.c (s390_init_machine_status): Likewise.
15538 * config/score/score.c (score_output_external): Likewise.
15539 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15540 * config/spu/spu.c (spu_init_machine_status): Likewise.
15541 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15542 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15543 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15544 * coverage.c (coverage_end_function): Likewise.
15545 * dbxout.c (dbxout_init): Likewise.
15546 * doc/gty.texi: Don't mention variable_size attribute.
15547 * dwarf2cfi.c (new_cfi): Adjust.
15548 (new_cfi_row): Likewise.
15549 (copy_cfi_row): Likewise.
15550 (create_cie_data): Likewise.
15551 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15552 (new_loc_descr): Likewise.
15553 (find_AT_string_in_table): Likewise.
15554 (add_addr_table_entry): Likewise.
15555 (new_die): Likewise.
15556 (add_var_loc_to_decl): Likewise.
15557 (clone_die): Likewise.
15558 (clone_as_declaration): Likewise.
15559 (break_out_comdat_types): Likewise.
15560 (new_loc_list): Likewise.
15561 (add_loc_descr_to_each): Likewise.
15562 (add_location_or_const_value_attribute): Likewise.
15563 (add_linkage_name): Likewise.
15564 (lookup_filename): Likewise.
15565 (dwarf2out_var_location): Likewise.
15566 (new_line_info_table): Likewise.
15567 (dwarf2out_init): Likewise.
15568 (mem_loc_descriptor): Likewise.
15569 (loc_descriptor): Likewise.
15570 (add_const_value_attribute): Likewise.
15571 (tree_add_const_value_attribute): Likewise.
15572 (comp_dir_string): Likewise.
15573 (dwarf2out_vms_debug_main_pointer): Likewise.
15574 (string_cst_pool_decl): Likewise.
15575 * emit-rtl.c (set_mem_attrs): Likewise.
15576 (get_reg_attrs): Likewise.
15577 (start_sequence): Likewise.
15578 (init_emit): Likewise.
15579 (init_emit_regs): Likewise.
15580 * except.c (init_eh_for_function): Likewise.
15581 (gen_eh_region): Likewise.
15582 (gen_eh_region_catch): Likewise.
15583 (gen_eh_landing_pad): Likewise.
15584 (add_call_site): Likewise.
15585 * function.c (add_frame_space): Likewise.
15586 (insert_temp_slot_address): Likewise.
15587 (assign_stack_temp_for_type): Likewise.
15588 (get_hard_reg_initial_val): Likewise.
15589 (allocate_struct_function): Likewise.
15590 (prepare_function_start): Likewise.
15591 (types_used_by_var_decl_insert): Likewise.
15592 * gengtype.c (variable_size_p): Remove function.
15593 (enum alloc_quantity): Remove enum.
15594 (write_typed_alloc_def): Remove function.
15595 (write_typed_struct_alloc_def): Likewise.
15596 (write_typed_typedef_alloc_def): Likewise.
15597 (write_typed_alloc_defns): Likewise.
15598 (main): Adjust.
15599 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15600 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15601 * ggc.h (ggc_alloc): new function.
15602 (ggc_cleared_alloc): Likewise.
15603 (ggc_vec_alloc): Template on type of vector element, and remove
15604 element size argument.
15605 (ggc_cleared_vec_alloc): Likewise.
15606 * gimple.c (gimple_build_omp_for): Adjust.
15607 (gimple_copy): Likewise.
15608 * ipa-cp.c (get_replacement_map): Likewise.
15609 (find_aggregate_values_for_callers_subset): Likewise.
15610 (known_aggs_to_agg_replacement_list): Likewise.
15611 * ipa-devirt.c (get_odr_type): Likewise.
15612 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15613 (read_agg_replacement_chain): Likewise.
15614 * loop-iv.c (get_simple_loop_desc): Likewise.
15615 * lto-cgraph.c (input_node_opt_summary): Likewise.
15616 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15617 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15618 (input_eh_region): Likewise.
15619 (input_eh_lp): Likewise.
15620 (input_cfg): Likewise.
15621 * optabs.c (set_optab_libfunc): Likewise.
15622 (init_tree_optimization_optabs): Likewise.
15623 (set_conv_libfunc): Likewise.
15624 * passes.c (do_per_function_toporder): Likewise.
15625 * rtl.h: Don't use variable_size gty attribute.
15626 * sese.c (if_region_set_false_region): Adjust.
15627 * stringpool.c (gt_pch_save_stringpool): Likewise.
15628 * target-globals.c (save_target_globals): Likewise.
15629 * toplev.c (general_init): Likewise.
15630 * trans-mem.c (record_tm_replacement): Likewise.
15631 (split_bb_make_tm_edge): Likewise.
15632 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15633 * tree-data-ref.h (lambda_vector_new): Likewise.
15634 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15635 * tree-iterator.c (tsi_link_before): Likewise.
15636 (tsi_link_after): Likewise.
15637 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15638 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15639 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15640 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15641 * tree-ssa.c (init_tree_ssa): Adjust.
15642 * tree-ssanames.c (set_range_info): Likewise.
15643 (get_ptr_info): Likewise.
15644 (duplicate_ssa_name_ptr_info): Likewise.
15645 (duplicate_ssa_name_range_info): Likewise.
15646 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15647 (unpack_ts_fixed_cst_value_fields): Likewise.
15648 * tree.c (build_fixed): Likewise.
15649 (build_real): Likewise.
15650 (build_string): Likewise.
15651 (decl_priority_info): Likewise.
15652 (decl_debug_expr_insert): Likewise.
15653 (decl_value_expr_insert): Likewise.
15654 (decl_debug_args_insert): Likewise.
15655 (type_hash_add): Likewise.
15656 (build_omp_clause): Likewise.
15657 * ubsan.c (decl_for_type_insert): Likewise.
15658 * varasm.c (get_unnamed_section): Likewise.
15659 (get_noswitch_section): Likewise.
15660 (get_section): Likewise.
15661 (get_block_for_section): Likewise.
15662 (create_block_symbol): Likewise.
15663 (build_constant_desc): Likewise.
15664 (create_constant_pool): Likewise.
15665 (force_const_mem): Likewise.
15666 (record_tm_clone_pair): Likewise.
15667 * varpool.c (varpool_create_empty_node): Likewise.
15668
15669 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15670
15671 * dwarf2out.c (tree_add_const_value_attribute): Call
15672 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15673 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15674 instead of ggc_internal_<x>alloc_stat.
15675 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15676 (ggc_realloc): Likewise.
15677 * ggc-none.c (ggc_internal_alloc): Likewise.
15678 (ggc_internal_cleared_alloc): Likewise.
15679 * ggc-page.c: Likewise.
15680 * ggc.h (ggc_internal_alloc_stat): Likewise.
15681 (ggc_internal_alloc): Remove macro.
15682 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15683 (ggc_internal_cleared_alloc): Remove macro.
15684 (GGC_RESIZEVEC): Adjust.
15685 (ggc_resizevar): Remove macro.
15686 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15687 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15688 (ggc_internal_vec_cleared_alloc): Remove macro.
15689 (ggc_alloc_atomic_stat): Drop _stat suffix.
15690 (ggc_alloc_atomic): Remove macro.
15691 (ggc_alloc_cleared_atomic): Remove macro.
15692 (ggc_alloc_string_stat): Drop _stat suffix.
15693 (ggc_alloc_string): Remove macro.
15694 (ggc_alloc_rtx_def_stat): Adjust.
15695 (ggc_alloc_tree_node_stat): Likewise.
15696 (ggc_alloc_cleared_tree_node_stat): Likewise.
15697 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15698 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15699 * gimple.c (gimple_build_omp_for): Likewise.
15700 (gimple_copy): Likewise.
15701 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15702 * toplev.c (realloc_for_line_map): Adjust.
15703 * tree-data-ref.h (lambda_vector_new): Likewise.
15704 * tree-phinodes.c (allocate_phi_node): Likewise.
15705 * tree.c (grow_tree_vec_stat): Likewise.
15706 * vec.h (va_gc::reserve): Adjust.
15707
15708 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15709
15710 * config/microblaze/microblaze.c (break_handler): New Declaration.
15711 (microblaze_break_function_p,microblaze_is_break_handler): New.
15712 (compute_frame_size): Use microblaze_break_function_p.
15713 Add the test of break_handler.
15714 (microblaze_function_prologue) : Add the test of variable
15715 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15716 (microblaze_function_epilogue) : Add the test of break_handler.
15717 (microblaze_globalize_label) : Add the test of break_handler.
15718 Check the name by BREAK_HANDLER_NAME.
15719
15720 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15721
15722 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15723 microblaze_is_break_handler test.
15724 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15725 Use SYMBOL_REF_DECL.
15726
15727 * config/microblaze/microblaze-protos.h
15728 (microblaze_break_function_p,microblaze_is_break_handler):
15729 New Declaration.
15730
15731 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15732 new MicroBlaze break_handler functions.
15733
15734 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15735
15736 * doc/extend.texi (Size of an asm): Move node text according
15737 to its @menu entry position.
15738
15739 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15740
15741 PR tree-optimization/61140
15742 PR tree-optimization/61150
15743 PR tree-optimization/61197
15744 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15745
15746 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15747
15748 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15749
15750 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15751
15752 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15753 __SIZEOF_INT128__ is defined.
15754
15755 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15756
15757 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15758 (rs6000_delegitimize_address): Use it.
15759
15760 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15761
15762 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15763 inplace argument. Store the new address in the original MEM when true.
15764 * emit-rtl.c (change_address_1): Likewise.
15765 (adjust_address_1, adjust_automodify_address_1, offset_address):
15766 Update accordingly.
15767 * rtl.h (plus_constant): Add an inplace argument.
15768 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15769 when true. Avoid generating (plus X (const_int 0)).
15770 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15771 in-place. Pass true to plus_constant.
15772 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15773
15774 2014-05-16 Dehao Chen <dehao@google.com>
15775
15776 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15777
15778 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15779
15780 PR target/54089
15781 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15782 patterns.
15783 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15784
15785 2014-05-16 Dehao Chen <dehao@google.com>
15786
15787 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15788 optimize_function_for_size_p.
15789 * regs.h (REG_FREQ_FROM_BB): Likewise.
15790
15791 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15792
15793 PR target/51244
15794 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15795 negt_reg_operand cases.
15796 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15797 predicate.
15798 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15799
15800 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15801
15802 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15803 target variants.
15804
15805 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15806
15807 Revert:
15808 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15809
15810 * tree-cfg.c (dump_function_to_file): Dump the return type of
15811 functions, in a line to itself before the function body, mimicking
15812 the layout of a C function.
15813
15814 2014-05-16 Dehao Chen <dehao@google.com>
15815
15816 * cfghooks.c (make_forwarder_block): Use direct computation to
15817 get fall-through edge's count and frequency.
15818
15819 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15820
15821 * config/arc/arc.c (arc_init): Fix typo in error message.
15822 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15823 (split_stack_prologue_scratch_regno): Likewise.
15824 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15825 word from error message.
15826
15827 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15828
15829 * ira-costs.c: Fix typo in comment.
15830
15831 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15832
15833 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15834
15835 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15836
15837 * varpool.c (dump_varpool_node): Dump write-only flag.
15838 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15839 write-only flag.
15840 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15841 write-only variables.
15842 * ipa.c (process_references): New function.
15843 (set_readonly_bit): New function.
15844 (set_writeonly_bit): New function.
15845 (clear_addressable_bit): New function.
15846 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15847 fix handling of aliases.
15848 * cgraph.h (struct varpool_node): Add writeonly flag.
15849
15850 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15851
15852 PR rtl-optimization/60969
15853 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15854 Calculate costs for this case.
15855
15856 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15857
15858 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15859 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15860
15861 2014-05-16 Richard Biener <rguenther@suse.de>
15862
15863 PR tree-optimization/61194
15864 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15865 bool patterns ending in a COND_EXPR.
15866
15867 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15868
15869 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15870
15871 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15872
15873 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15874 where we were unable to cost an RTX.
15875
15876 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15877
15878 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15879 HIGH, LO_SUM.
15880
15881 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15882 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15883
15884 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15885
15886 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15887 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15888
15889 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15890 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15891
15892 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15893 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15894
15895 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15896 operators.
15897
15898 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15899 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15900
15901 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15902 DIV/MOD.
15903
15904 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15905 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15906
15907 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15908 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
15909
15910 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15911 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15912
15913 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15914 rotates and shifts.
15915
15916 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15917 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15918
15919 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15920 ZERO_EXTEND and SIGN_EXTEND better.
15921
15922 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15923 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15924
15925 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15926 logical operations.
15927
15928 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15929 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15930
15931 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15932 costs when costing loads and stores to memory.
15933
15934 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15935 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15936
15937 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15938 for SET RTX.
15939
15940 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15941
15942 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15943
15944 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15945 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15946
15947 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15948 to...
15949 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15950 well formed.
15951 (aarch64_rtx_mult_cost): New.
15952 (aarch64_rtx_costs): Use it, refactor as appropriate.
15953
15954 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15955 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15956
15957 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15958 emit instructions, return number of instructions which would
15959 be emitted.
15960 (aarch64_add_constant): Update call to aarch64_build_constant.
15961 (aarch64_output_mi_thunk): Likewise.
15962 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15963 a CONST_DOUBLE.
15964
15965 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15966
15967 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15968 (TARGET_RTX_COSTS): Call it.
15969
15970 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15971
15972 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15973 (cortexa57_vector_cost): Likewise.
15974 (cortexa57_tunings): Use them.
15975
15976 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15977
15978 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15979 (cpu_addrcost_table): Use it.
15980 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15981 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15982 move it.
15983
15984 2014-05-16 Richard Biener <rguenther@suse.de>
15985
15986 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15987 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15988 (visit_phi): Ignore edges marked as not executable.
15989 (class cond_dom_walker): New.
15990 (cond_dom_walker::before_dom_children): Value-number
15991 control statements and mark successor edges as not
15992 executable if possible.
15993 (run_scc_vn): First walk all control statements in
15994 dominator order, marking edges as not executable.
15995 * tree-inline.c (copy_edges_for_bb): Be not confused
15996 about random edge flags.
15997
15998 2014-05-16 Richard Biener <rguenther@suse.de>
15999
16000 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16001
16002 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16003
16004 PR target/61193
16005 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16006 (__TM_simple_begin): Use it.
16007 (__TM_begin): Likewise.
16008
16009 2014-05-15 Martin Jambor <mjambor@suse.cz>
16010
16011 PR ipa/61085
16012 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16013 type_preserved flag when the indirect edge is polymorphic.
16014
16015 2014-05-15 Martin Jambor <mjambor@suse.cz>
16016
16017 PR tree-optimization/61090
16018 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16019 build_ref_for_model.
16020
16021 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16022
16023 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16024 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16025
16026 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16027
16028 PR tree-optimization/61158
16029 * fold-const.c (fold_binary_loc): If X is zero-extended and
16030 shiftc >= prec, make sure zerobits is all ones instead of
16031 invoking undefined behavior.
16032
16033 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16034
16035 * regcprop.h: New file.
16036 * regcprop.c (skip_debug_insn_p): New decl.
16037 (replace_oldest_value_reg): Check skip_debug_insn_p.
16038 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16039 * shrink-wrap.c: Include regcprop.h.
16040 (prepare_shrink_wrap): Call
16041 copyprop_hardreg_forward_bb_without_debug_insn.
16042
16043 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16044
16045 * shrink-wrap.h: Update comment.
16046 * shrink-wrap.c: Update comment.
16047 (next_block_for_reg): Rename to live_edge_for_reg.
16048 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16049 (move_insn_for_shrink_wrap): Split live_edge.
16050 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16051
16052 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16053
16054 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16055 Delete.
16056 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16057 * config/sparc/sparc.md (fptype_ut699): New attribute.
16058 (in_branch_delay): Return false if -mfix-ut699 is specified and
16059 fptype_ut699 is set to single.
16060 (truncdfsf2): Add fptype_ut699 attribute.
16061 (fix_truncdfsi2): Likewise.
16062 (floatsisf2): Change fptype attribute.
16063 (fix_truncsfsi2): Likewise.
16064 (negtf2_notv9): Delete.
16065 (negtf2_v9): Likewise.
16066 (negtf2_hq): New instruction.
16067 (negtf2): New instruction and splitter.
16068 (negdf2_notv9): Rewrite.
16069 (abstf2_notv9): Delete.
16070 (abstf2_hq_v9): Likewise.
16071 (abstf2_v9): Likewise.
16072 (abstf2_hq): New instruction.
16073 (abstf2): New instruction and splitter.
16074 (absdf2_notv9): Rewrite.
16075
16076 2014-05-14 Cary Coutant <ccoutant@google.com>
16077
16078 PR debug/61013
16079 * opts.c (common_handle_option): Don't special-case "-g".
16080 (set_debug_level): Default to at least level 2 with "-g".
16081
16082 2014-05-14 DJ Delorie <dj@redhat.com>
16083
16084 * config/msp430/msp430.c (msp430_builtin): Add
16085 MSP430_BUILTIN_DELAY_CYCLES.
16086 (msp430_init_builtins): Register void __delay_cycles(long long).
16087 (msp430_builtin_decl): Add it.
16088 (cg_magic_constant): New.
16089 (msp430_expand_delay_cycles): New.
16090 (msp430_expand_builtin): Call it.
16091 (msp430_print_operand_raw): Change integer printing from "int" to
16092 HOST_WIDE_INT.
16093 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16094 (delay_cycles_start): New.
16095 (delay_cycles_end): New.
16096 (delay_cycles_32): New.
16097 (delay_cycles_32x): New.
16098 (delay_cycles_16): New.
16099 (delay_cycles_16x): New.
16100 (delay_cycles_2): New.
16101 (delay_cycles_1): New.
16102 * doc/extend.texi: Document __delay_cycles().
16103
16104 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16105
16106 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16107 length attribute computation.
16108
16109 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16110
16111 PR debug/61188
16112 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16113
16114 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16115
16116 PR target/61084
16117 * config/sparc/sparc.md: Fix types of low and high in DI constant
16118 splitter. Use gen_int_mode in some other splitters.
16119
16120 2014-05-14 Martin Jambor <mjambor@suse.cz>
16121
16122 PR ipa/60897
16123 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16124
16125 2014-05-14 James Norris <jnorris@codesourcery.com>
16126
16127 * omp-low.c (expand_parallel_call): Remove shadow variable.
16128 (expand_omp_taskreg): Likewise.
16129
16130 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16131
16132 * common/config/i386/i386-common.c
16133 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16134 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16135 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16136 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16137 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16138 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16139 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16140 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16141 xsavecintrin.h, xsavesintrin.h.
16142 (x86_64-*-*): Ditto.
16143 * config/i386/clflushoptintrin.h: New.
16144 * config/i386/xsavecintrin.h: Ditto.
16145 * config/i386/xsavesintrin.h: Ditto.
16146 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16147 (bit_XSAVES): Ditto.
16148 (bit_XSAVES): Ditto.
16149 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16150 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16151 -mno-clflushopt.
16152 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16153 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16154 OPTION_MASK_ISA_XSAVES.
16155 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16156 -mxsavec, -mxsaves.
16157 (PTA_CLFLUSHOPT) Define.
16158 (PTA_XSAVEC): Ditto.
16159 (PTA_XSAVES): Ditto.
16160 (ix86_option_override_internal): Handle new options.
16161 (ix86_valid_target_attribute_inner_p): Ditto.
16162 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16163 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16164 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16165 (bdesc_special_args): Add __builtin_ia32_xsaves,
16166 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16167 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16168 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16169 (ix86_expand_builtin): Handle new builtins.
16170 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16171 (TARGET_CLFLUSHOPT_P): Ditto.
16172 (TARGET_XSAVEC): Ditto.
16173 (TARGET_XSAVEC_P): Ditto.
16174 (TARGET_XSAVES): Ditto.
16175 (TARGET_XSAVES_P): Ditto.
16176 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16177 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16178 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16179 (ANY_XRSTOR): New.
16180 (ANY_XRSTOR64): Ditto.
16181 (xrstor): Ditto.
16182 (xrstor): Change into <xrstor>.
16183 (xrstor_rex64): Change into <xrstor>_rex64.
16184 (xrstor64): Change into <xrstor>64
16185 (clflushopt): New.
16186 * config/i386/i386.opt (mclflushopt): New.
16187 (mxsavec): Ditto.
16188 (mxsaves): Ditto.
16189 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16190 xsavecintrin.h.
16191 * doc/invoke.texi: Document new options.
16192
16193 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16194
16195 PR rtl-optimization/60866
16196 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16197 Default it to -1. Pass it down to init_simplejump_data.
16198 (init_simplejump_data): New parameter old_seqno. Pass it down
16199 to get_seqno_for_a_jump.
16200 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16201 initializing new jump seqno as a last resort. Add comment.
16202 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16203 jump and pass it down to sel_init_new_insn.
16204 (sel_redirect_edge_and_branch_force): Likewise.
16205
16206 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16207
16208 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16209 shifted values to avoid build warning.
16210
16211 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16212
16213 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16214 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16215 (cfg_layout_merge_blocks): Likewise.
16216 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16217
16218 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16219
16220 PR rtl-optimization/60901
16221 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16222 bb predecessor belongs to the same scheduling region. Adjust comment.
16223
16224 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16225
16226 * doc/sourcebuild.texi: (dfp_hw): Document.
16227 (p8vector_hw): Likewise.
16228 (powerpc_eabi_ok): Likewise.
16229 (powerpc_elfv2): Likewise.
16230 (powerpc_htm_ok): Likewise.
16231 (ppc_recip_hw): Likewise.
16232 (vsx_hw): Likewise.
16233
16234 2014-05-13 Cary Coutant <ccoutant@google.com>
16235
16236 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16237
16238 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16239
16240 * gengtype-parse.c (require3): Eliminate in favor of...
16241 (require4): New.
16242 (require_template_declaration): Update to support optional single *
16243 on a type.
16244
16245 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16246 (create_user_defined_type): Handle a single level of explicit
16247 pointerness within template arguments.
16248 (struct write_types_data): Add field "kind".
16249 (filter_type_name): Handle "*" character.
16250 (write_user_func_for_structure_ptr): Require a write_types_data
16251 rather than just a prefix string, so that we can look up the kind
16252 of the wtd and use it as an index into wrote_user_func_for_ptr,
16253 ensuring that such functions are written at most once. Support
16254 subclasses by invoking the marking function of the ultimate base class.
16255 (write_user_func_for_structure_body): Require a write_types_data
16256 rather than just a prefix string, so that we can pass this to
16257 write_user_func_for_structure_ptr.
16258 (write_func_for_structure): Likewise.
16259 (ggc_wtd): Add initializer of new "kind" field.
16260 (pch_wtd): Likewise.
16261
16262 * gengtype.h (enum write_types_kinds): New.
16263 (struct type): Add field wrote_user_func_for_ptr to the "s"
16264 union member.
16265
16266 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16267
16268 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16269 instead of const_binop.
16270 (fold_binary_loc): Likewise.
16271
16272 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16273
16274 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16275 calculation to match get_ref_base_and_extent.
16276
16277 2014-05-13 Catherine Moore <clm@codesourcery.com>
16278 Sandra Loosemore <sandra@codesourcery.com>
16279
16280 * configure.ac: Fix assembly for explicit JALR relocation check.
16281 * configure: Regenerate.
16282
16283 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16284
16285 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16286 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16287 Remove associated type declarations and initialisations.
16288 (arm_expand_neon_builtin): Likewise.
16289 (neon_emit_pair_result_insn): Delete.
16290 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16291 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16292 (neon_vzip<mode>): Likewise.
16293 (neon_vuzp<mode>): Likewise.
16294
16295 2014-05-13 Richard Biener <rguenther@suse.de>
16296
16297 PR ipa/60973
16298 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16299 it needs revisiting whether the call still may be tail-called.
16300
16301 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16302
16303 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16304 * rtl.h (block_symbol): Reduce number of fields to 2.
16305 (rtx_def): Add u2.symbol_ref_flags.
16306 (SYMBOL_REF_FLAGS): Use it.
16307 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16308 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16309 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16310 Lower index of SYMBOL_REF_DATA.
16311 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16312 Print SYMBOL_REF_FLAGS at the same time.
16313 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16314
16315 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16316
16317 * rtl.def (VAR_LOCATION): Remove "i" field.
16318 * rtl.h (rtx_def): Add u2.var_location_status.
16319 (PAT_VAR_LOCATION_STATUS): Use it.
16320 (gen_rtx_VAR_LOCATION): Declare.
16321 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16322 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16323 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16324
16325 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16326
16327 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16328 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16329
16330 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16331
16332 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16333 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16334 * rtl.h (rtx_def): Add insn_uid to u2 field.
16335 (RTX_FLAG_CHECK8): Delete in favor of...
16336 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16337 (INSN_DELETED_P): Update accordingly.
16338 (INSN_UID): Use u2.insn_uid.
16339 (INSN_CHAIN_CODE_P): Define.
16340 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16341 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16342 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16343 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16344 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16345 indices accordingly.
16346 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16347 Update indices for insn-chain rtxes.
16348 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16349 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16350 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16351 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16352 * combine.c (try_combine): Likewise.
16353 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16354
16355 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16356
16357 * rtl.def (REG): Remove middle field.
16358 * rtl.h (rtx_def): Add orignal_regno to u2.
16359 (ORIGINAL_REGNO): Use it instead of field 1.
16360 (REG_ATTRS): Lower field index accordingly.
16361 * gengtype.c (adjust_field_rtx_def): Remove handling of
16362 ORIGINAL_REGNO. Move REG_ATTRS index down.
16363 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16364 code that prints the REGNO.
16365
16366 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16367
16368 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16369 GENERATOR_FILE.
16370
16371 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16372
16373 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16374
16375 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16376
16377 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16378 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16379
16380 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16381
16382 * config/aarch64/aarch64-protos.h
16383 (aarch64_hard_regno_caller_save_mode): New prototype.
16384 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16385 New function.
16386 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16387
16388 2014-05-13 Christian Bruel <christian.bruel@st.com>
16389
16390 * target.def (mode_switching): New hook vector.
16391 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16392 (mode_exit, modepriority_to_mode): Likewise.
16393 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16394 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16395 * target.h: Include tm.h and hard-reg-set.h.
16396 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16397 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16398 * doc/tm.texi Regenerate.
16399 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16400 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16401 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16402 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16403 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16404 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16405 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16406 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16407 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16408 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16409 (ix86_emit_mode_set): Hookify.
16410 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16411 Delete.
16412 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16413 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16414 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16415 (epiphany_mode_priority_to_mode): Remove declaration.
16416 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16417 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16418 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16419 Likewise.
16420 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16421 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16422 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16423
16424 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16425
16426 PR target/61060
16427 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16428 is const0_rtx, return immediately. Don't test count == 0 when
16429 it is always true.
16430
16431 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16432
16433 * Makefile.in: add shrink-wrap.o.
16434 * config/i386/i386.c: include "shrink-wrap.h"
16435 * function.c: Likewise.
16436 (requires_stack_frame_p, next_block_for_reg,
16437 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16438 dup_block_and_redirect): Move to shrink-wrap.c
16439 (thread_prologue_and_epilogue_insns): Extract three code segments
16440 as functions in shrink-wrap.c
16441 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16442 shrink-wrap.h
16443 * shrink-wrap.c: New file.
16444 * shrink-wrap.h: New file.
16445
16446 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16447
16448 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16449 reference to Solaris.
16450
16451 2014-05-12 Mike Stump <mikestump@comcast.net>
16452
16453 PR other/31778
16454 * genattrtab.c (filename): Add.
16455 (convert_set_attr_alternative): Improve error message.
16456 (check_defs): Restore read_md_filename for error messages.
16457 (gen_insn): Save filename.
16458
16459 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16460
16461 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16462 -fno-local-ivars and -fivar-visibility.
16463 * c-family/c.opt: Make -Wshadow also implicitly enable
16464 -Wshadow-ivar.
16465
16466 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16467
16468 * doc/tm.texi: Remove reference to deleted macro.
16469 * doc/tm.texi.in: Likewise.
16470
16471 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16472
16473 PR target/60991
16474 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16475 to restore Y.
16476
16477 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16478
16479 PR libgcc/61152
16480 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16481 * config/arm/aout.h (License): Same.
16482 * config/arm/bpabi.h (License): Same.
16483 * config/arm/elf.h (License): Same.
16484 * config/arm/linux-elf.h (License): Same.
16485 * config/arm/linux-gas.h (License): Same.
16486 * config/arm/netbsd-elf.h (License): Same.
16487 * config/arm/uclinux-eabi.h (License): Same.
16488 * config/arm/uclinux-elf.h (License): Same.
16489 * config/arm/vxworks.h (License): Same.
16490
16491 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16492
16493 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16494 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16495 number of operands to 3.
16496 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16497 * tree-nested.c (convert_nonlocal_omp_clauses,
16498 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16499 * gimplify.c (gimplify_scan_omp_clauses): Handle
16500 OMP_CLAUSE_LINEAR_STMT.
16501 * omp-low.c (lower_rec_input_clauses): Fix typo.
16502 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16503 cast between Fortran boolean_type_node and C _Bool if
16504 needed.
16505
16506 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16507
16508 PR tree-optimization/61136
16509 * wide-int.h (multiple_of_p): Define a version that doesn't return
16510 the quotient.
16511 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16512 integer_zerop/const_binop pair.
16513 (multiple_of_p): Likewise, converting both operands to widest_int
16514 precision.
16515
16516 2014-05-09 Teresa Johnson <tejohnson@google.com>
16517
16518 * cgraphunit.c (analyze_functions): Use correct dump file.
16519
16520 2014-05-09 Florian Weimer <fweimer@redhat.com>
16521
16522 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16523 expand_used_vars.
16524 (stack_protect_return_slot_p): New function.
16525 (expand_used_vars): Call stack_protect_decl_p and
16526 stack_protect_return_slot_p for -fstack-protector-strong.
16527
16528 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16529 Andrew Haley <aph@redhat.com>
16530 Richard Sandiford <rdsandiford@googlemail.com>
16531
16532 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16533 pages.
16534
16535 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16536
16537 PR middle-end/61111
16538 * fold-const.c (fold_binary_loc): Changed width of mask.
16539
16540 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16541
16542 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16543 unsigned int initializers for regno_in, regno_out.
16544
16545 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16546
16547 PR target/61055
16548 * config/avr/avr.md (cc): Add new attribute set_vzn.
16549 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16550 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16551 with INC, DEC or NEG.
16552 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16553 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16554 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16555
16556 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16557
16558 Revert:
16559 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16560
16561 * wide-int.cc (UTItype): Define.
16562 (UDWtype): Define for appropriate W_TYPE_SIZE.
16563
16564 2014-05-09 Richard Biener <rguenther@suse.de>
16565
16566 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16567 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16568 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16569 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16570 ssa_propagate): Adjust.
16571
16572 2014-05-08 Jeff Law <law@redhat.com>
16573
16574 PR tree-optimization/61009
16575 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16576 tri-state rather than a boolean. When a block is too big to
16577 thread through, inform caller via negative return value.
16578 (thread_across_edge): If a block was too big for normal threading,
16579 then it's too big for a joiner too, so remove temporary equivalences
16580 and return immediately.
16581
16582 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16583 Matthias Klose <doko@ubuntu.com>
16584
16585 PR driver/61106
16586 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16587
16588 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16589
16590 PR target/59952
16591 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16592
16593 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16594
16595 PR target/61092
16596 * config/alpha/alpha.c: Include gimple-iterator.h.
16597 (alpha_gimple_fold_builtin): New function. Move
16598 ALPHA_BUILTIN_UMULH folding from ...
16599 (alpha_fold_builtin): ... here.
16600 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16601
16602 2014-05-08 Wei Mi <wmi@google.com>
16603
16604 PR target/58066
16605 * config/i386/i386.c (ix86_compute_frame_layout): Update
16606 preferred_stack_boundary for call, expanded from tls descriptor.
16607 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16608 to depend on SP register.
16609 (*tls_local_dynamic_base_32_gnu): Ditto.
16610 (*tls_local_dynamic_32_once): Ditto.
16611 (tls_global_dynamic_64_<mode>): Set
16612 ix86_tls_descriptor_calls_expanded_in_cfun.
16613 (tls_local_dynamic_base_64_<mode>): Ditto.
16614 (tls_global_dynamic_32): Set
16615 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16616 to depend on SP register.
16617 (tls_local_dynamic_base_32): Ditto.
16618
16619 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16620
16621 * config/arm/arm_neon.h: Update comment.
16622 * config/arm/neon-docgen.ml: Delete.
16623 * config/arm/neon-gen.ml: Delete.
16624 * doc/arm-neon-intrinsics.texi: Update comment.
16625
16626 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16627
16628 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16629 and v4sf versions.
16630 (vand, vorr, veor, vorn, vbic): Remove.
16631 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16632 iterator.
16633 (neon_vsub_unspec): Likewise.
16634 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16635
16636 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16637
16638 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16639 (vadd_s16): Likewise.
16640 (vadd_s32): Likewise.
16641 (vadd_f32): Likewise.
16642 (vadd_u8): Likewise.
16643 (vadd_u16): Likewise.
16644 (vadd_u32): Likewise.
16645 (vadd_s64): Likewise.
16646 (vadd_u64): Likewise.
16647 (vaddq_s8): Likewise.
16648 (vaddq_s16): Likewise.
16649 (vaddq_s32): Likewise.
16650 (vaddq_s64): Likewise.
16651 (vaddq_f32): Likewise.
16652 (vaddq_u8): Likewise.
16653 (vaddq_u16): Likewise.
16654 (vaddq_u32): Likewise.
16655 (vaddq_u64): Likewise.
16656 (vmul_s8): Likewise.
16657 (vmul_s16): Likewise.
16658 (vmul_s32): Likewise.
16659 (vmul_f32): Likewise.
16660 (vmul_u8): Likewise.
16661 (vmul_u16): Likewise.
16662 (vmul_u32): Likewise.
16663 (vmul_p8): Likewise.
16664 (vmulq_s8): Likewise.
16665 (vmulq_s16): Likewise.
16666 (vmulq_s32): Likewise.
16667 (vmulq_f32): Likewise.
16668 (vmulq_u8): Likewise.
16669 (vmulq_u16): Likewise.
16670 (vmulq_u32): Likewise.
16671 (vsub_s8): Likewise.
16672 (vsub_s16): Likewise.
16673 (vsub_s32): Likewise.
16674 (vsub_f32): Likewise.
16675 (vsub_u8): Likewise.
16676 (vsub_u16): Likewise.
16677 (vsub_u32): Likewise.
16678 (vsub_s64): Likewise.
16679 (vsub_u64): Likewise.
16680 (vsubq_s8): Likewise.
16681 (vsubq_s16): Likewise.
16682 (vsubq_s32): Likewise.
16683 (vsubq_s64): Likewise.
16684 (vsubq_f32): Likewise.
16685 (vsubq_u8): Likewise.
16686 (vsubq_u16): Likewise.
16687 (vsubq_u32): Likewise.
16688 (vsubq_u64): Likewise.
16689 (vand_s8): Likewise.
16690 (vand_s16): Likewise.
16691 (vand_s32): Likewise.
16692 (vand_u8): Likewise.
16693 (vand_u16): Likewise.
16694 (vand_u32): Likewise.
16695 (vand_s64): Likewise.
16696 (vand_u64): Likewise.
16697 (vandq_s8): Likewise.
16698 (vandq_s16): Likewise.
16699 (vandq_s32): Likewise.
16700 (vandq_s64): Likewise.
16701 (vandq_u8): Likewise.
16702 (vandq_u16): Likewise.
16703 (vandq_u32): Likewise.
16704 (vandq_u64): Likewise.
16705 (vorr_s8): Likewise.
16706 (vorr_s16): Likewise.
16707 (vorr_s32): Likewise.
16708 (vorr_u8): Likewise.
16709 (vorr_u16): Likewise.
16710 (vorr_u32): Likewise.
16711 (vorr_s64): Likewise.
16712 (vorr_u64): Likewise.
16713 (vorrq_s8): Likewise.
16714 (vorrq_s16): Likewise.
16715 (vorrq_s32): Likewise.
16716 (vorrq_s64): Likewise.
16717 (vorrq_u8): Likewise.
16718 (vorrq_u16): Likewise.
16719 (vorrq_u32): Likewise.
16720 (vorrq_u64): Likewise.
16721 (veor_s8): Likewise.
16722 (veor_s16): Likewise.
16723 (veor_s32): Likewise.
16724 (veor_u8): Likewise.
16725 (veor_u16): Likewise.
16726 (veor_u32): Likewise.
16727 (veor_s64): Likewise.
16728 (veor_u64): Likewise.
16729 (veorq_s8): Likewise.
16730 (veorq_s16): Likewise.
16731 (veorq_s32): Likewise.
16732 (veorq_s64): Likewise.
16733 (veorq_u8): Likewise.
16734 (veorq_u16): Likewise.
16735 (veorq_u32): Likewise.
16736 (veorq_u64): Likewise.
16737 (vbic_s8): Likewise.
16738 (vbic_s16): Likewise.
16739 (vbic_s32): Likewise.
16740 (vbic_u8): Likewise.
16741 (vbic_u16): Likewise.
16742 (vbic_u32): Likewise.
16743 (vbic_s64): Likewise.
16744 (vbic_u64): Likewise.
16745 (vbicq_s8): Likewise.
16746 (vbicq_s16): Likewise.
16747 (vbicq_s32): Likewise.
16748 (vbicq_s64): Likewise.
16749 (vbicq_u8): Likewise.
16750 (vbicq_u16): Likewise.
16751 (vbicq_u32): Likewise.
16752 (vbicq_u64): Likewise.
16753 (vorn_s8): Likewise.
16754 (vorn_s16): Likewise.
16755 (vorn_s32): Likewise.
16756 (vorn_u8): Likewise.
16757 (vorn_u16): Likewise.
16758 (vorn_u32): Likewise.
16759 (vorn_s64): Likewise.
16760 (vorn_u64): Likewise.
16761 (vornq_s8): Likewise.
16762 (vornq_s16): Likewise.
16763 (vornq_s32): Likewise.
16764 (vornq_s64): Likewise.
16765 (vornq_u8): Likewise.
16766 (vornq_u16): Likewise.
16767 (vornq_u32): Likewise.
16768 (vornq_u64): Likewise.
16769
16770 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16771
16772 * wide-int.cc (UTItype): Define.
16773 (UDWtype): Define for appropriate W_TYPE_SIZE.
16774
16775 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16776
16777 PR tree-optimization/59100
16778 * tree-ssa-phiopt.c: Include tree-inline.h.
16779 (neutral_element_p, absorbing_element_p): New functions.
16780 (value_replacement): Handle conditional binary operations with a
16781 neutral or absorbing element.
16782
16783 2014-05-08 Richard Biener <rguenther@suse.de>
16784
16785 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16786 folding the expression.
16787 (valueize_expr): Remove.
16788 (visit_reference_op_load): Do not valueize the result of
16789 vn_get_expr_for.
16790 (simplify_binary_expression): Likewise.
16791 (simplify_unary_expression): Likewise.
16792
16793 2014-05-08 Richard Biener <rguenther@suse.de>
16794
16795 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16796 looking at TYPE_ARG_TYPES.
16797
16798 2014-05-08 Richard Biener <rguenther@suse.de>
16799
16800 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16801 pointer propagation special-case.
16802
16803 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16804
16805 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16806 core part of address expressions.
16807
16808 2014-05-08 Alan Modra <amodra@gmail.com>
16809
16810 PR target/60737
16811 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16812 loads and stores when -mno-strict-align at any alignment.
16813 (expand_block_clear): Similarly. Also correct calculation of
16814 instruction count.
16815
16816 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16817
16818 PR middle-end/39246
16819 * tree-complex.c (expand_complex_move): Keep line info when expanding
16820 complex move.
16821 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16822 of complex expression. Use new argument to display correct location
16823 for values coming from phi statement.
16824 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16825 (warn_uninitialized_phi): Pass location of phi argument to
16826 warn_uninit.
16827 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16828 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16829
16830 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16831
16832 * config/rs6000/predicates.md (indexed_address_mem): New.
16833 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16834 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16835 fpstore_ux, fpstore_u.
16836 (sign_extend, indexed, update): New.
16837 (cell_micro): Adjust.
16838 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16839 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16840 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16841 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16842 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16843 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16844 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16845 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16846 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16847 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16848 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16849 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16850 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16851 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16852 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16853
16854 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16855 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16856 *vsx_extract_<mode>_store): Adjust.
16857 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16858 is_cracked_insn, insn_must_be_first_in_group,
16859 insn_must_be_last_in_group): Adjust.
16860
16861 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16862 Adjust.
16863 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16864 ppc440-fpstore): Adjust.
16865 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16866 ppc476-fpstore): Adjust.
16867 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16868 ppc601-fpstore): Adjust.
16869 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16870 Adjust.
16871 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16872 Adjust.
16873 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16874 ppc7450-fpstore): Adjust.
16875 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16876 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16877 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16878 Adjust.
16879 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16880 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16881 cell-fpstore, cell-fpstore-update): Adjust.
16882 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16883 ppce300c3_store, ppce300c3_fpstore): Adjust.
16884 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16885 e500mc_fpstore): Adjust.
16886 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16887 e500mc64_store, e500mc64_fpstore): Adjust.
16888 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16889 e5500_fpstore): Adjust.
16890 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16891 e6500_fpstore): Adjust.
16892 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16893 Adjust.
16894 * config/rs6000/power4.md (power4-load, power4-load-ext,
16895 power4-load-ext-update, power4-load-ext-update-indexed,
16896 power4-load-update-indexed, power4-load-update, power4-fpload,
16897 power4-fpload-update, power4-store, power4-store-update,
16898 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16899 Adjust.
16900 * config/rs6000/power5.md (power5-load, power5-load-ext,
16901 power5-load-ext-update, power5-load-ext-update-indexed,
16902 power5-load-update-indexed, power5-load-update, power5-fpload,
16903 power5-fpload-update, power5-store, power5-store-update,
16904 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16905 Adjust.
16906 * config/rs6000/power6.md (power6-load, power6-load-ext,
16907 power6-load-update, power6-load-update-indexed,
16908 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16909 power6-fpload-update, power6-store, power6-store-update,
16910 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16911 Adjust.
16912 * config/rs6000/power7.md (power7-load, power7-load-ext,
16913 power7-load-update, power7-load-update-indexed,
16914 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16915 power7-fpload-update, power7-store, power7-store-update,
16916 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16917 Adjust.
16918 * config/rs6000/power8.md (power8-load, power8-load-update,
16919 power8-load-ext, power8-load-ext-update, power8-fpload,
16920 power8-fpload-update, power8-store, power8-store-update-indexed,
16921 power8-fpstore, power8-fpstore-update): Adjust.
16922 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16923 Adjust.
16924 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16925 titan_lsu_store, titan_lsu_fpstore): Adjust.
16926 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16927
16928 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16929
16930 PR target/60884
16931 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16932 unrolled byte insns. Emit address increments after move insns.
16933
16934 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16935
16936 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16937 const_gimple, rather than a gimple.
16938 (gimple_call_builtin_p): Likewise, for the three variants.
16939
16940 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16941 (gimple_call_builtin_p): Likewise, for the three variants.
16942
16943 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16944
16945 PR tree-optimization/61095
16946 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16947
16948 2014-05-07 Richard Biener <rguenther@suse.de>
16949
16950 PR tree-optimization/61034
16951 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16952 (maybe_skip_until): Use translate to take into account
16953 lattices when trying to do disambiguations.
16954 (get_continuation_for_phi_1): Likewise.
16955 (get_continuation_for_phi): Adjust for added translate arguments.
16956 (walk_non_aliased_vuses): Likewise.
16957 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16958 (walk_non_aliased_vuses): Likewise.
16959 (call_may_clobber_ref_p_1): Declare.
16960 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16961 calls. Stop early if we are only supposed to disambiguate.
16962 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16963
16964 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16965
16966 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16967 Emit an error when the function has arguments.
16968
16969 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16970
16971 * cfgloop.h (unswitch_loops): Remove.
16972 * doc/passes.texi: Remove references to loop-unswitch.c
16973 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16974
16975 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16976
16977 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16978 check for loads group of length 3.
16979 (vect_permute_load_chain): New permutations for loads group of
16980 length 3.
16981 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16982 of vec_perm_shuffle for the new permutations.
16983
16984 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16985
16986 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16987 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16988 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16989 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16990 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16991 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16992 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16993 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16994
16995 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16996
16997 * loop-unswitch.c: Delete.
16998
16999 2014-05-07 Richard Biener <rguenther@suse.de>
17000
17001 * config.gcc: Always set need_64bit_hwint to yes.
17002
17003 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17004
17005 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17006 of using optimize_size.
17007
17008 2014-05-06 Mike Stump <mikestump@comcast.net>
17009
17010 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17011
17012 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17013
17014 * config/i386/sse.md (*mov<mode>_internal)
17015 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17016 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17017 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17018 (*<code><mode>3, *andnot<mode>3<mask_name>)
17019 (<mask_codefor><code><mode>3<mask_name>): Only consider
17020 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17021
17022 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17023
17024 Revert:
17025 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17026
17027 * lra-constraints.c (valid_address_p): Move earlier in file.
17028 Add a constraint argument to the address_info version.
17029 (satisfies_memory_constraint_p): New function.
17030 (satisfies_address_constraint_p): Likewise.
17031 (process_alt_operands, curr_insn_transform): Use them.
17032 (process_address): Pass the constraint to valid_address_p when
17033 checking address operands.
17034
17035 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17036
17037 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17038 to their respective blocks. Fix inadvertent use of "node".
17039
17040 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17041
17042 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17043 out from...
17044 (init_emit_once): ...here.
17045 * rtl.h (init_derived_machine_modes): Declare.
17046 * toplev.c (do_compile): Call it even if no_backend.
17047
17048 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17049 Mike Stump <mikestump@comcast.net>
17050 Richard Sandiford <rdsandiford@googlemail.com>
17051 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17052
17053 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17054 (rtx_equal_for_memref_p): Update comment.
17055 (adjust_offset_for_component_ref): Use wide-int interfaces.
17056 * builtins.c (get_object_alignment_2): Likewise.
17057 (c_readstr): Likewise.
17058 (target_char_cast): Add comment.
17059 (determine_block_size): Use wide-int interfaces.
17060 (expand_builtin_signbit): Likewise.
17061 (fold_builtin_int_roundingfn): Likewise.
17062 (fold_builtin_bitop): Likewise.
17063 (fold_builtin_bswap): Likewise.
17064 (fold_builtin_logarithm): Use signop.
17065 (fold_builtin_pow): Likewise.
17066 (fold_builtin_memory_op): Use wide-int interfaces.
17067 (fold_builtin_object_size): Likewise.
17068 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17069 nb_iterations_estimate.
17070 (record_niter_bound): Use wide-int interfaces.
17071 (get_estimated_loop_iterations_int): Likewise.
17072 (get_estimated_loop_iterations): Likewise.
17073 (get_max_loop_iterations): Likewise.
17074 * cfgloop.h: Include wide-int.h.
17075 (struct nb_iter_bound): Change bound to widest_int.
17076 (struct loop): Change nb_iterations_upper_bound and
17077 nb_iterations_estimate to widest_int.
17078 (record_niter_bound): Switch to use widest_int.
17079 (get_estimated_loop_iterations): Likewise.
17080 (get_max_loop_iterations): Likewise.
17081 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17082 update for wide-int.
17083 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17084 * combine.c (try_combine): Likewise.
17085 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17086 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17087 interfaces.
17088 (aarch64_float_const_representable_p): Likewise.
17089 * config/arc/arc.c: Include wide-int.h.
17090 (arc_can_use_doloop_p): Use wide-int interfaces.
17091 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17092 (vfp3_const_double_index): Likewise.
17093 * config/avr/avr.c (avr_out_round): Likewise.
17094 (avr_fold_builtin): Likewise.
17095 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17096 (bfin_can_use_doloop_p): Likewise.
17097 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17098 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17099 * config/i386/i386.c: Include wide-int.h.
17100 (ix86_data_alignment): Use wide-int interfaces.
17101 (ix86_local_alignment): Likewise.
17102 (ix86_emit_swsqrtsf): Update real_from_integer.
17103 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17104 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17105 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17106 (zero_constant): Likewise.
17107 (input_operand): Likewise.
17108 (splat_input_operand): Likewise.
17109 (non_logical_cint_operand): Change const_double to const_wide_int.
17110 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17111 (easy_altivec_constant): Remove comment.
17112 (paired_expand_vector_init): Use CONSTANT_P.
17113 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17114 (rs6000_emit_move): Update checks.
17115 (rs6000_aggregate_candidate): Use wide-int interfaces.
17116 (rs6000_expand_ternop_builtin): Likewise.
17117 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17118 (rs6000_assemble_integer): Likewise.
17119 (rs6000_hash_constant): Likewise.
17120 (output_toc): Likewise.
17121 (rs6000_rtx_costs): Likewise.
17122 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17123 * config/rs6000/rs6000-c.c: Include wide-int.h.
17124 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17125 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17126 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17127 Handle CONST_WIDE_INT.
17128 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17129 Use tree_fits_uhwi_p.
17130 * config/sparc/sparc.c: Include wide-int.h.
17131 (sparc_fold_builtin): Use wide-int interfaces.
17132 * config/vax/vax.c: Include wide-int.h.
17133 (vax_float_literal): Use real_from_integer.
17134 * coretypes.h (struct hwivec_def): New.
17135 (hwivec): New.
17136 (const_hwivec): New.
17137 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17138 (equiv_constant): Handle CONST_WIDE_INT.
17139 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17140 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17141 * dbxout.c (stabstr_U): Use wide-int interfaces.
17142 (dbxout_type): Update to use cst_fits_shwi_p.
17143 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17144 (TARGET_SUPPORTS_WIDE_INT): Add default.
17145 * dfp.c: Include wide-int.h.
17146 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17147 decimal_real_to_integer.
17148 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17149 decimal_real_to_integer.
17150 * doc/generic.texi (Constant expressions): Update for wide_int.
17151 * doc/rtl.texi (const_double): Likewise.
17152 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17153 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17154 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17155 (REAL_VALUE_FROM_INT): Remove.
17156 (TARGET_SUPPORTS_WIDE_INT): New.
17157 * doc/tm.texi: Regenerate.
17158 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17159 * double-int.h: Include wide-int.h.
17160 (struct wi::int_traits): New.
17161 * dwarf2out.c (get_full_len): New.
17162 (dw_val_equal_p): Add case dw_val_class_wide_int.
17163 (size_of_loc_descr): Likewise.
17164 (output_loc_operands): Likewise.
17165 (insert_double): Remove.
17166 (insert_wide_int): New.
17167 (add_AT_wide): New.
17168 (print_die): Add case dw_val_class_wide_int.
17169 (attr_checksum): Likewise.
17170 (attr_checksum_ordered): Likewise.
17171 (same_dw_val_p): Likewise.
17172 (size_of_die): Likewise.
17173 (value_format): Likewise.
17174 (output_die): Likewise.
17175 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17176 Use wide-int.
17177 (clz_loc_descriptor): Use wide-int interfaces.
17178 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17179 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17180 (round_up_to_align): Use wide-int interfaces.
17181 (field_byte_offset): Likewise.
17182 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17183 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17184 CONST_DOUBLE handling. Use wide-int interfaces.
17185 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17186 (gen_enumeration_type_die): Use add_AT_wide.
17187 (hash_loc_operands): Add case dw_val_class_wide_int.
17188 (compare_loc_operands): Likewise.
17189 * dwarf2out.h: Include wide-int.h.
17190 (wide_int_ptr): New.
17191 (enum dw_val_class): Add dw_val_class_wide_int.
17192 (struct dw_val_struct): Add val_wide.
17193 * emit-rtl.c (const_wide_int_htab): New.
17194 (const_wide_int_htab_hash): New.
17195 (const_wide_int_htab_eq): New.
17196 (lookup_const_wide_int): New.
17197 (const_double_htab_hash): Use wide-int interfaces.
17198 (const_double_htab_eq): Likewise.
17199 (rtx_to_double_int): Conditionally compile for wide-int.
17200 (immed_double_int_const): Rename to immed_wide_int_const and
17201 update for wide-int.
17202 (immed_double_const): Conditionally compile for wide-int.
17203 (init_emit_once): Use wide-int interfaces.
17204 * explow.c (plus_constant): Likewise.
17205 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17206 (lshift_value): Use wide-int interfaces.
17207 (expand_mult): Likewise.
17208 (choose_multiplier): Likewise.
17209 (expand_smod_pow2): Likewise.
17210 (make_tree): Likewise.
17211 * expr.c (convert_modes): Consolidate handling of constants.
17212 Use wide-int interfaces.
17213 (emit_group_load_1): Add note.
17214 (store_expr): Update comment.
17215 (get_inner_reference): Use wide-int interfaces.
17216 (expand_constructor): Update comment.
17217 (expand_expr_real_2): Use wide-int interfaces.
17218 (expand_expr_real_1): Likewise.
17219 (reduce_to_bit_field_precision): Likewise.
17220 (const_vector_from_tree): Likewise.
17221 * final.c: Include wide-int-print.h.
17222 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17223 * fixed-value.c: Include wide-int.h.
17224 (fixed_from_string): Use wide-int interfaces.
17225 (fixed_to_decimal): Likewise.
17226 (fixed_convert_from_real): Likewise.
17227 (real_convert_from_fixed): Likewise.
17228 * fold-const.h (mem_ref_offset): Return an offset_int.
17229 (div_if_zero_remainder): Remove code parameter.
17230 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17231 Use wide-int interfaces.
17232 (may_negate_without_overflow_p): Use wide-int interfaces.
17233 (negate_expr_p): Likewise.
17234 (fold_negate_expr): Likewise.
17235 (int_const_binop_1): Likewise.
17236 (const_binop): Likewise.
17237 (fold_convert_const_int_from_int): Likewise.
17238 (fold_convert_const_int_from_real): Likewise.
17239 (fold_convert_const_int_from_fixed): Likewise.
17240 (fold_convert_const_fixed_from_int): Likewise.
17241 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17242 (sign_bit_p): Use wide-int interfaces.
17243 (make_range_step): Likewise.
17244 (build_range_check): Likewise. Pass an integer of the correct type
17245 instead of using integer_one_node.
17246 (range_predecessor): Pass an integer of the correct type instead
17247 of using integer_one_node.
17248 (range_successor): Likewise.
17249 (merge_ranges): Likewise.
17250 (unextend): Use wide-int interfaces.
17251 (extract_muldiv_1): Likewise.
17252 (fold_div_compare): Likewise.
17253 (fold_single_bit_test): Likewise.
17254 (fold_sign_changed_comparison): Likewise.
17255 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17256 (fold_plusminus_mult_expr): Use wide-int interfaces.
17257 (native_encode_int): Likewise.
17258 (native_interpret_int): Likewise.
17259 (fold_unary_loc): Likewise.
17260 (pointer_may_wrap_p): Likewise.
17261 (size_low_cst): Likewise.
17262 (mask_with_tz): Likewise.
17263 (fold_binary_loc): Likewise.
17264 (fold_ternary_loc): Likewise.
17265 (multiple_of_p): Likewise.
17266 (tree_call_nonnegative_warnv_p): Update calls to
17267 tree_int_cst_min_precision and real_from_integer.
17268 (fold_negate_const): Use wide-int interfaces.
17269 (fold_abs_const): Likewise.
17270 (fold_relational_const): Use tree_int_cst_lt.
17271 (round_up_loc): Use wide-int interfaces.
17272 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17273 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17274 * gengtype.c: Remove include of double-int.h.
17275 (do_typedef): Use wide-int interfaces.
17276 (open_base_files): Add wide-int.h.
17277 (main): Add offset_int and widest_int typedefs.
17278 * gengtype-lex.l: Handle "^".
17279 (CXX_KEYWORD): Add "static".
17280 * gengtype-parse.c (require3): New.
17281 (require_template_declaration): Handle constant template arguments
17282 and nested templates.
17283 * gengtype-state.c: Don't include "double-int.h".
17284 * genpreds.c (write_one_predicate_function): Update comment.
17285 (write_tm_constrs_h): Add check for hval and lval use in
17286 CONST_WIDE_INT.
17287 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17288 (add_to_sequence): Likewise.
17289 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17290 and const_double_operand.
17291 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17292 interfaces.
17293 * gimple-fold.c (get_base_constructor): Likewise.
17294 (fold_array_ctor_reference): Likewise.
17295 (fold_nonarray_ctor_reference): Likewise.
17296 (fold_const_aggregate_ref_1): Likewise.
17297 (gimple_val_nonnegative_real_p): Likewise.
17298 (gimple_fold_indirect_ref): Likewise.
17299 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17300 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17301 (struct slsr_cand_d): Change index to be widest_int.
17302 (struct incr_info_d): Change incr to be widest_int.
17303 (alloc_cand_and_find_basis): Use wide-int interfaces.
17304 (slsr_process_phi): Likewise.
17305 (backtrace_base_for_ref): Likewise. Return a widest_int.
17306 (restructure_reference): Take a widest_int instead of a double_int.
17307 (slsr_process_ref): Use wide-int interfaces.
17308 (create_mul_ssa_cand): Likewise.
17309 (create_mul_imm_cand): Likewise.
17310 (create_add_ssa_cand): Likewise.
17311 (create_add_imm_cand): Take a widest_int instead of a double_int.
17312 (slsr_process_add): Use wide-int interfaces.
17313 (slsr_process_cast): Likewise.
17314 (slsr_process_copy): Likewise.
17315 (dump_candidate): Likewise.
17316 (dump_incr_vec): Likewise.
17317 (replace_ref): Likewise.
17318 (cand_increment): Likewise. Return a widest_int.
17319 (cand_abs_increment): Likewise.
17320 (replace_mult_candidate): Take a widest_int instead of a double_int.
17321 (replace_unconditional_candidate): Use wide-int interfaces.
17322 (incr_vec_index): Take a widest_int instead of a double_int.
17323 (create_add_on_incoming_edge): Likewise.
17324 (create_phi_basis): Use wide-int interfaces.
17325 (replace_conditional_candidate): Likewise.
17326 (record_increment): Take a widest_int instead of a double_int.
17327 (record_phi_increments): Use wide-int interfaces.
17328 (phi_incr_cost): Take a widest_int instead of a double_int.
17329 (lowest_cost_path): Likewise.
17330 (total_savings): Likewise.
17331 (analyze_increments): Use wide-int interfaces.
17332 (ncd_with_phi): Take a widest_int instead of a double_int.
17333 (ncd_of_cand_and_phis): Likewise.
17334 (nearest_common_dominator_for_cands): Likewise.
17335 (insert_initializers): Use wide-int interfaces.
17336 (all_phi_incrs_profitable): Likewise.
17337 (replace_one_candidate): Likewise.
17338 (replace_profitable_candidates): Likewise.
17339 * godump.c: Include wide-int-print.h.
17340 (go_output_typedef): Use wide-int interfaces.
17341 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17342 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17343 (build_loop_iteration_domains): Likewise.
17344 * hooks.h: Include wide-int.h rather than double-int.h.
17345 (hook_bool_dint_dint_uint_bool_true): Delete.
17346 (hook_bool_wint_wint_uint_bool_true): Declare.
17347 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17348 (hook_bool_wint_wint_uint_bool_true): New.
17349 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17350 interfaces.
17351 (ubsan_expand_si_overflow_mul_check): Likewise.
17352 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17353 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17354 (get_ancestor_addr_info): Likewise.
17355 (ipa_modify_call_arguments): Likewise.
17356 * loop-doloop.c (doloop_modify): Likewise.
17357 (doloop_optimize): Likewise.
17358 * loop-iv.c (iv_number_of_iterations): Likewise.
17359 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17360 (unroll_loop_constant_iterations): Likewise.
17361 (decide_unroll_runtime_iterations): Likewise.
17362 (unroll_loop_runtime_iterations): Likewise.
17363 (decide_peel_simple): Likewise.
17364 (decide_unroll_stupid): Likewise.
17365 * lto-streamer-in.c (streamer_read_wi): Add.
17366 (input_cfg): Use wide-int interfaces.
17367 (lto_input_tree_1): Likewise.
17368 * lto-streamer-out.c (streamer_write_wi): Add.
17369 (hash_tree): Use wide-int interfaces.
17370 (output_cfg): Likewise.
17371 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17372 (GTFILES): Add wide-int.h and signop.h.
17373 (TAGS): Look for .cc files too.
17374 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17375 * optabs.c (expand_subword_shift): Likewise.
17376 (expand_doubleword_shift): Likewise.
17377 (expand_absneg_bit): Likewise.
17378 (expand_copysign_absneg): Likewise.
17379 (expand_copysign_bit): Likewise.
17380 * postreload.c (reload_cse_simplify_set): Likewise.
17381 * predict.c (predict_iv_comparison): Likewise.
17382 * pretty-print.h: Include wide-int-print.h.
17383 (pp_wide_int) New.
17384 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17385 * print-tree.c: Include wide-int-print.h.
17386 (print_node_brief): Use wide-int interfaces.
17387 (print_node): Likewise.
17388 * read-rtl.c (validate_const_wide_int): New.
17389 (read_rtx_code): Add CONST_WIDE_INT case.
17390 * real.c: Include wide-int.h.
17391 (real_to_integer2): Delete.
17392 (real_to_integer): New function, returning a wide_int.
17393 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17394 (ten_to_ptwo): Update call to real_from_integer.
17395 (real_digit): Likewise.
17396 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17397 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17398 (REAL_VALUE_TO_INT): Delete.
17399 (real_to_integer): Declare a wide-int form.
17400 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17401 * recog.c (const_int_operand): Improve comment.
17402 (const_scalar_int_operand): New.
17403 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17404 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17405 (split_double): Likewise.
17406 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17407 (rtx_size): Likewise.
17408 (rtx_alloc_stat_v): New.
17409 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17410 (cwi_output_hex): New.
17411 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17412 (cwi_check_failed_bounds): New.
17413 * rtl.def (CONST_WIDE_INT): New.
17414 * rtl.h: Include <utility> and wide-int.h.
17415 (struct hwivec_def): New.
17416 (CWI_GET_NUM_ELEM): New.
17417 (CWI_PUT_NUM_ELEM): New.
17418 (struct rtx_def): Add num_elem and hwiv.
17419 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17420 (CASE_CONST_UNIQUE): Likewise.
17421 (CASE_CONST_ANY): Likewise.
17422 (CONST_SCALAR_INT_P): Likewise.
17423 (CONST_WIDE_INT_P): New.
17424 (CWI_ELT): New.
17425 (HWIVEC_CHECK): New.
17426 (cwi_check_failed_bounds): New.
17427 (CWI_ELT): New.
17428 (HWIVEC_CHECK): New.
17429 (CONST_WIDE_INT_VEC) New.
17430 (CONST_WIDE_INT_NUNITS) New.
17431 (CONST_WIDE_INT_ELT) New.
17432 (rtx_mode_t): New type.
17433 (wi::int_traits <rtx_mode_t>): New.
17434 (wi::shwi): New.
17435 (wi::min_value): New.
17436 (wi::max_value): New.
17437 (rtx_alloc_v) New.
17438 (const_wide_int_alloc): New.
17439 (immed_wide_int_const): New.
17440 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17441 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17442 * signop.h: New file.
17443 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17444 (simplify_const_unary_operation): Use wide-int interfaces.
17445 (simplify_binary_operation_1): Likewise.
17446 (simplify_const_binary_operation): Likewise.
17447 (simplify_const_relational_operation): Likewise.
17448 (simplify_immed_subreg): Likewise.
17449 * stmt.c (expand_case): Likewise.
17450 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17451 signop rather than a bool.
17452 * stor-layout.c (layout_type): Use wide-int interfaces.
17453 (initialize_sizetypes): Update calls to
17454 set_min_and_max_values_for_integral_type.
17455 (set_min_and_max_values_for_integral_type): Take a signop rather
17456 than a bool. Use wide-int interfaces.
17457 (fixup_signed_type): Update accordingly. Remove
17458 HOST_BITS_PER_DOUBLE_INT limit.
17459 (fixup_unsigned_type): Likewise.
17460 * system.h (STATIC_CONSTANT_P): New.
17461 (STATIC_ASSERT): New.
17462 * target.def (can_use_doloop_p): Take widest_ints rather than
17463 double_ints.
17464 * target.h: Include wide-int.h rather than double-int.h.
17465 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17466 than double_ints.
17467 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17468 rather than INT_CST_LT_UNSIGNED.
17469 (can_use_doloop_if_innermost): Take widest_ints rather than
17470 double_ints.
17471 * tree-affine.c: Include wide-int-print.h.
17472 (double_int_ext_for_comb): Delete.
17473 (wide_int_ext_for_comb): New.
17474 (aff_combination_zero): Use wide-int interfaces.
17475 (aff_combination_const): Take a widest_int instead of a double_int.
17476 (aff_combination_elt): Use wide-int interfaces.
17477 (aff_combination_scale): Take a widest_int instead of a double_int.
17478 (aff_combination_add_elt): Likewise.
17479 (aff_combination_add_cst): Likewise.
17480 (aff_combination_add): Use wide-int interfaces.
17481 (aff_combination_convert): Likewise.
17482 (tree_to_aff_combination): Likewise.
17483 (add_elt_to_tree): Take a widest_int instead of a double_int.
17484 (aff_combination_to_tree): Use wide-int interfaces.
17485 (aff_combination_remove_elt): Likewise.
17486 (aff_combination_add_product): Take a widest_int instead of
17487 a double_int.
17488 (aff_combination_mult): Use wide-int interfaces.
17489 (aff_combination_expand): Likewise.
17490 (double_int_constant_multiple_p): Delete.
17491 (wide_int_constant_multiple_p): New.
17492 (aff_combination_constant_multiple_p): Take a widest_int pointer
17493 instead of a double_int pointer.
17494 (print_aff): Use wide-int interfaces.
17495 (get_inner_reference_aff): Take a widest_int pointer
17496 instead of a double_int pointer.
17497 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17498 * tree-affine.h: Include wide-int.h.
17499 (struct aff_comb_elt): Change type of coef to widest_int.
17500 (struct affine_tree_combination): Change type of offset to widest_int.
17501 (double_int_ext_for_comb): Delete.
17502 (wide_int_ext_for_comb): New.
17503 (aff_combination_const): Use widest_int instead of double_int.
17504 (aff_combination_scale): Likewise.
17505 (aff_combination_add_elt): Likewise.
17506 (aff_combination_constant_multiple_p): Likewise.
17507 (get_inner_reference_aff): Likewise.
17508 (aff_comb_cannot_overlap_p): Likewise.
17509 (aff_combination_zero_p): Use wide-int interfaces.
17510 * tree.c: Include tree.h.
17511 (init_ttree): Use make_int_cst.
17512 (tree_code_size): Removed code for INTEGER_CST case.
17513 (tree_size): Add INTEGER_CST case.
17514 (make_node_stat): Update comment.
17515 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17516 (build_int_cst_type): Use wide-int interfaces.
17517 (double_int_to_tree): Likewise.
17518 (double_int_fits_to_tree_p): Delete.
17519 (force_fit_type_double): Delete.
17520 (force_fit_type): New.
17521 (int_cst_hash_hash): Use wide-int interfaces.
17522 (int_cst_hash_eq): Likewise.
17523 (build_int_cst_wide): Delete.
17524 (wide_int_to_tree): New.
17525 (cache_integer_cst): Use wide-int interfaces.
17526 (build_low_bits_mask): Likewise.
17527 (cst_and_fits_in_hwi): Likewise.
17528 (real_value_from_int_cst): Likewise.
17529 (make_int_cst_stat): New.
17530 (integer_zerop): Use wide_int interfaces.
17531 (integer_onep): Likewise.
17532 (integer_all_onesp): Likewise.
17533 (integer_pow2p): Likewise.
17534 (integer_nonzerop): Likewise.
17535 (tree_log2): Likewise.
17536 (tree_floor_log2): Likewise.
17537 (tree_ctz): Likewise.
17538 (int_size_in_bytes): Likewise.
17539 (mem_ref_offset): Return an offset_int rather than a double_int.
17540 (build_type_attribute_qual_variant): Use wide_int interfaces.
17541 (type_hash_eq): Likewise
17542 (tree_int_cst_equal): Likewise.
17543 (tree_int_cst_lt): Delete.
17544 (tree_int_cst_compare): Likewise.
17545 (tree_fits_shwi_p): Use wide_int interfaces.
17546 (tree_fits_uhwi_p): Likewise.
17547 (tree_int_cst_sign_bit): Likewise.
17548 (tree_int_cst_sgn): Likewise.
17549 (tree_int_cst_min_precision): Take a signop rather than a bool.
17550 (simple_cst_equal): Use wide_int interfaces.
17551 (compare_tree_int): Likewise.
17552 (iterative_hash_expr): Likewise.
17553 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17554 INT_CST_LT.
17555 (get_type_static_bounds): Use wide_int interfaces.
17556 (tree_int_cst_elt_check_failed): New.
17557 (build_common_tree_nodes): Reordered to set prec before filling in
17558 value.
17559 (int_cst_value): Check cst_and_fits_in_hwi.
17560 (widest_int_cst_value): Use wide_int interfaces.
17561 (upper_bound_in_type): Likewise.
17562 (lower_bound_in_type): Likewise.
17563 (num_ending_zeros): Likewise.
17564 (drop_tree_overflow): Likewise.
17565 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17566 (gen_conditions_for_pow_cst_base): Likewise.
17567 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17568 (group_case_labels_stmt): Use wide-int interfaces.
17569 (verify_gimple_assign_binary): Likewise.
17570 (print_loop): Likewise.
17571 * tree-chrec.c (tree_fold_binomial): Likewise.
17572 * tree-core.h (struct tree_base): Add int_length.
17573 (struct tree_int_cst): Change rep of value.
17574 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17575 (dr_may_alias_p): Likewise.
17576 (max_stmt_executions_tree): Likewise.
17577 * tree.def (INTEGER_CST): Update comment.
17578 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17579 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17580 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17581 (dequeue_and_dump): Use wide-int interfaces.
17582 * tree.h: Include wide-int.h.
17583 (NULL_TREE): Moved to earlier loc in file.
17584 (TREE_INT_CST_ELT_CHECK): New.
17585 (tree_int_cst_elt_check_failed): New.
17586 (TYPE_SIGN): New.
17587 (TREE_INT_CST): Delete.
17588 (TREE_INT_CST_LOW): Use wide-int interfaces.
17589 (TREE_INT_CST_HIGH): Delete.
17590 (TREE_INT_CST_NUNITS): New.
17591 (TREE_INT_CST_EXT_NUNITS): Likewise.
17592 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17593 (TREE_INT_CST_ELT): Likewise.
17594 (INT_CST_LT): Delete.
17595 (tree_int_cst_elt_check): New (two forms).
17596 (type_code_size): Update comment.
17597 (make_int_cst_stat, make_int_cst): New.
17598 (tree_to_double_int): Delete.
17599 (double_int_fits_to_tree_p): Delete.
17600 (force_fit_type_double): Delete.
17601 (build_int_cstu): Replace with out-of-line function.
17602 (build_int_cst_wide): Delete.
17603 (tree_int_cst_lt): Define inline.
17604 (tree_int_cst_le): New.
17605 (tree_int_cst_compare): Define inline.
17606 (tree_int_cst_min_precision): Take a signop rather than a bool.
17607 (wi::int_traits <const_tree>): New.
17608 (wi::int_traits <tree>): New.
17609 (wi::extended_tree): New.
17610 (wi::int_traits <wi::extended_tree>): New.
17611 (wi::to_widest): New.
17612 (wi::to_offset): New.
17613 (wi::fits_to_tree_p): New.
17614 (wi::min_value): New.
17615 (wi::max_value): New.
17616 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17617 (copy_tree_body_r): Likewise.
17618 * tree-object-size.c (compute_object_offset): Likewise.
17619 (addr_object_size): Likewise.
17620 * tree-predcom.c: Include wide-int-print.h.
17621 (struct dref_d): Change type of offset to widest_int.
17622 (dump_dref): Call wide-int printer.
17623 (aff_combination_dr_offset): Use wide-int interfaces.
17624 (determine_offset): Take a widest_int pointer rather than a
17625 double_int pointer.
17626 (split_data_refs_to_components): Use wide-int interfaces.
17627 (suitable_component_p): Likewise.
17628 (order_drefs): Likewise.
17629 (add_ref_to_chain): Likewise.
17630 (valid_initializer_p): Likewise.
17631 (determine_roots_comp): Likewise.
17632 * tree-pretty-print.c: Include wide-int-print.h.
17633 (dump_generic_node): Use wide-int interfaces.
17634 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17635 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17636 (move_fixed_address_to_symbol): Likewise.
17637 (move_hint_to_base): Likewise.
17638 (move_pointer_to_base): Likewise.
17639 (move_variant_to_index): Likewise.
17640 (most_expensive_mult_to_index): Likewise.
17641 (addr_to_parts): Likewise.
17642 (copy_ref_info): Likewise.
17643 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17644 (indirect_refs_may_alias_p): Likewise.
17645 (stmt_kills_ref_p_1): Likewise.
17646 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17647 * tree-ssa-ccp.c: Update comment at top of file. Include
17648 wide-int-print.h.
17649 (struct prop_value_d): Change type of mask to widest_int.
17650 (extend_mask): New function.
17651 (dump_lattice_value): Use wide-int interfaces.
17652 (get_default_value): Likewise.
17653 (set_constant_value): Likewise.
17654 (set_value_varying): Likewise.
17655 (valid_lattice_transition): Likewise.
17656 (set_lattice_value): Likewise.
17657 (value_to_double_int): Delete.
17658 (value_to_wide_int): New.
17659 (get_value_from_alignment): Use wide-int interfaces.
17660 (get_value_for_expr): Likewise.
17661 (do_dbg_cnt): Likewise.
17662 (ccp_finalize): Likewise.
17663 (ccp_lattice_meet): Likewise.
17664 (bit_value_unop_1): Use widest_ints rather than double_ints.
17665 (bit_value_binop_1): Likewise.
17666 (bit_value_unop): Use wide-int interfaces.
17667 (bit_value_binop): Likewise.
17668 (bit_value_assume_aligned): Likewise.
17669 (evaluate_stmt): Likewise.
17670 (ccp_fold_stmt): Likewise.
17671 (visit_cond_stmt): Likewise.
17672 (ccp_visit_stmt): Likewise.
17673 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17674 (constant_pointer_difference): Likewise.
17675 (associate_pointerplus): Likewise.
17676 (combine_conversions): Likewise.
17677 * tree-ssa-loop.h: Include wide-int.h.
17678 (struct tree_niter_desc): Change type of max to widest_int.
17679 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17680 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17681 (remove_redundant_iv_tests): Likewise.
17682 (canonicalize_loop_induction_variables): Likewise.
17683 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17684 (constant_multiple_of): Take a widest_int pointer instead of
17685 a double_int pointer.
17686 (get_computation_aff): Use wide-int interfaces.
17687 (ptr_difference_cost): Likewise.
17688 (difference_cost): Likewise.
17689 (get_loop_invariant_expr_id): Likewise.
17690 (get_computation_cost_at): Likewise.
17691 (iv_elimination_compare_lt): Likewise.
17692 (may_eliminate_iv): Likewise.
17693 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17694 instead of double_int.
17695 (max_loop_iterations): Likewise.
17696 (max_stmt_executions): Likewise.
17697 (estimated_stmt_executions): Likewise.
17698 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17699 (split_to_var_and_offset): Use wide-int interfaces.
17700 (determine_value_range): Likewise.
17701 (bound_difference_of_offsetted_base): Likewise.
17702 (bounds_add): Take a widest_int instead of a double_int.
17703 (number_of_iterations_ne_max): Use wide-int interfaces.
17704 (number_of_iterations_ne): Likewise.
17705 (number_of_iterations_lt_to_ne): Likewise.
17706 (assert_loop_rolls_lt): Likewise.
17707 (number_of_iterations_lt): Likewise.
17708 (number_of_iterations_le): Likewise.
17709 (number_of_iterations_cond): Likewise.
17710 (number_of_iterations_exit): Likewise.
17711 (finite_loop_p): Likewise.
17712 (derive_constant_upper_bound_assign): Likewise.
17713 (derive_constant_upper_bound): Return a widest_int.
17714 (derive_constant_upper_bound_ops): Likewise.
17715 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17716 (record_estimate): Take a widest_int rather than a double_int.
17717 (record_nonwrapping_iv): Use wide-int interfaces.
17718 (double_int_cmp): Delete.
17719 (wide_int_cmp): New.
17720 (bound_index): Take a widest_int rather than a double_int.
17721 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17722 (maybe_lower_iteration_bound): Likewise.
17723 (estimate_numbers_of_iterations_loop): Likewise.
17724 (estimated_loop_iterations): Take a widest_int pointer than than
17725 a double_int pointer.
17726 (estimated_loop_iterations_int): Use wide-int interfaces.
17727 (max_loop_iterations): Take a widest_int pointer than than
17728 a double_int pointer.
17729 (max_loop_iterations_int): Use wide-int interfaces.
17730 (max_stmt_executions): Take a widest_int pointer than than
17731 a double_int pointer.
17732 (estimated_stmt_executions): Likewise.
17733 (n_of_executions_at_most): Use wide-int interfaces.
17734 (scev_probably_wraps_p): Likewise.
17735 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17736 to real_to_integer.
17737 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17738 interfaces.
17739 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17740 double_ints. Adjust for trailing_wide_ints <3> representation.
17741 (set_nonzero_bits): Likewise.
17742 (get_range_info): Return wide_ints rather than double_ints.
17743 Adjust for trailing_wide_ints <3> representation.
17744 (get_nonzero_bits): Likewise.
17745 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17746 representation.
17747 * tree-ssanames.h (struct range_info_def): Replace min, max and
17748 nonzero_bits with a trailing_wide_ints <3>.
17749 (set_range_info): Use wide_int_refs rather than double_ints.
17750 (set_nonzero_bits): Likewise.
17751 (get_range_info): Return wide_ints rather than double_ints.
17752 (get_nonzero_bits): Likewise.
17753 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17754 * tree-ssa-pre.c (phi_translate_1): Likewise.
17755 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17756 (acceptable_pow_call): Likewise.
17757 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17758 interfaces.
17759 (vn_reference_fold_indirect): Likewise.
17760 (vn_reference_maybe_forwprop_address): Likewise.
17761 (valueize_refs_1): Likewise.
17762 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17763 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17764 tree_int_cst_lt and tree_int_cst_le.
17765 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17766 interfaces.
17767 (streamer_alloc_tree): Likewise.
17768 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17769 (streamer_write_tree_header): Likewise.
17770 (streamer_write_integer_cst): Likewise.
17771 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17772 (build_constructors): Likewise.
17773 (array_value_type): Likewise.
17774 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17775 (vect_check_gather): Likewise.
17776 * tree-vect-generic.c (build_replicated_const): Likewise.
17777 (expand_vector_divmod): Likewise.
17778 * tree-vect-loop.c (vect_transform_loop): Likewise.
17779 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17780 (vect_do_peeling_for_alignment): Likewise.
17781 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17782 * tree-vrp.c: Include wide-int.h.
17783 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17784 (extract_range_from_assert): Use wide-int interfaces.
17785 (vrp_int_const_binop): Likewise.
17786 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17787 double_int pointers.
17788 (ranges_from_anti_range): Use wide-int interfaces.
17789 (quad_int_cmp): Delete.
17790 (quad_int_pair_sort): Likewise.
17791 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17792 (extract_range_from_unary_expr_1): Likewise.
17793 (adjust_range_with_scev): Likewise.
17794 (masked_increment): Take and return wide_ints rather than double_ints.
17795 (register_edge_assert_for_2): Use wide-int interfaces.
17796 (check_array_ref): Likewise.
17797 (search_for_addr_array): Likewise.
17798 (maybe_set_nonzero_bits): Likewise.
17799 (union_ranges): Pass an integer of the correct type instead of
17800 using integer_one_node.
17801 (intersect_ranges): Likewise.
17802 (simplify_truth_ops_using_ranges): Likewise.
17803 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17804 (range_fits_type_p): Likewise.
17805 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17806 a bool.
17807 (simplify_conversion_using_ranges): Use wide-int interfaces.
17808 (simplify_float_conversion_using_ranges): Likewise.
17809 (vrp_finalize): Likewise.
17810 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17811 (gimple_stringops_transform): Likewise.
17812 * varasm.c (decode_addr_const): Likewise.
17813 (const_hash_1): Likewise.
17814 (const_rtx_hash_1): Likewise
17815 (output_constant): Likewise.
17816 (array_size_for_constructor): Likewise.
17817 (output_constructor_regular_field): Likewise.
17818 (output_constructor_bitfield): Likewise.
17819 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17820 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17821 GENERATOR_FILEs.
17822 * gencheck.c: Define BITS_PER_UNIT.
17823 * wide-int.cc: New.
17824 * wide-int.h: New.
17825 * wide-int-print.cc: New.
17826 * wide-int-print.h: New.
17827
17828 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17829
17830 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17831
17832 2014-05-06 Richard Biener <rguenther@suse.de>
17833
17834 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17835 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17836 (TODO_verify_all): Adjust.
17837 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17838 TODO_verify_stmts and TODO_verify_rtl_sharing.
17839 * bb-reorder.c: Likewise.
17840 * cfgexpand.c: Likewise.
17841 * cprop.c: Likewise.
17842 * cse.c: Likewise.
17843 * function.c: Likewise.
17844 * fwprop.c: Likewise.
17845 * gcse.c: Likewise.
17846 * gimple-ssa-isolate-paths.c: Likewise.
17847 * gimple-ssa-strength-reduction.c: Likewise.
17848 * ipa-split.c: Likewise.
17849 * loop-init.c: Likewise.
17850 * loop-unroll.c: Likewise.
17851 * lower-subreg.c: Likewise.
17852 * modulo-sched.c: Likewise.
17853 * postreload-gcse.c: Likewise.
17854 * predict.c: Likewise.
17855 * recog.c: Likewise.
17856 * sched-rgn.c: Likewise.
17857 * store-motion.c: Likewise.
17858 * tracer.c: Likewise.
17859 * trans-mem.c: Likewise.
17860 * tree-call-cdce.c: Likewise.
17861 * tree-cfg.c: Likewise.
17862 * tree-cfgcleanup.c: Likewise.
17863 * tree-complex.c: Likewise.
17864 * tree-eh.c: Likewise.
17865 * tree-emutls.c: Likewise.
17866 * tree-if-conv.c: Likewise.
17867 * tree-into-ssa.c: Likewise.
17868 * tree-loop-distribution.c: Likewise.
17869 * tree-object-size.c: Likewise.
17870 * tree-parloops.c: Likewise.
17871 * tree-pass.h: Likewise.
17872 * tree-sra.c: Likewise.
17873 * tree-ssa-ccp.c: Likewise.
17874 * tree-ssa-copy.c: Likewise.
17875 * tree-ssa-copyrename.c: Likewise.
17876 * tree-ssa-dce.c: Likewise.
17877 * tree-ssa-dom.c: Likewise.
17878 * tree-ssa-dse.c: Likewise.
17879 * tree-ssa-forwprop.c: Likewise.
17880 * tree-ssa-ifcombine.c: Likewise.
17881 * tree-ssa-loop-ch.c: Likewise.
17882 * tree-ssa-loop-ivcanon.c: Likewise.
17883 * tree-ssa-loop.c: Likewise.
17884 * tree-ssa-math-opts.c: Likewise.
17885 * tree-ssa-phiopt.c: Likewise.
17886 * tree-ssa-phiprop.c: Likewise.
17887 * tree-ssa-pre.c: Likewise.
17888 * tree-ssa-reassoc.c: Likewise.
17889 * tree-ssa-sink.c: Likewise.
17890 * tree-ssa-strlen.c: Likewise.
17891 * tree-ssa-tail-merge.c: Likewise.
17892 * tree-ssa-uncprop.c: Likewise.
17893 * tree-switch-conversion.c: Likewise.
17894 * tree-tailcall.c: Likewise.
17895 * tree-vect-generic.c: Likewise.
17896 * tree-vectorizer.c: Likewise.
17897 * tree-vrp.c: Likewise.
17898 * tsan.c: Likewise.
17899 * var-tracking.c: Likewise.
17900 * bt-load.c: Likewise.
17901 * cfgcleanup.c: Likewise.
17902 * combine-stack-adj.c: Likewise.
17903 * combine.c: Likewise.
17904 * compare-elim.c: Likewise.
17905 * config/epiphany/resolve-sw-modes.c: Likewise.
17906 * config/i386/i386.c: Likewise.
17907 * config/mips/mips.c: Likewise.
17908 * config/s390/s390.c: Likewise.
17909 * config/sh/sh_treg_combine.cc: Likewise.
17910 * config/sparc/sparc.c: Likewise.
17911 * dce.c: Likewise.
17912 * dse.c: Likewise.
17913 * final.c: Likewise.
17914 * ifcvt.c: Likewise.
17915 * mode-switching.c: Likewise.
17916 * passes.c: Likewise.
17917 * postreload.c: Likewise.
17918 * ree.c: Likewise.
17919 * reg-stack.c: Likewise.
17920 * regcprop.c: Likewise.
17921 * regrename.c: Likewise.
17922 * web.c: Likewise.
17923
17924 2014-05-06 Richard Biener <rguenther@suse.de>
17925
17926 PR middle-end/61070
17927 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17928 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17929
17930 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17931
17932 PR ipa/60965
17933 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17934
17935 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17936 Tom de Vries <tom@codesourcery.com>
17937
17938 * target.def (call_fusage_contains_non_callee_clobbers): New
17939 DEFHOOKPOD.
17940 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17941 Hooks to @menu.
17942 (@node Miscellaneous Register Hooks): New node.
17943 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17944 * doc/tm.texi: Regenerate.
17945
17946 2014-05-05 Marek Polacek <polacek@redhat.com>
17947
17948 PR driver/61065
17949 * opts.c (common_handle_option): Call error_at instead of warning_at.
17950
17951 2014-05-05 Richard Biener <rguenther@suse.de>
17952
17953 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17954 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17955 under the TODO_verify_il umbrella.
17956
17957 2014-05-05 Richard Biener <rguenther@suse.de>
17958
17959 * passes.c (execute_function_todo): Move TODO_verify_flow under
17960 the TODO_verify_ul umbrella.
17961
17962 2014-05-05 Richard Biener <rguenther@suse.de>
17963
17964 PR middle-end/61010
17965 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17966 X & CST away from a CST that is the mask of a mode.
17967
17968 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17969
17970 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17971 int argument to enum machine_mode.
17972 (picochip_class_max_nregs): Ditto.
17973 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17974 (picochip_class_max_nregs): Ditto.
17975
17976 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17977
17978 * target.def: Add new target hook.
17979 * doc/tm.texi: Regenerate.
17980 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17981 * targhooks.c (default_keep_leaf_when_profiled): New function.
17982
17983 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17984 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17985
17986 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17987
17988 PR tree-optimization/60363
17989 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17990 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17991 (update_destination_phis): New parameter.
17992 (create_edge_and_update_destination_phis): Ditto.
17993 (ssa_fix_duplicate_block_edges): Pass new arguments.
17994 (thread_single_edge): Ditto.
17995
17996 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17997
17998 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17999 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18000 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18001 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18002 Use RS6000_BTM_HARD_FLOAT.
18003 (BU_MISC_2): Likewise.
18004 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18005 RS6000_BTM_HARD_FLOAT.
18006 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18007 is explicitly used.
18008 (rs6000_invalid_builtin): Add hard floating builtin support.
18009 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18010 hard float builtins.
18011 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18012
18013 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18014
18015 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18016 Add missing function* argument.
18017
18018 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18019
18020 * lra-constraints.c (valid_address_p): Move earlier in file.
18021 Add a constraint argument to the address_info version.
18022 (satisfies_memory_constraint_p): New function.
18023 (satisfies_address_constraint_p): Likewise.
18024 (process_alt_operands, curr_insn_transform): Use them.
18025 (process_address): Pass the constraint to valid_address_p when
18026 checking address operands.
18027
18028 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18029
18030 * config/mips/mips.c (mips_isa_rev): New variable.
18031 (mips_set_architecture): Set it.
18032 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18033 from mips_isa_rev.
18034 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18035 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18036 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18037 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18038 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18039 conditions in terms of mips_isa_rev.
18040 (mips_isa_rev): Declare.
18041
18042 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18043
18044 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18045 (prob_unlikely, prob_likely): Make variables const.
18046
18047 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18048
18049 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18050
18051 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18052
18053 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18054
18055 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18056
18057 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18058 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18059 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18060 functions.
18061 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18062 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18063 sh_pass_in_reg_p.
18064 Replace usage of ROUND_REG with sh_round_reg.
18065 Use CEIL instead of ROUND_ADVANCE.
18066
18067 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18068
18069 PR target/61026
18070 * config/sh/sh.c: Include stdlib headers before everything else.
18071
18072 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18073
18074 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18075 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18076 (gimplify_adjust_omp_clauses): Simd region is never
18077 directly nested in combined parallel. Instead, for linear
18078 with copyin/copyout, if in combined for simd loop, make decl
18079 firstprivate/lastprivate on OMP_FOR.
18080 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18081 expand_omp_for_static_chunk): When setting endvar, also set
18082 fd->loop.v to the same value.
18083
18084 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18085
18086 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18087
18088 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18089
18090 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18091 expression.
18092
18093 2014-05-02 Marek Polacek <polacek@redhat.com>
18094
18095 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18096
18097 2014-05-02 Kito Cheng <kito@0xlab.org>
18098
18099 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18100 to a C expression marco.
18101 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18102 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18103 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18104 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18105 HONOR_REG_ALLOC_ORDER.
18106 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18107
18108 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18109
18110 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18111
18112 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18113
18114 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18115
18116 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18117
18118 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18119 (convert_scalar_cond_reduction): Likewise.
18120 (predicate_scalar_phi): Add recognition and transformation
18121 of simple conditioanl reduction to be vectorizable.
18122
18123 2014-05-01 Marek Polacek <polacek@redhat.com>
18124
18125 PR c/43245
18126 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18127
18128 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18129
18130 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18131 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18132 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18133 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18134 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18135 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18136 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18137 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18138
18139 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18140
18141 * config/arc/arc.opt (mlra): Move comment above option name
18142 to avoid mis-parsing as language options.
18143
18144 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18145
18146 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18147 * config/sol2.h: ... here.
18148 * config/sol2-10.h: Remove.
18149
18150 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18151 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18152 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18153 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18154 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18155 * config/sol2.h: ... here.
18156 (SECTION_NAME_FORMAT): Don't redefine.
18157 (STARTFILE_ARCH32_SPEC): Rename to ...
18158 (STARTFILE_ARCH_SPEC): ... this.
18159 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18160 * config/sparc/sol2.h: ... here.
18161 (SECTION_NAME_FORMAT): Don't undef.
18162 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18163 (SUBTARGET_EXTRA_SPECS): Remove.
18164 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18165
18166 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18167 (MD_STARTFILE_PREFIX): Remove.
18168 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18169 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18170 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18171 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18172 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18173 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18174 * config/i386/sol2.h: ... here.
18175 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18176 * config/i386/sol2-bi.h: Remove.
18177 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18178 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18179
18180 * config/i386/t-sol2-64: Rename to ...
18181 * config/i386/t-sol2: ... this.
18182 * config/sparc/t-sol2-64: Rename to ...
18183 * config/sparc/t-sol2: ... this.
18184
18185 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18186 sol2_tm_file_head, sol2_tm_file_tail.
18187 Include ${cpu_type}/sol2.h before sol2.h.
18188 Remove sol2-10.h.
18189 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18190 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18191 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18192 Reflect i386/t-sol2-64 renaming.
18193 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18194 Reflect sparc/t-sol2-64 renaming.
18195
18196 2014-04-30 Richard Biener <rguenther@suse.de>
18197
18198 * passes.c (execute_function_todo): Move TODO_verify_stmts
18199 and TODO_verify_ssa under the TODO_verify_il umbrella.
18200 * tree-ssa.h (verify_ssa): Adjust prototype.
18201 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18202 we should verify SSA operands.
18203 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18204 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18205 whether we should verify whether not throwing stmts have EH info.
18206 * graphite-scop-detection.c (create_sese_edges): Adjust.
18207 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18208 * tree-eh.c (lower_try_finally_switch): Do not add the
18209 default case label twice.
18210
18211 2014-04-30 Marek Polacek <polacek@redhat.com>
18212
18213 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18214 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18215 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18216 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18217
18218 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18219
18220 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18221 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18222 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18223 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18224 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18225 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18226 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18227 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18228
18229 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18230
18231 * tree-cfg.c (dump_function_to_file): Dump the return type of
18232 functions, in a line to itself before the function body, mimicking
18233 the layout of a C function.
18234
18235 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18236
18237 PR tree-optimization/60971
18238 * tree-tailcall.c (process_assignment): Reject conversions which
18239 reduce precision.
18240
18241 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18242
18243 * calls.c (initialize_argument_information): Always treat
18244 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18245 (expand_call): Likewise.
18246 (emit_library_call_calue_1): Likewise.
18247 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18248 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18249 code accordingly.
18250
18251 2014-04-29 Nick Clifton <nickc@redhat.com>
18252
18253 * config/msp430/msp430.md (umulsidi): Fix typo.
18254 (mulhisi3): Enable even inside interrupt handlers.
18255 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18256 bigger return address pushed in large mode.
18257
18258 2014-04-29 Nick Clifton <nickc@redhat.com>
18259
18260 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18261 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18262 available modes.
18263 * config/m32r/m32r.c (init_reg_tables): Likewise.
18264 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18265 enum to hold the modes.
18266
18267 2014-04-29 Richard Biener <rguenther@suse.de>
18268
18269 * dominance.c (free_dominance_info): Add overload with
18270 function parameter.
18271 (dom_info_state): Likewise.
18272 (dom_info_available_p): Likewise.
18273 * basic-block.h (free_dominance_info, dom_info_state,
18274 dom_info_available_p): Declare overloads.
18275 * passes.c (execute_function_todo): Verify that verifiers
18276 don't change dominator info state. Drop dominator info
18277 for IPA pass invocations.
18278 * cgraph.c (release_function_body): Restore asserts that
18279 dominator information is released.
18280
18281 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18282
18283 * doc/invoke.texi: Fix typo.
18284 * tree-vrp.c: Fix typos.
18285 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18286
18287 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18288
18289 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18290
18291 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18292
18293 * config/aarch64/aarch64-builtins.c
18294 (aarch64_types_storestruct_lane_qualifiers): New.
18295 (TYPES_STORESTRUCT_LANE): Likewise.
18296 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18297 (st3_lane): Likewise.
18298 (st4_lane): Likewise.
18299 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18300 (vec_store_lanesci_lane<mode>): Likewise.
18301 (vec_store_lanesxi_lane<mode>): Likewise.
18302 (aarch64_st2_lane<VQ:mode>): Likewise.
18303 (aarch64_st3_lane<VQ:mode>): Likewise.
18304 (aarch64_st4_lane<VQ:mode>): Likewise.
18305 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18306 * config/aarch64/arm_neon.h
18307 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18308 use new macro arguments.
18309 (__ST3_LANE_FUNC): Likewise.
18310 (__ST4_LANE_FUNC): Likewise.
18311 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18312 (V_THREE_ELEM): Likewise.
18313 (V_FOUR_ELEM): Likewise.
18314
18315 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18316
18317 * doc/gimple.texi: Replace the description of the now-defunct
18318 union gimple_statement_d with a diagram showing the
18319 gimple_statement_base class hierarchy and its relationships to
18320 the GSS_ and GIMPLE_ enums.
18321
18322 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18323
18324 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18325 * config/aarch64/aarch64.c
18326 (aarch64_cannot_change_mode_class): Weaken conditions.
18327 (aarch64_modes_tieable_p): New.
18328 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18329
18330 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18331
18332 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18333 (loadsync_<mode>): Change mode.
18334 (load_quadpti, store_quadpti): New.
18335 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18336 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18337
18338 2014-04-28 Martin Jambor <mjambor@suse.cz>
18339
18340 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18341 same alias type as the original statement.
18342 (subreplacement_assignment_data): New type.
18343 (handle_unscalarized_data_in_subtree): New type of parameter,
18344 generate new memory accesses with same alias type as the original
18345 statement.
18346 (load_assign_lhs_subreplacements): Likewise.
18347 (sra_modify_constructor_assign): Generate new memory accesses with
18348 same alias type as the original statement.
18349
18350 2014-04-28 Richard Biener <rguenther@suse.de>
18351
18352 * tree-pass.h (TODO_verify_il): Define.
18353 (TODO_verify_all): Complete properly.
18354 * passes.c (execute_function_todo): Move existing loop-closed
18355 SSA verification under TODO_verify_il.
18356 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18357 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18358 Fix tree sharing issue.
18359
18360 2014-04-28 Richard Biener <rguenther@suse.de>
18361
18362 PR middle-end/60092
18363 * builtins.def (DEF_C11_BUILTIN): Add.
18364 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18365 * coretypes.h (enum function_class): Add function_c11_misc.
18366 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18367 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18368 (call_may_clobber_ref_p_1): Likewise.
18369 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18370 (mark_all_reaching_defs_necessary_1): Likewise.
18371 (propagate_necessity): Likewise.
18372 (eliminate_unnecessary_stmts): Likewise.
18373 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18374
18375 2014-04-28 Richard Biener <rguenther@suse.de>
18376
18377 * tree-vrp.c (vrp_var_may_overflow): Remove.
18378 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18379 with overflow immediately bump to one before that value and
18380 let iteration figure out overflow status.
18381
18382 2014-04-28 Richard Biener <rguenther@suse.de>
18383
18384 * configure.ac: Do valgrind header checks unconditionally.
18385 Add --enable-valgrind-annotations.
18386 * system.h: Guard valgrind header inclusion with
18387 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18388 * alloc-pool.c (pool_alloc, pool_free): Use
18389 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18390 to guard possibly dead code.
18391 * config.in: Regenerated.
18392 * configure: Likewise.
18393
18394 2014-04-28 Jeff Law <law@redhat.com>
18395
18396 PR tree-optimization/60902
18397 * tree-ssa-threadedge.c
18398 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18399 over real defs when invalidating outputs from statements that do not
18400 produce useful outputs for threading.
18401
18402 2014-04-28 Richard Biener <rguenther@suse.de>
18403
18404 PR tree-optimization/60979
18405 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18406 SCOPs that end in a block with a successor with abnormal
18407 predecessors.
18408
18409 2014-04-28 Richard Biener <rguenther@suse.de>
18410
18411 * tree-pass.h (execute_pass_list): Adjust prototype.
18412 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18413 (do_per_function): Change callback signature, push all actual
18414 work to the callbals.
18415 (do_per_function_toporder): Likewise.
18416 (execute_function_dump): Adjust.
18417 (execute_function_todo): Likewise.
18418 (clear_last_verified): Likewise.
18419 (verify_curr_properties): Likewise.
18420 (update_properties_after_pass): Likewise.
18421 (execute_pass_list_1): Split out from ...
18422 (execute_pass_list): ... here. Adjust.
18423 (execute_ipa_pass_list): Likewise.
18424 * cgraphunit.c (cgraph_add_new_function): Adjust.
18425 (analyze_function): Likewise.
18426 (expand_function): Likewise.
18427 * cgraph.c (release_function_body): Free dominance info
18428 here instead of asserting it was magically freed elsewhere.
18429
18430 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18431
18432 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18433 * configure: Regenerate.
18434 * config/sparc/sparc.opt (muser-mode): New option.
18435 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18436 for LEON3.
18437 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18438 * doc/invoke.texi (SPARC options): Document -muser-mode.
18439
18440 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18441
18442 * cselib.c (find_slot_memmode): Delete.
18443 (cselib_hasher): Change compare_type to a struct.
18444 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18445 constants.
18446 (preserve_constants_and_equivs): Adjust for new compare_type.
18447 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18448 (wrap_constant): Delete.
18449 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18450
18451 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18452
18453 * doc/install.texi (Building with profile feedback): Remove
18454 outdated sentence.
18455
18456 2014-04-26 Tom de Vries <tom@codesourcery.com>
18457
18458 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18459 array accesses.
18460
18461 2014-04-25 Cary Coutant <ccoutant@google.com>
18462
18463 PR debug/60929
18464 * dwarf2out.c (should_move_die_to_comdat): A type definition
18465 can contain a subprogram definition, but don't move it to a
18466 comdat unit.
18467 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18468 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18469 from original DIE.
18470 (clone_tree_hash): Rename to...
18471 (clone_tree_partial): ...this; change callers. Copy
18472 DW_TAG_subprogram DIEs as declarations.
18473 (copy_decls_walk): Don't copy children of a declaration into a
18474 type unit.
18475
18476 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18477
18478 PR target/60969
18479 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18480 alternative 12.
18481
18482 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18483
18484 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18485 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18486 reg for long_call.
18487 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18488 restriction.
18489
18490 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18491
18492 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18493
18494 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18495
18496 PR tree-optimization/60930
18497 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18498 creating a multiply candidate by folding two constant
18499 multiplicands when the result overflows.
18500
18501 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18502
18503 PR tree-optimization/60960
18504 * tree-vect-generic.c (expand_vector_operation): Only call
18505 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18506
18507 2014-04-25 Tom de Vries <tom@codesourcery.com>
18508
18509 * expr.c (clobber_reg_mode): New function.
18510 * expr.h (clobber_reg): New function.
18511
18512 2014-04-25 Tom de Vries <tom@codesourcery.com>
18513
18514 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18515 clobbers.
18516
18517 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18518 Tom de Vries <tom@codesourcery.com>
18519
18520 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18521 handle.
18522 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18523 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18524 new argument to find_all_hard_reg_sets call.
18525
18526 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18527
18528 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18529 Use HOST_WIDE_INT_C for mask literal.
18530 (aarch_rev16_shleft_mask_imm_p): Likewise.
18531
18532 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18533
18534 PR target/60941
18535 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18536
18537 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18538
18539 PR preprocessor/56540
18540 * config/i386/i386-c.c (ix86_target_macros): Define
18541 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18542
18543 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18544
18545 * configure.ac (tga_func): Remove.
18546 (LIB_TLS_SPEC): Remove.
18547 * configure: Regenerate.
18548 * config.in: Regenerate.
18549 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18550
18551 2014-04-25 Richard Biener <rguenther@suse.de>
18552
18553 PR ipa/60912
18554 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18555 call stmt use/clobber sets during stmt walk instead of
18556 walking the possibly incomplete set of caller edges.
18557
18558 2014-04-25 Richard Biener <rguenther@suse.de>
18559
18560 PR ipa/60911
18561 * passes.c (apply_ipa_transforms): Inline into only caller ...
18562 (execute_one_pass): ... here. Properly bring in function
18563 bodies for nodes we want to apply IPA transforms to.
18564
18565 2014-04-24 Cong Hou <congh@google.com>
18566
18567 PR tree-optimization/60896
18568 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18569 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18570 (vect_mark_pattern_stmts): Set the def type of all statements in
18571 PATTERN_DEF_SEQ as vect_internal_def.
18572
18573 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18574
18575 * doc/extend.texi (PowerPC Built-in Functions): Document new
18576 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18577 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18578
18579 * config/rs6000/predicates.md (const_0_to_3_operand): New
18580 predicate to match 0..3 integer constants.
18581
18582 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18583 to support adding miscellaneous builtin functions.
18584 (BU_DFP_MISC_2): Likewise.
18585 (BU_P7_MISC_1): Likewise.
18586 (BU_P7_MISC_2): Likewise.
18587 (BU_P8V_MISC_3): Likewise.
18588 (BU_MISC_1): Likewise.
18589 (BU_MISC_2): Likewise.
18590 (DIVWE): Add extended divide builtin functions.
18591 (DIVWEO): Likewise.
18592 (DIVWEU): Likewise.
18593 (DIVWEUO): Likewise.
18594 (DIVDE): Likewise.
18595 (DIVDEO): Likewise.
18596 (DIVDEU): Likewise.
18597 (DIVDEUO): Likewise.
18598 (DXEX): Add decimal floating-point builtin functions.
18599 (DXEXQ): Likewise.
18600 (DDEDPD): Likewise.
18601 (DDEDPDQ): Likewise.
18602 (DENBCD): Likewise.
18603 (DENBCDQ): Likewise.
18604 (DIEX): Likewise.
18605 (DIEXQ): Likewise.
18606 (DSCLI): Likewise.
18607 (DSCLIQ): Likewise.
18608 (DSCRI): Likewise.
18609 (DSCRIQ): Likewise.
18610 (CDTBCD): Add new BCD builtin functions.
18611 (CBCDTD): Likewise.
18612 (ADDG6S): Likewise.
18613 (BCDADD): Likewise.
18614 (BCDADD_LT): Likewise.
18615 (BCDADD_EQ): Likewise.
18616 (BCDADD_GT): Likewise.
18617 (BCDADD_OV): Likewise.
18618 (BCDSUB): Likewise.
18619 (BCDSUB_LT): Likewise.
18620 (BCDSUB_EQ): Likewise.
18621 (BCDSUB_GT): Likewise.
18622 (BCDSUB_OV): Likewise.
18623 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18624 (UNPACK_TD): Likewise.
18625 (PACK_TF): Likewise.
18626 (UNPACK_TF): Likewise.
18627 (UNPACK_TF_0): Likewise.
18628 (UNPACK_TF_1): Likewise.
18629 (PACK_V1TI): Likewise.
18630 (UNPACK_V1TI): Likewise.
18631
18632 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18633 support for decimal floating point builtin functions.
18634 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18635 functions that take constant arguments.
18636 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18637 (rs6000_init_builtins): Setup long double, _Decimal64, and
18638 _Decimal128 types for new builtin functions.
18639 (builtin_function_type): Set the unsigned flags appropriately for
18640 the new builtin functions.
18641 (rs6000_opt_masks): Add support for decimal floating point builtin
18642 functions.
18643
18644 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18645 floating point builtin functions.
18646 (RS6000_BTM_COMMON): Likewise.
18647 (RS6000_BTI_long_double): Likewise.
18648 (RS6000_BTI_dfloat64): Likewise.
18649 (RS6000_BTI_dfloat128): Likewise.
18650 (long_double_type_internal_node): Likewise.
18651 (dfloat64_type_internal_node): Likewise.
18652 (dfloat128_type_internal_node): Likewise.
18653
18654 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18655 2.07 bcd arithmetic instructions.
18656 (UNSPEC_BCDSUB): Likewise.
18657 (UNSPEC_BCD_OVERFLOW): Likewise.
18658 (UNSPEC_BCD_ADD_SUB): Likewise.
18659 (bcd_add_sub): Likewise.
18660 (BCD_TEST): Likewise.
18661 (bcd<bcd_add_sub>): Likewise.
18662 (bcd<bcd_add_sub>_test): Likewise.
18663 (bcd<bcd_add_sub>_test2): Likewise.
18664 (bcd<bcd_add_sub>_<code>): Likewise.
18665 (peephole2 for combined bcd ops): Likewise.
18666
18667 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18668 decimal floating point builtin functions.
18669 (UNSPEC_DENBCD): Likewise.
18670 (UNSPEC_DXEX): Likewise.
18671 (UNSPEC_DIEX): Likewise.
18672 (UNSPEC_DSCLI): Likewise.
18673 (UNSPEC_DSCRI): Likewise.
18674 (D64_D128): Likewise.
18675 (dfp_suffix): Likewise.
18676 (dfp_ddedpd_<mode>): Likewise.
18677 (dfp_denbcd_<mode>): Likewise.
18678 (dfp_dxex_<mode>): Likewise.
18679 (dfp_diex_<mode>): Likewise.
18680 (dfp_dscli_<mode>): Likewise.
18681 (dfp_dscri_<mode>): Likewise.
18682
18683 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18684 builtin functions.
18685 (UNSPEC_CDTBCD): Likewise.
18686 (UNSPEC_CBCDTD): Likewise.
18687 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18688 (UNSPEC_DIVEO): Likewise.
18689 (UNSPEC_DIVEU): Likewise.
18690 (UNSPEC_DIVEUO): Likewise.
18691 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18692 pack/unpack 128-bit types.
18693 (UNSPEC_PACK_128BIT): Likewise.
18694 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18695 (udiv<mode>3): Use idiv_ldiv mode attribute.
18696 (div<mode>3): Likewise.
18697 (addg6s): Add new BCD builtin functions.
18698 (cdtbcd): Likewise.
18699 (cbcdtd): Likewise.
18700 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18701 (div_extend): Likewise.
18702 (div<div_extend>_<mode>"): Likewise.
18703 (FP128_64): Add support for new builtin functions to pack/unpack
18704 128-bit types.
18705 (unpack<mode>): Likewise.
18706 (unpacktf_0): Likewise.
18707 (unpacktf_1): Likewise.
18708 (unpack<mode>_dm): Likewise.
18709 (unpack<mode>_nodm): Likewise.
18710 (pack<mode>): Likewise.
18711 (unpackv1ti): Likewise.
18712 (packv1ti): Likewise.
18713
18714 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18715
18716 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18717 is disabled.
18718
18719 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18720
18721 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18722 * gimplify.c (omp_is_private): Change last argument's type to int.
18723 Only diagnose lastprivate if the simd argument is 1, only diagnose
18724 linear if the simd argument is 2.
18725 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18726 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18727 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18728 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18729 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18730 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18731 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18732 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18733 * tree-nested.c (convert_nonlocal_omp_clauses,
18734 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18735
18736 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18737
18738 PR target/60822
18739 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18740 operand 1.
18741
18742 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18743
18744 * flag-types.h (enum ivar_visibility): Add.
18745
18746 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18747
18748 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18749 function * argument.
18750
18751 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18752
18753 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18754
18755 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18756 Tom de Vries <tom@codesourcery.com>
18757
18758 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18759 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18760 reg-note.
18761 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18762 * emit-rtl.c (try_split): Same.
18763
18764 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18765 Tom de Vries <tom@codesourcery.com>
18766
18767 * common.opt (fuse-caller-save): New option.
18768
18769 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18770
18771 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18772 elements for big-endian.
18773
18774 2014-04-24 Richard Biener <rguenther@suse.de>
18775
18776 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18777 during TER and instead use the sepops interface for expanding
18778 non-GIMPLE_SINGLE_RHS.
18779
18780 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18781
18782 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18783 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18784
18785 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18786
18787 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18788 assembler 64-bit option.
18789 * configure: Regenerate.
18790
18791 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18792
18793 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18794 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18795 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18796 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18797 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18798
18799 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18800
18801 * config/aarch64/aarch64-builtins.c
18802 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18803 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18804 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18805 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18806 builtins.
18807 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18808 (Vrevsuff): New mode attribute.
18809
18810 2014-04-24 Terry Guo <terry.guo@arm.com>
18811
18812 * config/arm/arm.h (machine_function): Define variable
18813 after_arm_reorg here.
18814 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18815 (arm_split_constant): Update the way to access variable
18816 after_arm_reorg.
18817 (arm_reorg): Ditto.
18818 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18819
18820 2014-04-23 Tom de Vries <tom@codesourcery.com>
18821
18822 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18823
18824 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18825
18826 * is-a.h: Update comments to reflect the following changes to the
18827 "pointerness" of the API, making the template parameter match the
18828 return type, allowing use of is-a.h with typedefs of pointers.
18829 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18830 that the return type matches the parameter to the is_a_helper.
18831 (as_a): Likewise.
18832 (dyn_cast): Likewise.
18833
18834 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18835 pointer from the is-a.h API.
18836
18837 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18838 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18839 is-a.h API.
18840 (is_a_helper <varpool_node>::test): Likewise, convert to...
18841 (is_a_helper <varpool_node *>::test): ...this.
18842
18843 (varpool_first_variable): Update for removal of implicit pointer
18844 from the is-a.h API.
18845 (varpool_next_variable): Likewise.
18846 (varpool_first_static_initializer): Likewise.
18847 (varpool_next_static_initializer): Likewise.
18848 (varpool_first_defined_variable): Likewise.
18849 (varpool_next_defined_variable): Likewise.
18850 (cgraph_first_defined_function): Likewise.
18851 (cgraph_next_defined_function): Likewise.
18852 (cgraph_first_function): Likewise.
18853 (cgraph_next_function): Likewise.
18854 (cgraph_first_function_with_gimple_body): Likewise.
18855 (cgraph_next_function_with_gimple_body): Likewise.
18856 (cgraph_alias_target): Likewise.
18857 (varpool_alias_target): Likewise.
18858 (cgraph_function_or_thunk_node): Likewise.
18859 (varpool_variable_node): Likewise.
18860 (symtab_real_symbol_p): Likewise.
18861 * cgraphunit.c (referred_to_p): Likewise.
18862 (analyze_functions): Likewise.
18863 (handle_alias_pairs): Likewise.
18864 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18865 * gimple-ssa.h (gimple_vuse_op): Likewise.
18866 (gimple_vdef_op): Likewise.
18867 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18868 * gimple.c (gimple_build_asm_1): Likewise.
18869 (gimple_build_try): Likewise.
18870 (gimple_build_resx): Likewise.
18871 (gimple_build_eh_dispatch): Likewise.
18872 (gimple_build_omp_for): Likewise.
18873 (gimple_omp_for_set_clauses): Likewise.
18874
18875 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18876 (is_a_helper <gimple_statement_asm *>::test): ...this.
18877 (is_a_helper <gimple_statement_bind>::test): Convert to...
18878 (is_a_helper <gimple_statement_bind *>::test): ...this.
18879 (is_a_helper <gimple_statement_call>::test): Convert to...
18880 (is_a_helper <gimple_statement_call *>::test): ...this.
18881 (is_a_helper <gimple_statement_catch>::test): Convert to...
18882 (is_a_helper <gimple_statement_catch *>::test): ...this.
18883 (is_a_helper <gimple_statement_resx>::test): Convert to...
18884 (is_a_helper <gimple_statement_resx *>::test): ...this.
18885 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18886 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18887 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18888 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18889 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18890 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18891 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18892 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18893 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18894 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18895 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18896 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18897 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18898 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18899 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18900 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18901 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18902 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18903 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18904 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18905 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18906 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18907 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18908 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18909 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18910 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18911 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18912 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18913 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18914 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18915 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18916 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18917 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18918 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18919 (is_a_helper <gimple_statement_phi>::test): Convert to...
18920 (is_a_helper <gimple_statement_phi *>::test): ...this.
18921 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18922 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18923 (is_a_helper <gimple_statement_try>::test): Convert to...
18924 (is_a_helper <gimple_statement_try *>::test): ...this.
18925 (is_a_helper <gimple_statement_wce>::test): Convert to...
18926 (is_a_helper <gimple_statement_wce *>::test): ...this.
18927 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18928 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18929 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18930 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18931 (is_a_helper <const gimple_statement_call>::test): Convert to...
18932 (is_a_helper <const gimple_statement_call *>::test): ...this.
18933 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18934 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18935 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18936 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18937 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18938 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18939 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18940 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18941 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18942 Convert to...
18943 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18944 ...this.
18945 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18946 Convert to...
18947 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18948 ...this.
18949 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18950 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18951 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18952 to...
18953 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18954 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18955 to...
18956 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18957 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18958 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18959 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18960 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18961 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18962 to...
18963 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18964 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18965 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18966 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18967 to...
18968 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18969 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18970 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18971 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18972 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18973 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18974 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18975 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18976 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18977 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18978 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18979 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18980 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18981 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18982 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18983 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18984 to...
18985 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18986 ...this.
18987 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18988 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18989
18990 (gimple_use_ops): Update for removal of implicit pointer from the
18991 is-a.h API.
18992 (gimple_set_use_ops): Likewise.
18993 (gimple_vuse): Likewise.
18994 (gimple_vdef): Likewise.
18995 (gimple_vuse_ptr): Likewise.
18996 (gimple_vdef_ptr): Likewise.
18997 (gimple_set_vuse): Likewise.
18998 (gimple_set_vdef): Likewise.
18999 (gimple_omp_return_set_lhs): Likewise.
19000 (gimple_omp_return_lhs): Likewise.
19001 (gimple_omp_return_lhs_ptr): Likewise.
19002 (gimple_call_fntype): Likewise.
19003 (gimple_call_set_fntype): Likewise.
19004 (gimple_call_set_internal_fn): Likewise.
19005 (gimple_call_use_set): Likewise.
19006 (gimple_call_clobber_set): Likewise.
19007 (gimple_bind_vars): Likewise.
19008 (gimple_bind_set_vars): Likewise.
19009 (gimple_bind_body_ptr): Likewise.
19010 (gimple_bind_set_body): Likewise.
19011 (gimple_bind_add_stmt): Likewise.
19012 (gimple_bind_block): Likewise.
19013 (gimple_bind_set_block): Likewise.
19014 (gimple_asm_ninputs): Likewise.
19015 (gimple_asm_noutputs): Likewise.
19016 (gimple_asm_nclobbers): Likewise.
19017 (gimple_asm_nlabels): Likewise.
19018 (gimple_asm_input_op): Likewise.
19019 (gimple_asm_input_op_ptr): Likewise.
19020 (gimple_asm_output_op): Likewise.
19021 (gimple_asm_output_op_ptr): Likewise.
19022 (gimple_asm_set_output_op): Likewise.
19023 (gimple_asm_clobber_op): Likewise.
19024 (gimple_asm_set_clobber_op): Likewise.
19025 (gimple_asm_label_op): Likewise.
19026 (gimple_asm_set_label_op): Likewise.
19027 (gimple_asm_string): Likewise.
19028 (gimple_catch_types): Likewise.
19029 (gimple_catch_types_ptr): Likewise.
19030 (gimple_catch_handler_ptr): Likewise.
19031 (gimple_catch_set_types): Likewise.
19032 (gimple_catch_set_handler): Likewise.
19033 (gimple_eh_filter_types): Likewise.
19034 (gimple_eh_filter_types_ptr): Likewise.
19035 (gimple_eh_filter_failure_ptr): Likewise.
19036 (gimple_eh_filter_set_types): Likewise.
19037 (gimple_eh_filter_set_failure): Likewise.
19038 (gimple_eh_must_not_throw_fndecl): Likewise.
19039 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19040 (gimple_eh_else_n_body_ptr): Likewise.
19041 (gimple_eh_else_e_body_ptr): Likewise.
19042 (gimple_eh_else_set_n_body): Likewise.
19043 (gimple_eh_else_set_e_body): Likewise.
19044 (gimple_try_eval_ptr): Likewise.
19045 (gimple_try_cleanup_ptr): Likewise.
19046 (gimple_try_set_eval): Likewise.
19047 (gimple_try_set_cleanup): Likewise.
19048 (gimple_wce_cleanup_ptr): Likewise.
19049 (gimple_wce_set_cleanup): Likewise.
19050 (gimple_phi_capacity): Likewise.
19051 (gimple_phi_num_args): Likewise.
19052 (gimple_phi_result): Likewise.
19053 (gimple_phi_result_ptr): Likewise.
19054 (gimple_phi_set_result): Likewise.
19055 (gimple_phi_arg): Likewise.
19056 (gimple_phi_set_arg): Likewise.
19057 (gimple_resx_region): Likewise.
19058 (gimple_resx_set_region): Likewise.
19059 (gimple_eh_dispatch_region): Likewise.
19060 (gimple_eh_dispatch_set_region): Likewise.
19061 (gimple_omp_critical_name): Likewise.
19062 (gimple_omp_critical_name_ptr): Likewise.
19063 (gimple_omp_critical_set_name): Likewise.
19064 (gimple_omp_for_clauses): Likewise.
19065 (gimple_omp_for_clauses_ptr): Likewise.
19066 (gimple_omp_for_set_clauses): Likewise.
19067 (gimple_omp_for_collapse): Likewise.
19068 (gimple_omp_for_index): Likewise.
19069 (gimple_omp_for_index_ptr): Likewise.
19070 (gimple_omp_for_set_index): Likewise.
19071 (gimple_omp_for_initial): Likewise.
19072 (gimple_omp_for_initial_ptr): Likewise.
19073 (gimple_omp_for_set_initial): Likewise.
19074 (gimple_omp_for_final): Likewise.
19075 (gimple_omp_for_final_ptr): Likewise.
19076 (gimple_omp_for_set_final): Likewise.
19077 (gimple_omp_for_incr): Likewise.
19078 (gimple_omp_for_incr_ptr): Likewise.
19079 (gimple_omp_for_set_incr): Likewise.
19080 (gimple_omp_for_pre_body_ptr): Likewise.
19081 (gimple_omp_for_set_pre_body): Likewise.
19082 (gimple_omp_parallel_clauses): Likewise.
19083 (gimple_omp_parallel_clauses_ptr): Likewise.
19084 (gimple_omp_parallel_set_clauses): Likewise.
19085 (gimple_omp_parallel_child_fn): Likewise.
19086 (gimple_omp_parallel_child_fn_ptr): Likewise.
19087 (gimple_omp_parallel_set_child_fn): Likewise.
19088 (gimple_omp_parallel_data_arg): Likewise.
19089 (gimple_omp_parallel_data_arg_ptr): Likewise.
19090 (gimple_omp_parallel_set_data_arg): Likewise.
19091 (gimple_omp_task_clauses): Likewise.
19092 (gimple_omp_task_clauses_ptr): Likewise.
19093 (gimple_omp_task_set_clauses): Likewise.
19094 (gimple_omp_task_child_fn): Likewise.
19095 (gimple_omp_task_child_fn_ptr): Likewise.
19096 (gimple_omp_task_set_child_fn): Likewise.
19097 (gimple_omp_task_data_arg): Likewise.
19098 (gimple_omp_task_data_arg_ptr): Likewise.
19099 (gimple_omp_task_set_data_arg): Likewise.
19100 (gimple_omp_taskreg_clauses): Likewise.
19101 (gimple_omp_taskreg_clauses_ptr): Likewise.
19102 (gimple_omp_taskreg_set_clauses): Likewise.
19103 (gimple_omp_taskreg_child_fn): Likewise.
19104 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19105 (gimple_omp_taskreg_set_child_fn): Likewise.
19106 (gimple_omp_taskreg_data_arg): Likewise.
19107 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19108 (gimple_omp_taskreg_set_data_arg): Likewise.
19109 (gimple_omp_task_copy_fn): Likewise.
19110 (gimple_omp_task_copy_fn_ptr): Likewise.
19111 (gimple_omp_task_set_copy_fn): Likewise.
19112 (gimple_omp_task_arg_size): Likewise.
19113 (gimple_omp_task_arg_size_ptr): Likewise.
19114 (gimple_omp_task_set_arg_size): Likewise.
19115 (gimple_omp_task_arg_align): Likewise.
19116 (gimple_omp_task_arg_align_ptr): Likewise.
19117 (gimple_omp_task_set_arg_align): Likewise.
19118 (gimple_omp_single_clauses): Likewise.
19119 (gimple_omp_single_clauses_ptr): Likewise.
19120 (gimple_omp_single_set_clauses): Likewise.
19121 (gimple_omp_target_clauses): Likewise.
19122 (gimple_omp_target_clauses_ptr): Likewise.
19123 (gimple_omp_target_set_clauses): Likewise.
19124 (gimple_omp_target_child_fn): Likewise.
19125 (gimple_omp_target_child_fn_ptr): Likewise.
19126 (gimple_omp_target_set_child_fn): Likewise.
19127 (gimple_omp_target_data_arg): Likewise.
19128 (gimple_omp_target_data_arg_ptr): Likewise.
19129 (gimple_omp_target_set_data_arg): Likewise.
19130 (gimple_omp_teams_clauses): Likewise.
19131 (gimple_omp_teams_clauses_ptr): Likewise.
19132 (gimple_omp_teams_set_clauses): Likewise.
19133 (gimple_omp_sections_clauses): Likewise.
19134 (gimple_omp_sections_clauses_ptr): Likewise.
19135 (gimple_omp_sections_set_clauses): Likewise.
19136 (gimple_omp_sections_control): Likewise.
19137 (gimple_omp_sections_control_ptr): Likewise.
19138 (gimple_omp_sections_set_control): Likewise.
19139 (gimple_omp_for_set_cond): Likewise.
19140 (gimple_omp_for_cond): Likewise.
19141 (gimple_omp_atomic_store_set_val): Likewise.
19142 (gimple_omp_atomic_store_val): Likewise.
19143 (gimple_omp_atomic_store_val_ptr): Likewise.
19144 (gimple_omp_atomic_load_set_lhs): Likewise.
19145 (gimple_omp_atomic_load_lhs): Likewise.
19146 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19147 (gimple_omp_atomic_load_set_rhs): Likewise.
19148 (gimple_omp_atomic_load_rhs): Likewise.
19149 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19150 (gimple_omp_continue_control_def): Likewise.
19151 (gimple_omp_continue_control_def_ptr): Likewise.
19152 (gimple_omp_continue_set_control_def): Likewise.
19153 (gimple_omp_continue_control_use): Likewise.
19154 (gimple_omp_continue_control_use_ptr): Likewise.
19155 (gimple_omp_continue_set_control_use): Likewise.
19156 (gimple_transaction_body_ptr): Likewise.
19157 (gimple_transaction_label): Likewise.
19158 (gimple_transaction_label_ptr): Likewise.
19159 (gimple_transaction_set_body): Likewise.
19160 (gimple_transaction_set_label): Likewise.
19161
19162 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19163 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19164 * ipa-ref.c (ipa_record_reference): Likewise.
19165 * ipa-reference.c (analyze_function): Likewise.
19166 (ipa_reference_write_optimization_summary): Likewise.
19167 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19168 (address_taken_from_non_vtable_p): Likewise.
19169 (comdat_can_be_unshared_p_1): Likewise.
19170 * lto-cgraph.c (lto_output_ref): Likewise.
19171 (add_references): Likewise.
19172 (compute_ltrans_boundary): Likewise.
19173 (output_symtab): Likewise.
19174 (input_ref): Likewise.
19175 (input_cgraph_1): Likewise.
19176 (output_cgraph_opt_summary): Likewise.
19177 * lto-streamer-out.c (lto_output): Likewise.
19178 (output_symbol_p): Likewise.
19179 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19180 (lsei_start_function_in_partition): Likewise.
19181 (lsei_next_variable_in_partition): Likewise.
19182 (lsei_start_variable_in_partition): Likewise.
19183 * symtab.c (insert_to_assembler_name_hash): Likewise.
19184 (unlink_from_assembler_name_hash): Likewise.
19185 (symtab_unregister_node): Likewise.
19186 (symtab_remove_node): Likewise.
19187 (dump_symtab_node): Likewise.
19188 (verify_symtab_base): Likewise.
19189 (verify_symtab_node): Likewise.
19190 (symtab_make_decl_local): Likewise.
19191 (symtab_alias_ultimate_target): Likewise.
19192 (symtab_resolve_alias): Likewise.
19193 (symtab_get_symbol_partitioning_class): Likewise.
19194 * tree-phinodes.c (allocate_phi_node): Likewise.
19195 (reserve_phi_args_for_new_edge): Likewise.
19196 (remove_phi_args): Likewise.
19197 * varpool.c (varpool_node_for_asm): Likewise.
19198 (varpool_remove_unreferenced_decls): Likewise.
19199
19200 2014-04-23 Jeff Law <law@redhat.com>
19201
19202 PR tree-optimization/60902
19203 * tree-ssa-threadedge.c
19204 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19205 invalidate outputs from statements that do not produce useful
19206 outputs for threading.
19207
19208 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19209
19210 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19211 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19212 machine descriptions for Stack Smashing Protector.
19213
19214 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19215
19216 * aarch64.md (<optab>_rol<mode>3): New pattern.
19217 (<optab>_rolsi3_uxtw): Likewise.
19218 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19219
19220 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19221
19222 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19223 (arm_cortex_a12_tune): Likewise.
19224
19225 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19226
19227 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19228
19229 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19230
19231 * config/arm/arm.md (arm_rev16si2): New pattern.
19232 (arm_rev16si2_alt): Likewise.
19233 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19234
19235 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19236
19237 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19238 (rev16<mode>2_alt): Likewise.
19239 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19240 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19241 (aarch_rev16_shleft_mask_imm_p): Likewise.
19242 (aarch_rev16_p_1): Likewise.
19243 (aarch_rev16_p): Likewise.
19244 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19245 (aarch_rev16_shright_mask_imm_p): Likewise.
19246 (aarch_rev16_shleft_mask_imm_p): Likewise.
19247
19248 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19249
19250 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19251 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19252 rev cost.
19253 (cortex_a53_extra_costs): Likewise.
19254 (cortex_a57_extra_costs): Likewise.
19255 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19256 (cortexa7_extra_costs): Likewise.
19257 (cortexa8_extra_costs): Likewise.
19258 (cortexa12_extra_costs): Likewise.
19259 (cortexa15_extra_costs): Likewise.
19260 (v7m_extra_costs): Likewise.
19261 (arm_new_rtx_costs): Handle BSWAP.
19262
19263 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19264
19265 * config/arm/arm.c (cortexa8_extra_costs): New table.
19266 (arm_cortex_a8_tune): New tuning struct.
19267 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19268
19269 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19270
19271 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19272
19273 2014-04-23 Richard Biener <rguenther@suse.de>
19274
19275 * Makefile.in (OBJS): Remove loop-unswitch.o.
19276 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19277 * passes.def (pass_rtl_unswitch): Likewise.
19278 * loop-init.c (gate_rtl_unswitch): Likewise.
19279 (rtl_unswitch): Likewise.
19280 (pass_data_rtl_unswitch): Likewise.
19281 (pass_rtl_unswitch): Likewise.
19282 (make_pass_rtl_unswitch): Likewise.
19283 * rtl.h (reversed_condition): Likewise.
19284 (compare_and_jump_seq): Likewise.
19285 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19286 and make static.
19287 * loop-unroll.c (compare_and_jump_seq): Likewise.
19288
19289 2014-04-23 Richard Biener <rguenther@suse.de>
19290
19291 PR tree-optimization/60903
19292 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19293 commented code block.
19294 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19295 loop flags to newly created BBs and edges.
19296
19297 2014-04-23 Nick Clifton <nickc@redhat.com>
19298
19299 * config/msp430/msp430.c (msp430_handle_option): Move function
19300 to msp430-common.c
19301 (msp430_option_override): Simplify mcu and mcpu option handling.
19302 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19303 support for -mhwmult command line option.
19304 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19305 -mhwmult command line option.
19306 (msp430_hwmult_enabled): Delete.
19307 (msp43o_output_labelref): Add support for -mhwmult command line option.
19308 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19309 (umulsidi3): Likewise.
19310 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19311 (mcpu, mlarge, msmall): Likewise.
19312 (mhwmult): New option.
19313 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19314 prototype.
19315 (msp430_is_f5_mcu): Remove prototype.
19316 (msp430_use_f5_series_hwmult): Add prototype.
19317 * config/msp430/msp430-opts.h: New file.
19318 * common/config/msp430: New directory.
19319 * common/config/msp430/msp430-common.c: New file.
19320 * config.gcc (msp430): Remove target_has_targetm_common.
19321 * doc/invoke.texi: Document -mhwmult command line option.
19322
19323 2014-04-23 Nick Clifton <nickc@redhat.com>
19324
19325 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19326 default-manifest.o if it can be found in the search path.
19327 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19328
19329 2014-04-23 Terry Guo <terry.guo@arm.com>
19330
19331 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19332
19333 2014-04-23 Richard Biener <rguenther@suse.de>
19334
19335 PR middle-end/60895
19336 * tree-inline.c (declare_return_variable): Use mark_addressable.
19337
19338 2014-04-23 Richard Biener <rguenther@suse.de>
19339
19340 PR middle-end/60891
19341 * loop-init.c (loop_optimizer_init): Make sure to apply
19342 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19343
19344 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19345
19346 PR sanitizer/60275
19347 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19348 New options.
19349 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19350 if flag_sanitize_undefined_trap_on_error.
19351 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19352 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19353 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19354 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19355 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19356 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19357 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19358 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19359 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19360 * ubsan.c (ubsan_instrument_unreachable): Return
19361 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19362 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19363 if flag_sanitize_undefined_trap_on_error and
19364 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19365 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19366 instrument_bool_enum_load): Emit __builtin_trap () if
19367 flag_sanitize_undefined_trap_on_error and
19368 __builtin_handle_*_abort () if !flag_sanitize_recover.
19369 * doc/invoke.texi (-fsanitize-recover,
19370 -fsanitize-undefined-trap-on-error): Document.
19371
19372 2014-04-22 Christian Bruel <christian.bruel@st.com>
19373
19374 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19375 Force immediates to SImode.
19376
19377 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19378
19379 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19380 (lroundsfsi2): New.
19381 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19382 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19383 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19384 (nios2_fpu_insn): Add entry for round.
19385 (N2FPU_NO_ERRNO_P): Define.
19386 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19387 flag_errno_math.
19388 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19389
19390 2014-04-22 Richard Henderson <rth@redhat.com>
19391
19392 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19393 (add<GPI>3_compare0): Remove leading * from name.
19394 (add<GPI>3_carryin): Likewise.
19395 (sub<GPI>3_compare0): Likewise.
19396 (sub<GPI>3_carryin): Likewise.
19397 (<su_optab>mulditi3): New expander.
19398 (multi3): New expander.
19399 (madd<GPI>): Remove leading * from name.
19400
19401 2014-04-22 Martin Jambor <mjambor@suse.cz>
19402
19403 * cgraphclones.c (cgraph_function_versioning): Copy
19404 ipa_transforms_to_apply instead of asserting it is empty.
19405
19406 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19407
19408 PR target/60868
19409 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19410 on count_exp to get mode.
19411
19412 2014-04-22 Andrew Pinski <apinski@cavium.com>
19413
19414 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19415 Handle TLS for ILP32.
19416 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19417 (tlsie_small_<mode>): this and handle PTR.
19418 (tlsie_small_sidi): New pattern.
19419 (tlsle_small): Change to an expand to handle ILP32.
19420 (tlsle_small_<mode>): New pattern.
19421 (tlsdesc_small): Rename to ...
19422 (tlsdesc_small_<mode>): this and handle PTR.
19423
19424 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19425
19426 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19427
19428 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19429
19430 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19431 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19432 (aarch64_types_signed_poly_qualifiers): Likewise.
19433 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19434 (aarch64_types_poly_signed_qualifiers): Likewise.
19435 (TYPES_REINTERP_SS): Type macro added.
19436 (TYPES_REINTERP_SU): Likewise.
19437 (TYPES_REINTERP_SP): Likewise.
19438 (TYPES_REINTERP_US): Likewise.
19439 (TYPES_REINTERP_PS): Likewise.
19440 (aarch64_fold_builtin): New expression folding added.
19441 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19442 Declarations removed.
19443 (REINTERP_SS): Declarations added.
19444 (REINTERP_US): Likewise.
19445 (REINTERP_PS): Likewise.
19446 (REINTERP_SU): Likewise.
19447 (REINTERP_SP): Likewise.
19448 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19449 (vreinterpretq_p8_f64): Likewise.
19450 (vreinterpret_p16_f64): Likewise.
19451 (vreinterpretq_p16_f64): Likewise.
19452 (vreinterpret_f32_f64): Likewise.
19453 (vreinterpretq_f32_f64): Likewise.
19454 (vreinterpret_f64_f32): Likewise.
19455 (vreinterpret_f64_p8): Likewise.
19456 (vreinterpret_f64_p16): Likewise.
19457 (vreinterpret_f64_s8): Likewise.
19458 (vreinterpret_f64_s16): Likewise.
19459 (vreinterpret_f64_s32): Likewise.
19460 (vreinterpret_f64_s64): Likewise.
19461 (vreinterpret_f64_u8): Likewise.
19462 (vreinterpret_f64_u16): Likewise.
19463 (vreinterpret_f64_u32): Likewise.
19464 (vreinterpret_f64_u64): Likewise.
19465 (vreinterpretq_f64_f32): Likewise.
19466 (vreinterpretq_f64_p8): Likewise.
19467 (vreinterpretq_f64_p16): Likewise.
19468 (vreinterpretq_f64_s8): Likewise.
19469 (vreinterpretq_f64_s16): Likewise.
19470 (vreinterpretq_f64_s32): Likewise.
19471 (vreinterpretq_f64_s64): Likewise.
19472 (vreinterpretq_f64_u8): Likewise.
19473 (vreinterpretq_f64_u16): Likewise.
19474 (vreinterpretq_f64_u32): Likewise.
19475 (vreinterpretq_f64_u64): Likewise.
19476 (vreinterpret_s64_f64): Likewise.
19477 (vreinterpretq_s64_f64): Likewise.
19478 (vreinterpret_u64_f64): Likewise.
19479 (vreinterpretq_u64_f64): Likewise.
19480 (vreinterpret_s8_f64): Likewise.
19481 (vreinterpretq_s8_f64): Likewise.
19482 (vreinterpret_s16_f64): Likewise.
19483 (vreinterpretq_s16_f64): Likewise.
19484 (vreinterpret_s32_f64): Likewise.
19485 (vreinterpretq_s32_f64): Likewise.
19486 (vreinterpret_u8_f64): Likewise.
19487 (vreinterpretq_u8_f64): Likewise.
19488 (vreinterpret_u16_f64): Likewise.
19489 (vreinterpretq_u16_f64): Likewise.
19490 (vreinterpret_u32_f64): Likewise.
19491 (vreinterpretq_u32_f64): Likewise.
19492
19493 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19494
19495 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19496 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19497 (vreinterpret_p8_s8): Likewise.
19498 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19499 (vreinterpret_p8_s16): Likewise.
19500 (vreinterpret_p8_s32): Likewise.
19501 (vreinterpret_p8_s64): Likewise.
19502 (vreinterpret_p8_f32): Likewise.
19503 (vreinterpret_p8_u8): Likewise.
19504 (vreinterpret_p8_u16): Likewise.
19505 (vreinterpret_p8_u32): Likewise.
19506 (vreinterpret_p8_u64): Likewise.
19507 (vreinterpret_p8_p16): Likewise.
19508 (vreinterpretq_p8_s8): Likewise.
19509 (vreinterpretq_p8_s16): Likewise.
19510 (vreinterpretq_p8_s32): Likewise.
19511 (vreinterpretq_p8_s64): Likewise.
19512 (vreinterpretq_p8_f32): Likewise.
19513 (vreinterpretq_p8_u8): Likewise.
19514 (vreinterpretq_p8_u16): Likewise.
19515 (vreinterpretq_p8_u32): Likewise.
19516 (vreinterpretq_p8_u64): Likewise.
19517 (vreinterpretq_p8_p16): Likewise.
19518 (vreinterpret_p16_s8): Likewise.
19519 (vreinterpret_p16_s16): Likewise.
19520 (vreinterpret_p16_s32): Likewise.
19521 (vreinterpret_p16_s64): Likewise.
19522 (vreinterpret_p16_f32): Likewise.
19523 (vreinterpret_p16_u8): Likewise.
19524 (vreinterpret_p16_u16): Likewise.
19525 (vreinterpret_p16_u32): Likewise.
19526 (vreinterpret_p16_u64): Likewise.
19527 (vreinterpret_p16_p8): Likewise.
19528 (vreinterpretq_p16_s8): Likewise.
19529 (vreinterpretq_p16_s16): Likewise.
19530 (vreinterpretq_p16_s32): Likewise.
19531 (vreinterpretq_p16_s64): Likewise.
19532 (vreinterpretq_p16_f32): Likewise.
19533 (vreinterpretq_p16_u8): Likewise.
19534 (vreinterpretq_p16_u16): Likewise.
19535 (vreinterpretq_p16_u32): Likewise.
19536 (vreinterpretq_p16_u64): Likewise.
19537 (vreinterpretq_p16_p8): Likewise.
19538 (vreinterpret_f32_s8): Likewise.
19539 (vreinterpret_f32_s16): Likewise.
19540 (vreinterpret_f32_s32): Likewise.
19541 (vreinterpret_f32_s64): Likewise.
19542 (vreinterpret_f32_u8): Likewise.
19543 (vreinterpret_f32_u16): Likewise.
19544 (vreinterpret_f32_u32): Likewise.
19545 (vreinterpret_f32_u64): Likewise.
19546 (vreinterpret_f32_p8): Likewise.
19547 (vreinterpret_f32_p16): Likewise.
19548 (vreinterpretq_f32_s8): Likewise.
19549 (vreinterpretq_f32_s16): Likewise.
19550 (vreinterpretq_f32_s32): Likewise.
19551 (vreinterpretq_f32_s64): Likewise.
19552 (vreinterpretq_f32_u8): Likewise.
19553 (vreinterpretq_f32_u16): Likewise.
19554 (vreinterpretq_f32_u32): Likewise.
19555 (vreinterpretq_f32_u64): Likewise.
19556 (vreinterpretq_f32_p8): Likewise.
19557 (vreinterpretq_f32_p16): Likewise.
19558 (vreinterpret_s64_s8): Likewise.
19559 (vreinterpret_s64_s16): Likewise.
19560 (vreinterpret_s64_s32): Likewise.
19561 (vreinterpret_s64_f32): Likewise.
19562 (vreinterpret_s64_u8): Likewise.
19563 (vreinterpret_s64_u16): Likewise.
19564 (vreinterpret_s64_u32): Likewise.
19565 (vreinterpret_s64_u64): Likewise.
19566 (vreinterpret_s64_p8): Likewise.
19567 (vreinterpret_s64_p16): Likewise.
19568 (vreinterpretq_s64_s8): Likewise.
19569 (vreinterpretq_s64_s16): Likewise.
19570 (vreinterpretq_s64_s32): Likewise.
19571 (vreinterpretq_s64_f32): Likewise.
19572 (vreinterpretq_s64_u8): Likewise.
19573 (vreinterpretq_s64_u16): Likewise.
19574 (vreinterpretq_s64_u32): Likewise.
19575 (vreinterpretq_s64_u64): Likewise.
19576 (vreinterpretq_s64_p8): Likewise.
19577 (vreinterpretq_s64_p16): Likewise.
19578 (vreinterpret_u64_s8): Likewise.
19579 (vreinterpret_u64_s16): Likewise.
19580 (vreinterpret_u64_s32): Likewise.
19581 (vreinterpret_u64_s64): Likewise.
19582 (vreinterpret_u64_f32): Likewise.
19583 (vreinterpret_u64_u8): Likewise.
19584 (vreinterpret_u64_u16): Likewise.
19585 (vreinterpret_u64_u32): Likewise.
19586 (vreinterpret_u64_p8): Likewise.
19587 (vreinterpret_u64_p16): Likewise.
19588 (vreinterpretq_u64_s8): Likewise.
19589 (vreinterpretq_u64_s16): Likewise.
19590 (vreinterpretq_u64_s32): Likewise.
19591 (vreinterpretq_u64_s64): Likewise.
19592 (vreinterpretq_u64_f32): Likewise.
19593 (vreinterpretq_u64_u8): Likewise.
19594 (vreinterpretq_u64_u16): Likewise.
19595 (vreinterpretq_u64_u32): Likewise.
19596 (vreinterpretq_u64_p8): Likewise.
19597 (vreinterpretq_u64_p16): Likewise.
19598 (vreinterpret_s8_s16): Likewise.
19599 (vreinterpret_s8_s32): Likewise.
19600 (vreinterpret_s8_s64): Likewise.
19601 (vreinterpret_s8_f32): Likewise.
19602 (vreinterpret_s8_u8): Likewise.
19603 (vreinterpret_s8_u16): Likewise.
19604 (vreinterpret_s8_u32): Likewise.
19605 (vreinterpret_s8_u64): Likewise.
19606 (vreinterpret_s8_p8): Likewise.
19607 (vreinterpret_s8_p16): Likewise.
19608 (vreinterpretq_s8_s16): Likewise.
19609 (vreinterpretq_s8_s32): Likewise.
19610 (vreinterpretq_s8_s64): Likewise.
19611 (vreinterpretq_s8_f32): Likewise.
19612 (vreinterpretq_s8_u8): Likewise.
19613 (vreinterpretq_s8_u16): Likewise.
19614 (vreinterpretq_s8_u32): Likewise.
19615 (vreinterpretq_s8_u64): Likewise.
19616 (vreinterpretq_s8_p8): Likewise.
19617 (vreinterpretq_s8_p16): Likewise.
19618 (vreinterpret_s16_s8): Likewise.
19619 (vreinterpret_s16_s32): Likewise.
19620 (vreinterpret_s16_s64): Likewise.
19621 (vreinterpret_s16_f32): Likewise.
19622 (vreinterpret_s16_u8): Likewise.
19623 (vreinterpret_s16_u16): Likewise.
19624 (vreinterpret_s16_u32): Likewise.
19625 (vreinterpret_s16_u64): Likewise.
19626 (vreinterpret_s16_p8): Likewise.
19627 (vreinterpret_s16_p16): Likewise.
19628 (vreinterpretq_s16_s8): Likewise.
19629 (vreinterpretq_s16_s32): Likewise.
19630 (vreinterpretq_s16_s64): Likewise.
19631 (vreinterpretq_s16_f32): Likewise.
19632 (vreinterpretq_s16_u8): Likewise.
19633 (vreinterpretq_s16_u16): Likewise.
19634 (vreinterpretq_s16_u32): Likewise.
19635 (vreinterpretq_s16_u64): Likewise.
19636 (vreinterpretq_s16_p8): Likewise.
19637 (vreinterpretq_s16_p16): Likewise.
19638 (vreinterpret_s32_s8): Likewise.
19639 (vreinterpret_s32_s16): Likewise.
19640 (vreinterpret_s32_s64): Likewise.
19641 (vreinterpret_s32_f32): Likewise.
19642 (vreinterpret_s32_u8): Likewise.
19643 (vreinterpret_s32_u16): Likewise.
19644 (vreinterpret_s32_u32): Likewise.
19645 (vreinterpret_s32_u64): Likewise.
19646 (vreinterpret_s32_p8): Likewise.
19647 (vreinterpret_s32_p16): Likewise.
19648 (vreinterpretq_s32_s8): Likewise.
19649 (vreinterpretq_s32_s16): Likewise.
19650 (vreinterpretq_s32_s64): Likewise.
19651 (vreinterpretq_s32_f32): Likewise.
19652 (vreinterpretq_s32_u8): Likewise.
19653 (vreinterpretq_s32_u16): Likewise.
19654 (vreinterpretq_s32_u32): Likewise.
19655 (vreinterpretq_s32_u64): Likewise.
19656 (vreinterpretq_s32_p8): Likewise.
19657 (vreinterpretq_s32_p16): Likewise.
19658 (vreinterpret_u8_s8): Likewise.
19659 (vreinterpret_u8_s16): Likewise.
19660 (vreinterpret_u8_s32): Likewise.
19661 (vreinterpret_u8_s64): Likewise.
19662 (vreinterpret_u8_f32): Likewise.
19663 (vreinterpret_u8_u16): Likewise.
19664 (vreinterpret_u8_u32): Likewise.
19665 (vreinterpret_u8_u64): Likewise.
19666 (vreinterpret_u8_p8): Likewise.
19667 (vreinterpret_u8_p16): Likewise.
19668 (vreinterpretq_u8_s8): Likewise.
19669 (vreinterpretq_u8_s16): Likewise.
19670 (vreinterpretq_u8_s32): Likewise.
19671 (vreinterpretq_u8_s64): Likewise.
19672 (vreinterpretq_u8_f32): Likewise.
19673 (vreinterpretq_u8_u16): Likewise.
19674 (vreinterpretq_u8_u32): Likewise.
19675 (vreinterpretq_u8_u64): Likewise.
19676 (vreinterpretq_u8_p8): Likewise.
19677 (vreinterpretq_u8_p16): Likewise.
19678 (vreinterpret_u16_s8): Likewise.
19679 (vreinterpret_u16_s16): Likewise.
19680 (vreinterpret_u16_s32): Likewise.
19681 (vreinterpret_u16_s64): Likewise.
19682 (vreinterpret_u16_f32): Likewise.
19683 (vreinterpret_u16_u8): Likewise.
19684 (vreinterpret_u16_u32): Likewise.
19685 (vreinterpret_u16_u64): Likewise.
19686 (vreinterpret_u16_p8): Likewise.
19687 (vreinterpret_u16_p16): Likewise.
19688 (vreinterpretq_u16_s8): Likewise.
19689 (vreinterpretq_u16_s16): Likewise.
19690 (vreinterpretq_u16_s32): Likewise.
19691 (vreinterpretq_u16_s64): Likewise.
19692 (vreinterpretq_u16_f32): Likewise.
19693 (vreinterpretq_u16_u8): Likewise.
19694 (vreinterpretq_u16_u32): Likewise.
19695 (vreinterpretq_u16_u64): Likewise.
19696 (vreinterpretq_u16_p8): Likewise.
19697 (vreinterpretq_u16_p16): Likewise.
19698 (vreinterpret_u32_s8): Likewise.
19699 (vreinterpret_u32_s16): Likewise.
19700 (vreinterpret_u32_s32): Likewise.
19701 (vreinterpret_u32_s64): Likewise.
19702 (vreinterpret_u32_f32): Likewise.
19703 (vreinterpret_u32_u8): Likewise.
19704 (vreinterpret_u32_u16): Likewise.
19705 (vreinterpret_u32_u64): Likewise.
19706 (vreinterpret_u32_p8): Likewise.
19707 (vreinterpret_u32_p16): Likewise.
19708 (vreinterpretq_u32_s8): Likewise.
19709 (vreinterpretq_u32_s16): Likewise.
19710 (vreinterpretq_u32_s32): Likewise.
19711 (vreinterpretq_u32_s64): Likewise.
19712 (vreinterpretq_u32_f32): Likewise.
19713 (vreinterpretq_u32_u8): Likewise.
19714 (vreinterpretq_u32_u16): Likewise.
19715 (vreinterpretq_u32_u64): Likewise.
19716 (vreinterpretq_u32_p8): Likewise.
19717 (vreinterpretq_u32_p16): Likewise.
19718
19719 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19720
19721 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19722 Pattern extended.
19723 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19724 (sqabs): Likewise.
19725 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19726 (vqnegd_s64): Likewise.
19727 (vqabs_s64): Likewise.
19728 (vqabsd_s64): Likewise.
19729
19730 2014-04-22 Richard Henderson <rth@redhat.com>
19731
19732 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19733 computation to the top of the loop.
19734
19735 2014-04-22 Renlin <renlin.li@arm.com>
19736 Jiong Wang <jiong.wang@arm.com>
19737
19738 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19739 * config/aarch64/aarch64.c (aarch64_layout_frame)
19740 (aarch64_initial_elimination_offset): Likewise.
19741
19742 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19743
19744 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19745 Fix indentation.
19746
19747 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19748
19749 * machmode.h (bitwise_mode_for_mode): Declare.
19750 * stor-layout.h (bitwise_type_for_mode): Likewise.
19751 * stor-layout.c (bitwise_mode_for_mode): New function.
19752 (bitwise_type_for_mode): Likewise.
19753 * builtins.c (fold_builtin_memory_op): Use it instead of
19754 int_mode_for_mode and build_nonstandard_integer_type.
19755
19756 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19757
19758 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19759 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19760 (*-*-solaris2*): Simplify.
19761 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19762 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19763 *-*-solaris2.9* handling.
19764
19765 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19766 as bug.
19767 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19768 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19769 handling, simplify.
19770 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19771 * configure: Regenerate.
19772
19773 * config/i386/sol2-9.h: Remove.
19774
19775 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19776 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19777 Remove Solaris 9 references.
19778
19779 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19780
19781 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19782 (floatuns<GPI:mode><GPF:mode>2): Remove.
19783 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19784 and floatuns conversions.
19785 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19786 and floatuns conversions.
19787 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19788 (w1,w2): New mode attributes for inequal width conversions.
19789
19790 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19791
19792 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19793 the output asm format.
19794
19795 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19796
19797 * config/aarch64/aarch64-simd.md
19798 (aarch64_cm<optab>di): Always split.
19799 (*aarch64_cm<optab>di): New.
19800 (aarch64_cmtstdi): Always split.
19801 (*aarch64_cmtstdi): New.
19802
19803 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19804
19805 PR tree-optimization/60823
19806 * omp-low.c (ipa_simd_modify_function_body): Go through
19807 all SSA_NAMEs and for those refering to vector arguments
19808 which are going to be replaced adjust SSA_NAME_VAR and,
19809 if it is a default definition, change it into a non-default
19810 definition assigned at the beginning of function from new_decl.
19811 (ipa_simd_modify_stmt_ops): Rewritten.
19812 * tree-dfa.c (set_ssa_default_def): When removing default def,
19813 check for NULL loc instead of NULL *loc.
19814
19815 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19816
19817 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19818 restrictions on core registers for DImode values in Thumb2.
19819
19820 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19821
19822 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19823 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19824
19825 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19826
19827 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19828 (*iordi_notzesidi_di): Likewise.
19829 (*iordi_notsesidi_di): Likewise.
19830
19831 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19832
19833 * config/arm/arm-protos.h (tune_params): New struct members.
19834 * config/arm/arm.c: Initialise tune_params per processor.
19835 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19836 for speed, based on new tune_params.
19837
19838 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19839
19840 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19841 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19842 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19843 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19844 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19845 (vrnda_f64): Likewise.
19846 (vrndi_f64): Likewise.
19847 (vrndm_f64): Likewise.
19848 (vrndn_f64): Likewise.
19849 (vrndp_f64): Likewise.
19850 (vrndx_f64): Likewise.
19851
19852 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19853
19854 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19855 GET_MODE_SIZE argument is enum machine_mode.
19856
19857 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19858
19859 PR target/60910
19860 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19861 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19862
19863 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19864
19865 PR middle-end/60281
19866 * asan.c (asan_emit_stack_protection): Force the base to align to
19867 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19868 appropriate bits if STRICT_ALIGNMENT.
19869 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19870 when asan is on.
19871 (expand_used_vars): Leave a space in the stack frame for alignment
19872 if STRICT_ALIGNMENT.
19873
19874 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19875
19876 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19877 than a gimple.
19878 (gimple_store_p): Likewise.
19879 (gimple_assign_load_p): Likewise.
19880 (gimple_assign_cast_p): Likewise.
19881 (gimple_clobber_p): Likewise.
19882
19883 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19884 rather than a gimple.
19885 (gimple_assign_cast_p): Likewise.
19886
19887 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19888
19889 PR target/60735
19890 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19891 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19892
19893 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19894 more debug information for E500 if -mdebug=reg.
19895
19896 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19897
19898 PR target/60909
19899 * config/i386/i386.c (ix86_expand_builtin)
19900 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19901 register for target RTX.
19902 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19903
19904 2014-04-18 Cong Hou <congh@google.com>
19905
19906 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19907 the widen-mult pattern by handling two operands with different sizes,
19908 and operands whose size is smaller than half of the result type.
19909
19910 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19911
19912 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19913 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19914 (do_estimate_edge_time): Compute it.
19915 * ipa-inline.c (want_inline_small_function_p): Bypass
19916 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19917
19918 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19919
19920 * ipa-inline.c (spec_rem): New static variable.
19921 (dump_overall_stats): New function.
19922 (dump_inline_stats): New function.
19923
19924 2014-04-18 Richard Henderson <rth@redhat.com>
19925
19926 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19927 to GET_MODE_SIZE, not a reg_class_t.
19928
19929 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19930
19931 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19932 (vsx_xxmrglw_<mode>): Likewise.
19933
19934 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19935
19936 PR target/60876
19937 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19938 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19939 (rs6000_init_hard_regno_mode_ok): Likewise.
19940
19941 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19942
19943 * ipa-inline.c (inline_small_functions): Account only non-cold
19944 functions.
19945 * doc/invoke.texi (inline-unit-growth): Update documentation.
19946
19947 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19948
19949 * config/rs6000/rs6000.md (addti3, subti3): New.
19950
19951 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19952
19953 PR target/60863
19954 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19955 comment. Check optimize_insn_for_size_p instead of
19956 optimize_insn_for_speed_p.
19957
19958 2014-04-17 Martin Jambor <mjambor@suse.cz>
19959
19960 * gimple-iterator.c (gsi_start_edge): New function.
19961 * gimple-iterator.h (gsi_start_edge): Declare.
19962 * tree-sra.c (single_non_eh_succ): New function.
19963 (disqualify_ops_if_throwing_stmt): Renamed to
19964 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19965 having one non-EH successor BB.
19966 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19967 generate loads into replacements.
19968 (sra_modify_assign): Likewise and and also use the simple path for
19969 such statements.
19970 (sra_modify_function_body): Commit statements on edges.
19971
19972 2014-04-17 Richard Biener <rguenther@suse.de>
19973
19974 PR middle-end/60849
19975 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19976 comparison results and add clarifying comment.
19977
19978 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19979
19980 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19981 (blank_mode): Initialize it.
19982 (emit_mode_size_inline, emit_mode_nunits_inline,
19983 emit_mode_inner_inline): New functions.
19984 (emit_insn_modes_h): Call them and surround their output with
19985 #if GCC_VERSION >= 4001 ... #endif.
19986 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19987 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19988 mode_* arrays if the argument is __builtin_constant_p.
19989 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19990 is enum machine_mode.
19991
19992 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19993
19994 * passes.c (opt_pass::execute): Adjust.
19995 (pass_manager::execute_pass_mode_switching): Likewise.
19996 (early_local_passes::execute): Likewise.
19997 (execute_one_pass): Pass cfun to the pass's execute method.
19998 * tree-pass.h (opt_pass::execute): Add function * argument.
19999 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20000 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20001 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20002 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20003 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20004 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20005 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20006 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20007 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20008 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20009 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20010 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20011 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20012 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20013 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20014 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20015 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20016 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20017 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20018 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20019 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20020 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20021 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20022 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20023 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20024 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20025 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20026 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20027 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20028 Adjust.
20029
20030 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20031
20032 * passes.c (opt_pass::gate): Take function * argument.
20033 (gate_all_early_local_passes): Merge into
20034 (early_local_passes::gate): this.
20035 (gate_all_early_optimizations): Merge into
20036 (all_early_optimizations::gate): this.
20037 (gate_all_optimizations): Mege into
20038 (all_optimizations::gate): this.
20039 (gate_all_optimizations_g): Merge into
20040 (all_optimizations_g::gate): this.
20041 (gate_rest_of_compilation): Mege into
20042 (rest_of_compilation::gate): this.
20043 (gate_postreload): Merge into
20044 (postreload::gate): this.
20045 (dump_one_pass): Pass cfun to the pass's gate method.
20046 (execute_ipa_summary_passes): Likewise.
20047 (execute_one_pass): Likewise.
20048 (ipa_write_summaries_2): Likewise.
20049 (ipa_write_optimization_summaries_1): Likewise.
20050 (ipa_read_summaries_1): Likewise.
20051 (ipa_read_optimization_summaries_1): Likewise.
20052 (execute_ipa_stmt_fixups): Likewise.
20053 * tree-pass.h (opt_pass::gate): Add function * argument.
20054 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20055 combine-stack-adj.c, combine.c, compare-elim.c,
20056 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20057 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20058 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20059 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20060 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20061 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20062 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20063 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20064 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20065 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20066 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20067 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20068 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20069 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20070 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20071 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20072 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20073 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20074 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20075 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20076 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20077 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20078 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20079 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20080 var-tracking.c, vtable-verify.c, web.c: Adjust.
20081
20082 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20083
20084 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20085 * configure: Regenerate.
20086
20087 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20088
20089 * passes.c (dump_one_pass): don't check pass->has_gate.
20090 (execute_ipa_summary_passes): Likewise.
20091 (execute_one_pass): Likewise.
20092 (ipa_write_summaries_2): Likewise.
20093 (ipa_write_optimization_summaries_1): Likewise.
20094 (ipa_read_optimization_summaries_1): Likewise.
20095 (execute_ipa_stmt_fixups): Likewise.
20096 * tree-pass.h (pass_data::has_gate): Remove.
20097 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20098 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20099 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20100 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20101 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20102 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20103 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20104 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20105 gimple-low.c, gimple-ssa-isolate-paths.c,
20106 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20107 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20108 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20109 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20110 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20111 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20112 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20113 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20114 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20115 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20116 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20117 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20118 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20119 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20120 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20121 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20122 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20123 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20124 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20125 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20126 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20127 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20128 Adjust.
20129
20130 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20131
20132 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20133 declaration.
20134 * passes.c (pass_manager::register_dump_files_1): Merge into
20135 (pass_manager::register_dump_files): this, and remove its handling of
20136 properties since the pass always has the properties anyway.
20137 (pass_manager::pass_manager): Adjust.
20138
20139 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20140
20141 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20142 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20143 dealing with properties.
20144 (pass_manager::register_dump_files): Adjust.
20145
20146 2014-03-20 Mark Wielaard <mjw@redhat.com>
20147
20148 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20149 then represent the bound as normal constant value.
20150
20151 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20152
20153 PR target/60847
20154 Forward port from 4.8 branch
20155 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20156
20157 * config/i386/bmiintrin.h (_blsi_u32): New.
20158 (_blsi_u64): Ditto.
20159 (_blsr_u32): Ditto.
20160 (_blsr_u64): Ditto.
20161 (_blsmsk_u32): Ditto.
20162 (_blsmsk_u64): Ditto.
20163 (_tzcnt_u32): Ditto.
20164 (_tzcnt_u64): Ditto.
20165
20166 2014-04-17 Kito Cheng <kito@0xlab.org>
20167
20168 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20169
20170 2014-04-17 Richard Biener <rguenther@suse.de>
20171
20172 PR middle-end/60849
20173 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20174 boolean results for comparisons.
20175
20176 2014-04-17 Richard Biener <rguenther@suse.de>
20177
20178 PR tree-optimization/60836
20179 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20180 initial PHI args to be gimple values.
20181
20182 2014-04-17 Richard Biener <rguenther@suse.de>
20183
20184 PR tree-optimization/60841
20185 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20186 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20187 of stmts to SLP build.
20188 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20189 (vect_analyze_slp): Likewise.
20190 (vect_analyze_slp_instance): Likewise.
20191 (vect_build_slp_tree): Limit overall SLP tree growth.
20192 * tree-vectorizer.h (vect_analyze_data_refs,
20193 vect_analyze_slp): Adjust prototypes.
20194
20195 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20196
20197 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20198 Silvermont.
20199
20200 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20201
20202 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20203 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20204 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20205 for TARGET_SLOW_PSHUFB
20206
20207 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20208
20209 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20210 * config/i386/i386.c (intel_cost): Ditto.
20211
20212 2014-04-17 Joey Ye <joey.ye@arm.com>
20213
20214 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20215
20216 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20217
20218 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20219 with -fuse-profile.
20220
20221 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20222
20223 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20224 (type_all_derivations_known_p): New predicate.
20225 (type_all_ctors_visible_p): New predicate.
20226 (type_possibly_instantiated_p): New predicate.
20227 (get_odr_type): Compute all_derivations_known.
20228 (dump_odr_type): Dump the flag.
20229 (maybe_record_type): Cleanup.
20230 (record_target_from_binfo): Add bases_to_consider array;
20231 record bases for types w/o instances and skip CXX destructor.
20232 (possible_polymorphic_call_targets_1): Add bases_to_consider
20233 and consider_construction parameters; check if type may have instance.
20234 (get_polymorphic_call_info): Set maybe_in_construction to true
20235 when we know nothing.
20236 (record_targets_from_bases): Skip CXX destructors; they are
20237 never called for types in construction.
20238 (possible_polymorphic_call_targets): Do not record target when
20239 type may not have instance.
20240
20241 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20242
20243 PR ipa/60854
20244 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20245 external aliases alive, too.
20246
20247 2014-04-16 Andrew Pinski <apinski@cavium.com>
20248
20249 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20250 definition.
20251
20252 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20253
20254 * final.c (compute_alignments): Do not apply loop alignment to a block
20255 falling through to the exit.
20256
20257 2014-04-16 Catherine Moore <clm@codesourcery.com>
20258
20259 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20260 Adjust constraints for microMIPS store patterns.
20261
20262 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20263
20264 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20265
20266 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20267
20268 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20269 (append_use): Run at -O0.
20270 (append_vdef): Likewise.
20271 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20272 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20273
20274 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20275
20276 PR tree-optimization/60844
20277 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20278 (propagate_op_to_single_use, remove_visited_stmt_chain,
20279 linearize_expr, repropagate_negates, reassociate_bb): Use it
20280 instead of gsi_remove.
20281
20282 2014-04-16 Martin Jambor <mjambor@suse.cz>
20283
20284 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20285 ipa_transforms_to_apply.
20286 (cgraph_function_versioning): Assert that old_node has empty
20287 ipa_transforms_to_apply.
20288 * trans-mem.c (ipa_tm_create_version): Likewise.
20289 * tree-inline.c (tree_function_versioning): Do not duplicate
20290 ipa_transforms_to_apply.
20291
20292 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20293
20294 PR target/60817
20295 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20296 x86_64-*-* cases.
20297 Pass necessary as flags on 64-bit Solaris/x86.
20298 Use lowercase relocs for x86_64-*-*.
20299 * configure: Regenerate.
20300
20301 2014-04-15 Jan Hubicka <jh@suse.cz>
20302
20303 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20304 (maybe_record_node, likely_target_p): Use it.
20305
20306 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20307
20308 PR target/60839
20309 Revert following patch
20310
20311 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20312
20313 PR target/60735
20314 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20315 software floating point or no floating point registers, do not
20316 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20317 in GPRs that occurs after we tested for GPRs that would never be
20318 true.
20319
20320 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20321 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20322 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20323 specifically allow DDmode, since that does not use the SPE SIMD
20324 instructions.
20325
20326 2014-03-21 Mark Wielaard <mjw@redhat.com>
20327
20328 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20329 as unsigned or int depending on type and value used.
20330
20331 2014-04-15 Richard Biener <rguenther@suse.de>
20332
20333 PR rtl-optimization/56965
20334 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20335 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20336 ... here.
20337 * alias.c (true_dependence_1): Do not call
20338 nonoverlapping_component_refs_p.
20339 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20340 nonoverlapping_component_refs_p.
20341 (indirect_refs_may_alias_p): Likewise.
20342
20343 2014-04-15 Teresa Johnson <tejohnson@google.com>
20344
20345 * cfg.c (dump_bb_info): Fix flags check.
20346 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20347
20348 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20349
20350 PR rtl-optimization/60663
20351 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20352 avoid 0 cost.
20353
20354 2014-04-15 Richard Biener <rguenther@suse.de>
20355
20356 * lto-streamer.h (LTO_major_version): Bump to 4.
20357
20358 2014-04-15 Richard Biener <rguenther@suse.de>
20359
20360 * common.opt (lto_partition_model): New enum.
20361 (flto-partition=): Merge separate options with a single with argument,
20362 add -flto-partition=one support.
20363 * flag-types.h (enum lto_partition_model): Declare.
20364 * opts.c (finish_options): Remove duplicate -flto-partition=
20365 option check.
20366 * lto-wrapper.c (run_gcc): Adjust.
20367
20368 2014-04-15 Richard Biener <rguenther@suse.de>
20369
20370 * alias.c (ncr_compar): New function.
20371 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20372
20373 2014-04-15 Richard Biener <rguenther@suse.de>
20374
20375 * alias.c (record_component_aliases): Do not walk BINFOs.
20376
20377 2014-04-15 Richard Biener <rguenther@suse.de>
20378
20379 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20380 Add struct function argument and adjust.
20381 (find_func_aliases_for_call): Likewise.
20382 (find_func_aliases): Likewise.
20383 (find_func_clobbers): Likewise.
20384 (intra_create_variable_infos): Likewise.
20385 (compute_points_to_sets): Likewise.
20386 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20387
20388 2014-04-15 Richard Biener <rguenther@suse.de>
20389
20390 * tree.c (iterative_hash_expr): Use enum tree_code_class
20391 to store TREE_CODE_CLASS.
20392 (tree_block): Likewise.
20393 (tree_set_block): Likewise.
20394 * tree.h (fold_build_pointer_plus_loc): Use
20395 convert_to_ptrofftype_loc.
20396
20397 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20398
20399 PR plugins/59335
20400 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20401 added in 4.9.
20402
20403 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20404
20405 * cfgloop.h (struct loop): Move force_vectorize down.
20406 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20407 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20408 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20409 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20410 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20411 * tree-core.h (enum annot_expr_kind): Add new kind values.
20412 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20413 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20414 kinds.
20415 * tree.def (ANNOTATE_EXPR): Tweak comment.
20416
20417 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20418
20419 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20420 cxa_pure_virtual).
20421
20422 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20423
20424 * tree.h (TYPE_IDENTIFIER): Declare.
20425 * tree.c (subrange_type_for_debug_p): Use it.
20426 * godump.c (go_format_type): Likewise.
20427 * dwarf2out.c (is_cxx_auto, modified_type_die,
20428 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20429 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20430
20431 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20432
20433 PR lto/60820
20434 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20435
20436 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20437
20438 * config/i386/i386.c (examine_argument): Return bool. Return true if
20439 parameter should be passed in memory.
20440 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20441 (construct_container): Update calls to examine_argument.
20442 (function_arg_advance_64): Ditto.
20443 (return_in_memory_32): Merge with ix86_return_in_memory.
20444 (return_in_memory_64): Ditto.
20445 (return_in_memory_ms_64): Ditto.
20446
20447 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20448
20449 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20450 * coverage.c (coverage_compute_profile_id): Handle externally visible
20451 symbols.
20452
20453 2014-04-14 Martin Jambor <mjambor@suse.cz>
20454
20455 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20456 DECL_DISREGARD_INLINE_LIMITS functions.
20457
20458 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20459
20460 PR target/60827
20461 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20462
20463 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20464
20465 PR target/60827
20466 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20467 optimize_insn_for_speed_p instead of
20468 optimize_function_for_speed_p.
20469
20470 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20471
20472 * doc/invoke.texi (free): Document AArch64.
20473
20474 2014-04-14 Richard Biener <rguenther@suse.de>
20475
20476 PR tree-optimization/60042
20477 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20478 (insert_into_preds_of_block): Do not prevent PHI insertion
20479 for REFERENCE exprs here ...
20480 (eliminate_dom_walker::before_dom_children): ... but prevent
20481 their use here under similar conditions when applied to the
20482 IL after PRE optimizations.
20483
20484 2014-04-14 Richard Biener <rguenther@suse.de>
20485
20486 * passes.def: Move early points-to after early SRA.
20487
20488 2014-04-14 Richard Biener <rguenther@suse.de>
20489
20490 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20491 check for which sign-changes we allow when forwarding
20492 a converted value into a switch.
20493
20494 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20495
20496 * stor-layout.c (place_field): Finalize non-constant offset for the
20497 field, if any.
20498
20499 2014-04-14 Richard Biener <rguenther@suse.de>
20500
20501 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20502 as argument.
20503 (expand_switch_using_bit_tests_p): Likewise.
20504 (process_switch): Compute and pass on speed_p based on the
20505 switch stmt.
20506 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20507 optimize_bb_for_speed_p.
20508
20509 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20510
20511 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20512 * function.h (struct function): Rename has_force_vect_loops into
20513 has_force_vectorize_loops.
20514 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20515 (input_struct_function_base): Likewise.
20516 * lto-streamer-out.c (output_cfg): Likewise.
20517 (output_struct_function_base): Likewise.
20518 * omp-low.c (expand_omp_simd): Likewise.
20519 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20520 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20521 (version_loop_for_if_conversion): Likewise.
20522 (tree_if_conversion): Likewise.
20523 (main_tree_if_conversion): Likewise.
20524 (gate_tree_if_conversion): Likewise.
20525 * tree-inline.c (copy_loops): Likewise.
20526 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20527 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20528 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20529 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20530 * tree-vectorizer.c (vectorize_loops): Likewise.
20531 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20532
20533 2014-04-14 Richard Biener <rguenther@suse.de>
20534
20535 PR lto/60720
20536 * lto-streamer-out.c (wrap_refs): New function.
20537 (lto_output): Wrap symbol references in global initializes in
20538 type-preserving MEM_REFs.
20539
20540 2014-04-14 Christian Bruel <christian.bruel@st.com>
20541
20542 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20543
20544 2014-04-14 Christian Bruel <christian.bruel@st.com>
20545
20546 * config/sh/sh.md (setmemqi): New expand pattern.
20547 * config/sh/sh.h (CLEAR_RATIO): Define.
20548 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20549 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20550
20551 2014-04-14 Richard Biener <rguenther@suse.de>
20552
20553 PR middle-end/55022
20554 * fold-const.c (negate_expr_p): Don't negate directional rounding
20555 division.
20556 (fold_negate_expr): Likewise.
20557
20558 2014-04-14 Richard Biener <rguenther@suse.de>
20559
20560 PR tree-optimization/59817
20561 PR tree-optimization/60453
20562 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20563 recursion to catch all CHRECs in the scalar evolution and restrict
20564 the predicate for the remains appropriately.
20565
20566 2014-04-12 Catherine Moore <clm@codesourcery.com>
20567
20568 * config/mips/constraints.md: Add new register constraint "kb".
20569 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20570 (*movhi_internal): Likewise.
20571 (*movqi_internal): Likewise.
20572 * config/mips/mips.h (M16_STORE_REGS): New register class.
20573 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20574 (REG_CLASS_CONTENTS): Likewise.
20575 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20576
20577 2014-04-11 Tobias Burnus <burnus@net-b.de>
20578
20579 PR c/60194
20580 * doc/invoke.texi (-Wformat-signedness): Document it.
20581 (Wformat=2): Mention that this enables -Wformat-signedness.
20582
20583 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20584
20585 * common/config/epiphany/epiphany-common.c
20586 (epiphany_option_optimization_table): Enable section anchors by
20587 default at -O1 or higher.
20588 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20589 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20590 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20591 carries no extra cost.
20592 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20593 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20594 * config/epiphany/predicates.md (memclob_operand): New predicate.
20595 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20596 Use memclob_operand predicate and X constraint for operand 3.
20597
20598 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20599
20600 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20601 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20602 its operands.
20603
20604 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20605
20606 PR rtl-optimization/60651
20607 * mode-switching.c (optimize_mode_switching): Make sure to emit
20608 sets of a lower numbered entity before sets of a higher numbered
20609 entity to a mode of the same or lower priority.
20610 When creating a seginfo for a basic block that starts with a code
20611 label, move the insertion point past the code label.
20612 (new_seginfo): Document and enforce requirement that
20613 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20614 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20615 * doc/tm.texi: Regenerate.
20616
20617 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20618
20619 PR target/60811
20620 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20621
20622 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20623
20624 * BASE-VER: Set to 4.10.0.
20625
20626 2014-04-11 Tobias Burnus <burnus@net-b.de>
20627
20628 PR other/59055
20629 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20630 * doc/gcc.texi (Service): Update description in the @menu
20631 * doc/invoke.texi (Option Summary): Remove misplaced and
20632 duplicated @menu.
20633
20634 2014-04-11 Steve Ellcey <sellcey@mips.com>
20635 Jakub Jelinek <jakub@redhat.com>
20636
20637 PR middle-end/60556
20638 * expr.c (convert_move): Use emit_store_flag_force instead of
20639 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20640 argument to it.
20641
20642 2014-04-11 Richard Biener <rguenther@suse.de>
20643
20644 PR middle-end/60797
20645 * varasm.c (assemble_alias): Avoid endless error reporting
20646 recursion by setting TREE_ASM_WRITTEN.
20647
20648 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20649
20650 * config/s390/s390.md: Add a splitter for NOT rtx.
20651
20652 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20653
20654 PR rtl-optimization/60663
20655 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20656
20657 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20658 Jakub Jelinek <jakub@redhat.com>
20659
20660 PR lto/60567
20661 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20662 flag from decl_node to node.
20663
20664 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20665
20666 PR debug/60655
20667 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20668 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20669 ameliorating the cases where it can be.
20670
20671 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20672
20673 Revert
20674 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20675
20676 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20677 (loadsync_<mode>): Change mode.
20678 (load_quadpti, store_quadpti): New.
20679 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20680 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20681 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20682
20683 2014-04-09 Cong Hou <congh@google.com>
20684
20685 PR testsuite/60773
20686 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20687 documentation.
20688
20689 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20690
20691 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20692 instead of vnor to exploit possible fusion opportunity in the
20693 future.
20694 (altivec_expand_vec_perm_const_le): Likewise.
20695
20696 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20697
20698 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20699 (loadsync_<mode>): Change mode.
20700 (load_quadpti, store_quadpti): New.
20701 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20702 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20703
20704 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20705
20706 PR target/60763
20707 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20708 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20709 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20710
20711 2014-04-08 Richard Biener <rguenther@suse.de>
20712
20713 PR middle-end/60706
20714 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20715 a 64bit widest int print double-int similar to on HWI64 hosts.
20716
20717 2014-04-08 Richard Biener <rguenther@suse.de>
20718
20719 PR tree-optimization/60785
20720 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20721 default defs properly.
20722
20723 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20724
20725 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20726 (Weffc++): Likewise.
20727
20728 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20729
20730 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20731 set completep to false rather than true.
20732
20733 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20734
20735 PR target/60504
20736 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20737 ARM_TARGET2_DWARF_FORMAT.
20738
20739 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20740
20741 PR target/60609
20742 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20743 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20744 ADDR_DIFF_VEC.
20745
20746 2014-04-07 Richard Biener <rguenther@suse.de>
20747
20748 PR tree-optimization/60766
20749 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20750 (may_eliminate_iv): Convert cand_value_at result to desired type.
20751
20752 2014-04-07 Jason Merrill <jason@redhat.com>
20753
20754 PR c++/60731
20755 * common.opt (-fno-gnu-unique): Add.
20756 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20757
20758 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20759
20760 * haifa-sched.c: Fix outdated function reference and minor
20761 grammar errors in introductory comment.
20762
20763 2014-04-07 Richard Biener <rguenther@suse.de>
20764
20765 PR middle-end/60750
20766 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20767 for noreturn calls.
20768 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20769
20770 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20771
20772 PR debug/55794
20773 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20774 size accounting for thunks.
20775 (pa_asm_output_mi_thunk): Use final_start_function() and
20776 final_end_function() to output function start and end directives.
20777
20778 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20779
20780 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20781 device specific ISA/ feature information. Remove short_sp and
20782 errata_skip ds. Add avr_device_specific_features enum to have device
20783 specific info.
20784 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20785 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20786 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20787 updated device specific info.
20788 * config/avr/avr-mcus.def: Merge device specific details to
20789 dev_attribute field.
20790 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20791 errata_skip.
20792 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20793 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20794 assembler if RMW isa supported by current device.
20795 * config/avr/genmultilib.awk: Update as device info structure changed.
20796 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20797
20798 2014-04-04 Cong Hou <congh@google.com>
20799
20800 PR tree-optimization/60656
20801 * tree-vect-stmts.c (supportable_widening_operation):
20802 Fix a bug that elements in a vector with vect_used_by_reduction
20803 property are incorrectly reordered when the operation on it is not
20804 consistant with the one in reduction operation.
20805
20806 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20807
20808 PR rtl-optimization/60155
20809 * gcse.c (record_set_data): New function.
20810 (single_set_gcse): New function.
20811 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20812 (hoist_code): Likewise.
20813 (get_pressure_class_and_nregs): Likewise.
20814
20815 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20816
20817 * explow.c (probe_stack_range): Emit a final optimization blockage.
20818
20819 2014-04-04 Anthony Green <green@moxielogic.com>
20820
20821 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20822 typos.
20823
20824 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20825
20826 PR ipa/59626
20827 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20828 flags are set only during streaming.
20829 * ipa.c (process_references, walk_polymorphic_call_targets,
20830 symtab_remove_unreachable_nodes): Drop bodies of always inline
20831 after early inlining.
20832 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20833
20834 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20835 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20836
20837 PR debug/60655
20838 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20839 containing a NOT.
20840
20841 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20842
20843 PR bootstrap/60743
20844 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20845 duration.
20846 (cortex_a53_fdivd): Likewise.
20847
20848 2014-04-04 Martin Jambor <mjambor@suse.cz>
20849
20850 PR ipa/60640
20851 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20852 Adjust all callers.
20853 * cgraph.c (clone_of_p): Also return true if thunks match.
20854 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20855 cgraph_function_or_thunk_node and an obsolete comment.
20856 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20857 file.
20858 (build_function_decl_skip_args): Likewise.
20859 (set_new_clone_decl_and_node_flags): New function.
20860 (duplicate_thunk_for_node): Likewise.
20861 (redirect_edge_duplicating_thunks): Likewise.
20862 (cgraph_clone_node): New parameter args_to_skip, pass it to
20863 redirect_edge_duplicating_thunks which is called instead of
20864 cgraph_redirect_edge_callee.
20865 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20866 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20867
20868 2014-04-04 Jeff Law <law@redhat.com>
20869
20870 PR target/60657
20871 * config/arm/predicates.md (const_int_I_operand): New predicate.
20872 (const_int_M_operand): Similarly.
20873 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20874 const_int_operand.
20875 (insv_t2, extv_reg, extzv_t2): Likewise.
20876 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20877 (pop_multiple_with_writeback_and_return): Likewise.
20878 (vfp_pop_multiple_with_writeback): Likewise
20879
20880 2014-04-04 Richard Biener <rguenther@suse.de>
20881
20882 PR ipa/60746
20883 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20884 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20885 non-GIMPLE_LABELs.
20886 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20887 * gimplify.c (gimple_add_tmp_var_fn): New function.
20888 * gimple-expr.h (create_tmp_reg_fn): Declare.
20889 * gimple-expr.c (create_tmp_reg_fn): New function.
20890 * gimple-low.c (record_vars_into): Don't change cfun.
20891 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20892 code generation without cfun.
20893
20894 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20895
20896 PR bootstrap/60719
20897 * Makefile.in (install-driver): Fix shell scripting.
20898
20899 2014-04-03 Cong Hou <congh@google.com>
20900
20901 PR tree-optimization/60505
20902 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20903 threshold of number of iterations below which no vectorization
20904 will be done.
20905 * tree-vect-loop.c (new_loop_vec_info):
20906 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20907 * tree-vect-loop.c (vect_analyze_loop_operations):
20908 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20909 * tree-vect-loop.c (vect_transform_loop):
20910 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20911 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20912 of iterations of the loop and see if we should build the epilogue.
20913
20914 2014-04-03 Richard Biener <rguenther@suse.de>
20915
20916 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20917 (streamer_tree_cache_create): Adjust.
20918 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20919 to allow optional nodes array.
20920 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20921 (streamer_tree_cache_append): Likewise.
20922 (streamer_tree_cache_create): Create nodes array optionally
20923 as specified by parameter.
20924 * lto-streamer-out.c (create_output_block): Avoid maintaining
20925 the node array in the writer cache.
20926 (DFS_write_tree): Remove assertion.
20927 (produce_asm_for_decls): Free the out decl state hash table early.
20928 * lto-streamer-in.c (lto_data_in_create): Adjust for
20929 streamer_tree_cache_create prototype change.
20930
20931 2014-04-03 Richard Biener <rguenther@suse.de>
20932
20933 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20934 set TREE_CHAIN to NULL_TREE.
20935
20936 2014-04-03 Richard Biener <rguenther@suse.de>
20937
20938 PR tree-optimization/60740
20939 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20940 over all GIMPLE_COND operands.
20941
20942 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20943
20944 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20945 (Weffc++): Remove Scott's numbering, merge lists and reference
20946 Wnon-virtual-dtor.
20947
20948 2014-04-03 Nick Clifton <nickc@redhat.com>
20949
20950 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20951 properly.
20952
20953 2014-04-03 Martin Jambor <mjambor@suse.cz>
20954
20955 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20956 mention gcc_unreachable before failing.
20957 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20958 removed symbols.
20959
20960 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20961
20962 PR ipa/60659
20963 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20964 inconsistent code and instead mark the context inconsistent.
20965 (possible_polymorphic_call_targets): For inconsistent contexts
20966 return empty complete list.
20967
20968 2014-04-02 Anthony Green <green@moxielogic.com>
20969
20970 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20971 (extendqisi2, extendhisi2): Define.
20972 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20973 (WCHAR_TYPE): Change to unsigned int.
20974
20975 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20976
20977 PR tree-optimization/60733
20978 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20979 insertion point for PHI candidates to be the end of the feeding
20980 block for the PHI argument.
20981
20982 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20983
20984 PR rtl-optimization/60650
20985 * lra-constraints.c (process_alt_operands): Decrease reject for
20986 earlyclobber matching.
20987
20988 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20989
20990 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20991
20992 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20993
20994 * config/spu/spu.c (pad_bb): Do not crash when the last
20995 insn is CODE_FOR_blockage.
20996
20997 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20998
20999 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21000 lies outside the target mode.
21001
21002 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21003
21004 PR target/60735
21005 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21006 software floating point or no floating point registers, do not
21007 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21008 in GPRs that occurs after we tested for GPRs that would never be
21009 true.
21010
21011 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21012 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21013 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21014 specifically allow DDmode, since that does not use the SPE SIMD
21015 instructions.
21016
21017 2014-04-02 Richard Biener <rguenther@suse.de>
21018
21019 PR middle-end/60729
21020 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21021 MODE_INTs. Properly use negv_optab.
21022 (expand_abs): Likewise.
21023
21024 2014-04-02 Richard Biener <rguenther@suse.de>
21025
21026 PR bootstrap/60719
21027 * Makefile.in (install-driver): Guard extra installs with special
21028 names properly.
21029
21030 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21031
21032 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21033 Document vec_vgbbd.
21034
21035 2014-04-01 Richard Henderson <rth@redhat.com>
21036
21037 PR target/60704
21038 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21039 alternative enabled before register allocation.
21040
21041 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21042
21043 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21044 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21045 typo.
21046 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21047 (nios2_got_address): Update nios2_large_got_address call site.
21048 (nios2_delegitimize_address): New function.
21049 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21050 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21051 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21052
21053 2014-04-01 Martin Husemann <martin@duskware.de>
21054
21055 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21056 for -mabi=32.
21057
21058 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21059
21060 PR rtl-optimization/60604
21061 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21062 check from register_operand.
21063 (register_operand): Redefine in terms of general_operand.
21064 (nonmemory_operand): Use register_operand for the non-constant cases.
21065
21066 2014-04-01 Richard Biener <rguenther@suse.de>
21067
21068 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21069
21070 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21071
21072 * doc/invoke.texi (mapp-regs): Clarify.
21073
21074 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21075
21076 * config/i386/avx512fintrin.h (__v32hi): Define type.
21077 (__v64qi): Likewise.
21078 (_mm512_set1_epi8): Define.
21079 (_mm512_set1_epi16): Define.
21080 (_mm512_set4_epi32): Define.
21081 (_mm512_set4_epi64): Define.
21082 (_mm512_set4_pd): Define.
21083 (_mm512_set4_ps): Define.
21084 (_mm512_setr4_epi64): Define.
21085 (_mm512_setr4_epi32): Define.
21086 (_mm512_setr4_pd): Define.
21087 (_mm512_setr4_ps): Define.
21088 (_mm512_setzero_epi32): Define.
21089
21090 2014-03-31 Martin Jambor <mjambor@suse.cz>
21091
21092 PR middle-end/60647
21093 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21094 callsite_arguments_match_p. Updated all callers. Also check types of
21095 corresponding formal parameters and actual arguments.
21096 (not_all_callers_have_enough_arguments_p) Renamed to
21097 some_callers_have_mismatched_arguments_p.
21098
21099 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21100
21101 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21102
21103 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21104
21105 PR target/60034
21106 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21107 section anchor.
21108
21109 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21110
21111 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21112 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21113 Split out
21114 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21115 Use FMAMODE_NOVF512 mode iterator.
21116 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21117 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21118 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21119 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21120 Split out
21121 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21122 Use VF_128_256 mode iterator.
21123 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21124 Ditto.
21125
21126 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21127
21128 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21129 static chain if needed.
21130
21131 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21132
21133 PR target/60697
21134 * lra-constraints.c (index_part_to_reg): New.
21135 (process_address): Use it.
21136
21137 2014-03-27 Jeff Law <law@redhat.com>
21138 Jakub Jelinek <jakub@redhat.com>
21139
21140 PR target/60648
21141 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21142 gen_rtx_{PLUS,MULT} to build up the address expression.
21143
21144 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21145 creating non-canonical RTL.
21146
21147 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21148
21149 PR ipa/60243
21150 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21151 functions; reorganize to make cheap checks first.
21152 (inline_small_functions): Do not estimate growth when dumping;
21153 it is expensive.
21154 * ipa-inline.h (inline_summary): Add min_size.
21155 (growth_likely_positive): New function.
21156 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21157 (set_cond_stmt_execution_predicate): Cleanup.
21158 (estimate_edge_size_and_time): Compute min_size.
21159 (estimate_calls_size_and_time): Likewise.
21160 (estimate_node_size_and_time): Likewise.
21161 (inline_update_overall_summary): Update min_size.
21162 (do_estimate_edge_time): Likewise.
21163 (do_estimate_edge_size): Update.
21164 (do_estimate_edge_hints): Update.
21165 (growth_likely_positive): New function.
21166
21167 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21168
21169 PR target/60693
21170 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21171 also if addr has VOIDmode.
21172
21173 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21174
21175 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21176 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21177 Declare extern.
21178 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21179 instructions as well as AdvancedSIMD loads.
21180
21181 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21182
21183 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21184 Use crypto_aese type.
21185 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21186 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21187 crypto_aese, crypto_aesmc. Move to types.md.
21188 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21189 crypto_aesmc.
21190 * config/arm/iterators.md (crypto_type): Likewise.
21191
21192 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21193
21194 * cgraph.c: Include expr.h and tree-dfa.h.
21195 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21196 remove LHS.
21197
21198 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21199
21200 PR target/60675
21201 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21202 regs from checking multi-reg pseudos.
21203
21204 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21205
21206 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21207
21208 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21209
21210 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21211 if it would clobber the stack pointer, even temporarily.
21212
21213 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21214
21215 * mode-switching.c: Make small adjustments to the top comment.
21216
21217 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21218
21219 * config/rs6000/constraints.md (wD constraint): New constraint to
21220 match the constant integer to get the top DImode/DFmode out of a
21221 vector in a VSX register.
21222
21223 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21224 match the constant integer to get the top DImode/DFmode out of a
21225 vector in a VSX register.
21226
21227 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21228 for ISA 2.07.
21229
21230 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21231 vbpermq builtins.
21232
21233 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21234 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21235
21236 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21237 Optimize vec_extract of 64-bit values, where the value being
21238 extracted is in the top word, where we can use scalar
21239 instructions. Add direct move and store support. Combine the big
21240 endian/little endian vector select load support into a single insn.
21241 (vsx_extract_<mode>_internal1): Likewise.
21242 (vsx_extract_<mode>_internal2): Likewise.
21243 (vsx_extract_<mode>_load): Likewise.
21244 (vsx_extract_<mode>_store): Likewise.
21245 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21246 combined into vsx_extract_<mode>_load.
21247 (vsx_extract_<mode>_one_le): Likewise.
21248
21249 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21250 define the top 64-bit vector element.
21251
21252 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21253 constraint.
21254
21255 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21256 Document vec_vbpermq builtin.
21257
21258 PR target/60672
21259 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21260 enable use of xxsldwi and xxpermdi builtin functions.
21261 (vec_xxpermdi): Likewise.
21262
21263 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21264 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21265
21266 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21267
21268 PR rtl-optimization/60650
21269 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21270 first_p. Use it.
21271 (find_spills_for): New.
21272 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21273 Spill all pseudos on the second iteration.
21274
21275 2014-03-27 Marek Polacek <polacek@redhat.com>
21276
21277 PR c/50347
21278 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21279 types.
21280
21281 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21282
21283 * config/s390/s390.c (s390_can_use_return_insn): Check for
21284 call-saved FPRs on 31 bit.
21285
21286 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21287
21288 PR middle-end/60682
21289 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21290 if they need regimplification, just drop them instead of
21291 calling gimple_regimplify_operands on them.
21292
21293 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21294
21295 PR target/60580
21296 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21297 (aarch64_frame_pointer_required): Adjust logic.
21298 (aarch64_can_eliminate): Adjust logic.
21299 (aarch64_override_options_after_change): Adjust logic.
21300
21301 2014-03-27 Dehao Chen <dehao@google.com>
21302
21303 * ipa-inline.c (early_inliner): Update node's inline info.
21304
21305 2014-03-26 Dehao Chen <dehao@google.com>
21306
21307 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21308 compiler inserted conditional jumps for NAN float check.
21309
21310 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21311
21312 * ubsan.h (ubsan_create_data): Change second argument's type
21313 to const location_t *.
21314 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21315 _("<unknown>").
21316 (ubsan_create_data): Change second argument to const location_t *PLOC.
21317 Create Loc field whenever PLOC is non-NULL.
21318 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21319 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21320 callers.
21321
21322 PR other/59545
21323 * real.c (real_to_integer2): Change type of low to UHWI.
21324
21325 2014-03-26 Tobias Burnus <burnus@net-b.de>
21326
21327 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21328 (CILK_SELF_SPECS): New define.
21329 (driver_self_specs): Use it.
21330
21331 2014-03-26 Richard Biener <rguenther@suse.de>
21332
21333 * tree-pretty-print.c (percent_K_format): Implement special
21334 case for LTO and its stripped down BLOCK tree.
21335
21336 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21337
21338 PR sanitizer/60636
21339 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21340
21341 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21342 one range is range_int_cst_p, but not both, at least optimize
21343 addition/subtraction of 0 and multiplication by 0 or 1.
21344 * gimple-fold.c (gimple_fold_call): Fold
21345 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21346 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21347 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21348
21349 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21350
21351 PR rtl-optimization/60452
21352 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21353 <case REG>: Return 1 for invalid offsets from the frame pointer.
21354
21355 2014-03-26 Marek Polacek <polacek@redhat.com>
21356
21357 PR c/37428
21358 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21359 a structure/union.
21360
21361 2014-03-26 Marek Polacek <polacek@redhat.com>
21362
21363 PR c/39525
21364 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21365 field members.
21366
21367 2014-03-26 Marek Polacek <polacek@redhat.com>
21368
21369 PR other/59545
21370 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21371 multiplication in unsigned type.
21372
21373 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21374
21375 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21376
21377 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21378
21379 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21380
21381 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21382
21383 PR ipa/60315
21384 * cif-code.def (UNREACHABLE) New code.
21385 * ipa-inline.c (inline_small_functions): Skip edges to
21386 __builtlin_unreachable.
21387 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21388 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21389 predicate to __bulitin_unreachable.
21390 (set_cond_stmt_execution_predicate): Fix issue when
21391 invert_tree_comparison returns ERROR_MARK.
21392 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21393 propagate to inline clones.
21394 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21395 to unreachable.
21396 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21397 * cgraphclones.c (cgraph_clone_node): If call destination is already
21398 ureachable, do not redirect it back.
21399 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21400 unreachable.
21401
21402 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21403
21404 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21405 Do not modify inline clones.
21406
21407 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21408
21409 * config/i386/i386.md (general_sext_operand): New mode attr.
21410 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21411 don't generate (sign_extend (const_int)).
21412 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21413 operands[2]. Use We constraint instead of <i> and
21414 <general_sext_operand> predicate instead of <general_operand>.
21415 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21416 * config/i386/constraints.md (We): New constraint.
21417 * config/i386/predicates.md (x86_64_sext_operand,
21418 sext_operand): New predicates.
21419
21420 2014-03-25 Martin Jambor <mjambor@suse.cz>
21421
21422 PR ipa/60600
21423 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21424 inconsistent devirtualizations to __builtin_unreachable.
21425
21426 2014-03-25 Marek Polacek <polacek@redhat.com>
21427
21428 PR c/35449
21429 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21430
21431 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21432
21433 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21434 order of elements for big-endian.
21435
21436 2014-03-25 Richard Biener <rguenther@suse.de>
21437
21438 PR middle-end/60635
21439 * gimplify-me.c (gimple_regimplify_operands): Update the
21440 re-gimplifed stmt.
21441
21442 2014-03-25 Martin Jambor <mjambor@suse.cz>
21443
21444 PR ipa/59176
21445 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21446 (lto_output_varpool_node): Likewise.
21447 (input_overwrite_node): Likewise.
21448 (input_varpool_node): Likewise.
21449
21450 2014-03-25 Richard Biener <rguenther@suse.de>
21451
21452 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21453 (run_gcc): Likewise.
21454
21455 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21456
21457 * combine.c (simplify_compare_const): Add MODE argument.
21458 Handle mode_width 0 as very large mode_width.
21459 (try_combine, simplify_comparison): Adjust callers.
21460
21461 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21462 type to avoid signed integer overflow.
21463 * explow.c (plus_constant): Likewise.
21464
21465 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21466
21467 * doc/generic.texi: Correct typos.
21468
21469 2014-03-24 Tobias Burnus <burnus@net-b.de>
21470
21471 * doc/invoke.texi (-flto): Expand section about
21472 using static libraries with LTO.
21473
21474 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21475
21476 PR rtl-optimization/60501
21477 * optabs.def (addptr3_optab): New optab.
21478 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21479 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21480 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21481
21482 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21483
21484 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21485
21486 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21487
21488 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21489 _mm512_set1_pd.
21490
21491 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21492 (_mm256_undefined_ps): Define.
21493 (_mm256_undefined_pd): Define.
21494 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21495 (_mm_undefined_pd): Define.
21496 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21497 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21498 (_mm512_undefined_ps): Define.
21499 (_mm512_undefined_pd): Define.
21500 Use _mm*_undefined_*.
21501 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21502
21503 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21504
21505 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21506 (lshr_simd): DI mode added.
21507 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21508 (aarch64_ushr_simddi): Likewise.
21509 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21510 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21511 (vshrd_n_u64): Likewise.
21512
21513 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21514
21515 * Makefile.in (s-macro_list): Depend on cc1.
21516
21517 2014-03-23 Teresa Johnson <tejohnson@google.com>
21518
21519 * ipa-utils.c (ipa_print_order): Use specified dump file.
21520
21521 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21522
21523 PR rtl-optimization/60601
21524 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21525
21526 * gcc.c (eval_spec_function): Initialize save_growing_value.
21527
21528 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21529
21530 PR sanitizer/60613
21531 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21532 code == MINUS_EXPR, never swap op0 with op1.
21533
21534 * toplev.c (init_local_tick): Avoid signed integer multiplication
21535 overflow.
21536 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21537 shift by first operand's bitsize.
21538
21539 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21540
21541 PR target/60610
21542 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21543 redefine to 1 or 0.
21544 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21545 TARGET_ISA_64BIT_P(x).
21546
21547 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21548
21549 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21550 pattern for vector nor instead of subtract from splat(-1).
21551 (altivec_expand_vec_perm_const_le): Likewise.
21552
21553 2014-03-21 Richard Henderson <rth@twiddle.net>
21554
21555 PR target/60598
21556 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21557 related insns after epilogue_completed.
21558
21559 2014-03-21 Martin Jambor <mjambor@suse.cz>
21560
21561 PR ipa/59176
21562 * cgraph.h (symtab_node): New flag body_removed.
21563 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21564 when removing bodies.
21565 * symtab.c (dump_symtab_base): Dump body_removed flag.
21566 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21567 had their bodies removed.
21568
21569 2014-03-21 Martin Jambor <mjambor@suse.cz>
21570
21571 PR ipa/60419
21572 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21573 in the border.
21574
21575 2014-03-21 Richard Biener <rguenther@suse.de>
21576
21577 PR tree-optimization/60577
21578 * tree-core.h (struct tree_base): Document nothrow_flag use
21579 in DECL_NONALIASED.
21580 * tree.h (DECL_NONALIASED): New.
21581 (may_be_aliased): Adjust.
21582 * coverage.c (build_var): Set DECL_NONALIASED.
21583
21584 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21585
21586 * expr.c (expand_expr_real_1): Remove outdated comment.
21587
21588 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21589
21590 PR middle-end/60597
21591 * ira.c (adjust_cleared_regs): Call copy_rtx on
21592 *reg_equiv[REGNO (loc)].src_p before passing it to
21593 simplify_replace_fn_rtx.
21594
21595 PR target/60568
21596 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21597 into CONST, put pic register as first operand of PLUS. Use
21598 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21599
21600 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21601
21602 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21603
21604 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21605
21606 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21607 around for store forwarding issue in the FPU on the UT699.
21608 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21609 loads and operations if -mfix-ut699 is specified.
21610 (divtf3_hq): Tweak attribute.
21611 (sqrttf2_hq): Likewise.
21612
21613 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21614
21615 * calls.c (store_one_arg): Remove incorrect const qualification on the
21616 type of the temporary.
21617 * cfgexpand.c (expand_return): Likewise.
21618 * expr.c (expand_constructor): Likewise.
21619 (expand_expr_real_1): Likewise.
21620
21621 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21622
21623 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21624 of parts.
21625
21626 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21627
21628 PR target/60039
21629 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21630
21631 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21632
21633 * config/arm/aarch-common-protos.h
21634 (alu_cost_table): Fix spelling of "extend".
21635 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21636
21637 2014-03-19 Richard Biener <rguenther@suse.de>
21638
21639 PR middle-end/60553
21640 * tree-core.h (tree_type_common): Re-order pointer members
21641 to reduce recursion depth during GC walks.
21642
21643 2014-03-19 Marek Polacek <polacek@redhat.com>
21644
21645 PR sanitizer/60569
21646 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21647 before accessing it.
21648
21649 2014-03-19 Richard Biener <rguenther@suse.de>
21650
21651 PR lto/59543
21652 * lto-streamer-in.c (input_function): In WPA stage do not drop
21653 debug stmts.
21654
21655 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21656
21657 PR tree-optimization/60559
21658 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21659 with build_zero_cst assignment.
21660
21661 2014-03-18 Kai Tietz <ktietz@redhat.com>
21662
21663 PR rtl-optimization/56356
21664 * sdbout.c (sdbout_parms): Verify that parms'
21665 incoming argument is valid.
21666 (sdbout_reg_parms): Likewise.
21667
21668 2014-03-18 Richard Henderson <rth@redhat.com>
21669
21670 PR target/60562
21671 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21672 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21673 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21674
21675 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21676
21677 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21678 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21679 Italicize plugin event names in description. Explain that
21680 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21681 Remind that no GCC functions should be called after PLUGIN_FINISH.
21682 Explain what pragmas with expansion are.
21683
21684 2014-03-18 Martin Liska <mliska@suse.cz>
21685
21686 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21687 gimple call statement is update.
21688 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21689 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21690
21691 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21692
21693 PR sanitizer/60557
21694 * ubsan.c (ubsan_instrument_unreachable): Call
21695 initialize_sanitizer_builtins.
21696 (ubsan_pass): Likewise.
21697
21698 PR sanitizer/60535
21699 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21700 varpool_finalize_decl instead of rest_of_decl_compilation.
21701
21702 2014-03-18 Richard Biener <rguenther@suse.de>
21703
21704 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21705 by using bitmap_and_compl instead of bitmap_and_compl_into.
21706 (df_rd_transfer_function): Likewise.
21707
21708 2014-03-18 Richard Biener <rguenther@suse.de>
21709
21710 * doc/lto.texi (fresolution): Fix typo.
21711
21712 2014-03-18 Richard Biener <rguenther@suse.de>
21713
21714 * doc/invoke.texi (flto): Update for changes in 4.9.
21715
21716 2014-03-18 Richard Biener <rguenther@suse.de>
21717
21718 * doc/loop.texi: Remove section on the removed lambda framework.
21719 Update loop docs with recent changes in preserving loop structure.
21720
21721 2014-03-18 Richard Biener <rguenther@suse.de>
21722
21723 * doc/lto.texi (-fresolution): Document.
21724
21725 2014-03-18 Richard Biener <rguenther@suse.de>
21726
21727 * doc/contrib.texi: Adjust my name.
21728
21729 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21730
21731 PR ipa/58721
21732 * internal-fn.c: Include diagnostic-core.h.
21733 (expand_BUILTIN_EXPECT): New function.
21734 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21735 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21736 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21737 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21738 IFN_BUILTIN_EXPECT.
21739 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21740 Revert 3 argument __builtin_expect code.
21741 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21742 * gimple-fold.c (gimple_fold_call): Likewise.
21743 * tree.h (fold_builtin_expect): New prototype.
21744 * builtins.c (build_builtin_expect_predicate): Add predictor
21745 argument, if non-NULL, create 3 argument __builtin_expect.
21746 (fold_builtin_expect): No longer static. Add ARG2 argument,
21747 pass it through to build_builtin_expect_predicate.
21748 (fold_builtin_2): Adjust caller.
21749 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21750 * internal-fn.def (BUILTIN_EXPECT): New.
21751
21752 2014-03-18 Tobias Burnus <burnus@net-b.de>
21753
21754 PR ipa/58721
21755 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21756 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21757 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21758
21759 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21760
21761 PR ipa/58721
21762 * predict.c (combine_predictions_for_bb): Fix up formatting.
21763 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21764 fill what it points to if non-NULL.
21765 (tree_predict_by_opcode): Adjust caller, use the predictor.
21766 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21767
21768 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21769
21770 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21771 proper constant for the store mode.
21772
21773 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21774
21775 * symtab.c (change_decl_assembler_name): Fix transparent alias
21776 chain construction.
21777
21778 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21779
21780 * config/aarch64/aarch64.c: Correct the comments about the
21781 aarch64 stack layout.
21782
21783 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21784
21785 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21786 check for GF_OMP_FOR_KIND_FOR.
21787
21788 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21789
21790 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21791 ymm and zmm register names.
21792
21793 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21794
21795 PR target/60516
21796 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21797 note creation for the 2010-08-31 changes.
21798
21799 2014-03-17 Marek Polacek <polacek@redhat.com>
21800
21801 PR middle-end/60534
21802 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21803 as -fno-tree-loop-vectorize.
21804 (expand_omp_simd): Likewise.
21805
21806 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21807
21808 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21809 (eligible_for_call_delay): New prototype.
21810 * config/sparc/sparc.c (tls_call_delay): Rename into...
21811 (eligible_for_call_delay): ...this. Return false if the instruction
21812 cannot be put in the delay slot of a branch.
21813 (eligible_for_restore_insn): Simplify.
21814 (eligible_for_return_delay): Return false if the instruction cannot be
21815 put in the delay slot of a branch and simplify.
21816 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21817 put in the delay slot of a branch.
21818 * config/sparc/sparc.md (fix_ut699): New attribute.
21819 (tls_call_delay): Delete.
21820 (in_call_delay): Reimplement.
21821 (eligible_for_sibcall_delay): Rename into...
21822 (in_sibcall_delay): ...this.
21823 (eligible_for_return_delay): Rename into...
21824 (in_return_delay): ...this.
21825 (in_branch_delay): Reimplement.
21826 (in_uncond_branch_delay): Delete.
21827 (in_annul_branch_delay): Delete.
21828
21829 2014-03-14 Richard Henderson <rth@redhat.com>
21830
21831 PR target/60525
21832 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21833 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21834 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21835 (floathi splitters): Remove.
21836 (float<SWI48x>xf2): New pattern.
21837 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21838 code that tried to handle DImode for 32-bit, but which was excluded
21839 by the pattern's condition. Drop allocation of stack temporary.
21840 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21841 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21842 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21843 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21844 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21845 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21846 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21847 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21848 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21849 (*float<SWI48x><X87MODEF>2_i387): Remove.
21850 (all float _with_temp splitters): Remove.
21851 (*float<SWI48x><MODEF>2_i387): New pattern.
21852 (*float<SWI48><MODEF>2_sse): New pattern.
21853 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21854 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21855
21856 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21857 Marek Polacek <polacek@redhat.com>
21858
21859 PR middle-end/60484
21860 * common.opt (dump_base_name_prefixed): New Variable.
21861 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21862 if x_dump_base_name_prefixed is already set, set it at the end.
21863
21864 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21865
21866 PR rtl-optimization/60508
21867 * lra-constraints.c (get_reload_reg): Add new parameter
21868 in_subreg_p.
21869 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21870 Pass the new parameter values.
21871
21872 2014-03-14 Richard Biener <rguenther@suse.de>
21873
21874 * common.opt: Revert unintented changes from r205065.
21875 * opts.c: Likewise.
21876
21877 2014-03-14 Richard Biener <rguenther@suse.de>
21878
21879 PR middle-end/60518
21880 * cfghooks.c (split_block): Properly adjust all loops the
21881 block was a latch of.
21882
21883 2014-03-14 Martin Jambor <mjambor@suse.cz>
21884
21885 PR lto/60461
21886 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21887 and simplify it.
21888
21889 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21890
21891 PR target/59396
21892 * config/avr/avr.c (avr_set_current_function): Pass function name
21893 through default_strip_name_encoding before sanity checking instead
21894 of skipping the first char of the assembler name.
21895
21896 2014-03-13 Richard Henderson <rth@redhat.com>
21897
21898 PR debug/60438
21899 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21900 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21901 * config/i386/i386-protos.h: Likewise.
21902 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21903 in the expander instead of a splitter.
21904 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21905 any possibility of requiring a memory.
21906 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21907 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21908 (fp branch splitters): Update for ix86_split_fp_branch.
21909 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21910 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21911 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21912 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21913 (*fop_<MODEF>_3_i387): Likewise.
21914 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21915 (splitters for the fop_* register patterns): Remove.
21916 (fscalexf4_i387): Rename from *fscalexf4_i387.
21917 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21918
21919 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21920
21921 PR tree-optimization/59779
21922 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21923 type for bitsize and maxsize instead of HOST_WIDE_INT.
21924
21925 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21926
21927 PR rtl-optimization/57320
21928 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21929 the CFG after thread_prologue_and_epilogue_insns.
21930
21931 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21932
21933 PR rtl-optimization/57189
21934 * lra-constraints.c (process_alt_operands): Disfavor spilling
21935 vector pseudos.
21936
21937 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21938
21939 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21940
21941 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21942
21943 PR tree-optimization/59025
21944 PR middle-end/60418
21945 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21946 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21947
21948 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21949
21950 PR target/60486
21951 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21952 calls of avr_out_plus_1.
21953
21954 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21955
21956 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21957 BB's single pred and update the father loop's latch info later.
21958
21959 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21960
21961 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21962 (VEC_M): Likewise.
21963 (VEC_N): Likewise.
21964 (VEC_R): Likewise.
21965 (VEC_base): Likewise.
21966 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21967 registers, we need to swap double words in little endian mode.
21968
21969 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21970 to be a container mode for 128-bit integer operations added in ISA
21971 2.07. Unlike TImode and PTImode, the preferred register set is
21972 the Altivec/VMX registers for the 128-bit operations.
21973
21974 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21975 declarations.
21976 (rs6000_split_128bit_ok_p): Likewise.
21977
21978 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21979 macros for creating ISA 2.07 normal and overloaded builtin
21980 functions with 3 arguments.
21981 (BU_P8V_OVERLOAD_3): Likewise.
21982 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21983 for use as overloaded functions.
21984 (VPERM_1TI_UNS): Likewise.
21985 (VSEL_1TI): Likewise.
21986 (VSEL_1TI_UNS): Likewise.
21987 (ST_INTERNAL_1ti): Likewise.
21988 (LD_INTERNAL_1ti): Likewise.
21989 (XXSEL_1TI): Likewise.
21990 (XXSEL_1TI_UNS): Likewise.
21991 (VPERM_1TI): Likewise.
21992 (VPERM_1TI_UNS): Likewise.
21993 (XXPERMDI_1TI): Likewise.
21994 (SET_1TI): Likewise.
21995 (LXVD2X_V1TI): Likewise.
21996 (STXVD2X_V1TI): Likewise.
21997 (VEC_INIT_V1TI): Likewise.
21998 (VEC_SET_V1TI): Likewise.
21999 (VEC_EXT_V1TI): Likewise.
22000 (EQV_V1TI): Likewise.
22001 (NAND_V1TI): Likewise.
22002 (ORC_V1TI): Likewise.
22003 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22004 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22005 overloaded builtin.
22006 (VADDUQM): Likewise.
22007 (VSUBCUQ): Likewise.
22008 (VADDEUQM): Likewise.
22009 (VADDECUQ): Likewise.
22010 (VSUBEUQM): Likewise.
22011 (VSUBECUQ): Likewise.
22012
22013 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22014 __int128_t and __uint128_t types.
22015 (__uint128_type): Likewise.
22016 (altivec_categorize_keyword): Add support for vector __int128_t,
22017 vector __uint128_t, vector __int128, and vector unsigned __int128
22018 as a container type for TImode operations that need to be done in
22019 VSX/Altivec registers.
22020 (rs6000_macro_to_expand): Likewise.
22021 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22022 to support 128-bit integer instructions vaddcuq, vadduqm,
22023 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22024 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22025
22026 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22027 for V1TImode, and set up preferences to use VSX/Altivec registers.
22028 Setup VSX reload handlers.
22029 (rs6000_debug_reg_global): Likewise.
22030 (rs6000_init_hard_regno_mode_ok): Likewise.
22031 (rs6000_preferred_simd_mode): Likewise.
22032 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22033 (easy_altivec_constant): Likewise.
22034 (output_vec_const_move): Likewise.
22035 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22036 simple move.
22037 (rs6000_expand_vector_extract): Likewise.
22038 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22039 addressing.
22040 (rs6000_const_vec): Add support for V1TImode.
22041 (rs6000_emit_le_vsx_load): Swap double words when loading or
22042 storing TImode/V1TImode.
22043 (rs6000_emit_le_vsx_store): Likewise.
22044 (rs6000_emit_le_vsx_move): Likewise.
22045 (rs6000_emit_move): Add support for V1TImode.
22046 (altivec_expand_ld_builtin): Likewise.
22047 (altivec_expand_st_builtin): Likewise.
22048 (altivec_expand_vec_init_builtin): Likewise.
22049 (altivec_expand_builtin): Likewise.
22050 (rs6000_init_builtins): Add support for V1TImode type. Add
22051 support for ISA 2.07 128-bit integer builtins. Define type names
22052 for the VSX/Altivec vector types.
22053 (altivec_init_builtins): Add support for overloaded vector
22054 functions with V1TImode type.
22055 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22056 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22057 external function.
22058 (rs6000_split_128bit_ok_p): Likewise.
22059 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22060 __int128_t and vector __uint128_t.
22061
22062 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22063 and mode attributes.
22064 (VSX_M): Likewise.
22065 (VSX_M2): Likewise.
22066 (VSm): Likewise.
22067 (VSs): Likewise.
22068 (VSr): Likewise.
22069 (VSv): Likewise.
22070 (VS_scalar): Likewise.
22071 (VS_double): Likewise.
22072 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22073
22074 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22075 we support the ISA 2.07 128-bit integer arithmetic instructions.
22076 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22077 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22078 and TImode types for use with the builtin functions.
22079 (V1TI_type_node): Likewise.
22080 (unsigned_V1TI_type_node): Likewise.
22081 (intTI_type_internal_node): Likewise.
22082 (uintTI_type_internal_node): Likewise.
22083
22084 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22085 128-bit builtin functions.
22086 (UNSPEC_VADDEUQM): Likewise.
22087 (UNSPEC_VADDECUQ): Likewise.
22088 (UNSPEC_VSUBCUQ): Likewise.
22089 (UNSPEC_VSUBEUQM): Likewise.
22090 (UNSPEC_VSUBECUQ): Likewise.
22091 (VM): Add V1TImode to vector mode iterators.
22092 (VM2): Likewise.
22093 (VI_unit): Likewise.
22094 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22095 (altivec_vaddcuq): Likewise.
22096 (altivec_vsubuqm): Likewise.
22097 (altivec_vsubcuq): Likewise.
22098 (altivec_vaddeuqm): Likewise.
22099 (altivec_vaddecuq): Likewise.
22100 (altivec_vsubeuqm): Likewise.
22101 (altivec_vsubecuq): Likewise.
22102
22103 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22104 mode iterators.
22105 (BOOL_128): Likewise.
22106 (BOOL_REGS_OUTPUT): Likewise.
22107 (BOOL_REGS_OP1): Likewise.
22108 (BOOL_REGS_OP2): Likewise.
22109 (BOOL_REGS_UNARY): Likewise.
22110 (BOOL_REGS_AND_CR0): Likewise.
22111
22112 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22113 128-bit integer builtin support.
22114 (vec_vadduqm): Likewise.
22115 (vec_vaddecuq): Likewise.
22116 (vec_vaddeuqm): Likewise.
22117 (vec_vsubecuq): Likewise.
22118 (vec_vsubeuqm): Likewise.
22119 (vec_vsubcuq): Likewise.
22120 (vec_vsubuqm): Likewise.
22121
22122 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22123 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22124 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22125 128-bit integer add/subtract to ISA 2.07.
22126
22127 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22128
22129 * config/arc/arc.c (arc_predicate_delay_insns):
22130 Fix third argument passed to conditionalize_nonjump.
22131
22132 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22133
22134 * config/aarch64/aarch64-builtins.c
22135 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22136 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22137 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22138 instead of __builtin_lfloor.
22139 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22140
22141 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22142
22143 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22144 (tree_ssa_ifcombine_bb_1): New function.
22145 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22146 is an empty forwarder block to then_bb or vice versa and then_bb
22147 and else_bb are effectively swapped.
22148
22149 2014-03-12 Christian Bruel <christian.bruel@st.com>
22150
22151 PR target/60264
22152 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22153 REG_CFA_DEF_CFA note.
22154 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22155 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22156
22157 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22158
22159 PR tree-optimization/60454
22160 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22161
22162 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22163
22164 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22165 Do not define target_cpu_default2 to generic.
22166 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22167 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22168 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22169
22170 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22171 Marc Glisse <marc.glisse@inria.fr>
22172
22173 PR tree-optimization/60502
22174 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22175 instead of build_low_bits_mask.
22176
22177 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22178
22179 PR middle-end/60482
22180 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22181 if there are multiple uses, but op doesn't live on E edge.
22182 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22183 clobber stmts before __builtin_unreachable.
22184
22185 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22186
22187 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22188 hard_frame_pointer_rtx.
22189 * cse.c (cse_insn): Remove volatile check.
22190 * cselib.c (cselib_process_insn): Likewise.
22191 * dse.c (scan_insn): Likewise.
22192
22193 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22194
22195 * config/arc/arc.c (conditionalize_nonjump): New function,
22196 broken out of ...
22197 (arc_ifcvt): ... this.
22198 (arc_predicate_delay_insns): Use it.
22199
22200 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22201
22202 * config/arc/predicates.md (extend_operand): During/after reload,
22203 allow const_int_operand.
22204 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22205 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22206 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22207 to "i".
22208 (umulsi3_highpart_i): Likewise.
22209
22210 2014-03-11 Richard Biener <rguenther@suse.de>
22211
22212 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22213 Add asserts to guard possible wrong-code bugs.
22214
22215 2014-03-11 Richard Biener <rguenther@suse.de>
22216
22217 PR tree-optimization/60429
22218 PR tree-optimization/60485
22219 * tree-ssa-structalias.c (set_union_with_increment): Properly
22220 take into account all fields that overlap the shifted vars.
22221 (do_sd_constraint): Likewise.
22222 (do_ds_constraint): Likewise.
22223 (get_constraint_for_ptr_offset): Likewise.
22224
22225 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22226
22227 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22228 (nios2_compute_frame_layout):
22229 Add calculation of cfun->machine->fp_save_offset.
22230 (nios2_expand_prologue): Correct setting of frame pointer register
22231 in prologue.
22232 (nios2_expand_epilogue): Update recovery of stack pointer from
22233 frame pointer accordingly.
22234 (nios2_initial_elimination_offset): Update calculation of offset
22235 for eliminating to HARD_FRAME_POINTER_REGNUM.
22236
22237 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22238
22239 PR ipa/60457
22240 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22241 cgraph_get_create_node on VAR_DECLs.
22242
22243 2014-03-10 Richard Biener <rguenther@suse.de>
22244
22245 PR middle-end/60474
22246 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22247
22248 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22249
22250 * config/vms/vms.opt (vms_float_format): New variable.
22251
22252 2014-03-08 Tobias Burnus <burnus@net-b.de>
22253
22254 * doc/invoke.texi (-fcilkplus): Update implementation status.
22255
22256 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22257 Richard Biener <rguenther@suse.de>
22258
22259 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22260 consistently accross all TUs.
22261 (run_gcc): Enable -fshort-double automatically at link at link-time
22262 and disallow override.
22263
22264 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22265
22266 PR target/58271
22267 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22268 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22269 if they can't be used.
22270
22271 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22272
22273 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22274 for Solaris 11/x86 ld.
22275 * configure: Regenerate.
22276
22277 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22278
22279 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22280 (LIB_TLS_SPEC): Save as ld_tls_libs.
22281 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22282 (HAVE_AS_IX86_TLSLDM): New test.
22283 * configure, config.in: Regenerate.
22284 * config/i386/i386.c (legitimize_tls_address): Fall back to
22285 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22286 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22287 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22288 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22289
22290 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22291
22292 * common.opt (fira-loop-pressure): Mark as optimization.
22293
22294 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22295
22296 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22297 an OpenMP mappable type.
22298
22299 2014-03-06 Matthias Klose <doko@ubuntu.com>
22300
22301 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22302 MULTILIB_OSDIRNAMES is not defined.
22303
22304 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22305 Meador Inge <meadori@codesourcery.com>
22306
22307 PR target/58595
22308 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22309 (arm_legitimize_address): Call legitimize_tls_address for any
22310 arm_tls_referenced_p expression, handle constant addend. Call it
22311 before testing for !TARGET_ARM.
22312 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22313
22314 2014-03-06 Richard Biener <rguenther@suse.de>
22315
22316 PR middle-end/60445
22317 PR lto/60424
22318 PR lto/60427
22319 Revert
22320 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22321
22322 * tree-streamer.c (record_common_node): Assert we don't record
22323 nodes with type double.
22324 (preload_common_node): Skip type double, complex double and double
22325 pointer since it is now frontend dependent due to fshort-double option.
22326
22327 2014-03-06 Richard Biener <rguenther@suse.de>
22328
22329 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22330 or -fno-lto is specified and the linker has full plugin support.
22331 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22332 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22333 * lto-wrapper.c (merge_and_complain): Merge compile-time
22334 optimization levels.
22335 (run_gcc): And pass it through to the link options.
22336
22337 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22338
22339 PR debug/60381
22340 Revert:
22341 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22342 PR debug/59992
22343 * cselib.c (remove_useless_values): Skip to avoid quadratic
22344 behavior if the condition moved from...
22345 (cselib_process_insn): ... here holds.
22346
22347 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22348
22349 PR plugins/59335
22350 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22351 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22352
22353 PR plugins/59335
22354 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22355 (TM_H): Add x86-tune.def.
22356
22357 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22358
22359 * config/aarch64/aarch64.c (generic_tunings):
22360 Use cortexa57_extra_costs.
22361
22362 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22363
22364 PR lto/60404
22365 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22366 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22367 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22368 cost for in_lto_p.
22369
22370 2014-03-04 Heiher <r@hev.cc>
22371
22372 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22373 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22374
22375 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22376
22377 * config/i386/predicates.md (const2356_operand): Change to ...
22378 (const2367_operand): ... this.
22379 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22380 const2367_operand.
22381 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22382 (*avx512pf_scatterpf<mode>sf): Ditto.
22383 (avx512pf_scatterpf<mode>df): Ditto.
22384 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22385 (*avx512pf_scatterpf<mode>df): Ditto.
22386 * config/i386/i386.c (ix86_expand_builtin): Update
22387 incorrect hint operand error message.
22388
22389 2014-03-04 Richard Biener <rguenther@suse.de>
22390
22391 * lto-section-in.c (lto_get_section_data): Fix const cast.
22392
22393 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22394
22395 * tree-streamer.c (record_common_node): Assert we don't record
22396 nodes with type double.
22397 (preload_common_node): Skip type double, complex double and double
22398 pointer since it is now frontend dependent due to fshort-double option.
22399
22400 2014-03-04 Richard Biener <rguenther@suse.de>
22401
22402 PR lto/60405
22403 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22404 (lto_input_toplevel_asms): Likewise.
22405 * lto-section-in.c (lto_get_section_data): Instead do it here
22406 for every section.
22407
22408 2014-03-04 Richard Biener <rguenther@suse.de>
22409
22410 PR tree-optimization/60382
22411 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22412 dead PHIs a reduction.
22413
22414 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22415
22416 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22417 hint value.
22418 (_mm_prefetch): Move out of GCC target("sse") pragma.
22419 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22420 GCC target("prfchw") pragma.
22421 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22422 for locality <= 2.
22423 * config/i386/i386.c (ix86_option_override_internal): Enable
22424 -mprfchw with -mprefetchwt1.
22425
22426 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22427
22428 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22429 Mark as varying.
22430
22431 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22432
22433 * opts.h (CL_PCH_IGNORE): Define.
22434 * targhooks.c (option_affects_pch_p):
22435 Return false for options that have CL_PCH_IGNORE set.
22436 * opt-functions.awk: Process PchIgnore.
22437 * doc/options.texi: Document PchIgnore.
22438
22439 * config/arc/arc.opt (misize): Add PchIgnore property.
22440
22441 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22442
22443 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22444 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22445 constraint on constants to permit them being loaded into
22446 GENERAL_REGS or BASE_REGS.
22447
22448 2014-03-03 Nick Clifton <nickc@redhat.com>
22449
22450 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22451 anti-cacnonical alternatives.
22452 (negandhi3_real): New pattern.
22453 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22454
22455 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22456
22457 * config/avr/avr-mcus.def: Remove atxmega16x1.
22458 * config/avr/avr-tables.opt: Regenerate.
22459 * config/avr/t-multilib: Regenerate.
22460 * doc/avr-mmcu.texi: Regenerate.
22461
22462 2014-03-03 Tobias Grosser <tobias@grosser.es>
22463 Mircea Namolaru <mircea.namolaru@inria.fr>
22464
22465 PR tree-optimization/58028
22466 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22467 scalar dimensions.
22468
22469 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22470
22471 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22472 not handled by recognizers.
22473
22474 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22475
22476 PR middle-end/60175
22477 * function.c (expand_function_end): Don't emit
22478 clobber_return_register sequence if clobber_after is a BARRIER.
22479 * cfgexpand.c (construct_exit_block): Append instructions before
22480 return_label to prev_bb.
22481
22482 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22483
22484 * config/rs6000/constraints.md: Document reserved use of "wc".
22485
22486 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22487
22488 PR ipa/60150
22489 * ipa.c (function_and_variable_visibility): When dissolving comdat
22490 group, also set all symbols to local.
22491
22492 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22493
22494 PR ipa/60306
22495
22496 Revert:
22497 2013-12-14 Jan Hubicka <jh@suse.cz>
22498 PR middle-end/58477
22499 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22500
22501 2014-03-02 Jon Beniston <jon@beniston.com>
22502
22503 PR bootstrap/48230
22504 PR bootstrap/50927
22505 PR bootstrap/52466
22506 PR target/46898
22507 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22508 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22509 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22510 (simple_return, *simple_return): New patterns
22511 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22512 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22513
22514 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22515
22516 * dwarf2out.c (gen_subprogram_die): Tidy.
22517
22518 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22519
22520 PR target/60071
22521 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22522 (*mov_t_msb_neg_negc): ... this new insn.
22523
22524 2014-02-28 Jason Merrill <jason@redhat.com>
22525
22526 PR c++/58678
22527 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22528 function.
22529
22530 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22531
22532 PR c++/60314
22533 * dwarf2out.c (decltype_auto_die): New static.
22534 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22535 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22536 (is_cxx_auto): Likewise.
22537
22538 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22539
22540 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22541 we are not using general regs only.
22542
22543 2014-02-28 Richard Biener <rguenther@suse.de>
22544
22545 PR target/60280
22546 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22547 previous fix and only allow to remove trivial pre-headers
22548 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22549 (remove_forwarder_block): Properly update the latch of a loop.
22550
22551 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22552
22553 PR debug/59992
22554 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22555 (cselib_preserved_hash_table): New.
22556 (preserve_constants_and_equivs): Move preserved vals to it.
22557 (cselib_find_slot): Look it up first.
22558 (cselib_init): Initialize it.
22559 (cselib_finish): Release it.
22560 (dump_cselib_table): Dump it.
22561
22562 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22563
22564 PR debug/59992
22565 * cselib.c (remove_useless_values): Skip to avoid quadratic
22566 behavior if the condition moved from...
22567 (cselib_process_insn): ... here holds.
22568
22569 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22570
22571 PR debug/57232
22572 * var-tracking.c (vt_initialize): Apply the same condition to
22573 preserve the CFA base value.
22574
22575 2014-02-28 Joey Ye <joey.ye@arm.com>
22576
22577 PR target/PR60169
22578 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22579 if reload in progress or completed.
22580
22581 2014-02-28 Tobias Burnus <burnus@net-b.de>
22582
22583 PR middle-end/60147
22584 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22585 NAMELIST_DECL.
22586
22587 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22588
22589 * doc/tm.texi.in (Condition Code Status): Update documention for
22590 relative locations of cc0-setter and cc0-user.
22591
22592 2014-02-27 Jeff Law <law@redhat.com>
22593
22594 PR rtl-optimization/52714
22595 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22596 into two independent simple sets, if I3 is a jump, ensure the
22597 pattern we place into I3 is a (set (pc) ...).
22598
22599 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22600 Jeff Law <law@redhat.com>
22601
22602 PR rtl-optimization/49847
22603 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22604 are in different blocks.
22605 * doc/tm.texi (Condition Code Status): Update documention for
22606 relative locations of cc0-setter and cc0-user.
22607
22608 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22609
22610 PR target/59222
22611 * lra.c (lra_emit_add): Check SUBREG too.
22612
22613 2014-02-27 Andreas Schwab <schwab@suse.de>
22614
22615 * config/m68k/m68k.c (m68k_option_override): Disable
22616 -flive-range-shrinkage for classic m68k.
22617 (m68k_override_options_after_change): Likewise.
22618
22619 2014-02-27 Marek Polacek <polacek@redhat.com>
22620
22621 PR middle-end/59223
22622 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22623 -Wmaybe-uninitialized.
22624
22625 2014-02-27 Alan Modra <amodra@gmail.com>
22626
22627 PR target/57936
22628 * reload1.c (emit_input_reload_insns): When reload_override_in,
22629 set old to rl->in_reg when rl->in_reg is a subreg.
22630
22631 2014-02-26 Richard Biener <rguenther@suse.de>
22632
22633 PR bootstrap/60343
22634 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22635
22636 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22637
22638 * common/config/i386/predicates.md (const1256_operand): Remove.
22639 (const2356_operand): New.
22640 (const_1_to_2_operand): Remove.
22641 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22642 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22643 (*avx512pf_gatherpf<mode>sf): Ditto.
22644 (avx512pf_gatherpf<mode>df): Ditto.
22645 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22646 (*avx512pf_gatherpf<mode>df): Ditto.
22647 (avx512pf_scatterpf<mode>sf): Ditto.
22648 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22649 (*avx512pf_scatterpf<mode>sf): Ditto.
22650 (avx512pf_scatterpf<mode>df): Ditto.
22651 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22652 (*avx512pf_scatterpf<mode>df): Ditto.
22653 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22654
22655 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22656
22657 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22658 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22659 (_mm512_mask_testn_epi64_mask): Move to ...
22660 * config/i386/avx512cdintrin.h: Here.
22661 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22662 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22663 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22664 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22665 TARGET_AVX512F from TARGET_AVX512CD.
22666
22667 2014-02-26 Richard Biener <rguenther@suse.de>
22668
22669 PR ipa/60327
22670 * ipa.c (walk_polymorphic_call_targets): Properly guard
22671 call to inline_update_overall_summary.
22672
22673 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22674
22675 PR target/60280
22676 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22677 and latches only if requested. Fix latch if it is removed.
22678 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22679 LOOPS_HAVE_PREHEADERS.
22680
22681 2014-02-25 Andrew Pinski <apinski@cavium.com>
22682
22683 * builtins.c (expand_builtin_thread_pointer): Create a new target
22684 when the target is NULL.
22685
22686 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22687
22688 PR rtl-optimization/60317
22689 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22690 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22691 * lra-assigns.c: Include params.h.
22692 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22693 other reload pseudos considerations.
22694
22695 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22696
22697 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22698 to use canonical form for nor<mode>3.
22699
22700 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22701
22702 PR target/55426
22703 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22704 conversions.
22705
22706 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22707
22708 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22709 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22710 (ix86_handle_option): Handle OPT_mprefetchwt1.
22711 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22712 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22713 PREFETCHWT1 CPUID.
22714 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22715 OPTION_MASK_ISA_PREFETCHWT1.
22716 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22717 (PTA_PREFETCHWT1): New.
22718 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22719 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22720 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22721 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22722 (*prefetch_avx512pf_<mode>_: Change into ...
22723 (*prefetch_prefetchwt1_<mode>: This.
22724 * config/i386/i386.opt (mprefetchwt1): New.
22725 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22726 (_mm_prefetch): Handle intent to write.
22727 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22728
22729 2014-02-25 Richard Biener <rguenther@suse.de>
22730
22731 PR middle-end/60291
22732 * emit-rtl.c (mem_attrs_htab): Remove.
22733 (mem_attrs_htab_hash): Likewise.
22734 (mem_attrs_htab_eq): Likewise.
22735 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22736 (init_emit_once): Do not allocate mem_attrs_htab.
22737
22738 2014-02-25 Richard Biener <rguenther@suse.de>
22739
22740 PR lto/60319
22741 * lto-opts.c (lto_write_options): Output non-explicit conservative
22742 -fwrapv, -fno-trapv and -fno-strict-overflow.
22743 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22744 (run_gcc): And pass them through.
22745
22746 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22747
22748 * sel-sched.c (calculate_new_fences): New parameter ptime.
22749 Calculate it as a maximum over all fence cycles.
22750 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22751 Print the final schedule timing when sched_verbose.
22752
22753 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22754
22755 PR rtl-optimization/60292
22756 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22757 bit fot the fence instruction.
22758
22759 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22760
22761 * calls.h: Fix typo in comment.
22762
22763 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22764
22765 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22766 adjusting offsetable addresses.
22767
22768 2014-02-24 Guozhi Wei <carrot@google.com>
22769
22770 * sparseset.h (sparseset_pop): Fix the wrong index.
22771
22772 2014-02-24 Walter Lee <walt@tilera.com>
22773
22774 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22775 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22776 triplet.
22777 * common/config/tilegx/tilegx-common.c
22778 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22779 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22780 (LINK_SPEC): Ditto.
22781 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22782 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22783 (tilegx_gimplify_va_arg_expr): Handle big endian.
22784 (tilegx_expand_unaligned_load): Ditto.
22785 (tilegx_expand_unaligned_store): Ditto.
22786 (TARGET_RETURN_IN_MSB): New.
22787 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22788 (TARGET_ENDIAN_DEFAULT): New.
22789 (TARGET_BIG_ENDIAN): Handle big endian.
22790 (BYTES_BIG_ENDIAN): Ditto.
22791 (WORDS_BIG_ENDIAN): Ditto.
22792 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22793 (ENDIAN_SPEC): New.
22794 (EXTRA_SPECS): New.
22795 * config/tilegx/tilegx.md (extv): Handle big endian.
22796 (extzv): Ditto.
22797 (insn_st<n>): Ditto.
22798 (insn_st<n>_add<bitsuffix>): Ditto.
22799 (insn_stnt<n>): Ditto.
22800 (insn_stnt<n>_add<bitsuffix>):Ditto.
22801 (vec_interleave_highv8qi): Handle big endian.
22802 (vec_interleave_highv8qi_be): New.
22803 (vec_interleave_highv8qi_le): New.
22804 (insn_v1int_h): Handle big endian.
22805 (vec_interleave_lowv8qi): Handle big endian.
22806 (vec_interleave_lowv8qi_be): New.
22807 (vec_interleave_lowv8qi_le): New.
22808 (insn_v1int_l): Handle big endian.
22809 (vec_interleave_highv4hi): Handle big endian.
22810 (vec_interleave_highv4hi_be): New.
22811 (vec_interleave_highv4hi_le): New.
22812 (insn_v2int_h): Handle big endian.
22813 (vec_interleave_lowv4hi): Handle big endian.
22814 (vec_interleave_lowv4hi_be): New.
22815 (vec_interleave_lowv4hi_le): New.
22816 (insn_v2int_l): Handle big endian.
22817 (vec_interleave_highv2si): Handle big endian.
22818 (vec_interleave_highv2si_be): New.
22819 (vec_interleave_highv2si_le): New.
22820 (insn_v4int_h): Handle big endian.
22821 (vec_interleave_lowv2si): Handle big endian.
22822 (vec_interleave_lowv2si_be): New.
22823 (vec_interleave_lowv2si_le): New.
22824 (insn_v4int_l): Handle big endian.
22825 * config/tilegx/tilegx.opt (mbig-endian): New option.
22826 (mlittle-endian): New option.
22827 * doc/install.texi: Document tilegxbe-linux.
22828 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22829
22830 2014-02-24 Martin Jambor <mjambor@suse.cz>
22831
22832 PR ipa/60266
22833 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22834 there are no parameter descriptors.
22835
22836 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22837
22838 PR rtl-optimization/60268
22839 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22840 initialization to ...
22841 (sched_rgn_init): ... here.
22842 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22843
22844 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22845
22846 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22847 names.
22848
22849 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22850
22851 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22852 definition.
22853
22854 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22855
22856 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22857 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22858
22859 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22860
22861 * config/microblaze/predicates.md: Add cmp_op predicate.
22862 * config/microblaze/microblaze.md: Add branch_compare instruction
22863 which uses cmp_op predicate and emits cmp insn before branch.
22864 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22865 to microblaze_expand_conditional_branch and consolidate logic.
22866 (microblaze_expand_conditional_branch): emit branch_compare
22867 insn instead of handling cmp op separate from branch insn.
22868
22869 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22870
22871 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22872 to permit subregs.
22873
22874 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22875
22876 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22877 define_insn with define_expand and new define_insn
22878 *altivec_lve<VI_char>x_internal.
22879 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22880 and new define_insn *altivec_stve<VI_char>x_internal.
22881 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22882 prototype.
22883 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22884 lve*x built-ins.
22885 (altivec_expand_stvex_be): New function.
22886
22887 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22888
22889 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22890 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22891 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22892 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22893
22894 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22895
22896 PR target/60298
22897 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22898 instead of emit_move_insn.
22899
22900 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22901
22902 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22903 vspltw with vsldoi.
22904 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22905 gen_altivec_vsumsws.
22906
22907 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22908
22909 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22910 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22911 (altivec_lvxl_<mode>): New define_expand incorporating
22912 -maltivec=be semantics where needed.
22913 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22914 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22915 semantics where needed.
22916 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22917 (altivec_stvx_<mode>): New define_expand incorporating
22918 -maltivec=be semantics where needed.
22919 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22920 VM2 iterator instead of V4SI.
22921 (altivec_stvxl_<mode>): New define_expand incorporating
22922 -maltivec=be semantics where needed.
22923 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22924 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22925 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22926 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22927 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22928 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22929 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22930 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22931 ALTIVEC_BUILTIN_STVXL.
22932 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22933 (altivec_expand_stvx_be): Likewise.
22934 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22935 (altivec_expand_lvx_be): Likewise.
22936 (altivec_expand_stvx_be): Likewise.
22937 (altivec_expand_builtin): Add cases for
22938 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22939 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22940 (altivec_init_builtins): Add definitions for
22941 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22942 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22943
22944 2014-02-21 Catherine Moore <clm@codesourcery.com>
22945
22946 * doc/invoke.texi (mvirt, mno-virt): Document.
22947 * config/mips/mips.opt (mvirt): New option.
22948 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22949
22950 2014-02-21 Richard Biener <rguenther@suse.de>
22951
22952 PR tree-optimization/60276
22953 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22954 (STMT_VINFO_MIN_NEG_DIST): New macro.
22955 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22956 STMT_VINFO_MIN_NEG_DIST.
22957 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22958 made for negative dependence distances still hold.
22959
22960 2014-02-21 Richard Biener <rguenther@suse.de>
22961
22962 PR middle-end/60291
22963 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22964 DECL_INITIAL for globals not in the current function context.
22965
22966 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22967
22968 PR tree-optimization/56490
22969 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22970 * tree-ssa-uninit.c: Include params.h.
22971 (compute_control_dep_chain): Add num_calls argument, return false
22972 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22973 num_calls to recursive call.
22974 (find_predicates): Change dep_chain into normal array,
22975 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22976 variable and adjust compute_control_dep_chain caller.
22977 (find_def_preds): Likewise.
22978
22979 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22980
22981 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22982 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22983
22984 2014-02-21 Nick Clifton <nickc@redhat.com>
22985
22986 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22987 (pushhi1): Likewise.
22988 (popqi1): Add mode to pre_dec.
22989 (pophi1): Likewise.
22990
22991 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22992
22993 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22994 mode for mask of V8SFmode permutation.
22995
22996 2014-02-20 Richard Henderson <rth@redhat.com>
22997
22998 PR c++/60272
22999 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23000 a new pseudo for OLDVAL.
23001
23002 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23003
23004 PR target/57896
23005 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23006 gen_reg_rtx if d->testing_p.
23007 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23008 if d->testing_p and we will certainly return true.
23009 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23010 if d->testing_p.
23011
23012 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23013
23014 * emit-rtl.c (gen_reg_rtx): Assert that
23015 crtl->emit.regno_pointer_align_length is non-zero.
23016
23017 2014-02-20 Richard Henderson <rth@redhat.com>
23018
23019 PR c++/60272
23020 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23021 on failure the store back into EXPECT.
23022
23023 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23024 Sandra Loosemore <sandra@codesourcery.com>
23025
23026 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23027 * config/nios2/nios2.c (nios2_function_profiler): Add
23028 -fPIC (flag_pic == 2) support.
23029 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23030 (nios2_large_offset_p): New function.
23031 (nios2_unspec_reloc_p): Move up position, update to use
23032 nios2_large_offset_p.
23033 (nios2_unspec_address): Remove function.
23034 (nios2_unspec_offset): New function.
23035 (nios2_large_got_address): New function.
23036 (nios2_got_address): Add large offset support.
23037 (nios2_legitimize_tls_address): Update usage of removed and new
23038 functions.
23039 (nios2_symbol_binds_local_p): New function.
23040 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23041 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23042 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23043 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23044 processing for (const (unspec ...)).
23045 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23046
23047 2014-02-20 Richard Biener <rguenther@suse.de>
23048
23049 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23050 doing the substitution.
23051 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23052
23053 2014-02-20 Martin Jambor <mjambor@suse.cz>
23054
23055 PR ipa/55260
23056 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23057 info when checking whether lattices are bottom.
23058
23059 2014-02-20 Richard Biener <rguenther@suse.de>
23060
23061 PR middle-end/60221
23062 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23063 regions at -O0.
23064
23065 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23066
23067 PR ipa/58555
23068 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23069 parameter specifying the scaling.
23070 (inline_call): Update.
23071 (want_inline_recursively): Guard division by zero.
23072 (recursive_inlining): Update.
23073 * ipa-inline.h (clone_inlined_nodes): Update.
23074
23075 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23076
23077 PR target/60204
23078 * config/i386/i386.c (classify_argument): Pass structures of size
23079 64 bytes or less in register.
23080
23081 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23082 Kirill Yukhin <kirill.yukhin@intel.com>
23083
23084 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23085 (_mm_rcp28_round_ss): Ditto.
23086 (_mm_rsqrt28_round_sd): Ditto.
23087 (_mm_rsqrt28_round_ss): Ditto.
23088 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23089 (_mm_rcp14_round_ss): Ditto.
23090 (_mm_rsqrt14_round_sd): Ditto.
23091 (_mm_rsqrt14_round_ss): Ditto.
23092 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23093 the first input operand, get rid of match_dup.
23094 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23095 attribute to sse.
23096 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23097 Ditto.
23098 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23099 operand as the first input operand, set type attribute.
23100 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23101 Set type attribute.
23102 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23103 operand as the first input operand, set type attribute.
23104
23105 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23106
23107 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23108 bit of zero.
23109
23110 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23111
23112 PR target/60207
23113 * config/i386/i386.c (construct_container): Remove TFmode check
23114 for X86_64_INTEGER_CLASS.
23115
23116 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23117
23118 PR target/59794
23119 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23120 only when -Wpsabi is enabled.
23121
23122 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23123
23124 PR target/59799
23125 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23126 passing arrays in registers are the same as for structs, so remove the
23127 special case for them.
23128
23129 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23130
23131 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23132 destination type, extract only the valid bits if the source type is not
23133 integral and has a different mode.
23134
23135 2014-02-19 Richard Biener <rguenther@suse.de>
23136
23137 PR ipa/60243
23138 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23139 for all calls.
23140
23141 2014-02-19 Richard Biener <rguenther@suse.de>
23142
23143 PR ipa/60243
23144 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23145 (ipa_modify_call_arguments): Emit an argument load explicitely and
23146 preserve virtual SSA form there and for the replacement call.
23147 Do not update SSA form nor free dominance info.
23148
23149 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23150
23151 * ipa.c (function_and_variable_visibility): Also clear WEAK
23152 flag when disolving COMDAT_GROUP.
23153
23154 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23155
23156 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23157 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23158 not devirtualizing.
23159 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23160 do more sanity checks.
23161 (detect_type_change): Return true when giving up early.
23162 (compute_complex_assign_jump_func): Fix type parameter of
23163 ipa_set_ancestor_jf.
23164 (compute_complex_ancestor_jump_func): Likewise.
23165 (update_jump_functions_after_inlining): Fix updating of
23166 ancestor function.
23167 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23168
23169 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23170
23171 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23172 inline clones when edge disappears.
23173
23174 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23175
23176 PR target/60203
23177 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23178 Split 64-bit moves into 2 patterns. Do not allow the use of
23179 direct move for TDmode in little endian, since the decimal value
23180 has little endian bytes within a word, but the 64-bit pieces are
23181 ordered in a big endian fashion, and normal subreg's of TDmode are
23182 not allowed.
23183 (mov<mode>_64bit_dm): Likewise.
23184 (movtd_64bit_nodm): Likewise.
23185
23186 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23187
23188 PR tree-optimization/60174
23189 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23190 statement of an SSA_NAME that occurs in an abnormal PHI node.
23191
23192 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23193
23194 PR sanitizer/60142
23195 * final.c (SEEN_BB): Remove.
23196 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23197 (final_scan_insn): Don't force_source_line on second
23198 NOTE_INSN_BASIC_BLOCK.
23199
23200 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23201
23202 PR target/60205
23203 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23204 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23205 (type_natural_mode): Warn ABI change when %zmm register is not
23206 available for AVX512F vector value passing.
23207
23208 2014-02-18 Kai Tietz <ktietz@redhat.com>
23209
23210 PR target/60193
23211 * config/i386/i386.c (ix86_expand_prologue): Use value in
23212 rax register as displacement when restoring %r10 or %rax.
23213 Fix wrong offset when restoring both registers.
23214
23215 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23216
23217 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23218 assertion with conditional return.
23219
23220 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23221 Uros Bizjak <ubizjak@gmail.com>
23222
23223 PR driver/60233
23224 * config/i386/driver-i386.c (host_detect_local_cpu): If
23225 YMM state is not saved by the OS, also clear has_f16c. Move
23226 CPUID 0x80000001 handling before YMM state saving checking.
23227
23228 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23229
23230 PR rtl-optimization/58960
23231 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23232 factored out from ...
23233 (sched_init): ... here.
23234 (free_global_sched_pressure_data): New, factored out from ...
23235 (sched_finish): ... here.
23236 * sched-int.h (free_global_sched_pressure_data): Declare.
23237 * sched-rgn.c (nr_regions_initial): New static global.
23238 (haifa_find_rgns): Initialize it.
23239 (schedule_region): Disable sched-pressure for the newly
23240 generated regions.
23241
23242 2014-02-17 Richard Biener <rguenther@suse.de>
23243
23244 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23245 release SSA defs of pattern stmts.
23246
23247 2014-02-17 Richard Biener <rguenther@suse.de>
23248
23249 * tree-inline.c (expand_call_inline): Release the virtual
23250 operand defined by the call we are about to inline.
23251
23252 2014-02-17 Richard Biener <rguenther@suse.de>
23253
23254 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23255
23256 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23257 Ilya Tocar <ilya.tocar@intel.com>
23258
23259 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23260 arguments order in builtin.
23261 (_mm512_permutexvar_epi64): Ditto.
23262 (_mm512_mask_permutexvar_epi64): Ditto
23263 (_mm512_maskz_permutexvar_epi32): Ditto
23264 (_mm512_permutexvar_epi32): Ditto
23265 (_mm512_mask_permutexvar_epi32): Ditto
23266
23267 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23268
23269 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23270 (p8_vmrgow): Likewise.
23271
23272 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23273
23274 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23275 endian targets.
23276
23277 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23278
23279 PR target/60203
23280 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23281 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23282 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23283 using direct move instructions on ISA 2.07. Also adjust
23284 instruction length for 64-bit.
23285 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23286 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23287
23288 2014-02-15 Alan Modra <amodra@gmail.com>
23289
23290 PR target/58675
23291 PR target/57935
23292 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23293 find_replacement on parts of insn rtl that might be reloaded.
23294
23295 2014-02-15 Richard Biener <rguenther@suse.de>
23296
23297 PR tree-optimization/60183
23298 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23299 (tree_ssa_phiprop): Calculate and free post-dominators.
23300
23301 2014-02-14 Jeff Law <law@redhat.com>
23302
23303 PR rtl-optimization/60131
23304 * ree.c (get_extended_src_reg): New function.
23305 (combine_reaching_defs): Use it rather than assuming location of REG.
23306 (find_and_remove_re): Verify first operand of extension is
23307 a REG before adding the insns to the copy list.
23308
23309 2014-02-14 Roland McGrath <mcgrathr@google.com>
23310
23311 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23312 * configure: Regenerated.
23313 * config.in: Regenerated.
23314 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23315 instead of ASM_SHORT.
23316
23317 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23318 Richard Earnshaw <rearnsha@arm.com>
23319
23320 PR rtl-optimization/59535
23321 * lra-constraints.c (process_alt_operands): Encourage alternative
23322 when unassigned pseudo class is superset of the alternative class.
23323 (inherit_reload_reg): Don't inherit when optimizing for code size.
23324 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23325 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23326 modes not less than 4 for Thumb1.
23327
23328 2014-02-14 Kyle McMartin <kyle@redhat.com>
23329
23330 PR pch/60010
23331 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23332
23333 2014-02-14 Richard Biener <rguenther@suse.de>
23334
23335 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23336 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23337 Do not strip INDIRECT_REFs.
23338
23339 2014-02-14 Richard Biener <rguenther@suse.de>
23340
23341 PR lto/60179
23342 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23343 DECL_FUNCTION_SPECIFIC_TARGET.
23344 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23345 * tree-streamer-out.c (pack_ts_target_option): Remove.
23346 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23347 (write_ts_function_decl_tree_pointers): Do not stream
23348 DECL_FUNCTION_SPECIFIC_TARGET.
23349 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23350 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23351 (lto_input_ts_function_decl_tree_pointers): Do not stream
23352 DECL_FUNCTION_SPECIFIC_TARGET.
23353
23354 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23355
23356 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23357 (get_initial_def_for_induction, vectorizable_induction): Ignore
23358 debug stmts when looking for exit_phi.
23359 (vectorizable_live_operation): Fix up condition.
23360
23361 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23362
23363 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23364 nreverse() because it changes the content of original tree list.
23365
23366 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23367
23368 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23369 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23370
23371 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23372
23373 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23374 GNU coding standards.
23375
23376 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23377
23378 PR debug/60152
23379 * dwarf2out.c (gen_subprogram_die): Don't call
23380 add_calling_convention_attribute if subr_die is old_die.
23381
23382 2014-02-13 Sharad Singhai <singhai@google.com>
23383
23384 * doc/optinfo.texi: Fix order of nodes.
23385
23386 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23387
23388 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23389 operands[2], not operands[3].
23390
23391 2014-02-13 Richard Biener <rguenther@suse.de>
23392
23393 PR bootstrap/59878
23394 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23395 mention the possibility of an in-tree build.
23396 (CLooG): Update recommended version to 0.18.1, mention the
23397 possibility of an in-tree build and clarify that the ISL
23398 bundled with CLooG does not work.
23399
23400 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23401
23402 PR target/43546
23403 * expr.c (compress_float_constant): If x is a hard register,
23404 extend into a pseudo and then move to x.
23405
23406 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23407
23408 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23409 caused by bad second argument to warning_at() with -mhotpatch and
23410 nested functions (e.g. with gfortran).
23411
23412 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23413
23414 * opts.c (option_name): Remove "enabled by default" rider.
23415
23416 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23417
23418 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23419
23420 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23421 Uros Bizjak <ubizjak@gmail.com>
23422
23423 PR target/60151
23424 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23425 * configure: Regenerated.
23426
23427 2014-02-12 Richard Biener <rguenther@suse.de>
23428
23429 * vec.c (vec_prefix::calculate_allocation): Move as
23430 inline variant to vec.h.
23431 (vec_prefix::calculate_allocation_1): New out-of-line version.
23432 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23433 (vec_prefix::m_has_auto_buf): Rename to ...
23434 (vec_prefix::m_using_auto_storage): ... this.
23435 (vec_prefix::calculate_allocation): Inline the easy cases
23436 and dispatch to calculate_allocation_1 which doesn't need the
23437 prefix address.
23438 (va_heap::reserve): Use gcc_checking_assert.
23439 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23440 m_using_auto_storage.
23441 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23442 member and adjust.
23443 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23444 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23445 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23446
23447 2014-02-12 Richard Biener <rguenther@suse.de>
23448
23449 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23450 when we found a dependence.
23451
23452 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23453
23454 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23455 common code...
23456 (maybe_fold_stmt): ... into this new function.
23457 * omp-low.c (lower_omp): Update comment.
23458
23459 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23460 last use.
23461
23462 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23463 dereference.
23464
23465 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23466
23467 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23468 identifiers in comments.
23469 (cortexa53_extra_costs): Likewise.
23470 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23471 (cortexa7_extra_costs): Likewise.
23472 (cortexa12_extra_costs): Likewise.
23473 (cortexa15_extra_costs): Likewise.
23474 (v7m_extra_costs): Likewise.
23475
23476 2014-02-12 Richard Biener <rguenther@suse.de>
23477
23478 PR middle-end/60092
23479 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23480 of posix_memalign being successful.
23481 (lower_stmt): Restrict lowering of posix_memalign to when
23482 -ftree-bit-ccp is enabled.
23483
23484 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23485
23486 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23487 arg_loc.
23488 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23489
23490 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23491
23492 PR rtl-optimization/60116
23493 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23494 other_insn once the combination has been validated.
23495
23496 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23497
23498 PR lto/59468
23499 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23500 and wrapper.
23501 * ipa-devirt.c: Include demangle.h
23502 (odr_violation_reported): New static variable.
23503 (add_type_duplicate): Update odr_violations.
23504 (maybe_record_node): Add completep parameter; update it.
23505 (record_target_from_binfo): Add COMPLETEP parameter;
23506 update it as needed.
23507 (possible_polymorphic_call_targets_1): Likewise.
23508 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23509 rename FINAL to COMPLETE.
23510 (record_targets_from_bases): Sanity check we found the binfo;
23511 fix COMPLETEP updating.
23512 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23513 parameter, fix computing of COMPLETEP.
23514 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23515 at LTO time do demangling.
23516 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23517 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23518 parameter.
23519 (gimple_get_virt_method_for_binfo): Likewise.
23520 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23521 gimple_get_virt_method_for_vtable): Update prototypes.
23522
23523 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23524
23525 PR target/49008
23526 * genautomata.c (add_presence_absence): Fix typo with
23527 {final_}presence_list.
23528
23529 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23530
23531 PR target/60137
23532 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23533 for VSX/Altivec vectors that land in GPR registers.
23534
23535 2014-02-11 Richard Henderson <rth@redhat.com>
23536 Jakub Jelinek <jakub@redhat.com>
23537
23538 PR debug/59776
23539 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23540 around drhs if type conversion to lacc->type is not useless.
23541
23542 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23543
23544 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23545 tuning struct.
23546 (cortex-a57.cortex-a53): Likewise.
23547 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23548
23549 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23550
23551 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23552 arm_restrict_it.
23553
23554 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23555
23556 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23557 add_options_for_arm_vfp3.
23558
23559 2014-02-11 Jeff Law <law@redhat.com>
23560
23561 PR middle-end/54041
23562 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23563 object with an undesirable mode.
23564
23565 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23566
23567 PR libgomp/60107
23568 * config/i386/sol2-9.h: New file.
23569 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23570 *-*-solaris2.9*): Use it.
23571
23572 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23573
23574 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23575 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23576
23577 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23578
23579 * config/microblaze/microblaze.c: Extend mcpu version format
23580
23581 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23582
23583 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23584
23585 2014-02-10 Richard Henderson <rth@redhat.com>
23586
23587 PR target/59927
23588 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23589 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23590 ms-abi vs -mno-accumulate-outgoing-args.
23591 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23592 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23593 respect to ms-abi.
23594
23595 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23596
23597 PR middle-end/60080
23598 * cfgexpand.c (expand_asm_operands): Attach source location to
23599 ASM_INPUT rtx objects.
23600 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23601
23602 2014-02-10 Nick Clifton <nickc@redhat.com>
23603
23604 * config/mn10300/mn10300.c (popcount): New function.
23605 (mn10300_expand_prologue): Include saved registers in stack usage
23606 count.
23607
23608 2014-02-10 Jeff Law <law@redhat.com>
23609
23610 PR middle-end/52306
23611 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23612 when changing the SET_DEST of a prior insn to avoid an input reload.
23613
23614 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23615
23616 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23617 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23618 -mcall-openbsd, or -mcall-linux.
23619 (CC1_ENDIAN_BIG_SPEC): Remove.
23620 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23621 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23622 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23623 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23624 and %cc1_endian_default.
23625 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23626
23627 2014-02-10 Richard Biener <rguenther@suse.de>
23628
23629 PR tree-optimization/60115
23630 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23631 MEM_REF handling. Properly verify that the accesses are not
23632 out of the objects bound.
23633
23634 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23635
23636 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23637 coretex to cortex.
23638
23639 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23640
23641 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23642 proper constants and fix formatting.
23643 (possible_polymorphic_call_targets): Fix formatting.
23644
23645 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23646 Ilya Tocar <ilya.tocar@intel.com>
23647
23648 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23649 (_mm512_loadu_epi32): Renamed into...
23650 (_mm512_loadu_si512): This.
23651 (_mm512_storeu_epi32): Renamed into...
23652 (_mm512_storeu_si512): This.
23653 (_mm512_maskz_ceil_ps): Removed.
23654 (_mm512_maskz_ceil_pd): Ditto.
23655 (_mm512_maskz_floor_ps): Ditto.
23656 (_mm512_maskz_floor_pd): Ditto.
23657 (_mm512_floor_round_ps): Ditto.
23658 (_mm512_floor_round_pd): Ditto.
23659 (_mm512_ceil_round_ps): Ditto.
23660 (_mm512_ceil_round_pd): Ditto.
23661 (_mm512_mask_floor_round_ps): Ditto.
23662 (_mm512_mask_floor_round_pd): Ditto.
23663 (_mm512_mask_ceil_round_ps): Ditto.
23664 (_mm512_mask_ceil_round_pd): Ditto.
23665 (_mm512_maskz_floor_round_ps): Ditto.
23666 (_mm512_maskz_floor_round_pd): Ditto.
23667 (_mm512_maskz_ceil_round_ps): Ditto.
23668 (_mm512_maskz_ceil_round_pd): Ditto.
23669 (_mm512_expand_pd): Ditto.
23670 (_mm512_expand_ps): Ditto.
23671 * config/i386/i386.c (ix86_builtins): Remove
23672 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23673 (bdesc_args): Ditto.
23674 * config/i386/predicates.md (const1256_operand): New.
23675 (const_1_to_2_operand): Ditto.
23676 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23677 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23678 (*avx512pf_gatherpf<mode>sf): Ditto.
23679 (avx512pf_gatherpf<mode>df): Ditto.
23680 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23681 (*avx512pf_gatherpf<mode>df): Ditto.
23682 (avx512pf_scatterpf<mode>sf): Ditto.
23683 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23684 (*avx512pf_scatterpf<mode>sf): Ditto.
23685 (avx512pf_scatterpf<mode>df): Ditto.
23686 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23687 (*avx512pf_scatterpf<mode>df): Ditto.
23688 (avx512f_expand<mode>): Removed.
23689 (<shift_insn><mode>3<mask_name>): Change predicate type.
23690
23691 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23692
23693 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23694 not at the end of datarefs vector use ordered_remove to avoid
23695 reordering datarefs vector.
23696
23697 PR c/59984
23698 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23699 mark local addressable non-static vars as GOVD_PRIVATE
23700 instead of GOVD_LOCAL.
23701 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23702 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23703 than copying them.
23704
23705 PR middle-end/60092
23706 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23707 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23708 assume_aligned or alloc_align attributes.
23709 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23710 arguments. Handle also assume_aligned and alloc_align attributes.
23711 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23712 calls to functions with assume_aligned or alloc_align attributes.
23713 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23714
23715 2014-02-08 Terry Guo <terry.guo@arm.com>
23716
23717 * doc/invoke.texi: Document ARM -march=armv7e-m.
23718
23719 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23720
23721 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23722 flag on __cilkrts_rethrow builtin.
23723
23724 PR ipa/60026
23725 * ipa-cp.c (determine_versionability): Fail at -O0
23726 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23727 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23728
23729 Revert:
23730 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23731
23732 PR ipa/60026
23733 * tree-inline.c (copy_forbidden): Fail for
23734 __attribute__((optimize (0))) functions.
23735
23736 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23737
23738 * varpool.c: Include pointer-set.h.
23739 (varpool_remove_unreferenced_decls): Variables in other partitions
23740 will not be output; be however careful to not lose information
23741 about partitioning.
23742
23743 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23744
23745 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23746 lookup in the vtable constructor.
23747
23748 2014-02-07 Jeff Law <law@redhat.com>
23749
23750 PR target/40977
23751 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23752 define_insn_and_split.
23753
23754 * ipa-inline.c (inline_small_functions): Fix typos.
23755
23756 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23757
23758 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23759 (s390_can_use_return_insn): Declare.
23760 * config/s390/s390.h (EPILOGUE_USES): Define.
23761 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23762 instructions.
23763 (s390_chunkify_start): Handle return JUMP_LABELs.
23764 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23765 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23766 (s390_can_use_return_insn): New functions.
23767 (s390_fix_long_loop_prediction): Handle conditional returns.
23768 (TARGET_SET_UP_BY_PROLOGUE): Define.
23769 * config/s390/s390.md (ANY_RETURN): New code iterator.
23770 (*creturn, *csimple_return, return, simple_return): New patterns.
23771
23772 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23773
23774 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23775 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23776 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23777 REG_CFA_RESTORE list when deciding not to restore a register.
23778
23779 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23780
23781 * config/s390/s390.c: Include tree-pass.h and context.h.
23782 (s390_early_mach): New function, split out from...
23783 (s390_emit_prologue): ...here.
23784 (pass_data_s390_early_mach): New pass structure.
23785 (pass_s390_early_mach): New class.
23786 (s390_option_override): Create and register early_mach pass.
23787 Move to end of file.
23788
23789 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23790
23791 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23792 to match for the exit block.
23793
23794 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23795
23796 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23797 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23798 Reject misaligned operands.
23799
23800 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23801
23802 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23803
23804 2014-02-07 Richard Biener <rguenther@suse.de>
23805
23806 PR middle-end/60092
23807 * gimple-low.c (lower_builtin_posix_memalign): New function.
23808 (lower_stmt): Call it to lower posix_memalign in a way
23809 to make alignment info accessible.
23810
23811 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23812
23813 PR c++/60082
23814 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23815 __builtin_setjmp_receiver.
23816
23817 2014-02-07 Richard Biener <rguenther@suse.de>
23818
23819 PR middle-end/60092
23820 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23821 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23822 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23823 Handle BUILT_IN_POSIX_MEMALIGN.
23824 (find_func_clobbers): Likewise.
23825 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23826 (call_may_clobber_ref_p_1): Likewise.
23827
23828 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23829
23830 PR ipa/59918
23831 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23832 sanity check.
23833
23834 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23835
23836 PR ipa/59469
23837 * lto-cgraph.c (lto_output_node): Use
23838 symtab_get_symbol_partitioning_class.
23839 (lto_output_varpool_node): likewise.
23840 (symtab_get_symbol_partitioning_class): Move here from
23841 lto/lto-partition.c
23842 * cgraph.h (symbol_partitioning_class): Likewise.
23843 (symtab_get_symbol_partitioning_class): Declare.
23844
23845 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23846
23847 * ggc.h (ggc_internal_cleared_alloc): New macro.
23848 * vec.h (vec_safe_copy): Handle memory stats.
23849 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23850 * target-globals.c (save_target_globals): Likewise.
23851
23852 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23853
23854 PR target/60077
23855 * expr.c (emit_move_resolve_push): Export; be bit more selective
23856 on when to clear alias set.
23857 * expr.h (emit_move_resolve_push): Declare.
23858 * function.h (struct function): Add tail_call_marked.
23859 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23860 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23861 * config/i386/i386.md (TImode move expander): De not call
23862 ix86_expand_push.
23863 (FP push expanders): Preserve memory attributes.
23864 * config/i386/sse.md (push<mode>1): Remove.
23865 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23866 (ix86_expand_push): Remove.
23867 * config/i386/mmx.md (push<mode>1): Remove.
23868
23869 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23870
23871 PR rtl-optimization/60030
23872 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23873 lopart with paradoxical subreg before shifting it up by hprec.
23874
23875 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23876
23877 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23878 Remove extra newline at end of file.
23879 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23880 (arm_issue_rate): Handle cortexa57.
23881 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23882 (cortex-a57.cortex-a53): Likewise.
23883
23884 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23885
23886 PR target/59575
23887 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23888 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23889 bitmask.
23890 (arm_expand_prologue): Adjust all callers.
23891 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23892 info, registers also at the lowest numbered registers side. Use
23893 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23894 XEXP.
23895
23896 PR debug/59992
23897 * var-tracking.c (adjust_mems): Before adding a SET to
23898 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23899
23900 2014-02-06 Alan Modra <amodra@gmail.com>
23901
23902 PR target/60032
23903 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23904 change SDmode to DDmode when lra_in_progress.
23905
23906 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23907
23908 PR middle-end/59150
23909 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23910 free_data_ref on the dr first, and before goto again also set dr
23911 to the next dr. For simd_lane_access, free old datarefs[i] before
23912 overwriting it. For get_vectype_for_scalar_type failure, don't
23913 free_data_ref if simd_lane_access.
23914
23915 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23916
23917 PR target/60062
23918 * tree.h (opts_for_fn): New inline function.
23919 (opt_for_fn): Define.
23920 * config/i386/i386.c (ix86_function_regparm): Use
23921 opt_for_fn (decl, optimize) instead of optimize.
23922
23923 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23924
23925 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23926 for SYMBOL_REF in large memory model.
23927
23928 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23929
23930 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23931 and crypto support.
23932 (cortex-a57): Likewise.
23933 (cortex-a57.cortex-a53): Likewise.
23934
23935 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23936 Kugan Vivekanandarajah <kuganv@linaro.org>
23937
23938 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23939 unaligned_access.
23940 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23941
23942 2014-02-06 Richard Biener <rguenther@suse.de>
23943
23944 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23945 set_loop_copy and initialize_original_copy_tables.
23946
23947 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23948
23949 * config/aarch64/aarch64-simd.md
23950 (aarch64_ashr_simddi): Change QI to SI.
23951
23952 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23953 Jakub Jelinek <jakub@redhat.com>
23954
23955 PR middle-end/60013
23956 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23957 of the dataflow.
23958
23959 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23960
23961 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23962 CODE_FOR_altivec_vpku[hw]um to
23963 CODE_FOR_altivec_vpku[hw]um_direct.
23964 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23965 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23966 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23967 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23968
23969 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23970
23971 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23972 generation for -maltivec=be.
23973 (altivec_vsumsws): Simplify redundant test.
23974
23975 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23976
23977 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23978 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23979 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23980 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23981 gen_altivec_vpkuwum.
23982 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23983 BYTES_BIG_ENDIAN.
23984 (altivec_vpks<VI_char>ss): Likewise.
23985 (altivec_vpks<VI_char>us): Likewise.
23986 (altivec_vpku<VI_char>us): Likewise.
23987 (altivec_vpku<VI_char>um): Likewise.
23988 (altivec_vpku<VI_char>um_direct): New (copy of
23989 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23990 internal use).
23991 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23992 target is little endian and -maltivec=be is not specified.
23993 (*altivec_vupkhs<VU_char>_direct): New (copy of
23994 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23995 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23996 target is little endian and -maltivec=be is not specified.
23997 (*altivec_vupkls<VU_char>_direct): New (copy of
23998 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23999 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24000 little endian and -maltivec=be is not specified.
24001 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24002 little endian and -maltivec=be is not specified.
24003
24004 2014-02-05 Richard Henderson <rth@redhat.com>
24005
24006 PR debug/52727
24007 * combine-stack-adj.c: Revert r206943.
24008 * sched-int.h (struct deps_desc): Add last_args_size.
24009 * sched-deps.c (init_deps): Initialize it.
24010 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24011 contain REG_ARGS_SIZE notes.
24012
24013 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24014
24015 * lto-cgraph.c (asm_nodes_output): Make global.
24016 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24017 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24018 (driver_handle_option): Handle OPT_fwpa.
24019
24020 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24021
24022 PR ipa/59947
24023 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24024 a comment typo and formatting issue. If odr_hash hasn't been
24025 created, return vNULL and set *completep to false.
24026
24027 PR middle-end/57499
24028 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24029 bb with no successors.
24030
24031 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24032
24033 PR target/59718
24034 * doc/invoke.texi (-march): Clarify documentation for ARM.
24035 (-mtune): Likewise.
24036 (-mcpu): Likewise.
24037
24038 2014-02-05 Richard Biener <rguenther@suse.de>
24039
24040 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24041 when not vectorizing because of too many alias checks.
24042 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24043 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24044
24045 2014-02-05 Nick Clifton <nickc@redhat.com>
24046
24047 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24048 accept extended registers in any mode when compiling for the MN10300.
24049
24050 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24051
24052 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24053 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24054 sanitization attributes.
24055 (can_inline_edge_p): Likewise.
24056 (sanitize_attrs_match_for_inline_p): New function.
24057
24058 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24059
24060 * ipa-prop.c (detect_type_change): Shor circuit testing of
24061 type changes on THIS pointer.
24062
24063 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24064
24065 PR target/59777
24066 * config/pa/pa.c (legitimize_tls_address): Return original address
24067 if not passed a SYMBOL_REF rtx.
24068 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24069 addresses.
24070 (pa_emit_move_sequence): Simplify TLS source operands.
24071 (pa_legitimate_constant_p): Reject all TLS constants.
24072 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24073 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24074
24075 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24076
24077 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24078 groups when we know they are controlled by LTO.
24079 * varasm.c (default_binds_local_p_1): If object is in other partition,
24080 it will be resolved locally.
24081
24082 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24083
24084 * config/host-linux.c (linux_gt_pch_use_address): Don't
24085 use SSIZE_MAX because it is not always defined.
24086
24087 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24088
24089 PR bootstrap/59913
24090 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24091 threshold for pseudo splitting.
24092 (update_ebb_live_info): Process call argument hard registers and
24093 hard registers from insn definition too.
24094 (max_small_class_regs_num): New constant.
24095 (inherit_in_ebb): Update live hard regs through EBBs. Update
24096 reloads_num only for small register classes. Don't split for
24097 outputs of jumps.
24098
24099 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24100
24101 PR ipa/60058
24102 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24103 is non-null.
24104
24105 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24106
24107 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24108 visibility is safe.
24109
24110 2014-02-04 Marek Polacek <polacek@redhat.com>
24111
24112 * gdbinit.in (pel): Define.
24113
24114 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24115
24116 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24117 behavior.
24118
24119 2014-02-04 Richard Biener <rguenther@suse.de>
24120
24121 PR lto/59723
24122 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24123 in function context local.
24124 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24125 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24126 similar to LTO_imported_decl_ref.
24127
24128 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24129
24130 PR tree-optimization/60002
24131 * cgraphclones.c (build_function_decl_skip_args): Clear
24132 DECL_LANG_SPECIFIC.
24133
24134 PR tree-optimization/60023
24135 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24136 false to gsi_replace.
24137 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24138 has been in some EH region and vec_stmt could throw, add
24139 vec_stmt into the same EH region.
24140 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24141 has no lhs, ignore it.
24142 * internal-fn.c (expand_MASK_LOAD): Likewise.
24143
24144 PR ipa/60026
24145 * tree-inline.c (copy_forbidden): Fail for
24146 __attribute__((optimize (0))) functions.
24147
24148 PR other/58712
24149 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24150 is set, copy one less argument.
24151 (expand_simd_clones): Don't subtract clone_info->inbranch
24152 from simd_clone_struct_alloc argument.
24153
24154 PR rtl-optimization/57915
24155 * recog.c (simplify_while_replacing): If all unary/binary/relational
24156 operation arguments are constant, attempt to simplify those.
24157
24158 PR middle-end/59261
24159 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24160 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24161
24162 2014-02-04 Richard Biener <rguenther@suse.de>
24163
24164 PR tree-optimization/60012
24165 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24166 TBAA disambiguation to all DDRs.
24167
24168 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24169
24170 PR target/59788
24171 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24172 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24173
24174 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24175
24176 PR ipa/59882
24177 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24178
24179 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24180
24181 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24182 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24183
24184 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24185
24186 PR ipa/59831
24187 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24188 to figure out targets of polymorphic calls with known decl.
24189 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24190 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24191 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24192 (get_polymorphic_call_info): ... here.
24193 (get_polymorphic_call_info_from_invariant): New function.
24194
24195 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24196
24197 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24198 lookup via vtable pointer; check for type consistency
24199 and turn inconsitent facts into UNREACHABLE.
24200 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24201 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24202 type inconsistent querries; return UNREACHABLE instead.
24203
24204 2014-02-03 Richard Henderson <rth@twiddle.net>
24205
24206 PR tree-opt/59924
24207 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24208 already processed this node.
24209 (normalize_one_pred_1): Pass along mark_set.
24210 (normalize_one_pred): Create and destroy a pointer_set_t.
24211 (normalize_one_pred_chain): Likewise.
24212
24213 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24214
24215 PR gcov-profile/58602
24216 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24217
24218 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24219
24220 PR ipa/59831
24221 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24222 -fno-devirtualize; try to devirtualize by the knowledge of
24223 virtual table pointer given by aggregate propagation.
24224 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24225 (ipa_print_node_jump_functions): Dump also offset that
24226 is relevant for polymorphic calls.
24227 (determine_known_aggregate_parts): Add arg_type parameter; use it
24228 instead of determining the type from pointer type.
24229 (ipa_compute_jump_functions_for_edge): Update call of
24230 determine_known_aggregate_parts.
24231 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24232 (gimple_get_virt_method_for_binfo): ... here; simplify using
24233 vtable_pointer_value_to_vtable.
24234 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24235 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24236 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24237 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24238 POINTER_PLUS_EXPR.
24239 (vtable_pointer_value_to_binfo): ... here.
24240 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24241
24242 2014-02-03 Teresa Johnson <tejohnson@google.com>
24243
24244 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24245 redef of outer loop index variable.
24246
24247 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24248
24249 PR c++/53017
24250 PR c++/59211
24251 * doc/extend.texi (Function Attributes): Typo.
24252
24253 2014-02-03 Cong Hou <congh@google.com>
24254
24255 PR tree-optimization/60000
24256 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24257 if the vectorized statement is a store. A store statement can only
24258 appear at the end of pattern statements.
24259
24260 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24261
24262 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24263 (ix86_option_override_internal): Default long double to 64-bit for
24264 32-bit Bionic and to 128-bit for 64-bit Bionic.
24265
24266 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24267 TARGET_LONG_DOUBLE_128 is true.
24268 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24269
24270 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24271 (mlong-double-64): Negate -mlong-double-128.
24272 (mlong-double-128): New option.
24273
24274 * config/i386/i386-c.c (ix86_target_macros): Define
24275 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24276
24277 * doc/invoke.texi: Document -mlong-double-128.
24278
24279 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24280
24281 PR rtl-optimization/60024
24282 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24283
24284 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24285
24286 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24287
24288 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24289
24290 PR rtl-optimization/57662
24291 * sel-sched.c (code_motion_path_driver): Do not mark already not
24292 existing blocks in the visiting bitmap.
24293
24294 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24295
24296 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24297 on the insn being emitted.
24298
24299 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24300 Will Deacon <will.deacon@arm.com>
24301
24302 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24303
24304 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24305
24306 * config/arm/arm-tables.opt: Regenerate.
24307
24308 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24309
24310 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24311 for vector types other than V16QImode.
24312 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24313 define_expand, and call altivec_expand_vec_perm_le when producing
24314 code with little endian element order.
24315 (*altivec_vperm_<mode>_internal): New insn having previous
24316 behavior of altivec_vperm_<mode>.
24317 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24318 altivec_expand_vec_perm_le when producing code with little endian
24319 element order.
24320 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24321 behavior of altivec_vperm_<mode>_uns.
24322
24323 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24324
24325 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24326 (altivec_vsumsws): Add handling for -maltivec=be with a little
24327 endian target.
24328 (altivec_vsumsws_direct): New.
24329 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24330 gen_altivec_vsumsws.
24331
24332 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24333
24334 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24335 vtable_pointer_value_to_binfo): New functions.
24336 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24337 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24338
24339 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24340
24341 * config/nios2/nios2.md (load_got_register): Initialize GOT
24342 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24343 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24344
24345 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24346
24347 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24348 preserverd by passthrough, do not propagate the type.
24349
24350 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24351
24352 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24353 (mips_atomic_assign_expand_fenv): New function.
24354 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24355
24356 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24357
24358 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24359 (__builtin_mips_set_fcsr): Likewise.
24360 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24361 MIPS_USI_FTYPE_VOID.
24362 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24363 (mips16_expand_set_fcsr): Likewise.
24364 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24365 (mips16_set_fcsr_stub): Likewise.
24366 (mips16_get_fcsr_one_only_stub): New class.
24367 (mips16_set_fcsr_one_only_stub): Likewise.
24368 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24369 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24370 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24371 (hard_float): New availability predicate.
24372 (mips_builtins): Add get_fcsr and set_fcsr.
24373 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24374 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24375 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24376 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24377 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24378 patterns.
24379
24380 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24381
24382 * config/mips/mips.c (mips_one_only_stub): New class.
24383 (mips_need_mips16_rdhwr_p): Replace with...
24384 (mips16_rdhwr_stub): ...this new variable.
24385 (mips16_stub_call_address): New function.
24386 (mips16_rdhwr_one_only_stub): New class.
24387 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24388 (mips_output_mips16_rdhwr): Delete.
24389 (mips_finish_stub): New function.
24390 (mips_code_end): Use it to handle rdhwr stubs.
24391
24392 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24393
24394 PR target/60017
24395 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24396 when calculating size of integer atomic types.
24397
24398 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24399
24400 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24401
24402 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24403
24404 PR tree-optimization/60003
24405 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24406 * profile.c (branch_prob): Use gimple_call_builtin_p
24407 to check for BUILT_IN_SETJMP_RECEIVER.
24408 * tree-inline.c (copy_bb): Call notice_special_calls.
24409
24410 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24411
24412 PR bootstrap/59985
24413 * lra-constraints.c (process_alt_operands): Update reload_sum only
24414 on the first pass.
24415
24416 2014-01-31 Richard Henderson <rth@redhat.com>
24417
24418 PR middle-end/60004
24419 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24420 until after else_eh is processed.
24421
24422 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24423
24424 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24425 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24426 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24427 in smmintrin.h, remove them.
24428 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24429 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24430 * config/i386/i386.md (ROUND_SAE): Fix value.
24431 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24432 (const48_operand): New.
24433 * config/i386/subst.md (round), (round_expand): Use
24434 const_4_or_8_to_11_operand.
24435 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24436
24437 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24438
24439 * config/i386/constraints.md (Yk): Swap meaning with k.
24440 * config/i386/i386.md (movhi_internal): Change Yk to k.
24441 (movqi_internal): Ditto.
24442 (*k<logic><mode>): Ditto.
24443 (*andhi_1): Ditto.
24444 (*andqi_1): Ditto.
24445 (kandn<mode>): Ditto.
24446 (*<code>hi_1): Ditto.
24447 (*<code>qi_1): Ditto.
24448 (kxnor<mode>): Ditto.
24449 (kortestzhi): Ditto.
24450 (kortestchi): Ditto.
24451 (kunpckhi): Ditto.
24452 (*one_cmplhi2_1): Ditto.
24453 (*one_cmplqi2_1): Ditto.
24454 * config/i386/sse.md (): Change k to Yk.
24455 (avx512f_load<mode>_mask): Ditto.
24456 (avx512f_blendm<mode>): Ditto.
24457 (avx512f_store<mode>_mask): Ditto.
24458 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24459 (avx512f_storedqu<mode>_mask): Ditto.
24460 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24461 Ditto.
24462 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24463 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24464 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24465 (avx512f_maskcmp<mode>3): Ditto.
24466 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24467 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24468 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24469 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24470 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24471 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24472 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24473 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24474 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24475 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24476 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24477 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24478 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24479 (vec_extract_lo_<mode>_maskm): Ditto.
24480 (vec_extract_hi_<mode>_maskm): Ditto.
24481 (avx512f_vternlog<mode>_mask): Ditto.
24482 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24483 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24484 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24485 (avx512f_<code>v8div16qi2_mask): Ditto.
24486 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24487 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24488 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24489 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24490 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24491 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24492 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24493 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24494 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24495 (avx512cd_maskb_vec_dupv8di): Ditto.
24496 (avx512cd_maskw_vec_dupv16si): Ditto.
24497 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24498 (avx512f_vpermi2var<mode>3_mask): Ditto.
24499 (avx512f_vpermi2var<mode>3_mask): Ditto.
24500 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24501 (*avx512f_gathersi<mode>): Ditto.
24502 (*avx512f_gathersi<mode>_2): Ditto.
24503 (*avx512f_gatherdi<mode>): Ditto.
24504 (*avx512f_gatherdi<mode>_2): Ditto.
24505 (*avx512f_scattersi<mode>): Ditto.
24506 (*avx512f_scatterdi<mode>): Ditto.
24507 (avx512f_compress<mode>_mask): Ditto.
24508 (avx512f_compressstore<mode>_mask): Ditto.
24509 (avx512f_expand<mode>_mask): Ditto.
24510 * config/i386/subst.md (mask): Change k to Yk.
24511 (mask_scalar_merge): Ditto.
24512 (sd): Ditto.
24513
24514 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24515
24516 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24517
24518 2014-01-31 Richard Biener <rguenther@suse.de>
24519
24520 PR middle-end/59990
24521 * builtins.c (fold_builtin_memory_op): Make sure to not
24522 use a floating-point mode or a boolean or enumeral type for
24523 the copy operation.
24524
24525 2014-01-30 DJ Delorie <dj@redhat.com>
24526
24527 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24528 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24529 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24530 whenever main() has an epilogue.
24531
24532 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24533
24534 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24535 unused variable "field".
24536 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24537 (vsx_mergeh_<mode>): Likewise.
24538 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24539 (altivec_vmrghh): Likewise.
24540 (altivec_vmrghw): Likewise.
24541 (altivec_vmrglb): Likewise.
24542 (altivec_vmrglh): Likewise.
24543 (altivec_vmrglw): Likewise.
24544 (altivec_vspltb): Add missing uses.
24545 (altivec_vsplth): Likewise.
24546 (altivec_vspltw): Likewise.
24547 (altivec_vspltsf): Likewise.
24548
24549 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24550
24551 PR target/59923
24552 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24553 frame related instructions.
24554
24555 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24556
24557 PR rtl-optimization/59959
24558 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24559 any reload of register whose subreg is invalid.
24560
24561 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24562
24563 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24564 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24565 Add missing return type - void.
24566
24567 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24568
24569 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24570 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24571 remove element index adjustment for endian (now handled in vsx.md
24572 and altivec.md).
24573 (altivec_expand_vec_perm_const): Use
24574 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24575 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24576 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24577 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24578 define_expand and a new define_insn *altivec_vspltb_internal;
24579 adjust for -maltivec=be on a little endian target.
24580 (altivec_vspltb_direct): New.
24581 (altivec_vsplth): Divide into a define_expand and a new
24582 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24583 little endian target.
24584 (altivec_vsplth_direct): New.
24585 (altivec_vspltw): Divide into a define_expand and a new
24586 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24587 little endian target.
24588 (altivec_vspltw_direct): New.
24589 (altivec_vspltsf): Divide into a define_expand and a new
24590 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24591 a little endian target.
24592
24593 2014-01-30 Richard Biener <rguenther@suse.de>
24594
24595 PR tree-optimization/59993
24596 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24597 can propagate form the earlier stmt and avoid the transform
24598 when the intermediate result is needed.
24599
24600 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24601
24602 * README.Portability: Fix typo.
24603
24604 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24605
24606 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24607 comparison_operator with ordered_comparison_operator.
24608
24609 2014-01-30 Nick Clifton <nickc@redhat.com>
24610
24611 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24612 Rename to mn10300_store_multiple_regs.
24613 * config/mn10300/mn10300.c: Likewise.
24614 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24615 store_multiple_regs.
24616 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24617 Call mn10300_store_multiple_regs.
24618
24619 2014-01-30 Nick Clifton <nickc@redhat.com>
24620 DJ Delorie <dj@redhat.com>
24621
24622 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24623 %fp 2 to keep registers after it properly word-aligned.
24624 (rl78_alloc_physical_registers_umul): Handle the case where both
24625 input operands are the same.
24626
24627 2014-01-30 Richard Biener <rguenther@suse.de>
24628
24629 PR tree-optimization/59903
24630 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24631 check properly.
24632
24633 2014-01-30 Jason Merrill <jason@redhat.com>
24634
24635 PR c++/59633
24636 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24637
24638 PR c++/59645
24639 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24640
24641 2014-01-30 Richard Biener <rguenther@suse.de>
24642
24643 PR tree-optimization/59951
24644 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24645
24646 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24647
24648 PR target/59784
24649 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24650 SFmode to DFmode case.
24651
24652 2014-01-29 DJ Delorie <dj@redhat.com>
24653
24654 * config/msp430/msp430.opt (-minrt): New.
24655 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24656 if -minrt given.
24657 (ENDFILE_SPEC): Likewise.
24658
24659 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24660
24661 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24662 (estimate_function_body_sizes): Use it.
24663
24664 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24665
24666 PR c++/58561
24667 * dwarf2out.c (is_cxx_auto): New.
24668 (is_base_type): Use it.
24669 (gen_type_die_with_usage): Likewise.
24670
24671 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24672
24673 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24674 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24675 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24676 -maltivec=be with LE targets.
24677 (vsx_mergeh_<mode>): Likewise.
24678 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24679 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24680 (altivec_vmrghb): Replace with define_expand and new
24681 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24682 (altivec_vmrghb_direct): New define_insn.
24683 (altivec_vmrghh): Replace with define_expand and new
24684 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24685 (altivec_vmrghh_direct): New define_insn.
24686 (altivec_vmrghw): Replace with define_expand and new
24687 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24688 (altivec_vmrghw_direct): New define_insn.
24689 (*altivec_vmrghsf): Adjust for endianness.
24690 (altivec_vmrglb): Replace with define_expand and new
24691 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24692 (altivec_vmrglb_direct): New define_insn.
24693 (altivec_vmrglh): Replace with define_expand and new
24694 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24695 (altivec_vmrglh_direct): New define_insn.
24696 (altivec_vmrglw): Replace with define_expand and new
24697 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24698 (altivec_vmrglw_direct): New define_insn.
24699 (*altivec_vmrglsf): Adjust for endianness.
24700 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24701 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24702 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24703 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24704 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24705 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24706 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24707 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24708
24709 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24710
24711 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24712 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24713 whitespace.
24714
24715 2014-01-29 Richard Biener <rguenther@suse.de>
24716
24717 PR tree-optimization/58742
24718 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24719 associate_pointerplus_align.
24720 (associate_pointerplus_diff): New function.
24721 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24722 and associate_pointerplus_diff.
24723
24724 2014-01-29 Richard Biener <rguenther@suse.de>
24725
24726 * lto-streamer.h (LTO_major_version): Bump to 3.
24727 (LTO_minor_version): Reset to 0.
24728
24729 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24730
24731 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24732 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24733 (arm_file_start): Generate correct asm header for armv7ve.
24734 * config/arm/bpabi.h: Add multilib support for armv7ve.
24735 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24736 and cortex-a15 to armv7ve.
24737 * config/arm/t-aprofile: Add multilib support for armv7ve.
24738 * doc/invoke.texi: Document -march=armv7ve.
24739
24740 2014-01-29 Richard Biener <rguenther@suse.de>
24741
24742 PR tree-optimization/58742
24743 * tree-ssa-forwprop.c (associate_plusminus): Return true
24744 if we changed sth, defer EH cleanup to ...
24745 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24746 (simplify_mult): New function.
24747
24748 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24749
24750 PR middle-end/59917
24751 PR tree-optimization/59920
24752 * tree.c (build_common_builtin_nodes): Remove
24753 __builtin_setjmp_dispatcher initialization.
24754 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24755 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24756 instead of gsi_after_labels + manually skipping debug stmts.
24757 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24758 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24759 * tree-inline.c (copy_edges_for_bb): Remove
24760 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24761 argument. Ignore computed_goto_p stmts. Don't call
24762 make_abnormal_goto_edges. If a call might need abnormal edges
24763 for non-local gotos, see if it already has an edge to
24764 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24765 with true argument, don't do anything then, otherwise add
24766 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24767 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24768 caller.
24769 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24770 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24771 (lower_stmt): Don't set data->calls_builtin_setjmp.
24772 (lower_builtin_setjmp): Adjust comment.
24773 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24774 * tree-cfg.c (found_computed_goto): Remove.
24775 (factor_computed_gotos): Remove.
24776 (make_goto_expr_edges): Return bool, true for computed gotos.
24777 Don't call make_abnormal_goto_edges.
24778 (build_gimple_cfg): Don't set found_computed_goto, don't call
24779 factor_computed_gotos.
24780 (computed_goto_p): No longer static.
24781 (make_blocks): Don't set found_computed_goto.
24782 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24783 (make_edges): If make_goto_expr_edges returns true, push bb
24784 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24785 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24786 vector. Record mapping between bbs and OpenMP regions if there
24787 are any, adjust make_gimple_omp_edges caller. Call
24788 handle_abnormal_edges.
24789 (make_abnormal_goto_edges): Remove.
24790 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24791 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24792 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24793 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24794 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24795 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24796 filling *region also set *region_idx to (*region)->entry->index.
24797
24798 PR other/58712
24799 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24800 For REGs set ORIGINAL_REGNO.
24801
24802 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24803
24804 * doc/md.texi: Mention that a target shouldn't implement
24805 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24806 than hi/lo pair.
24807
24808 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24809
24810 PR tree-optimization/59594
24811 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24812 a copy of the datarefs vector rather than the vector itself.
24813
24814 2014-01-28 Jason Merrill <jason@redhat.com>
24815
24816 PR c++/53756
24817 * dwarf2out.c (auto_die): New static.
24818 (gen_type_die_with_usage): Handle C++1y 'auto'.
24819 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24820 on definition.
24821
24822 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24823
24824 PR target/59672
24825 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24826 (SPEC_X32): Likewise.
24827 (SPEC_64): Likewise.
24828 * config/i386/i386.c (ix86_option_override_internal): Turn off
24829 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24830 for TARGET_16BIT.
24831 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24832 * config/i386/i386.h (TARGET_16BIT): New macro.
24833 (TARGET_16BIT_P): Likewise.
24834 * config/i386/i386.opt: Add m16.
24835 * doc/invoke.texi: Document -m16.
24836
24837 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24838
24839 PR preprocessor/59935
24840 * input.c (location_get_source_line): Bail out on when line number
24841 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24842
24843 2014-01-28 Richard Biener <rguenther@suse.de>
24844
24845 PR tree-optimization/58742
24846 * tree-ssa-forwprop.c (associate_plusminus): Handle
24847 pointer subtraction of the form (T)(P + A) - (T)P.
24848
24849 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24850
24851 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24852 at const_int_cost.
24853
24854 2014-01-28 Richard Biener <rguenther@suse.de>
24855
24856 Revert
24857 2014-01-28 Richard Biener <rguenther@suse.de>
24858
24859 PR rtl-optimization/45364
24860 PR rtl-optimization/59890
24861 * var-tracking.c (local_get_addr_clear_given_value): Handle
24862 already cleared slot.
24863 (val_reset): Handle not allocated local_get_addr_cache.
24864 (vt_find_locations): Use post-order on the inverted CFG.
24865
24866 2014-01-28 Richard Biener <rguenther@suse.de>
24867
24868 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24869
24870 2014-01-28 Richard Biener <rguenther@suse.de>
24871
24872 PR rtl-optimization/45364
24873 PR rtl-optimization/59890
24874 * var-tracking.c (local_get_addr_clear_given_value): Handle
24875 already cleared slot.
24876 (val_reset): Handle not allocated local_get_addr_cache.
24877 (vt_find_locations): Use post-order on the inverted CFG.
24878
24879 2014-01-28 Alan Modra <amodra@gmail.com>
24880
24881 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24882 * configure.ac <recursive call for build != host>: Define
24883 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24884 and LD_FOR_BUILD too.
24885 * configure: Regenerate.
24886
24887 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24888
24889 * config/i386/i386.c (get_builtin_code_for_version): Separate
24890 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24891 Broadwell from Haswell.
24892
24893 2014-01-27 Steve Ellcey <sellcey@mips.com>
24894
24895 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24896 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24897 * config/mips/mips.c (mips_option_override): Change setting
24898 of TARGET_DSP.
24899 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24900 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24901 Change from Mask to Var.
24902
24903 2014-01-27 Jeff Law <law@redhat.com>
24904
24905 * ipa-inline.c (inline_small_functions): Fix typo.
24906
24907 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24908
24909 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24910 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24911 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24912 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24913 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24914 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24915 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24916 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24917 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24918 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24919 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24920 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24921 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24922 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24923 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24924 (_mm512_storeu_epi64): Ditto.
24925 (_mm512_cmpge_epi32_mask): Ditto.
24926 (_mm512_cmpge_epu32_mask): Ditto.
24927 (_mm512_cmpge_epi64_mask): Ditto.
24928 (_mm512_cmpge_epu64_mask): Ditto.
24929 (_mm512_cmple_epi32_mask): Ditto.
24930 (_mm512_cmple_epu32_mask): Ditto.
24931 (_mm512_cmple_epi64_mask): Ditto.
24932 (_mm512_cmple_epu64_mask): Ditto.
24933 (_mm512_cmplt_epi32_mask): Ditto.
24934 (_mm512_cmplt_epu32_mask): Ditto.
24935 (_mm512_cmplt_epi64_mask): Ditto.
24936 (_mm512_cmplt_epu64_mask): Ditto.
24937 (_mm512_cmpneq_epi32_mask): Ditto.
24938 (_mm512_cmpneq_epu32_mask): Ditto.
24939 (_mm512_cmpneq_epi64_mask): Ditto.
24940 (_mm512_cmpneq_epu64_mask): Ditto.
24941 (_mm512_expand_pd): Ditto.
24942 (_mm512_expand_ps): Ditto.
24943 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24944 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24945 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24946 * config/i386/i386.c (ix86_builtins): Add
24947 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24948 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24949 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24950 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24951 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24952 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24953 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24954 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24955 IX86_BUILTIN_PMOVUSQW512_MEM.
24956 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24957 __builtin_ia32_pmovsqd512mem_mask,
24958 __builtin_ia32_pmovqd512mem_mask,
24959 __builtin_ia32_pmovusqw512mem_mask,
24960 __builtin_ia32_pmovsqw512mem_mask,
24961 __builtin_ia32_pmovqw512mem_mask,
24962 __builtin_ia32_pmovusdw512mem_mask,
24963 __builtin_ia32_pmovsdw512mem_mask,
24964 __builtin_ia32_pmovdw512mem_mask,
24965 __builtin_ia32_pmovqb512mem_mask,
24966 __builtin_ia32_pmovusqb512mem_mask,
24967 __builtin_ia32_pmovsqb512mem_mask,
24968 __builtin_ia32_pmovusdb512mem_mask,
24969 __builtin_ia32_pmovsdb512mem_mask,
24970 __builtin_ia32_pmovdb512mem_mask.
24971 (bdesc_args): Add __builtin_ia32_expanddf512,
24972 __builtin_ia32_expandsf512.
24973 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24974 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24975 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24976 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24977 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24978 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24979 (avx512f_<code>v8div16qi2_mask_store): This.
24980 (avx512f_expand<mode>): New.
24981
24982 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24983
24984 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24985 New.
24986 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24987 (_mm512_prefetch_i32scatter_pd): Ditto.
24988 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24989 (_mm512_prefetch_i64scatter_pd): Ditto.
24990 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24991 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24992 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24993 (_mm512_prefetch_i32scatter_ps): Ditto.
24994 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24995 (_mm512_prefetch_i64scatter_ps): Ditto.
24996 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24997 * config/i386/i386-builtin-types.def: Define
24998 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24999 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25000 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25001 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25002 IX86_BUILTIN_SCATTERPFQPD.
25003 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25004 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25005 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25006 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25007 __builtin_ia32_scatterpfqps.
25008 (ix86_expand_builtin): Expand new built-ins.
25009 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25010 fix memory access data type.
25011 (*avx512pf_gatherpf<mode>_mask): Ditto.
25012 (*avx512pf_gatherpf<mode>): Ditto.
25013 (avx512pf_scatterpf<mode>): Ditto.
25014 (*avx512pf_scatterpf<mode>_mask): Ditto.
25015 (*avx512pf_scatterpf<mode>): Ditto.
25016 (GATHER_SCATTER_SF_MEM_MODE): New.
25017 (avx512pf_gatherpf<mode>df): Ditto.
25018 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25019 (*avx512pf_scatterpf<mode>df): Ditto.
25020
25021 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25022
25023 PR bootstrap/59934
25024 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25025 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25026 reached.
25027
25028 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25029
25030 * common/config/arm/arm-common.c
25031 (arm_rewrite_mcpu): Handle multiple names.
25032 * config/arm/arm.h
25033 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25034
25035 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25036
25037 * gimple-builder.h (create_gimple_tmp): Delete.
25038
25039 2014-01-27 Christian Bruel <christian.bruel@st.com>
25040
25041 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25042 words comparisons.
25043
25044 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25045
25046 * config/pa/pa.md (call): Generate indirect long calls to non-local
25047 functions when outputing 32-bit code.
25048 (call_value): Likewise except for special call to buggy powf function.
25049
25050 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25051 portable runtime and PIC indirect calls.
25052 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25053 and PIC call sequences. Use ldo instead of blr to set return register
25054 in PIC call sequence.
25055
25056 2014-01-25 Walter Lee <walt@tilera.com>
25057
25058 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25059 avoid clobbering a live register.
25060
25061 2014-01-25 Walter Lee <walt@tilera.com>
25062
25063 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25064 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25065 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25066 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25067
25068 2014-01-25 Walter Lee <walt@tilera.com>
25069
25070 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25071 arguments on even registers.
25072 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25073 STACK_BOUNDARY.
25074 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25075 (BIGGEST_ALIGNMENT): Ditto.
25076 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25077
25078 2014-01-25 Walter Lee <walt@tilera.com>
25079
25080 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25081 insns before bundling.
25082 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25083
25084 2014-01-25 Walter Lee <walt@tilera.com>
25085
25086 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25087 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25088 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25089
25090 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25091
25092 * config/mips/constraints.md (kl): Delete.
25093 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25094 define expands, using...
25095 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25096 instructions for MIPS16.
25097 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25098 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25099
25100 2014-01-25 Walter Lee <walt@tilera.com>
25101
25102 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25103 (clzdi2): Ditto.
25104 (ffsdi2): Ditto.
25105
25106 2014-01-25 Walter Lee <walt@tilera.com>
25107
25108 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25109 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25110
25111 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25112
25113 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25114 Handle XOR.
25115
25116 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25117
25118 * print-rtl.c (in_call_function_usage): New var.
25119 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25120 EXPR_LIST mode as mode and not as reg note name.
25121
25122 PR middle-end/59561
25123 * cfgloopmanip.c (copy_loop_info): If
25124 loop->warned_aggressive_loop_optimizations, make sure
25125 the flag is set in target loop too.
25126
25127 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25128
25129 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25130 flag_cilkplus.
25131 * builtins.def: Likewise.
25132 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25133 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25134 * ira.c (ira_setup_eliminable_regset): Likewise.
25135 * omp-low.c (gate_expand_omp): Likewise.
25136 (execute_lower_omp): Likewise.
25137 (diagnose_sb_0): Likewise.
25138 (gate_diagnose_omp_blocks): Likewise.
25139 (simd_clone_clauses_extract): Likewise.
25140 (gate): Likewise.
25141
25142 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25143
25144 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25145 correction for little endian...
25146 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25147 here.
25148
25149 2014-01-24 Jeff Law <law@redhat.com>
25150
25151 PR tree-optimization/59919
25152 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25153 for non-returning calls.
25154
25155 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25156
25157 * common/config/aarch64/aarch64-common.c
25158 (aarch64_rewrite_mcpu): Handle multiple names.
25159 * config/aarch64/aarch64.h
25160 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25161
25162 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25163
25164 * input.c (add_file_to_cache_tab): Handle the case where fopen
25165 returns NULL.
25166
25167 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25168
25169 PR target/59929
25170 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25171 from push operand if code of push isn't PRE_DEC.
25172
25173 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25174
25175 PR target/59909
25176 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25177 -mquad-memory-atomic. Update -mquad-memory documentation to say
25178 it is only used for non-atomic loads/stores.
25179
25180 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25181 -mquad-memory or -mquad-memory-atomic switches.
25182
25183 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25184 -mquad-memory-atomic to ISA 2.07 support.
25185
25186 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25187 to separate support of normal quad word memory operations (ldq, stq)
25188 from the atomic quad word memory operations.
25189
25190 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25191 support to separate non-atomic quad word operations from atomic
25192 quad word operations. Disable non-atomic quad word operations in
25193 little endian mode so that we don't have to swap words after the
25194 load and before the store.
25195 (quad_load_store_p): Add comment about atomic quad word support.
25196 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25197 options printed with -mdebug=reg.
25198
25199 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25200 -mquad-memory-atomic as the test for whether we have quad word
25201 atomic instructions.
25202 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25203 or -mp8-vector are used, allow byte/half-word atomic operations.
25204
25205 * config/rs6000/sync.md (load_lockedti): Insure that the address
25206 is a proper indexed or indirect address for the lqarx instruction.
25207 On little endian systems, swap the hi/lo registers after the lqarx
25208 instruction.
25209 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25210 insure the address is valid for the lqarx instruction.
25211 (store_conditionalti): Insure that the address is a proper indexed
25212 or indirect address for the stqcrx. instruction. On little endian
25213 systems, swap the hi/lo registers before doing the stqcrx.
25214 instruction.
25215 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25216 insure the address is valid for the stqcrx. instruction.
25217
25218 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25219 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25220 type of quad memory support is available.
25221
25222 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25223
25224 PR regression/59915
25225 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25226 there is a danger of looping.
25227
25228 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25229
25230 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25231 force flag_ira_loop_pressure if set via command line.
25232
25233 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25234
25235 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25236 (ashr_simd): New builtin handling DI mode.
25237 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25238 (aarch64_sshr_simddi): New match pattern.
25239 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25240 (vshrd_n_s64): Likewise.
25241 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25242
25243 2014-01-23 Nick Clifton <nickc@redhat.com>
25244
25245 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25246 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25247 favour of mcu specific scripts.
25248 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25249 430x multilibs.
25250
25251 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25252 Alex Velenko <Alex.Velenko@arm.com>
25253
25254 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25255 (vaddv_s16): Likewise.
25256 (vaddv_s32): Likewise.
25257 (vaddv_u8): Likewise.
25258 (vaddv_u16): Likewise.
25259 (vaddv_u32): Likewise.
25260 (vaddvq_s8): Likewise.
25261 (vaddvq_s16): Likewise.
25262 (vaddvq_s32): Likewise.
25263 (vaddvq_s64): Likewise.
25264 (vaddvq_u8): Likewise.
25265 (vaddvq_u16): Likewise.
25266 (vaddvq_u32): Likewise.
25267 (vaddvq_u64): Likewise.
25268 (vaddv_f32): Likewise.
25269 (vaddvq_f32): Likewise.
25270 (vaddvq_f64): Likewise.
25271 (vmaxv_f32): Likewise.
25272 (vmaxv_s8): Likewise.
25273 (vmaxv_s16): Likewise.
25274 (vmaxv_s32): Likewise.
25275 (vmaxv_u8): Likewise.
25276 (vmaxv_u16): Likewise.
25277 (vmaxv_u32): Likewise.
25278 (vmaxvq_f32): Likewise.
25279 (vmaxvq_f64): Likewise.
25280 (vmaxvq_s8): Likewise.
25281 (vmaxvq_s16): Likewise.
25282 (vmaxvq_s32): Likewise.
25283 (vmaxvq_u8): Likewise.
25284 (vmaxvq_u16): Likewise.
25285 (vmaxvq_u32): Likewise.
25286 (vmaxnmv_f32): Likewise.
25287 (vmaxnmvq_f32): Likewise.
25288 (vmaxnmvq_f64): Likewise.
25289 (vminv_f32): Likewise.
25290 (vminv_s8): Likewise.
25291 (vminv_s16): Likewise.
25292 (vminv_s32): Likewise.
25293 (vminv_u8): Likewise.
25294 (vminv_u16): Likewise.
25295 (vminv_u32): Likewise.
25296 (vminvq_f32): Likewise.
25297 (vminvq_f64): Likewise.
25298 (vminvq_s8): Likewise.
25299 (vminvq_s16): Likewise.
25300 (vminvq_s32): Likewise.
25301 (vminvq_u8): Likewise.
25302 (vminvq_u16): Likewise.
25303 (vminvq_u32): Likewise.
25304 (vminnmv_f32): Likewise.
25305 (vminnmvq_f32): Likewise.
25306 (vminnmvq_f64): Likewise.
25307
25308 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25309
25310 * config/aarch64/aarch64-simd.md
25311 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25312 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25313 (*aarch64_mul3_elt<mode>): Likewise.
25314 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25315 (*aarch64_mul3_elt_to_64v2df): Likewise.
25316 (*aarch64_mla_elt<mode>): Likewise.
25317 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25318 (*aarch64_mls_elt<mode>): Likewise.
25319 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25320 (*aarch64_fma4_elt<mode>): Likewise.
25321 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25322 (*aarch64_fma4_elt_to_64v2df): Likewise.
25323 (*aarch64_fnma4_elt<mode>): Likewise.
25324 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25325 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25326 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25327 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25328 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25329 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25330 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25331 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25332 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25333
25334 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25335
25336 * config/aarch64/aarch64-simd.md
25337 (aarch64_be_checked_get_lane<mode>): New define_expand.
25338 * config/aarch64/aarch64-simd-builtins.def
25339 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25340 New builtin definition.
25341 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25342 Use new safe be builtin.
25343
25344 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25345
25346 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25347 New define_insn.
25348 (aarch64_be_st1<mode>): Likewise.
25349 (aarch_ld1<VALL:mode>): Define_expand modified.
25350 (aarch_st1<VALL:mode>): Likewise.
25351 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25352 (UNSPEC_ST1): Likewise.
25353
25354 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25355
25356 * config/microblaze/microblaze.md: Add trap insn and attribute
25357
25358 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25359
25360 PR preprocessor/58580
25361 * input.h (location_get_source_line): Take an additional line_size
25362 parameter.
25363 (void diagnostics_file_cache_fini): Declare new function.
25364 * input.c (struct fcache): New type.
25365 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25366 New static constants.
25367 (diagnostic_file_cache_init, total_lines_num)
25368 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25369 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25370 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25371 (get_next_line, read_next_line, goto_next_line, read_line_num):
25372 New static function definitions.
25373 (diagnostic_file_cache_fini): New function.
25374 (location_get_source_line): Take an additional output line_len
25375 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25376 read_line_num.
25377 * diagnostic.c (diagnostic_finish): Call
25378 diagnostic_file_cache_fini.
25379 (adjust_line): Take an additional input parameter for the length
25380 of the line, rather than calculating it with strlen.
25381 (diagnostic_show_locus): Adjust the use of
25382 location_get_source_line and adjust_line with respect to their new
25383 signature. While displaying a line now, do not stop at the first
25384 null byte. Rather, display the zero byte as a space and keep
25385 going until we reach the size of the line.
25386 * Makefile.in: Add vec.o to OBJS-libcommon
25387
25388 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25389 Ilya Tocar <ilya.tocar@intel.com>
25390
25391 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25392 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25393 (__builtin_ia32_kmov16): Ditto.
25394 * config/i386/i386.md (UNSPEC_KMOV): New.
25395 (kmovw): Ditto.
25396
25397 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25398
25399 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25400 (_mm512_storeu_si512): Ditto.
25401
25402 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25403
25404 PR target/52125
25405 * rtl.h (get_referenced_operands): Declare.
25406 * recog.c (get_referenced_operands): New function.
25407 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25408 operands have been referenced when recording LO_SUM references.
25409
25410 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25411
25412 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25413
25414 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25415
25416 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25417 Enable for generic and recent AMD targets.
25418
25419 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25420
25421 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25422 ARG_SIZE note when adjustment was eliminated.
25423
25424 2014-01-22 Jeff Law <law@redhat.com>
25425
25426 PR tree-optimization/59597
25427 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25428 in file. Accept new argument REGISTERING and use it to modify
25429 dump output appropriately.
25430 (register_jump_thread): Corresponding changes.
25431 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25432 thread paths involving joiner blocks. Add code to dump cancelled
25433 jump threading paths.
25434
25435 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25436
25437 PR rtl-optimization/59477
25438 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25439 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25440
25441 2014-01-22 Tom Tromey <tromey@redhat.com>
25442
25443 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25444 PARAMS.
25445 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25446
25447 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25448
25449 PR rtl-optimization/59896
25450 * lra-constraints.c (process_alt_operands): Check unused note for
25451 matched operands of insn with no output reloads.
25452
25453 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25454
25455 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25456 (mips_move_from_gpr_cost): Likewise.
25457
25458 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25459
25460 PR rtl-optimization/59858
25461 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25462 ira_class_hard_regs_num.
25463 (process_alt_operands): Increase reject for dying matched operand.
25464
25465 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25466
25467 PR target/59003
25468 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25469 smaller than size, perform several stores or loads and stores
25470 at dst + count - size to store or copy all of size bytes, rather
25471 than just last modesize bytes.
25472
25473 2014-01-20 DJ Delorie <dj@redhat.com>
25474
25475 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25476 that CLOBBERs are REGs before propogating their values.
25477
25478 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25479
25480 PR middle-end/59789
25481 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25482 (cgraph_inline_failed_type): New function.
25483 * cgraph.h (DEFCIFCODE): Add type.
25484 (cgraph_inline_failed_type_t): New enum.
25485 (cgraph_inline_failed_type): New prototype.
25486 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25487 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25488 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25489 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25490 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25491 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25492 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25493 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25494 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25495 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25496 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25497 OPTIMIZATION_MISMATCH.
25498 * tree-inline.c (expand_call_inline): Emit errors during
25499 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25500
25501 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25502
25503 PR target/59685
25504 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25505 mode attribute in insn output.
25506
25507 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25508
25509 * output.h (output_constant): Delete.
25510 * varasm.c (output_constant): Make private.
25511
25512 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25513
25514 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25515
25516 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25517
25518 PR middle-end/59860
25519 * tree.h (fold_builtin_strcat): New prototype.
25520 * builtins.c (fold_builtin_strcat): No longer static. Add len
25521 argument, if non-NULL, don't call c_strlen. Optimize
25522 directly into __builtin_memcpy instead of __builtin_strcpy.
25523 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25524 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25525
25526 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25527
25528 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25529 for SImode_address_operand operands, having only a REG argument.
25530
25531 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25532
25533 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25534 loader name using mbig-endian.
25535 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25536
25537 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25538
25539 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25540 (-mtune): Likewise.
25541 (-mcpu): Likewise.
25542
25543 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25544
25545 * config/aarch64/aarch64-protos.h
25546 (aarch64_cannot_change_mode_class_ptr): Declare.
25547 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25548 aarch64_cannot_change_mode_class_ptr): New.
25549 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25550 backend hook aarch64_cannot_change_mode_class.
25551
25552 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25553
25554 * common/config/aarch64/aarch64-common.c
25555 (aarch64_handle_option): Don't handle any option order logic here.
25556 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25557 selected_cpu, warn on architecture version mismatch.
25558 (aarch64_override_options): Fix parsing order for option strings.
25559
25560 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25561 Iain Sandoe <iain@codesourcery.com>
25562
25563 PR bootstrap/59496
25564 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25565 warning. Amend comment to reflect current functionality.
25566
25567 2014-01-20 Richard Biener <rguenther@suse.de>
25568
25569 PR middle-end/59860
25570 * builtins.c (fold_builtin_strcat): Remove case better handled
25571 by tree-ssa-strlen.c.
25572
25573 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25574
25575 * config/aarch64/aarch64.opt
25576 (mcpu, march, mtune): Make case-insensitive.
25577
25578 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25579
25580 PR target/59880
25581 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25582 if operands[1] is a REG or ZERO_EXTEND of a REG.
25583
25584 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25585
25586 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25587
25588 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25589
25590 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25591 long non-pic millicode calls.
25592
25593 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25594
25595 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25596
25597 2014-01-19 Kito Cheng <kito@0xlab.org>
25598
25599 * builtins.c (expand_movstr): Check movstr expand done or fail.
25600
25601 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25602 H.J. Lu <hongjiu.lu@intel.com>
25603
25604 PR target/59379
25605 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25606 to DImode for zero-extended addresses.
25607
25608 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25609
25610 PR rtl-optimization/57763
25611 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25612 on the new indirect jump_insn and increment LABEL_NUSES (label).
25613
25614 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25615
25616 PR bootstrap/59580
25617 PR bootstrap/59583
25618 * config.gcc (x86_archs): New variable.
25619 (x86_64_archs): Likewise.
25620 (x86_cpus): Likewise.
25621 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25622 --with-arch/--with-cpu= options.
25623 Support --with-arch=/--with-cpu={nehalem,westmere,
25624 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25625
25626 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25627
25628 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25629 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25630
25631 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25632
25633 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25634
25635 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25636
25637 PR target/58944
25638 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25639 clear cpp_get_options (parse_in)->warn_unused_macros for
25640 ix86_target_macros_internal with cpp_define.
25641
25642 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25643
25644 * jump.c (delete_related_insns): Keep (use (insn))s.
25645 * reorg.c (redundant_insn): Check for barriers too.
25646
25647 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25648
25649 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25650
25651 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25652
25653 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25654 call to $$dyncall when TARGET_LONG_CALLS is true.
25655
25656 2014-01-17 Jeff Law <law@redhat.com>
25657
25658 * ree.c (combine_set_extension): Temporarily disable test for
25659 changing number of hard registers.
25660
25661 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25662
25663 PR middle-end/58125
25664 * ipa-inline-analysis.c (inline_free_summary):
25665 Do not free summary of aliases.
25666
25667 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25668
25669 PR middle-end/59706
25670 * gimplify.c (gimplify_expr): Use create_tmp_var
25671 instead of create_tmp_var_raw. If cond doesn't have
25672 integral type, don't add the IFN_ANNOTATE builtin at all.
25673
25674 2014-01-17 Martin Jambor <mjambor@suse.cz>
25675
25676 PR ipa/59736
25677 * ipa-cp.c (prev_edge_clone): New variable.
25678 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25679 Also resize prev_edge_clone vector.
25680 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25681 (ipcp_edge_removal_hook): New function.
25682 (ipcp_driver): Register ipcp_edge_removal_hook.
25683
25684 2014-01-17 Andrew Pinski <apinski@cavium.com>
25685 Steve Ellcey <sellcey@mips.com>
25686
25687 PR target/59462
25688 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25689 of operator mode.
25690
25691 2014-01-17 Jeff Law <law@redhat.com>
25692
25693 PR middle-end/57904
25694 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25695 so that pass_ccp runs first.
25696
25697 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25698
25699 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25700 (ix86_adjust_cost): Use !TARGET_XXX.
25701 (do_reorder_for_imul): Likewise.
25702 (swap_top_of_ready_list): Likewise.
25703 (ix86_sched_reorder): Likewise.
25704
25705 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25706
25707 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25708 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25709 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25710 (intel_memset): New. Duplicate slm_memset.
25711 (intel_cost): New. Duplicate slm_cost.
25712 (m_INTEL): New macro.
25713 (processor_target_table): Add "intel".
25714 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25715 with PROCESSOR_INTEL for "intel".
25716 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25717 PROCESSOR_SILVERMONT.
25718 (ix86_issue_rate): Likewise.
25719 (ix86_adjust_cost): Likewise.
25720 (ia32_multipass_dfa_lookahead): Likewise.
25721 (swap_top_of_ready_list): Likewise.
25722 (ix86_sched_reorder): Likewise.
25723 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25724 instead of TARGET_OPT_AGU.
25725 * config/i386/i386.h (TARGET_INTEL): New.
25726 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25727 (processor_type): Add PROCESSOR_INTEL.
25728 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25729 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25730
25731 2014-01-17 Marek Polacek <polacek@redhat.com>
25732
25733 PR c/58346
25734 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25735 size is zero.
25736
25737 2014-01-17 Richard Biener <rguenther@suse.de>
25738
25739 PR tree-optimization/46590
25740 * opts.c (default_options_table): Add entries for
25741 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25742 all enabled at -O1 but not for -Og.
25743 * common.opt (fbranch-count-reg): Remove Init(1).
25744 (fmove-loop-invariants): Likewise.
25745 (ftree-pta): Likewise.
25746
25747 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25748
25749 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25750 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25751 decls to at least the GCC 4.8 used alignments.
25752
25753 PR fortran/59440
25754 * tree-nested.c (convert_nonlocal_reference_stmt,
25755 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25756 of GIMPLE_BIND stmts, adjust associated decls.
25757
25758 2014-01-17 Richard Biener <rguenther@suse.de>
25759
25760 PR tree-optimization/46590
25761 * vec.h (vec<>::bseach): New member function implementing
25762 binary search according to C89 bsearch.
25763 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25764 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25765 bitmap pointer again. Make accesses_in_loop a flat array.
25766 (mem_ref_obstack): New global.
25767 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25768 (mark_ref_stored): Likewise.
25769 (ref_indep_loop_p_2): Likewise.
25770 (set_ref_stored_in_loop): New helper function.
25771 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25772 (memref_free): Adjust.
25773 (record_mem_ref_loc): Simplify.
25774 (gather_mem_refs_stmt): Adjust.
25775 (sort_locs_in_loop_postorder_cmp): New function.
25776 (analyze_memory_references): Sort accesses_in_loop after
25777 loop postorder number.
25778 (find_ref_loc_in_loop_cmp): New function.
25779 (for_all_locs_in_loop): Find relevant cluster of locs in
25780 accesses_in_loop and iterate without recursion.
25781 (execute_sm): Avoid uninit warning.
25782 (struct ref_always_accessed): Simplify.
25783 (ref_always_accessed::operator ()): Likewise.
25784 (ref_always_accessed_p): Likewise.
25785 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25786 loop postorder numbers here.
25787 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25788 numbers.
25789
25790 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25791
25792 PR c++/57945
25793 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25794 on decls for which assemble_alias has been called.
25795
25796 2014-01-17 Nick Clifton <nickc@redhat.com>
25797
25798 * config/msp430/msp430.opt: (mcpu): New option.
25799 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25800 (msp430_option_override): Parse target_cpu. If the MCU name
25801 matches a generic string, clear target_mcu.
25802 (msp430_attr): Allow numeric interrupt values up to 63.
25803 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25804 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25805 option.
25806 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25807 Add mcpu matches.
25808 * config/msp430/msp430.md (popm): Use %J rather than %I.
25809 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25810 (addhi_cy_i): Use immediate_operand for operand 2.
25811 * doc/invoke.texi: Document -mcpu option.
25812
25813 2014-01-17 Richard Biener <rguenther@suse.de>
25814
25815 PR rtl-optimization/38518
25816 * df.h (df_analyze_loop): Declare.
25817 * df-core.c: Include cfgloop.h.
25818 (df_analyze_1): Split out main part of df_analyze.
25819 (df_analyze): Adjust.
25820 (loop_inverted_post_order_compute): New function.
25821 (loop_post_order_compute): Likewise.
25822 (df_analyze_loop): New function avoiding whole-function
25823 postorder computes.
25824 * loop-invariant.c (find_defs): Use df_analyze_loop.
25825 (find_invariants): Adjust.
25826 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25827
25828 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25829
25830 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25831 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25832
25833 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25834
25835 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25836 traversal when removing references.
25837
25838 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25839
25840 PR ipa/59775
25841 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25842
25843 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25844
25845 PR middle-end/56791
25846 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25847 pushing a reload for an autoinc when we had previously reloaded an
25848 inner part of the address.
25849
25850 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25851
25852 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25853 field.
25854 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25855 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25856 when not giving up or versioning for alias only because of
25857 loop->safelen.
25858 (vect_analyze_data_ref_dependences): Set to true.
25859 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25860 is a GIMPLE_PHI.
25861 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25862 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25863 to the condition.
25864
25865 PR middle-end/58344
25866 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25867
25868 PR target/59839
25869 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25870 operand 0 predicate for gathers, use a new pseudo as subtarget.
25871
25872 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25873
25874 PR middle-end/59609
25875 * lra-constraints.c (process_alt_operands): Add printing debug info.
25876 Check absence of input/output reloads for matched operands too.
25877
25878 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25879
25880 PR rtl-optimization/59835
25881 * ira.c (ira_init_register_move_cost): Increase cost for
25882 impossible modes.
25883
25884 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25885
25886 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25887
25888 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25889
25890 PR target/59780
25891 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25892 non-register objects. Use gen_(high/low)part more consistently.
25893 Fix assertions.
25894
25895 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25896
25897 PR target/59844
25898 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25899 endian support, remove tests for WORDS_BIG_ENDIAN.
25900 (p8_mfvsrd_3_<mode>): Likewise.
25901 (reload_gpr_from_vsx<mode>): Likewise.
25902 (reload_gpr_from_vsxsf): Likewise.
25903 (p8_mfvsrd_4_disf): Likewise.
25904
25905 2014-01-16 Richard Biener <rguenther@suse.de>
25906
25907 PR rtl-optimization/46590
25908 * lcm.c (compute_antinout_edge): Use postorder iteration.
25909 (compute_laterin): Use inverted postorder iteration.
25910
25911 2014-01-16 Nick Clifton <nickc@redhat.com>
25912
25913 PR middle-end/28865
25914 * varasm.c (output_constant): Return the number of bytes actually
25915 emitted.
25916 (output_constructor_array_range): Update the field size with the
25917 number of bytes emitted by output_constant.
25918 (output_constructor_regular_field): Likewise. Also do not
25919 complain if the total number of bytes emitted is now greater
25920 than the expected fieldpos.
25921 * output.h (output_constant): Update prototype and descriptive comment.
25922
25923 2014-01-16 Marek Polacek <polacek@redhat.com>
25924
25925 PR middle-end/59827
25926 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25927 it is error_mark_node.
25928
25929 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25930
25931 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25932 VALID_AVX256_REG_OR_OI_MODE.
25933
25934 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25935
25936 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25937 current procedure should be profiled.
25938
25939 2014-01-15 Andrew Pinski <apinski@cavium.com>
25940
25941 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25942 of moving from/to the STACK_REG register class.
25943
25944 2014-01-15 Richard Henderson <rth@redhat.com>
25945
25946 PR debug/54694
25947 * reginfo.c (global_regs_decl): Globalize.
25948 * rtl.h (global_regs_decl): Declare.
25949 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25950 reserved via global_regs.
25951
25952 2014-01-15 Teresa Johnson <tejohnson@google.com>
25953
25954 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25955
25956 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25957
25958 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25959 and vmulosh rather than call gen_vec_widen_smult_*.
25960 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25961 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25962 (vec_widen_smult_even_v16qi): Likewise.
25963 (vec_widen_umult_even_v8hi): Likewise.
25964 (vec_widen_smult_even_v8hi): Likewise.
25965 (vec_widen_umult_odd_v16qi): Likewise.
25966 (vec_widen_smult_odd_v16qi): Likewise.
25967 (vec_widen_umult_odd_v8hi): Likewise.
25968 (vec_widen_smult_odd_v8hi): Likewise.
25969 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25970 vmuloub rather than call gen_vec_widen_umult_*.
25971 (vec_widen_umult_lo_v16qi): Likewise.
25972 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25973 vmulosb rather than call gen_vec_widen_smult_*.
25974 (vec_widen_smult_lo_v16qi): Likewise.
25975 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25976 rather than call gen_vec_widen_umult_*.
25977 (vec_widen_umult_lo_v8hi): Likewise.
25978 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25979 rather than call gen_vec_widen_smult_*.
25980 (vec_widen_smult_lo_v8hi): Likewise.
25981
25982 2014-01-15 Jeff Law <law@redhat.com>
25983
25984 PR tree-optimization/59747
25985 * ree.c (find_and_remove_re): Properly handle case where a second
25986 eliminated extension requires widening a copy created for elimination
25987 of a prior extension.
25988 (combine_set_extension): Ensure that the number of hard regs needed
25989 for a destination register does not change when we widen it.
25990
25991 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25992
25993 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25994 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25995 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25996 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25997 (avr-*-rtems*): Likewise.
25998 (bfin*-rtems*): Likewise.
25999 (moxie-*-rtems*): Likewise.
26000 (h8300-*-rtems*): Likewise.
26001 (i[34567]86-*-rtems*): Likewise.
26002 (lm32-*-rtems*): Likewise.
26003 (m32r-*-rtems*): Likewise.
26004 (m68k-*-rtems*): Likewise.
26005 (microblaze*-*-rtems*): Likewise.
26006 (mips*-*-rtems*): Likewise.
26007 (powerpc-*-rtems*): Likewise.
26008 (sh-*-rtems*): Likewise.
26009 (sparc-*-rtems*): Likewise.
26010 (sparc64-*-rtems*): Likewise.
26011 (v850-*-rtems*): Likewise.
26012 (m32c-*-rtems*): Likewise.
26013
26014 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26015
26016 PR rtl-optimization/59511
26017 * ira.c (ira_init_register_move_cost): Use memory costs for some
26018 cases of register move cost calculations.
26019 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26020 instead of BB frequency.
26021 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26022 * lra-assigns.c (find_hard_regno_for): Ditto.
26023
26024 2014-01-15 Richard Biener <rguenther@suse.de>
26025
26026 PR tree-optimization/59822
26027 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26028 (vectorizable_load): Use it to hoist defs of uses of invariant
26029 loads out of the loop.
26030
26031 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26032 Kugan Vivekanandarajah <kuganv@linaro.org>
26033
26034 PR target/59695
26035 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26036 truncation.
26037
26038 2014-01-15 Richard Biener <rguenther@suse.de>
26039
26040 PR rtl-optimization/59802
26041 * lcm.c (compute_available): Use inverted postorder to seed
26042 the initial worklist.
26043
26044 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26045
26046 PR target/59803
26047 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26048 ADDR_REGS for invalid symrefs in non-PIC code.
26049
26050 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26051
26052 PR other/58712
26053 * builtins.c (determine_block_size): Initialize *probable_max_size
26054 even if len_rtx is CONST_INT.
26055
26056 2014-01-14 Andrew Pinski <apinski@cavium.com>
26057
26058 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26059 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26060 (cortexa53_tunings): Likewise.
26061 (aarch64_sched_issue_rate): New function.
26062 (TARGET_SCHED_ISSUE_RATE): Define.
26063
26064 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26065
26066 * ira-costs.c (find_costs_and_classes): Add missed
26067 ira_init_register_move_cost_if_necessary.
26068
26069 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26070
26071 PR target/59787
26072 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26073
26074 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26075
26076 PR target/59794
26077 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26078 to indicate if type is used for function return value. Warn ABI
26079 change if the vector mode isn't available for function return value.
26080 (ix86_function_arg_advance): Pass false to type_natural_mode.
26081 (ix86_function_arg): Likewise.
26082 (ix86_gimplify_va_arg): Likewise.
26083 (function_arg_32): Don't warn ABI change.
26084 (ix86_function_value): Pass true to type_natural_mode.
26085 (ix86_return_in_memory): Likewise.
26086 (ix86_struct_value_rtx): Removed.
26087 (TARGET_STRUCT_VALUE_RTX): Likewise.
26088
26089 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26090
26091 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26092 converting a conditional jump into a conditional return.
26093
26094 2014-01-14 Richard Biener <rguenther@suse.de>
26095
26096 PR tree-optimization/58921
26097 PR tree-optimization/59006
26098 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26099 hoisting invariant stmts.
26100 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26101 invariant loads on the preheader edge if possible.
26102
26103 2014-01-14 Joey Ye <joey.ye@arm.com>
26104
26105 * doc/plugin.texi (Building GCC plugins): Update to C++.
26106
26107 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26108
26109 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26110 (_mm_rcp28_round_ss): Ditto.
26111 (_mm_rsqrt28_round_sd): Ditto.
26112 (_mm_rsqrt28_round_ss): Ditto.
26113 (_mm_rcp28_sd): Ditto.
26114 (_mm_rcp28_ss): Ditto.
26115 (_mm_rsqrt28_sd): Ditto.
26116 (_mm_rsqrt28_ss): Ditto.
26117 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26118 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26119 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26120 (IX86_BUILTIN_RCP28SD): Ditto.
26121 (IX86_BUILTIN_RCP28SS): Ditto.
26122 (IX86_BUILTIN_RSQRT28SD): Ditto.
26123 (IX86_BUILTIN_RSQRT28SS): Ditto.
26124 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26125 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26126 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26127 (ix86_expand_special_args_builtin): Expand new FTYPE.
26128 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26129 (srcp14<mode>): Make insn unary.
26130 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26131 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26132 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26133 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26134 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26135 Fix rounding: make it SAE only.
26136 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26137 Ditto.
26138 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26139 Ditto.
26140 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26141 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26142 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26143 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26144 (round_saeonly_mask_scalar_operand4): Ditto.
26145 (round_saeonly_mask_scalar_op3): Ditto.
26146 (round_saeonly_mask_scalar_op4): Ditto.
26147
26148 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26149
26150 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26151 Implement -maltivec=be for vec_insert and vec_extract.
26152
26153 2014-01-10 DJ Delorie <dj@redhat.com>
26154
26155 * config/msp430/msp430.md (call_internal): Don't allow memory
26156 references with SP as the base register.
26157 (call_value_internal): Likewise.
26158 * config/msp430/constraints.md (Yc): New. For memory references
26159 that don't use SP as a base register.
26160
26161 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26162 "an integer without a # prefix"
26163 * config/msp430/msp430.md (epilogue_helper): Use it.
26164
26165 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26166
26167 PR target/59617
26168 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26169 AVX512F gather builtins.
26170 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26171 on gather decls with INTEGER_TYPE masktype.
26172 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26173 directly into the builtin rather than hoisting it before loop.
26174
26175 PR tree-optimization/59387
26176 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26177 (scev_const_prop): If folded_casts and type has undefined overflow,
26178 use force_gimple_operand instead of force_gimple_operand_gsi and
26179 for each added stmt if it is assign with
26180 arith_code_with_undefined_signed_overflow, call
26181 rewrite_to_defined_overflow.
26182 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26183 gimple-fold.h instead.
26184 (arith_code_with_undefined_signed_overflow,
26185 rewrite_to_defined_overflow): Moved to ...
26186 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26187 rewrite_to_defined_overflow): ... here. No longer static.
26188 Include gimplify-me.h.
26189 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26190 rewrite_to_defined_overflow): New prototypes.
26191
26192 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26193
26194 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26195
26196 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26197
26198 * builtins.c (get_object_alignment_2): Minor tweak.
26199 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26200
26201 2014-01-13 Christian Bruel <christian.bruel@st.com>
26202
26203 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26204 optimized non constant lengths.
26205
26206 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26207
26208 PR libgomp/59194
26209 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26210 load as __atomic_load_N if possible.
26211
26212 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26213
26214 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26215 target parameter.
26216 (rs6000_expand_builtin): Adjust call.
26217
26218 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26219
26220 PR target/58115
26221 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26222 * config/rs6000/rs6000.c: Include target-globals.h.
26223 (rs6000_set_current_function): Instead of doing target_reinit
26224 unconditionally, use save_target_globals_default_opts and
26225 restore_target_globals.
26226
26227 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26228 FPSCR.
26229 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26230 (rs6000_expand_builtin): Handle mffs and mtfsf.
26231 (rs6000_init_builtins): Define mffs and mtfsf.
26232 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26233 (rs6000_mffs): New pattern.
26234 (rs6000_mtfsf): New pattern.
26235
26236 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26237
26238 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26239 Start narrowing with START. Apply candidate-use pair
26240 and check overall cost in narrowing.
26241 (iv_ca_prune): Pass new argument.
26242
26243 2014-01-10 Jeff Law <law@redhat.com>
26244
26245 PR middle-end/59743
26246 * ree.c (combine_reaching_defs): Ensure the defining statement
26247 occurs before the extension when optimizing extensions with
26248 different source and destination hard registers.
26249
26250 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26251
26252 PR ipa/58585
26253 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26254 vtables into the type inheritance graph.
26255
26256 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26257
26258 PR rtl-optimization/59754
26259 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26260 modes in the REGNO != REGNO case.
26261
26262 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26263
26264 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26265
26266 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26267
26268 PR tree-optimization/59745
26269 * tree-predcom.c (tree_predictive_commoning_loop): Call
26270 free_affine_expand_cache if giving up because components is NULL.
26271
26272 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26273 GC in payload of target_globals struct instead of allocating them on
26274 the heap and the larger structs separately using GC.
26275 * target-globals.h (struct target_globals): Make regs, hard_regs,
26276 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26277 of GTY((skip)) and change type to void *.
26278 (reset_target_globals): Cast loads from those fields to corresponding
26279 types.
26280
26281 2014-01-10 Steve Ellcey <sellcey@mips.com>
26282
26283 PR plugins/59335
26284 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26285 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26286 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26287
26288 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26289
26290 PR target/59744
26291 * aarch64-modes.def (CC_Zmode): New flags mode.
26292 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26293 represents an equality.
26294 (aarch64_get_condition_code): Handle CC_Zmode.
26295 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26296
26297 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26298
26299 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26300 extraction in good case.
26301
26302 2014-01-10 Richard Biener <rguenther@suse.de>
26303
26304 PR tree-optimization/59374
26305 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26306 checking after SLP discovery. Mark stmts not participating
26307 in any SLP instance properly.
26308
26309 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26310
26311 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26312 when handling a SET rtx.
26313
26314 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26315
26316 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26317 (cortex-a57): Likewise.
26318 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26319
26320 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26321
26322 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26323 non-iwmmxt builtins.
26324
26325 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26326
26327 PR ipa/58252
26328 PR ipa/59226
26329 * ipa-devirt.c record_target_from_binfo): Take as argument
26330 stack of binfos and lookup matching one for virtual inheritance.
26331 (possible_polymorphic_call_targets_1): Update.
26332
26333 2014-01-10 Huacai Chen <chenhc@lemote.com>
26334
26335 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26336 kernel strings for Loongson-2E/2F/3A.
26337
26338 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26339
26340 PR middle-end/59670
26341 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26342 is_gimple_call before calling gimple_call_internal_p.
26343
26344 2014-01-09 Steve Ellcey <sellcey@mips.com>
26345
26346 * Makefile.in (TREE_FLOW_H): Remove.
26347 (TREE_SSA_H): Add file names from tree-flow.h.
26348 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26349 * tree.h: Remove tree-flow.h reference.
26350 * hash-table.h: Remove tree-flow.h reference.
26351 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26352 reference with tree-ssa-loop.h.
26353
26354 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26355
26356 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26357 default element-order behavior for -maltivec.
26358 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26359 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26360 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26361 when targeting big endian, at least for now.
26362 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26363
26364 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26365
26366 PR middle-end/47735
26367 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26368 var satisfies use_register_for_decl, just take into account type
26369 alignment, rather than decl alignment.
26370
26371 PR tree-optimization/59622
26372 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26373 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26374 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26375 Don't devirtualize for inplace at all. For targets.length () == 1,
26376 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26377
26378 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26379
26380 * config/i386/i386.md (cpu): Remove the unused btver1.
26381
26382 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26383
26384 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26385
26386 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26387
26388 PR target/58115
26389 * tree-core.h (struct target_globals): New forward declaration.
26390 (struct tree_target_option): Add globals field.
26391 * tree.h (TREE_TARGET_GLOBALS): Define.
26392 (prepare_target_option_nodes_for_pch): New prototype.
26393 * target-globals.h (struct target_globals): Define even if
26394 !SWITCHABLE_TARGET.
26395 * tree.c (prepare_target_option_node_for_pch,
26396 prepare_target_option_nodes_for_pch): New functions.
26397 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26398 * config/i386/i386.c: Include target-globals.h.
26399 (ix86_set_current_function): Instead of doing target_reinit
26400 unconditionally, use save_target_globals_default_opts and
26401 restore_target_globals.
26402
26403 2014-01-09 Richard Biener <rguenther@suse.de>
26404
26405 PR tree-optimization/59715
26406 * tree-cfg.h (split_critical_edges): Declare.
26407 * tree-cfg.c (split_critical_edges): Export.
26408 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26409
26410 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26411
26412 * cfgexpand.c (expand_stack_vars): Optionally disable
26413 asan stack protection.
26414 (expand_used_vars): Likewise.
26415 (partition_stack_vars): Likewise.
26416 * asan.c (asan_emit_stack_protection): Optionally disable
26417 after return stack usage.
26418 (instrument_derefs): Optionally disable memory access instrumentation.
26419 (instrument_builtin_call): Likewise.
26420 (instrument_strlen_call): Likewise.
26421 (asan_protect_global): Optionally disable global variables protection.
26422 * doc/invoke.texi: Added doc for new options.
26423 * params.def: Added new options.
26424 * params.h: Likewise.
26425
26426 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26427
26428 PR rtl-optimization/59724
26429 * ifcvt.c (cond_exec_process_if_block): Don't call
26430 flow_find_head_matching_sequence with 0 longest_match.
26431 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26432 non-active insns if !stop_after.
26433 (try_head_merge_bb): Revert 2014-01-07 changes.
26434
26435 2014-01-08 Jeff Law <law@redhat.com>
26436
26437 * ree.c (get_sub_rtx): New function, extracted from...
26438 (merge_def_and_ext): Here.
26439 (combine_reaching_defs): Use get_sub_rtx.
26440
26441 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26442
26443 * cgraph.h (varpool_variable_node): Do not choke on null node.
26444
26445 2014-01-08 Catherine Moore <clm@codesourcery.com>
26446
26447 * config/mips/mips.md (simple_return): Attempt to use JRC
26448 for microMIPS.
26449 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26450
26451 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26452
26453 PR rtl-optimization/59137
26454 * reorg.c (steal_delay_list_from_target): Call update_block for
26455 elided insns.
26456 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26457
26458 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26459
26460 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26461 two duplicate entries.
26462
26463 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26464
26465 Revert:
26466 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26467
26468 * config/mips/mips.c (mips_truncated_op_cost): New function.
26469 (mips_rtx_costs): Adjust test for BADDU.
26470 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26471
26472 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26473
26474 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26475 (*baddu_si): ...this new pattern.
26476
26477 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26478
26479 PR ipa/59722
26480 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26481
26482 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26483
26484 PR middle-end/57748
26485 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26486 inner_reference_p.
26487 (expand_expr, expand_normal): Adjust.
26488 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26489 inner_reference_p. Use inner_reference_p to expand inner references.
26490 (store_expr): Adjust.
26491 * cfgexpand.c (expand_call_stmt): Adjust.
26492
26493 2014-01-08 Rong Xu <xur@google.com>
26494
26495 * gcov-io.c (gcov_var): Move from gcov-io.h.
26496 (gcov_position): Ditto.
26497 (gcov_is_error): Ditto.
26498 (gcov_rewrite): Ditto.
26499 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26500 only part to libgcc/libgcov.h.
26501
26502 2014-01-08 Marek Polacek <polacek@redhat.com>
26503
26504 PR middle-end/59669
26505 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26506
26507 2014-01-08 Marek Polacek <polacek@redhat.com>
26508
26509 PR sanitizer/59667
26510 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26511
26512 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26513
26514 PR rtl-optimization/59649
26515 * stor-layout.c (get_mode_bounds): For BImode return
26516 0 and STORE_FLAG_VALUE.
26517
26518 2014-01-08 Richard Biener <rguenther@suse.de>
26519
26520 PR middle-end/59630
26521 * gimple.h (is_gimple_builtin_call): Remove.
26522 (gimple_builtin_call_types_compatible_p): New.
26523 (gimple_call_builtin_p): New overload.
26524 * gimple.c (is_gimple_builtin_call): Remove.
26525 (validate_call): Rename to ...
26526 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26527 check return types.
26528 (validate_type): New static function.
26529 (gimple_call_builtin_p): New overload and adjust.
26530 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26531 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26532 (gimple_fold_stmt_to_constant_1): Likewise.
26533 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26534
26535 2014-01-08 Richard Biener <rguenther@suse.de>
26536
26537 PR middle-end/59471
26538 * gimplify.c (gimplify_expr): Gimplify register-register type
26539 VIEW_CONVERT_EXPRs to separate stmts.
26540
26541 2014-01-07 Jeff Law <law@redhat.com>
26542
26543 PR middle-end/53623
26544 * ree.c (combine_set_extension): Handle case where source
26545 and destination registers in an extension insn are different.
26546 (combine_reaching_defs): Allow source and destination registers
26547 in extension to be different under limited circumstances.
26548 (add_removable_extension): Remove restriction that the
26549 source and destination registers in the extension are the same.
26550 (find_and_remove_re): Emit a copy from the extension's
26551 destination to its source after the defining insn if
26552 the source and destination registers are different.
26553
26554 PR middle-end/59285
26555 * ifcvt.c (merge_if_block): If we are merging a block with more than
26556 one successor with a block with no successors, remove any BARRIER
26557 after the second block.
26558
26559 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26560
26561 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26562
26563 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26564
26565 PR target/59652
26566 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26567 for 14-bit register offsets when INT14_OK_STRICT is false.
26568
26569 2014-01-07 Roland Stigge <stigge@antcom.de>
26570 Michael Meissner <meissner@linux.vnet.ibm.com>
26571
26572 PR 57386/target
26573 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26574 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26575
26576 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26577
26578 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26579 -mcpu.
26580
26581 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26582
26583 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26584 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26585 rtx is const0_rtx or not.
26586
26587 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26588
26589 PR target/58115
26590 * target-globals.c (save_target_globals): Remove this_fn_optab
26591 handling.
26592 * toplev.c: Include optabs.h.
26593 (target_reinit): Temporarily restore the global options if another
26594 set of options are in force.
26595
26596 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26597
26598 PR rtl-optimization/58668
26599 * cfgcleanup.c (flow_find_cross_jump): Don't count
26600 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26601 to determine what is counted.
26602 (flow_find_head_matching_sequence): Use active_insn_p to determine
26603 what is counted.
26604 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26605 counting change.
26606 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26607 determine what is counted.
26608
26609 PR tree-optimization/59643
26610 * tree-predcom.c (split_data_refs_to_components): If one dr is
26611 read and one write, determine_offset fails and the write isn't
26612 in the bad component, just put the read into the bad component.
26613
26614 2014-01-07 Mike Stump <mikestump@comcast.net>
26615 Jakub Jelinek <jakub@redhat.com>
26616
26617 PR pch/59436
26618 * tree-core.h (struct tree_optimization_option): Change optabs
26619 type from unsigned char * to void *.
26620 * optabs.c (init_tree_optimization_optabs): Adjust
26621 TREE_OPTIMIZATION_OPTABS initialization.
26622
26623 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26624
26625 PR target/59644
26626 * config/i386/i386.h (struct machine_function): Add
26627 no_drap_save_restore field.
26628 * config/i386/i386.c (ix86_save_reg): Use
26629 !cfun->machine->no_drap_save_restore instead of
26630 crtl->stack_realign_needed.
26631 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26632 this function clears frame_pointer_needed. Set
26633 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26634 and DRAP reg is needed.
26635
26636 2014-01-06 Marek Polacek <polacek@redhat.com>
26637
26638 PR c/57773
26639 * doc/implement-c.texi: Mention that other integer types are
26640 permitted as bit-field types in strictly conforming mode.
26641
26642 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26643
26644 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26645 is newly allocated.
26646
26647 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26648
26649 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26650
26651 2014-01-06 Martin Jambor <mjambor@suse.cz>
26652
26653 PR ipa/59008
26654 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26655 to int.
26656 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26657
26658 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26659
26660 PR debug/59350
26661 PR debug/59510
26662 * var-tracking.c (add_stores): Preserve the value of the source even if
26663 we don't record the store.
26664
26665 2014-01-06 Terry Guo <terry.guo@arm.com>
26666
26667 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26668
26669 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26670
26671 PR bootstrap/59541
26672 * config/darwin.c (darwin_function_section): Adjust return values to
26673 correspond to optimisation changes made in r206070.
26674
26675 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26676
26677 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26678 from prefetch_block tune setting.
26679 (nocona_cost): Correct size of prefetch block to 64.
26680
26681 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26682
26683 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26684 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26685 used to save the static chain register in the computation of the offset
26686 from which the FP registers need to be restored.
26687
26688 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26689
26690 PR tree-optimization/59519
26691 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26692 ICE if get_current_def (current_new_name) is already non-NULL, as long
26693 as it is a phi result of some other phi in *new_exit_bb that has
26694 the same argument.
26695
26696 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26697 or vmovdqu* for misaligned_operand.
26698 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26699 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26700 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26701 aligned_mem for AVX512F masked aligned load and store builtins and for
26702 non-temporal moves.
26703
26704 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26705
26706 PR tree-optimization/59651
26707 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26708 Address range for negative step should be added by TYPE_SIZE_UNIT.
26709
26710 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26711
26712 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26713 overlapping registers also for registers other than the stack pointer.
26714
26715 2014-01-03 Marek Polacek <polacek@redhat.com>
26716
26717 PR other/59661
26718 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26719 __builtin_FILE.
26720
26721 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26722
26723 PR target/59625
26724 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26725 asm goto as jump.
26726
26727 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26728 (push splitter): Use <P:MODE_SIZE> instead of
26729 GET_MODE_SIZE (<P:MODE>mode).
26730 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26731 (mov -1, reg peephole2): Likewise.
26732 * config/i386/sse.md (*mov<mode>_internal,
26733 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26734 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26735 *<code><mode>3, *andnot<mode>3<mask_name>,
26736 <mask_codefor><code><mode>3<mask_name>): Likewise.
26737 * config/i386/subst.md (mask_mode512bit_condition,
26738 sd_mask_mode512bit_condition): Likewise.
26739
26740 2014-01-02 Xinliang David Li <davidxl@google.com>
26741
26742 PR tree-optimization/59303
26743 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26744 (dump_predicates): Better output format.
26745 (pred_equal_p): New function.
26746 (is_neq_relop_p): Ditto.
26747 (is_neq_zero_form_p): Ditto.
26748 (pred_expr_equal_p): Ditto.
26749 (pred_neg_p): Ditto.
26750 (simplify_pred): Ditto.
26751 (simplify_preds_2): Ditto.
26752 (simplify_preds_3): Ditto.
26753 (simplify_preds_4): Ditto.
26754 (simplify_preds): Ditto.
26755 (push_pred): Ditto.
26756 (push_to_worklist): Ditto.
26757 (get_pred_info_from_cmp): Ditto.
26758 (is_degenerated_phi): Ditto.
26759 (normalize_one_pred_1): Ditto.
26760 (normalize_one_pred): Ditto.
26761 (normalize_one_pred_chain): Ditto.
26762 (normalize_preds): Ditto.
26763 (normalize_cond_1): Remove function.
26764 (normalize_cond): Ditto.
26765 (is_gcond_subset_of): Ditto.
26766 (is_subset_of_any): Ditto.
26767 (is_or_set_subset_of): Ditto.
26768 (is_and_set_subset_of): Ditto.
26769 (is_norm_cond_subset_of): Ditto.
26770 (pred_chain_length_cmp): Ditto.
26771 (convert_control_dep_chain_into_preds): Type change.
26772 (find_predicates): Ditto.
26773 (find_def_preds): Ditto.
26774 (destroy_predicates_vecs): Ditto.
26775 (find_matching_predicates_in_rest_chains): Ditto.
26776 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26777 (is_pred_expr_subset): Ditto.
26778 (is_pred_chain_subset_of): Ditto.
26779 (is_included_in): Ditto.
26780 (is_superset_of): Ditto.
26781
26782 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26783
26784 Update copyright years.
26785
26786 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26787
26788 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26789 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26790 config/arc/arc.md, config/arc/arc.opt,
26791 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26792 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26793 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26794 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26795 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26796 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26797 vtable-verify.c, vtable-verify.h: Use the standard form for the
26798 copyright notice.
26799
26800 2014-01-02 Tobias Burnus <burnus@net-b.de>
26801
26802 * gcc.c (process_command): Update copyright notice dates.
26803 * gcov-dump.c: Ditto.
26804 * gcov.c: Ditto.
26805 * doc/cpp.texi: Bump @copying's copyright year.
26806 * doc/cppinternals.texi: Ditto.
26807 * doc/gcc.texi: Ditto.
26808 * doc/gccint.texi: Ditto.
26809 * doc/gcov.texi: Ditto.
26810 * doc/install.texi: Ditto.
26811 * doc/invoke.texi: Ditto.
26812
26813 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26814
26815 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26816
26817 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26818
26819 * config/i386/sse.md (*mov<mode>_internal): Guard
26820 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26821
26822 PR rtl-optimization/59647
26823 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26824 new_rtx into UNSIGNED_FLOAT rtxes.
26825 \f
26826 Copyright (C) 2014 Free Software Foundation, Inc.
26827
26828 Copying and distribution of this file, with or without modification,
26829 are permitted in any medium without royalty provided the copyright
26830 notice and this notice are preserved.