]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
final_start_function takes an rtx_insn
[thirdparty/gcc.git] / gcc / ChangeLog
1 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2
3 * output.h (final_start_function): Strengthen param 1 from rtx to
4 rtx_insn *.
5
6 * final.c (final_start_function): Likewise, renaming back from
7 "uncast_first" to "first", and dropping the checked cast from rtx
8 to rtx_insn *.
9
10 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11
12 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
13 * final.c (final): Likewise. Rename param back from
14 "uncast_first" to "first" and eliminate the checked cast from rtx
15 to rtx_insn *.
16
17 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18
19 * output.h (shorten_branches): Strengthen param from rtx to
20 rtx_insn *.
21
22 * final.c (shorten_branches): Likewise, renaming param back from
23 "uncast_first" to "first", and dropping the checked cast from rtx
24 to rtx_insn *.
25
26 * genattr.c (gen_attr): Likewise when writing out the prototype of
27 shorten_branches.
28
29 2014-08-25 David Malcolm <dmalcolm@redhat.com>
30
31 * sched-int.h (struct haifa_sched_info): Strengthen fields
32 "prev_head" and "next_tail" from rtx to rtx_insn *.
33
34 2014-08-25 David Malcolm <dmalcolm@redhat.com>
35
36 * rtl.h (rtx_jump_table_data::get_labels): New method.
37 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
38 with use of the new rtx_jump_table_data::get_labels method.
39 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
40 to rtx_jump_table_data *. Simplify by using get_labels method.
41 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
42 a dyn_cast, introducing local "table", using it to replace
43 label-lookup logic with a get_labels method call.
44 (patch_jump_insn): Simplify using get_labels method.
45 * dwarf2cfi.c (create_trace_edges): Likewise.
46 * rtlanal.c (label_is_jump_target_p): Likewise.
47
48 2014-08-25 David Malcolm <dmalcolm@redhat.com>
49
50 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
51 to rtx_insn *.
52
53 * emit-rtl.c (unshare_all_rtl_1): Likewise.
54 (unshare_all_rtl_again): Likewise, also for local "p".
55
56 2014-08-25 David Malcolm <dmalcolm@redhat.com>
57
58 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
59 to rtx_insn *.
60 * cfgrtl.c (delete_insn_and_edges): Likewise.
61
62 2014-08-25 David Malcolm <dmalcolm@redhat.com>
63
64 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
65 from rtx to rtx_insn *.
66
67 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
68
69 2014-08-25 David Malcolm <dmalcolm@redhat.com>
70
71 * function.c (thread_prologue_and_epilogue_insns): Likewise for
72 locals "returnjump", "epilogue_end", "insn", "next".
73
74 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
75 "returnjump" from rtx * to rtx_insn **.
76 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
77
78 2014-08-25 David Malcolm <dmalcolm@redhat.com>
79
80 * basic-block.h (struct edge_def). Strengthen "r" within
81 union edge_def_insns from rtx to rtx_insn *.
82
83 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
84 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
85 rtx_insn *.
86 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
87 from rtx to rtx_insn *.
88 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
89 rtx_insn *.
90 * postreload-gcse.c (reg_killed_on_edge): Likewise.
91 (reg_used_on_edge): Likewise.
92 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
93 (gt_pch_nx): New overload for rtx_insn *&.
94 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
95 from rtx to rtx_insn *.
96
97 2014-08-25 David Malcolm <dmalcolm@redhat.com>
98
99 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
100 from rtx to rtx_insn *.
101 (BB_FOOTER): Replace function with access macro.
102 (SET_BB_FOOTER): Delete.
103
104 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
105 with BB_FOOTER.
106 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
107 (emit_barrier_after_bb): Likewise.
108 (record_effective_endpoints): Likewise.
109 (relink_block_chain): Likewise.
110 (fixup_fallthru_exit_predecessor): Likewise.
111 (cfg_layout_duplicate_bb): Likewise.
112 (cfg_layout_split_block): Likewise.
113 (cfg_layout_delete_block): Likewise.
114 (cfg_layout_merge_blocks): Likewise.
115 (BB_FOOTER): Delete function.
116 (SET_BB_FOOTER): Delete function.
117 * combine.c (update_cfg_for_uncondjump): Replace uses of
118 SET_BB_FOOTER with BB_FOOTER.
119
120 2014-08-25 David Malcolm <dmalcolm@redhat.com>
121
122 * except.h (struct eh_landing_pad_d): Strengthen field
123 "landing_pad" from rtx to rtx_code_label *.
124
125 * except.c (sjlj_emit_dispatch_table): Likewise for param
126 "dispatch_label"
127 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
128
129 2014-08-25 David Malcolm <dmalcolm@redhat.com>
130
131 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
132 first param from rtx to rtx_insn *.
133 * config/xtensa/xtensa.c (struct machine_function): Likewise for
134 field "set_frame_ptr_insn".
135 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
136 "csend" from rtx to rtx_code_label *.
137 (xtensa_expand_atomic): Likewise for local "csloop".
138 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
139 rtx_insn *.
140 (xtensa_call_tls_desc): Likewise for return type and locals
141 "call_insn", "insns".
142 (xtensa_legitimize_tls_address): Likewise for local "insns".
143 (xtensa_expand_prologue): Likewise for locals "insn", "first".
144
145 2014-08-25 David Malcolm <dmalcolm@redhat.com>
146
147 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
148 first param from rtx to rtx_insn *.
149 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
150 "insn".
151
152 2014-08-25 David Malcolm <dmalcolm@redhat.com>
153
154 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
155 Strengthen param 1 from rtx to rtx_insn *.
156 (tilepro_output_cbranch): Likewise.
157 (tilepro_adjust_insn_length): Likewise.
158 (tilepro_final_prescan_insn): Likewise for sole param.
159
160 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
161 Likewise for local "last".
162 (cbranch_predicted_p): Likewise for param "insn".
163 (tilepro_output_simple_cbranch_with_opcode): Likewise.
164 (tilepro_output_cbranch_with_opcode): Likewise.
165 (tilepro_output_cbranch): Likewise.
166 (frame_emit_load): Likewise for return type and locals "seq",
167 "insn".
168 (emit_sp_adjust): Likewise for return type and local "insn".
169 (tilepro_expand_epilogue): Likewise for locals "last_insn",
170 "insn".
171 (tilepro_adjust_insn_length): Likewise for param "insn".
172 (next_insn_to_bundle): Likewise for return type and params
173 "r", "end".
174 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
175 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
176 local "new_insns".
177 (match_addli_pcrel): Likewise for param "insn".
178 (replace_addli_pcrel): Likewise.
179 (match_auli_pcrel): Likewise.
180 (replace_auli_pcrel): Likewise.
181 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
182 "next_insn".
183 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
184 "queue", "next_queue", "prev".
185 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
186 (tilepro_final_prescan_insn): Likewise for param "insn".
187
188 2014-08-25 David Malcolm <dmalcolm@redhat.com>
189
190 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
191 Strengthen param 1 from rtx to rtx_insn *.
192 (tilegx_output_cbranch): Likewise.
193 (tilegx_adjust_insn_length): Likewise.
194 (tilegx_final_prescan_insn): Likewise for sole param.
195
196 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
197 or local "last".
198 (cbranch_predicted_p): Likewise for param "insn".
199 (tilegx_output_simple_cbranch_with_opcode): Likewise.
200 (tilegx_output_cbranch_with_opcode): Likewise.
201 (tilegx_output_cbranch): Likewise.
202 (frame_emit_load): Likewise for return type.
203 (set_frame_related_p): Likewise for locals "seq", "insn".
204 (emit_sp_adjust): Likewise for return type, and for local "insn".
205 Introduce local "pat" for use in place of "insn" where the latter
206 isn't an instruction.
207 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
208 from rtx to rtx_insn *.
209 (tilegx_adjust_insn_length): Likewise for param "insn".
210 (next_insn_to_bundle): Likewise for return type and params "r" and
211 "end".
212 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
213 "end".
214 (replace_insns): Likewise for params "old_insn", "new_insns".
215 (replace_mov_pcrel_step1): Likewise for param "insn" and local
216 "new_insns".
217 (replace_mov_pcrel_step2): Likewise.
218 (replace_mov_pcrel_step3): Likewise.
219 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
220 "next_insn".
221 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
222 "queue", "next_queue", "prev".
223 (tilegx_output_mi_thunk): Likewise for local "insn".
224 (tilegx_final_prescan_insn): Likewise for param "insn".
225
226 2014-08-25 David Malcolm <dmalcolm@redhat.com>
227
228 * config/spu/spu.c (frame_emit_store): Strengthen return type from
229 rtx to rtx_insn *.
230 (frame_emit_load): Likewise.
231 (frame_emit_add_imm): Likewise, also for local "insn".
232 (spu_expand_prologue): Likewise for local "insn".
233 (struct spu_bb_info): Likewise for field "prop_jump".
234 (emit_nop_for_insn): Likewise for param "insn" and local
235 "new_insn".
236 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
237 "hbr_insn".
238 (spu_emit_branch_hint): Likewise for params "before", "branch" and
239 locals "hint", "insn".
240 (get_branch_target): Likewise for param "branch".
241 (insn_clobbers_hbr): Likewise for param "insn".
242 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
243 locals "insn", "before_4", "before_16".
244 (insert_hbrp): Likewise for local "insn".
245 (spu_machine_dependent_reorg): Likewise for locals "branch",
246 "insn", "next", "bbend".
247 (uses_ls_unit): Likewise for param "insn".
248 (get_pipe): Likewise.
249 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
250 introducing a checked cast.
251 (spu_sched_adjust_cost): Likewise for params "insn" and
252 "dep_insn".
253 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
254 (spu_sms_res_mii): Likewise.
255
256 2014-08-25 David Malcolm <dmalcolm@redhat.com>
257
258 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
259 from rtx to rtx_insn *.
260 (output_cbranch): Likewise for param 6.
261 (output_return): Likewise for param 1.
262 (output_sibcall): Likewise.
263 (output_v8plus_shift): Likewise.
264 (output_v8plus_mult): Likewise.
265 (output_v9branch): Likewise for param 7.
266 (output_cbcond): Likewise for param 3.
267
268 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
269 for local "insn".
270 (sparc_legitimize_pic_address): Likewise.
271 (sparc_emit_call_insn): Likewise.
272 (emit_save_or_restore_regs): Likewise.
273 (emit_window_save): Likewise for return type and local "insn".
274 (sparc_expand_prologue): Likewise for local "insn".
275 (sparc_flat_expand_prologue): Likewise.
276 (output_return): Likewise for param "insn".
277 (output_sibcall): Likewise for param "insn" and local "delay".
278 (output_ubranch): Likewise for param "insn".
279 (output_cbranch): Likewise.
280 (output_cbcond): Likewise.
281 (output_v9branch): Likewise.
282 (output_v8plus_shift): Likewise.
283 (sparc_output_mi_thunk): Likewise for local "insn".
284 (get_some_local_dynamic_name): Likewise.
285 (output_v8plus_mult): Likewise for param "insn".
286
287 2014-08-25 David Malcolm <dmalcolm@redhat.com>
288
289 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
290 from rtx to rtx_insn *.
291 (output_branchy_insn): Likewise for param 3.
292 (output_far_jump): Likewise for param 1.
293 (final_prescan_insn): Likewise.
294 (sh_insn_length_adjustment): Likewise for sole param.
295
296 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
297 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
298 rtx_code_label *.
299 (sh_emit_compare_and_set): Likewise for local "lab".
300 (output_far_jump): Strengthen param "insn" and local "prev" from
301 rtx to rtx_insn *.
302 (output_branchy_insn): Likewise for param "insn" and local
303 "next_insn".
304 (output_ieee_ccmpeq): Likewise for param "insn".
305 (struct label_ref_list_d): Strengthen field "label" from rtx to
306 rtx_code_label *.
307 (pool_node): Likewise.
308 (pool_window_label): Likewise for this global.
309 (add_constant): Likewise for return type and locals "lab", "new_rtx".
310 (dump_table): Strengthen params "start", "barrier" and local
311 "scan" from rtx to rtx_insn *.
312 (broken_move): Likewise for param "insn".
313 (untangle_mova): Likewise for params "first_mova" and "new_mova".
314 Strengthen param "first_mova" from rtx * to rtx_insn **.
315 (mova_p): Likewise for param "insn".
316 (fixup_mova): Likewise for param "mova".
317 (find_barrier): Likewise for return type, params "mova" and
318 "from", and locals "barrier_before_mova", "found_barrier",
319 "good_barrier", "orig", "last_symoff", "next". Strengthen local
320 "label" from rtx to rtx_code_label *.
321 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
322 rtx to rtx_insn *.
323 (sh_reorg): Likewise for locals "link", "scan", "barrier".
324 (split_branches): Likewise for param "first" and local "insn".
325 (final_prescan_insn): Likewise for param "insn".
326 (sequence_insn_p): Likewise for locals "prev", "next".
327 (sh_insn_length_adjustment): Likewise for param "insn".
328 (sh_can_redirect_branch): Likewise for local "insn".
329 (find_r0_life_regions): Likewise for locals "end", "insn".
330 (sh_output_mi_thunk): Likewise for local "insns".
331
332 2014-08-25 David Malcolm <dmalcolm@redhat.com>
333
334 * config/score/score.c (score_output_mi_thunk): Strengthen local
335 "insn" from rtx to rtx_insn *.
336 (score_prologue): Likewise.
337
338 2014-08-25 David Malcolm <dmalcolm@redhat.com>
339
340 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
341 1 from rtx to rtx_insn *.
342 (s390_emit_jump): Likewise for return type.
343 (s390_emit_call): Likewise.
344 (s390_load_got): Likewise.
345
346 * config/s390/s390.c (last_scheduled_insn): Likewise for this
347 variable.
348 (s390_match_ccmode): Likewise for param "insn".
349 (s390_emit_jump): Likewise for return type.
350 (s390_split_branches): Likewise for local "label".
351 (struct constant): Strengthen field "label" from rtx to
352 rtx_code_label *.
353 (struct constant_pool): Likewise for field "label". Strengthen
354 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
355 rtx_insn *.
356 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
357 insns.
358 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
359 (s390_end_pool): Likewise.
360 (s390_dump_pool): Likewise for local "insn".
361 (s390_mainpool_start): Likewise.
362 (s390_chunkify_start): Likewise.
363 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
364 with insns. Strengthen locals "label", "jump", "barrier", "next",
365 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
366 (s390_chunkify_finish): Strengthen local "insn" from rtx to
367 rtx_insn *.
368 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
369 "jump", "label", "next_insn".
370 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
371 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
372 "tbegin_insn".
373 (s390_load_got): Likewise for return type and local "insns".
374 (s390_save_gprs_to_fprs): Likewise for local "insn".
375 (s390_restore_gprs_from_fprs): Likewise.
376 (pass_s390_early_mach::execute): Likewise.
377 (s390_emit_prologue): Likewise for local "insns".
378 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
379 rtx_code_label *.
380 (s390_emit_call): Strengthen return type and local "insn" from
381 rtx to rtx_insn *.
382 (s390_emit_tpf_eh_return): Likewise for local "insn".
383 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
384 "next_insn", introducing locals "s_pat", "rpat" to allow this.
385 (s390_fix_long_loop_prediction): Likewise for param "insn" and
386 local "cur_insn".
387 (s390_non_addr_reg_read_p): Likewise for param "insn".
388 (find_cond_jump): Likewise for return type and param "insn".
389 (s390_swap_cmp): Likewise for param "insn".
390 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
391 "prev_insn", "next_insn".
392 (s390_reorg): Likewise for locals "insn", "target".
393 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
394 (s390_sched_variable_issue): For now, rename param "insn" to
395 "uncast_insn", introducing a checked cast.
396 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
397 insn.
398 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
399 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
400
401 2014-08-25 David Malcolm <dmalcolm@redhat.com>
402
403 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
404 param from rtx to rtx_insn *.
405 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
406
407 2014-08-25 David Malcolm <dmalcolm@redhat.com>
408
409 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
410 4 from rtx to rtx_insn *.
411 (rs6000_final_prescan_insn): Likewise for first param.
412 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
413 local "insn".
414 (rs6000_get_some_local_dynamic_name): Likewise.
415 (output_cbranch): Likewise for param "insn".
416 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
417 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
418 (rs6000_emit_allocate_stack): Likewise for local "insn".
419 (load_cr_save): Likewise.
420 (restore_saved_cr): Likewise.
421 (restore_saved_lr): Likewise.
422 (emit_cfa_restores): Likewise.
423 (rs6000_output_function_epilogue): Likewise for locals "insn" and
424 "deleted_debug_label".
425 (rs6000_output_mi_thunk): Likewise for local "insn".
426 (rs6000_final_prescan_insn): Likewise for param "insn".
427
428 2014-08-25 David Malcolm <dmalcolm@redhat.com>
429
430 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
431 Strengthen param "insn" from rtx to rtx_insn *.
432 * config/picochip/picochip.c (picochip_current_prescan_insn):
433 Likewise for this variable.
434 (picochip_final_prescan_insn): Likewise for param "insn".
435
436 2014-08-25 David Malcolm <dmalcolm@redhat.com>
437
438 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
439 from rtx to rtx_insn *.
440 (pa_output_indirect_call): Likewise.
441 (pa_adjust_insn_length): Likewise.
442 (pa_attr_length_millicode_call): Likewise.
443 (pa_attr_length_call): Likewise.
444 (pa_attr_length_indirect_call): Likewise.
445
446 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
447 "insn".
448 (pa_attr_length_millicode_call): Likewise.
449 (pa_attr_length_call): Likewise.
450 (pa_output_call): Likewise.
451 (pa_attr_length_indirect_call): Likewise.
452 (pa_output_indirect_call): Likewise.
453
454 2014-08-25 David Malcolm <dmalcolm@redhat.com>
455
456 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
457 Strengthen first param from rtx to rtx_insn *.
458 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
459 param "insn".
460
461 2014-08-25 David Malcolm <dmalcolm@redhat.com>
462
463 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
464 type from rtx to rtx_insn *.
465 (mips_expand_call): Likewise.
466 (mips_adjust_insn_length): Likewise for first param.
467 (mips_output_conditional_branch): Likewise.
468 (mips_output_order_conditional_branch): Likewise.
469 (mips_final_prescan_insn): Likewise.
470
471 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
472 rtx_insn * for the SEQUENCE case.
473 (SEQ_END): Likewise.
474 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
475 (mips_emit_call_insn): Likewise, also for local "insn".
476 (mips16_gp_pseudo_reg): Likewise for local "scan".
477 (mips16_build_call_stub): Likewise for return type and for local
478 "insn". Introduce a new local "pattern" so that "insn" can indeed
479 be an insn.
480 (mips_expand_call): Strengthen return type and local "insn" from
481 rtx to rtx_insn *.
482 (mips_block_move_loop): Strengthen local "label" from rtx to
483 rtx_code_label *.
484 (mips_expand_synci_loop): Likewise for locals "label",
485 "end_label".
486 (mips_set_frame_expr): Strengthen local "insn" from rtx to
487 rtx_insn *.
488 (mips16e_collect_argument_saves): Likewise for locals "insn",
489 "next".
490 (mips_find_gp_ref): Likewise for param of callback for "pred"
491 param, and for local "insn".
492 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
493 (mips_insn_has_flexible_gp_ref_p): Likewise.
494 (mips_epilogue_emit_cfa_restores): Likewise for return type and
495 local "insn".
496 (mips_epilogue_set_cfa): Likewise for local "insn".
497 (mips_expand_epilogue): Likewise.
498 (mips_adjust_insn_length): Likewise for param "insn".
499 (mips_output_conditional_branch): Likewise.
500 (mips_output_order_conditional_branch): Likewise.
501 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
502 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
503 "falu2_turn_enabled_insn".
504 (mips_builtin_branch_and_move): Strengthen locals "true_label",
505 "done_label" from rtx to rtx_code_label *.
506 (struct mips16_constant): Likewise for field "label".
507 (mips16_add_constant): Likewise for return type.
508 (mips16_emit_constants_1): Strengthen return type and param "insn"
509 from rtx to rtx_insn *.
510 (mips16_emit_constants): Likewise for param "insn".
511 (mips16_insn_length): Likewise.
512 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
513 to rtx_code_label *.
514 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
515 from rtx to rtx_insn *.
516 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
517 "jump". Strengthen local "label" from rtx to rtx_code_label *.
518 (r10k_simplify_address): Strengthen param "insn" and local
519 "def_insn" from rtx to rtx_insn *.
520 (r10k_safe_address_p): Strengthen param "insn" from rtx to
521 rtx_insn *.
522 (r10k_needs_protection_p_1): Update target type of cast of data
523 from to rtx to rtx_insn *.
524 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
525 rtx * to rtx_insn **.
526 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
527 rtx_insn *.
528 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
529 (mips_call_expr_from_insn): Likewise for param "insn".
530 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
531 (mips_find_pic_call_symbol): Likewise for param "insn".
532 (mips_annotate_pic_calls): Likewise for local "insn".
533 (mips_sim_insn): Likewise for this variable.
534 (struct mips_sim): Likewise for field "insn" within elements of
535 last_set array.
536 (mips_sim_wait_reg): Likewise for param "insn".
537 (mips_sim_wait_regs): Likewise.
538 (mips_sim_wait_units): Likewise.
539 (mips_sim_wait_insn): Likewise.
540 (mips_sim_issue_insn): Likewise.
541 (mips_sim_finish_insn): Likewise.
542 (mips_seq_time): Likewise for param "seq" and local "insn".
543 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
544 locals "first", "second".
545 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
546 "last", "last2", "next".
547 (mips_avoid_hazard): Likewise for params "after", "insn".
548 (mips_reorg_process_insns): Likewise for locals "insn",
549 "last_insn", "subinsn", "next_insn".
550 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
551 (mips16_split_long_branches): Likewise for locals "insn" "jump",
552 "jump_sequence".
553 (mips_output_mi_thunk): Likewise for local "insn".
554 (mips_final_prescan_insn): Likewise for param "insn".
555
556 2014-08-25 David Malcolm <dmalcolm@redhat.com>
557
558 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
559 Strengthen return type and local "insns" from rtx to rtx_insn *.
560 (microblaze_legitimize_tls_address): Likewise for local "insns".
561 (microblaze_block_move_loop): Strengthen local "label" from rtx
562 to rtx_code_label *.
563 (microblaze_expand_prologue): Strengthen two locals named "insn"
564 from rtx to rtx_insn *.
565 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
566 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
567 "insn". Strengthen locals "div_label", "div_end_label" from rtx
568 to rtx_code_label *.
569
570 2014-08-25 David Malcolm <dmalcolm@redhat.com>
571
572 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
573 param from rtx to rtx_insn *.
574 (mep_reuse_lo): Likewise for third param.
575 (mep_use_post_modify_p): Likewise for first param.
576 (mep_core_address_length): Likewise.
577 (mep_cop_address_length): Likewise.
578 (mep_final_prescan_insn): Likewise.
579 (mep_store_data_bypass_p): Likewise for both params.
580 (mep_mul_hilo_bypass_p): Likewise.
581 (mep_ipipe_ldc_p): Likewise for param.
582
583 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
584 (mep_rewrite_mult): Likewise.
585 (mep_rewrite_mulsi3): Likewise.
586 (mep_rewrite_maddsi3): Likewise.
587 (mep_reuse_lo_p_1): Likewise.
588 (mep_reuse_lo_p): Likewise.
589 (mep_frame_expr): Likewise.
590 (mep_make_parallel): Likewise for both params.
591 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
592 local "insn".
593 (mep_use_post_modify_p): Likewise for param "insn".
594 (mep_core_address_length): Likewise.
595 (mep_cop_address_length): Likewise.
596 (mep_reg_set_in_function): Likewise for local "insn".
597 (mep_asm_without_operands_p): Likewise.
598 (F): Likewise for return type and param "x".
599 (add_constant): Likewise for local "insn".
600 (maybe_dead_move): Likewise for return type and local "insn".
601 (mep_expand_prologue): Likewise for local "insn".
602 (mep_final_prescan_insn): Likewise for param "insn".
603 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
604 "next", "follow", "x".
605 (mep_insert_repeat_label_last): Likewise for return type, param
606 "last_insn", and locals "next", "prev". Strengthen param "label"
607 from rtx to rtx_code_label *.
608 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
609 rtx_insn *.
610 (struct mep_doloop_end): Likewise for fields "insn" and
611 "fallthrough".
612 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
613 Strengthen local "repeat_label" from rtx to rtx_code_label *.
614 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
615 rtx_insn *.
616 (mep_invert_branch): Likewise for params "insn" and "after".
617 (mep_reorg_erepeat): Likewise for param "insns" and locals
618 "insn", "prev", "new_last", "barrier", "user". Strengthen local
619 "l" from rtx to rtx_code_label *.
620 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
621 from rtx to rtx_insn *.
622 (mep_reorg_addcombine): Likewise for param "insns" and locals
623 "i", "n".
624 (add_sp_insn_p): Likewise for param "insn".
625 (mep_reorg_noframe): Likewise for param "insns" and locals
626 "start_frame_insn", "end_frame_insn", "next".
627 (mep_reorg): Likewise for local "insns".
628 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
629 cast.
630 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
631 (mep_mul_hilo_bypass_p): Likewise.
632 (mep_ipipe_ldc_p): Likewise for param "insn".
633 (mep_make_bundle): Likewise for return type, param "cop" and local
634 "insn", splitting out the latter into a new local "seq" for when it
635 is a SEQUENCE rather than an insn.
636 (core_insn_p): Likewise for param "insn".
637 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
638 "last", "first", "note", "prev", "core_insn".
639
640 2014-08-25 David Malcolm <dmalcolm@redhat.com>
641
642 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
643 rtx to rtx_insn *.
644 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
645 (m68k_final_prescan_insn): Likewise for first param.
646
647 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
648 (m68k_set_frame_related): Likewise for param "insn".
649 (output_btst): Likewise for param "insn".
650 (m68k_final_prescan_insn): Likewise.
651 (m68k_move_to_reg): Likewise for local "insn".
652 (m68k_call_tls_get_addr): Likewise for local "insns".
653 (m68k_call_m68k_read_tp): Likewise.
654 (strict_low_part_peephole_ok): Likewise for param "first_insn".
655 (m68k_output_mi_thunk): Likewise for local "insn".
656
657 2014-08-25 David Malcolm <dmalcolm@redhat.com>
658
659 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
660 first param from rtx to rtx_insn *.
661 (iq2000_adjust_insn_length): Likewise.
662 (iq2000_output_conditional_branch): Likewise.
663 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
664 "insn" and local "nop_insn".
665 (iq2000_annotate_frame_insn): Likewise for param "insn".
666 (iq2000_expand_prologue): Likewise for both locals "insn".
667 (iq2000_adjust_insn_length): Likewise for param "insn".
668 (iq2000_output_conditional_branch): Likewise.
669
670 2014-08-25 David Malcolm <dmalcolm@redhat.com>
671
672 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
673 "insns" from rtx to rtx_insn *.
674 (ia64_emit_cond_move): Likewise for locals "insn", "first".
675 (struct spill_fill_data): Likewise for field "init_after" and for
676 elements of array field "prev_insn".
677 (spill_restore_mem): Likewise for locals "insn", "first".
678 (do_spill): Likewise for local "insn".
679 (do_restore): Likewise.
680 (ia64_expand_prologue): Likewise.
681 (ia64_expand_epilogue): Likewise.
682 (emit_insn_group_barriers): Likewise for locals "insn",
683 "last_label".
684 (emit_all_insn_group_barriers): Likewise for locals "insn",
685 "last".
686 (dfa_stop_insn): Likewise for this global.
687 (dfa_pre_cycle_insn): Likewise.
688 (ia64_nop): Likewise.
689 (final_emit_insn_group_barriers): Likewise for locals "insn",
690 "last".
691 (emit_predicate_relation_info): Likewise for locals "head", "n",
692 "insn", "b", "a".
693 (ia64_reorg): Likewise for local "insn".
694 (ia64_output_mi_thunk): Likewise.
695 (expand_vec_perm_interleave_2): Likewise for local "seq".
696
697 2014-08-25 David Malcolm <dmalcolm@redhat.com>
698
699 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
700 param 1 "insn" from rtx to rtx_insn *.
701 (ix86_use_lea_for_mov): Likewise.
702 (ix86_avoid_lea_for_addr): Likewise.
703 (ix86_split_lea_for_addr): Likewise.
704 (ix86_lea_for_add_ok): Likewise.
705 (ix86_output_call_insn): Likewise.
706
707 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
708 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
709 (ix86_output_function_epilogue): Likewise for locals "insn",
710 "deleted_debug_label".
711 (legitimize_tls_address): Likewise for local "insn".
712 (get_some_local_dynamic_name): Likewise.
713 (increase_distance): Likewise for params "prev", "next".
714 (distance_non_agu_define_in_bb): Likewise for params "insn",
715 "start" and locals "prev", "next".
716 (distance_non_agu_define): Likewise for param "insn".
717 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
718 locals "next", "prev".
719 (distance_agu_use): Likewise for param "insn".
720 (ix86_lea_outperforms): Likewise.
721 (ix86_ok_to_clobber_flags): Likewise.
722 (ix86_avoid_lea_for_add): Likewise.
723 (ix86_use_lea_for_mov): Likewise.
724 (ix86_avoid_lea_for_addr): Likewise.
725 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
726 (ix86_split_lea_for_addr): Likewise for param "insn".
727 (ix86_lea_for_add_ok): Likewise for param "insn".
728 (ix86_expand_carry_flag_compare): Likewise for local
729 "compare_seq".
730 (ix86_expand_int_movcc): Likewise.
731 (ix86_output_call_insn): Likewise for param "insn".
732 (ix86_output_call_insn): Likewise for local "i".
733 (x86_output_mi_thunk): Introduce local "insn", using it in place
734 of "tmp" when dealing with insns.
735 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
736 "start".
737 (ix86_pad_returns): Likewise for locals "ret", "prev".
738 (ix86_count_insn_bb): Likewise for local "insn".
739 (ix86_pad_short_function): Likewise for locals "ret", "insn".
740 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
741 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
742 (expand_vec_perm_interleave2): Likewise for local "seq".
743 (expand_vec_perm_vperm2f128_vblend): Likewise.
744 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
745 call to for_each_rtx with for_each_rtx_in_insn.
746
747 2014-08-25 David Malcolm <dmalcolm@redhat.com>
748
749 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
750 "label" from rtx to rtx_code_label *.
751 (ix86_expand_prologue): Likewise.
752 (ix86_expand_split_stack_prologue): Likewise for locals "label",
753 "varargs_label".
754 (ix86_split_idivmod): Likewise for locals "end_label" and
755 "qimode_label".
756 (ix86_expand_branch): Likewise for local "label2".
757 (ix86_expand_aligntest): Likewise for return type and local "label".
758 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
759 "top_label".
760 (expand_movmem_epilogue): Likewise for the various locals named
761 "label".
762 (expand_setmem_epilogue): Likewise.
763 (expand_small_movmem_or_setmem): Likewise for local "label".
764 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
765 Strengthen param "done_label" from rtx * to rtx_code_label **.
766 Strengthen locals "loop_label" and "label" from rtx to
767 rtx_code_label *.
768 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
769 Likewise for locals "loop_label", "label".
770 (ix86_expand_set_or_movmem): Likewise for locals "label",
771 "jump_around_label", "hot_label".
772 (ix86_expand_strlensi_unroll_1): Likewise for locals
773 "align_2_label", align_3_label", "align_4_label", "end_0_label",
774 "end_2_label".
775 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
776 (void ix86_emit_i387_log1p): Likewise for locals "label1",
777 "label2", "jump_label".
778 (ix86_expand_sse_compare_and_jump): Likewise for return type and
779 local "label".
780 (ix86_expand_lfloorceil): Likewise for local "label".
781 (ix86_expand_rint): Likewise.
782 (ix86_expand_floorceildf_32): Likewise.
783 (ix86_expand_floorceil): Likewise.
784 (ix86_expand_rounddf_32): Likewise.
785 (ix86_expand_trunc): Likewise.
786 (ix86_expand_truncdf_32): Likewise.
787 (ix86_expand_round): Likewise.
788
789 2014-08-25 David Malcolm <dmalcolm@redhat.com>
790
791 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
792 first param from rtx to rtx_insn *.
793 (h8300_insn_length_from_table): Likewise.
794 * config/h8300/h8300.c (F): Likewise for return type and param
795 "x".
796 (Fpa): Add a checked cast to rtx_insn *.
797 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
798 rtx_insn *.
799 (final_prescan_insn): Likewise for param "insn".
800 (h8300_binary_length): Likewise.
801 (h8300_insn_length_from_table): Likewise.
802
803 2014-08-25 David Malcolm <dmalcolm@redhat.com>
804
805 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
806 Strengthen first param "insn" from rtx to rtx_insn *.
807
808 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
809 Likewise.
810 (frame_insn): Likewise for return type. Introduce local "insn"
811 for use in place of local "x" for use as an rtx_insn *.
812 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
813 (epiphany_expand_prologue): Likewise for local "insn".
814 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
815 * config/epiphany/resolve-sw-modes.c
816 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
817 "seq".
818
819 2014-08-25 David Malcolm <dmalcolm@redhat.com>
820
821 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
822 param from rtx to rtx_insn *.
823 (c6x_final_prescan_insn): Likewise for first param.
824
825 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
826 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
827 (c6x_expand_compare): Strengthen local "insns" from rtx to
828 rtx_insn *.
829 (c6x_get_unit_specifier): Likewise for param "insn".
830 (c6x_print_unit_specifier_field): Likewise.
831 (c6x_final_prescan_insn): Likewise.
832 (emit_add_sp_const): Likewise for local "insn".
833 (c6x_expand_prologue): Likewise.
834
835 2014-08-25 David Malcolm <dmalcolm@redhat.com>
836
837 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
838 param 1 from rtx to rtx_insn *.
839 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
840 the various locals named "insn".
841 (expand_epilogue_reg_restore): Likewise.
842 (frame_related_constant_load): Likewise.
843 (add_to_reg): Likewise.
844 (emit_link_insn): Likewise.
845 (do_link): Likewise.
846 (expand_interrupt_handler_prologue): Likewise.
847 (branch_dest): Likewise for param "branch".
848 (asm_conditional_branch): Likewise for param "insn".
849 (gen_one_bundle): Likewise for elements of param "slot" and local
850 "t".
851 (bfin_gen_bundles): Likewise for locals "insn", "next" and
852 elements of local "slot".
853 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
854 "queue", "next_queue", "prev".
855 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
856 (add_sched_insns_for_speculation): Likewise for local "insn".
857
858 2014-08-25 David Malcolm <dmalcolm@redhat.com>
859
860 * config/avr/avr-protos.h (output_movqi): Strengthen first param
861 from rtx to rtx_insn *.
862 (output_movhi): Likewise.
863 (output_movsisf): Likewise.
864 (avr_out_tstsi): Likewise.
865 (avr_out_tsthi): Likewise.
866 (avr_out_tstpsi): Likewise.
867 (avr_out_compare): Likewise.
868 (avr_out_compare64): Likewise.
869 (avr_out_movpsi): Likewise.
870 (ashlqi3_out): Likewise.
871 (ashlhi3_out): Likewise.
872 (ashlsi3_out): Likewise.
873 (ashrqi3_out): Likewise.
874 (ashrhi3_out): Likewise.
875 (ashrsi3_out): Likewise.
876 (lshrqi3_out): Likewise.
877 (lshrhi3_out): Likewise.
878 (lshrsi3_out): Likewise.
879 (avr_out_ashlpsi3): Likewise.
880 (avr_out_ashrpsi3): Likewise.
881 (avr_out_lshrpsi3): Likewise.
882 (avr_out_fract): Likewise.
883 (avr_out_sbxx_branch): Likewise.
884 (avr_out_round): Likewise.
885 (avr_out_xload): Likewise.
886 (avr_out_movmem): Likewise.
887 (adjust_insn_length): Likewise.
888 (avr_out_lpm): Likewise.
889 (reg_unused_after): Likewise.
890 (_reg_unused_after): Likewise.
891 (avr_jump_mode): Likewise for second param.
892 (jump_over_one_insn): Likewise for first param.
893 (avr_final_prescan_insn): Likewise.
894 (out_shift_with_cnt): Likewise for second param.
895
896 * config/avr/avr.c (get_sequence_length): Likewise for param
897 "insns" and local "insn".
898 (emit_push_byte): Likewise for local "insn".
899 (emit_push_sfr): Likewise.
900 (avr_prologue_setup_frame): Likewise for locals "insn",
901 "fp_plus_insns", "sp_plus_insns".
902 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
903 "sp_plus_insns".
904 (avr_jump_mode): Likewise for param "insn".
905 (avr_final_prescan_insn): Likewise.
906 (avr_find_unused_d_reg): Likewise.
907 (avr_out_lpm_no_lpmx): Likewise.
908 (avr_out_lpm): Likewise.
909 (avr_out_xload): Likewise.
910 (output_movqi): Likewise.
911 (output_movhi): Likewise.
912 (out_movqi_r_mr): Likewise.
913 (out_movhi_r_mr): Likewise.
914 (out_movsi_r_mr): Likewise.
915 (out_movsi_mr_r): Likewise.
916 (output_movsisf): Likewise.
917 (avr_out_load_psi): Likewise.
918 (avr_out_store_psi): Likewise.
919 (avr_out_movpsi): Likewise.
920 (out_movqi_mr_r): Likewise.
921 (avr_out_movhi_mr_r_xmega): Likewise.
922 (out_movhi_mr_r): Likewise.
923 (compare_condition): Likewise for param "insn" and local "next".
924 (compare_sign_p): Likewise for param "insn".
925 (compare_diff_p): Likewise.
926 (compare_eq_p): Likewise.
927 (avr_out_compare): Likewise.
928 (avr_out_compare64): Likewise.
929 (avr_out_tsthi): Likewise.
930 (avr_out_tstpsi): Likewise.
931 (avr_out_tstsi): Likewise.
932 (out_shift_with_cnt): Likewise.
933 (ashlqi3_out): Likewise.
934 (ashlhi3_out): Likewise.
935 (avr_out_ashlpsi3): Likewise.
936 (ashlsi3_out): Likewise.
937 (ashrqi3_out): Likewise.
938 (ashrhi3_out): Likewise.
939 (avr_out_ashrpsi3): Likewise.
940 (ashrsi3_out): Likewise.
941 (lshrqi3_out): Likewise.
942 (lshrhi3_out): Likewise.
943 (avr_out_lshrpsi3): Likewise.
944 (lshrsi3_out): Likewise.
945 (avr_out_fract): Likewise.
946 (avr_out_round): Likewise.
947 (avr_adjust_insn_length): Likewise.
948 (reg_unused_after): Likewise.
949 (_reg_unused_after): Likewise.
950 (avr_compare_pattern): Likewise.
951 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
952 and locals "branch1", "branch2", "insn2", "jump".
953 (avr_reorg): Likewise for local "insn".
954 (avr_2word_insn_p): Likewise for param "insn".
955 (jump_over_one_insn_p): Likewise.
956 (avr_out_sbxx_branch): Likewise.
957 (avr_out_movmem): Likewise.
958
959 2014-08-25 David Malcolm <dmalcolm@redhat.com>
960
961 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
962 param from rtx to rtx_insn *.
963 (thumb1_final_prescan_insn): Likewise.
964 (thumb2_final_prescan_insn): Likewise.
965
966 * config/arm/arm.c (emit_set_insn): Strengthen return type from
967 rtx to rtx_insn *.
968 (struct minipool_node): Likewise for field "insn".
969 (dump_minipool): Likewise for param "scan".
970 (create_fix_barrier): Likewise for local "from". Strengthen local
971 "label" from rtx to rtx_code_label *.
972 (push_minipool_barrier): Strengthen param "insn" from rtx to
973 rtx_insn *.
974 (push_minipool_fix): Likewise.
975 (note_invalid_constants): Likewise.
976 (thumb2_reorg): Likewise for local "insn".
977 (arm_reorg): Likewise.
978 (thumb2_final_prescan_insn): Likewise for param
979 "insn" and local "first_insn".
980 (arm_final_prescan_insn): Likewise for param "insn" and locals
981 "start_insn", "this_insn".
982 (arm_debugger_arg_offset): Likewise for param "insn".
983 (thumb1_emit_multi_reg_push): Likewise for return type and local
984 "insn".
985 (thumb1_final_prescan_insn): Likewise for param "insn".
986 (thumb_far_jump_used_p): Likewise for local "insn".
987 (thumb1_expand_prologue): Likewise.
988 (arm_expand_epilogue_apcs_frame): Likewise.
989 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
990 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
991 from rtx to rtx_code_label *.
992 (arm_split_atomic_op): Likewise for local "label".
993 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
994
995 2014-08-25 David Malcolm <dmalcolm@redhat.com>
996
997 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
998 first param from rtx to rtx_insn *.
999 (arc_verify_short): Likewise.
1000 (arc_short_long): Likewise.
1001 (arc_need_delay): Likewise.
1002
1003 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
1004 "target_insn".
1005 (arc_ccfsm_advance): Likewise for param "insn" and locals
1006 "start_insn", "this_insn".
1007 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
1008 (arc_ccfsm_post_advance): Likewise for param "insn".
1009 (arc_next_active_insn): Likewise for return type and param "insn".
1010 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
1011 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
1012 (output_short_suffix): Likewise for local "insn".
1013 (arc_final_prescan_insn): Likewise for param "insn". Remove
1014 now-redundant checked cast.
1015 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
1016 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
1017 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
1018 for use where lc_set became an insn.
1019 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
1020 rtx to rtx_insn *.
1021 (arc_get_insn_variants): Likewise for local "prev".
1022 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
1023 "next".
1024 (arc_predicate_delay_insns): Likewise for local "insn".
1025 (arc_pad_return): Likewise for local "prev". For now, add a
1026 checked cast when extracting the insn from "final_sequence".
1027 (arc_short_long): Likewise for param "insn".
1028 (arc_need_delay): Likewise for param "insn" and local "next".
1029 (arc_label_align): Likewise for locals "prev", "next".
1030
1031 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1032
1033 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
1034 "insn" from rtx to rtx_insn *.
1035 (alpha_gp_save_rtx): Likewise for local "seq".
1036 (alpha_instantiate_decls): Likewise for local "top".
1037 (get_some_local_dynamic_name): Likewise for local "insn".
1038 (alpha_does_function_need_gp): Likewise.
1039 (set_frame_related_p): Likewise for return type and for locals
1040 "seq" and "insn".
1041 (emit_frame_store_1): Likewise for local "insn".
1042 (alpha_expand_prologue): Likewise for locals "insn", "seq".
1043 (alpha_end_function): Likewise for local "insn".
1044 (alpha_output_mi_thunk_osf): Likewise.
1045 (alphaev4_insn_pipe): Likewise for param "insn".
1046 (alphaev5_insn_pipe): Likewise.
1047 (alphaev4_next_group): Likewise for return type and param 1
1048 "insn".
1049 (alphaev5_next_group): Likewise.
1050 (alpha_align_insns_1): Likewise for return type and param 1 of
1051 callback param "next_group", and for locals "i", "next", "prev",
1052 "where", "where2", "insn".
1053
1054 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
1055
1056 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
1057 rather than modifying the stmt.
1058
1059 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1060
1061 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
1062 cgraph_state conversion.
1063
1064 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1065
1066 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1067 Strengthen local "insns" from rtx to rtx_insn *.
1068 (aarch64_set_frame_expr): Likewise for local "insn".
1069 (aarch64_save_or_restore_fprs): Likewise.
1070 (aarch64_save_or_restore_callee_save_registers): Likewise.
1071 (aarch64_expand_prologue): Likewise.
1072 (aarch64_expand_epilogue): Likewise.
1073 (aarch64_output_mi_thunk): Likewise.
1074 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
1075 "label2" from rtx to rtx_code_label *.
1076 (aarch64_split_atomic_op): Likewise for local "label".
1077
1078 2014-08-25 Martin Liska <mliska@suse.cz>
1079
1080 * cgraph.h (symtab_node):
1081 (bool needed_p (void)): created from decide_is_symbol_needed
1082 (bool referred_to_p (void)): created from referred_to_p
1083 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
1084 * cgraph.h (cgraph_node):
1085 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
1086 (void expand (void)): created from expand_function
1087 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
1088 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
1089 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
1090 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
1091 * cgraph.h (varpool_node):
1092 (static void add (tree decl): created from varpool_add_new_variable
1093 * cgraph.h (cgraph_edge):
1094 void remove (void);
1095 (void remove_caller (void)): created from cgraph_edge_remove_caller
1096 (void remove_callee (void)): created from cgraph_edge_remove_callee
1097 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
1098 created from cgraph_set_call_stmt
1099 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
1100 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
1101 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
1102 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
1103 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
1104 created from cgraph_speculative_call_info
1105 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
1106 int freq_scale, bool update_original)): created from cgraph_clone_edge
1107 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
1108 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
1109 (bool recursive_p (void)): created from cgraph_edge_recursive_p
1110 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
1111 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
1112 (static void rebuild_references (void)): created from cgraph_rebuild_references
1113 * cgraph.h (symbol_table):
1114 (create_reference): renamed from add_reference
1115 (maybe_create_reference): renamed from maybe_add_reference
1116 (void register_symbol (symtab_node *node)): new function
1117 (void clear_asm_symbols (void)): new function
1118 (void unregister (symtab_node *node)): new function
1119 (void release_symbol (cgraph_node *node, int uid)): new function
1120 (cgraph_node * allocate_cgraph_symbol (void)): new function
1121 (void initialize (void)): created from cgraph_init
1122 (symtab_node *first_symbol (void)):new function
1123 (asm_node *first_asm_symbol (void)):new function
1124 (symtab_node *first_defined_symbol (void)):new function
1125 (varpool_node *first_variable (void)):new function
1126 (varpool_node *next_variable (varpool_node *node)):new function
1127 (varpool_node *first_static_initializer (void)):new function
1128 (varpool_node *next_static_initializer (varpool_node *node)):new function
1129 (varpool_node *first_defined_variable (void)):new function
1130 (varpool_node *next_defined_variable (varpool_node *node)):new function
1131 (cgraph_node *first_defined_function (void)):new function
1132 (cgraph_node *next_defined_function (cgraph_node *node)):new function
1133 (cgraph_node *first_function (void)):new function
1134 (cgraph_node *next_function (cgraph_node *node)):new function
1135 (cgraph_node *first_function_with_gimple_body (void)):new function
1136 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
1137 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
1138 created from symtab_remove_unreachable_nodes
1139 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
1140 (void process_new_functions (void)): created from cgraph_process_new_functions
1141 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
1142 (bool output_variables (void)): created from varpool_node::output_variables
1143 (void output_asm_statements (void)): created from output_asm_statements
1144 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
1145 (void compile (void)): created from compile
1146 (void output_weakrefs (void)): created from output_weakrefs
1147 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
1148 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
1149 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
1150 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
1151 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
1152 created from cgraph_next_function_with_gimple_body
1153 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
1154 created from cgraph_remove_edge_removal_hook
1155 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
1156 created from cgraph_add_node_removal_hook
1157 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
1158 created from cgraph_remove_node_removal_hook
1159 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
1160 created from varpool_add_node_removal_hook
1161 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
1162 created from varpool_remove_node_removal_hook
1163 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
1164 created from cgraph_add_function_insertion_hook
1165 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
1166 created from cgraph_remove_function_insertion_hook
1167 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
1168 created from varpool_add_variable_insertion_hook
1169 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
1170 created from varpool_remove_variable_insertion_hook
1171 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
1172 created from cgraph_add_edge_duplication_hook
1173 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
1174 created from cgraph_remove_edge_duplication_hook
1175 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
1176 created from cgraph_add_node_duplication_hook
1177 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
1178 created from cgraph_remove_node_duplication_hook
1179 (void call_edge_removal_hooks (cgraph_edge *e)):
1180 created from cgraph_call_edge_removal_hooks
1181 (void call_cgraph_insertion_hooks (cgraph_node *node)):
1182 created from call_function_insertion_hooks
1183 (void call_cgraph_removal_hooks (cgraph_node *node)):
1184 created from cgraph_call_node_removal_hooks
1185 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
1186 created from cgraph_node::call_duplication_hooks
1187 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
1188 created from cgraph_call_edge_duplication_hooks
1189 (void call_varpool_removal_hooks (varpool_node *node)):
1190 created from varpool_call_node_removal_hooks
1191 (void call_varpool_insertion_hooks (varpool_node *node)):
1192 created from varpool_call_variable_insertion_hooks
1193 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
1194 created from insert_to_assembler_name_hash
1195 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
1196 created from unlink_from_assembler_name_hash
1197 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
1198 created from symtab_prevail_in_asm_name_hash
1199 (void symtab_initialize_asm_name_hash (void)):
1200 created from symtab_initialize_asm_name_hash
1201 (void change_decl_assembler_name (tree decl, tree name)):
1202 created from change_decl_assembler_name
1203 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
1204 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
1205 created from decl_assembler_name_hash
1206 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
1207 created from decl_assembler_name_equal
1208 (static hashval_t hash_node_by_assembler_name (const void *p)):
1209 created from hash_node_by_assembler_name
1210 (static int eq_assembler_name (const void *p1, const void *p2)):
1211 created from eq_assembler_name
1212
1213 2014-08-25 Marek Polacek <polacek@redhat.com>
1214
1215 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
1216
1217 2014-08-25 Petr Murzin <petr.murzin@intel.com>
1218
1219 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
1220 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
1221 SWI1248_AVX512BW mode iterator.
1222
1223 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
1224
1225 PR target/62111
1226 * config/sh/predicates.md (general_extend_operand): Disable
1227 TRUNCATE before reload completes.
1228
1229 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
1230
1231 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
1232
1233 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
1234
1235 PR target/61996
1236 * config/sh/sh.opt (musermode): Allow negative form.
1237 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
1238 targets that don't support it.
1239 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
1240 Document -mno-usermode option.
1241
1242 2014-08-24 Kito Cheng <kito@0xlab.org>
1243
1244 * system.h (CALLER_SAVE_PROFITABLE): Poison.
1245 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
1246 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
1247 * doc/tm.texi: Regenerate.
1248
1249 2014-08-24 Kito Cheng <kito@0xlab.org>
1250
1251 * ira.c: Fix typo in comment.
1252
1253 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1254
1255 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
1256 Deprecate c++1y. Change language to reflect greater confidence in C++14.
1257
1258 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
1259
1260 PR target/62038
1261 * config/pa/pa.c (pa_output_function_epilogue): Don't set
1262 last_address when the current function is a thunk.
1263 (pa_asm_output_mi_thunk): When we don't have named sections or they
1264 are not being used, check that thunk can reach the stub table with a
1265 short branch.
1266
1267 2014-08-23 David Malcolm <dmalcolm@redhat.com>
1268
1269 * web.c (union_match_dups): Strengthen param "insn" from rtx to
1270 rtx_insn *.
1271 (pass_web::execute): Likewise for local "insn".
1272
1273 2014-08-23 David Malcolm <dmalcolm@redhat.com>
1274
1275 * var-tracking.c (struct micro_operation_def): Strengthen field
1276 "insn" from rtx to rtx_insn *.
1277 (struct emit_note_data_def): Likewise.
1278 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
1279 (vt_stack_adjustments): Likewise for local "insn".
1280 (adjust_insn): Likewise for param "insn".
1281 (val_store): Likewise.
1282 (val_resolve): Likewise.
1283 (struct count_use_info): Likewise for field "insn".
1284 (log_op_type): Likewise for param "insn".
1285 (reverse_op): Likewise.
1286 (prepare_call_arguments): Likewise.
1287 (add_with_sets): The initial param takes an insn, but we can't
1288 yet strengthen it from rtx to rtx_insn * since it's used as a
1289 cselib_record_sets_hook callback. For now rename initial param
1290 from "insn" to "uncast_insn", and introduce a local "insn" of
1291 the stronger rtx_insn * type, with a checked cast.
1292 (compute_bb_dataflow): Strengthen local "insn" from rtx to
1293 rtx_insn *.
1294 (emit_note_insn_var_location): Likewise.
1295 (emit_notes_for_changes): Likewise.
1296 (emit_notes_for_differences): Likewise.
1297 (next_non_note_insn_var_location): Likewise for return type and
1298 for param "insn".
1299 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
1300 (vt_initialize): Likewise for local "insn".
1301 (delete_debug_insns): Likewise for locals "insn" and "next".
1302
1303 2014-08-23 David Malcolm <dmalcolm@redhat.com>
1304
1305 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
1306 rtx_insn *.
1307 (mark_constant_pool): Likewise for local "insn".
1308
1309 2014-08-23 David Malcolm <dmalcolm@redhat.com>
1310
1311 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
1312 rtx to rtx_insn *.
1313 (dead_debug_promote_uses): Likewise.
1314 (dead_debug_insert_temp): Likewise.
1315
1316 2014-08-23 David Malcolm <dmalcolm@redhat.com>
1317
1318 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
1319 from const_rtx to const rtx_insn *.
1320 (store_killed_after): Likewise. Strengthen locals "last", "act"
1321 from rtx to rtx_insn *.
1322 (store_killed_before): Strengthen param "insn" from const_rtx to
1323 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
1324 (find_moveable_store): Strengthen param "insn" from rtx to
1325 rtx_insn *.
1326 (compute_store_table): Likewise for local "insn".
1327 (insert_insn_start_basic_block): Likewise for param "insn" and
1328 locals "prev", "before", "insn".
1329 (insert_store): For now, add a checked cast to rtx_insn * on the
1330 result of gen_move_insn.
1331 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
1332 to rtx_insn *.
1333 (replace_store_insn): Likewise. For now, add a checked cast to
1334 rtx_insn * on the result of gen_move_insn.
1335
1336 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1337
1338 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
1339 rtx_insn *.
1340 (expand_sjlj_dispatch_table): Likewise.
1341
1342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1343
1344 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
1345 "insn" from rtx to rtx_insn *.
1346
1347 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1348
1349 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
1350 "insn" from rtx to rtx_insn *.
1351 (dup_block_and_redirect): Likewise for param 3 "before".
1352
1353 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
1354 from rtx to rtx_insn *.
1355 (move_insn_for_shrink_wrap): Likewise.
1356 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
1357 (dup_block_and_redirect): Likewise for param "before" and local
1358 "insn".
1359 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
1360 "end".
1361 (convert_to_simple_return): Likewise for local "start".
1362
1363 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
1364 Strengthen local "insn" from rtx to rtx_insn *, for use when
1365 invoking requires_stack_frame_p.
1366
1367 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1368
1369 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
1370 rtx_insn *.
1371 (speculate_expr): Likewise for locals "orig_insn_rtx",
1372 "spec_insn_rtx".
1373 (eq_transformed_insns): Likewise for locals "i1", "i2".
1374 (check_for_new_jump): Likewise for return type and local "end".
1375 (find_new_jump): Likewise for return type and local "jump".
1376 (sel_split_edge): Likewise for local "jump".
1377 (sel_create_recovery_block): Likewise.
1378 (sel_redirect_edge_and_branch_force): Likewise.
1379 (sel_redirect_edge_and_branch): Likewise.
1380
1381 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1382
1383 * sel-sched.c (substitute_reg_in_expr): Strengthen local
1384 "new_insn" from rtx to rtx_insn *.
1385 (create_insn_rtx_with_rhs): Likewise for return type and for local
1386 "insn_rtx".
1387 (create_insn_rtx_with_lhs): Likewise.
1388 (create_speculation_check): Likewise for local "insn_rtx".
1389 (implicit_clobber_conflict_p): Likewise for local "insn".
1390 (get_expr_cost): Likewise.
1391 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
1392 (move_cond_jump): Likewise for locals "next", "prev", "link",
1393 "head", "from", "to".
1394
1395 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1396
1397 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
1398 "next" from rtx to rtx_insn *.
1399 (find_conditional_protection): Likewise for local "next".
1400 (is_conditionally_protected): Likewise for local "insn1".
1401 (is_pfree): Likewise for locals "insn1", "insn2".
1402
1403 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1404
1405 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
1406 from rtx to rtx_insn *.
1407
1408 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
1409 locals "insn1", "insn2" from rtx to rtx_insn *.
1410 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
1411 locals "insn", "prev", "last_jump", "next_tail".
1412 (schedule_ebb): Likewise for params "head", "tail".
1413 (schedule_ebbs): Likewise for locals "tail", "head".
1414
1415 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
1416 to rtx_insn on "last_insn" in one of the invocations of
1417 schedule_ebb.
1418
1419 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1420
1421 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
1422 "elem", "insn" from rtx to rtx_insn *.
1423 (change_spec_dep_to_hard): Likewise.
1424 (get_back_and_forw_lists): Likewise for local "con".
1425 (sd_add_dep): Likewise for locals "elem", "insn".
1426 (sd_resolve_dep): Likewise for locals "pro", "con".
1427 (sd_unresolve_dep): Likewise.
1428 (sd_delete_dep): Likewise.
1429 (chain_to_prev_insn): Likewise for local "pro".
1430 (find_inc): Likewise for locals "pro", "con".
1431
1432 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1433
1434 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
1435 to rtx_insn *.
1436 (reg_set_between_p): Strengthen local "insn" from const_rtx to
1437 const rtx_insn *.
1438 (modified_between_p): Strengthen local "insn" from rtx to
1439 rtx_insn *.
1440 (remove_reg_equal_equiv_notes_for_regno): Likewise.
1441 (keep_with_call_p): Strengthen local "i2" from const_rtx to
1442 const rtx_insn *.
1443
1444 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1445
1446 * resource.c (next_insn_no_annul): Strengthen local "next" from
1447 rtx to rtx_insn *.
1448 (mark_referenced_resources): Likewise for local "insn".
1449
1450 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1451
1452 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
1453 to rtx_insn *.
1454 (find_reloads): Likewise for param 1.
1455 (subst_reloads): Likewise for sole param.
1456 (find_equiv_reg): Likwise for param 2.
1457 (regno_clobbered_p): Likwise for param 2.
1458 (reload): Likewise for param 1.
1459
1460 * caller-save.c (save_call_clobbered_regs): Strengthen local
1461 "insn" from rtx to rtx_insn *.
1462 (insert_one_insn): Likewise for local "insn".
1463
1464 * reload.c (this_insn): Likewise for this global.
1465 (find_reloads): Likewise for param "insn".
1466 (find_reloads_toplev): Likewise.
1467 (find_reloads_address): Likewise.
1468 (subst_reg_equivs): Likewise.
1469 (update_auto_inc_notes): Likewise.
1470 (find_reloads_address_1): Likewise.
1471 (find_reloads_subreg_address): Likewise.
1472 (subst_reloads): Likewise.
1473 (find_equiv_reg): Likewise, also for local "p".
1474 (regno_clobbered_p): Likewise for param "insn".
1475
1476 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
1477 array.
1478 (spill_reg_store): Likewise for the elements of this array.
1479 (remove_init_insns): Likewise for local "equiv_insn".
1480 (will_delete_init_insn_p): Likewise for param "insn".
1481 (reload): Likewise for param ""first" and local "insn".
1482 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
1483 rtx_insn *.
1484 (calculate_elim_costs_all_insns): Likewise.
1485 (delete_caller_save_insns): Likewise.
1486 (spill_failure): Likewise for param "insn".
1487 (delete_dead_insn): Likewise.
1488 (set_label_offsets): Likewise.
1489 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
1490 "prev_insn".
1491 (elimination_costs_in_insn): Likewise for param "insn".
1492 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
1493 when referring to an insn.
1494 (set_initial_label_offsets): Likewise.
1495 (set_offsets_for_label): Strengthen param "insn" from rtx to
1496 rtx_insn *.
1497 (init_eliminable_invariants): Likewise for param "first" and local
1498 "insn".
1499 (fixup_eh_region_note): Likewise for param "insn".
1500 (reload_as_needed): Likewise for locals "prev", "insn",
1501 "old_next", "old_prev", "next".
1502 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
1503 "last".
1504 (reload_inheritance_insn): Strengthen elements of this array from
1505 rtx to rtx_insn *.
1506 (failed_reload): Likewise for param "insn".
1507 (choose_reload_regs): Likewise for local "insn". Replace use of
1508 NULL_RTX with NULL when referring to an insn.
1509 (input_reload_insns): Strengthen elements of this array from rtx
1510 to rtx_insn *.
1511 (other_input_address_reload_insns): Likewise for this global.
1512 (other_input_reload_insns): Likewise for this global.
1513 (input_address_reload_insns): Likwise for the elements of this
1514 array.
1515 (inpaddr_address_reload_insns): Likwise for the elements of this
1516 array.
1517 (output_reload_insns): Likewise for the elements of this array.
1518 (output_address_reload_insns): Likewise for the elements of this
1519 array.
1520 (outaddr_address_reload_insns): Likewise for the elements of this
1521 array.
1522 (operand_reload_insns): Likewise for this global.
1523 (other_operand_reload_insns): Likewise for this global.
1524 (other_output_reload_insns): Likewise for the elements of this
1525 array.
1526 (new_spill_reg_store): Likewise for the elements of this
1527 array.
1528 (emit_input_reload_insns): Likewise for locals "insn", "temp".
1529 Strengthen local "where" from rtx * to rtx_insn **.
1530 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
1531 from rtx to rtx_insn *.
1532 (do_input_reload): Likewise for local "insn".
1533 (do_output_reload): Likewise for local "insn".
1534 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
1535 (emit_insn_if_valid_for_reload): Likewise for return type and local
1536 "last". Add checked cast to rtx_insn when returning "insn" since
1537 this has been through emit_insn.
1538 (gen_reload): Strengthen return type and locals "last", "insn", "set"
1539 from rtx to rtx_insn *. Add checked cast to rtx_insn when
1540 returning "insn" since it's been through
1541 emit_insn_if_valid_for_reload at this point.
1542 (delete_output_reload): Strengthen param "insn" and locals
1543 "output_reload_insn", "i2" from rtx to rtx_insn *.
1544 (delete_address_reloads): Likewise for params "dead_insn",
1545 "current_insn" and locals "prev", "next".
1546 (delete_address_reloads_1): Likewise for params "dead_insn",
1547 "current_insn" and locals "prev", "i2".
1548 (inc_for_reload): Likewise for locals "last", "add_insn".
1549 (add_auto_inc_notes): Strengthen param "insn" from rtx to
1550 rtx_insn *.
1551
1552 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
1553 param of this duplicate of the prototype from reload.h
1554
1555 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1556
1557 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
1558 rtx to rtx_insn *.
1559 (regstat_bb_compute_calls_crossed): Likewise.
1560
1561 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1562
1563 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
1564 to rtx_insn *.
1565 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
1566 with an insn.
1567 (regrename_analyze): Strengthen local "insn" from rtx to
1568 rtx_insn *.
1569 (scan_rtx_reg): Likewise for param "insn".
1570 (scan_rtx_address): Likewise.
1571 (scan_rtx): Likewise.
1572 (restore_operands): Likewise.
1573 (record_out_operands): Likewise.
1574 (build_def_use): Likewise for local "insn". Replace use of
1575 NULL_RTX with NULL when dealing with an insn.
1576
1577 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1578
1579 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
1580 * reginfo.c (reg_scan): Likewise, also for local "insn".
1581 (reg_scan_mark_refs): Likewise for param "insn".
1582 (init_subregs_of_mode): Likewise for local "insn".
1583
1584 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1585
1586 * regcprop.c (struct queued_debug_insn_change): Strengthen field
1587 "insn" from rtx to rtx_insn *.
1588 (replace_oldest_value_reg): Likewise for param "insn".
1589 (replace_oldest_value_addr): Likewise.
1590 (replace_oldest_value_mem): Likewise.
1591 (apply_debug_insn_changes): Likewise for local "last_insn".
1592 (copyprop_hardreg_forward_1): Likewise for local "insn".
1593
1594 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1595
1596 * reg-stack.c (next_flags_user): Strengthen return type and param
1597 "insn" from rtx to rtx_insn *.
1598 (straighten_stack): Likewise for param "insn".
1599 (check_asm_stack_operands): Likewise.
1600 (remove_regno_note): Likewise.
1601 (emit_pop_insn): Likewise for return type, param "insn", local
1602 "pop_insn".
1603 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
1604 "limit" from rtx to rtx_insn *.
1605 (swap_to_top): Likewise for param "insn".
1606 (move_for_stack_reg): Likewise.
1607 (move_nan_for_stack_reg): Likewise.
1608 (swap_rtx_condition): Likewise.
1609 (compare_for_stack_reg): Likewise.
1610 (subst_all_stack_regs_in_debug_insn): Likewise.
1611 (subst_stack_regs_pat): Likewise, and local "insn2".
1612 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
1613 rtx_insn *.
1614 (subst_stack_regs): Likewise.
1615 (change_stack): Likewise.
1616 (convert_regs_1): Likewise for locals "insn", "next".
1617
1618 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1619
1620 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
1621 rtx_insn *.
1622 (combine_set_extension): Likewise for param "curr_insn".
1623 (transform_ifelse): Likewise for param "def_insn".
1624 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
1625 from vec<rtx> * to vec<rtx_insn *> *.
1626 (is_cond_copy_insn): Likewise for param "insn".
1627 (struct ext_state): Strengthen the four vec fields from vec<rtx>
1628 to vec<rtx_insn *>.
1629 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
1630 local "def_insn" from rtx to rtx_insn *.
1631 (get_sub_rtx): Likewise for param "def_insn".
1632 (merge_def_and_ext): Likewise.
1633 (combine_reaching_defs): Likewise.
1634 (add_removable_extension): Likewise for param "insn".
1635 (find_removable_extensions): Likewise for local "insn".
1636 (find_and_remove_re): Likewise for locals "curr_insn" and
1637 "def_insn". Strengthen locals "reinsn_del_list" and
1638 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
1639
1640 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1641
1642 * recog.c (split_insn): Strengthen param "insn" and locals
1643 "first", "last" from rtx to rtx_insn *.
1644 (split_all_insns): Likewise for locals "insn", "next".
1645 (split_all_insns_noflow): Likewise.
1646
1647 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1648
1649 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
1650 const rtx_insn *.
1651 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
1652 (debug_rtx_find): Likewise for param 1 "x".
1653
1654 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
1655 const_rtx to const rtx_insn *. Likewise for local "insn".
1656 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
1657 (debug_rtx_find): Likewise for param 1 "x".
1658 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
1659 from const_rtx to const rtx_insn * within the appropriate cases of
1660 the switch statement.
1661
1662 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
1663 Strengthen local "insns" from rtx to rtx_insn * since this is
1664 passed to a call to debug_rtx_list.
1665
1666 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1667
1668 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
1669 to rtx_insn *.
1670
1671 * function.c (stack_protect_epilogue): Add checked cast to
1672 rtx_insn for now when invoking predict_insn_def.
1673
1674 * predict.c (predict_insn): Strengthen param "insn" from rtx to
1675 rtx_insn *.
1676 (predict_insn_def): Likewise.
1677 (rtl_predict_edge): Likewise for local "last_insn".
1678 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
1679 const rtx_insn *.
1680 (combine_predictions_for_insn): Strengthen param "insn" from rtx
1681 to rtx_insn *.
1682 (bb_estimate_probability_locally): Likewise for local "last_insn".
1683 (expensive_function_p): Likewise for local "insn".
1684
1685 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
1686 local "jmp", since this is used when invoking predict_insn_def.
1687
1688 2014-08-22 Marek Polacek <polacek@redhat.com>
1689
1690 PR c++/62199
1691 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
1692
1693 2014-08-22 Marek Polacek <polacek@redhat.com>
1694
1695 PR c/61271
1696 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
1697 a comparison in parens.
1698 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
1699 in parens.
1700
1701 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1702
1703 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
1704 rtx_insn *.
1705
1706 * cprop.c (fis_get_condition): Likewise.
1707
1708 * postreload.c (reload_cse_regs): Likewise for param "first".
1709 (reload_cse_simplify): Likewise for param "insn".
1710 (reload_cse_regs_1): Likewise for local "insn".
1711 (reload_cse_simplify_set): Likewise for param "insn".
1712 (reload_cse_simplify_operands): Likewise.
1713 (struct reg_use): Likewise for field "insn".
1714 (reload_combine_purge_insn_uses): Likewise for param "insn".
1715 (fixup_debug_insns): Likewise for params "from", "to" and local
1716 "insn".
1717 (try_replace_in_use): Likewise for local "use_insn".
1718 (reload_combine_recognize_const_pattern): Likewise for param
1719 "insn" and locals "add_moved_after_insn", "use_insn".
1720 (reload_combine_recognize_pattern): Likewise for param "insn" and
1721 local "prev".
1722 (reload_combine): Likewise for locals "insn", "prev".
1723 (reload_combine_note_use): Likewise for param "insn".
1724 (move2add_use_add2_insn): Likewise.
1725 (move2add_use_add3_insn): Likewise.
1726 (reload_cse_move2add): Likewise, also for local "next".
1727 (move2add_note_store): Likewise for local "insn".
1728
1729 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1730
1731 * postreload-gcse.c (struct occr): Strengthen field "insn" from
1732 rtx to rtx_insn *.
1733 (struct unoccr): Likewise.
1734 (struct modifies_mem): Likewise.
1735 (alloc_mem): Likewise for local "insn".
1736 (insert_expr_in_table): Likewise for param "insn".
1737 (dump_expr_hash_table_entry): Likewise for local "insn".
1738 (oprs_unchanged_p): Likewise for param "insn".
1739 (load_killed_in_block_p): Likewise for local "setter".
1740 (record_last_reg_set_info): Likewise for param "insn".
1741 (record_last_reg_set_info_regno): Likewise.
1742 (record_last_mem_set_info): Likewise.
1743 (record_last_set_info): Likewise for local "last_set_insn".
1744 (record_opr_changes): Likewise for param "insn".
1745 (hash_scan_set): Likewise.
1746 (compute_hash_table): Likewise for local "insn".
1747 (get_avail_load_store_reg): Likewise for param "insn".
1748 (eliminate_partially_redundant_load): Likewise, also for locals
1749 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
1750 RTX for insns.
1751 (eliminate_partially_redundant_loads): Likewise for local "insn".
1752
1753 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1754
1755 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
1756 rtx to rtx_insn *.
1757 (expand_binop): Likewise for locals "entry_last", "last", "insns"
1758 (expand_twoval_unop): Likewise for locals entry_last", "last".
1759 (expand_twoval_binop): Likewise.
1760 (expand_twoval_binop_libfunc): Likewise for local "insns".
1761 (widen_leading): Likewise for local "last".
1762 (expand_doubleword_clz): Likewise for local "seq". Strengthen
1763 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
1764 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
1765 (expand_parity): Likewise for locals "last" and "seq".
1766 (expand_ffs): Likewise for local "seq". Strengthen local
1767 "nonzero_label" from rtx to rtx_code_label *.
1768 (expand_absneg_bit): Strengthen local "insns" from rtx to
1769 rtx_insn *.
1770 (expand_unop_direct): Likewise for local "last".
1771 (expand_unop): Likewise for locals "last", "insns".
1772 (expand_abs_nojump): Likewise for local "last".
1773 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
1774 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
1775 rtx_insn *.
1776 (expand_copysign_absneg): Strengthen local "label" from rtx to
1777 rtx_code_label *.
1778 (expand_copysign_bit): Strengthen local "insns" from rtx to
1779 rtx_insn *.
1780 (struct no_conflict_data): Likewise for fields "first", "insn".
1781 (emit_libcall_block_1): Likewise for param "insns" and locals
1782 "next", "last", "insn".
1783 (emit_libcall_block): For now, add a checked cast to rtx_insn *
1784 on "insns" when invoking emit_libcall_block_1. Ultimately we
1785 want to strengthen insns itself.
1786 (prepare_cmp_insn): Strengthen local "last" from rtx to
1787 rtx_insn *.
1788 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
1789 (prepare_float_lib_cmp): Likewise for local "insns".
1790 (emit_conditional_move): Likewise for local "last".
1791 (emit_conditional_add): Likewise.
1792 (have_sub2_insn): Likewise for local "seq".
1793 (expand_float): Likewise for local "insns". Strengthen locals
1794 "label", "neglabel" from rtx to rtx_code_label *.
1795 (expand_fix): Likewise for locals "last", "insn", "insns" (to
1796 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
1797 (expand_fixed_convert): Likewise for local "insns" (to
1798 rtx_insn *).
1799 (expand_sfix_optab): Likewise for local "last".
1800 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
1801 to rtx_code_label *.
1802 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
1803 from rtx to rtx_insn *.
1804 (expand_atomic_fetch_op): Likewise for local "insn".
1805 (maybe_legitimize_operand_same_code): Likewise for local "last".
1806 (maybe_legitimize_operands): Likewise.
1807
1808 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1809
1810 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
1811 "insn" from rtx to rtx_insn *.
1812 (ps_rtl_insn): Likewise for return type.
1813 (doloop_register_get): Likewise for params "head", "tail" and
1814 locals "insn", "first_insn_not_to_check".
1815 (schedule_reg_move): Likewise for local "this_insn".
1816 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
1817 of gen_move_insn for now.
1818 (reset_sched_times): Strengthen local "insn" from rtx to
1819 rtx_insn *.
1820 (permute_partial_schedule): Likewise.
1821 (duplicate_insns_of_cycles): Likewise for local "u_insn".
1822 (dump_insn_location): Likewise for param "insn".
1823 (loop_canon_p): Likewise for local "insn".
1824 (sms_schedule): Likewise.
1825 (print_partial_schedule): Likewise.
1826 (ps_has_conflicts): Likewise.
1827
1828 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1829
1830 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
1831 "tailp" from rtx * to rtx_insn **.
1832
1833 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
1834 from rtx to rtx_insn *.
1835 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
1836 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
1837 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
1838 rtx to rtx_insn *.
1839 * modulo-sched.c (const_iteration_count): Strengthen return type
1840 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
1841 use of NULL_RTX with NULL when working with insns.
1842 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
1843 to rtx_insn *.
1844 (sms_schedule): Likewise.
1845 * sched-rgn.c (init_ready_list): Likewise, also for locals
1846 "src_head" and "src_next_tail".
1847 (compute_block_dependences): Likewise.
1848 (free_block_dependencies): Likewise.
1849 (debug_rgn_dependencies): Likewise.
1850 (free_rgn_deps): Likewise.
1851 (compute_priorities): Likewise.
1852 (schedule_region): Likewise.
1853 * sel-sched.c (find_ebb_boundaries): Likewise.
1854
1855 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
1856 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
1857
1858 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1859
1860 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
1861 from rtx to rtx_insn *.
1862 (new_seginfo): Likewise for param "insn".
1863 (create_pre_exit): Likewise for locals "last_insn",
1864 "before_return_copy", "return_copy".
1865 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
1866 "mode_set".
1867
1868 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1869
1870 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
1871 from rtx to rtx_insn *.
1872 (lra_push_insn): Likewise for 1st param.
1873 (lra_push_insn_and_update_insn_regno_info): Likewise.
1874 (lra_pop_insn): Likewise for return type.
1875 (lra_invalidate_insn_data): Likewise for 1st param.
1876 (lra_set_insn_deleted): Likewise.
1877 (lra_delete_dead_insn): Likewise.
1878 (lra_process_new_insns): Likewise for first 3 params.
1879 (lra_set_insn_recog_data): Likewise for 1st param.
1880 (lra_update_insn_recog_data): Likewise.
1881 (lra_set_used_insn_alternative): Likewise.
1882 (lra_invalidate_insn_regno_info): Likewise.
1883 (lra_update_insn_regno_info): Likewise.
1884 (lra_former_scratch_operand_p): Likewise.
1885 (lra_eliminate_regs_1): Likewise.
1886 (lra_get_insn_recog_data): Likewise.
1887
1888 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
1889 rtx to rtx_insn *.
1890
1891 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
1892 "mv1" and "mv2".
1893 (substitute_within_insn): New.
1894 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
1895 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
1896 Replace call to "substitute" with call to substitute_within_insn.
1897
1898 * lra-constraints.c (curr_insn): Strengthen from rtx to
1899 rtx_insn *.
1900 (get_equiv_with_elimination): Likewise for param "insn".
1901 (match_reload): Strengthen params "before" and "after" from rtx *
1902 to rtx_insn **.
1903 (emit_spill_move): Likewise for return type. Add a checked cast
1904 to rtx_insn * on result of gen_move_insn for now.
1905 (check_and_process_move): Likewise for local "before". Replace
1906 NULL_RTX with NULL when referring to insns.
1907 (process_addr_reg): Strengthen params "before" and "after" from
1908 rtx * to rtx_insn **.
1909 (insert_move_for_subreg): Likewise.
1910 (simplify_operand_subreg): Strengthen locals "before" and "after"
1911 from rtx to rtx_insn *.
1912 (process_address_1): Strengthen params "before" and "after" from
1913 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
1914 rtx to rtx_insn *.
1915 (process_address): Strengthen params "before" and "after" from
1916 rtx * to rtx_insn **.
1917 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
1918 (curr_insn_transform): Strengthen locals "before" and "after"
1919 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
1920 to insns.
1921 (loc_equivalence_callback): Update cast of "data", changing
1922 resulting type from rtx to rtx_insn *.
1923 (substitute_pseudo_within_insn): New.
1924 (inherit_reload_reg): Strengthen param "insn" from rtx to
1925 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
1926 NULL when referring to insns. Add a checked cast to rtx_insn *
1927 when using usage_insn to invoke lra_update_insn_regno_info.
1928 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
1929 likewise for locals "restore", "save". Add checked casts to
1930 rtx_insn * when using usage_insn to invoke
1931 lra_update_insn_regno_info and lra_process_new_insns. Replace
1932 NULL_RTX with NULL when referring to insns.
1933 (split_if_necessary): Strengthen param "insn" from rtx to
1934 rtx_insn *.
1935 (update_ebb_live_info): Likewise for params "head", "tail" and local
1936 "prev_insn".
1937 (get_last_insertion_point): Likewise for return type and local "insn".
1938 (get_live_on_other_edges): Likewise for local "last".
1939 (inherit_in_ebb): Likewise for params "head", "tail" and locals
1940 "prev_insn", "next_insn", "restore".
1941 (remove_inheritance_pseudos): Likewise for local "prev_insn".
1942 (undo_optional_reloads): Likewise for local "insn".
1943
1944 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
1945 "insn".
1946 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
1947 insns.
1948 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
1949 rtx_insn *.
1950 (spill_pseudos): Likewise for local "insn".
1951 (init_elimination): Likewise.
1952 (process_insn_for_elimination): Likewise for param "insn".
1953
1954 * lra-lives.c (curr_insn): Likewise.;
1955
1956 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
1957 (remove_pseudos): Likewise for param "insn".
1958 (spill_pseudos): Likewise for local "insn".
1959 (lra_final_code_change): Likewise for locals "insn", "curr".
1960
1961 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
1962 (lra_set_insn_deleted): Likewise.
1963 (lra_delete_dead_insn): Likewise, and for local "prev".
1964 (new_insn_reg): Likewise for param "insn".
1965 (lra_set_insn_recog_data): Likewise.
1966 (lra_update_insn_recog_data): Likewise.
1967 (lra_set_used_insn_alternative): Likewise.
1968 (get_insn_freq): Likewise.
1969 (invalidate_insn_data_regno_info): Likewise.
1970 (lra_invalidate_insn_regno_info): Likewise.
1971 (lra_update_insn_regno_info): Likewise.
1972 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
1973 vec<rtx_insn *>.
1974 (lra_push_insn_1): Strengthen param "insn" from rtx to
1975 rtx_insn *.
1976 (lra_push_insn): Likewise.
1977 (lra_push_insn_and_update_insn_regno_info): Likewise.
1978 (lra_pop_insn): Likewise for return type and local "insn".
1979 (push_insns): Likewise for params "from", "to", and local "insn".
1980 (setup_sp_offset): Likewise for params "from", "last" and locals
1981 "before", "insn".
1982 (lra_process_new_insns): Likewise for params "insn", "before",
1983 "after" and local "last".
1984 (struct sloc): Likewise for field "insn".
1985 (lra_former_scratch_operand_p): Likewise for param "insn".
1986 (remove_scratches): Likewise for locals "insn", "last".
1987 (check_rtl): Likewise for local "insn".
1988 (add_auto_inc_notes): Likewise for param "insn".
1989 (update_inc_notes): Likewise for local "insn".
1990 (lra): Replace NULL_RTX with NULL when referring to insn.
1991
1992 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1993
1994 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
1995 to rtx_insn *.
1996 (resolve_reg_notes): Likewise.
1997 (resolve_simple_move): Likewise for return type, param "insn", and
1998 locals "insns", "minsn".
1999 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
2000 (resolve_use): Likewise.
2001 (resolve_debug): Likewise.
2002 (find_decomposable_shift_zext): Likewise.
2003 (resolve_shift_zext): Likewise for return type, param "insn", and
2004 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
2005 (decompose_multiword_subregs): Likewise for local "insn",
2006 "orig_insn", "decomposed_shift", "end".
2007
2008 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2009
2010 * basic-block.h (basic_block split_edge_and_insert): Strengthen
2011 param "insns" from rtx to rtx_insn *.
2012
2013 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
2014 rtx to rtx_insn *.
2015 (struct iv_to_split): Likewise.
2016 (loop_exit_at_end_p): Likewise for local "insn".
2017 (split_edge_and_insert): Likewise for param "insns".
2018 (compare_and_jump_seq): Likewise for return type, param "cinsn",
2019 and locals "seq", "jump".
2020 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
2021 "branch_code"; update invocations of compare_and_jump_seq to
2022 eliminate NULL_RTX in favor of NULL.
2023 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
2024 rtx to rtx_insn *.
2025 (reset_debug_uses_in_loop): Likewise.
2026 (analyze_insn_to_expand_var): Likewise for param "insn".
2027 (analyze_iv_to_split_insn): Likewise.
2028 (analyze_insns_in_loop): Likewise for local "insn".
2029 (insert_base_initialization): Likewise for param
2030 "insn" and local "seq".
2031 (split_iv): Likewise for param "insn" and local "seq".
2032 (expand_var_during_unrolling): Likewise for param "insn".
2033 (insert_var_expansion_initialization): Likewise for local "seq".
2034 (combine_var_copies_in_loop_exit): Likewise.
2035 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
2036 "insn".
2037 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
2038 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
2039 "next".
2040
2041 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2042
2043 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
2044 rtx_insn *.
2045 (iv_analyze_result): Likewise.
2046 (iv_analyze_expr): Likewise.
2047 (biv_p): Likewise.
2048
2049 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
2050 local "def_insn" from rtx to rtx_insn *.
2051 (get_biv_step_1): Likewise for local "insn".
2052 (iv_analyze_expr): Likewise for param "insn".
2053 (iv_analyze_def): Likewise for local "insn".
2054 (iv_analyze_op): Likewise for param "insn".
2055 (iv_analyze): Likewise.
2056 (iv_analyze_result): Likewise.
2057 (biv_p): Likewise.
2058 (suitable_set_for_replacement): Likewise.
2059 (simplify_using_initial_values): Likewise for local "insn".
2060 (iv_number_of_iterations): Likewise for param "insn".
2061 (check_simple_exit): Add checked cast to rtx_insn when invoking
2062 iv_number_of_iterations for now (until get_condition is
2063 strengthened).
2064
2065 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
2066 "insn" from rtx to rtx_insn *.
2067 (analyze_insns_in_loop): Likewise for local "insn".
2068
2069 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2070
2071 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
2072 to rtx_insn *.
2073 (struct invariant): Likewise.
2074 (hash_invariant_expr_1): Likewise for param "insn".
2075 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
2076 (find_exits): Likewise for local "insn".
2077 (create_new_invariant): Likewise for param "insn".
2078 (check_dependencies): Likewise.
2079 (find_invariant_insn): Likewise.
2080 (record_uses): Likewise.
2081 (find_invariants_insn): Likewise.
2082 (find_invariants_bb): Likewise for local "insn".
2083 (get_pressure_class_and_nregs): Likewise for param "insn".
2084 (calculate_loop_reg_pressure): Likewise for local "insn".
2085
2086 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2087
2088 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
2089 to rtx_insn *.
2090 (add_test): Likewise for locals "seq", "jump".
2091 (doloop_modify): Likewise for locals "sequence", "jump_insn".
2092
2093 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2094
2095 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
2096 rtx_insn *.
2097 (rebuild_jump_labels_chain): Likewise for param "chain".
2098
2099 * cfgexpand.c (pass_expand::execute): Add checked cast to
2100 rtx_insn * when calling rebuild_jump_labels_chain in region where
2101 we know e->insns.r is non-NULL.
2102
2103 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
2104 rtx_insn *.
2105 (rebuild_jump_labels): Likewise.
2106 (rebuild_jump_labels_chain): Likewise for param "chain".
2107 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
2108 (init_label_info): Likewise for param "f".
2109 (maybe_propagate_label_ref): Likewise for params "jump_insn",
2110 "prev_nonjump_insn".
2111 (mark_all_labels): Likewise for param "f" and locals "insn",
2112 "prev_nonjump_insn".
2113
2114 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2115
2116 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
2117 from rtx to rtx_insn *insn.
2118 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
2119 (ira_add_allocno_copy): Likewise.
2120 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
2121 rtx to rtx_insn *.
2122 (ira_create_copy): Likewise.
2123 (ira_add_allocno_copy): Likewise.
2124 (create_bb_allocnos): Likewise for local "insn".
2125 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
2126 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
2127 process_regs_for_copy for rtx_insn * param.
2128 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
2129 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
2130 process_regs_for_copy for rtx_insn * param.
2131 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
2132 * ira-costs.c (record_reg_classes): Likewise for param "insn".
2133 (record_operand_costs): Likewise.
2134 (scan_one_insn): Likewise for return type, and for param "insn".
2135 (process_bb_for_costs): Likewise for local "insn".
2136 (process_bb_node_for_hard_reg_moves): Likewise.
2137 * ira-emit.c (struct move): Likewise for field "insn".
2138 (create_move): Eliminate use of NULL_RTX when dealing with an
2139 rtx_insn *.
2140 (emit_move_list): Strengthen return type and locals "result",
2141 "insn" from rtx to rtx_insn *insn.
2142 (emit_moves): Likewise for locals "insns", "tmp".
2143 (ira_emit): Likewise for local "insn".
2144 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
2145 "insn".
2146 (find_call_crossed_cheap_reg): Likewise.
2147 (process_bb_node_lives): Likewise for local "insn".
2148 * ira.c (decrease_live_ranges_number): Likewise.
2149 (compute_regs_asm_clobbered): Likewise.
2150 (build_insn_chain): Likewise.
2151 (find_moveable_pseudos): Likewise, also locals "def_insn",
2152 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
2153 to rtx_insn **. Add a checked cast when assigning from
2154 "closest_use" into closest_uses array in a region where we know
2155 it's a non-NULL insn.
2156 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
2157 to rtx_insn *.
2158 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
2159 "last_interesting_insn", "uin".
2160 (move_unallocated_pseudos): Likewise for locals "def_insn",
2161 "move_insn", "newinsn".
2162
2163 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2164
2165 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
2166 Strengthen locals "done_label", "do_error" from rtx to
2167 rtx_code_label *.
2168 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
2169 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
2170 rtx_code_label *.
2171 (ubsan_expand_si_overflow_neg_check): Likewise for locals
2172 "done_label", "do_error" to rtx_code_label * and local "last" to
2173 rtx_insn *.
2174 (ubsan_expand_si_overflow_mul_check): Likewise for locals
2175 "done_label", "do_error", "large_op0", "small_op0_large_op1",
2176 "one_small_one_large", "both_ops_large", "after_hipart_neg",
2177 "after_lopart_neg", "do_overflow", "hipart_different" to
2178 rtx_code_label * and local "last" to rtx_insn *.
2179
2180 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2181
2182 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
2183 "insn" and "move_insn" from rtx to rtx_insn *.
2184
2185 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2186
2187 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
2188 rtx_insn *.
2189 (cheap_bb_rtx_cost_p): Likewise.
2190 (first_active_insn): Likewise for return type and local "insn".
2191 (last_active_insn): Likewise for return type and locals "insn",
2192 "head".
2193 (struct noce_if_info): Likewise for fields "jump", "insn_a",
2194 "insn_b".
2195 (end_ifcvt_sequence): Likewise for return type and locals "insn",
2196 "seq".
2197 (noce_try_move): Likewise for local "seq".
2198 (noce_try_store_flag): Likewise.
2199 (noce_try_store_flag_constants): Likewise.
2200 (noce_try_addcc): Likewise.
2201 (noce_try_store_flag_mask): Likewise.
2202 (noce_try_cmove): Likewise.
2203 (noce_try_minmax): Likewise.
2204 (noce_try_abs): Likewise.
2205 (noce_try_sign_mask): Likewise.
2206 (noce_try_bitop): Likewise.
2207 (noce_can_store_speculate_p): Likewise for local "insn".
2208 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
2209 seq".
2210 (check_cond_move_block): Likewise for local "insn".
2211 (cond_move_convert_if_block): Likewise.
2212 (cond_move_process_if_block): Likewise for locals "seq",
2213 "loc_insn".
2214 (noce_find_if_block): Likewise for local "jump".
2215 (merge_if_block): Likewise for local "last".
2216 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
2217 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
2218 (block_has_only_trap): Likewise for return type and local "trap".
2219 (find_if_case_1): Likewise for local "jump".
2220 (dead_or_predicable): Likewise for locals "head", "end", "jump",
2221 "insn".
2222
2223 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2224
2225 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
2226 "last_insn", "loop_end" from rtx to rtx_insn *.
2227
2228 * hw-doloop.c (scan_loop): Likewise for local "insn".
2229 (discover_loop): Likewise for param "tail_insn".
2230 (discover_loops): Likewise for local "tail".
2231
2232 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
2233 cast to rtx_insn * when assigning from an rtx local to a
2234 hwloop_info's "last_insn" field.
2235
2236 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2237
2238 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
2239 (add_delay_dependencies): Strengthen local "pro" from rtx to
2240 rtx_insn *.
2241 (recompute_todo_spec): Likewise.
2242 (dep_cost_1): Likewise for locals "insn", "used".
2243 (schedule_insn): Likewise for local "dbg".
2244 (schedule_insn): Likewise for locals "pro", "next".
2245 (unschedule_insns_until): Likewise for local "con".
2246 (restore_pattern): Likewise for local "next".
2247 (estimate_insn_tick): Likewise for local "pro".
2248 (resolve_dependencies): Likewise for local "next".
2249 (fix_inter_tick): Likewise.
2250 (fix_tick_ready): Likewise for local "pro".
2251 (add_to_speculative_block): Likewise for locals "check", "twin",
2252 "pro".
2253 (sched_extend_bb): Likewise for locals "end", "insn".
2254 (init_before_recovery): Likewise for local "x".
2255 (sched_create_recovery_block): Likewise for local "barrier".
2256 (create_check_block_twin): Likewise for local "pro".
2257 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
2258 "consumer".
2259 (unlink_bb_notes): Update for change to type of bb_header.
2260 Strengthen locals "prev", "label", "note", "next" from rtx to
2261 rtx_insn *.
2262 (clear_priorities): Likewise for local "pro".
2263
2264 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2265
2266 * gcse.c (struct occr): Strengthen field "insn" from rtx to
2267 rtx_insn *.
2268 (test_insn): Likewise for this global.
2269 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
2270 const rtx_insn *.
2271 (oprs_anticipatable_p): Likewise.
2272 (oprs_available_p): Likewise.
2273 (insert_expr_in_table): Strengthen param "insn" from rtx to
2274 rtx_insn *.
2275 (hash_scan_set): Likewise.
2276 (hash_scan_clobber): Likewise.
2277 (hash_scan_call): Likewise.
2278 (hash_scan_insn): Likewise.
2279 (compute_hash_table_work): Likewise for local "insn".
2280 (process_insert_insn): Likewise for return type and local "pat".
2281 (insert_insn_end_basic_block): Likewise for locals "new_insn",
2282 "pat", "pat_end", "maybe_cc0_setter".
2283 (pre_edge_insert): Likewise for local "insn".
2284 (pre_insert_copy_insn): Likewise for param "insn".
2285 (pre_insert_copies): Likewise for local "insn".
2286 (struct set_data): Likewise for field "insn".
2287 (single_set_gcse): Likewise for param "insn".
2288 (gcse_emit_move_after): Likewise.
2289 (pre_delete): Likewise for local "insn".
2290 (update_bb_reg_pressure): Likewise for param "from" and local
2291 "insn".
2292 (should_hoist_expr_to_dom): Likewise for param "from".
2293 (hoist_code): Likewise for local "insn".
2294 (get_pressure_class_and_nregs): Likewise for param "insn".
2295 (calculate_bb_reg_pressure): Likewise for local "insn".
2296 (compute_ld_motion_mems): Likewise.
2297
2298 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2299
2300 * genpeep.c (main): Rename param back from "uncast_ins1" to
2301 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
2302 checked cast.
2303
2304 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
2305
2306 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2307
2308 PR target/62195
2309 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
2310 documentation to state it is only for VSX operations.
2311
2312 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
2313 constraint only active if VSX.
2314
2315 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
2316 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
2317 (lfiwzx): Likewise.
2318
2319 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2320
2321 * fwprop.c (single_def_use_dom_walker::before_dom_children):
2322 Strengthen local "insn" from rtx to rtx_insn *.
2323 (use_killed_between): Likewise for param "target_insn".
2324 (all_uses_available_at): Likewise for param "target_insn" and
2325 local "next".
2326 (update_df_init): Likewise for params "def_insn", "insn".
2327 (update_df): Likewise for param "insn".
2328 (try_fwprop_subst): Likewise for param "def_insn" and local
2329 "insn".
2330 (free_load_extend): Likewise for param "insn".
2331 (forward_propagate_subreg): Likewise for param "def_insn" and
2332 local "use_insn".
2333 (forward_propagate_asm): Likewise for param "def_insn" and local
2334 "use_insn".
2335 (forward_propagate_and_simplify): Likewise for param "def_insn"
2336 and local "use_insn".
2337 (forward_propagate_into): Likewise for locals "def_insn" and
2338 "use_insn".
2339
2340 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2341
2342 * function.c (emit_initial_value_sets): Strengthen local "seq"
2343 from rtx to rtx_insn *.
2344 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
2345 local "seq".
2346 (instantiate_virtual_regs): Likewise for local "insn".
2347 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
2348 (reorder_blocks_1): Likewise for param "insns" and local "insn".
2349 (expand_function_end): Likewise for locals "insn" and "seq".
2350 (epilogue_done): Likewise for local "insn".
2351 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
2352 "last", "trial".
2353 (reposition_prologue_and_epilogue_notes): Likewise for locals
2354 "insn", "last", "note", "first".
2355 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
2356 (pass_match_asm_constraints::execute): Likewise for local "insn".
2357
2358 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2359
2360 * output.h (final_scan_insn): Strengthen return type from rtx to
2361 rtx_insn *.
2362 (final_forward_branch_p): Likewise for param.
2363 (current_output_insn): Likewise for this global.
2364
2365 * final.c (rtx debug_insn): Likewise for this variable.
2366 (current_output_insn): Likewise.
2367 (get_attr_length_1): Rename param "insn" to "uncast_insn",
2368 adding "insn" back in as an rtx_insn * with a checked cast, so
2369 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
2370 first param.
2371 (compute_alignments): Strengthen local "label" from rtx to
2372 rtx_insn *.
2373 (shorten_branches): Rename param from "first" to "uncast_first",
2374 introducing a new local rtx_insn * "first" using a checked cast to
2375 effectively strengthen "first" from rtx to rtx_insn * without
2376 affecting the type signature. Strengthen locals "insn", "seq",
2377 "next", "label" from rtx to rtx_insn *.
2378 (change_scope): Strengthen param "orig_insn" and local "insn" from
2379 rtx to rtx_insn *.
2380 (final_start_function): Rename param from "first" to "uncast_first",
2381 introducing a new local rtx_insn * "first" using a checked cast to
2382 effectively strengthen "first" from rtx to rtx_insn * without
2383 affecting the type signature. Strengthen local "insn" from rtx to
2384 rtx_insn *.
2385 (dump_basic_block_info): Strengthen param "insn" from rtx to
2386 rtx_insn *.
2387 (final): Rename param from "first" to "uncast_first",
2388 introducing a new local rtx_insn * "first" using a checked cast to
2389 effectively strengthen "first" from rtx to rtx_insn * without
2390 affecting the type signature. Strengthen locals "insn", "next"
2391 from rtx to rtx_insn *.
2392 (output_alternate_entry_point): Strengthen param "insn" from rtx to
2393 rtx_insn *.
2394 (call_from_call_insn): Strengthen param "insn" from rtx to
2395 rtx_call_insn *.
2396 (final_scan_insn): Rename param from "insn" to "uncast_insn",
2397 introducing a new local rtx_insn * "insn" using a checked cast to
2398 effectively strengthen "insn" from rtx to rtx_insn * without
2399 affecting the type signature. Strengthen return type and locals
2400 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
2401 now-redundant checked cast to rtx_insn * from both invocations of
2402 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
2403 introducing a local "call_insn" for use when invoking
2404 call_from_call_insn.
2405 (notice_source_line): Strengthen param "insn" from rtx to
2406 rtx_insn *.
2407 (leaf_function_p): Likewise for local "insn".
2408 (final_forward_branch_p): Likewise.
2409 (leaf_renumber_regs): Likewise for param "first".
2410 (rest_of_clean_state): Likewise for locals "insn" and "next".
2411 (self_recursive_call_p): Likewise for param "insn".
2412 (collect_fn_hard_reg_usage): Likewise for local "insn".
2413 (get_call_fndecl): Likewise for param "insn".
2414 (get_call_cgraph_rtl_info): Likewise.
2415 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
2416 introducing a new local rtx_insn * "insn" using a checked cast to
2417 effectively strengthen "insn" from rtx to rtx_insn * without
2418 affecting the type signature.
2419
2420 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
2421 cast when assigning from param "insn" to current_output_insn.
2422 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
2423 so that we can assign it back to current_output_insn.
2424
2425 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2426
2427 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
2428 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
2429 atmxt540s and atmxt540sreva devices.
2430 * config/avr/avr-tables.opt: Regenerate.
2431 * config/avr/t-multilib: Regenerate.
2432 * doc/avr-mmcu.texi: Regenerate.
2433
2434 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2435
2436 * expr.c (convert_move): Strengthen local "insns" from rtx to
2437 rtx_insn *.
2438 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
2439 "top_label" from rtx to rtx_code_label *.
2440 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
2441 rtx_insn *.
2442 (emit_single_push_insn): Likewise for locals "prev", "last".
2443 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
2444 to rtx_code_label *.
2445 (store_constructor): Likewise for locals "loop_start", "loop_end".
2446 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
2447 rtx_insn *.
2448 (expand_expr_real_2): Likewise.
2449 (expand_expr_real_1): Strengthen local "label" from rtx to
2450 rtx_code_label *.
2451
2452 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2453
2454 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
2455 from rtx to rtx_insn *.
2456 (store_bit_field_1): Likewise.
2457 (extract_bit_field_1): Likewise.
2458 (expand_mult_const): Likewise for local "insns".
2459 (expmed_mult_highpart): Strengthen local "label" from rtx to
2460 rtx_code_label *.
2461 (expand_smod_pow2): Likewise.
2462 (expand_sdiv_pow2): Likewise.
2463 (expand_divmod): Strengthen locals "last", "insn" from rtx to
2464 rtx_insn *. Strengthen locals "label", "label1", "label2",
2465 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
2466 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
2467 (emit_store_flag): Likewise.
2468 (emit_store_flag_force): Strengthen local "label" from rtx to
2469 rtx_code_label *.
2470 (do_cmp_and_jump): Likewise for param "label".
2471
2472 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2473
2474 * explow.c (force_reg): Strengthen local "insn" from rtx to
2475 rtx_insn *.
2476 (adjust_stack_1): Likewise.
2477 (allocate_dynamic_stack_space): Likewise. Strengthen locals
2478 "final_label", "available_label", "space_available" from rtx to
2479 rtx_code_label *.
2480 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
2481 (anti_adjust_stack_and_probe): Likewise.
2482
2483 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2484
2485 * except.h (sjlj_emit_function_exit_after): Strengthen param
2486 "after" from rtx to rtx_insn *. This is only called with
2487 result of get_last_insn (in function.c) so type-change should be
2488 self-contained.
2489
2490 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
2491 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
2492 to rtx_insn *. These fields are only used from except.c so this
2493 type-change should be self-contained to this patch.
2494
2495 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
2496 local "last" from rtx to rtx_insn *.
2497 (dw2_build_landing_pads): Likewise for local "seq".
2498 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
2499 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
2500 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
2501 rtx to rtx_insn *.
2502 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
2503 to rtx_insn *.
2504 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
2505 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
2506 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
2507 referring to an insn. Strengthen local "dispatch_label" from
2508 rtx to rtx_code_label *.
2509 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
2510 rtx_insn *.
2511 (expand_eh_return): Strengthen local "around_label" from
2512 rtx to rtx_code_label *.
2513 (convert_to_eh_region_ranges): Strengthen locals "iter",
2514 "last_action_insn", "first_no_action_insn",
2515 "first_no_action_insn_before_switch",
2516 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
2517
2518 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2519
2520 * dwarf2out.c (last_var_location_insn): Strengthen this variable
2521 from rtx to rtx_insn *.
2522 (cached_next_real_insn): Likewise.
2523 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
2524 working with insns.
2525 (dwarf2out_var_location): Strengthen locals "next_real",
2526 "next_note", "expected_next_loc_note", "last_start", "insn" from
2527 rtx to rtx_insn *.
2528
2529 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2530
2531 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
2532 from rtx to rtx_insn *.
2533 (create_pseudo_cfg): Likewise for local "insn".
2534
2535 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2536
2537 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
2538 from rtx to rtx_insn *.
2539 (df_bb_regno_last_def_find): Likewise.
2540
2541 * df-problems.c (df_rd_bb_local_compute): Likewise.
2542 (df_lr_bb_local_compute): Likewise.
2543 (df_live_bb_local_compute): Likewise.
2544 (df_chain_remove_problem): Likewise.
2545 (df_chain_create_bb): Likewise.
2546 (df_word_lr_bb_local_compute): Likewise.
2547 (df_remove_dead_eq_notes): Likewise for param "insn".
2548 (df_note_bb_compute): Likewise for local "insn".
2549 (simulate_backwards_to_point): Likewise.
2550 (df_md_bb_local_compute): Likewise.
2551
2552 * df-scan.c (df_scan_free_bb_info): Likewise.
2553 (df_scan_start_dump): Likewise.
2554 (df_scan_start_block): Likewise.
2555 (df_install_ref_incremental): Likewise for local "insn".
2556 (df_insn_rescan_all): Likewise.
2557 (df_reorganize_refs_by_reg_by_insn): Likewise.
2558 (df_reorganize_refs_by_insn_bb): Likewise.
2559 (df_recompute_luids): Likewise.
2560 (df_bb_refs_record): Likewise.
2561 (df_update_entry_exit_and_calls): Likewise.
2562 (df_bb_verify): Likewise.
2563
2564 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2565
2566 * ddg.h (struct ddg_node): Strengthen fields "insn" and
2567 "first_note" from rtx to rtx_insn *.
2568 (get_node_of_insn): Likewise for param 2 "insn".
2569 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
2570
2571 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
2572 rtx_insn *.
2573 (mem_write_insn_p): Likewise.
2574 (mem_access_insn_p): Likewise.
2575 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
2576 (def_has_ccmode_p): Likewise for param "insn".
2577 (add_cross_iteration_register_deps): Likewise for locals
2578 "def_insn" and "use_insn".
2579 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
2580 (build_intra_loop_deps): Likewise for local "src_insn".
2581 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
2582 to rtx_insn *.
2583 (get_node_of_insn): Likewise for param "insn".
2584
2585 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2586
2587 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
2588 (deletable_insn_p): Strengthen param "insn" from rtx to
2589 rtx_insn *. Add checked cast to rtx_call_insn when invoking
2590 find_call_stack_args, since this is guarded by CALL_P (insn).
2591 (marked_insn_p): Strengthen param "insn" from rtx to
2592 rtx_insn *.
2593 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
2594 invoking find_call_stack_args, since this is guarded by
2595 CALL_P (insn).
2596 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
2597 rtx_insn *; we know this is an insn since this was called by
2598 mark_nonreg_stores.
2599 (mark_nonreg_stores_2): Likewise.
2600 (mark_nonreg_stores): Strengthen param "insn" from rtx to
2601 rtx_insn *.
2602 (find_call_stack_args): Strengthen param "call_insn" from rtx to
2603 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
2604 to rtx_insn *.
2605 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
2606 from rtx to rtx_insn *.
2607 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
2608 "next", "ref_insn".
2609 (delete_unmarked_insns): Likewise for locals "insn", "next".
2610 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
2611 (mark_reg_dependencies): Likewise for param "insn".
2612 (rest_of_handle_ud_dce): Likewise for local "insn".
2613 (word_dce_process_block): Likewise.
2614 (dce_process_block): Likewise.
2615
2616 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2617
2618 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
2619 from rtx to rtx_insn *.
2620 (struct change_cc_mode_args): Likewise for field "insn".
2621 (this_insn): Strengthen from rtx to rtx_insn *.
2622 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
2623 with insn.
2624 (validate_canon_reg): Strengthen param "insn" from rtx to
2625 rtx_insn *.
2626 (canon_reg): Likewise.
2627 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
2628 dealing with insn.
2629 (record_jump_equiv): Strengthen param "insn" from rtx to
2630 rtx_insn *.
2631 (try_back_substitute_reg): Likewise, also for locals "prev",
2632 "bb_head".
2633 (find_sets_in_insn): Likewise for param "insn".
2634 (canonicalize_insn): Likewise.
2635 (cse_insn): Likewise. Add a checked cast.
2636 (invalidate_from_clobbers): Likewise for param "insn".
2637 (invalidate_from_sets_and_clobbers): Likewise.
2638 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
2639 dealing with insn.
2640 (cse_prescan_path): Strengthen local "insn" from rtx to
2641 rtx_insn *.
2642 (cse_extended_basic_block): Likewise for locals "insn" and
2643 "prev_insn".
2644 (cse_main): Likewise for param "f".
2645 (check_for_label_ref): Likewise for local "insn".
2646 (set_live_p): Likewise for second param ("insn").
2647 (insn_live_p): Likewise for first param ("insn") and for local
2648 "next".
2649 (cse_change_cc_mode_insn): Likewise for first param "insn".
2650 (cse_change_cc_mode_insns): Likewise for first and second params
2651 "start" and "end".
2652 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
2653 and "end".
2654 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
2655 "cc_src_insn".
2656
2657 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
2658 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2659 Anna Tikhonova <anna.tikhonova@intel.com>
2660 Ilya Tocar <ilya.tocar@intel.com>
2661 Andrey Turetskiy <andrey.turetskiy@intel.com>
2662 Ilya Verbin <ilya.verbin@intel.com>
2663 Kirill Yukhin <kirill.yukhin@intel.com>
2664 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2665
2666 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
2667 New.
2668 * config/i386/sse.md
2669 (define_mode_iterator VI248_AVX2): Delete.
2670 (define_mode_iterator VI2_AVX2_AVX512BW): New.
2671 (define_mode_iterator VI48_AVX2): Ditto.
2672 (define_insn <shift_insn><mode>3): Delete.
2673 (define_insn "<shift_insn><mode>3<mask_name>" with
2674 VI2_AVX2_AVX512BW): New.
2675 (define_insn "<shift_insn><mode>3<mask_name>" with
2676 VI48_AVX2): Ditto.
2677
2678 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
2679 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2680 Anna Tikhonova <anna.tikhonova@intel.com>
2681 Ilya Tocar <ilya.tocar@intel.com>
2682 Andrey Turetskiy <andrey.turetskiy@intel.com>
2683 Ilya Verbin <ilya.verbin@intel.com>
2684 Kirill Yukhin <kirill.yukhin@intel.com>
2685 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2686
2687 * config/i386/sse.md
2688 (define_mode_iterator VI4F_BRCST32x2): New.
2689 (define_mode_attr 64x2_mode): Ditto.
2690 (define_mode_attr 32x2mode): Ditto.
2691 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
2692 with VI4F_BRCST32x2): Ditto.
2693 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
2694 with V16FI mode iterator): Ditto.
2695 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
2696 with V16FI): Ditto.
2697 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
2698 with VI8F_BRCST64x2): Ditto.
2699
2700 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
2701 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2702 Anna Tikhonova <anna.tikhonova@intel.com>
2703 Ilya Tocar <ilya.tocar@intel.com>
2704 Andrey Turetskiy <andrey.turetskiy@intel.com>
2705 Ilya Verbin <ilya.verbin@intel.com>
2706 Kirill Yukhin <kirill.yukhin@intel.com>
2707 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2708
2709 * config/i386/sse.md
2710 (define_mode_iterator VI8_AVX512VL): New.
2711 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
2712
2713 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
2714
2715 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
2716 (define_mode_iterator V48_AVX512VL): New.
2717 (define_mode_iterator V12_AVX512VL): Ditto.
2718 (define_insn <avx512>_load<mode>_mask): Split into two similar
2719 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
2720 Refactor output template.
2721 (define_insn "<avx512>_store<mode>_mask"): Ditto.
2722
2723 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2724
2725 * cprop.c (struct occr): Strengthen field "insn" from rtx to
2726 rtx_insn *.
2727 (reg_available_p): Likewise for param "insn".
2728 (insert_set_in_table): Likewise.
2729 (hash_scan_set): Likewise.
2730 (hash_scan_insn): Likewise.
2731 (make_set_regs_unavailable): Likewise.
2732 (compute_hash_table_work): Likewise for local "insn".
2733 (reg_not_set_p): Strengthen param "insn" from const_rtx to
2734 const rtx_insn *.
2735 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
2736 (try_replace_reg): Likewise.
2737 (find_avail_set): Likewise.
2738 (cprop_jump): Likewise for params "setcc", "jump".
2739 (constprop_register): Likewise for param "insn".
2740 (cprop_insn): Likewise.
2741 (do_local_cprop): Likewise.
2742 (local_cprop_pass): Likewise for local "insn".
2743 (bypass_block): Likewise for params "setcc" and "jump".
2744 (bypass_conditional_jumps): Likewise for locals "setcc" and
2745 "insn".
2746 (one_cprop_pass): Likewise for local "insn".
2747
2748 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2749
2750 * compare-elim.c (struct comparison_use): Strengthen field "insn"
2751 from rtx to rtx_insn *.
2752 (struct comparison): Likewise, also for field "prev_clobber".
2753 (conforming_compare): Likewise for param "insn".
2754 (arithmetic_flags_clobber_p): Likewise.
2755 (find_flags_uses_in_insn): Likewise.
2756 (find_comparison_dom_walker::before_dom_children): Likewise for
2757 locals "insn", "next", "last_clobber".
2758 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
2759
2760 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2761
2762 * combine-stack-adj.c (struct csa_reflist): Strengthen field
2763 "insn" from rtx to rtx_insn *.
2764 (single_set_for_csa): Likewise for param "insn".
2765 (record_one_stack_ref): Likewise.
2766 (try_apply_stack_adjustment): Likewise.
2767 (struct record_stack_refs_data): Likewise for field "insn".
2768 (maybe_move_args_size_note): Likewise for params "last" and "insn".
2769 (prev_active_insn_bb): Likewise for return type and param "insn".
2770 (next_active_insn_bb): Likewise.
2771 (force_move_args_size_note): Likewise for params "prev" and "last"
2772 and locals "test", "next_candidate", "prev_candidate".
2773 (combine_stack_adjustments_for_block): Strengthen locals
2774 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
2775 rtx_insn *.
2776
2777 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2778
2779 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
2780 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
2781 (subst_insn): Likewise for this variable.
2782 (added_links_insn): Likewise.
2783 (struct insn_link): Likewise for field "insn".
2784 (alloc_insn_link): Likewise for param "insn".
2785 (struct undobuf): Likewise for field "other_insn".
2786 (find_single_use): Likewise for param "insn" and local "next".
2787 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
2788 (delete_noop_moves): Likewise for locals "insn", "next".
2789 (create_log_links): Likewise for locals "insn", "use_insn".
2790 Strengthen local "next_use" from rtx * to rtx_insn **.
2791 (insn_a_feeds_b): Likewise for params "a", "b".
2792 (combine_instructions): Likewise for param "f" and locals "insn",
2793 "next", "prev", "first", "last_combined_insn", "link", "link1",
2794 "temp". Replace use of NULL_RTX with NULL when referring to
2795 insns.
2796 (setup_incoming_promotions): Likewise for param "first"
2797 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
2798 (can_combine_p): Likewise for params "insn", "i3", "pred",
2799 "pred2", "succ", "succ2" and for local "p".
2800 (combinable_i3pat): Likewise for param "i3".
2801 (cant_combine_insn_p): Likewise for param "insn".
2802 (likely_spilled_retval_p): Likewise.
2803 (adjust_for_new_dest): Likewise.
2804 (update_cfg_for_uncondjump): Likewise, also for local "insn".
2805 (try_combine): Likewise for return type and for params "i3", "i2",
2806 "i1", "i0", "last_combined_insn", and for locals "insn",
2807 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
2808 "i0_insn". Eliminate local "tem" in favor of new locals
2809 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
2810 checked cast for now to rtx_insn * on the return type of
2811 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
2812 insns.
2813 (find_split_point): Strengthen param "insn" from rtx to
2814 rtx_insn *.
2815 (simplify_set): Likewise for local "other_insn".
2816 (recog_for_combine): Likewise for param "insn".
2817 (record_value_for_reg): Likewise.
2818 (record_dead_and_set_regs_1): Likewise for local
2819 "record_dead_insn".
2820 (record_dead_and_set_regs): Likewise for param "insn".
2821 (record_promoted_value): Likewise.
2822 (check_promoted_subreg): Likewise.
2823 (get_last_value_validate): Likewise.
2824 (reg_dead_at_p): Likewise.
2825 (move_deaths): Likewise for param "to_insn".
2826 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
2827 and locals "place", "place2", "cc0_setter". Eliminate local "tem
2828 in favor of new locals "tem_note" and "tem_insn", the latter being
2829 an rtx_insn *.
2830 (distribute_links): Strengthen locals "place", "insn" from rtx to
2831 rtx_insn *.
2832
2833 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2834
2835 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
2836 than a const_rtx.
2837 (can_delete_label_p): Require a const rtx_code_label * rather than
2838 a const_rtx.
2839 (delete_insn): Add checked cast to rtx_code_label * when we know
2840 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
2841 rtx to rtx_insn *.
2842 (delete_insn_chain): Strengthen locals "prev" and "current" from
2843 rtx to rtx_insn *. Add a checked cast when assigning from
2844 "finish" (strengthening the params will come later). Add a
2845 checked cast to rtx_note * in region where we know
2846 NOTE_P (current).
2847 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
2848 rtx_insn *.
2849 (compute_bb_for_insn): Likewise.
2850 (free_bb_for_insn): Likewise for local "insn".
2851 (compute_bb_for_insn): Likewise.
2852 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
2853 local "insn" from rtx to rtx_insn *
2854 (flow_active_insn_p): Require a const rtx_insn * rather than a
2855 const_rtx.
2856 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
2857 rtx_insn *.
2858 (can_fallthru): Likewise for locals "insn" and "insn2".
2859 (bb_note): Likewise for local "note".
2860 (first_insn_after_basic_block_note): Likewise for local "note" and
2861 for return type.
2862 (rtl_split_block): Likewise for locals "insn" and "next".
2863 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
2864 "end".
2865 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
2866 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
2867 "prev", "tmp".
2868 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
2869 them), "kill_from", "barrier", "new_insn".
2870 (patch_jump_insn): Likewise for params "insn", "old_label".
2871 (redirect_branch_edge): Likewise for locals "old_label", "insn".
2872 (force_nonfallthru_and_redirect): Likewise for locals "insn",
2873 "old_label", "new_label".
2874 (rtl_tidy_fallthru_edge): Likewise for local "q".
2875 (rtl_split_edge): Likewise for locals "before", "last".
2876 (commit_one_edge_insertion): Likewise for locals "before",
2877 "after", "insns", "tmp", "last", adding a checked cast where
2878 currently necessary.
2879 (commit_edge_insertions): Likewise.
2880 (rtl_dump_bb): Likewise for locals "insn", "last".
2881 (print_rtl_with_bb): Likewise for local "x".
2882 (rtl_verify_bb_insns): Likewise for local "x".
2883 (rtl_verify_bb_pointers): Likewise for local "insn".
2884 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
2885 "head", "end".
2886 (rtl_verify_fallthru): Likewise for local "insn".
2887 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
2888 (purge_dead_edges): Likewise for local "insn".
2889 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
2890 (skip_insns_after_block): Likewise for return type and for locals
2891 "insn", "last_insn", "next_head", "prev".
2892 (record_effective_endpoints): Likewise for locals "next_insn",
2893 "insn", "end".
2894 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
2895 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
2896 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
2897 (duplicate_insn_chain): For now, add checked cast from rtx to
2898 rtx_insn * when returning insn.
2899 (cfg_layout_duplicate_bb): Likewise for local "insn".
2900 (cfg_layout_delete_block): Likewise for locals "insn", "next",
2901 "prev", "remaints".
2902 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
2903 (rtl_block_empty_p): Likewise.
2904 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
2905 "split_point", "last".
2906 (rtl_block_ends_with_call_p): Likewise for local "insn".
2907 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
2908 const rtx_insn *.
2909 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
2910 "split_at_insn" from rtx to rtx_insn *.
2911 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
2912 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
2913 to const rtx_insn *.
2914 (rtl_account_profile_record): Likewise.
2915
2916 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2917
2918 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
2919 rtx to rtx_insn *.
2920 (average_num_loop_insns): Likewise.
2921 (init_set_costs): Likewise for local "seq".
2922 (seq_cost): Likewise for param "seq", from const_rtx to const
2923 rtx_insn *.
2924
2925 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2926
2927 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
2928 rtx to rtx_insn *.
2929
2930 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2931
2932 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
2933 "f1" and "f2" from rtx * to rtx_insn **.
2934 (flow_find_head_matching_sequence): Likewise.
2935
2936 * cfgcleanup.c (try_simplify_condjump): Strengthen local
2937 "cbranch_insn" from rtx to rtx_insn *.
2938 (thread_jump): Likewise for local "insn".
2939 (try_forward_edges): Likewise for local "last".
2940 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
2941 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
2942 "real_b_end".
2943 (can_replace_by): Likewise for params "i1", "i2".
2944 (old_insns_match_p): Likewise.
2945 (merge_notes): Likewise.
2946 (walk_to_nondebug_insn): Likewise for param "i1".
2947 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
2948 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
2949 "afterlast1", "afterlast2" from rtx to rtx_insn *.
2950 (flow_find_head_matching_sequence): Strengthen params "f1" and
2951 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
2952 "last1", "last2", "beforelast1", "beforelast2" from rtx to
2953 rtx_insn *.
2954 (outgoing_edges_match): Likewise for locals "last1", "last2".
2955 (try_crossjump_to_edge): Likewise for local "insn".
2956 Replace call to for_each_rtx with for_each_rtx_in_insn.
2957
2958 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
2959 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
2960 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
2961 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
2962 (try_optimize_cfg): Strengthen local "last" from rtx to
2963 rtx_insn *.
2964 (delete_dead_jumptables): Likewise for locals "insn", "next",
2965 "label".
2966
2967 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
2968 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
2969 "rtx else_first_tail", to reflect the basic-block.h changes above.
2970
2971 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2972
2973 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
2974 rtx_insn *.
2975 (purge_dead_tablejump_edges): Likewise.
2976 (find_bb_boundaries): Likewise for locals "insn", "end",
2977 "flow_transfer_insn".
2978
2979 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2980
2981 * caller-save.c (save_call_clobbered_regs): Strengthen locals
2982 "ins" and "prev" from rtx to rtx_insn *.
2983
2984 2014-08-21 David Malcolm <dmalcolm@redhat.com>
2985
2986 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
2987 rtx_insn *.
2988 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
2989 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
2990 "scan_start".
2991 (load_register_parameters): Likewise for local "before_arg".
2992 (check_sibcall_argument_overlap): Likewise for param "insn".
2993 (expand_call): Likewise for locals "normal_call_insns",
2994 "tail_call_insns", "insns", "before_call", "after_args",
2995 "before_arg", "last", "prev". Strengthen one of the "last" from
2996 rtx to rtx_call_insn *.
2997 (fixup_tail_calls): Strengthen local "insn" from rtx to
2998 rtx_insn *.
2999 (emit_library_call_value_1): Likewise for locals "before_call" and
3000 "last".
3001
3002 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3003
3004 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
3005 and "last" from rtx to rtx_insn *.
3006 (expand_builtin_nonlocal_goto): Likewise for local "insn".
3007 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
3008 rtx_call_insn *.
3009 (expand_errno_check): Strengthen local "lab" from rtx to
3010 rtx_code_label *.
3011 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
3012 rtx_insn *.
3013 (expand_builtin_mathfn_2): Likewise.
3014 (expand_builtin_mathfn_ternary): Likewise.
3015 (expand_builtin_mathfn_3): Likewise.
3016 (expand_builtin_interclass_mathfn): Likewise for local "last".
3017 (expand_builtin_int_roundingfn): Likewise for local "insns".
3018 (expand_builtin_int_roundingfn_2): Likewise.
3019 (expand_builtin_strlen): Likewise for local "before_strlen".
3020 (expand_builtin_strncmp): Likewise for local "seq".
3021 (expand_builtin_signbit): Likewise for local "last".
3022 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
3023 from rtx to rtx_code_label *.
3024 (expand_stack_restore): Strengthen local "prev" from rtx to
3025 rtx_insn *.
3026
3027 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3028
3029 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
3030 to rtx_insn *.
3031 (struct btr_def_s): Likewise.
3032 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
3033 const rtx_insn *.
3034 (add_btr_def): Likewise.
3035 (new_btr_user): Likewise.
3036 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
3037 rtx to rtx_insn *.
3038 (link_btr_uses): Likewise.
3039 (move_btr_def): Likewise for locals "insp", "old_insn",
3040 "new_insn". Add checked cast to rtx_insn * for now on result of
3041 gen_move_insn.
3042 (can_move_up): Strengthen param "insn" from const_rtx to
3043 const rtx_insn *.
3044
3045 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3046
3047 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
3048 rtx_insn *.
3049 (get_uncond_jump_length): Likewise for locals "label", "jump".
3050 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
3051 "jump", "insn".
3052 (add_labels_and_missing_jumps): Likewise for local "new_jump".
3053 (fix_up_fall_thru_edges): Likewise for local "old_jump".
3054 (find_jump_block): Likewise for local "insn".
3055 (fix_crossing_conditional_branches): Likewise for locals
3056 "old_jump", "new_jump".
3057 (fix_crossing_unconditional_branches): Likewise for locals
3058 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
3059 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
3060
3061 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3062
3063 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
3064 rtx to rtx_insn *.
3065 (struct mem_insn): Likewise for field "insn".
3066 (reg_next_use): Strengthen from rtx * to rtx_insn **.
3067 (reg_next_inc_use): Likewise.
3068 (reg_next_def): Likewise.
3069 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
3070 from rtx to rtx_insn *.
3071 (move_insn_before): Likewise for param "next_insn" and local "insns".
3072 (attempt_change): Likewise for local "mov_insn".
3073 (try_merge): Likewise for param "last_insn".
3074 (get_next_ref): Likewise for return type and local "insn".
3075 Strengthen param "next_array" from rtx * to rtx_insn **.
3076 (parse_add_or_inc): Strengthen param "insn" from rtx to
3077 rtx_insn *.
3078 (find_inc): Likewise for locals "insn" and "other_insn" (three of
3079 the latter).
3080 (merge_in_block): Likewise for locals "insn", "curr",
3081 "other_insn".
3082 (pass_inc_dec::execute): Update allocations of the arrays to
3083 reflect the stronger types.
3084
3085 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3086
3087 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
3088 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
3089 from rtx to rtx_code_label *.
3090
3091 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3092
3093 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
3094 to rtx_insn *.
3095
3096 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3097
3098 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
3099 generated a warning and prevented bootstrapping the compiler.
3100
3101 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3102
3103 * rtl.h (delete_related_insns): Strengthen return type from rtx to
3104 rtx_insn *.
3105
3106 * jump.c (delete_related_insns): Likewise, also for locals "next"
3107 and "prev".
3108
3109 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3110
3111 * genautomata.c (output_internal_insn_latency_func): When writing
3112 the function "internal_insn_latency" to insn-automata.c,
3113 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
3114 allowing the optional guard function of (define_bypass) clauses to
3115 expect a pair of rtx_insn *, rather than a pair of rtx.
3116 (output_insn_latency_func): When writing the function
3117 "insn_latency", add an "uncast_" prefix to params "insn" and
3118 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
3119 using checked casts from the params, thus enabling the above
3120 change to the generated "internal_insn_latency" function.
3121
3122 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
3123
3124 PR tree-optimization/62091
3125 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
3126 handle correctly arrays.
3127 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
3128 inheritance binfos.
3129 (record_known_type): Walk into inner type.
3130 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
3131 condition on no type changes.
3132
3133 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3134
3135 * genattrtab.c (write_attr_get): Within the generated get_attr_
3136 functions, rename param "insn" to "uncast_insn" and reintroduce
3137 "insn" as an local rtx_insn * using a checked cast, so that "insn"
3138 is an rtx_insn * within insn-attrtab.c
3139
3140 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3141
3142 * output.h (peephole): Strengthen return type from rtx to
3143 rtx_insn *.
3144 * rtl.h (delete_for_peephole): Likewise for both params.
3145 * genpeep.c (main): In generated "peephole" function, strengthen
3146 return type and local "insn" from rtx to rtx_insn *. For now,
3147 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
3148 rtx_insn *, with a checked cast.
3149 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
3150 locals "insn", "next", "prev" from rtx to rtx_insn *.
3151
3152 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
3153
3154 PR tree-optimization/62112
3155 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
3156 * gimple-iterator.h (gsi_replace): Return bool.
3157 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
3158 moved from ref_may_alias_global_p.
3159 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
3160 New overloads.
3161 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
3162 (stmt_kills_ref_p_1): Rename...
3163 (stmt_kills_ref_p): ... to this.
3164 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
3165 stmt_kills_ref_p): Declare.
3166 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
3167 Move the self-assignment case...
3168 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
3169
3170 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3171
3172 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
3173
3174 * emit-rtl.c (try_split): Likewise, also for locals "before" and
3175 "after". For now, don't strengthen param "trial", which requires
3176 adding checked casts when returning it.
3177
3178 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3179
3180 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
3181 "label" from rtx to rtx_code_label *. Strengthen param 1 of
3182 "var_location" hook from rtx to rtx_insn *.
3183 (debug_nothing_rtx): Delete in favor of...
3184 (debug_nothing_rtx_code_label): New prototype.
3185 (debug_nothing_rtx_rtx): Delete unused prototype.
3186 (debug_nothing_rtx_insn): New prototype.
3187
3188 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
3189 invoking debug_hooks->var_location (in two places, one in a NOTE
3190 case of a switch statement, the other guarded by a CALL_P
3191 conditional. Add checked cast to rtx_code_label * when invoking
3192 debug_hooks->label (within CODE_LABEL case of switch statement).
3193
3194 * dbxout.c (dbx_debug_hooks): Update "label" hook from
3195 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
3196 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
3197 (xcoff_debug_hooks): Likewise.
3198 * debug.c (do_nothing_debug_hooks): Likewise.
3199 (debug_nothing_rtx): Delete in favor of...
3200 (debug_nothing_rtx_insn): New function.
3201 (debug_nothing_rtx_rtx): Delete unused function.
3202 (debug_nothing_rtx_code_label): New function.
3203 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
3204 debug_nothing_rtx to debug_nothing_rtx_code_label.
3205 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
3206 to rtx_insn *.
3207 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
3208 debug_nothing_rtx to debug_nothing_rtx_insn.
3209 (sdbout_label): Strengthen param "insn" from rtx to
3210 rtx_code_label *.
3211 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
3212 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
3213 "var_location" hook from debug_nothing_rtx to
3214 debug_nothing_rtx_insn.
3215
3216 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3217
3218 * recog.h (insn_output_fn): Update this function typedef to match
3219 the changes below to the generated output functions, strengthening
3220 the 2nd param from rtx to rtx_insn *.
3221
3222 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
3223 insn when invoking an output function, to match the new signature
3224 of insn_output_fn with a stronger second param.
3225
3226 * genconditions.c (write_header): In the generated code for
3227 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
3228 to match the other changes in this patch.
3229
3230 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
3231 the generated "gen_" functions from rtx to rtx_insn * within their
3232 implementations.
3233
3234 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
3235 the subfunctions within the generated "recog_", "split", "peephole2"
3236 function trees from rtx to rtx_insn *. For now, the top-level
3237 generated functions ("recog", "split", "peephole2") continue to
3238 take a plain rtx for "insn", to avoid introducing dependencies on
3239 other patches. Rename this 2nd param from "insn" to
3240 "uncast_insn", and reintroduce "insn" as a local variable of type
3241 rtx_insn *, initialized at the top of the generated function with
3242 a checked cast on "uncast_insn".
3243 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
3244 the generated "gen_" functions from rtx to rtx_insn * within their
3245 prototypes.
3246
3247 * genoutput.c (process_template): Strengthen the 2nd param within
3248 the generated "output_" functions "insn" from rtx to rtx_insn *.
3249
3250 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
3251
3252 * tree-profile.c (tree_profiling): Skip external functions
3253 when doing coverage instrumentation.
3254 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
3255
3256 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3257
3258 * config/rs6000/altivec.h (vec_cpsgn): New #define.
3259 (vec_mergee): Likewise.
3260 (vec_mergeo): Likewise.
3261 (vec_cntlz): Likewise.
3262 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
3263 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
3264 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
3265 VMRGEW, and VMRGOW.
3266 * doc/extend.texi: Document various forms of vec_cpsgn,
3267 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
3268 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
3269 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
3270 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
3271 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
3272
3273 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3274
3275 * config/rs6000/rs6000.c (context.h): New include.
3276 (tree-pass.h): Likewise.
3277 (make_pass_analyze_swaps): New decl.
3278 (rs6000_option_override): Register pass_analyze_swaps.
3279 (swap_web_entry): New subsclass of web_entry_base (df.h).
3280 (special_handling_values): New enum.
3281 (union_defs): New function.
3282 (union_uses): Likewise.
3283 (insn_is_load_p): Likewise.
3284 (insn_is_store_p): Likewise.
3285 (insn_is_swap_p): Likewise.
3286 (rtx_is_swappable_p): Likewise.
3287 (insn_is_swappable_p): Likewise.
3288 (chain_purpose): New enum.
3289 (chain_contains_only_swaps): New function.
3290 (mark_swaps_for_removal): Likewise.
3291 (swap_const_vector_halves): Likewise.
3292 (adjust_subreg_index): Likewise.
3293 (permute_load): Likewise.
3294 (permute_store): Likewise.
3295 (handle_special_swappables): Likewise.
3296 (replace_swap_with_copy): Likewise.
3297 (dump_swap_insn_table): Likewise.
3298 (rs6000_analyze_swaps): Likewise.
3299 (pass_data_analyze_swaps): New pass_data.
3300 (pass_analyze_swaps): New rtl_opt_pass.
3301 (make_pass_analyze_swaps): New function.
3302 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
3303
3304 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3305
3306 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
3307 type from rtx to rtx_insn *.
3308 (create_copy_of_insn_rtx): Likewise.
3309 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
3310 (create_copy_of_insn_rtx): Likewise, also for local "res".
3311
3312 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3313
3314 * rtl.h (find_first_parameter_load): Strengthen return type from
3315 rtx to rtx_insn *.
3316 * rtlanal.c (find_first_parameter_load): Strengthen return type
3317 from rtx to rtx_insn *. Add checked cast for now, to postpone
3318 strengthening the params.
3319
3320 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3321
3322 PR fortran/44054
3323 * diagnostic.c: Set default caret.
3324 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
3325 line is needed.
3326 * diagnostic.h (struct diagnostic_context):
3327
3328 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3329
3330 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
3331 (sel_bb_head): Strengthen return type insn_t (currently just an
3332 rtx) to rtx_insn *.
3333 (sel_bb_end): Likewise.
3334
3335 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
3336 (sel_bb_head): Strengthen return type and local "head" from
3337 insn_t (currently just an rtx) to rtx_insn *.
3338 (sel_bb_end): Likewise for return type.
3339 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
3340 working with insn.
3341
3342 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3343
3344 * basic-block.h (get_last_bb_insn): Strengthen return type from
3345 rtx to rtx_insn *.
3346 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
3347 end".
3348
3349 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3350
3351 PR fortran/44054
3352 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
3353 to here ...
3354 (diagnostic_report_diagnostic): ... from here.
3355 * toplev.c (general_init): Move code to c-family.
3356
3357 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3358
3359 * df.h (web_entry_base): Replace existing struct web_entry with a
3360 new class web_entry_base with only the predecessor member.
3361 (unionfind_root): Remove declaration and move to class member.
3362 (unionfind_union): Remove declaration and move to friend
3363 function.
3364 (union_defs): Remove declaration.
3365 * web.c (web_entry_base::unionfind_root): Modify to be member
3366 function and adjust accessors.
3367 (unionfind_union): Modify to be friend function and adjust
3368 accessors.
3369 (web_entry): New subclass of web_entry_base containing the reg
3370 member.
3371 (union_match_dups): Modify for struct -> class changes.
3372 (union_defs): Likewise.
3373 (entry_register): Likewise.
3374 (pass_web::execute): Likewise.
3375
3376 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
3377
3378 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
3379 builtin define __VEC_ELEMENT_REG_ORDER__.
3380
3381 2014-08-20 Martin Jambor <mjambor@suse.cz>
3382 Wei Mi <wmi@google.com>
3383
3384 PR ipa/60449
3385 PR middle-end/61776
3386 * tree-ssa-operands.c (update_stmt_operands): Remove
3387 MODIFIED_NORETURN_CALLS.
3388 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
3389 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
3390 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
3391 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
3392 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
3393 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
3394 (gimple_call_set_ctrl_altering): New func.
3395 (gimple_call_ctrl_altering_p): Ditto.
3396 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
3397 (make_blocks): Use gimple_call_initialize_ctrl_altering.
3398 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
3399 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
3400 remove MODIFIED_NORETURN_CALLS.
3401
3402 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
3403
3404 * coverage.c (coverage_compute_profile_id): Return non-0;
3405 also handle symbols with unique name.
3406 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
3407
3408 2014-08-20 Steve Ellcey <sellcey@mips.com>
3409
3410 PR middle-end/49191
3411 * doc/sourcebuild.texi (non_strict_align): New.
3412
3413 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
3414
3415 * cgraphunit.c (ipa_passes, compile): Reshedule
3416 symtab_remove_unreachable_nodes passes; update comments.
3417 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
3418 TODO_remove_functions before the pass; the functions ought to be
3419 already removed.
3420 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
3421 TODO_remove_functions.
3422 * passes.c (pass_data_early_local_passes): Do not schedule function
3423 removal.
3424 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
3425
3426 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3427
3428 PR c/59304
3429 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
3430 before setting the option.
3431 * diagnostic.c (diagnostic_classify_diagnostic): Record
3432 command-line status.
3433
3434 2014-08-20 Richard Biener <rguenther@suse.de>
3435
3436 PR lto/62190
3437 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
3438 to build uint{16,32,64}_type_node.
3439
3440 2014-08-20 Terry Guo <terry.guo@arm.com>
3441
3442 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
3443 with immediate_operand.
3444
3445 2014-08-20 David Malcolm <dmalcolm@redhat.com>
3446
3447 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
3448 "insn" from an as_a to a safe_as_a, for the case when "insn" is
3449 NULL.
3450
3451 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3452
3453 PR preprocessor/51303
3454 * incpath.c (remove_duplicates): Use cpp_warning.
3455
3456 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3457
3458 PR c/60975
3459 PR c/53063
3460 * doc/options.texi (CPP): Document it.
3461 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
3462 * optc-gen.awk: Handle CPP.
3463 * opth-gen.awk: Likewise.
3464
3465 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3466
3467 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
3468 rtx_insn *.
3469 (duplicate_insn_chain): Likewise.
3470 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
3471 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
3472 checked cast for now (until we can strengthen the params in the
3473 same way).
3474 (duplicate_insn_chain): Likewise.
3475
3476 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3477
3478 * rtl.h (next_cc0_user): Strengthen return type from rtx to
3479 rtx_insn *.
3480 (prev_cc0_setter): Likewise.
3481
3482 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
3483 rtx_insn *, adding checked casts for now as necessary.
3484 (prev_cc0_setter): Likewise.
3485
3486 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3487
3488 * expr.h (emit_move_insn): Strengthen return type from rtx to
3489 rtx_insn *.
3490 (emit_move_insn_1): Likewise.
3491 (emit_move_complex_push): Likewise.
3492 (emit_move_complex_parts): Likewise.
3493
3494 * expr.c (emit_move_via_integer): Strengthen return type from rtx
3495 to rtx_insn *. Replace use of NULL_RTX with NULL when working
3496 with insns.
3497 (emit_move_complex_push): Strengthen return type from rtx to
3498 rtx_insn *.
3499 (emit_move_complex): Likewise, also for local "ret".
3500 (emit_move_ccmode): Likewise.
3501 (emit_move_multi_word): Likewise for return type and locals
3502 "last_insn", "seq".
3503 (emit_move_insn_1): Likewise for return type and locals "result",
3504 "ret".
3505 (emit_move_insn): Likewise for return type and local "last_insn".
3506 (compress_float_constant): Likewise.
3507
3508 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3509
3510 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
3511 from rtx to rtx_insn *.
3512
3513 * rtl.h (emit_insn_before): Likewise.
3514 (emit_insn_before_noloc): Likewise.
3515 (emit_insn_before_setloc): Likewise.
3516 (emit_jump_insn_before): Likewise.
3517 (emit_jump_insn_before_noloc): Likewise.
3518 (emit_jump_insn_before_setloc): Likewise.
3519 (emit_call_insn_before): Likewise.
3520 (emit_call_insn_before_noloc): Likewise.
3521 (emit_call_insn_before_setloc): Likewise.
3522 (emit_debug_insn_before): Likewise.
3523 (emit_debug_insn_before_noloc): Likewise.
3524 (emit_debug_insn_before_setloc): Likewise.
3525 (emit_label_before): Likewise.
3526 (emit_insn_after): Likewise.
3527 (emit_insn_after_noloc): Likewise.
3528 (emit_insn_after_setloc): Likewise.
3529 (emit_jump_insn_after): Likewise.
3530 (emit_jump_insn_after_noloc): Likewise.
3531 (emit_jump_insn_after_setloc): Likewise.
3532 (emit_call_insn_after): Likewise.
3533 (emit_call_insn_after_noloc): Likewise.
3534 (emit_call_insn_after_setloc): Likewise.
3535 (emit_debug_insn_after): Likewise.
3536 (emit_debug_insn_after_noloc): Likewise.
3537 (emit_debug_insn_after_setloc): Likewise.
3538 (emit_label_after): Likewise.
3539 (emit_insn): Likewise.
3540 (emit_debug_insn): Likewise.
3541 (emit_jump_insn): Likewise.
3542 (emit_call_insn): Likewise.
3543 (emit_label): Likewise.
3544 (gen_clobber): Likewise.
3545 (emit_clobber): Likewise.
3546 (gen_use): Likewise.
3547 (emit_use): Likewise.
3548 (emit): Likewise.
3549
3550 (emit_barrier_before): Strengthen return type from rtx to
3551 rtx_barrier *.
3552 (emit_barrier_after): Likewise.
3553 (emit_barrier): Likewise.
3554
3555 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
3556 from rtx to rtx_insn *. Add checked casts for now when converting
3557 "last" from rtx to rtx_insn *.
3558 (emit_insn_before_noloc): Likewise for return type.
3559 (emit_jump_insn_before_noloc): Likewise.
3560 (emit_call_insn_before_noloc): Likewise.
3561 (emit_debug_insn_before_noloc): Likewise.
3562 (emit_barrier_before): Strengthen return type and local "insn"
3563 from rtx to rtx_barrier *.
3564 (emit_label_before): Strengthen return type from rtx to
3565 rtx_insn *. Add checked cast for now when returning param
3566 (emit_pattern_after_noloc): Strengthen return type from rtx to
3567 rtx_insn *. Add checked casts for now when converting "last" from
3568 rtx to rtx_insn *.
3569 (emit_insn_after_noloc): Strengthen return type from rtx to
3570 rtx_insn *.
3571 (emit_jump_insn_after_noloc): Likewise.
3572 (emit_call_insn_after_noloc): Likewise.
3573 (emit_debug_insn_after_noloc): Likewise.
3574 (emit_barrier_after): Strengthen return type from rtx to
3575 rtx_barrier *.
3576 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
3577 Add checked cast for now when converting "label" from rtx to
3578 rtx_insn *.
3579 (emit_pattern_after_setloc): Strengthen return type from rtx to
3580 rtx_insn *. Add checked casts for now when converting "last" from
3581 rtx to rtx_insn *.
3582 (emit_pattern_after): Strengthen return type from rtx to
3583 rtx_insn *.
3584 (emit_insn_after_setloc): Likewise.
3585 (emit_insn_after): Likewise.
3586 (emit_jump_insn_after_setloc): Likewise.
3587 (emit_jump_insn_after): Likewise.
3588 (emit_call_insn_after_setloc): Likewise.
3589 (emit_call_insn_after): Likewise.
3590 (emit_debug_insn_after_setloc): Likewise.
3591 (emit_debug_insn_after): Likewise.
3592 (emit_pattern_before_setloc): Likewise. Add checked casts for now
3593 when converting "last" from rtx to rtx_insn *.
3594 (emit_pattern_before): Strengthen return type from rtx to
3595 rtx_insn *.
3596 (emit_insn_before_setloc): Likewise.
3597 (emit_insn_before): Likewise.
3598 (emit_jump_insn_before_setloc): Likewise.
3599 (emit_jump_insn_before): Likewise.
3600 (emit_call_insn_before_setloc): Likewise.
3601 (emit_call_insn_before): Likewise.
3602 (emit_debug_insn_before_setloc): Likewise.
3603 (emit_debug_insn_before): Likewise.
3604 (emit_insn): Strengthen return type and locals "last", "insn",
3605 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
3606 within cases where we know we have an insn.
3607 (emit_debug_insn): Likewise.
3608 (emit_jump_insn): Likewise.
3609 (emit_call_insn): Strengthen return type and local "insn" from rtx
3610 to rtx_insn *.
3611 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
3612 a checked cast to rtx_insn * for now on "label".
3613 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
3614 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
3615 (emit_use): Likewise.
3616 (gen_use): Likewise, also for local "seq".
3617 (emit): Likewise for return type and local "insn".
3618 (rtx_insn): Likewise for return type and local "new_rtx".
3619
3620 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
3621 from rtx to rtx_barrier *.
3622
3623 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
3624 changed return type from rtx to rtx_insn *, we must update
3625 "emit_fn" type, and this in turn means updating...
3626 (frame_insn): ...this. Strengthen return type from rtx to
3627 rtx_insn *. Introduce a new local "insn" of the appropriate type.
3628
3629 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3630
3631 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
3632 rtx to rtx_jump_table_data *. Also for local.
3633 * rtl.h (emit_jump_table_data): Likewise.
3634
3635 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3636
3637 * basic-block.h (create_basic_block_structure): Strengthen third
3638 param "bb_note" from rtx to rtx_note *.
3639 * rtl.h (emit_note_before): Strengthen return type from rtx to
3640 rtx_note *.
3641 (emit_note_after): Likewise.
3642 (emit_note): Likewise.
3643 (emit_note_copy): Likewise. Also, strengthen param similarly.
3644 * function.h (struct rtl_data): Strengthen field
3645 "x_stack_check_probe_note" from rtx to rtx_note *.
3646
3647 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
3648 from rtx to rtx_note *.
3649 * cfgrtl.c (create_basic_block_structure): Strengthen third param
3650 "bb_note" from rtx to rtx_note *.
3651 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
3652 when calling emit_note_copy.
3653 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
3654 rtx_note *.
3655 (emit_note_after): Likewise.
3656 (emit_note_before): Likewise.
3657 (emit_note_copy): Likewise. Also, strengthen param similarly.
3658 (emit_note): Likewise.
3659 * except.c (emit_note_eh_region_end): Likewise for return type.
3660 Strengthen local "next" from rtx to rtx_insn *.
3661 (convert_to_eh_region_ranges): Strengthen local "note"
3662 from rtx to rtx_note *.
3663 * final.c (change_scope): Likewise.
3664 (reemit_insn_block_notes): Likewise, for both locals named "note".
3665 Also, strengthen local "insn" from rtx to rtx_insn *.
3666 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
3667 rtx to rtx_note *.
3668 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
3669 strengthen local "seq" from rtx to rtx_insn *.
3670 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
3671 to rtx_note *.
3672 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
3673 vec<rtx_note *>.
3674 (get_bb_note_from_pool): Strengthen return type from rtx to
3675 rtx_note *.
3676 (sel_create_basic_block): Strengthen local "new_bb_note" from
3677 insn_t to rtx_note *.
3678 * var-tracking.c (emit_note_insn_var_location): Strengthen local
3679 "note" from rtx to rtx_note *.
3680 (emit_notes_in_bb): Likewise.
3681
3682 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3683
3684 * function.h (struct rtl_data): Strengthen field
3685 "x_parm_birth_insn" from rtx to rtx_insn *.
3686 * function.c (struct assign_parm_data_all): Strengthen fields
3687 "first_conversion_insn" and "last_conversion_insn" from rtx to
3688 rtx_insn *.
3689
3690 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3691
3692 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
3693 to rtx_insn *; also for local "var_end_seq".
3694 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
3695 (maybe_cleanup_end_of_block): Likewise for param "last" and local
3696 "insn".
3697 (expand_gimple_cond): Likewise for locals "last2" and "last".
3698 (mark_transaction_restart_calls): Likewise for local "insn".
3699 (expand_gimple_stmt): Likewise for return type and locals "last"
3700 and "insn".
3701 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
3702 (avoid_complex_debug_insns): Likewise for param "insn".
3703 (expand_debug_locations): Likewise for locals "insn", "last",
3704 "prev_insn" and "insn2".
3705 (expand_gimple_basic_block): Likewise for local "last".
3706 (construct_exit_block): Likewise for locals "head", "end",
3707 "orig_end".
3708 (pass_expand::execute): Likewise for locals "var_seq",
3709 "var_ret_seq", "next".
3710
3711 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3712
3713 * asan.h (asan_emit_stack_protection): Strengthen return type from
3714 rtx to rtx_insn *.
3715 * asan.c (asan_emit_stack_protection): Likewise. Add local
3716 "insns" to hold the return value.
3717
3718 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3719
3720 * basic-block.h (bb_note): Strengthen return type from rtx to
3721 rtx_note *.
3722 * sched-int.h (bb_note): Likewise.
3723 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
3724
3725 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3726
3727 * rtl.h (make_insn_raw): Strengthen return type from rtx to
3728 rtx_insn *.
3729
3730 * emit-rtl.c (make_insn_raw): Strengthen return type and local
3731 "insn" from rtx to rtx_insn *.
3732 (make_debug_insn_raw): Strengthen return type from rtx to
3733 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
3734 (make_jump_insn_raw): Strengthen return type from rtx to
3735 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
3736 (make_call_insn_raw): Strengthen return type from rtx to
3737 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
3738 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
3739 callback from rtx to rtx_insn *; likewise for local "insn" and
3740 "next", adding a checked cast to rtx_insn in the relevant cases of
3741 the switch statement.
3742 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
3743 callback from rtx to rtx_insn *.
3744 (emit_pattern_after_setloc): Likewise.
3745 (emit_pattern_after): Likewise.
3746 (emit_pattern_before_setloc): Likewise.
3747 (emit_pattern_before): Likewise.
3748
3749 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3750
3751 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
3752 rtx_call_insn *.
3753 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
3754 accepting an rtx_insn *.
3755 (last_call_insn): Strengthen return type from rtx to
3756 rtx_call_insn *.
3757
3758 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3759
3760 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
3761 "insns" from rtx to rtx_insn *.
3762 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
3763 locals "insn" and "prev".
3764
3765 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3766
3767 * rtl.h (tablejump_p): Strengthen third param from rtx * to
3768 rtx_jump_table_data **.
3769
3770 * cfgbuild.c (make_edges): Introduce local "table", using it in
3771 place of "tmp" for jump table data.
3772 (find_bb_boundaries): Strengthen local "table" from rtx to
3773 rtx_jump_table_data *.
3774 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
3775 (outgoing_edges_match): Likewise for locals "table1" and "table2".
3776 (try_crossjump_to_edge): Likewise.
3777 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
3778 "table".
3779 (patch_jump_insn): Introduce local "table", using it in place of
3780 "tmp" for jump table data.
3781 (force_nonfallthru_and_redirect): Introduce local "table", so that
3782 call to tablejump_p can receive an rtx_jump_table_data **. Update
3783 logic around the call to overwrite "note" appropriately if
3784 tablejump_p returns non-zero.
3785 (get_last_bb_insn): Introduce local "table", using it in place of
3786 "tmp" for jump table data.
3787 * dwarf2cfi.c (create_trace_edges): Likewise.
3788
3789 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
3790 from rtx to rtx_jump_table_data *.
3791 (create_fix_barrier): Strengthen local "tmp" from rtx to
3792 rtx_jump_table_data *.
3793 (arm_reorg): Likewise for local "table".
3794
3795 * config/s390/s390.c (s390_chunkify_start): Likewise.
3796
3797 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
3798
3799 * jump.c (delete_related_insns): Strengthen local "lab_next" from
3800 rtx to rtx_jump_table_data *.
3801
3802 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
3803 rtx_jump_table_data **. Add a checked cast when writing through
3804 the pointer: we know there that local "table" is non-NULL and that
3805 JUMP_TABLE_DATA_P (table) holds.
3806 (label_is_jump_target_p): Introduce local "table", using it in
3807 place of "tmp" for jump table data.
3808
3809 2014-08-19 Marek Polacek <polacek@redhat.com>
3810
3811 PR c++/62153
3812 * doc/invoke.texi: Document -Wbool-compare.
3813
3814 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3815
3816 * rtl.h (entry_of_function): Strengthen return type from rtx to
3817 rtx_insn *.
3818 * cfgrtl.c (entry_of_function): Likewise.
3819
3820 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3821
3822 * emit-rtl.h (get_insns): Strengthen return type from rtx to
3823 rtx_insn *, adding a checked cast for now.
3824 (get_last_insn): Likewise.
3825
3826 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3827
3828 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
3829 rtx_code_label *.
3830
3831 * emit-rtl.c (gen_label_rtx): Likewise.
3832
3833 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3834
3835 * rtl.h (previous_insn): Strengthen return type from rtx to
3836 rtx_insn *.
3837 (next_insn): Likewise.
3838 (prev_nonnote_insn): Likewise.
3839 (prev_nonnote_insn_bb): Likewise.
3840 (next_nonnote_insn): Likewise.
3841 (next_nonnote_insn_bb): Likewise.
3842 (prev_nondebug_insn): Likewise.
3843 (next_nondebug_insn): Likewise.
3844 (prev_nonnote_nondebug_insn): Likewise.
3845 (next_nonnote_nondebug_insn): Likewise.
3846 (prev_real_insn): Likewise.
3847 (next_real_insn): Likewise.
3848 (prev_active_insn): Likewise.
3849 (next_active_insn): Likewise.
3850
3851 * emit-rtl.c (next_insn): Strengthen return type from rtx to
3852 rtx_insn *, adding a checked cast.
3853 (previous_insn): Likewise.
3854 (next_nonnote_insn): Likewise.
3855 (next_nonnote_insn_bb): Likewise.
3856 (prev_nonnote_insn): Likewise.
3857 (prev_nonnote_insn_bb): Likewise.
3858 (next_nondebug_insn): Likewise.
3859 (prev_nondebug_insn): Likewise.
3860 (next_nonnote_nondebug_insn): Likewise.
3861 (prev_nonnote_nondebug_insn): Likewise.
3862 (next_real_insn): Likewise.
3863 (prev_real_insn): Likewise.
3864 (next_active_insn): Likewise.
3865 (prev_active_insn): Likewise.
3866
3867 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
3868 param "stepfunc" so that it returns an rtx_insn * rather than an
3869 rtx, to track the change to prev_nonnote_insn_bb, which is the
3870 only function this is called with.
3871 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
3872
3873 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
3874
3875 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
3876 assert.
3877
3878 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3879
3880 * coretypes.h (class rtx_debug_insn): Add forward declaration.
3881 (class rtx_nonjump_insn): Likewise.
3882 (class rtx_jump_insn): Likewise.
3883 (class rtx_call_insn): Likewise.
3884 (class rtx_jump_table_data): Likewise.
3885 (class rtx_barrier): Likewise.
3886 (class rtx_code_label): Likewise.
3887 (class rtx_note): Likewise.
3888
3889 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
3890 adding the invariant DEBUG_INSN_P (X).
3891 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
3892 the invariant NONJUMP_INSN_P (X).
3893 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
3894 the invariant JUMP_P (X).
3895 (class rtx_call_insn): New, a subclass of rtx_insn, adding
3896 the invariant CALL_P (X).
3897 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
3898 invariant JUMP_TABLE_DATA_P (X).
3899 (class rtx_barrier): New, a subclass of rtx_insn, adding the
3900 invariant BARRIER_P (X).
3901 (class rtx_code_label): New, a subclass of rtx_insn, adding
3902 the invariant LABEL_P (X).
3903 (class rtx_note): New, a subclass of rtx_insn, adding
3904 the invariant NOTE_P(X).
3905 (is_a_helper <rtx_debug_insn *>::test): New.
3906 (is_a_helper <rtx_nonjump_insn *>::test): New.
3907 (is_a_helper <rtx_jump_insn *>::test): New.
3908 (is_a_helper <rtx_call_insn *>::test): New.
3909 (is_a_helper <rtx_jump_table_data *>::test): New functions,
3910 overloaded for both rtx and rtx_insn *.
3911 (is_a_helper <rtx_barrier *>::test): New.
3912 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
3913 for both rtx and rtx_insn *.
3914 (is_a_helper <rtx_note *>::test): New.
3915
3916 2014-08-19 Marek Polacek <polacek@redhat.com>
3917
3918 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
3919 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
3920 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
3921 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
3922
3923 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3924
3925 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
3926 rtx_insn *. To help with transition, for now, convert from an
3927 access macro into a pair of functions: BND_TO, returning an
3928 rtx_insn *, and...
3929 (SET_BND_TO): New function, for use where BND_TO is used as an
3930 lvalue.
3931
3932 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
3933 SET_BND_TO.
3934 (BND_TO): New function, adding a checked cast.
3935 (SET_BND_TO): New function.
3936
3937 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
3938 SET_BND_TO.
3939 (compute_av_set_on_boundaries): Likewise.
3940
3941 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
3942
3943 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
3944 destination if it is used in source.
3945 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
3946 (*popcount<mode>2_falsedep_1): Likewise.
3947
3948 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
3949
3950 PR other/62168
3951 * configure.ac: Set install_gold_as_default to no first.
3952 * configure: Regenerated.
3953
3954 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3955
3956 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
3957 "note_list" field will eventually be an rtx_insn *. To help with
3958 transition, for now, convert from an access macro into a pair of
3959 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
3960 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
3961 used as an lvalue.
3962
3963 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
3964 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
3965
3966 * sel-sched-ir.c (init_bb): Likewise.
3967 (sel_restore_notes): Likewise.
3968 (move_bb_info): Likewise.
3969 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
3970 (SET_BB_NOTE_LIST): New function.
3971
3972 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3973
3974 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
3975 field will eventually be an rtx_insn *. To help with transition,
3976 for now, convert from an access macro into a pair of functions:
3977 VINSN_INSN_RTX, returning an rtx_insn *, and...
3978 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
3979 is used as an lvalue.
3980
3981 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
3982 SET_VINSN_INSN_RTX where it's used as an lvalue.
3983 (VINSN_INSN_RTX): New function.
3984 (SET_VINSN_INSN_RTX): New function.
3985
3986 2014-08-19 David Malcolm <dmalcolm@redhat.com>
3987
3988 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
3989 eventually be rtx_insn *, but to help with transition, for now,
3990 convert from an access macro into a pair of functions: DEP_PRO
3991 returning an rtx_insn * and...
3992 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
3993 lvalue, returning an rtx&.
3994 (DEP_CON): Analogous changes to DEP_PRO above.
3995 (SET_DEP_CON): Likewise.
3996
3997 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
3998 an lvalue to SET_DEP_CON.
3999 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
4000 (sd_copy_back_deps): Likewise for DEP_CON.
4001 (DEP_PRO): New function, adding a checked cast for now.
4002 (DEP_CON): Likewise.
4003 (SET_DEP_PRO): New function.
4004 (SET_DEP_CON): Likewise.
4005
4006 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
4007
4008 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
4009 (extra_options): Add i386/cygwin.opt.
4010 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
4011 (CPP_SPEC): Accept -pthread.
4012 (LINK_SPEC): Ditto.
4013 (GOMP_SELF_SPECS): Update comment.
4014 * config/i386/cygwin.opt: New file for -pthread flag.
4015
4016 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4017
4018 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
4019 * df.h (DF_REF_INSN): Convert from a macro to a function, so
4020 that we can return an rtx_insn *.
4021
4022 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
4023
4024 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
4025 when building executables, not DLLs. Add --large-address-aware
4026 under the same conditions.
4027 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
4028 when building executables, not DLLs. Add --large-address-aware
4029 under the same conditions when using -m32.
4030
4031 * config/i386/cygwin-stdint.h: Throughout, make type
4032 definitions dependent on target architecture, not host.
4033
4034 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4035
4036 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
4037 the return type from rtx to rtx_insn *, which will enable various
4038 conversions in followup patches. For now this is is done by a
4039 checked cast.
4040 (NEXT_INSN): Likewise.
4041 (SET_PREV_INSN): Convert to an inline function. This is intended
4042 for use as an lvalue, and so returns an rtx& to allow in-place
4043 modification.
4044 (SET_NEXT_INSN): Likewise.
4045
4046 2014-07-08 Mark Wielaard <mjw@redhat.com>
4047
4048 PR debug/59051
4049 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
4050
4051 2014-08-19 Marek Polacek <polacek@redhat.com>
4052
4053 PR c/61271
4054 * cgraphunit.c (handle_alias_pairs): Fix condition.
4055
4056 2014-08-19 Richard Biener <rguenther@suse.de>
4057
4058 * gimple-fold.c (fold_gimple_assign): Properly build a
4059 null-pointer constant when devirtualizing addresses.
4060
4061 2014-07-07 Mark Wielaard <mjw@redhat.com>
4062
4063 * dwarf2out.c (decl_quals): New function.
4064 (modified_type_die): Take one cv_quals argument instead of two,
4065 one for const and one for volatile.
4066 (add_type_attribute): Likewise.
4067 (generic_parameter_die): Call add_type_attribute with one modifier
4068 argument.
4069 (base_type_for_mode): Likewise.
4070 (add_bounds_info): Likewise.
4071 (add_subscript_info): Likewise.
4072 (gen_array_type_die): Likewise.
4073 (gen_descr_array_type_die): Likewise.
4074 (gen_entry_point_die): Likewise.
4075 (gen_enumeration_type_die): Likewise.
4076 (gen_formal_parameter_die): Likewise.
4077 (gen_subprogram_die): Likewise.
4078 (gen_variable_die): Likewise.
4079 (gen_const_die): Likewise.
4080 (gen_field_die): Likewise.
4081 (gen_pointer_type_die): Likewise.
4082 (gen_reference_type_die): Likewise.
4083 (gen_ptr_to_mbr_type_die): Likewise.
4084 (gen_inheritance_die): Likewise.
4085 (gen_subroutine_type_die): Likewise.
4086 (gen_typedef_die): Likewise.
4087 (force_type_die): Likewise.
4088
4089 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4090
4091 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
4092 if unset.
4093 * configure: Regenerate.
4094
4095 2014-08-19 Richard Biener <rguenther@suse.de>
4096
4097 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
4098 DECL_EXTERNALs in BLOCKs as non-references.
4099 * tree-streamer-out.c (streamer_write_chain): Likewise.
4100
4101 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
4102 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4103 Anna Tikhonova <anna.tikhonova@intel.com>
4104 Ilya Tocar <ilya.tocar@intel.com>
4105 Andrey Turetskiy <andrey.turetskiy@intel.com>
4106 Ilya Verbin <ilya.verbin@intel.com>
4107 Kirill Yukhin <kirill.yukhin@intel.com>
4108 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4109
4110 * config/i386/sse.md
4111 (define_mode_iterator VI48_AVX512F): Delete.
4112 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
4113 (define_mode_iterator VI2_AVX512VL): Ditto.
4114 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
4115 Delete.
4116 (define_insn
4117 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
4118 New.
4119 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
4120 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
4121 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
4122 with VI48_AVX512F_AVX512VL): New.
4123 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
4124 with VI2_AVX512VL): Ditto.
4125
4126 2014-08-19 Marek Polacek <polacek@redhat.com>
4127
4128 * doc/invoke.texi: Document -Wc99-c11-compat.
4129
4130 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4131
4132 * rtl.h (PREV_INSN): Split macro in two: the existing one,
4133 for rvalues, and...
4134 (SET_PREV_INSN): New macro, for use as an lvalue.
4135 (NEXT_INSN, SET_NEXT_INSN): Likewise.
4136
4137 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
4138 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
4139 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4140 (fixup_abnormal_edges): Likewise.
4141 (unlink_insn_chain): Likewise.
4142 (fixup_reorder_chain): Likewise.
4143 (cfg_layout_delete_block): Likewise.
4144 (cfg_layout_merge_blocks): Likewise.
4145 * combine.c (update_cfg_for_uncondjump): Likewise.
4146 * emit-rtl.c (link_insn_into_chain): Likewise.
4147 (remove_insn): Likewise.
4148 (delete_insns_since): Likewise.
4149 (reorder_insns_nobb): Likewise.
4150 (emit_insn_after_1): Likewise.
4151 * final.c (rest_of_clean_state): Likewise.
4152 (final_scan_insn): Likewise.
4153 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
4154 * haifa-sched.c (concat_note_lists): Likewise.
4155 (remove_notes): Likewise.
4156 (restore_other_notes): Likewise.
4157 (move_insn): Likewise.
4158 (unlink_bb_notes): Likewise.
4159 (restore_bb_notes): Likewise.
4160 * jump.c (delete_for_peephole): Likewise.
4161 * optabs.c (emit_libcall_block_1): Likewise.
4162 * reorg.c (emit_delay_sequence): Likewise.
4163 (fill_simple_delay_slots): Likewise.
4164 * sel-sched-ir.c (sel_move_insn): Likewise.
4165 (sel_remove_insn): Likewise.
4166 (get_bb_note_from_pool): Likewise.
4167 * sel-sched.c (move_nop_to_previous_block): Likewise.
4168
4169 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
4170 * config/c6x/c6x.c (gen_one_bundle): Likewise.
4171 (c6x_gen_bundles): Likewise.
4172 (hwloop_optimize): Likewise.
4173 * config/frv/frv.c (frv_function_prologue): Likewise.
4174 (frv_register_nop): Likewise.
4175 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
4176 (ia64_reorg): Likewise.
4177 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
4178 (mep_make_bundle): Likewise.
4179 (mep_bundle_insns): Likewise.
4180 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
4181 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
4182 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
4183
4184 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4185
4186 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
4187 return type from rtx to rtx_insn *.
4188 (BB_END): Likewise.
4189 (BB_HEADER): Likewise.
4190 (BB_FOOTER): Likewise.
4191 (SET_BB_HEAD): Convert to a function.
4192 (SET_BB_END): Likewise.
4193 (SET_BB_HEADER): Likewise.
4194 (SET_BB_FOOTER): Likewise.
4195
4196 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
4197 Strengthen the return type from rtx to rtx_insn *. For now, this
4198 is done by adding a checked cast, but this will eventually
4199 become a field lookup.
4200 (BB_END): Likewise.
4201 (BB_HEADER): Likewise.
4202 (BB_FOOTER): Likewise.
4203 (SET_BB_HEAD): New function, from macro of same name. This is
4204 intended for use as an lvalue, and so returns an rtx& to allow
4205 in-place modification.
4206 (SET_BB_END): Likewise.
4207 (SET_BB_HEADER): Likewise.
4208 (SET_BB_FOOTER): Likewise.
4209
4210 2014-08-18 David Malcolm <dmalcolm@redhat.com>
4211
4212 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
4213 for rvalues, and...
4214 (SET_BB_HEAD): New macro, for use as a lvalue.
4215 (BB_END, SET_BB_END): Likewise.
4216 (BB_HEADER, SET_BB_HEADER): Likewise.
4217 (BB_FOOTER, SET_BB_FOOTER): Likewise.
4218
4219 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
4220 of BB_* macros into SET_BB_* macros.
4221 (fix_crossing_unconditional_branches): Likewise.
4222 * caller-save.c (save_call_clobbered_regs): Likewise.
4223 (insert_one_insn): Likewise.
4224 * cfgbuild.c (find_bb_boundaries): Likewise.
4225 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4226 (outgoing_edges_match): Likewise.
4227 (try_optimize_cfg): Likewise.
4228 * cfgexpand.c (expand_gimple_cond): Likewise.
4229 (expand_gimple_tailcall): Likewise.
4230 (expand_gimple_basic_block): Likewise.
4231 (construct_exit_block): Likewise.
4232 * cfgrtl.c (delete_insn): Likewise.
4233 (create_basic_block_structure): Likewise.
4234 (rtl_delete_block): Likewise.
4235 (rtl_split_block): Likewise.
4236 (emit_nop_for_unique_locus_between): Likewise.
4237 (rtl_merge_blocks): Likewise.
4238 (block_label): Likewise.
4239 (try_redirect_by_replacing_jump): Likewise.
4240 (emit_barrier_after_bb): Likewise.
4241 (fixup_abnormal_edges): Likewise.
4242 (record_effective_endpoints): Likewise.
4243 (relink_block_chain): Likewise.
4244 (fixup_reorder_chain): Likewise.
4245 (fixup_fallthru_exit_predecessor): Likewise.
4246 (cfg_layout_duplicate_bb): Likewise.
4247 (cfg_layout_split_block): Likewise.
4248 (cfg_layout_delete_block): Likewise.
4249 (cfg_layout_merge_blocks): Likewise.
4250 * combine.c (update_cfg_for_uncondjump): Likewise.
4251 * emit-rtl.c (add_insn_after): Likewise.
4252 (remove_insn): Likewise.
4253 (reorder_insns): Likewise.
4254 (emit_insn_after_1): Likewise.
4255 * haifa-sched.c (get_ebb_head_tail): Likewise.
4256 (restore_other_notes): Likewise.
4257 (move_insn): Likewise.
4258 (sched_extend_bb): Likewise.
4259 (fix_jump_move): Likewise.
4260 * ifcvt.c (noce_process_if_block): Likewise.
4261 (dead_or_predicable): Likewise.
4262 * ira.c (update_equiv_regs): Likewise.
4263 * reg-stack.c (change_stack): Likewise.
4264 * sel-sched-ir.c (sel_move_insn): Likewise.
4265 * sel-sched.c (move_nop_to_previous_block): Likewise.
4266
4267 * config/c6x/c6x.c (hwloop_optimize): Likewise.
4268 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
4269
4270 2014-08-18 David Malcolm <dmalcolm@redhat.com>
4271
4272 * rtl.h (for_each_rtx_in_insn): New function.
4273 * rtlanal.c (for_each_rtx_in_insn): Likewise.
4274
4275 2014-08-18 David Malcolm <dmalcolm@redhat.com>
4276
4277 * coretypes.h (class rtx_insn): Add forward declaration.
4278
4279 * rtl.h: Include is-a.h.
4280 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
4281 workaround to ensure gengtype knows inheritance is occurring,
4282 whilst continuing to use the pre-existing special-casing for
4283 rtx_def.
4284 (class rtx_insn): New subclass of rtx_def, adding the
4285 invariant that we're dealing with something we can sanely use
4286 INSN_UID, NEXT_INSN, PREV_INSN on.
4287 (is_a_helper <rtx_insn *>::test): New.
4288 (is_a_helper <const rtx_insn *>::test): New.
4289
4290 2014-08-18 David Malcolm <dmalcolm@redhat.com>
4291
4292 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
4293
4294 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
4295
4296 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
4297 comdats as extern.
4298
4299 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
4300
4301 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
4302 to BUILT_IN_UNREACHABLE.
4303
4304 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
4305
4306 PR target/62011
4307 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
4308 New tune flag.
4309 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
4310 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
4311 (ffs<mode>2): Do not expand with tzcnt for
4312 TARGET_AVOID_FALSE_DEP_FOR_BMI.
4313 (ffssi2_no_cmove): Ditto.
4314 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
4315 (ctz<mode>2): New expander.
4316 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
4317 (*ctz<mode>2_falsedep): New insn.
4318 (*ctz<mode>2): Rename from ctz<mode>2.
4319 (clz<mode>2_lzcnt): New expander.
4320 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
4321 (*clz<mode>2_lzcnt_falsedep): New insn.
4322 (*clz<mode>2): Rename from ctz<mode>2.
4323 (popcount<mode>2): New expander.
4324 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
4325 (*popcount<mode>2_falsedep): New insn.
4326 (*popcount<mode>2): Rename from ctz<mode>2.
4327 (*popcount<mode>2_cmp): Remove.
4328 (*popcountsi2_cmp_zext): Ditto.
4329
4330 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
4331
4332 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
4333 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
4334 * config/microblaze/microblaze.h
4335 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
4336
4337 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
4338
4339 PR other/62168
4340 * configure.ac: Set install_gold_as_default to no for
4341 --enable-gold=no.
4342 * configure: Regenerated.
4343
4344 2014-08-18 Roman Gareev <gareevroman@gmail.com>
4345
4346 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
4347 * config.in: Add undef of HAVE_isl.
4348 * configure: Regenerate.
4349 * configure.ac: Add definition of HAVE_isl.
4350 * graphite-blocking.c: Add checking of HAVE_isl.
4351 * graphite-dependences.c: Likewise.
4352 * graphite-interchange.c: Likewise.
4353 * graphite-isl-ast-to-gimple.c: Likewise.
4354 * graphite-optimize-isl.c: Likewise.
4355 * graphite-poly.c: Likewise.
4356 * graphite-scop-detection.c: Likewise.
4357 * graphite-sese-to-poly.c: Likewise.
4358 * graphite.c: Likewise.
4359 * toplev.c: Replace the checking of HAVE_cloog with the checking
4360 of HAVE_isl.
4361
4362 2014-08-18 Richard Biener <rguenther@suse.de>
4363
4364 PR tree-optimization/62090
4365 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
4366 (fold_builtin_3): Do not fold snprintf.
4367 (fold_builtin_4): Likewise.
4368 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
4369 moved from builtins.c.
4370 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
4371 (gimple_fold_builtin): Do not fold sprintf here.
4372
4373 2014-08-18 Richard Biener <rguenther@suse.de>
4374
4375 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
4376 code to ...
4377 (maybe_canonicalize_mem_ref_addr): ... this function.
4378 (fold_stmt_1): Apply it here before all simplification.
4379
4380 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
4381
4382 PR ipa/61800
4383 * cgraph.h (cgraph_node::create_indirect_edge): Add
4384 compute_indirect_info param.
4385 * cgraph.c (cgraph_node::create_indirect_edge): Compute
4386 indirect_info only when it is required.
4387 * cgraphclones.c (cgraph_clone_edge): Do not recompute
4388 indirect_info fore cloned indirect edge.
4389
4390 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
4391 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4392 Anna Tikhonova <anna.tikhonova@intel.com>
4393 Ilya Tocar <ilya.tocar@intel.com>
4394 Andrey Turetskiy <andrey.turetskiy@intel.com>
4395 Ilya Verbin <ilya.verbin@intel.com>
4396 Kirill Yukhin <kirill.yukhin@intel.com>
4397 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4398
4399 * config/i386/sse.md
4400 (define_mode_iterator VI8_AVX2_AVX512BW): New.
4401 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
4402
4403 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
4404 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4405 Anna Tikhonova <anna.tikhonova@intel.com>
4406 Ilya Tocar <ilya.tocar@intel.com>
4407 Andrey Turetskiy <andrey.turetskiy@intel.com>
4408 Ilya Verbin <ilya.verbin@intel.com>
4409 Kirill Yukhin <kirill.yukhin@intel.com>
4410 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4411
4412 * config/i386/sse.md
4413 (define_mode_iterator VF1_AVX512VL): New.
4414 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
4415 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
4416 New.
4417
4418 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
4419 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4420 Anna Tikhonova <anna.tikhonova@intel.com>
4421 Ilya Tocar <ilya.tocar@intel.com>
4422 Andrey Turetskiy <andrey.turetskiy@intel.com>
4423 Ilya Verbin <ilya.verbin@intel.com>
4424 Kirill Yukhin <kirill.yukhin@intel.com>
4425 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4426
4427 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
4428 * config/i386/i386.md
4429 (define_code_iterator any_float): New.
4430 (define_code_attr floatsuffix): New.
4431 * config/i386/sse.md
4432 (define_mode_iterator VF1_128_256VL): New.
4433 (define_mode_iterator VF2_512_256VL): New.
4434 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
4435 TARGET check.
4436 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
4437 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
4438 New.
4439 (define_mode_attr qq2pssuff): New.
4440 (define_mode_attr sselongvecmode): New.
4441 (define_mode_attr sselongvecmodelower): New.
4442 (define_mode_attr sseintvecmode3): New.
4443 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
4444 New.
4445 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
4446 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
4447 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
4448 (define_insn "ufloatv2siv2df2<mask_name>"): New.
4449
4450 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
4451 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4452 Anna Tikhonova <anna.tikhonova@intel.com>
4453 Ilya Tocar <ilya.tocar@intel.com>
4454 Andrey Turetskiy <andrey.turetskiy@intel.com>
4455 Ilya Verbin <ilya.verbin@intel.com>
4456 Kirill Yukhin <kirill.yukhin@intel.com>
4457 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4458
4459 * config/i386/sse.md
4460 (define_mode_iterator VF2_AVX512VL): New.
4461 (define_mode_attr sseintvecmode2): New.
4462 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
4463 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
4464 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
4465 (define_insn
4466 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
4467 Ditto.
4468 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
4469 Ditto.
4470 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
4471 Ditto.
4472
4473 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
4474 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4475 Anna Tikhonova <anna.tikhonova@intel.com>
4476 Ilya Tocar <ilya.tocar@intel.com>
4477 Andrey Turetskiy <andrey.turetskiy@intel.com>
4478 Ilya Verbin <ilya.verbin@intel.com>
4479 Kirill Yukhin <kirill.yukhin@intel.com>
4480 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4481
4482 * config/i386/i386.md
4483 (define_insn "*movoi_internal_avx"): Add evex version.
4484 (define_insn "*movti_internal"): Ditto.
4485
4486 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
4487 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4488 Anna Tikhonova <anna.tikhonova@intel.com>
4489 Ilya Tocar <ilya.tocar@intel.com>
4490 Andrey Turetskiy <andrey.turetskiy@intel.com>
4491 Ilya Verbin <ilya.verbin@intel.com>
4492 Kirill Yukhin <kirill.yukhin@intel.com>
4493 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4494
4495 * config/i386/i386.md
4496 (define_attr "isa"): Add avx512dq, noavx512dq.
4497 (define_attr "enabled"): Ditto.
4498 * config/i386/sse.md
4499 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
4500
4501 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
4502 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4503 Anna Tikhonova <anna.tikhonova@intel.com>
4504 Ilya Tocar <ilya.tocar@intel.com>
4505 Andrey Turetskiy <andrey.turetskiy@intel.com>
4506 Ilya Verbin <ilya.verbin@intel.com>
4507 Kirill Yukhin <kirill.yukhin@intel.com>
4508 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4509
4510 * config/i386/i386.c
4511 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
4512 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
4513 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
4514 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
4515 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
4516 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
4517 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
4518 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
4519 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
4520 * config/i386/sse.md
4521 (define_mode_iterator VMOVE): Allow V4TI mode.
4522 (define_mode_iterator V_AVX512VL): New.
4523 (define_mode_iterator V): New handling for AVX512VL.
4524 (define_insn "avx512f_load<mode>_mask"): Delete.
4525 (define_insn "<avx512>_load<mode>_mask"): New.
4526 (define_insn "avx512f_store<mode>_mask"): Delete.
4527 (define_insn "<avx512>_store<mode>_mask"): New.
4528
4529
4530 2014-08-18 Yury Gribov <y.gribov@samsung.com>
4531
4532 PR sanitizer/62089
4533 * asan.c (instrument_derefs): Fix bitfield check.
4534
4535 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
4536
4537 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
4538 * config/rs6000/htm.md (ttest): Remove clobber.
4539 * config/rs6000/predicates.md (any_mask_operand): New predicate.
4540 (and_operand): Reformat.
4541 (and_2rld_operand): New predicate.
4542 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
4543 parameter.
4544 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
4545 parameter. Handle AND directly.
4546 (rs6000_split_logical_di): Remove last parameter.
4547 (rs6000_split_logical): Remove last parameter. Remove obsolete
4548 comment.
4549 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
4550 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
4551 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
4552 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
4553 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
4554 and 5 anonymous splitters): Delete.
4555 (and<mode>3): New expander.
4556 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
4557 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
4558 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
4559 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
4560 (floatdisf2_internal1): Remove clobbers.
4561 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
4562 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
4563 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
4564 (and<mode>3 for BOOL_128): Remove clobber.
4565 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
4566 rs6000_split_logical.
4567 (*bool<mode>3_internal for BOOL_128): Adjust call of
4568 rs6000_split_logical.
4569 (*boolc<mode>3_internal1 for BOOL_128,
4570 *boolc<mode>3_internal2 for BOOL_128,
4571 *boolcc<mode>3_internal1 for BOOL_128,
4572 *boolcc<mode>3_internal2 for BOOL_128,
4573 *eqv<mode>3_internal1 for BOOL_128,
4574 *eqv<mode>3_internal2 for BOOL_128,
4575 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
4576 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
4577 clobber.
4578 (*vec_reload_and_reg_<mptrsize>): Delete.
4579
4580 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
4581
4582 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
4583 and split, *boolccsi3_internal3 and split): Delete.
4584 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
4585 *boolccdi3_internal3 and split): Delete.
4586 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
4587 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
4588
4589 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
4590
4591 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
4592 and split, *boolcsi3_internal3 and split): Delete.
4593 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
4594 *boolcdi3_internal3 and split): Delete.
4595 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
4596
4597 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
4598
4599 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
4600 <'u'>: Also support printing the low-order 16 bits.
4601 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
4602 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
4603 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
4604 *booldi3_internal3 and split): Delete.
4605 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
4606 *bool<mode>3_dot2): New.
4607 (two anonymous define_splits for non_logical_cint_operand): Merge.
4608
4609 2014-08-17 Marek Polacek <polacek@redhat.com>
4610 Manuel López-Ibáñez <manu@gcc.gnu.org>
4611
4612 PR c/62059
4613 * diagnostic.c (adjust_line): Add gcc_checking_assert.
4614 (diagnostic_show_locus): Don't print caret diagnostic
4615 if a column is larger than the line_width.
4616
4617 2014-08-17 Roman Gareev <gareevroman@gmail.com>
4618
4619 * common.opt: Make the ISL AST generator to be the main code generator
4620 of Graphite.
4621
4622 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
4623
4624 * wide-int.h (generic_wide_int): Declare as class instead of struct.
4625
4626 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
4627
4628 PR target/61641
4629 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
4630 Declare.
4631 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
4632 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
4633 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
4634 Define.
4635 * config/pa/pa.md (begin_brtab): Delete insn.
4636 (end_brtab): Likewise.
4637
4638 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4639
4640 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
4641
4642 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
4643
4644 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4645 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4646 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4647 (get_dynamic_type): Remove.
4648 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4649 (clear_speculation): Bring to ipa-deivrt.h
4650 (get_class_context): Rename to ...
4651 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4652 (contains_type_p): Update.
4653 (get_dynamic_type): Rename to ...
4654 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4655 (possible_polymorphic_call_targets): UPdate.
4656 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4657 * ipa-prop.c (ipa_analyze_call_uses): Update.
4658
4659 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
4660
4661 * doc/invoke.texi (SH options): Document missing processor variant
4662 options. Remove references to Hitachi. Undocument deprecated mspace
4663 option.
4664
4665 2014-08-15 Jason Merrill <jason@redhat.com>
4666
4667 * tree.c (type_hash_canon): Uncomment assert.
4668
4669 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4670
4671 * input.h (in_system_header_at): Add comment.
4672
4673 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4674
4675 PR fortran/44054
4676 * diagnostic.c (build_message_string): Make it extern.
4677 * diagnostic.h (build_message_string): Make it extern.
4678
4679 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
4680
4681 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
4682 load/store from/to non-floating class pseudo.
4683
4684 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4685
4686 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
4687
4688 2014-08-15 Richard Biener <rguenther@suse.de>
4689
4690 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
4691 (get_constraint_for_ssa_var): Remove dead code.
4692 (get_constraint_for_1): Adjust.
4693 (find_what_var_points_to): Likewise.
4694 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
4695
4696 2014-08-15 Ilya Tocar <tocarip@gmail.com>
4697
4698 PR target/61878
4699 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
4700 (_mm512_mask_cmpge_epu32_mask): Ditto.
4701 (_mm512_cmpge_epu32_mask): Ditto.
4702 (_mm512_mask_cmpge_epi64_mask): Ditto.
4703 (_mm512_cmpge_epi64_mask): Ditto.
4704 (_mm512_mask_cmpge_epu64_mask): Ditto.
4705 (_mm512_cmpge_epu64_mask): Ditto.
4706 (_mm512_mask_cmple_epi32_mask): Ditto.
4707 (_mm512_cmple_epi32_mask): Ditto.
4708 (_mm512_mask_cmple_epu32_mask): Ditto.
4709 (_mm512_cmple_epu32_mask): Ditto.
4710 (_mm512_mask_cmple_epi64_mask): Ditto.
4711 (_mm512_cmple_epi64_mask): Ditto.
4712 (_mm512_mask_cmple_epu64_mask): Ditto.
4713 (_mm512_cmple_epu64_mask): Ditto.
4714 (_mm512_mask_cmplt_epi32_mask): Ditto.
4715 (_mm512_cmplt_epi32_mask): Ditto.
4716 (_mm512_mask_cmplt_epu32_mask): Ditto.
4717 (_mm512_cmplt_epu32_mask): Ditto.
4718 (_mm512_mask_cmplt_epi64_mask): Ditto.
4719 (_mm512_cmplt_epi64_mask): Ditto.
4720 (_mm512_mask_cmplt_epu64_mask): Ditto.
4721 (_mm512_cmplt_epu64_mask): Ditto.
4722 (_mm512_mask_cmpneq_epi32_mask): Ditto.
4723 (_mm512_mask_cmpneq_epu32_mask): Ditto.
4724 (_mm512_cmpneq_epu32_mask): Ditto.
4725 (_mm512_mask_cmpneq_epi64_mask): Ditto.
4726 (_mm512_cmpneq_epi64_mask): Ditto.
4727 (_mm512_mask_cmpneq_epu64_mask): Ditto.
4728 (_mm512_cmpneq_epu64_mask): Ditto.
4729 (_mm512_castpd_ps): Ditto.
4730 (_mm512_castpd_si512): Ditto.
4731 (_mm512_castps_pd): Ditto.
4732 (_mm512_castps_si512): Ditto.
4733 (_mm512_castsi512_ps): Ditto.
4734 (_mm512_castsi512_pd): Ditto.
4735 (_mm512_castpd512_pd128): Ditto.
4736 (_mm512_castps512_ps128): Ditto.
4737 (_mm512_castsi512_si128): Ditto.
4738 (_mm512_castpd512_pd256): Ditto.
4739 (_mm512_castps512_ps256): Ditto.
4740 (_mm512_castsi512_si256): Ditto.
4741 (_mm512_castpd128_pd512): Ditto.
4742 (_mm512_castps128_ps512): Ditto.
4743 (_mm512_castsi128_si512): Ditto.
4744 (_mm512_castpd256_pd512): Ditto.
4745 (_mm512_castps256_ps512): Ditto.
4746 (_mm512_castsi256_si512): Ditto.
4747 (_mm512_cmpeq_epu32_mask): Ditto.
4748 (_mm512_mask_cmpeq_epu32_mask): Ditto.
4749 (_mm512_mask_cmpeq_epu64_mask): Ditto.
4750 (_mm512_cmpeq_epu64_mask): Ditto.
4751 (_mm512_cmpgt_epu32_mask): Ditto.
4752 (_mm512_mask_cmpgt_epu32_mask): Ditto.
4753 (_mm512_mask_cmpgt_epu64_mask): Ditto.
4754 (_mm512_cmpgt_epu64_mask): Ditto.
4755 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
4756 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
4757 * config/i386/i386.c (enum ix86_builtins): Add
4758 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
4759 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
4760 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
4761 (bdesc_args): Add __builtin_ia32_si512_256si,
4762 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
4763 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
4764 __builtin_ia32_pd512_pd.
4765 (ix86_expand_args_builtin): Handle new FTYPEs.
4766 * config/i386/sse.md (castmode): Add 512-bit modes.
4767 (AVX512MODE2P): New.
4768 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
4769 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
4770
4771 2014-08-15 Richard Biener <rguenther@suse.de>
4772
4773 * fold-const.c (tree_swap_operands_p): Put all constants
4774 last, also strip sign-changing NOPs when considering further
4775 canonicalization. Canonicalize also when optimizing for size.
4776
4777 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4778
4779 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
4780 one_match > zero_match case to just before simple_sequence.
4781
4782 2014-08-15 Richard Biener <rguenther@suse.de>
4783
4784 * data-streamer.h (streamer_string_index, string_for_index):
4785 Remove.
4786 * data-streamer-out.c (streamer_string_index): Make static.
4787 * data-streamer-in.c (string_for_index): Likewise.
4788 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
4789 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
4790
4791 2014-08-15 Richard Biener <rguenther@suse.de>
4792
4793 PR tree-optimization/62031
4794 * tree-data-ref.c (dr_analyze_indices): Do not set
4795 DR_UNCONSTRAINED_BASE.
4796 (dr_may_alias_p): All indirect accesses have to go the
4797 formerly DR_UNCONSTRAINED_BASE path.
4798 * tree-data-ref.h (struct indices): Remove
4799 unconstrained_base member.
4800 (DR_UNCONSTRAINED_BASE): Remove.
4801
4802 2014-08-15 Jakub Jelinek <jakub@redhat.com>
4803
4804 PR middle-end/62092
4805 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
4806 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
4807 in OMP_CLAUSE_MAP in some outer target region.
4808
4809 2014-08-15 Bin Cheng <bin.cheng@arm.com>
4810
4811 * tree-ssa-loop-ivopts.c (ivopts_data): New field
4812 name_expansion_cache.
4813 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
4814 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
4815 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
4816 (difference_cannot_overflow_p): New parameter. Use affine
4817 expansion for equality check.
4818 (iv_elimination_compare_lt): Pass new argument.
4819
4820 2014-08-14 DJ Delorie <dj@redhat.com>
4821
4822 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
4823 variables to the accumulator.
4824
4825 * config/rl78/predicates.md (rl78_near_mem_operand): New.
4826 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
4827 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
4828 with far-far moves.
4829
4830 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
4831 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
4832 (umulqihi3_virt): Likewise.
4833 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
4834 (umulqihi3_real): Likewise.
4835
4836 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
4837
4838 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
4839
4840 PR tree-optimization/62091
4841 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
4842 function_entry_reached.
4843 (walk_aliased_vdefs): Clear it here.
4844 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
4845
4846 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
4847
4848 * ipa-utils.h (compare_virtual_tables): Declare.
4849 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
4850
4851 2014-08-14 Marek Polacek <polacek@redhat.com>
4852
4853 DR 458
4854 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
4855 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
4856
4857 2014-08-14 Tom de Vries <tom@codesourcery.com>
4858
4859 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
4860
4861 2014-08-14 Tom de Vries <tom@codesourcery.com>
4862
4863 PR rtl-optimization/62004
4864 PR rtl-optimization/62030
4865 * ifcvt.c (rtx_interchangeable_p): New function.
4866 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
4867 * emit-rtl.h (mem_attrs_eq_p): Declare.
4868
4869 2014-08-14 Roman Gareev <gareevroman@gmail.com>
4870
4871 * graphite-scop-detection.c:
4872 Add inclusion of cp-tree.h.
4873 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
4874 in case they are pointers to object types
4875
4876 2014-08-14 Richard Biener <rguenther@suse.de>
4877
4878 * BASE-VER: Change to 5.0.0
4879
4880 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
4881 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4882 Anna Tikhonova <anna.tikhonova@intel.com>
4883 Ilya Tocar <ilya.tocar@intel.com>
4884 Andrey Turetskiy <andrey.turetskiy@intel.com>
4885 Ilya Verbin <ilya.verbin@intel.com>
4886 Kirill Yukhin <kirill.yukhin@intel.com>
4887 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4888
4889 * config/i386/sse.md (define_mode_attr avx512): New.
4890 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
4891 V4DI modes.
4892 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
4893 (define_mode_attr ssse3_avx2): Ditto.
4894 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
4895 (define_mode_attr avx2_avx512bw): New.
4896 (define_mode_attr ssedoublemodelower): New.
4897 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
4898 V32HI, V64QI modes.
4899 (define_mode_attr ssebytemode): Allow V8DI modes.
4900 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
4901 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
4902 (define_mode_attr ssePSmode2): New.
4903 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
4904 V16HI, V32HI modes.
4905 (define_mode_attr dbpsadbwmode): New.
4906 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
4907 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
4908 (vi8_sse4_1_avx2_avx512): New.
4909 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
4910 mode attribute.
4911 (define_mode_attr blendbits): Move before its immediate use.
4912
4913 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
4914 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4915 Anna Tikhonova <anna.tikhonova@intel.com>
4916 Ilya Tocar <ilya.tocar@intel.com>
4917 Andrey Turetskiy <andrey.turetskiy@intel.com>
4918 Ilya Verbin <ilya.verbin@intel.com>
4919 Kirill Yukhin <kirill.yukhin@intel.com>
4920 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4921
4922 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
4923 * config/i386/subst.md
4924 (define_mode_iterator SUBST_V): Update.
4925 (define_mode_iterator SUBST_A): Ditto.
4926 (define_subst_attr "mask_operand7"): New.
4927 (define_subst_attr "mask_operand10"): New.
4928 (define_subst_attr "mask_operand_arg34") : New.
4929 (define_subst_attr "mask_expand_op3"): New.
4930 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
4931 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
4932 (define_subst_attr "mask_avx512vl_condition"): New.
4933 (define_subst_attr "round_mask_operand4"): Ditto.
4934 (define_subst_attr "round_mask_scalar_op3"): Delete.
4935 (define_subst_attr "round_mask_op4"): New.
4936 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
4937 V16SImode.
4938 (define_subst_attr "round_modev8sf_condition"): New.
4939 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
4940 <MODE>mode.
4941 (define_subst_attr "round_saeonly_mask_operand4"): New.
4942 (define_subst_attr "round_saeonly_mask_op4"): New.
4943 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
4944 V8DImode, V16SImode.
4945 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
4946 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
4947 (define_subst_attr "mask_expand4_args"): New.
4948 (define_subst "mask_expand4"): New.
4949
4950 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
4951 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4952 Anna Tikhonova <anna.tikhonova@intel.com>
4953 Ilya Tocar <ilya.tocar@intel.com>
4954 Andrey Turetskiy <andrey.turetskiy@intel.com>
4955 Ilya Verbin <ilya.verbin@intel.com>
4956 Kirill Yukhin <kirill.yukhin@intel.com>
4957 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4958
4959 * config/i386/i386.md
4960 (define_attr "isa"): Add avx512bw,noavx512bw.
4961 (define_attr "enabled"): Ditto.
4962 (define_split): Add 32/64-bit mask logic.
4963 (define_insn "*k<logic>qi"): New.
4964 (define_insn "*k<logic>hi"): New.
4965 (define_insn "*anddi_1"): Add mask version.
4966 (define_insn "*andsi_1"): Ditto.
4967 (define_insn "*<code><mode>_1"): Ditto.
4968 (define_insn "*<code>hi_1"): Ditto.
4969 (define_insn "kxnor<mode>"): New.
4970 (define_insn "kunpcksi"): New.
4971 (define_insn "kunpckdi"): New.
4972 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
4973 (define_insn "*one_cmplhi2_1"): Ditto.
4974
4975 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
4976 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4977 Anna Tikhonova <anna.tikhonova@intel.com>
4978 Ilya Tocar <ilya.tocar@intel.com>
4979 Andrey Turetskiy <andrey.turetskiy@intel.com>
4980 Ilya Verbin <ilya.verbin@intel.com>
4981 Kirill Yukhin <kirill.yukhin@intel.com>
4982 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4983
4984 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
4985 V32HImode.
4986
4987 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
4988 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4989 Anna Tikhonova <anna.tikhonova@intel.com>
4990 Ilya Tocar <ilya.tocar@intel.com>
4991 Andrey Turetskiy <andrey.turetskiy@intel.com>
4992 Ilya Verbin <ilya.verbin@intel.com>
4993 Kirill Yukhin <kirill.yukhin@intel.com>
4994 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4995
4996 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
4997 registers.
4998 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
4999 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
5000 xmm/ymm16+ when availble.
5001 * config/i386/i386.h
5002 (HARD_REGNO_NREGS): Add mask regs.
5003 (VALID_AVX512F_REG_MODE): Ditto.
5004 (VALID_AVX512F_REG_MODE) : Define.
5005 (VALID_MASK_AVX512BW_MODE): Ditto.
5006 (reg_class) (MASK_REG_P(X)): Define.
5007 * config/i386/i386.md: Do not split long moves with mask register,
5008 use kmovb if avx512bw is availible.
5009 (movdi_internal): Handle mask registers.
5010
5011 2014-08-14 Richard Biener <rguenther@suse.de>
5012
5013 PR tree-optimization/62081
5014 * tree-ssa-loop.c (pass_fix_loops): New pass.
5015 (pass_tree_loop::gate): Do not fixup loops here.
5016 * tree-pass.h (make_pass_fix_loops): Declare.
5017 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
5018
5019 2014-08-14 Richard Biener <rguenther@suse.de>
5020
5021 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
5022 (type_hash_canon): ... this and avoid 2nd lookup for the add.
5023
5024 2014-08-14 Richard Biener <rguenther@suse.de>
5025
5026 PR tree-optimization/62090
5027 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
5028 (fold_builtin_2): Do not fold sprintf.
5029 (fold_builtin_3): Likewise.
5030 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
5031 moved from builtins.c.
5032 (gimple_fold_builtin): Fold sprintf.
5033
5034 2014-08-14 Richard Biener <rguenther@suse.de>
5035
5036 PR rtl-optimization/62079
5037 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
5038 run cleanup_cfg.
5039
5040 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
5041
5042 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
5043 current_function_decl.
5044
5045 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
5046
5047 * cgraph.c (cgraph_node::function_symbol): Fix wrong
5048 cgraph_function_node to cgraph_node::function_symbol
5049 refactoring.
5050
5051 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
5052
5053 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
5054 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
5055
5056 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
5057
5058 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
5059 warning.
5060
5061 2014-08-13 Roman Gareev <gareevroman@gmail.com>
5062
5063 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
5064 generator.
5065
5066 2014-08-12 Jakub Jelinek <jakub@redhat.com>
5067
5068 PR target/62025
5069 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
5070 any registers that are used in mem_insn.
5071
5072 2014-08-12 Steve Ellcey <sellcey@mips.com>
5073
5074 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
5075
5076 2014-08-12 Steve Ellcey <sellcey@mips.com>
5077
5078 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
5079 (MULTILIB_DIRNAMES): Ditto.
5080 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
5081 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
5082 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
5083 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
5084 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
5085 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
5086
5087 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5088
5089 PR target/61413
5090 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
5091 of __ARM_SIZEOF_WCHAR_T.
5092
5093 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5094
5095 PR target/62098
5096 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
5097 Remove unnecessary attributes.
5098
5099 2014-08-12 Yury Gribov <y.gribov@samsung.com>
5100
5101 * internal-fn.c (init_internal_fns): Fix off-by-one.
5102
5103 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5104 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5105 Anna Tikhonova <anna.tikhonova@intel.com>
5106 Ilya Tocar <ilya.tocar@intel.com>
5107 Andrey Turetskiy <andrey.turetskiy@intel.com>
5108 Ilya Verbin <ilya.verbin@intel.com>
5109 Kirill Yukhin <kirill.yukhin@intel.com>
5110 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5111
5112 * config/i386/i386.c (standard_sse_constant_opcode): Use
5113 vpxord/vpternlog if avx512 is availible.
5114
5115 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
5116
5117 PR middle-end/62103
5118 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
5119 bitfields, that is when size doesn't match the size of type or the
5120 size of the constructor.
5121
5122 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5123
5124 * config/rs6000/constraints.md (wh constraint): New constraint,
5125 for FP registers if direct move is available.
5126 (wi constraint): New constraint, for VSX/FP registers that can
5127 handle 64-bit integers.
5128 (wj constraint): New constraint for VSX/FP registers that can
5129 handle 64-bit integers for direct moves.
5130 (wk constraint): New constraint for VSX/FP registers that can
5131 handle 64-bit doubles for direct moves.
5132 (wy constraint): Make documentation match implementation.
5133
5134 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
5135 scalar_in_vmx_p field to simplify tests of whether SFmode or
5136 DFmode can go in the Altivec registers.
5137 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
5138 (rs6000_setup_reg_addr_masks): Likewise.
5139 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
5140 field, and wh/wi/wj/wk constraints.
5141 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
5142 the wh/wi/wj/wk constraints.
5143 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
5144 upper registers, prefer VSX registers unless the operation is a
5145 memory operation with REG+OFFSET addressing.
5146
5147 * config/rs6000/vsx.md (VSr mode attribute): Add support for
5148 DImode. Change SFmode to use ww constraint instead of d to allow
5149 SF registers in the upper registers.
5150 (VSr2): Likewise.
5151 (VSr3): Likewise.
5152 (VSr5): Fix thinko in comment.
5153 (VSa): New mode attribute that is an alternative to wa, that
5154 returns the VSX register class that a mode can go in, but may not
5155 be the preferred register class.
5156 (VS_64dm): New mode attribute for appropriate register classes for
5157 referencing 64-bit elements of vectors for direct moves and normal
5158 moves.
5159 (VS_64reg): Likewise.
5160 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
5161 register allocator to only registers the data type can handle.
5162 (vsx_le_perm_load_<mode>): Likewise.
5163 (vsx_le_perm_store_<mode>): Likewise.
5164 (vsx_xxpermdi2_le_<mode>): Likewise.
5165 (vsx_xxpermdi4_le_<mode>): Likewise.
5166 (vsx_lxvd2x2_le_<mode>): Likewise.
5167 (vsx_lxvd2x4_le_<mode>): Likewise.
5168 (vsx_stxvd2x2_le_<mode>): Likewise.
5169 (vsx_add<mode>3): Likewise.
5170 (vsx_sub<mode>3): Likewise.
5171 (vsx_mul<mode>3): Likewise.
5172 (vsx_div<mode>3): Likewise.
5173 (vsx_tdiv<mode>3_internal): Likewise.
5174 (vsx_fre<mode>2): Likewise.
5175 (vsx_neg<mode>2): Likewise.
5176 (vsx_abs<mode>2): Likewise.
5177 (vsx_nabs<mode>2): Likewise.
5178 (vsx_smax<mode>3): Likewise.
5179 (vsx_smin<mode>3): Likewise.
5180 (vsx_sqrt<mode>2): Likewise.
5181 (vsx_rsqrte<mode>2): Likewise.
5182 (vsx_tsqrt<mode>2_internal): Likewise.
5183 (vsx_fms<mode>4): Likewise.
5184 (vsx_nfma<mode>4): Likewise.
5185 (vsx_eq<mode>): Likewise.
5186 (vsx_gt<mode>): Likewise.
5187 (vsx_ge<mode>): Likewise.
5188 (vsx_eq<mode>_p): Likewise.
5189 (vsx_gt<mode>_p): Likewise.
5190 (vsx_ge<mode>_p): Likewise.
5191 (vsx_xxsel<mode>): Likewise.
5192 (vsx_xxsel<mode>_uns): Likewise.
5193 (vsx_copysign<mode>3): Likewise.
5194 (vsx_float<VSi><mode>2): Likewise.
5195 (vsx_floatuns<VSi><mode>2): Likewise.
5196 (vsx_fix_trunc<mode><VSi>2): Likewise.
5197 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
5198 (vsx_x<VSv>r<VSs>i): Likewise.
5199 (vsx_x<VSv>r<VSs>ic): Likewise.
5200 (vsx_btrunc<mode>2): Likewise.
5201 (vsx_b2trunc<mode>2): Likewise.
5202 (vsx_floor<mode>2): Likewise.
5203 (vsx_ceil<mode>2): Likewise.
5204 (vsx_<VS_spdp_insn>): Likewise.
5205 (vsx_xscvspdp): Likewise.
5206 (vsx_xvcvspuxds): Likewise.
5207 (vsx_float_fix_<mode>2): Likewise.
5208 (vsx_set_<mode>): Likewise.
5209 (vsx_extract_<mode>_internal1): Likewise.
5210 (vsx_extract_<mode>_internal2): Likewise.
5211 (vsx_extract_<mode>_load): Likewise.
5212 (vsx_extract_<mode>_store): Likewise.
5213 (vsx_splat_<mode>): Likewise.
5214 (vsx_xxspltw_<mode>): Likewise.
5215 (vsx_xxspltw_<mode>_direct): Likewise.
5216 (vsx_xxmrghw_<mode>): Likewise.
5217 (vsx_xxmrglw_<mode>): Likewise.
5218 (vsx_xxsldwi_<mode>): Likewise.
5219 (vsx_xscvdpspn): Tighten constraints to only use register classes
5220 the types use.
5221 (vsx_xscvspdpn): Likewise.
5222 (vsx_xscvdpspn_scalar): Likewise.
5223
5224 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
5225 wj, and wk constraints.
5226 (GPR_REG_CLASS_P): New helper macro for register classes targeting
5227 general purpose registers.
5228
5229 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
5230 direct moves.
5231 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
5232 DImode instead of wm. Use wk constraint for direct move of DFmode
5233 instead of wm.
5234 (extendsidi2_lfiwax): Likewise.
5235 (lfiwax): Likewise.
5236 (lfiwzx): Likewise.
5237 (movdi_internal64): Likewise.
5238
5239 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
5240 wk constraints. Make the wy constraint documentation match them
5241 implementation.
5242
5243 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
5244
5245 Replacement of isl_int by isl_val
5246 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
5247 (compute_bounds_for_param): use isl_val instead of isl_int
5248 (compute_bounds_for_loop): likewise
5249 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
5250 (build_linearized_memory_access): use isl_val instead of isl_int
5251 (pdr_stride_in_loop): likewise
5252 * graphite-optimize-isl.c:
5253 (getPrevectorMap): use isl_val instead of isl_int
5254 * graphite-poly.c:
5255 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
5256 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
5257 (extern the_isl_ctx): declare
5258 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
5259 (extract_affine_gmp): likewise
5260 (wrap): likewise
5261 (build_loop_iteration_domains): likewise
5262 (add_param_constraints): likewise
5263
5264 2014-08-11 Richard Biener <rguenther@suse.de>
5265
5266 PR tree-optimization/62075
5267 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
5268 handle uses in patterns.
5269
5270 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5271 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5272 Anna Tikhonova <anna.tikhonova@intel.com>
5273 Ilya Tocar <ilya.tocar@intel.com>
5274 Andrey Turetskiy <andrey.turetskiy@intel.com>
5275 Ilya Verbin <ilya.verbin@intel.com>
5276 Kirill Yukhin <kirill.yukhin@intel.com>
5277 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5278
5279 * common/config/i386/i386-common.c
5280 (OPTION_MASK_ISA_AVX512VL_SET): Define.
5281 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
5282 (ix86_handle_option): Handle OPT_mavx512vl.
5283 * config/i386/cpuid.h (bit_AVX512VL): Define.
5284 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
5285 set -mavx512vl accordingly.
5286 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5287 OPTION_MASK_ISA_AVX512VL.
5288 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
5289 (ix86_option_override_internal): Define PTA_AVX512VL, handle
5290 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
5291 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
5292 * config/i386/i386.h (TARGET_AVX512VL): Define.
5293 (TARGET_AVX512VL_P(x)): Ditto.
5294 * config/i386/i386.opt: Add mavx512vl.
5295
5296 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
5297
5298 PR tree-optimization/62073
5299 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
5300 a basic block.
5301
5302 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5303 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5304 Anna Tikhonova <anna.tikhonova@intel.com>
5305 Ilya Tocar <ilya.tocar@intel.com>
5306 Andrey Turetskiy <andrey.turetskiy@intel.com>
5307 Ilya Verbin <ilya.verbin@intel.com>
5308 Kirill Yukhin <kirill.yukhin@intel.com>
5309 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5310
5311 * common/config/i386/i386-common.c
5312 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
5313 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
5314 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
5315 (ix86_handle_option): Handle OPT_mavx512bw.
5316 * config/i386/cpuid.h (bit_AVX512BW): Define.
5317 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
5318 set -mavx512bw accordingly.
5319 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5320 OPTION_MASK_ISA_AVX512BW.
5321 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
5322 (ix86_option_override_internal): Define PTA_AVX512BW, handle
5323 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
5324 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
5325 * config/i386/i386.h (TARGET_AVX512BW): Define.
5326 (TARGET_AVX512BW_P(x)): Ditto.
5327 * config/i386/i386.opt: Add mavx512bw.
5328
5329 2014-08-11 Richard Biener <rguenther@suse.de>
5330
5331 PR tree-optimization/62070
5332 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
5333 Remove SSA checking.
5334
5335 2014-08-11 Yury Gribov <y.gribov@samsung.com>
5336
5337 * asan.c (asan_check_flags): New enum.
5338 (build_check_stmt_with_calls): Removed function.
5339 (build_check_stmt): Split inlining logic to
5340 asan_expand_check_ifn.
5341 (instrument_derefs): Rename parameter.
5342 (instrument_mem_region_access): Rename parameter.
5343 (instrument_strlen_call): Likewise.
5344 (asan_expand_check_ifn): New function.
5345 (asan_instrument): Remove old code.
5346 (pass_sanopt::execute): Change handling of
5347 asan-instrumentation-with-call-threshold.
5348 (asan_clear_shadow): Fix formatting.
5349 (asan_function_start): Likewise.
5350 (asan_emit_stack_protection): Likewise.
5351 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
5352 Update description.
5353 * internal-fn.c (expand_ASAN_CHECK): New function.
5354 * internal-fn.def (ASAN_CHECK): New internal function.
5355 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
5356 Update description.
5357 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
5358 * tree.c: Small comment fix.
5359
5360 2014-08-11 Yury Gribov <y.gribov@samsung.com>
5361
5362 * gimple.c (gimple_call_fnspec): Support internal functions.
5363 (gimple_call_return_flags): Use const.
5364 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
5365 * internal-fn.def: Add fnspec information.
5366 * internal-fn.h (internal_fn_fnspec): New function.
5367 (init_internal_fns): Declare new function.
5368 * internal-fn.c (internal_fn_fnspec_array): New global variable.
5369 (init_internal_fns): New function.
5370 * tree-core.h: Update macro call.
5371 * tree.c (build_common_builtin_nodes): Initialize internal fns.
5372
5373 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
5374
5375 * lto-streamer.h (struct output_block::symbol): Change from
5376 struct symtab_node to plain symtab_node.
5377 (referenced_from_this_partition_p): Change first parameter
5378 from struct symtab_node to plain symtab_node.
5379
5380 2014-08-10 Marek Polacek <polacek@redhat.com>
5381
5382 PR c/51849
5383 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
5384
5385 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
5386
5387 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
5388 DECL correctly; do not give up on types in static storage.
5389
5390 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
5391
5392 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
5393
5394 2014-08-09 Roman Gareev <gareevroman@gmail.com>
5395
5396 * graphite-isl-ast-to-gimple.c:
5397 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
5398
5399 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
5400
5401 2014-08-08 Guozhi Wei <carrot@google.com>
5402
5403 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
5404
5405 2014-08-08 Cary Coutant <ccoutant@google.com>
5406
5407 * dwarf2out.c (get_skeleton_type_unit): Remove.
5408 (output_skeleton_debug_sections): Remove skeleton type units.
5409 (output_comdat_type_unit): Likewise.
5410 (dwarf2out_finish): Likewise.
5411
5412 2014-08-07 Yi Yang <ahyangyi@google.com>
5413
5414 * predict.c (expr_expected_value_1): Remove the redundant assignment.
5415
5416 2014-08-08 Richard Biener <rguenther@suse.de>
5417
5418 * lto-streamer.h (struct lto_input_block): Make it a class
5419 with a constructor.
5420 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
5421 (struct lto_function_header, struct lto_simple_header,
5422 struct lto_simple_header_with_strings,
5423 struct lto_decl_header, struct lto_function_header): Make
5424 a simple inheritance hieararchy. Remove unused fields.
5425 (struct lto_asm_header): Remove.
5426 * lto-streamer-out.c (produce_asm): Adjust.
5427 (lto_output_toplevel_asms): Likewise.
5428 (produce_asm_for_decls): Likewise.
5429 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
5430 * data-streamer-in.c (string_for_index): Likewise.
5431 * ipa-inline-analysis.c (inline_read_section): Likewise.
5432 * ipa-prop.c (ipa_prop_read_section): Likewise.
5433 (read_replacements_section): Likewise.
5434 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
5435 * lto-section-in.c (lto_create_simple_input_block): Likewise.
5436 (lto_destroy_simple_input_block): Likewise.
5437 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
5438 (lto_input_toplevel_asms): Likewise.
5439
5440 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
5441 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5442 Anna Tikhonova <anna.tikhonova@intel.com>
5443 Ilya Tocar <ilya.tocar@intel.com>
5444 Andrey Turetskiy <andrey.turetskiy@intel.com>
5445 Ilya Verbin <ilya.verbin@intel.com>
5446 Kirill Yukhin <kirill.yukhin@intel.com>
5447 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5448
5449 * common/config/i386/i386-common.c
5450 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
5451 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
5452 (ix86_handle_option): Handle OPT_mavx512dq.
5453 * config/i386/cpuid.h (bit_AVX512DQ): Define.
5454 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
5455 set -mavx512dq accordingly.
5456 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5457 OPTION_MASK_ISA_AVX512DQ.
5458 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
5459 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
5460 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
5461 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
5462 * config/i386/i386.h (TARGET_AVX512DQ): Define.
5463 (TARGET_AVX512DQ_P(x)): Ditto.
5464 * config/i386/i386.opt: Add mavx512dq.
5465
5466 2014-08-08 Richard Biener <rguenther@suse.de>
5467
5468 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
5469 target_percent, target_percent_s): Export.
5470 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
5471 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
5472 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
5473 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
5474 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
5475 Move to gimple-fold.c.
5476 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
5477 strcat and strcpy.
5478 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
5479 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
5480 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
5481 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
5482 (rewrite_call_expr_array): Remove.
5483 (fold_builtin_sprintf_chk): Likewise.
5484 (fold_builtin_snprintf_chk): Likewise.
5485 (fold_builtin_varargs): Remove handling of sprintf_chk,
5486 vsprintf_chk, snprintf_chk and vsnprintf_chk.
5487 (gimple_fold_builtin_sprintf_chk): Remove.
5488 (gimple_fold_builtin_snprintf_chk): Likewise.
5489 (gimple_fold_builtin_varargs): Likewise.
5490 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
5491 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
5492 * gimple.c (gimple_seq_add_seq_without_update): New function.
5493 * gimple.h (gimple_seq_add_seq_without_update): Declare.
5494 * gimple-fold.c: Include output.h.
5495 (gsi_replace_with_seq_vops): New function, split out from ...
5496 (gimplify_and_update_call_from_tree): ... here.
5497 (replace_call_with_value): New function.
5498 (replace_call_with_call_and_fold): Likewise.
5499 (var_decl_component_p): Moved from builtins.c.
5500 (gimple_fold_builtin_memory_op): Moved from builtins.c
5501 fold_builtin_memory_op and rewritten to GIMPLE.
5502 (gimple_fold_builtin_memset): Likewise.
5503 (gimple_fold_builtin_strcpy): Likewise.
5504 (gimple_fold_builtin_strncpy): Likewise.
5505 (gimple_fold_builtin_strcat): Likewise.
5506 (gimple_fold_builtin_fputs): Likewise.
5507 (gimple_fold_builtin_memory_chk): Likewise.
5508 (gimple_fold_builtin_stxcpy_chk): Likewise.
5509 (gimple_fold_builtin_stxncpy_chk): Likewise.
5510 (gimple_fold_builtin_snprintf_chk): Likewise.
5511 (gimple_fold_builtin_sprintf_chk): Likewise.
5512 (gimple_fold_builtin_strlen): New function.
5513 (gimple_fold_builtin_with_strlen): New function split out from
5514 gimple_fold_builtin.
5515 (gimple_fold_builtin): Change signature and handle
5516 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
5517 here. Call gimple_fold_builtin_with_strlen.
5518 (gimple_fold_call): Adjust.
5519
5520 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
5521
5522 * calls.c (precompute_arguments): Check
5523 promoted_for_signed_and_unsigned_p and set the promoted mode.
5524 (promoted_for_signed_and_unsigned_p): New function.
5525 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
5526 and set the promoted mode.
5527 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
5528 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
5529 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
5530
5531
5532 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
5533
5534 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
5535 instead of SUBREG_PROMOTED_UNSIGNED_SET.
5536 (expand_call): Likewise.
5537 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
5538 to get promoted mode.
5539 * combine.c (record_promoted_value): Skip > 0 comparison with
5540 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
5541 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
5542 of SUBREG_PROMOTED_UNSIGNED_P.
5543 (convert_modes): Likewise.
5544 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
5545 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
5546 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
5547 SUBREG_PROMOTED_UNSIGNED_SET.
5548 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
5549 instead of SUBREG_PROMOTED_UNSIGNED_SET.
5550 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
5551 SUBREG_PROMOTED_SET.
5552 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
5553 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
5554 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
5555 of SUBREG_PROMOTED_UNSIGNED_P.
5556 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
5557 (SUBREG_PROMOTED_SET): New define.
5558 (SUBREG_PROMOTED_GET): Likewise.
5559 (SUBREG_PROMOTED_SIGN): Likewise.
5560 (SUBREG_PROMOTED_SIGNED_P): Likewise.
5561 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
5562 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
5563 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
5564 instead of SUBREG_PROMOTED_UNSIGNED_GET.
5565 (nonzero_bits1): Skip > 0 comparison with the results as
5566 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
5567 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
5568 of !SUBREG_PROMOTED_UNSIGNED_P.
5569 * simplify-rtx.c (simplify_unary_operation_1): Use new
5570 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
5571 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
5572 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
5573 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
5574
5575 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
5576
5577 * ipa-devirt.c: Include gimple-pretty-print.h
5578 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
5579 further tests.
5580 (decl_maybe_in_construction_p): Fix conditional on cdtor check
5581 (get_polymorphic_call_info): Fix return value
5582 (type_change_info): New sturcture based on ipa-prop
5583 variant.
5584 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
5585 based on ipa-prop variant.
5586 (extr_type_from_vtbl_ptr_store): New function
5587 based on ipa-prop variant.
5588 (record_known_type): New function.
5589 (check_stmt_for_type_change): New function.
5590 (get_dynamic_type): New function.
5591 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
5592 * tree-ssa-pre.c: ipa-utils.h
5593 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
5594 machinery; sanity check with ipa-prop devirtualization.
5595 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
5596 polymorphic flag.
5597
5598 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
5599
5600 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
5601 * alias.c, cfgexpand.c, cgraphbuild.c,
5602 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
5603 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
5604 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
5605 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
5606 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
5607 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
5608 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
5609 dse.c, except.c, gengtype.c, gimple-expr.c,
5610 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
5611 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
5612 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
5613 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
5614 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
5615 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
5616 pointer-set.h.
5617 * pointer-set.c: Remove file.
5618 * pointer-set.h: Remove file.
5619
5620 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5621
5622 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
5623 * config/arm/types.md (f_sels, f_seld): Delete.
5624
5625 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5626
5627 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
5628 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
5629 (aarch64_movdi_<mode>high): Likewise.
5630 (aarch64_mov<mode>high_di): Likewise.
5631 (aarch64_movdi_<mode>low): Likewise.
5632 (aarch64_mov<mode>low_di): Likewise.
5633 (aarch64_movtilow_tilow): Likewise.
5634 Add comment explaining usage of fp,simd attributes and of
5635 TARGET_FLOAT and TARGET_SIMD.
5636
5637 2014-08-07 Ian Bolton <ian.bolton@arm.com>
5638 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5639
5640 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
5641 Use MOVN when one of the half-words is 0xffff.
5642
5643 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
5644
5645 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
5646
5647 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
5648
5649 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
5650 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
5651 (rfs_str): String corresponding to RFS_* constants.
5652 (rank_for_schedule_stats_t): New typedef.
5653 (rank_for_schedule_stats): New static variable.
5654 (rfs_result): New static function.
5655 (rank_for_schedule): Track statistics for deciding heuristics.
5656 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
5657 static functions.
5658 (ready_sort): Use them for debug printouts.
5659 (schedule_block): Init statistics state. Print statistics on
5660 rank_for_schedule decisions.
5661
5662 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
5663
5664 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
5665
5666 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
5667
5668 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
5669 constraint.
5670
5671 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
5672
5673 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
5674 function to not conflict.
5675 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
5676 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
5677 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
5678 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
5679 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
5680 of pointer_map.
5681
5682 2014-08-07 Marek Polacek <polacek@redhat.com>
5683
5684 * fold-const.c (fold_binary_loc): Add folding of
5685 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
5686
5687 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
5688
5689 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
5690 instead of type size.
5691 (ASM_FINISH_DECLARE_OBJECT): Likewise.
5692
5693 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
5694
5695 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
5696 (*thumb1_movqi_insn): Likewise.
5697 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
5698
5699 2014-08-07 Tom de Vries <tom@codesourcery.com>
5700
5701 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
5702 (glibc_2_11_or_earlier): Remove effective-target keywords.
5703
5704 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
5705
5706 * config/arm/arm.c (bdesc_2arg): Fix typo.
5707 (arm_atomic_assign_expand_fenv): Remove The default implementation.
5708
5709 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
5710
5711 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
5712
5713 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
5714
5715 PR debug/61923
5716 * haifa-sched.c (advance_one_cycle): Fix dump.
5717 (schedule_block): Don't advance cycle if we are already at the
5718 beginning of the cycle.
5719
5720 2014-08-06 Martin Jambor <mjambor@suse.cz>
5721
5722 PR ipa/61393
5723 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
5724
5725 2014-08-06 Richard Biener <rguenther@suse.de>
5726
5727 PR lto/62034
5728 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
5729 SCCs here.
5730 (lto_input_tree): Pop SCCs here.
5731
5732 2014-08-06 Richard Biener <rguenther@suse.de>
5733
5734 PR tree-optimization/61320
5735 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
5736 handle misaligned loads.
5737
5738 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
5739
5740 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
5741 (aarch64_expand_vec_perm_const): Check for dup before zip.
5742
5743 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5744
5745 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
5746 CONST_INT_P instead of GET_CODE and compare.
5747 (aarch64_select_cc_mode): Likewise.
5748 (aarch64_print_operand): Likewise.
5749 (aarch64_rtx_costs): Likewise.
5750 (aarch64_simd_valid_immediate): Likewise.
5751 (aarch64_simd_check_vect_par_cnst_half): Likewise.
5752 (aarch64_simd_emit_pair_result_insn): Likewise.
5753
5754 2014-08-05 David Malcolm <dmalcolm@redhat.com>
5755
5756 * gdbhooks.py (find_gcc_source_dir): New helper function.
5757 (class PassNames): New class, locating and parsing passes.def.
5758 (class BreakOnPass): New command "break-on-pass".
5759
5760 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
5761
5762 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
5763 getting olde.
5764
5765 2014-08-05 Richard Biener <rguenther@suse.de>
5766
5767 PR rtl-optimization/61672
5768 * emit-rtl.h (mem_attrs_eq_p): Declare.
5769 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
5770 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
5771 * cfgcleanup.c (merge_memattrs): Likewise.
5772 Include emit-rtl.h.
5773
5774 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5775
5776 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
5777 rather than singleton vectors.
5778 (vqdmlsls_lane_s32): Likewise.
5779
5780 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5781
5782 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
5783 Use VSDQ_HSI mode iterator.
5784 (aarch64_sqrdmulh_laneq<mode>): Likewise.
5785 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
5786 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
5787 Use BUILTIN_VDQHS macro.
5788 (sqrdmulh_laneq): Likewise.
5789 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
5790 (vqdmlals_laneq_s32): Likewise.
5791 (vqdmlslh_laneq_s16): Likewise.
5792 (vqdmlsls_laneq_s32): Likewise.
5793 (vqdmulhh_laneq_s16): Likewise.
5794 (vqdmulhs_laneq_s32): Likewise.
5795 (vqrdmulhh_laneq_s16): Likewise.
5796 (vqrdmulhs_laneq_s32): Likewise.
5797
5798 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5799
5800 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
5801 (vmuld_laneq_f64): Likewise.
5802 (vmuls_laneq_f32): Likewise.
5803 (vmul_n_f64): Likewise.
5804 (vmuld_lane_f64): Reimplement in C.
5805 (vmuls_lane_f32): Likewise.
5806
5807 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5808
5809 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
5810 to reservation.
5811 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
5812
5813 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5814
5815 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
5816 (rbitsi2): Likewise.
5817 (*arm_rev): Set predicable and predicable_short_it attributes.
5818
5819 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5820
5821 * convert.c (convert_to_integer): Guard transformation to lrint by
5822 -fno-math-errno.
5823
5824 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
5825
5826 * config/aarch64/aarch64-builtins.c
5827 (aarch64_simd_builtin_type_mode): Delete.
5828 (v8qi_UP): Remap to V8QImode.
5829 (v4hi_UP): Remap to V4HImode.
5830 (v2si_UP): Remap to V2SImode.
5831 (v2sf_UP): Remap to V2SFmode.
5832 (v1df_UP): Remap to V1DFmode.
5833 (di_UP): Remap to DImode.
5834 (df_UP): Remap to DFmode.
5835 (v16qi_UP):V16QImode.
5836 (v8hi_UP): Remap to V8HImode.
5837 (v4si_UP): Remap to V4SImode.
5838 (v4sf_UP): Remap to V4SFmode.
5839 (v2di_UP): Remap to V2DImode.
5840 (v2df_UP): Remap to V2DFmode.
5841 (ti_UP): Remap to TImode.
5842 (ei_UP): Remap to EImode.
5843 (oi_UP): Remap to OImode.
5844 (ci_UP): Map to CImode.
5845 (xi_UP): Remap to XImode.
5846 (si_UP): Remap to SImode.
5847 (sf_UP): Remap to SFmode.
5848 (hi_UP): Remap to HImode.
5849 (qi_UP): Remap to QImode.
5850 (aarch64_simd_builtin_datum): Make mode a machine_mode.
5851 (VAR1): Build builtin name.
5852 (aarch64_init_simd_builtins): Remove dead code.
5853
5854 2014-08-05 Roman Gareev <gareevroman@gmail.com>
5855
5856 * graphite-isl-ast-to-gimple.c:
5857 (set_options): New function.
5858 (scop_to_isl_ast): Add calling of set_options.
5859
5860 2014-08-05 Jakub Jelinek <jakub@redhat.com>
5861
5862 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
5863 (analyze_iv_to_split_insn): Don't initialize them.
5864 (get_ivts_expr): Removed.
5865 (allocate_basic_variable, insert_base_initialization): Use
5866 SET_SRC instead of *get_ivts_expr.
5867 (split_iv): Use &SET_SRC instead of get_ivts_expr.
5868
5869 2014-08-05 Roman Gareev <gareevroman@gmail.com>
5870
5871 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
5872 (translate_isl_ast_for_loop): Add checking of the
5873 flag_loop_parallelize_all.
5874 (ast_build_before_for): New function.
5875 (scop_to_isl_ast): Add checking of the
5876 flag_loop_parallelize_all.
5877 * graphite-dependences.c: Move the defenition of the
5878 scop_get_dependences from graphite-optimize-isl.c to this file.
5879 (apply_schedule_on_deps): Add checking of the ux's emptiness.
5880 (carries_deps): Add checking of the x's value.
5881 * graphite-optimize-isl.c: Move the defenition of the
5882 scop_get_dependences to graphite-dependences.c.
5883 * graphite-poly.h: Add declarations of scop_get_dependences
5884 and carries_deps.
5885
5886 2014-08-04 Rohit <rohitarulraj@freescale.com>
5887
5888 PR target/60102
5889 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
5890 names.
5891 (alt_reg_names): Likewise.
5892 (rs6000_dwarf_register_span): For SPE high registers, replace
5893 dwarf register numbers with GCC hard register numbers.
5894 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
5895 (rs6000_dbx_register_number): For SPE high registers, return dwarf
5896 register number for the corresponding GCC hard register number.
5897 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
5898 newly added GCC hard register numbers for SPE high registers.
5899 (DWARF_FRAME_REGISTERS): Likewise.
5900 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
5901 (DWARF_FRAME_REGNUM): Likewise.
5902 (FIXED_REGISTERS): Likewise.
5903 (CALL_USED_REGISTERS): Likewise.
5904 (CALL_REALLY_USED_REGISTERS): Likewise.
5905 (REG_ALLOC_ORDER): Likewise.
5906 (enum reg_class): Likewise.
5907 (REG_CLASS_NAMES): Likewise.
5908 (REG_CLASS_CONTENTS): Likewise.
5909 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
5910
5911 2014-08-04 Richard Biener <rguenther@suse.de>
5912
5913 * gimple-fold.h (gimple_fold_builtin): Remove.
5914 * gimple-fold.c (gimple_fold_builtin): Make static.
5915 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
5916 fold_stmt, not gimple_fold_builtin.
5917
5918 2014-08-04 Martin Liska <mliska@suse.cz>
5919
5920 * cgraph.h (csi_end_p): Removed.
5921 (csi_next): Likewise.
5922 (csi_node): Likewise.
5923 (csi_start): Likewise.
5924 (cgraph_node_in_set_p): Likewise.
5925 (cgraph_node_set_size): Likewise.
5926 (vsi_end_p): Likewise.
5927 (vsi_next): Likewise.
5928 (vsi_node): Likewise.
5929 (vsi_start): Likewise.
5930 (varpool_node_set_size): Likewise.
5931 (cgraph_node_set_nonempty_p): Likewise.
5932 (varpool_node_set_nonempty_p): Likewise.
5933 * cgraphunit.c (cgraph_process_new_functions): vec replaces
5934 cgraph_node_set.
5935 * ipa-inline-transform.c: Likewise.
5936 * ipa-utils.c (cgraph_node_set_new): Removed.
5937 (cgraph_node_set_add): Likewise.
5938 (cgraph_node_set_remove): Likewise.
5939 (cgraph_node_set_find): Likewise.
5940 (dump_cgraph_node_set): Likewise.
5941 (debug_cgraph_node_set): Likewise.
5942 (free_cgraph_node_set): Likewise.
5943 (varpool_node_set_new): Likewise.
5944 (varpool_node_set_add): Likewise.
5945 (varpool_node_set_remove): Likewise.
5946 (varpool_node_set_find): Likewise.
5947 (dump_varpool_node_set): Likewise.
5948 (free_varpool_node_set): Likewise.
5949 (debug_varpool_node_set): Likewise.
5950 * tree-emutls.c (struct tls_var_data):
5951 (emutls_index): Removed.
5952 (emutls_decl): Likewise.
5953 (gen_emutls_addr): Function implementation uses newly added
5954 hash_map<varpool_node *, tls_var_data>.
5955 (clear_access_vars): Likewise.
5956 (create_emultls_var): Likewise.
5957 (ipa_lower_emutls): Likewise.
5958 (reset_access): New function.
5959
5960 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5961
5962 * config/i386/i386.c (ix86_option_override_internal): Add
5963 PTA_RDRND and PTA_MOVBE for bdver4.
5964
5965 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5966 James Greenhalgh <james.greenhalgh@arm.com>
5967
5968 * doc/md.texi (clrsb): Document.
5969 (clz): Change reference to x into operand 1.
5970 (ctz): Likewise.
5971 (popcount): Likewise.
5972
5973 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5974
5975 PR target/61713
5976 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
5977 move to subtarget in serial version if result is ignored.
5978
5979 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5980 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5981
5982 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
5983 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
5984 (sched_analyze_insn): Update use of try_group_insn to
5985 sched_macro_fuse_insns.
5986 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
5987 arguments that are not conditional jumps.
5988
5989 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5990
5991 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
5992 family information. Handle BTVER2 cpu with cpuid family value.
5993
5994 2014-08-04 Tom de Vries <tom@codesourcery.com>
5995
5996 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
5997 (glibc_2_11_or_earlier): Document effective-target keywords.
5998
5999 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
6000
6001 * ipa-devirt.c (odr_type_warn_count): Add type.
6002 (possible_polymorphic_call_targets): Set it.
6003 (ipa_devirt): Use it.
6004
6005 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
6006
6007 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
6008 Document.
6009 * ipa-devirt.c: Include hash-map.h
6010 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
6011 (clear_speculation): Break out of ...
6012 (get_class_context): ... here; speed up handling obviously useless
6013 speculations.
6014 (odr_type_warn_count, decl_warn_count): New structures.
6015 (final_warning_record): New structure.
6016 (final_warning_records): New static variable.
6017 (possible_polymorphic_call_targets): Cleanup handling of
6018 speculative info; do not build speculation when user do not care;
6019 record info about warnings when asked for.
6020 (add_decl_warning): New function.
6021 (type_warning_cmp): New function.
6022 (decl_warning_cmp): New function.
6023 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
6024 (gate): Enable pass when warnings are requested.
6025 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
6026 options.
6027
6028 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
6029
6030 * hash-map.h (default_hashmap_traits::mark_key_deleted):
6031 Fix cast.
6032 (hash_map::remove): New method.
6033 (hash_map::traverse): New method.
6034 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
6035 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
6036 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
6037 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
6038 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
6039 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
6040 pointer_map.
6041
6042 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
6043
6044 * hash-set.h: new File.
6045 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
6046 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
6047 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
6048 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
6049 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
6050 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
6051 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
6052 varpool.c: Use hash_set instead of pointer_set.
6053
6054 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
6055
6056 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
6057
6058 2014-08-01 Jiong Wang <jiong.wang@arm.com>
6059
6060 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
6061 for frame access when strict_p is false.
6062
6063 2014-08-01 Renlin Li <renlin.li@arm.com>
6064 2014-08-01 Jiong Wang <jiong.wang@arm.com>
6065
6066 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
6067 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
6068 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
6069 Declaration.
6070 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
6071 predicate.
6072 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
6073 aarch64_mem_pair_offset.
6074
6075 2014-08-01 Jiong Wang <jiong.wang@arm.com>
6076
6077 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
6078 offset.
6079 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
6080 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
6081
6082 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
6083
6084 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
6085
6086 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
6087
6088 PR regression/61510
6089 * cgraphunit.c (analyze_functions): Use get_create rather than get
6090 for decls which are clones of abstract functions.
6091
6092 2014-08-01 Martin Liska <mliska@suse.cz>
6093
6094 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
6095 * ipa-prop.h (count_formal_params): Global function created from static.
6096 * ipa-prop.c (count_formal_params): Likewise.
6097 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
6098 profiles for semantically equivalent functions.
6099 * passes.c (do_per_function): If we load body of a function
6100 during WPA, this condition should behave same.
6101 * varpool.c (ctor_for_folding): More tolerant assert for variable
6102 aliases created during WPA.
6103
6104 2014-08-01 Martin Liska <mliska@suse.cz>
6105
6106 * doc/invoke.texi (Options That Control Optimization): Documentation
6107 for -foptimize-strlen introduced. Optimization levels default options
6108 fixed.
6109
6110 2014-08-01 Jakub Jelinek <jakub@redhat.com>
6111
6112 * opts.c (common_handle_option): Handle -fsanitize=alignment.
6113 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
6114 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
6115 type to bool.
6116 * stor-layout.h (min_align_of_type): New prototype.
6117 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
6118 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
6119 check.
6120 * ubsan.c: Include builtins.h.
6121 (ubsan_expand_bounds_ifn): Change return type to bool,
6122 always return true.
6123 (ubsan_expand_null_ifn): Change return type to bool, change
6124 argument to gimple_stmt_iterator *. Handle both null and alignment
6125 sanitization, take type from ckind argument's type rather than
6126 first argument.
6127 (instrument_member_call): Removed.
6128 (instrument_mem_ref): Remove t argument, add mem and base arguments.
6129 Handle both null and alignment sanitization, don't say whole
6130 struct access is member access. Build 3 argument IFN_UBSAN_NULL
6131 call instead of 2 argument.
6132 (instrument_null): Adjust instrument_mem_ref caller. Don't
6133 instrument calls here.
6134 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
6135 like SANITIZE_NULL.
6136 * stor-layout.c (min_align_of_type): New function.
6137 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
6138 Or it into SANITIZE_UNDEFINED.
6139 * doc/invoke.texi (-fsanitize=alignment): Document.
6140
6141 2014-07-31 Andi Kleen <ak@linux.intel.com>
6142
6143 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
6144
6145 2014-07-31 Andi Kleen <ak@linux.intel.com>
6146
6147 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
6148 inchash.
6149 (vn_reference_compute_hash): Dito.
6150 (vn_nary_op_compute_hash): Dito.
6151 (vn_phi_compute_hash): Dito.
6152 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
6153
6154 2014-07-31 Andi Kleen <ak@linux.intel.com>
6155
6156 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
6157 Rename to inchash:add_expr_commutative. Convert to inchash.
6158 (iterative_hash_hashable_expr): Rename to
6159 inchash:add_hashable_expr. Convert to inchash.
6160 (avail_expr_hash): Dito.
6161
6162 2014-07-31 Andi Kleen <ak@linux.intel.com>
6163
6164 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
6165 Convert to inchash.
6166
6167 2014-07-31 Andi Kleen <ak@linux.intel.com>
6168
6169 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
6170
6171 2014-07-31 Andi Kleen <ak@linux.intel.com>
6172
6173 * Makefile.in (OBJS): Add rtlhash.o
6174 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
6175 (loc_checksum): Dito.
6176 (loc_checksum_ordered): Dito.
6177 (hash_loc_operands): Dito.
6178 (hash_locs): Dito.
6179 (hash_loc_list): Dito.
6180 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
6181 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
6182 * rtlhash.c: New file.
6183 * rtlhash.h: New file.
6184
6185 2014-07-31 Andi Kleen <ak@linux.intel.com>
6186
6187 * inchash.h (inchash): Change inchash class to namespace.
6188 (class hash): ... Rename from inchash.
6189 (add_object): Move from macro to class template.
6190 * lto-streamer-out.c (hash_tree): Change inchash
6191 to inchash::hash.
6192 * tree.c (build_type_attribute_qual_variant): Dito.
6193 (type_hash_list): Dito.
6194 (attribute_hash_list): Dito.
6195 (iterative_hstate_expr): Rename to inchash::add_expr
6196 (build_range_type_1): Change inchash to inchash::hash
6197 and use hash::add_expr.
6198 (build_array_type_1): Dito.
6199 (build_function_type): Dito
6200 (build_method_type_directly): Dito.
6201 (build_offset_type): Dito.
6202 (build_complex_type): Dito.
6203 (make_vector_type): Dito.
6204 * tree.h (iterative_hash_expr): Dito.
6205
6206 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
6207
6208 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
6209
6210 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
6211
6212 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
6213 correct alphabetical position.
6214 (vpaddd_f64): Rewrite using builtins.
6215 (vpaddd_s64): Move to correct alphabetical position.
6216 (vpaddd_u64): New.
6217
6218 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
6219
6220 PR target/61844
6221 * config/sh/sh.c (sh_legitimate_address_p,
6222 sh_legitimize_reload_address): Handle reg+reg address modes when
6223 ALLOW_INDEXED_ADDRESS is false.
6224 * config/sh/predicates.md (general_movsrc_operand,
6225 general_movdst_operand): Likewise.
6226
6227 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
6228
6229 * config/aarch64/aarch64-builtins.c
6230 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
6231 BYTES_BIG_ENDIAN.
6232
6233 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
6234
6235 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
6236 the generated mask based on BYTES_BIG_ENDIAN.
6237 (aarch64_simd_check_vect_par_cnst_half): New.
6238 * config/aarch64/aarch64-protos.h
6239 (aarch64_simd_check_vect_par_cnst_half): New.
6240 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
6241 the check out to aarch64_simd_check_vect_par_cnst_half.
6242 (vect_par_cnst_lo_half): Likewise.
6243 * config/aarch64/aarch64-simd.md
6244 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
6245 (move_hi_quad_<mode>): Always generate a low mask.
6246
6247 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6248
6249 * doc/invoke.texi (AVR Options): Add documentation about
6250 __AVR_DEVICE_NAME__ built-in macro.
6251
6252 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
6253
6254 PR target/61948
6255 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
6256 constraints are satisfied.
6257 (<shift>di3_neon): Likewise.
6258
6259 2014-07-31 Richard Biener <rguenther@suse.de>
6260
6261 PR tree-optimization/61964
6262 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
6263 by structural equality.
6264
6265 2014-07-31 Yury Gribov <y.gribov@samsung.com>
6266
6267 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
6268 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
6269 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
6270 New enums.
6271 * gcc.c (sanitize_spec_function): Support new option.
6272 (SANITIZER_SPEC): Remove now redundant check.
6273 * opts.c (common_handle_option): Support new option.
6274 (finish_options): Check for incompatibilities.
6275 * toplev.c (process_options): Split userspace-specific checks.
6276
6277 2014-07-31 Richard Biener <rguenther@suse.de>
6278
6279 * lto-streamer.h (struct output_block): Remove global.
6280 (struct data_in): Remove labels, num_named_labels and
6281 num_unnamed_labels.
6282 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
6283 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
6284
6285 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
6286
6287 PR c++/60517
6288 * common.opt (-Wreturn-local-addr): Moved from c.opt.
6289 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
6290 (isolate_path): New argument to avoid inserting a trap.
6291 (find_implicit_erroneous_behaviour): Handle returning the address
6292 of a local variable.
6293 (find_explicit_erroneous_behaviour): Likewise.
6294
6295 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
6296
6297 PR lto/61868
6298 * toplev.c (init_random_seed): Move piece of code never called to
6299 set_random_seed.
6300 (set_random_seed): see above.
6301
6302 2014-07-31 Tom de Vries <tom@codesourcery.com>
6303
6304 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
6305
6306 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
6307
6308 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
6309 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
6310
6311 2014-07-31 Richard Biener <rguenther@suse.de>
6312
6313 * data-streamer.h (streamer_write_data_stream): Declare here,
6314 renamed from ...
6315 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
6316 * lto-cgraph.c (lto_output_node): Adjust.
6317 (lto_output_varpool_node): Likewise.
6318 * data-streamer-out.c (streamer_string_index): Likewise.
6319 (streamer_write_data_stream, lto_append_block): Move from ...
6320 * lto-section-out.c (lto_output_data_stream,
6321 lto_append_block): ... here.
6322
6323 2014-07-30 Mike Stump <mikestump@comcast.net>
6324
6325 * configure.ac: Also check for popen.
6326 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
6327 * configure: Regenerate.
6328 * config.in: Regenerate.
6329
6330 2014-07-30 Martin Jambor <mjambor@suse.cz>
6331
6332 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
6333 parameter to gimple.
6334
6335 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6336
6337 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
6338 address as second parameter to __tpf_eh_return routine.
6339
6340 2014-07-30 Jiong Wang <jiong.wang@arm.com>
6341
6342 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
6343 Thumb2.
6344
6345 2014-07-30 Tom Tromey <tromey@redhat.com>
6346
6347 PR c/59855
6348 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
6349 * doc/extend.texi (Type Attributes): Document designated_init
6350 attribute.
6351
6352 2014-07-30 Roman Gareev <gareevroman@gmail.com>
6353
6354 * graphite-isl-ast-to-gimple.c:
6355 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
6356 (gcc_expression_from_isl_expression): Pass type to
6357 gcc_expression_from_isl_ast_expr_id.
6358
6359 2014-07-30 Richard Biener <rguenther@suse.de>
6360
6361 * lto-streamer.h (lto_write_data): New function.
6362 * langhooks.c (lhd_append_data): Do not free block.
6363 * lto-section-out.c (lto_write_data): New function writing
6364 raw data to the current section.
6365 (lto_write_stream): Adjust for langhook semantic change.
6366 (lto_destroy_simple_output_block): Write header directly.
6367 * lto-opts.c (lto_write_options): Write options directly.
6368 * lto-streamer-out.c (produce_asm): Write heaeder directly.
6369 (lto_output_toplevel_asms): Likewise.
6370 (copy_function_or_variable): Copy data directly.
6371 (write_global_references): Output index table directly.
6372 (lto_output_decl_state_refs): Likewise.
6373 (write_symbol): Write data directly.
6374 (produce_symtab): Adjust.
6375 (produce_asm_for_decls): Output header and refs directly.
6376
6377 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
6378
6379 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
6380 to speculative_targets
6381 (get_class_context): Fix handling of contextes without outer type;
6382 avoid matching non-polymorphic types in LTO.
6383 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
6384 parameter to speculative_targetsp; handle speculation.
6385 (dump_possible_polymorphic_call_targets): Update dumping.
6386
6387 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
6388
6389 * common.opt (Wodr): Enable by default.
6390
6391 2014-07-29 Olivier Hainque <hainque@adacore.com>
6392
6393 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
6394
6395 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
6396
6397 PR bootstrap/61914
6398 * gengtype.c (strtoken): New function.
6399 (create_user_defined_type): Replace strtok with strtoken.
6400
6401 2014-07-29 Nathan Sidwell <nathan@acm.org>
6402
6403 * gcov-io.c (gcov_var): Make hidden.
6404 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
6405 (gcov_do_dump): Declare.
6406 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
6407
6408 2014-07-29 Martin Jambor <mjambor@suse.cz>
6409
6410 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
6411 parameter to gimple.
6412 (sra_modify_assign): Likewise.
6413
6414 2014-07-29 Richard Biener <rguenther@suse.de>
6415
6416 PR middle-end/52478
6417 * expr.c (expand_expr_real_2): Revert last change.
6418
6419 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
6420
6421 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
6422 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
6423 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
6424 call.
6425 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
6426 (contains_type_p): Forward declare.
6427 (polymorphic_call_target_hasher::hash): Hash speculative info.
6428 (polymorphic_call_target_hasher::equal): Compare speculative info.
6429 (get_class_context): Handle speuclation.
6430 (contains_type_p): Update.
6431 (get_polymorphic_call_info_for_decl): Update.
6432 (walk_ssa_copies): Break out from ...
6433 (get_polymorphic_call_info): ... here; set speculative context
6434 before giving up.
6435 * ipa-prop.c (ipa_write_indirect_edge_info,
6436 ipa_read_indirect_edge_info): Stream speculative context.
6437 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
6438 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
6439 SPECULATIVE_MAYBE_DERIVED_TYPE).
6440 (possible_polymorphic_call_targets overriders): Update.
6441 (dump_possible_polymorphic_call_targets overriders): Update.
6442 (dump_possible_polymorphic_call_target_p overriders): Update.
6443
6444 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
6445
6446 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
6447 ipa-devirt path; fix thinko there.
6448
6449 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
6450
6451 * config/i386/i386.c (ix86_return_in_memory): Replace one
6452 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
6453
6454 2014-07-28 Marek Polacek <polacek@redhat.com>
6455
6456 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
6457
6458 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
6459
6460 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
6461 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
6462 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
6463 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
6464 (USE_LD_AS_NEEDED): Likewise.
6465 (ASM_APP_ON): Likewise.
6466 (ASM_APP_OFF): Likewise.
6467 (TARGET_POSIX_IO): Likewise.
6468 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
6469 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
6470 (USE_LD_AS_NEEDED): Likewise.
6471 (ASM_APP_ON): Likewise.
6472 (ASM_APP_OFF): Likewise.
6473 (TARGET_POSIX_IO): Likewise.
6474
6475 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
6476
6477 PR middle-end/61734
6478 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
6479 operators other than the equality operators.
6480
6481 2014-07-28 Richard Biener <rguenther@suse.de>
6482
6483 PR middle-end/52478
6484 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
6485 sure to register SImode ones, not only >= word_mode ones.
6486 * expr.c (expand_expr_real_2): When expanding -ftrapv
6487 binops do not use OPTAB_LIB_WIDEN.
6488
6489 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
6490
6491 PR middle-end/61919
6492 * tree-outof-ssa.c (insert_partition_copy_on_edge)
6493 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
6494 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
6495 inserting them in the insn stream.
6496
6497 2014-07-28 Marek Polacek <polacek@redhat.com>
6498
6499 PR middle-end/61913
6500 * common.opt (Wodr): Add Var.
6501
6502 2014-07-28 Richard Biener <rguenther@suse.de>
6503
6504 PR tree-optimization/61921
6505 * tree-ssa-structalias.c (create_variable_info_for_1): Check
6506 if there is a varpool node before dereferencing it.
6507
6508 2014-07-28 Roman Gareev <gareevroman@gmail.com>
6509
6510 * graphite-sese-to-poly.c:
6511 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
6512 id of the pbb), which contains pointer to the pbb1.
6513
6514 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
6515
6516 2014-07-28 Roman Gareev <gareevroman@gmail.com>
6517
6518 * graphite-isl-ast-to-gimple.c:
6519 (graphite_create_new_guard): New function.
6520 (translate_isl_ast_node_if): New function.
6521 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
6522
6523 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
6524
6525 2014-07-27 Anthony Green <green@moxielogic.com>
6526
6527 * config.gcc: Add moxie-*-moxiebox* configuration.
6528 * config/moxie/moxiebox.h: New file.
6529
6530 2014-07-26 Andrew Pinski <apinski@cavium.com>
6531
6532 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
6533 from the read only register.
6534
6535 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
6536
6537 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
6538 as the allocation class if it isn't likely to be spilled.
6539
6540 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
6541
6542 * rtl.h (tls_referenced_p): Declare.
6543 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
6544 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
6545 (mips_cannot_force_const_mem): Use tls_referenced_p.
6546 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
6547 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
6548 instead of pa_tls_referenced_p.
6549 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
6550 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
6551 (pa_legitimate_constant_p): Likewise.
6552 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
6553 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
6554 (rs6000_cannot_force_const_mem, rs6000_emit_move)
6555 (rs6000_address_for_altivec): Use tls_referenced_p instead of
6556 rs6000_tls_referenced_p.
6557 (rs6000_tls_symbol_ref_1): Delete.
6558
6559 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
6560
6561 PR target/44551
6562 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
6563 Optimize inverse of a VEC_CONCAT.
6564
6565 2014-07-25 Xinliang David Li <davidxl@google.com>
6566
6567 * params.def: New parameter.
6568 * coverage.c (get_coverage_counts): Check new flag.
6569 (coverage_compute_profile_id): Check new flag.
6570 (coverage_begin_function): Check new flag.
6571 (coverage_end_function): Check new flag.
6572 * value-prof.c (coverage_node_map_initialized_p): New function.
6573 (init_node_map): Populate map with all functions.
6574 * doc/invoke.texi: Document new parameter.
6575
6576 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
6577 Richard Biener <rguenther@suse.de>
6578
6579 * lto-streamer-out.c (struct sccs): Turn to ...
6580 (class DFS): ... this one; refactor the DFS walk so it can
6581 be re-done on per-SCC basis.
6582 (DFS::DFS): New constructor.
6583 (DFS::~DFS): New destructor.
6584 (hash_tree): Add new MAP argument holding in-SCC hash values;
6585 remove POINTER_TYPE hashing hack.
6586 (scc_entry_compare): Rename to ...
6587 (DFS::scc_entry_compare): ... this one.
6588 (hash_scc): Rename to ...
6589 (DFS::hash_scc): ... this one; pass output_block instead
6590 of streamer_cache; work harder to get unique and stable SCC
6591 hashes.
6592 (DFS_write_tree): Rename to ...
6593 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
6594 (lto_output_tree): Update.
6595
6596 2014-07-25 Andi Kleen <ak@linux.intel.com>
6597
6598 * lto-streamer-out.c (hash_tree): Convert to inchash.
6599
6600 2014-07-25 Andi Kleen <ak@linux.intel.com>
6601
6602 * tree.c (build_type_attribute_qual_variant): Use inchash.
6603 (type_hash_list): Dito.
6604 (attribute_hash_list): Dito
6605 (iterative_hstate_expr): Dito.
6606 (iterative_hash_expr): Dito.
6607 (build_range_type_1): Dito.
6608 (build_array_type_1): Dito.
6609 (build_function_type): Dito.
6610 (build_method_type_directly): Dito.
6611 (build_offset_type): Dito.
6612 (build_complex_type): Dito.
6613 (make_vector_type): Dito.
6614 * tree.h (iterative_hash_expr): Add compat wrapper.
6615 (iterative_hstate_expr): Add.
6616
6617 2014-07-25 Andi Kleen <ak@linux.intel.com>
6618
6619 * Makefile.in (OBJS): Add inchash.o.
6620 (PLUGIN_HEADERS): Add inchash.h.
6621 * ipa-devirt.c: Include inchash.h.
6622 * lto-streamer-out.c: Dito.
6623 * tree-ssa-dom.c: Dito.
6624 * tree-ssa-pre.c: Dito.
6625 * tree-ssa-sccvn.c: Dito.
6626 * tree-ssa-tail-merge.c: Dito.
6627 * asan.c: Dito.
6628 * tree.c (iterative_hash_hashval_t): Move to ...
6629 (iterative_hash_host_wide_int): Move to ...
6630 * inchash.c: Here. New file.
6631 * tree.h (iterative_hash_hashval_t): Move to ...
6632 (iterative_hash_host_wide_int): Move to ...
6633 * inchash.h: Here. New file.
6634
6635 2014-07-25 Richard Biener <rguenther@suse.de>
6636
6637 PR middle-end/61762
6638 PR middle-end/61894
6639 * fold-const.c (native_encode_int): Add and handle offset
6640 parameter to do partial encodings of expr.
6641 (native_encode_fixed): Likewise.
6642 (native_encode_real): Likewise.
6643 (native_encode_complex): Likewise.
6644 (native_encode_vector): Likewise.
6645 (native_encode_string): Likewise.
6646 (native_encode_expr): Likewise.
6647 * fold-const.c (native_encode_expr): Add offset parameter
6648 defaulting to -1.
6649 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
6650 (fold_ctor_reference): Handle all reads from tcc_constant
6651 ctors.
6652
6653 2014-07-25 Richard Biener <rguenther@suse.de>
6654
6655 * tree-inline.c (estimate_move_cost): Mark speed_p argument
6656 as possibly unused.
6657
6658 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6659
6660 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
6661
6662 2014-07-24 Kyle McMartin <kyle@redhat.com>
6663
6664 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
6665
6666 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6667
6668 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
6669 Add prototype.
6670 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
6671 function.
6672 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
6673 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6674 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
6675
6676 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6677
6678 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
6679 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
6680 aggregate types. Instead, *all* aggregate types, except for single-
6681 element or homogeneous float/vector aggregates, are quadword-aligned
6682 if required by their type alignment. Issue -Wpsabi note when a type
6683 is now treated differently than before.
6684
6685 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6686
6687 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
6688 does not fit fully into floating-point registers, and there is still
6689 space in the register parameter area, use GPRs to pass those parts
6690 of the argument. Issue -Wpsabi note if any parameter is now treated
6691 differently than before.
6692 (rs6000_arg_partial_bytes): Update.
6693
6694 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
6695
6696 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
6697
6698 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
6699
6700 * rtl.h (target_rtl): Remove lang_dependent_initialized.
6701 * toplev.c (initialize_rtl): Don't use it. Move previously
6702 "language-dependent" calls to...
6703 (backend_init): ...here.
6704 (lang_dependent_init_target): Don't set lang_dependent_initialized.
6705 Assert that RTL initialization hasn't happend yet.
6706
6707 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
6708
6709 PR rtl-optimization/61629
6710 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
6711 they have already been initialized.
6712
6713 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
6714
6715 PR middle-end/61268
6716 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
6717 DECL_INCOMING_RTL and entry_parm.
6718 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
6719 * calls.c (load_register_parameters): Likewise argument values.
6720 (emit_library_call_value_1, store_one_arg): Likewise argument
6721 save areas.
6722 * config/i386/i386.c (assign_386_stack_local): Likewise the local
6723 stack slot.
6724 * explow.c (validize_mem): Modify the argument in-place.
6725
6726 2014-07-24 Jiong Wang <jiong.wang@arm.com>
6727
6728 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
6729 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
6730
6731 2014-07-24 Jiong Wang <jiong.wang@arm.com>
6732
6733 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
6734 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
6735
6736 2014-07-24 Jiong Wang <jiong.wang@arm.com>
6737
6738 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
6739 (aarch64_save_callee_saves): New parameter "skip_wb".
6740 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
6741
6742 2014-07-24 Jiong Wang <jiong.wang@arm.com>
6743
6744 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
6745 "wb_candidate2".
6746 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
6747
6748 2014-07-24 Roman Gareev <gareevroman@gmail.com>
6749
6750 * graphite-isl-ast-to-gimple.c:
6751 (graphite_create_new_loop): Add calling of isl_id_free to properly
6752 decrement reference counts.
6753
6754 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
6755
6756 2014-07-24 Martin Liska <mliska@suse.cz>
6757 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
6758 function used.
6759 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
6760 (rs6000_code_end): Likewise.
6761
6762 2014-07-24 Martin Liska <mliska@suse.cz>
6763
6764 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
6765 symtab_node funtion used.
6766 (rs6000_xcoff_declare_object_name): Likewise.
6767
6768 2014-07-24 Martin Liska <mliska@suse.cz>
6769
6770 * cgraphunit.c (compile): Correct function used.
6771
6772 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
6773
6774 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
6775 as non-indexable.
6776
6777 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
6778
6779 PR lto/61802
6780 * varasm.c (bss_initializer_p): Handle offlined ctors.
6781 (align_variable, get_variable_align): Likewise.
6782 (make_decl_one_only): Likewise.
6783 (default_binds_local_p_1): Likewise.
6784 (decl_binds_to_current_def_p): Likewise.
6785 (get_variable_section): Get constructor if it is offlined.
6786 (assemble_variable_contents): Sanity check that the caller
6787 streamed in the ctor in LTO.
6788
6789 2014-07-24 Roman Gareev <gareevroman@gmail.com>
6790
6791 * graphite-isl-ast-to-gimple.c:
6792 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
6793 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
6794 isl_ast_op_pdiv_r to the different case.
6795
6796 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
6797
6798 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6799
6800 PR middle-end/61876
6801 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
6802 when flag_errno_math is on.
6803
6804 2014-07-24 Martin Liska <mliska@suse.cz>
6805
6806 * cgraph.h (varpool_node):
6807 (availability get_availability (void)):
6808 created from cgraph_variable_initializer_availability
6809 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
6810 created from: cgraph_variable_initializer_availability
6811 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
6812 (void finalize_named_section_flags (void)):
6813 created from varpool_finalize_named_section_flags
6814 (bool assemble_decl (void)): created from varpool_assemble_decl
6815 (void analyze (void)): created from varpool_analyze_node
6816 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
6817 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
6818 (void remove_initializer (void)): created from varpool_remove_initializer
6819 (tree get_constructor (void)): created from varpool_get_constructor
6820 (bool externally_visible_p (void)): created from varpool_externally_visible_p
6821 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
6822 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
6823 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
6824 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
6825 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
6826 (static bool output_variables (void)): created from varpool_output_variables
6827 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
6828 created from varpool_extra_name_alias
6829 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
6830 (static void dump_varpool (FILE *f)): created from dump_varpool
6831 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
6832 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
6833 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
6834 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
6835 (void assemble_aliases (void)): created from assemble_aliases
6836
6837 2014-07-24 Martin Liska <mliska@suse.cz>
6838
6839 * cgraph.h (symtab_node):
6840 (void register_symbol (void)): created from symtab_register_node
6841 (void remove (void)): created from symtab_remove_node
6842 (void dump (FILE *f)): created from dump_symtab_node
6843 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
6844 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
6845 (struct ipa_ref *add_reference (symtab_node *referred_node,
6846 enum ipa_ref_use use_type)): created from add_reference
6847 (struct ipa_ref *add_reference (symtab_node *referred_node,
6848 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
6849 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
6850 gimple stmt)): created from maybe_add_reference
6851 (bool semantically_equivalent_p (symtab_node *target)): created from
6852 symtab_semantically_equivalent_p
6853 (void remove_from_same_comdat_group (void)): created from
6854 remove_from_same_comdat_group
6855 (void add_to_same_comdat_group (symtab_node *old_node)): created from
6856 symtab_add_to_same_comdat_group
6857 (void dissolve_same_comdat_group_list (void)): created from
6858 symtab_dissolve_same_comdat_group_list
6859 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
6860 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
6861 created from symtab_alias_ultimate_target
6862 (inline symtab_node *next_defined_symbol (void)): created from
6863 symtab_next_defined_symbol
6864 (bool resolve_alias (symtab_node *target)): created from
6865 symtab_resolve_alias
6866 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
6867 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
6868 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
6869 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
6870 (void set_section (const char *section)): created from set_section_1
6871 (enum availability get_availability (void)): created from symtab_node_availability
6872 (void make_decl_local (void)): created from symtab_make_decl_local
6873 (bool real_symbol_p (void)): created from symtab_read_node
6874 (can_be_discarded_p (void)): created from symtab_can_be_discarded
6875 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
6876 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
6877 symtab_in_same_comdat_p;
6878 (bool address_taken_from_non_vtable_p (void)): created from
6879 address_taken_from_non_vtable_p
6880 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
6881 (static void dump_table (FILE *)): created from dump_symtab
6882 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
6883 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
6884 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
6885 symtab_used_from_object_file_p
6886 (void dump_base (FILE *)): created from dump_symtab_base
6887 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
6888 (void unregister (void)): created from symtab_unregister_node
6889 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
6890 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
6891 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
6892 symtab_nonoverwritable_alias_1
6893 * cgraph.h (cgraph_node):
6894 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
6895 created from cgraph_remove_node_and_inline_clones
6896 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
6897 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
6898 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
6899 (cgraph_node *function_symbol (enum availability *avail = NULL)):
6900 created from cgraph_function_node
6901 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
6902 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
6903 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
6904 created from cgraph_create_clone
6905 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
6906 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
6907 created from cgraph_create_virtual_clone
6908 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
6909 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
6910 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
6911 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
6912 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
6913 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
6914 created from cgraph_function_version_info
6915 (struct cgraph_function_version_info *insert_new_function_version (void)):
6916 created from insert_new_cgraph_node_version
6917 (struct cgraph_function_version_info *function_version (void)): created from
6918 get_cgraph_node_version
6919 (void analyze (void)): created from analyze_function
6920 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
6921 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
6922 tree real_alias) cgraph_add_thunk
6923 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
6924 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
6925 created from cgraph_function_or_thunk_node
6926 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
6927 created from expand_thunk
6928 (void reset (void)): created from cgraph_reset_node
6929 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
6930 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
6931 (void remove (void)): created from cgraph_remove_node
6932 (void dump (FILE *f)): created from dump_cgraph_node
6933 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
6934 (bool get_body (void)): created from cgraph_get_body
6935 (void release_body (void)): created from cgraph_release_function_body
6936 (void unnest (void)): created from cgraph_unnest_node
6937 (void make_local (void)): created from cgraph_make_node_local
6938 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
6939 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
6940 gcov_type count, int freq)): created from cgraph_create_edge
6941 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
6942 gcov_type count, int freq)): created from cgraph_create_indirect_edge
6943 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
6944 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
6945 created from cgraph_create_edge_including_clones
6946 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
6947 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
6948 (void remove_callers (void)): created from cgraph_node_remove_callers
6949 (void remove_callees (void)): created from cgraph_node_remove_callees
6950 (enum availability get_availability (void)): created from cgraph_function_body_availability
6951 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
6952 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
6953 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
6954 (void call_duplication_hooks (cgraph_node *node2)): created from
6955 cgraph_call_node_duplication_hooks
6956 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
6957 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
6958 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
6959 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
6960 (void call_function_insertion_hooks (void)):
6961 created from cgraph_call_function_insertion_hooks
6962 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
6963 (bool local_p (void)): created from cgraph_local_node
6964 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
6965 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
6966 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
6967 (inline bool only_called_directly_or_aliased_p (void)):
6968 created from cgraph_only_called_directly_or_aliased_p
6969 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
6970 created from cgraph_will_be_removed_from_program_if_no_direct_calls
6971 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
6972 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
6973 (bool can_remove_if_no_direct_calls_p (void)):
6974 created from cgraph_can_remove_if_no_direct_calls_p
6975 (inline bool has_gimple_body_p (void)):
6976 created from cgraph_function_with_gimple_body_p
6977 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
6978 (static void dump_cgraph (FILE *f)): created from dump_cgraph
6979 (static inline void debug_cgraph (void)): created from debug_cgraph
6980 (static void record_function_versions (tree decl1, tree decl2)):
6981 created from record_function_versions
6982 (static void delete_function_version (tree decl)):
6983 created from delete_function_version
6984 (static void add_new_function (tree fndecl, bool lowered)):
6985 created from cgraph_add_new_function
6986 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
6987 (static cgraph_node * create (tree decl)): created from cgraph_create_node
6988 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
6989 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
6990 (static cgraph_node *get_for_asmname (tree asmname)):
6991 created from cgraph_node_for_asm
6992 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
6993 created from cgraph_same_body_alias
6994 (static bool used_from_object_file_p_worker (cgraph_node *node,
6995 void *): new function
6996 (static bool non_local_p (cgraph_node *node, void *)):
6997 created from cgraph_non_local_node_p_1
6998 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
6999 created from verify_cgraph
7000 (static bool make_local (cgraph_node *node, void *)):
7001 created from cgraph_make_node_local
7002 (static cgraph_node *create_alias (tree alias, tree target)):
7003 created from cgraph_create_function_alias
7004 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
7005 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
7006 created from cgraph_create_edge_1
7007 * cgraph.h (varpool_node):
7008 (void remove (void)): created from varpool_remove_node
7009 (void dump (FILE *f)): created from dump_varpool_node
7010
7011 2014-07-24 Richard Biener <rguenther@suse.de>
7012
7013 PR ipa/61823
7014 * tree-ssa-structalias.c (create_variable_info_for_1):
7015 Use varpool_get_constructor.
7016 (create_variable_info_for): Likewise.
7017
7018 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7019
7020 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
7021 subtract outgoing area size when restoring stack_pointer_rtx.
7022
7023 2014-07-24 Nick Clifton <nickc@redhat.com>
7024
7025 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
7026 that operations are taking place in parallel.
7027 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
7028
7029 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
7030
7031 * omp-low.c (extract_omp_for_data): Add missing break statement.
7032
7033 2014-07-24 Richard Biener <rguenther@suse.de>
7034
7035 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
7036 * tree-inline.c (estimate_move_cost): Add speed_p parameter
7037 and adjust MOVE_RATIO query accordingly.
7038 (estimate_num_insns): Adjust callers.
7039 * ipa-prop.c (ipa_populate_param_decls): Likewise.
7040 * ipa-cp.c (gather_context_independent_values,
7041 estimate_local_effects): Likewise.
7042 * ipa-split.c (consider_split): Likewise.
7043
7044 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
7045
7046 * config/i386/driver-i386.c: Remove names of unused arguments and
7047 unnecessary unused attributes.
7048 * config/i386/host-mingw32.c: Likewise.
7049 * config/i386/i386.c: Likewise.
7050 * config/i386/winnt-stubs.c: Likewise.
7051 * config/i386/winnt.c: Likewise.
7052
7053 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7054
7055 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
7056 (aarch64_gen_loadwb_pair): New helper function.
7057 (aarch64_expand_epilogue): Simplify code using new helper functions.
7058 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
7059
7060 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7061
7062 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
7063 (aarch64_gen_storewb_pair): New helper function.
7064 (aarch64_expand_prologue): Simplify code using new helper functions.
7065 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
7066
7067 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7068
7069 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
7070 Rename to aarch64_save_callee_saves, remove restore code.
7071 (aarch64_restore_callee_saves): New function.
7072
7073 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7074
7075 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
7076 (aarch64_save_callee_saves): New function to handle reg save
7077 for both core and vectore regs.
7078
7079 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7080
7081 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
7082 (aarch64_gen_store_pair): New helper function.
7083 (aarch64_save_or_restore_callee_save_registers)
7084 (aarch64_save_or_restore_fprs): Use new helper functions.
7085
7086 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7087
7088 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
7089 (aarch64_save_or_restore_callee_save_registers)
7090 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
7091
7092 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7093
7094 * config/aarch64/aarch64.c
7095 (aarch64_save_or_restore_callee_save_registers)
7096 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
7097
7098 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7099
7100 * config/aarch64/aarch64.c
7101 (aarch64_save_or_restore_callee_save_registers)
7102 (aarch64_save_or_restore_fprs): Remove 'increment'.
7103
7104 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7105
7106 * config/aarch64/aarch64.c
7107 (aarch64_save_or_restore_callee_save_registers)
7108 (aarch64_save_or_restore_fprs): Use register offset in
7109 cfun->machine->frame.reg_offset.
7110
7111 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7112
7113 * config/aarch64/aarch64.c
7114 (aarch64_save_or_restore_callee_save_registers)
7115 (aarch64_save_or_restore_fprs): Remove base_rtx.
7116
7117 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7118
7119 * config/aarch64/aarch64.c
7120 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
7121 to 'start_offset'. Remove local variable 'start_offset'.
7122
7123 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7124
7125 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
7126 type to HOST_WIDE_INT.
7127
7128 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7129
7130 * config/aarch64/aarch64.c (aarch64_expand_prologue)
7131 (aarch64_save_or_restore_fprs)
7132 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
7133
7134 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
7135
7136 * config/arm/t-rtems-eabi: Add
7137 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
7138 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
7139 mbig-endian/mthumb/march=armv7-r, and
7140 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
7141 multilibs.
7142
7143 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
7144 Chris Johns <chrisj@rtems.org>
7145 Joel Sherrill <joel.sherrill@oarcorp.com>
7146
7147 * config.gcc: Add nios2-*-rtems*.
7148 * config/nios2/rtems.h: New file.
7149 * gcc/config/nios2/t-rtems: New file.
7150
7151 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
7152
7153 PR target/61396
7154 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
7155 constant numbers, not general constants.
7156 (rs6000_expand_vector_init): Ditto.
7157
7158 2014-07-23 Nathan Sidwell <nathan@acm.org>
7159
7160 * gcov-tool.c (gcov_list): Declare here.
7161 (set_gcov_list): Remove.
7162 (gcov_output_files): Set gcov_list directly.
7163
7164 2014-07-23 Host Schirmeier <horst@schirmeier.com>
7165
7166 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
7167
7168 2014-07-23 Jiong Wang <jiong.wang@arm.com>
7169
7170 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
7171 callee-saved registers are available for padding purpose
7172 and r3 is not mandatory, then prefer use those callee-saved
7173 instead of r3.
7174
7175 2014-07-23 Richard Biener <rguenther@suse.de>
7176
7177 * params.def (PARAM_MAX_COMBINE_INSNS): New.
7178 * combine.c: Include statistics.h and params.h.
7179 (combine_instructions): Guard three and four insn combines
7180 with max-combine-insns value. Record statistics for combines
7181 performed.
7182 * doc/invoke.texi (max-combine-insns): Document new param.
7183
7184 2014-07-23 Roman Gareev <gareevroman@gmail.com>
7185
7186 * graphite-isl-ast-to-gimple.c:
7187 (translate_isl_ast_node_block): New function.
7188 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
7189
7190 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
7191 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
7192
7193 2014-07-23 Roman Gareev <gareevroman@gmail.com>
7194
7195 * graphite-isl-ast-to-gimple.c:
7196 (get_max_schedule_dimensions): New function.
7197 (extend_schedule): Likewise.
7198 (generate_isl_schedule): Add calling of extend_schedule and
7199 get_max_schedule_dimensions.
7200
7201 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7202
7203 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
7204 (case UNSPEC): Handle UNSPEC_RBIT.
7205
7206 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7207
7208 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
7209 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
7210
7211 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7212
7213 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
7214
7215 2014-07-22 Roman Gareev <gareevroman@gmail.com>
7216
7217 * graphite-isl-ast-to-gimple.c:
7218 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
7219 (ivs_params_clear):
7220 (build_iv_mapping): New function.
7221 (translate_isl_ast_node_user): Likewise.
7222 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
7223
7224 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
7225 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
7226 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
7227
7228 2014-07-21 Bin Cheng <bin.cheng@arm.com>
7229
7230 PR target/55701
7231 * config/arm/arm.md (setmem): New pattern.
7232 * config/arm/arm-protos.h (struct tune_params): New fields.
7233 (arm_gen_setmem): New prototype.
7234 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
7235 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7236 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7237 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
7238 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
7239 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
7240 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
7241 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7242 (arm_const_inline_cost): New function.
7243 (arm_block_set_max_insns): New function.
7244 (arm_block_set_non_vect_profit_p): New function.
7245 (arm_block_set_vect_profit_p): New function.
7246 (arm_block_set_unaligned_vect): New function.
7247 (arm_block_set_aligned_vect): New function.
7248 (arm_block_set_unaligned_non_vect): New function.
7249 (arm_block_set_aligned_non_vect): New function.
7250 (arm_block_set_vect, arm_gen_setmem): New functions.
7251
7252 2014-07-21 Bin Cheng <bin.cheng@arm.com>
7253
7254 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
7255
7256 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
7257
7258 PR target/61855
7259 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
7260 out of #ifdef __OPTIMIZE__.
7261
7262 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
7263
7264 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
7265 different trapping status if -fnon-call-exceptions is enabled.
7266
7267 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
7268
7269 * expr.c (store_field): Handle VOIDmode for calls that return values
7270 in multiple locations.
7271
7272 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7273
7274 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
7275 (altivec_vsldoi_<mode>): Likewise.
7276
7277 2014-07-20 Roman Gareev <gareevroman@gmail.com>
7278
7279 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
7280 to the number of characters in the line.
7281
7282 2014-07-20 Roman Gareev <gareevroman@gmail.com>
7283
7284 * graphite-isl-ast-to-gimple.c: Add using of
7285 build_nonstandard_integer_type instead of int128_integer_type_node.
7286
7287 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
7288
7289 * toplev.c (output_stack_usage): Adjust the location of the warning.
7290
7291 2014-07-19 Daniel Cederman <cederman@gaisler.com>
7292
7293 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
7294 (*membar_storeload): Disable for LEON3.
7295
7296 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7297
7298 PR rtl-optimization/61461
7299 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
7300
7301 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
7302
7303 PR target/61794
7304 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
7305 Fix instruction constraint.
7306 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
7307
7308 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
7309
7310 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
7311
7312 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
7313
7314 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
7315 GNU coding standards.
7316 (nds32_register_move_cost): Likewise.
7317 (nds32_memory_move_cost): Likewise.
7318 (nds32_address_cost): Likewise.
7319
7320 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7321
7322 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
7323
7324 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
7325
7326 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
7327 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
7328 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
7329 (HAVE_sync_compare_and_swapqi): Define.
7330 (HAVE_sync_compare_and_swaphi): Likewise.
7331 (HAVE_sync_compare_and_swapsi): Likewise.
7332
7333 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
7334
7335 * config/mips/p5600.md: Add missing cpu tests.
7336
7337 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7338
7339 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
7340 (vmla_f64): Likewise.
7341 (vfms_f64): Likewise.
7342 (vmls_f64): Likewise.
7343
7344 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7345
7346 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
7347 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
7348
7349 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7350
7351 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
7352 (vmlal_high_lane_s32): Likewise.
7353 (vmlal_high_lane_u16): Likewise.
7354 (vmlal_high_lane_u32): Likewise.
7355 (vmlsl_high_lane_s16): Likewise.
7356 (vmlsl_high_lane_s32): Likewise.
7357 (vmlsl_high_lane_u16): Likewise.
7358 (vmlsl_high_lane_u32): Likewise.
7359
7360 2014-07-17 Terry Guo <terry.guo@arm.com>
7361
7362 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
7363 (alus_reg): Renamed to alus_sreg.
7364 * config/arm/arm-fixed.md: Change type of non-dsp instructions
7365 from alu_reg to alu_sreg. Change type of dsp instructions from
7366 alu_reg to alu_dsp_reg.
7367 * config/arm/thumb1.md: Likewise.
7368 * config/arm/thumb2.md: Likewise.
7369 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
7370 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
7371 with alu_sreg and alus_sreg.
7372 * config/arm/arm1026ejs.md (alu_op): Likewise.
7373 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
7374 * config/arm/arm926ejs.md (9_alu_op): Likewise.
7375 * config/arm/fa526.md (526_alu_op): Likewise.
7376 * config/arm/fa606te.md (606te_alu_op): Likewise.
7377 * config/arm/fa626te.md (626te_alu_op): Likewise.
7378 * config/arm/fa726te.md (726te_alu_op): Likewise.
7379 * config/arm/fmp626.md (mp626_alu_op): Likewise.
7380 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
7381 alu_sreg, alu_dsp_reg and alus_sreg.
7382 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
7383 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
7384 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
7385 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
7386 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
7387 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
7388 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
7389 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
7390 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
7391 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
7392 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
7393 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
7394 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
7395 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
7396 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
7397 alus_reg to alus_sreg.
7398
7399 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
7400
7401 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
7402 infinity format.
7403
7404 2014-07-17 Richard Biener <rguenther@suse.de>
7405
7406 PR rtl-optimization/61801
7407 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
7408 don't set reg_pending_barrier if it appears in a debug-insn.
7409
7410 2014-07-16 DJ Delorie <dj@redhat.com>
7411
7412 * config/rx/rx.c (rx_option_override): Fix alignment values.
7413 (rx_align_for_label): Likewise.
7414
7415 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
7416
7417 PR target/61737.
7418 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
7419 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
7420 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
7421 functions.
7422 (cris_print_index, cris_print_operand, cris_constant_index_p)
7423 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
7424 (cris_address_cost): Ditto last CONSTANT_P.
7425 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
7426 callers changed. Yield cris_offsettable_symbol for non-PIC
7427 constant symbolic expressions including labels. Yield cris_unspec
7428 for all unspecs.
7429 (cris_expand_pic_call_address): New parameter MARKERP. Set its
7430 target to pic_offset_table_rtx for calls that will likely go
7431 through PLT, const0_rtx when they can't. All callers changed.
7432 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
7433 symbolic expressions to be PICified. Remove second, redundant,
7434 assert on can_create_pseudo_p returning non-zero. Use
7435 replace_equiv_address_nv, not replace_equiv_address, for final
7436 operand update.
7437 * config/cris/cris.md ("movsi"): Move variable t to pattern
7438 toplevel. Adjust assert for new cris_symbol_type member. Use
7439 CONSTANT_P instead of CONSTANT_ADDRESS_P.
7440 ("*movsi_internal") <case 9>: Make check for valid unspec operands
7441 for lapc stricter.
7442 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
7443 ("call", "call_value"): Use second incoming operand as a marker
7444 for pic-offset-table-register being used.
7445 ("*expanded_call_non_v32", "*expanded_call_v32")
7446 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
7447 second incoming operand to CALL, match cris_call_type_marker.
7448 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
7449 ("*expanded_call_side"): Ditto. Fix typo in comment.
7450 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
7451 CONSTANT_P.
7452 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
7453 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
7454 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
7455 users changed. Add members cris_offsettable_symbol and cris_unspec.
7456 (cris_symbol_type): Rename from cris_pic_symbol_type.
7457 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
7458 just CONSTANT_P.
7459 * config/cris/cris-protos.h (cris_symbol_type_of,
7460 cris_expand_pic_call_address): Adjust prototypes.
7461 (cris_legitimate_constant_p): New prototype.
7462
7463 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
7464 an existing tmake_file. Don't add t-slibgcc and t-linux.
7465
7466 2014-07-17 Jason Merrill <jason@redhat.com>
7467
7468 PR c++/61623
7469 * symtab.c (symtab_remove_from_same_comdat_group): Also
7470 set_comdat_group to NULL_TREE.
7471 (verify_symtab): Fix diagnostic.
7472
7473 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
7474
7475 PR target/61662
7476 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
7477
7478 2014-07-16 Dodji Seketeli <dodji@redhat.com>
7479
7480 Support location tracking for built-in macro tokens
7481 * input.h (is_location_from_builtin_token): New function declaration.
7482 * input.c (is_location_from_builtin_token): New function definition.
7483 * toplev.c (general_init): Tell libcpp what the pre-defined
7484 spelling location for built-in tokens is.
7485
7486 2014-07-16 Jakub Jelinek <jakub@redhat.com>
7487
7488 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
7489 on the FUNCTION_DECL.
7490
7491 2014-07-16 Richard Biener <rguenther@suse.de>
7492
7493 PR other/61782
7494 * doc/extend.texi (always_inline): Clarify.
7495
7496 2014-07-15 Eric Christopher <echristo@gmail.com>
7497
7498 * doc/invoke.texi (Link Options): Document -z option.
7499
7500 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
7501
7502 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
7503 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
7504
7505 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
7506
7507 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
7508
7509 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
7510
7511 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
7512 varpool_assemble_decl.
7513 * varpool.c (varpool_assemble_decl): Assert that node->definition is
7514 true.
7515
7516 2014-07-15 Michael Matz <matz@suse.de>
7517
7518 PR rtl-optimization/61772
7519 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
7520
7521 2014-07-15 Richard Biener <rguenther@suse.de>
7522
7523 * opts.c (default_options_table): Disable bit-ccp at -Og.
7524
7525 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
7526
7527 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
7528
7529 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
7530
7531 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
7532 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
7533 call langhook for unknown declaration.
7534 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
7535 * tree.h (DECL_ARGUMENTS): Update.
7536 * print-tree.c (print_node): Update.
7537 * tree-core.h (tree_decl_non_common): Remove arguments.
7538 (tree_function_decl): Add arguments.
7539
7540 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
7541
7542 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
7543
7544 2014-07-14 Richard Biener <rguenther@suse.de>
7545
7546 PR tree-optimization/61779
7547 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
7548 simplifying a condition.
7549
7550 2014-07-14 Richard Biener <rguenther@suse.de>
7551
7552 * builtins.c (c_strlen): Make only_value == 2 really only
7553 affect warning generation.
7554
7555 2014-07-14 Richard Biener <rguenther@suse.de>
7556
7557 PR tree-optimization/61757
7558 PR tree-optimization/61783
7559 PR tree-optimization/61787
7560 * tree-ssa-dom.c (record_equality): Revert canonicalization
7561 change and add comment.
7562 (propagate_rhs_into_lhs): Revert previous fix, removing
7563 loop depth restriction again.
7564
7565 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7566
7567 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
7568 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
7569 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
7570 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
7571 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
7572 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
7573 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
7574
7575 2014-07-14 Richard Biener <rguenther@suse.de>
7576
7577 * cgraph.h (decl_in_symtab_p): Make inline.
7578
7579 2014-07-14 Jakub Jelinek <jakub@redhat.com>
7580
7581 PR middle-end/61294
7582 * doc/invoke.texi (-Wmemset-transposed-args): Document.
7583
7584 PR target/61656
7585 * config/i386/i386.c (classify_argument): Don't merge classes above
7586 number of words.
7587
7588 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
7589
7590 * cgraph.h (symtab_node): Add nonzero_address.
7591 (decl_in_symtab_p): Break out from ...
7592 (symtab_get_node): ... here.
7593 * fold-const.c: Include cgraph.h
7594 (tree_single_nonzero_warnv_p): Use symtab to determine
7595 if symbol is non-zero.
7596 * symtab.c (symtab_node::nonzero_address): New method.
7597
7598 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
7599
7600 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
7601 forgotten in previous commit.
7602
7603 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
7604
7605 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
7606 on builtin types.
7607 * ipa-devirt.c: Include stor-layout.h and intl.h
7608 (odr_subtypes_equivalent_p): New function.
7609 (warn_odr): New function.
7610 (warn_type_mismatch): New function.
7611 (odr_types_equivalent_p): New function.
7612 (add_type_duplicate): Use it.
7613 * common.opt (Wodr): New flag.
7614 * doc/invoke.texi (Wodr): Document new warning.
7615
7616 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
7617
7618 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
7619 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
7620 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
7621 (varpool_get_constructor): Push CTORS_IN timevar.
7622 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
7623
7624 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
7625
7626 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
7627 Remove VOID_FTYPE_PUSHORT.
7628 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
7629 Change code to USHORT_FTYPE_VOID.
7630 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
7631 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
7632 (ix86_atomic_assign_expand_fenv): Update for
7633 __builtin_ia32_fnstsw changes.
7634 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
7635 (fnstsw): Change operand 0 to nonimmediate operand.
7636
7637 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
7638
7639 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
7640 (varpool_get_constructor): New function.
7641 (varpool_ctor_useable_for_folding_p): Break out from ...
7642 (ctor_for_folding): ... here; use varpool_get_constructor.
7643 (varpool_assemble_decl): Likewise.
7644 * lto-streamer.h (struct output_block): Turn cgraph_node
7645 to symbol filed.
7646 (lto_input_variable_constructor): Declare.
7647 * ipa-visibility.c (function_and_variable_visibility): Use
7648 varpool_get_constructor.
7649 * cgraph.h (varpool_get_constructor): Declare.
7650 (varpool_ctor_useable_for_folding_p): New function.
7651 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
7652 parameter; return error_mark_node for non-trivial constructors.
7653 (lto_write_tree_1, DFS_write_tree): Update use of
7654 get_symbol_initial_value.
7655 (output_function): Update initialization of symbol.
7656 (output_constructor): New function.
7657 (copy_function): Rename to ..
7658 (copy_function_or_variable): ... this one; handle vars too.
7659 (lto_output): Output variable sections.
7660 * lto-streamer-in.c (input_constructor): New function.
7661 (lto_read_body): Rename from ...
7662 (lto_read_body_or_constructor): ... this one; handle vars too.
7663 (lto_input_variable_constructor): New function.
7664 * ipa-prop.c (ipa_prop_write_jump_functions,
7665 ipa_prop_write_all_agg_replacement): Update.
7666 * lto-cgraph.c (compute_ltrans_boundary): Use it.
7667 (output_cgraph_opt_summary): Set symbol to NULL.
7668
7669 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
7670
7671 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
7672 non-polymorphic types.
7673 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
7674 * ipa-devirt.c (types_same_for_odr): Do not explode when one
7675 of types is not polymorphic.
7676
7677 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
7678
7679 * lra-constraints.c (remove_inheritance_pseudos): Process
7680 destination pseudo too.
7681
7682 2014-07-11 Rong Xu <xur@google.com>
7683
7684 * gcov-tool.c (gcov_output_files): Fix build error introduced in
7685 commit r212448.
7686
7687 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7688
7689 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
7690 * config/avr/avr-devices.c (AVR_MCU): Same.
7691 (avr_mcu_types): add text start value to end of device list.
7692 * config/avr/avr-mcus.def: Add text section start for all devices.
7693 (ata5782): Add new avr5 device.
7694 (ata5831): Same.
7695 * config/avr/avr-tables.opt: Regenerate.
7696 * config/avr/avr.h: Add declaration for text section start handler.
7697 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
7698 SPEC functions.
7699 (LINK_SPEC): Include text section start handler to linker spec.
7700 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
7701 pass -Ttext option to linker if the text section start for the device
7702 is not zero.
7703 * config/avr/t-multilib: Regenerate.
7704 * doc/avr-mmcu.texi: Regenerate.
7705
7706 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
7707
7708 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
7709 * config/rs6000/aix52.h (LINK_SPEC): Same.
7710 * config/rs6000/aix53.h (LINK_SPEC): Same.
7711 * config/rs6000/aix61.h (LINK_SPEC): Same.
7712 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
7713
7714 2014-07-11 Roman Gareev <gareevroman@gmail.com>
7715
7716 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
7717 (graphite_verify): New function.
7718 (ivs_params_clear): New function.
7719 (gcc_expression_from_isl_ast_expr_id): New function.
7720 (gcc_expression_from_isl_expr_int): New function.
7721 (binary_op_to_tree): New function.
7722 (ternary_op_to_tree): New function.
7723 (unary_op_to_tree): New function.
7724 (nary_op_to_tree): New function.
7725 (gcc_expression_from_isl_expr_op): New function.
7726 (gcc_expression_from_isl_expression): New function.
7727 (graphite_create_new_loop): New function.
7728 (translate_isl_ast_for_loop): New function.
7729 (get_upper_bound): New function.
7730 (graphite_create_new_loop_guard): New function.
7731 (translate_isl_ast_node_for): New function.
7732 (translate_isl_ast): New function.
7733 (add_parameters_to_ivs_params): New function.
7734 (scop_to_isl_ast): New parameter ip.
7735 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
7736
7737 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
7738
7739 * config/xtensa/predicates.md (call expander): Update for
7740 DECL_SECTION_NAME being string.
7741
7742 2014-07-11 Richard Biener <rguenther@suse.de>
7743
7744 PR middle-end/61473
7745 * builtins.c (fold_builtin_memory_op): Inline memory moves that
7746 can be implemented with a single load followed by a single store.
7747 (c_strlen): Only warn when only_value is not 2.
7748
7749 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
7750
7751 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
7752
7753 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
7754
7755 PR target/61561
7756 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
7757 (*movhi_bytes): Likewise.
7758 (*arm_movqi_insn): Likewise.
7759
7760 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
7761
7762 PR target/56858
7763 * config/alpha/alpha.c: Include tree-pass.h, context.h
7764 and pass_manager.h.
7765 (pass_data_handle_trap_shadows): New pass.
7766 (pass_handle_trap_shadows::gate): New pass gate function.
7767 (make_pass_handle_trap_shadows): New function.
7768 (rest_of_handle_trap_shadows): Ditto.
7769
7770 (alpha_align_insns_1): Rename from alpha_align_insns.
7771 (pass_data_align_insns): New pass.
7772 (pass_align_insns::gate): New pass gate function.
7773 (make_pass_aling_insns): New function.
7774 (rest_of_align_insns): Ditto.
7775 (alpha_align_insns): Ditto.
7776
7777 (alpha_option_override): Declare handle_trap_shadows info
7778 and align_insns_info. Register handle_trap_shadows and align_insns
7779 passes here.
7780 (alpha_reorg): Do not call alpha_trap_shadows and
7781 alpha_align_insn from here.
7782
7783 (alpha_pad_function_end): Do not skip BARRIERs.
7784
7785 2014-07-10 Rong Xu <xur@google.com>
7786
7787 Add gcov-tool: an offline gcda profile processing tool support.
7788 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
7789 (gcov_is_error): Ditto.
7790 (gcov_read_string): Ditto.
7791 (gcov_read_sync): Ditto.
7792 * gcov-io.h: Move counter defines to gcov-counter.def.
7793 * gcov-dump.c (tag_counters): Use gcov-counter.def.
7794 * coverage.c: Ditto.
7795 * gcov-tool.c: Offline gcda profile processing tool.
7796 (unlink_gcda_file): Remove one gcda file.
7797 (unlink_profile_dir): Remove gcda files from the profile path.
7798 (gcov_output_files): Output gcda files to an output dir.
7799 (profile_merge): Merge two profiles in directory.
7800 (print_merge_usage_message): Print merge usage.
7801 (merge_usage): Print merge usage and exit.
7802 (do_merge): Driver for profile merge sub-command.
7803 (profile_rewrite): Rewrite profile.
7804 (print_rewrite_usage_message): Print rewrite usage.
7805 (rewrite_usage): Print rewrite usage and exit.
7806 (do_rewrite): Driver for profile rewrite sub-command.
7807 (print_usage): Print gcov-info usage and exit.
7808 (print_version): Print gcov-info version.
7809 (process_args): Process arguments.
7810 (main): Main routine for gcov-tool.
7811 * Makefile.in: Build and install gcov-tool.
7812 * gcov-counter.def: New file split from gcov-io.h.
7813 * doc/gcc.texi: Include gcov-tool.texi.
7814 * doc/gcov-tool.texi: Document for gcov-tool.
7815
7816 2014-07-10 Richard Biener <rguenther@suse.de>
7817
7818 PR tree-optimization/61757
7819 * tree-ssa-dom.c (loop_depth_of_name): Restore.
7820 (propagate_rhs_into_lhs): Revert part of last change.
7821
7822 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
7823
7824 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
7825 FUNCTION_DECLs.
7826
7827 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
7828
7829 PR middle-end/53590
7830 * function.c (allocate_struct_function): Revert r188667 change.
7831
7832 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
7833
7834 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
7835
7836 * doc/install.texi: Remove links to defunct package providers for
7837 Solaris.
7838
7839 2014-07-09 Tom de Vries <tom@codesourcery.com>
7840
7841 * final.c (get_call_fndecl): Declare.
7842 (self_recursive_call_p): New function.
7843 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
7844
7845 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
7846
7847 * ipa-devirt.c (record_node): Walk through aliases.
7848
7849 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
7850
7851 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
7852
7853 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
7854
7855 Revert:
7856 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
7857
7858 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
7859
7860 * ipa-visibility.c (function_and_variable_visibility): Remove
7861 temporary hack disabling local aliases on AIX.
7862
7863 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
7864
7865 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
7866 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
7867
7868 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
7869
7870 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
7871 * rs6000/rs6000.c: Inline output of .set instruction.
7872 (declare_alias_data): New struct.
7873 (rs6000_declare_alias): New function.
7874 (rs6000_xcoff_declare_function_name): Use it.
7875 (rs6000_xcoff_declare_object_name): New function.
7876 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
7877 (ASM_OUTPUT_DEF): Turn to empty definition.
7878
7879 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
7880
7881 PR bootstrap/61679
7882 * hash-table.h: use hash_table::value_type instead of
7883 Descriptor::value_type in the return types of several methods.
7884
7885 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
7886
7887 * tree-pass.h (pass_data): Remove has_execute member.
7888 * passes.c (execute_one_pass): Don't check pass->has_execute.
7889 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
7890 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
7891 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
7892 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
7893 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
7894 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
7895 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
7896 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
7897 gimple-low.c, gimple-ssa-isolate-paths.c,
7898 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
7899 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
7900 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
7901 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
7902 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
7903 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
7904 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
7905 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
7906 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
7907 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
7908 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
7909 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
7910 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
7911 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
7912 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
7913 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
7914 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
7915 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
7916 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
7917 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
7918 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
7919 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
7920 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
7921 web.c: Remove initializer for pass_data::has_execute.
7922
7923 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
7924
7925 * graphite-htab.h: Use hash_map instead of hash_table.
7926 * graphite-clast-to-gimple.c: Adjust.
7927 * passes.c: Use hash_map instead of hash_table.
7928 * sese.c: Likewise.
7929 * sese.h: Remove now unused code.
7930
7931 2014-07-08 Sriraman Tallam <tmsriram@google.com>
7932
7933 PR target/61599
7934 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
7935 than zero.
7936
7937 2014-07-08 Jakub Jelinek <jakub@redhat.com>
7938
7939 PR rtl-optimization/61673
7940 * combine.c (simplify_comparison): Test just mode's sign bit
7941 in tmode rather than the sign bit and any bits above it.
7942
7943 2014-07-08 Roman Gareev <gareevroman@gmail.com>
7944
7945 * graphite-isl-ast-to-gimple.c (generate_isl_context):
7946 Add __isl_give to the declaration.
7947 (generate_isl_schedule): Likewise.
7948 (scop_to_isl_ast): Likewise.
7949
7950 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7951
7952 * config/arm/arm.c (cortexa5_extra_costs): New table.
7953 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
7954
7955 2014-07-08 Jakub Jelinek <jakub@redhat.com>
7956
7957 PR tree-optimization/61725
7958 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
7959 range, use range_includes_zerop_p instead of integer_zerop on
7960 vr0->min, only use log2 of max if min is not negative.
7961
7962 2014-07-08 Richard Biener <rguenther@suse.de>
7963
7964 * tree-ssa-dom.h (loop_depth_of_name): Remove.
7965 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
7966 restriction on loop depth difference.
7967 (record_equality): Likewise.
7968 (propagate_rhs_into_lhs): Likewise. Simplify condition.
7969 (loop_depth_of_name): Remove.
7970 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
7971 restriction on loop depth difference.
7972 (init_copy_prop): Likewise.
7973
7974 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
7975
7976 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
7977 parameter.
7978 (walk_aliased_vdefs): Likewise.
7979 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
7980 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
7981 (detect_type_change_from_memory_writes): Check if entry was reached.
7982
7983 2014-07-08 Richard Biener <rguenther@suse.de>
7984
7985 PR tree-optimization/61681
7986 * tree-ssa-structalias.c (find_what_var_points_to): Expand
7987 NONLOCAL inside ESCAPED.
7988
7989 2014-07-08 Richard Biener <rguenther@suse.de>
7990
7991 PR tree-optimization/61680
7992 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7993 Handle properly all read-write dependences with group accesses.
7994
7995 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
7996
7997 PR tree-optimization/61576
7998 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
7999 block containing reduction statement is predecessor of phi basi block.
8000
8001 2014-07-08 Marek Polacek <polacek@redhat.com>
8002
8003 PR c/60226
8004 * fold-const.c (round_up_loc): Change the parameter type.
8005 Remove assert.
8006 * fold-const.h (round_up_loc): Adjust declaration.
8007 * stor-layout.c (finalize_record_size): Check for too large types.
8008
8009 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
8010
8011 * symtab.c: Include calls.h.
8012 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
8013
8014 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
8015
8016 * config/rs6000/rs6000.c (output_vec_const_move): Handle
8017 little-endian code generation.
8018 * config/rs6000/spe.md (spe_evmergehi): Rename to...
8019 (vec_perm00_v2si): ... this. Handle little-endian code generation.
8020 (spe_evmergehilo): Rename to...
8021 (vec_perm01_v2si): ... this. Handle little-endian code generation.
8022 (spe_evmergelo): Rename to...
8023 (vec_perm11_v2si): ... this. Handle little-endian code generation.
8024 (spe_evmergelohi): Rename to...
8025 (vec_perm10_v2si): ... this. Handle little-endian code generation.
8026 (spe_evmergehi, spe_evmergehilo): New expanders.
8027 (spe_evmergelo, spe_evmergelohi): Likewise.
8028 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
8029 (*frob_tf_ti): Likewise.
8030 (*frob_<mode>_di_2): Likewise.
8031 (*frob_tf_di_8_2): Likewise.
8032 (*frob_di_<mode>): Likewise.
8033 (*frob_ti_tf): Likewise.
8034 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
8035 (*frob_ti_<mode>_8_2): Likewise.
8036 (*frob_ti_tf_2): Likewise.
8037 (mov_si<mode>_e500_subreg0): Rename to...
8038 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
8039 endianness only.
8040 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
8041 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
8042 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
8043 the big endianness only.
8044 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
8045 (*mov_si<mode>_e500_subreg0_2): Rename to...
8046 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
8047 big big endianness only.
8048 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
8049 (*mov_si<mode>_e500_subreg4): Rename to...
8050 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
8051 endianness only.
8052 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
8053 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
8054 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
8055 the big endianness only.
8056 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
8057 pattern.
8058 (*mov_si<mode>_e500_subreg4_2): Rename to...
8059 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
8060 endianness only.
8061 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
8062 (*mov_sitf_e500_subreg8): Rename to...
8063 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
8064 endianness only.
8065 (*mov_sitf_e500_subreg8_le): New instruction pattern.
8066 (*mov_sitf_e500_subreg8_2): Rename to...
8067 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
8068 endianness only.
8069 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
8070 (*mov_sitf_e500_subreg12): Rename to...
8071 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
8072 endianness only.
8073 (*mov_sitf_e500_subreg12_le): New instruction pattern.
8074 (*mov_sitf_e500_subreg12_2): Rename to...
8075 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
8076 endianness only.
8077 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
8078
8079 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
8080
8081 * asan.c (instrument_strlen_call): Do not instrument first byte
8082 in strlen if already instrumented.
8083
8084 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8085
8086 * config/arm/arm.opt (mwords-little-endian): Delete.
8087 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
8088 of TARGET_LITTLE_WORDS.
8089 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
8090 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
8091 warning.
8092 * doc/invoke.texi: Remove references to -mwords-little-endian.
8093
8094 2014-07-07 Jakub Jelinek <jakub@redhat.com>
8095
8096 * expmed.c (struct init_expmed_rtl): Change all fields but
8097 pow2 and cint from struct rtx_def to rtx.
8098 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
8099 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
8100 at the end again.
8101
8102 2014-07-06 Marek Polacek <polacek@redhat.com>
8103
8104 PR c/6940
8105 * doc/invoke.texi: Document -Wsizeof-array-argument.
8106
8107 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
8108
8109 * wide-int.h (wide_int_storage): Change declaration from struct
8110 to class.
8111
8112 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
8113
8114 * cgraph.c (cgraph_create_indirect_edge): Update call of
8115 get_polymorphic_call_info.
8116 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
8117 (possible_polymorphic_call_targets): Add parameter call.
8118 (decl_maybe_in_construction_p): New predicate.
8119 (get_polymorphic_call_info): Add parameter call;
8120 use decl_maybe_in_construction_p.
8121 * gimple-fold.c (fold_gimple_assign): Update use of
8122 possible_polymorphic_call_targets.
8123 (gimple_fold_call): Likewise.
8124 * ipa-prop.c: Inlcude calls.h
8125 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
8126 (param_type_may_change_p): New predicate.
8127 (detect_type_change_from_memory_writes): Break out from ...
8128 (detect_type_change): ... this one; use param_type_may_change_p.
8129 (detect_type_change_ssa): Use param_type_may_change_p.
8130 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
8131
8132 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
8133
8134 PR target/49423
8135 * config/arm/arm-protos.h (arm_legitimate_address_p,
8136 arm_is_constant_pool_ref): Add prototypes.
8137 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
8138 (arm_is_constant_pool_ref) New function.
8139 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
8140 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
8141 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
8142 operand. Remove pool_range and neg_pool_range attributes.
8143 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
8144 pool_range and neg_pool_range attributes.
8145 * config/arm/constraints.md (Uh): New constraint.
8146 (Uq): Don't allow constant pool references.
8147
8148 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
8149
8150 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
8151 (move_lo_quad_internal_be_<mode>): Likewise.
8152 (move_lo_quad_<mode>): Convert to define_expand.
8153 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
8154 (aarch64_simd_move_hi_quad_be_<mode>): New.
8155 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
8156 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
8157 (aarch64_combinez_be<mode>): New.
8158 (aarch64_combine<mode>): Convert to define_expand.
8159 (aarch64_combine_internal<mode>): New.
8160 (aarch64_simd_combine<mode>): Remove bogus RTL description.
8161
8162 2014-07-04 Tom de Vries <tom@codesourcery.com>
8163
8164 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
8165 combination of earlyclobber and read/write modifiers.
8166
8167 2014-07-04 Tom de Vries <tom@codesourcery.com>
8168
8169 * config/aarch64/aarch64-simd.md
8170 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
8171
8172 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
8173
8174 PR target/61714
8175 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
8176
8177 2014-07-04 Jakub Jelinek <jakub@redhat.com>
8178
8179 PR middle-end/61654
8180 * cgraphunit.c (expand_thunk): Call free_dominance_info.
8181
8182 PR tree-optimization/61684
8183 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
8184 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
8185
8186 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8187 Kito Cheng <kito@0xlab.org>
8188 Monk Chiang <sh.chiang04@gmail.com>
8189
8190 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
8191 (nds32_symbol_load_store_p): Move to ...
8192 (nds32_fp_as_gp_check_available): Move to ...
8193 * config/nds32/nds32-fp-as-gp.c: ... here.
8194 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
8195 extern declaration.
8196
8197 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8198 Kito Cheng <kito@0xlab.org>
8199 Monk Chiang <sh.chiang04@gmail.com>
8200
8201 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
8202 (nds32_expand_store_multiple): Move to ...
8203 (nds32_expand_movmemqi): Move to ...
8204 * config/nds32/nds32-memory-manipulation.c: ... here.
8205
8206 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8207 Kito Cheng <kito@0xlab.org>
8208 Monk Chiang <sh.chiang04@gmail.com>
8209
8210 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
8211 (nds32_output_casesi_pc_relative): Move to ...
8212 (nds32_output_casesi): Move to ...
8213 (nds32_mem_format): Move to ...
8214 (nds32_output_16bit_store): Move to ...
8215 (nds32_output_16bit_load): Move to ...
8216 (nds32_output_32bit_store): Move to ...
8217 (nds32_output_32bit_load): Move to ...
8218 (nds32_output_32bit_load_s): Move to ...
8219 (nds32_output_stack_push): Move to ...
8220 (nds32_output_stack_pop): Move to ...
8221 * config/nds32/nds32-md-auxiliary.c: ... here.
8222
8223 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8224 Ling-Hua Tseng <uranus@tinlans.org>
8225
8226 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
8227 the purpose of this file.
8228
8229 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8230 Kito Cheng <kito@0xlab.org>
8231 Monk Chiang <sh.chiang04@gmail.com>
8232
8233 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
8234 (nds32_address_cost): Move implementation to ...
8235 * config/nds32/nds32-cost.c: ... here.
8236 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
8237 (nds32_address_cost_impl): Declare.
8238
8239 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8240 Kito Cheng <kito@0xlab.org>
8241 Monk Chiang <sh.chiang04@gmail.com>
8242
8243 * config/nds32/nds32.c
8244 (nds32_consecutive_registers_load_store_p): Move to ...
8245 (nds32_valid_multiple_load_store): Move to ...
8246 (nds32_valid_stack_push_pop): Move to ...
8247 (nds32_can_use_bclr_p): Move to ...
8248 (nds32_can_use_bset_p): Move to ...
8249 (nds32_can_use_btgl_p): Move to ...
8250 (nds32_can_use_bitci_p): Move to ...
8251 * config/nds32/nds32-predicates.c: ... here.
8252
8253 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8254 Kito Cheng <kito@0xlab.org>
8255 Monk Chiang <sh.chiang04@gmail.com>
8256
8257 * config/nds32/nds32.c
8258 (nds32_expand_builtin_null_ftype_reg): Move to ...
8259 (nds32_expand_builtin_reg_ftype_imm): Move to ...
8260 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
8261 (nds32_init_builtins): Move implementation to ...
8262 (nds32_expand_builtin): Move implementation to ...
8263 * config/nds32/nds32-intrinsic.c: ... here.
8264 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
8265 (nds32_expand_builtin_impl): Declare.
8266
8267 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8268 Kito Cheng <kito@0xlab.org>
8269 Monk Chiang <sh.chiang04@gmail.com>
8270
8271 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
8272 (nds32_emit_section_tail_template): Move to ...
8273 (nds32_emit_isr_jmptbl_section): Move to ...
8274 (nds32_emit_isr_vector_section): Move to ...
8275 (nds32_emit_isr_reset_conten): Move to ...
8276 (nds32_check_isr_attrs_conflict): Move to ...
8277 (nds32_construct_isr_vectors_information): Move to ...
8278 (nds32_asm_file_start): Move implementation to ...
8279 (nds32_asm_file_end): Move implementation to ...
8280 * config/nds32/nds32-isr.c: ... here.
8281 * config/nds32/nds32-protos.h
8282 (nds32_check_isr_attrs_conflict): Declare.
8283 (nds32_construct_isr_vectors_information): Declare.
8284 (nds32_asm_file_start_for_isr): Declare.
8285 (nds32_asm_file_end_for_isr): Declare.
8286
8287 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
8288 Kito Cheng <kito@0xlab.org>
8289 Monk Chiang <sh.chiang04@gmail.com>
8290
8291 * config.gcc (nds32*): Add new modules to extra_objs.
8292 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
8293 (nds32be-*-*): Likewise.
8294 * config/nds32/nds32-cost.c: New file.
8295 * config/nds32/nds32-fp-as-gp.c: New file.
8296 * config/nds32/nds32-intrinsic.c: New file.
8297 * config/nds32/nds32-isr.c: New file.
8298 * config/nds32/nds32-md-auxiliary.c: New file.
8299 * config/nds32/nds32-memory-manipulation.c: New file.
8300 * config/nds32/nds32-pipelines-auxiliary.c: New file.
8301 * config/nds32/nds32-predicates.c: New file.
8302 * config/nds32/t-nds32: New file.
8303
8304 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8305
8306 PR tree-optimization/61682
8307 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
8308 using cases and when one of the operands is equal to 1.
8309
8310 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
8311
8312 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
8313 ashr<mode>3): Correct mode of operands[2].
8314 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
8315 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
8316 Correct mode of operands[2]. Fix split condition.
8317
8318 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
8319
8320 * arm.md (arch): Add armv6_or_vfpv3.
8321 (arch_enabled): Add test for the above.
8322 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
8323 on VFP9.
8324 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
8325
8326 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8327
8328 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
8329 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
8330 HWI 1 and negate the unsigned value.
8331 * expmed.c (expand_sdiv_pow2): For modes wider than word always
8332 use AND instead of shift.
8333 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
8334
8335 2014-07-03 Marek Polacek <polacek@redhat.com>
8336
8337 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
8338 (-fsanitize=float-divide-by-zero): Move to the table with
8339 -fsanitize=undefined suboptions.
8340 (-fsanitize=float-cast-overflow): Likewise.
8341
8342 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
8343
8344 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
8345 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
8346 endianness.
8347
8348 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8349
8350 * loop-invariant.c (struct invariant): Add a new member: eqno;
8351 (find_identical_invariants): Update eqno;
8352 (create_new_invariant): Init eqno;
8353 (get_inv_cost): Compute comp_cost with eqno;
8354
8355 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
8356
8357 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
8358 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
8359 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
8360 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
8361 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
8362
8363 2014-07-02 Christian Bruel <christian.bruel@st.com>
8364
8365 PR target/29349
8366 PR target/53513
8367 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
8368 (make_preds_opaque): Delete.
8369 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
8370 (commit_mode_sets): New function.
8371 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
8372 Process all modes at once.
8373 * basic-block.h (pre_edge_lcm_avs): Declare.
8374 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
8375 Call clear_aux_for_edges. Fix comments.
8376 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
8377 (pre_edge_rev_lcm): Idem.
8378 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
8379 parameter.
8380 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
8381 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
8382 Idem.
8383 * config/i386/i386.c (x96_emit_mode_set): Idem.
8384 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
8385 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
8386 (fpscr_toggle) Disallow from delay slot.
8387 * target.def (emit_mode_set): Add prev_mode parameter.
8388 * doc/tm.texi: Regenerate.
8389
8390 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8391
8392 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
8393 variable i.
8394
8395 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
8396
8397 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
8398 vtable_pointer_value_to_vtable): Constify.
8399 (contains_polymorphic_type_p): Declare.
8400 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
8401 vtable_pointer_value_to_vtable): Constify.
8402 (contains_polymorphic_type_p): New predicate.
8403 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
8404 polymorphic types.
8405 (ipa_set_ancestor_jf): Likewise.
8406 (detect_type_change): Return false in easy cases.
8407 (compute_complex_assign_jump_func): Require type to contain
8408 polymorphic type.
8409 (compute_known_type_jump_func): Likewise.
8410
8411 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
8412
8413 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
8414 Remove.
8415 (type_in_anonymous_namespace_p): Constify argument.
8416 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
8417 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
8418 (main_odr_variant): New function.
8419 (hash_type_name): Make static; update assert; do not ICE on
8420 non-records.
8421 (types_same_for_odr): Bring here from tree.c; simplify and remove
8422 old structural comparing code that doesn't work for templates.
8423 (odr_hasher::equal): Update assert.
8424 (add_type_duplicate): Return true when bases should be computed;
8425 replace incomplete loader by complete; do not output duplicated
8426 warnings; do not ICE on non-records; set odr_violated flag.
8427 (get_odr_type): Be ready to replace incomplete type by complete
8428 one; work on ODR variants instead of main variants; reorder item
8429 in array so bases have still smaller indexes.
8430 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
8431 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
8432
8433 2014-07-01 Cary Coutant <ccoutant@google.com>
8434
8435 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
8436 lookup.
8437 (resolve_addr_in_expr): When replacing the rtx in a location list
8438 entry, get a new address table entry.
8439 (dwarf2out_finish): Call index_location_lists even if there are no
8440 addr_index_table entries yet.
8441
8442 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
8443
8444 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
8445 change for not being obvious.
8446
8447 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
8448
8449 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
8450 unused argument.
8451
8452 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8453
8454 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
8455 (vcagt_f64): Likewise.
8456 (vcale_f64): Likewise.
8457 (vcaled_f64): Likewise.
8458 (vcales_f32): Likewise.
8459 (vcalt_f64): Likewise.
8460 (vcaltd_f64): Likewise.
8461 (vcalts_f32): Likewise.
8462
8463 2014-07-01 Marek Polacek <polacek@redhat.com>
8464
8465 * doc/invoke.texi: Document -Wint-conversion.
8466
8467 2014-07-01 Marek Polacek <polacek@redhat.com>
8468
8469 PR c/58286
8470 * doc/invoke.texi: Document -Wincompatible-pointer-types.
8471
8472 2014-07-01 Martin Liska <mliska@suse.cz>
8473
8474 IPA REF alias refactoring
8475 * cgraph.h (iterate_direct_aliases): New function.
8476 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
8477 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
8478 FOR_EACH_ALIAS added.
8479 (cgraph_for_node_and_aliases): Likewise.
8480 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
8481 * ipa-inline.c (reset_edge_caches): Likewise.
8482 (update_caller_keys): Likewise.
8483 * trans-mem.c (ipa_tm_execute): Likewise.
8484 *varpool.c (varpool_analyze_node): Likewise.
8485 (varpool_for_node_and_aliases): Likewise.
8486 * ipa-ref.h (first_alias): New function.
8487 (last_alias): Likewise.
8488 (has_aliases_p): Likewise.
8489 * ipa-ref.c (ipa_ref::remove_reference): Removal function
8490 is sensitive to IPA_REF_ALIASes.
8491 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
8492 are put at the beginning of the list.
8493 (symtab_node::iterate_direct_aliases): New function.
8494
8495 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
8496
8497 Revert:
8498 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
8499 type is complete.
8500 (write_ts_type_common_tree_pointers): Do not stream fields not set
8501 for incomplete types; do not stream duplicated fields for variants;
8502 sanity check that variant and type match.
8503 (write_ts_type_non_common_tree_pointers): Likewise.
8504 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
8505 TYPE_SIZE whether type is complete.
8506 (lto_input_ts_type_common_tree_pointers): Do same changes as in
8507 write_ts_type_common_tree_pointers
8508 (lto_input_ts_type_non_common_tree_pointers): Likewise.
8509
8510 2014-06-30 Joseph Myers <joseph@codesourcery.com>
8511
8512 * var-tracking.c (add_stores): Return instead of asserting if old
8513 and new values for conditional store are the same.
8514
8515 2014-06-30 Richard Henderson <rth@redhat.com>
8516
8517 PR rtl-opt/61608
8518 PR target/39284
8519 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
8520 the cfg if there were any changes.
8521 * passes.def: Revert move of peephole2 after reorder_blocks;
8522 move duplicate_computed_gotos before peephole2.
8523
8524 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
8525
8526 * except.c (emit_note_eh_region_end): New helper function.
8527 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
8528 emit EH_REGION_END note.
8529 * jump.c (cleanup_barriers): Do not split a call and its
8530 corresponding CALL_ARG_LOCATION note.
8531
8532 2014-06-30 Jeff Law <law@redhat.com>
8533
8534 PR tree-optimization/61607
8535 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
8536 deeper into the SSA_NAME_VALUE chain.
8537
8538 2014-06-30 Marek Polacek <polacek@redhat.com>
8539
8540 * convert.c (convert_to_integer): Don't instrument conversions if the
8541 function has no_sanitize_undefined attribute.
8542 * ubsan.c: Don't run the ubsan pass if the function has
8543 no_sanitize_undefined attribute.
8544
8545 2014-06-30 Jakub Jelinek <jakub@redhat.com>
8546
8547 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
8548 -fsanitize=undefined suboptions.
8549
8550 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
8551
8552 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
8553 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
8554 against bigendian and adjust indices.
8555
8556 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
8557
8558 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
8559
8560 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
8561
8562 PR target/61633
8563 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
8564 Add alternative; make early clobber. Adjust both split patterns
8565 to use operand 0 as the working register.
8566
8567 2014-06-30 Jakub Jelinek <jakub@redhat.com>
8568
8569 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
8570 as ira_object_id_map might be NULL, or 1.
8571
8572 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8573
8574 * loop-invariant.c (get_inv_cost): Handle register class.
8575 (gain_for_invariant): Check the register pressure of the inv
8576 and its overlapped register class, other than all.
8577
8578 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
8579
8580 * doc/invoke.texi (Optimize Options): Fix descriptions of
8581 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
8582
8583 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
8584
8585 * doc/extend.texi (Function Attributes): Update 'naked' attribute
8586 documentation.
8587
8588 2014-06-29 Tobias Grosser <tobias@grosser.es>
8589
8590 PR bootstrap/61650
8591 * graphite-isl-ast-to-gimple.c: Add missing guards.
8592
8593 2014-06-29 Roman Gareev <gareevroman@gmail.com>
8594
8595 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
8596 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
8597 * flag-types.h: Add new enum fgraphite_generator.
8598 * graphite-isl-ast-to-gimple.c: New.
8599 * graphite-isl-ast-to-gimple.h: New.
8600 * graphite.c (graphite_transform_loops): Add choice of Graphite
8601 code generator, which depends on flag_graphite_code_gen.
8602
8603 2014-06-29 Roman Gareev <gareevroman@gmail.com>
8604
8605 * graphite-dependences.c (subtract_commutative_associative_deps):
8606 Add NULL checking of the following variables: must_raw_no_source,
8607 may_raw_no_source, must_war_no_source, may_war_no_source,
8608 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
8609 must_war, may_war, must_waw, may_waw.
8610
8611 2014-06-29 Roman Gareev <gareevroman@gmail.com>
8612
8613 * graphite-clast-to-gimple.c: gloog is renamed to
8614 graphite_regenerate_ast_cloog. gloog_error is renamed to
8615 graphite_regenerate_error.
8616 * graphite-clast-to-gimple.h: The definition of the struct
8617 bb_pbb_def is moved to graphite-htab.h.
8618 Add inclusion of the hash-table.h.
8619 * graphite-htab.h: The declaration of the function gloog is moved
8620 to graphite-clast-to-gimple.h and renamed to
8621 graphite_regenerate_ast_cloog.
8622 * graphite.c (graphite_transform_loops): gloog is renamed
8623 to graphite_regenerate_ast_cloog.
8624
8625 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
8626
8627 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
8628 type is complete.
8629 (write_ts_type_common_tree_pointers): Do not stream fields not set
8630 for incomplete types; do not stream duplicated fields for variants;
8631 sanity check that variant and type match.
8632 (write_ts_type_non_common_tree_pointers): Likewise.
8633 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
8634 TYPE_SIZE whether type is complete.
8635 (lto_input_ts_type_common_tree_pointers): Do same changes as in
8636 write_ts_type_common_tree_pointers
8637 (lto_input_ts_type_non_common_tree_pointers): Likewise.
8638
8639 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
8640
8641 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
8642
8643 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
8644
8645 * tree-inline.c (remap_type_1): Do not duplicate fields
8646 that are shared in between type and its main variant.
8647
8648 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
8649
8650 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
8651 of the type.
8652 (ipa_set_ancestor_jf) Likewise.
8653 (check_stmt_for_type_change): Check that we work on main variant.
8654 (detect_type_change): Look into main variant.
8655 (compute_known_type_jump_func): Check that main variant has BINFO.
8656
8657 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
8658
8659 * ipa-devirt.c (set_type_binfo): New function.
8660 (add_type_duplicate): Use it.
8661 (get_odr_type): Sanity check that binfos points to main variants.
8662 (get_class_context): Be sure the context's outer_type is main variant.
8663 (contains_type_p): Walk main variant.
8664 (get_polymorphic_call_info_for_decl): Set outer_type to be
8665 main variant.
8666 (get_polymorphic_call_info): Likewise.
8667 (possible_polymorphic_call_targets): Sanity check that we operate
8668 on main variant.
8669
8670 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
8671
8672 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
8673
8674 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8675
8676 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
8677 accidental change due to wide-int branch merge.
8678
8679 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8680
8681 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
8682 compressed debug support.
8683 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
8684 * configure: Regenerate.
8685 * config.in: Regenerate.
8686 * common.opt (compressed_debug_sections): New enum.
8687 (gz, gz=): New options.
8688 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
8689 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
8690 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
8691 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
8692 LINK_COMPRESS_DEBUG_SPEC.
8693 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
8694 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
8695 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
8696 (Debugging Options): Document -gz[=type].
8697
8698 2014-06-27 Martin Jambor <mjambor@suse.cz>
8699
8700 PR ipa/61160
8701 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
8702 args_to_skip, use those from node instead. Copy args_to_skip and
8703 combined_args_to_skip from node to the new thunk.
8704 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
8705 (cgraph_create_virtual_clone): Moved computation of
8706 combined_args_to_skip...
8707 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
8708
8709 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
8710
8711 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
8712 redundant diagnostic machinary.
8713
8714 2014-06-27 Richard Biener <rguenther@suse.de>
8715
8716 * tree-ssa-math-opts.c (bswap_replace): Fix
8717 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
8718
8719 2014-06-27 Martin Liska <mliska@suse.cz>
8720
8721 * gimple.h (gimple_location_safe): New function introduced.
8722 * cgraphunit.c (walk_polymorphic_call_targets): Usage
8723 of gimple_location_safe replaces gimple_location.
8724 (gimple_fold_call): Likewise.
8725 * ipa-devirt.c (ipa_devirt): Likewise.
8726 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8727 * ipa.c (walk_polymorphic_call_targets): Likewise.
8728 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
8729
8730 2014-06-27 Jakub Jelinek <jakub@redhat.com>
8731
8732 PR tree-optimization/57233
8733 PR tree-optimization/61299
8734 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
8735 functions.
8736 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
8737 would be lowered to scalar shifts, check if corresponding
8738 shifts and vector BIT_IOR_EXPR are supported and don't lower
8739 or lower just to narrower vector type in that case.
8740 * expmed.c (expand_shift_1): Fix up handling of vector
8741 shifts and rotates.
8742
8743 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
8744
8745 PR target/61586
8746 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
8747
8748 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
8749
8750 * doc/invoke.texi (-fsemantic-interposition): Document.
8751 * common.opt (fsemantic-interposition): New flag.
8752 * varasm.c (decl_replaceable_p): Use it.
8753
8754 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8755
8756 PR target/61542
8757 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
8758 extraction other than index 3.
8759
8760 2014-06-26 Teresa Johnson <tejohnson@google.com>
8761
8762 * doc/invoke.texi: Fix typo.
8763 * dumpfile.c: Add support for documented -fdump-* options
8764 optimized/missed/note/optall.
8765
8766 2014-06-26 Martin Jambor <mjambor@suse.cz>
8767
8768 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
8769 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
8770 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
8771 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
8772 * opts.c (default_options_optimization): Set
8773 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
8774 * doc/invoke.texi (allow-load-data-races)
8775 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
8776 (allow-store-data-races): Document the new default.
8777
8778 2014-06-26 Martin Jambor <mjambor@suse.cz>
8779
8780 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
8781 renamed to ipa_impossible_devirt_target. Fix typo.
8782 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
8783 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
8784 ipa_impossible_devirt_target.
8785
8786 2014-06-26 Richard Biener <rguenther@suse.de>
8787
8788 PR tree-optimization/61607
8789 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
8790 explaining why we restrict copies on loop depth.
8791 * tree-ssa-dom.c (cprop_operand): Remove restriction on
8792 on loop depth.
8793 (record_equivalences_from_phis): Instead add it here.
8794
8795 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
8796
8797 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
8798 (LTO_WRAPPER_OBJS): New variable.
8799 (lto-wrapper$(exeext)): Use it.
8800 * collect2.c: Include "collect-utils.h".
8801 (verbose, debug): Remove variables.
8802 (at_file_supplied): No longer static.
8803 (tool_name): New variable.
8804 (do_wait, fork_execute, maybe_unlink): Don't declare.
8805 (tool_cleanup): No longer static.
8806 (notice): Remove function.
8807 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
8808 fork_execute calls.
8809 (collect_wait, do_wait, collect_execute): Remove functions.
8810 (maybe_unlink): No longer static.
8811 * collect2.h (verbose, debug): Don't declare.
8812 (at_file_supplied): Declare.
8813 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
8814 changed.
8815 (collect_execute): Replace with implementation from collect2, plus a
8816 new arg use_atfile. All callers changed.
8817 (collect_wait): Replace with implementation from collect2.
8818 (maybe_unlink_file): Remove function.
8819 (fork_execute): Replace with implementation from collect2, plus a
8820 new arg use_atfile. All callers changed.
8821 (do_wait): Add call to utils_cleanup to the error path.
8822 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
8823 (tool_cleanup): Adjust declarations.
8824 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
8825 * tlink.c: Include "collect-utils.h".
8826 (tlink_execute): New arg use_atfile. All callers changed.
8827 (tlink_init, tlink_execute): Remove declarations.
8828
8829 * collect-utils.c (save_temps): New variable.
8830 (do_wait): Use it instead of debug. Use fatal_error.
8831 * collect-utils.h (save_temps): Declare.
8832 * collect2.c (verbose): Rename from vflag. All uses changed.
8833 (tool_cleanup): New function, copied from collect_atexit.
8834 (collect_atexit, handler): Just call it.
8835 * collect2.h (verbose): Declaration renamed from vflag.
8836 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
8837 debug.
8838
8839 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
8840 (lto-wrapper$(exeext)): Link with collect-utils.o.
8841 * collect-utils.c: New file.
8842 * collect-utils.h: New file.
8843 * lto-wrapper.c: Include "collect-utils.h".
8844 (args_name): Delete variable.
8845 (tool_name): New variable.
8846 (tool_cleanup): New function.
8847 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
8848 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
8849 (fork_execute): Remove functions.
8850
8851 2014-06-26 Nick Clifton <nickc@redhat.com>
8852
8853 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
8854
8855 * doc/extend.texi (Function Attributes): Fix typo in description
8856 of RX vector attribute.
8857
8858 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
8859
8860 * config.gcc (supported_defaults): Error when passing either
8861 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
8862
8863 2014-06-26 Richard Biener <rguenther@suse.de>
8864
8865 * tree-ssa-dom.c (cprop_operand): Remove restriction on
8866 propagating volatile pointers.
8867
8868 2014-06-26 Richard Biener <rguenther@suse.de>
8869
8870 PR tree-optimization/61607
8871 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
8872 loop if we redirected its latch edge.
8873 (thread_block_1): Do not cancel loops prematurely.
8874
8875 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
8876
8877 * toplev.c (backend_init_target): Move init_emit_regs and
8878 init_regs to...
8879 (backend_init) ... here; skip ira_init_once and backend_init_target.
8880 (target_reinit) ... and here; clear
8881 this_target_rtl->lang_dependent_initialized.
8882 (lang_dependent_init_target): Clear
8883 this_target_rtl->lang_dependent_initialized;
8884 break out rtl initialization to ...
8885 (initialize_rtl): ... here; call also backend_init_target
8886 and ira_init_once.
8887 * toplev.h (initialize_rtl): New function.
8888 * function.c: Include toplev.h
8889 (init_function_start): Call initialize_rtl.
8890 * rtl.h (target_rtl): Add target_specific_initialized,
8891 lang_dependent_initialized.
8892
8893 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
8894 Jakub Jelinek <jakub@redhat.com>
8895
8896 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
8897
8898 2014-06-25 Tom de Vries <tom@codesourcery.com>
8899
8900 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
8901
8902 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
8903
8904 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
8905 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
8906 Issue a strict overflow warning if appropriate.
8907
8908 2014-06-25 Martin Liska <mliska@suse.cz>
8909
8910 IPA REF refactoring
8911 * Makefile.in: Removed header file (ipa-ref-inline.h).
8912 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
8913 called.
8914 (cgraph_speculative_call_info): Likewise.
8915 (cgraph_for_node_thunks_and_aliases): Likewise.
8916 (cgraph_for_node_and_aliases): Likewise.
8917 (verify_cgraph_node): Likewise.
8918 * cgraph.h: Batch of IPA REF functions become member functions of
8919 symtab_node: add_reference, maybe_add_reference, clone_references,
8920 clone_referring, clone_reference, find_reference,
8921 remove_stmt_references, remove_all_references,
8922 remove_all_referring, dump_references, dump_referring,
8923 has_alias_p, iterate_reference, iterate_referring.
8924 * cgraphbuild.c (record_reference): New IPA REF function used.
8925 (record_type_list): Likewise.
8926 (record_eh_tables): Likewise.
8927 (mark_address): Likewise.
8928 (mark_load): Likewise.
8929 (mark_store): Likewise.
8930 (pass_build_cgraph_edges): Likewise.
8931 (rebuild_cgraph_edge): Likewise.
8932 (cgraph_rebuild_references): Likewise.
8933 (pass_remove_cgraph_callee_edges): Likewise.
8934 * cgraphclones.c (cgraph_clone_node): Likewise.
8935 (cgraph_create_virtual_clone): Likewise.
8936 (cgraph_materialize_clone): Likewise.
8937 (cgraph_materialize_all_clones): Likewise.
8938 * cgraphunit.c (cgraph_reset_node): Likewise.
8939 (cgraph_reset_node): Likewise.
8940 (analyze_function): Likewise.
8941 (assemble_thunks_and_aliases): Likewise.
8942 (expand_function): Likewise.
8943 * ipa-comdats.c (propagate_comdat_group): Likewise.
8944 (enqueue_references): Likewise.
8945 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
8946 (create_specialized_node): Likewise.
8947 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
8948 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
8949 * ipa-inline.c (reset_edge_caches): Likewise.
8950 (update_caller_keys): Likewise.
8951 (execute): Likewise.
8952 * ipa-prop.c (remove_described_reference): Likewise.
8953 (propagate_controlled_uses): Likewise.
8954 (ipa_edge_duplication_hook): Likewise.
8955 (ipa_modify_call_arguments): Likewise.
8956 * ipa-pure-const.c (propagate_pure_const): Likewise.
8957 * ipa-ref-inline.h: Header file removed, functions moved
8958 to symtab_node class.
8959 * ipa-ref.c (remove_reference): New class member function.
8960 (cannot_lead_to_return): New class member function.
8961 (referring_ref_list): Likewise.
8962 (referred_ref_list): Likewise.
8963 Rest of functions moved to symtab_node class.
8964 * ipa-ref.h: New member functions remove_reference,
8965 cannot_lead_to_return, referring_ref_list, referred_ref_list added
8966 to ipa_ref class.
8967 ipa_ref_list class has new member functions: first_reference,
8968 first_referring, clear, nreferences.
8969 * ipa-reference.c (analyze_function): New IPA REF function used.
8970 (write_node_summary_p): Likewise.
8971 (ipa_reference_write_optimization_summary): Likewise.
8972 * ipa-split.c (split_function): Likewise.
8973 * ipa-utils.c (ipa_reverse_postorder): Likewise.
8974 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
8975 (function_and_variable_visibility): Likewise.
8976 * ipa.c (has_addr_references_p): Likewise.
8977 (process_references): Argument type changed.
8978 (symtab_remove_unreachable_nodes): New IPA REF function used.
8979 (process_references): Likewise.
8980 (set_writeonly_bit): Likewise.
8981 * lto-cgraph.c: Implementation of new symtab_node member functions
8982 that uses new IPA REF functions.
8983 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
8984 function used.
8985 * lto-streamer-out.c (output_symbol_p): Likewise.
8986 * lto-streamer.h (referenced_from_this_partition_p): Argument type
8987 changed.
8988 * symtab.c: Implementation of new IPA REF API.
8989 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
8990 (ipa_tm_create_version): Likewise.
8991 (ipa_tm_execute): Likewise.
8992 * tree-emutls.c (gen_emutls_addr): Likewise.
8993 * tree-inline.c (copy_bb): Likewise.
8994 (delete_unreachable_blocks_update_callgraph): Likewise.
8995 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
8996 (varpool_for_node_and_aliases): Likewise.
8997
8998 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
8999
9000 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
9001
9002 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
9003
9004 PR bootstrap/61598
9005 * fold-const.c (fold_checksum_tree): Use a hash_table of const
9006 tree_node * instead of tree_node *.
9007 (fold): Adjust.
9008 (print_fold_checksum): Likewise.
9009 (fold_check_failed): Likewise.
9010 (debug_fold_checksum): Likewise.
9011 (fold_build1_stat_loc): Likewise.
9012 (fold_build2_stat_loc): Likewise.
9013 (fold_build3_stat_loc): Likewise.
9014 (fold_build_call_array_loc): Likewise.
9015
9016 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
9017
9018 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
9019 implementation with call to...
9020 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
9021 function.
9022 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
9023 Declare.
9024
9025 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
9026
9027 PR tree-optimization/57742
9028 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
9029 after replacing the statement.
9030
9031 2014-06-25 Nick Clifton <nickc@redhat.com>
9032
9033 * config/v850/v850.c (GHS_default_section_names): Change to const
9034 char * type.
9035 (GHS_current_section_names): Likewise.
9036 (v850_insert_attributes): Do not build strings, just assign the
9037 names directly. Change the type of 'chosen_section' to const
9038 char*.
9039 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
9040 directly to the array entry.
9041 * config/v850/v850.h (GHS_default_section_names): Change to const
9042 char * type.
9043 (GHS_current_section_names): Likewise.
9044
9045 2014-06-25 Jakub Jelinek <jakub@redhat.com>
9046
9047 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
9048 (LANG_HOOKS_DECLS): Add it.
9049 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
9050 has correct type.
9051 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
9052 * langhooks.h (struct lang_hooks_for_decls): Add
9053 omp_clause_linear_ctor hook.
9054 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
9055 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
9056 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
9057 combined simd loop use omp_clause_linear_ctor hook.
9058
9059 2014-06-24 Cong Hou <congh@google.com>
9060
9061 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
9062 pattern recognition.
9063 (type_conversion_p): PROMOTION is true if it's a type promotion
9064 conversion, and false otherwise. Return true if the given expression
9065 is a type conversion one.
9066 * tree-vectorizer.h: Adjust the number of patterns.
9067 * tree.def: Add SAD_EXPR.
9068 * optabs.def: Add sad_optab.
9069 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
9070 * expr.c (expand_expr_real_2): Likewise.
9071 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
9072 * gimple.c (get_gimple_rhs_num_ops): Likewise.
9073 * optabs.c (optab_for_tree_code): Likewise.
9074 * tree-cfg.c (estimate_operator_cost): Likewise.
9075 * tree-ssa-operands.c (get_expr_operands): Likewise.
9076 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
9077 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
9078 * doc/generic.texi: Add document for SAD_EXPR.
9079 * doc/md.texi: Add document for ssad and usad.
9080
9081 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9082
9083 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
9084 qualification in cast.
9085
9086 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
9087
9088 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
9089 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
9090 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
9091 (tree_function_decl): ... here.
9092 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
9093 streaming of vindex to ...
9094 (write_ts_function_decl_tree_pointers): ... here.
9095 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
9096 Do not stream DECL_VINDEX.
9097 (lto_input_ts_function_decl_tree_pointers): Stream it here.
9098
9099 2014-06-24 Catherine Moore <clm@codesourcery.com>
9100 Sandra Loosemore <sandra@codesourcery.com>
9101
9102 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
9103 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
9104 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
9105
9106 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
9107
9108 * doc/invoke.texi (Warning Options): Remove duplicated
9109 -Wmaybe-uninitialized.
9110
9111 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
9112
9113 PR tree-optimization/57742
9114 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
9115 (handle_builtin_malloc, handle_builtin_memset): New functions.
9116 (strlen_optimize_stmt): Call them.
9117 * passes.def: Move strlen after loop+dom but before vrp.
9118
9119 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9120
9121 PR target/61570
9122 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
9123 model family 6 CPU with has_longmode never use a CPU without
9124 64-bit support.
9125
9126 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
9127
9128 PR target/61570
9129 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
9130 the last change.
9131
9132 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9133
9134 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
9135 * dominance.c (iterate_fix_dominators): Use hash_map instead of
9136 pointer_map.
9137 * hash-map.h: New file.
9138 * ipa-comdats.c: Use hash_map instead of pointer_map.
9139 * ipa.c: Likewise.
9140 * lto-section-out.c: Adjust.
9141 * lto-streamer.h: Replace pointer_map with hash_map.
9142 * symtab.c (verify_symtab): Likewise.
9143 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
9144 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
9145 * tree-streamer.h: Likewise.
9146 * tree-streamer.c: Adjust.
9147 * pointer-set.h: Remove pointer_map.
9148
9149 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9150
9151 * hash-table.h: Add a template arg to choose between storing values
9152 and storing pointers to values, and then provide partial
9153 specializations for both.
9154 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
9155 should store, not the type values should point to.
9156 * tree-into-ssa.c (var_info_hasher): Likewise.
9157 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
9158 * tree-complex.c: Adjust.
9159 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
9160 table instead of int_tree_map *.
9161 * tree-parloops.c: Adjust.
9162 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
9163 type is being stored.
9164 * tree-vectorizer.c: Adjust.
9165
9166 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
9167
9168 * hash-table.h: Remove a layer of indirection from hash_table so that
9169 it contains the hash table's data instead of a pointer to the data.
9170 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
9171 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
9172 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
9173 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
9174 fold-const.c, gcse.c, ggc-common.c,
9175 gimple-ssa-strength-reduction.c, gimplify.c,
9176 graphite-clast-to-gimple.c, graphite-dependences.c,
9177 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
9178 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
9179 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
9180 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
9181 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
9182 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
9183 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
9184 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
9185 tree-ssa-live.c, tree-ssa-loop-im.c,
9186 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
9187 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
9188 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
9189 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
9190 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
9191 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
9192 vtable-verify.c, vtable-verify.h: Adjust.
9193
9194 2014-06-24 Richard Biener <rguenther@suse.de>
9195
9196 PR tree-optimization/61572
9197 * tree-ssa-sink.c (statement_sink_location): Do not sink
9198 loads from hard registers.
9199
9200 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9201
9202 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
9203 not mentioned in clauses use private clause if the iterator is
9204 declared in #pragma omp for simd, and when adding lastprivate
9205 instead, add it to the outer #pragma omp for too. Diagnose
9206 if the variable is private in outer context. For simd collapse > 1
9207 loops, replace all iterators with temporaries.
9208 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
9209 same even in collapse > 1 loops.
9210
9211 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
9212 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
9213 non-NULL.
9214 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
9215 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
9216 non-NULL.
9217 (gimplify_adjust_omp_clauses): Likewise.
9218 * omp-low.c (lower_rec_simd_input_clauses,
9219 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
9220 safelen the same as safelen(1).
9221 * tree-nested.c (convert_nonlocal_omp_clauses,
9222 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
9223 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
9224 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
9225 Fixup handling of GIMPLE_OMP_TARGET.
9226 (convert_tramp_reference_stmt, convert_gimple_call): Handle
9227 GIMPLE_OMP_TARGET.
9228
9229 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
9230
9231 PR tree-optimization/61554
9232 * tree-ssa-propagate.c: Include "bitmap.h".
9233 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
9234 properly update constructor/destructor.
9235 (substitute_and_fold_dom_walker::before_dom_children):
9236 Remove call to gimple_purge_dead_eh_edges, add bb->index to
9237 need_eh_cleaup instead.
9238 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
9239 need_eh_cleanup.
9240
9241 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
9242
9243 * varpool.c (dump_varpool_node): Dump used_by_single_function.
9244 * tree-pass.h (make_pass_ipa_single_use): New pass.
9245 * cgraph.h (used_by_single_function): New flag.
9246 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
9247 Stream it.
9248 * passes.def (pass_ipa_single_use): Scedule.
9249 * ipa.c (BOTTOM): New macro.
9250 (meet): New function
9251 (propagate_single_user): New function.
9252 (ipa_single_use): New function.
9253 (pass_data_ipa_single_use): New pass.
9254 (pass_ipa_single_use): New pass.
9255 (pass_ipa_single_use::gate): New gate.
9256 (make_pass_ipa_single_use): New function.
9257
9258 2014-06-23 Kai Tietz <ktietz@redhat.com>
9259
9260 PR target/39284
9261 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
9262 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
9263
9264 2014-06-23 Richard Biener <rguenther@suse.de>
9265
9266 * tree-ssa-loop.c (gate_loop): New function.
9267 (pass_tree_loop::gate): Call it.
9268 (pass_data_tree_no_loop, pass_tree_no_loop,
9269 make_pass_tree_no_loop): New.
9270 * tree-vectorizer.c: Include tree-scalar-evolution.c
9271 (pass_slp_vectorize::execute): Initialize loops and SCEV if
9272 required.
9273 (pass_slp_vectorize::clone): New method.
9274 * timevar.def (TV_TREE_NOLOOP): New.
9275 * tree-pass.h (make_pass_tree_no_loop): Declare.
9276 * passes.def (pass_tree_no_loop): New pass group with
9277 SLP vectorizer.
9278
9279 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
9280
9281 PR target/61570
9282 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
9283 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
9284
9285 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
9286
9287 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
9288 "yes" where needed.
9289
9290 2014-06-23 Alan Modra <amodra@gmail.com>
9291
9292 PR bootstrap/61583
9293 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
9294 to zero on debug statements.
9295
9296 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
9297
9298 PR target/60825
9299 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
9300 Ignore third operand if present by marking qualifier_internal.
9301
9302 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
9303
9304 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
9305 vector extension.
9306 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
9307 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
9308 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
9309 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
9310 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
9311 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
9312 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
9313 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
9314 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
9315 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
9316 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
9317 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
9318 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
9319 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
9320 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
9321 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
9322 logic in GCC vector extensions
9323
9324 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
9325 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
9326 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
9327 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
9328 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
9329 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
9330 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
9331 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
9332 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
9333 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
9334
9335 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
9336
9337 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
9338 extensions.
9339
9340 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
9341 (vget_low_s64): Use __GET_LOW macro.
9342 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
9343 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
9344 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
9345 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
9346 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
9347
9348 (vcombine_s64): Use GCC vector extensions; remove cast.
9349 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
9350 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
9351 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
9352 Fix type signature; remove cast.
9353
9354 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
9355
9356 PR target/60825
9357 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
9358 V1DFmode.
9359 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
9360 add V1DFmode
9361 (BUILTIN_VD1): New.
9362 (BUILTIN_VD_RE): Remove.
9363 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
9364 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
9365 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
9366 variant but not df.
9367 (vreinterpretv1df*, vreinterpret*v1df): New.
9368 (vreinterpretdf*, vreinterpret*df): Remove.
9369 * config/aarch64/aarch64-simd.md (aarch64_create,
9370 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
9371 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
9372 (VD1): New.
9373 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
9374 (vcreate_f64): Remove cast, use v1df builtin.
9375 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
9376 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
9377 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
9378 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
9379 vmov_n_f64, vst1_f64): Use gcc vector extensions.
9380 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
9381 add range check using __builtin_aarch64_im_lane_boundsi.
9382 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
9383 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
9384 type signature, use gcc vector extensions.
9385 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
9386 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
9387 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
9388 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
9389 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
9390 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
9391 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
9392 vreinterpret_u64_f64): Use v1df builtin not df.
9393
9394 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
9395
9396 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
9397 vector registers.
9398
9399 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
9400
9401 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
9402 priority directly.
9403
9404 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9405
9406 * loop-invariant.c (pre_check_invariant_p): New function.
9407 (find_invariant_insn): Call pre_check_invariant_p.
9408
9409 2014-06-22 Richard Henderson <rth@redhat.com>
9410
9411 PR target/61565
9412 * compare-elim.c (struct comparison): Add eh_note.
9413 (find_comparison_dom_walker::before_dom_children): Don't eliminate
9414 a redundant comparison in a different EH region. Purge EH edges if
9415 necessary.
9416
9417 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
9418
9419 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
9420 (var_shift): Use it.
9421 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
9422 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
9423 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
9424 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
9425 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
9426 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
9427 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
9428 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
9429 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
9430 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
9431 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
9432 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
9433 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
9434 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
9435 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
9436 *rotldi3_internal15be): Use the new attribute. Merge register and
9437 integer alternatives.
9438
9439 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
9440
9441 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
9442 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
9443 split, *ashrdi3_internal3 and split): Delete, merge into...
9444 (ashr<mode>3): New expander.
9445 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
9446 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
9447
9448 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
9449
9450 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
9451 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
9452 *rotldi3_internal3 and split): Delete, merge into...
9453 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
9454 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
9455 Use "rotlw" extended mnemonic.
9456
9457 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
9458
9459 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
9460 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
9461 and split, *ashldi3_internal3 and split): Delete, merge into...
9462 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
9463 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
9464
9465 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
9466
9467 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
9468 (lshrsi3, two anonymous define_insns and define_splits,
9469 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
9470 *lshrdi3_internal3 and split): Delete, merge into...
9471 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
9472 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
9473
9474 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
9475
9476 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
9477 Remove "O" alternative.
9478
9479 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
9480
9481 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
9482 (mips_move_from_gpr_cost): Likewise.
9483 (mips_register_move_cost): Update accordingly.
9484 (mips_secondary_reload_class): Remove name of in_p.
9485
9486 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
9487
9488 PR target/61503
9489 * config/i386/i386.md (x86_64_shrd, x86_shrd,
9490 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
9491
9492 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9493
9494 * config/nios2/nios2.c: Include "builtins.h".
9495
9496 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
9497
9498 * cgraph.h (tls_model_names): New variable.
9499 * print-tree.c (print_node): Simplify.
9500 * varpool.c (tls_model_names): New variable.
9501 (dump_varpool_node): Output tls model.
9502
9503 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
9504
9505 * ipa-visibility.c (function_and_variable_visibility): Disable
9506 temporarily local aliases for some targets.
9507
9508 2014-06-20 Marek Polacek <polacek@redhat.com>
9509
9510 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
9511 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
9512 into SANITIZE_UNDEFINED.
9513 * doc/invoke.texi: Describe -fsanitize=bounds.
9514 * gimplify.c (gimplify_call_expr): Add gimplification of internal
9515 functions created in the FEs.
9516 * internal-fn.c: Move "internal-fn.h" after "tree.h".
9517 (expand_UBSAN_BOUNDS): New function.
9518 * internal-fn.def (UBSAN_BOUNDS): New internal function.
9519 * internal-fn.h: Don't define internal functions here.
9520 * opts.c (common_handle_option): Add -fsanitize=bounds.
9521 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
9522 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
9523 * tree-core.h: Define internal functions here.
9524 (struct tree_base): Add ifn field.
9525 * tree-pretty-print.c: Include "internal-fn.h".
9526 (dump_generic_node): Handle functions without CALL_EXPR_FN.
9527 * tree.c (get_callee_fndecl): Likewise.
9528 (build_call_expr_internal_loc): New function.
9529 * tree.def (CALL_EXPR): Update description.
9530 * tree.h (CALL_EXPR_IFN): Define.
9531 (build_call_expr_internal_loc): Declare.
9532 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
9533 types.
9534 (ubsan_type_descriptor): Change bool parameter to enum
9535 ubsan_print_style. Adjust the code. Add handling of
9536 UBSAN_PRINT_ARRAY.
9537 (ubsan_expand_bounds_ifn): New function.
9538 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
9539 (ubsan_build_overflow_builtin): Likewise.
9540 (instrument_bool_enum_load): Likewise.
9541 (ubsan_instrument_float_cast): Likewise.
9542 * ubsan.h (enum ubsan_print_style): New enum.
9543 (ubsan_expand_bounds_ifn): Declare.
9544 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
9545
9546 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
9547
9548 * config/rs6000/rs6000.md: Append `DONE' to preparation
9549 statements of `bswap' pattern splitters.
9550
9551 2014-06-20 Tom de Vries <tom@codesourcery.com>
9552
9553 * target.def (call_fusage_contains_non_callee_clobbers): Update
9554 definition.
9555 * doc/tm.texi: Regenerate.
9556
9557 2014-06-20 Yury Gribov <y.gribov@samsung.com>
9558 Max Ostapenko <m.ostapenko@partner.samsung.com>
9559
9560 PR sanitizer/61547
9561 * asan.c (instrument_strlen_call): Fixed instrumentation of
9562 trailing byte.
9563
9564 2014-06-20 Martin Jambor <mjambor@suse.cz>
9565
9566 PR ipa/61540
9567 * ipa-prop.c (impossible_devirt_target): New function.
9568 (try_make_edge_direct_virtual_call): Use it, also instead of
9569 asserting.
9570
9571 2014-06-20 Yury Gribov <y.gribov@samsung.com>
9572 Max Ostapenko <m.ostapenko@partner.samsung.com>
9573
9574 PR sanitizer/61530
9575 * asan.c (build_check_stmt): Add condition.
9576
9577 2014-06-20 Martin Jambor <mjambor@suse.cz>
9578
9579 PR ipa/61211
9580 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
9581 expanded clones.
9582
9583 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9584
9585 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
9586 Update comments.
9587 (VCONQ): Make comment more helpful.
9588 (VCON): Delete.
9589 * config/aarch64/aarch64-simd.md
9590 (aarch64_sqdmulh_lane<mode>):
9591 Use VCOND for operands 2. Update lane checking and flipping logic.
9592 (aarch64_sqrdmulh_lane<mode>): Likewise.
9593 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
9594 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
9595 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
9596 attribute of operand 3 to VCOND.
9597 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
9598 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
9599 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
9600 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
9601 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
9602 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
9603 define_insn.
9604 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
9605 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
9606 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
9607 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
9608 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
9609 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
9610 operand to VCOND. Update lane flipping and bounds checking logic.
9611 (aarch64_sqdmlal2_lane<mode>): Likewise.
9612 (aarch64_sqdmlsl_lane<mode>): Likewise.
9613 (aarch64_sqdmull_lane<mode>): Likewise.
9614 (aarch64_sqdmull2_lane<mode>): Likewise.
9615 (aarch64_sqdmlal_laneq<mode>):
9616 Replace VCON usage with VCONQ.
9617 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
9618 (aarch64_sqdmlal2_laneq<mode>): Emit
9619 aarch64_sqdmlal2_laneq<mode>_internal insn.
9620 Replace VCON with VCONQ.
9621 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
9622 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
9623 (aarch64_sqdmull_laneq<mode>): Emit
9624 aarch64_sqdmull_laneq<mode>_internal insn.
9625 Replace VCON with VCONQ.
9626 (aarch64_sqdmull2_laneq<mode>): Emit
9627 aarch64_sqdmull2_laneq<mode>_internal insn.
9628 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
9629 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
9630 of 3rd argument to int16x4_t.
9631 (vqdmlalh_lane_s16): Likewise.
9632 (vqdmlslh_lane_s16): Likewise.
9633 (vqdmull_high_lane_s16): Likewise.
9634 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
9635 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
9636 (vqdmlsl_lane_s16): Likewise.
9637 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
9638 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
9639 (vqdmlals_lane_s32): Likewise.
9640 (vqdmlsls_lane_s32): Likewise.
9641 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
9642 (vqdmulls_lane_s32): Likewise.
9643 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
9644 (vqdmlsl_lane_s32): Likewise.
9645 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
9646 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
9647 (vqrdmulhh_lane_s16): Likewise.
9648 (vqdmlsl_high_lane_s16): Likewise.
9649 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
9650 (vqdmlsl_high_lane_s32): Likewise.
9651 (vqrdmulhs_lane_s32): Likewise.
9652
9653 2014-06-20 Tom de Vries <tom@codesourcery.com>
9654
9655 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
9656 get_call_reg_set_usage.
9657
9658 2014-06-20 Tom de Vries <tom@codesourcery.com>
9659
9660 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
9661 it contains all call_used_regs.
9662
9663 2014-06-20 Tom de Vries <tom@codesourcery.com>
9664
9665 * final.c (collect_fn_hard_reg_usage): Add and use variable
9666 function_used_regs.
9667
9668 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
9669
9670 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
9671 (set_init_priority, get_init_priority, set_fini_priority,
9672 get_fini_priority): New methods.
9673 * tree.c (init_priority_for_decl): Remove.
9674 (init_ttree): Do not initialize init priority.
9675 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
9676 (decl_priority_info): Remove.
9677 (decl_init_priority_insert): Rewrite.
9678 (decl_fini_priority_insert): Rewrite.
9679 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
9680 tree_priority_map_marked_p): Remove.
9681 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
9682 * lto-streamer-out.c (hash_tree): Do not hash priorities.
9683 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
9684 not output priorities.
9685 (pack_ts_function_decl_value_fields): Likewise.
9686 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
9687 not input priorities.
9688 (unpack_ts_function_decl_value_fields): Likewise.
9689 * symtab.c (symbol_priority_map): Declare.
9690 (init_priority_hash): Declare.
9691 (symtab_unregister_node): Unregister from priority hash, too.
9692 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
9693 New methods.
9694 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
9695 (symbol_priority_info): New function.
9696 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
9697 New methods.
9698 * tree-core.h (tree_priority_map): Remove.
9699
9700 2014-06-20 Jakub Jelinek <jakub@redhat.com>
9701
9702 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
9703 0xff to uint64_t before shifting it up.
9704
9705 2014-06-20 Julian Brown <julian@codesourcery.com>
9706 Chung-Lin Tang <cltang@codesourcery.com>
9707
9708 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
9709 TARGET_THUMB1_ONLY. Add comments.
9710
9711 2014-06-19 Tom de Vries <tom@codesourcery.com>
9712
9713 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
9714 return type to void.
9715 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
9716
9717 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9718
9719 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
9720 as "move", from depends_on.
9721
9722 2014-06-19 Terry Guo <terry.guo@arm.com>
9723
9724 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
9725 stage.
9726
9727 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
9728
9729 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
9730 Remove cr5.
9731 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
9732
9733 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
9734
9735 PR target/61550
9736 * config/sh/sh.c (prepare_move_operands): Don't process TLS
9737 addresses here if reload in progress or completed.
9738
9739 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
9740
9741 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
9742 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
9743 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
9744 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
9745 (mips_register_priority): New function that implements the target
9746 hook TARGET_REGISTER_PRIORITY.
9747 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
9748 (mips_lra_p): Likewise for TARGET_LRA_P.
9749 (TARGET_REGISTER_PRIORITY): Define macro.
9750 (TARGET_SPILL_CLASS): Likewise.
9751 (TARGET_LRA_P): Likewise.
9752 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
9753 classes.
9754 (REG_CLASS_NAMES): Likewise.
9755 (REG_CLASS_CONTENTS): Likewise.
9756 (BASE_REG_CLASS): Use M16_SP_REGS.
9757 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
9758 New set attribute to enable alternatives depending on the register
9759 allocator used.
9760 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
9761 (*lea64): Disable pattern for MIPS16.
9762 * config/mips/mips.opt (mlra): New option.
9763
9764 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
9765
9766 * lra-constraints.c (base_to_reg): New function.
9767 (process_address): Use new function.
9768
9769 2014-06-18 Tom de Vries <tom@codesourcery.com>
9770
9771 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
9772 * config/aarch64/aarch64.c
9773 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
9774 (aarch64_emit_call_insn): New function.
9775 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
9776 of emit_call_insn.
9777 * config/aarch64/aarch64.md (define_expand "call_internal")
9778 (define_expand "call_value_internal", define_expand "sibcall_internal")
9779 (define_expand "sibcall_value_internal"): New.
9780 (define_expand "call", define_expand "call_value")
9781 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
9782 expand variant and aarch64_emit_call_insn.
9783
9784 2014-06-18 Radovan Obradovic <robradovic@mips.com>
9785 Tom de Vries <tom@codesourcery.com>
9786
9787 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
9788 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
9789 Redefine to true.
9790 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
9791 clobbers to CALL_INSN_FUNCTION_USAGE.
9792 (define_expand "sibcall_internal")
9793 (define_expand "sibcall_value_internal"): New.
9794 (define_expand "call", define_expand "call_value"): Add argument to
9795 arm_emit_call_insn.
9796 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
9797 (define_expand "sibcall_value"): Use sibcall_value_internal and
9798 arm_emit_call_insn.
9799
9800 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
9801
9802 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
9803
9804 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
9805
9806 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
9807 __udivmoddi4.
9808
9809 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
9810
9811 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
9812 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
9813 annotations. Fix DWARF information.
9814
9815 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
9816
9817 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
9818 __udivmoddi4, and fixups for negative operands.
9819
9820 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
9821
9822 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
9823
9824 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
9825
9826 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
9827 to __udivmoddi4.
9828
9829 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
9830
9831 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
9832 manipulation.
9833
9834 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
9835
9836 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
9837 describing register usage on function entry and exit.
9838
9839 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
9840
9841 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
9842 (__aeabi_ldivmod): Fix whitespace.
9843
9844 2014-06-18 Andreas Schwab <schwab@suse.de>
9845
9846 * doc/md.texi (Standard Names): Use @itemx for grouped items.
9847 Remove blank line after @item.
9848
9849 2014-06-18 Richard Henderson <rth@redhat.com>
9850
9851 PR target/61545
9852 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
9853
9854 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
9855
9856 * config/arm/arm.c (neon_vector_mem_operand): Allow register
9857 POST_MODIFY for neon loads and stores.
9858 (arm_print_operand): Output post-index register for neon loads and
9859 stores.
9860
9861 2014-06-18 Richard Biener <rguenther@suse.de>
9862
9863 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
9864
9865 2014-06-18 Richard Biener <rguenther@suse.de>
9866
9867 * tree-pass.h (make_pass_dce_loop): Remove.
9868 * passes.def: Replace pass_dce_loop with pass_dce.
9869 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
9870 changed free niter estimates and reset the scev cache.
9871 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
9872 make_pass_dce_loop): Remove.
9873 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
9874 (fini_copy_prop): Return whether something changed. Always
9875 let substitute_and_fold perform DCE and free niter estimates
9876 and reset the scev cache if so.
9877 (execute_copy_prop): If sth changed schedule cleanup-cfg.
9878 (pass_data_copy_prop): Do not unconditionally schedule
9879 cleanup-cfg or update-ssa.
9880
9881 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
9882
9883 PR tree-optimization/61518
9884 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
9885 reduction var is used in reduction stmt or phi-function only.
9886
9887 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9888
9889 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
9890
9891 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
9892
9893 PR tree-optimization/61517
9894 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
9895 whose rhs's first tree is the source expression instead of the
9896 expression itself.
9897 (find_bswap_or_nop): Likewise.
9898 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
9899 gimple stmt whose rhs's first tree is the source. In the memory source
9900 case, move the stmt to be replaced close to one of the original load to
9901 avoid the problem of a store between the load and the stmt's original
9902 location.
9903 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
9904 signature.
9905
9906 2014-06-18 Andreas Schwab <schwab@suse.de>
9907
9908 PR rtl-optimization/54555
9909 * postreload.c (move2add_use_add2_insn): Substitute
9910 STRICT_LOW_PART only if it is cheaper.
9911
9912 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
9913
9914 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
9915 Do not use unspec as call operand. Use memory_operand instead of
9916 memory_nox32_operand and add "m" operand constraint. Disable
9917 pattern for TARGET_X32.
9918 (*sibcall_pop_memory): Ditto.
9919 (*sibcall_value_memory): Ditto.
9920 (*sibcall_value_pop_memory): Ditto.
9921 (sibcall peepholes): Merge SImode and DImode patterns using
9922 W mode iterator. Use memory_operand instead of memory_nox32_operand.
9923 Disable pattern for TARGET_X32. Check if eliminated register is
9924 really dead after call insn. Generate call RTX without unspec operand.
9925 (sibcall_value peepholes): Ditto.
9926 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
9927 instead of memory_nox32_operand. Check if eliminated register is
9928 really dead after call insn. Generate call RTX without unspec operand.
9929 (sibcall_value_pop peepholes): Ditto.
9930 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
9931
9932 2014-06-18 Terry Guo <terry.guo@arm.com>
9933
9934 PR target/61544
9935 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
9936 reach the head.
9937
9938 2014-06-18 Olivier Hainque <hainque@adacore.com>
9939
9940 * tree-core.h (tree_block): Add an "end_locus" field, allowing
9941 memorization of the end of block source location.
9942 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
9943 * gimplify.c (gimplify_bind_expr): Propagate the block start and
9944 end source location info we have on the block entry/exit code we
9945 generate.
9946
9947 2014-06-18 Richard Biener <rguenther@suse.de>
9948
9949 * common.opt (fssa-phiopt): New option.
9950 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
9951 but not with -Og.
9952 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
9953 * doc/invoke.texi (-fssa-phiopt): Document.
9954
9955 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9956
9957 * genattrtab.c (n_bypassed): New variable.
9958 (process_bypasses): Initialise n_bypassed.
9959 Count number of bypassed reservations.
9960 (make_automaton_attrs): Allocate space for bypassed reservations
9961 rather than number of bypasses.
9962
9963 2014-06-18 Richard Biener <rguenther@suse.de>
9964
9965 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
9966 we propagated anything.
9967 (substitute_and_fold_dom_walker::before_dom_children): Something
9968 changed if we propagated into PHI arguments.
9969 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
9970 we removed a stmt.
9971
9972 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
9973
9974 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
9975 vector case.
9976 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
9977 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
9978 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
9979 Introduces alternative way of loads group permutaions.
9980 (vect_transform_grouped_load): Try alternative way of permutations.
9981
9982 2014-06-18 Jakub Jelinek <jakub@redhat.com>
9983
9984 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
9985 changed in ORT_TARGET region, don't jump to do_outer.
9986 (struct gimplify_adjust_omp_clauses_data): New type.
9987 (gimplify_adjust_omp_clauses_1): Adjust for data being
9988 a struct gimplify_adjust_omp_clauses_data pointer instead
9989 of tree *. Pass pre_p as a new argument to
9990 lang_hooks.decls.omp_finish_clause hook.
9991 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
9992 splay_tree_foreach to pass both list_p and pre_p.
9993 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
9994 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
9995 gimplify_adjust_omp_clauses callers.
9996 * langhooks.c (lhd_omp_finish_clause): New function.
9997 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
9998 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
9999 * langhooks.h (struct lang_hooks_for_decls): Add a new
10000 gimple_seq * argument to omp_finish_clause hook.
10001 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
10002 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
10003 (scan_omp_parallel, lower_omp_for): When adding
10004 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
10005 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
10006 * tree-nested.c (convert_nonlocal_omp_clauses,
10007 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
10008 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
10009
10010 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
10011
10012 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
10013 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
10014
10015 2014-06-17 Xinliang David Li <davidxl@google.com>
10016
10017 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
10018 * passes.c (pass_init_dump_file): Do not set initialize
10019 flag to false unconditionally.
10020
10021 2014-06-17 Richard Biener <rguenther@suse.de>
10022
10023 * genopinit.c (main): Use vec<>::qsort method.
10024 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
10025 Likewise.
10026 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
10027
10028 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
10029
10030 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
10031 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
10032 (mips_move_to_gpr_cost): Remove ST_REGS case.
10033 (mips_move_from_gpr_cost): Likewise.
10034 (mips_register_move_cost): Likewise.
10035 (mips_secondary_reload_class): Likewise.
10036
10037 2014-06-17 Richard Biener <rguenther@suse.de>
10038
10039 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
10040 (pass_all_optimizations): Move 3rd copy-prop pass from after
10041 fre to before ifcombine/phiopt.
10042
10043 2014-06-17 Richard Biener <rguenther@suse.de>
10044
10045 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
10046 and allow all blocks to be forwarders.
10047
10048 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
10049
10050 PR target/61483
10051 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
10052 variable 'size'; calculate 'size' right in the front; use
10053 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
10054 pcum->aapcs_stack_words.
10055
10056 2014-06-17 Nick Clifton <nickc@redhat.com>
10057
10058 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
10059 (umulhi3, mulsidi3, umulsidi3): Likewise.
10060
10061 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
10062
10063 PR middle-end/61508
10064 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
10065 check for section name.
10066
10067 2014-06-17 Richard Biener <rguenther@suse.de>
10068
10069 * tree-ssa-propagate.c: Include domwalk.h.
10070 (substitute_and_fold): Outline main worker into a domwalker ...
10071 (substitute_and_fold_dom_walker::before_dom_children): ... here.
10072 Schedule stmts we can fully propagate for removal. Remove
10073 poor-mans DCE.
10074 (substitute_and_fold): Apply a dominator walk to perform
10075 substitution. Process stmts scheduled for removal here.
10076
10077 2014-06-17 Richard Biener <rguenther@suse.de>
10078
10079 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
10080 of PHI node moving.
10081
10082 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
10083
10084 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
10085 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
10086 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
10087 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
10088 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
10089 TARGET_HARD_FLOAT.
10090 (get_fpscr) : Likewise.
10091
10092 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
10093
10094 PR rtl-optimization/61325
10095 * lra-constraints.c (valid_address_p): Add forward declaration.
10096 (simplify_operand_subreg): Check address validity before and after
10097 alter_reg of memory subreg.
10098
10099 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
10100
10101 * config/i386/i386.c (decide_alg): Correctly handle
10102 maximum size of stringop algorithm.
10103
10104 2014-06-16 Yury Gribov <y.gribov@samsung.com>
10105
10106 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
10107
10108 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
10109
10110 PR rtl-optimization/61522
10111 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
10112
10113 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
10114
10115 Revert:
10116 * symtab.c (symtab_node::reset_section): New method.
10117 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
10118 for localization.
10119 * cgraph.h (reset_section): Declare.
10120 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
10121 do not consider comdat locals.
10122 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
10123 for new symbol.
10124 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
10125 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
10126 reset sections of symbols dragged out of the comdats.
10127 (function_and_variable_visibility): Reset sections of
10128 localized symbols.
10129
10130 2014-06-16 Richard Biener <rguenther@suse.de>
10131
10132 PR tree-optimization/61482
10133 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
10134 [-INF(OVF), +INF(OVF)] range.
10135
10136 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
10137
10138 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
10139 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
10140 handling 32-bit multiplication.
10141
10142 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
10143
10144 PR middle-end/61430
10145 * lra-lives.c (process_bb_lives): Skip creating copy during
10146 insn scan when src/dest has constrained to same regno.
10147
10148 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
10149
10150 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
10151 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
10152
10153 2014-06-16 Yury Gribov <y.gribov@samsung.com>
10154
10155 * asan.c (check_func): New function.
10156 (maybe_create_ssa_name): Likewise.
10157 (build_check_stmt_with_calls): Likewise.
10158 (use_calls_p): Likewise.
10159 (report_error_func): Change interface.
10160 (build_check_stmt): Allow non-integer lengths; add support
10161 for new parameter.
10162 (asan_instrument): Likewise.
10163 (instrument_mem_region_access): Moved code to build_check_stmt.
10164 (instrument_derefs): Likewise.
10165 (instrument_strlen_call): Likewise.
10166 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
10167 * doc/invoke.texi: Describe new parameter.
10168 * params.def: Define new parameter.
10169 * params.h: Likewise.
10170 * sanitizer.def: Describe new builtins.
10171
10172 2014-06-16 Richard Biener <rguenther@suse.de>
10173
10174 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10175 Make all defs available at the end.
10176 (eliminate): If we remove a PHI node schedule cfg-cleanup.
10177
10178 2014-06-18 Jakub Jelinek <jakub@redhat.com>
10179
10180 PR plugins/45078
10181 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
10182
10183 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
10184
10185 PR bootstrap/61516
10186 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
10187 initialization. Replace remaining use of uid.
10188
10189 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
10190
10191 * c-family/c-common.c (handle_tls_model_attribute): Use
10192 set_decl_tls_model.
10193 * c-family/c-common.c (handle_tls_model_attribute): Use
10194 set_decl_tls_model.
10195 * cgraph.h (struct varpool_node): Add tls_model.
10196 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
10197 * tree.h (DECL_TLS_MODEL): Update.
10198 (DECL_THREAD_LOCAL_P): Check that variable is static.
10199 (decl_tls_model): Declare.
10200 (set_decl_tls_model): Declare.
10201 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
10202 set symbol prorperties.
10203 (get_emutls_init_templ_addr): Cleanup.
10204 (new_emutls_decl): Update.
10205 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
10206 (lto_input_varpool_node): Likewise.
10207 * lto-streamer-out.c (hash_tree): Likewise.
10208 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
10209 not stream DECL_TLS_MODEL.
10210 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
10211 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
10212
10213 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10214
10215 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
10216
10217 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10218
10219 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
10220 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
10221 lists.
10222 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
10223 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
10224 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
10225 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
10226 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
10227 (df_get_artificial_defs, df_get_artificial_uses)
10228 (df_single_def, df_single_use): Update accordingly.
10229 (df_refs_chain_dump): Take the first element in a linked list as
10230 parameter, rather than a pointer to an array of pointers.
10231 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
10232 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
10233 (df_chain_create_bb_process_use): Likewise.
10234 (df_md_bb_local_compute_process_def): Likewise.
10235 * fwprop.c (process_defs, process_uses): Likewise.
10236 (register_active_defs, update_uses): Likewise.
10237 (forward_propagate_asm): Update for new df_ref linking.
10238 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
10239 (df_null_ref_rec, df_null_mw_rec): Likewise.
10240 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
10241 explicitly.
10242 (df_scan_free_bb_info): Remove check for null artificial_defs.
10243 (df_install_ref_incremental): Adjust for new df_ref linking.
10244 Use a single-element insertion rather than a full sort.
10245 (df_ref_chain_delete_du_chain): Take the first element
10246 in a linked list as parameter, rather than a pointer to an array of
10247 pointers.
10248 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
10249 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
10250 (df_insn_info_delete): Remove check for null defs and call to
10251 df_scan_free_mws_vec.
10252 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
10253 null rather than df_null_*_rec.
10254 (df_insn_rescan_debug_internal): Likewise, and update null
10255 checks in the same way. Remove check for null defs.
10256 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
10257 Move a single element rather doing a full sort.
10258 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
10259 linking.
10260 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
10261 Initialize df_ref and df_mw_hardreg lists to null rather than
10262 df_null_*_rec.
10263 (df_ref_compare): Take df_refs as parameter, transferring the
10264 old interface to...
10265 (df_ref_ptr_compare): ...this new function.
10266 (df_sort_and_compress_refs): Update accordingly.
10267 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
10268 old interface to...
10269 (df_mw_ptr_compare): ...this new function.
10270 (df_sort_and_compress_mws): Update accordingly.
10271 (df_install_refs, df_install_mws): Return a linked list rather than
10272 an array of pointers.
10273 (df_refs_add_to_chains): Assert that old lists are empty rather
10274 than freeing them.
10275 (df_insn_refs_verify): Don't handle null defs speciailly.
10276 * web.c (union_match_dups): Update for new df_ref linking.
10277
10278 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10279
10280 * df.h (df_ref_create, df_ref_remove): Delete.
10281 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
10282 (df_ref_remove): Likewise.
10283
10284 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10285
10286 * df.h (df_single_def, df_single_use): New functions.
10287 * ira.c (find_moveable_pseudos): Use them.
10288
10289 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10290
10291 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
10292 * df-problems.c (df_note_bb_compute): Use it.
10293 * regstat.c (regstat_bb_compute_ri): Likewise.
10294
10295 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10296
10297 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
10298 * cse.c (cse_extended_basic_block): Use them.
10299 * dce.c (mark_artificial_use): Likewise.
10300 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
10301 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
10302 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
10303 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
10304 (df_simulate_initialize_backwards): Likewise.
10305 (df_simulate_finalize_backwards): Likewise.
10306 (df_simulate_initialize_forwards): Likewise.
10307 (df_md_simulate_artificial_defs_at_top): Likewise.
10308 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
10309 * regrename.c (init_rename_info): Likewise.
10310 * regstat.c (regstat_bb_compute_ri): Likewise.
10311 (regstat_bb_compute_calls_crossed): Likewise.
10312
10313 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
10314
10315 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
10316 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
10317 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
10318 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
10319 * combine.c (create_log_links): Likewise.
10320 * compare-elim.c (find_flags_uses_in_insn): Likewise.
10321 (try_eliminate_compare): Likewise.
10322 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
10323 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
10324 (remove_reg_equal_equiv_notes_for_defs): Likewise.
10325 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
10326 (word_dce_process_block, dce_process_block): Likewise.
10327 * ddg.c (def_has_ccmode_p): Likewise.
10328 * df-core.c (df_bb_regno_first_def_find): Likewise.
10329 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
10330 * df-problems.c (df_rd_simulate_one_insn): Likewise.
10331 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
10332 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
10333 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
10334 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
10335 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
10336 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
10337 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
10338 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
10339 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
10340 * fwprop.c (local_ref_killed_between_p): Likewise.
10341 (all_uses_available_at, free_load_extend): Likewise.
10342 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
10343 * hw-doloop.c (scan_loop): Likewise.
10344 * ifcvt.c (dead_or_predicable): Likewise.
10345 * init-regs.c (initialize_uninitialized_regs): Likewise.
10346 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
10347 (process_bb_node_lives): Likewise.
10348 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
10349 (find_moveable_pseudos): Likewise.
10350 * loop-invariant.c (check_dependencies, record_uses): Likewise.
10351 * recog.c (peep2_find_free_register): Likewise.
10352 * ree.c (get_defs): Likewise.
10353 * regstat.c (regstat_bb_compute_ri): Likewise.
10354 (regstat_bb_compute_calls_crossed): Likewise.
10355 * sched-deps.c (find_inc, find_mem): Likewise.
10356 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
10357 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
10358 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10359 (prepare_shrink_wrap): Likewise.
10360 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
10361 * web.c (union_defs, pass_web::execute): Likewise.
10362 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
10363 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
10364
10365 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
10366
10367 * lra-assign.c (assign_by_spills): Add code to assign vector regs
10368 to inheritance pseudos.
10369 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
10370
10371 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
10372
10373 PR target/61415
10374 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
10375 (BU_MISC_2): Rename to ...
10376 (BU_LDBL128_2): ... this.
10377 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
10378 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
10379 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
10380 RS6000_BTM_LDBL128.
10381 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
10382 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
10383 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
10384 (unpacktf_1): Likewise.
10385 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
10386 (__builtin_longdouble_dw1): Likewise.
10387 * doc/sourcebuild.texi (longdouble128): Document.
10388
10389 2014-06-13 Jeff Law <law@redhat.com>
10390
10391 PR rtl-optimization/61094
10392 PR rtl-optimization/61446
10393 * ree.c (combine_reaching_defs): Get the mode for the copy from
10394 the extension insn rather than the defining insn.
10395
10396 2014-06-13 Dehao Chen <dehao@google.com>
10397
10398 * dwarf2out.c (add_linkage_name): Emit more linkage name.
10399
10400 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
10401
10402 * doc/install.texi (--enable-linker-plugin-configure-flags)
10403 (--enable-linker-plugin-flags): Document new flags.
10404
10405 2014-06-13 Martin Jambor <mjambor@suse.cz>
10406
10407 PR ipa/61186
10408 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
10409 cache_token if returning early.
10410
10411 2014-06-13 Nick Clifton <nickc@redhat.com>
10412
10413 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
10414 requested alignment is active.
10415 (LABEL_ALIGN): Likewise.
10416 (LOOP_ALIGN): Likewise.
10417
10418 2014-06-13 Richard Biener <rguenther@suse.de>
10419
10420 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10421 Rewrite to propagate the VN result into all uses where
10422 possible and to remove stmts becoming dead because of that.
10423 (eliminate): Generalize stmt removal handling, remove in
10424 reverse dominator order to support proper debug stmt
10425 generation. Update stmts before removing stmts.
10426 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
10427
10428 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
10429
10430 PR tree-optimization/61375
10431 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
10432 symbolic number cannot be represented in an uint64_t.
10433 (find_bswap_or_nop_1): Likewise.
10434
10435 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
10436
10437 * symtab.c (symtab_node::reset_section): New method.
10438 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
10439 for localization.
10440 * cgraph.h (reset_section): Declare.
10441 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
10442 do not consider comdat locals.
10443 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
10444 for new symbol.
10445 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
10446 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
10447 reset sections of symbols dragged out of the comdats.
10448 (function_and_variable_visibility): Reset sections of
10449 localized symbols.
10450
10451 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
10452
10453 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
10454 to use symtab and decl_binds_to_current_def_p
10455 * tree-vectorizer.c (increase_alignment): Increase alignment
10456 of alias target, too.
10457
10458 2014-06-12 Jakub Jelinek <jakub@redhat.com>
10459
10460 PR middle-end/61486
10461 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
10462 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
10463 if outer combined construct is distribute.
10464 (gimplify_omp_for): For OMP_DISTRIBUTE set
10465 gimplify_omp_ctxp->distribute.
10466 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
10467 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
10468 mapping into decl map.
10469
10470 2014-06-12 Jason Merrill <jason@redhat.com>
10471
10472 * common.opt (fabi-version): Change default to 0.
10473
10474 2014-06-12 Jason Merrill <jason@redhat.com>
10475
10476 * toplev.c (process_options): Reject -fabi-version=1.
10477
10478 2014-06-12 Jeff Law <law@redhat.com>
10479
10480 PR tree-optimization/61009
10481 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
10482 value when we stop processing a block due to problematic PHIs.
10483
10484 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
10485
10486 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
10487 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
10488 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
10489 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
10490 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
10491 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
10492 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
10493 are not in the spec.
10494
10495 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
10496
10497 PR target/59843
10498 * config/aarch64/aarch64-modes.def: Add V1DFmode.
10499 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
10500 Support V1DFmode.
10501
10502 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
10503
10504 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
10505
10506 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
10507
10508 PR target/61443
10509 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
10510 loading from address spaces.
10511
10512 2014-06-12 Martin Liska <mliska@suse.cz>
10513
10514 PR ipa/61462
10515 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
10516 statement is reachable.
10517
10518 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
10519
10520 * symtab.c (section_hash): New hash.
10521 (symtab_unregister_node): Clear section before freeing.
10522 (hash_section_hash_entry): New haser.
10523 (eq_sections): New function.
10524 (symtab_node::set_section_for_node): New method.
10525 (set_section_1): Update.
10526 (symtab_node::set_section): Take string instead of tree as parameter.
10527 (symtab_resolve_alias): Update.
10528 * cgraph.h (section_hash_entry_d): New structure.
10529 (section_hash_entry): New typedef.
10530 (cgraph_node): Change comdat_group_ to x_comdat_group,
10531 change section_ to x_section and turn into section_hash_entry;
10532 update accestors; put set_section_for_node offline.
10533 * tree.c (decl_section_name): Turn into string.
10534 (set_decl_section_name): Change parameter to be string.
10535 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
10536 * sdbout.c (sdbout_one_type): Update.
10537 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
10538 * varasm.c (IN_NAMED_SECTION, get_named_section,
10539 resolve_unique_section, hot_function_section, get_named_text_section,
10540 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
10541 make_decl_rtl, default_unique_section): Update.
10542 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
10543 (c6x_elf_unique_section): Update.
10544 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
10545 * config/pa/pa.c (pa_function_section): Update.
10546 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
10547 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
10548 * config/arc/arc.c (arc_in_small_data_p): Update.
10549 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
10550 * config/mcore/mcore.c (mcore_unique_section): Update.
10551 * config/mips/mips.c (mips16_build_function_stub): Update.
10552 (mips16_build_call_stub): Update.
10553 (mips_function_rodata_section): Update.
10554 (mips_in_small_data_p): Update.
10555 * config/score/score.c (score_in_small_data_p): Update.
10556 * config/rx/rx.c (rx_in_small_data): Update.
10557 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
10558 (rs6000_xcoff_asm_named_section): Update.
10559 (rs6000_xcoff_unique_section): Update.
10560 * config/frv/frv.c (frv_string_begins_with): Update.
10561 (frv_in_small_data_p): Update.
10562 * config/v850/v850.c (v850_encode_data_area): Update.
10563 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
10564 (bfin_handle_l1_data_attribute): Update.
10565 (bfin_handle_l2_attribute): Update.
10566 * config/mep/mep.c (mep_unique_section): Update.
10567 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
10568 Update.
10569 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
10570 (h8300_handle_tiny_data_attribute): Update.
10571 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
10572 (m32r_in_small_data_p): Update.
10573 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
10574 * config/i386/i386.c (ix86_in_large_data_p): Update.
10575 * config/i386/winnt.c (i386_pe_unique_section): Update.
10576 * config/darwin.c (darwin_function_section): Update.
10577 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
10578 * tree-emutls.c (get_emutls_init_templ_addr): Update.
10579 (new_emutls_decl): Update.
10580 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
10581 input_varpool_node): Update.
10582 (ead_string_cst): Turn to ...
10583 (read_string): ... this one.
10584 * dwarf2out.c (secname_for_decl): Update.
10585 * asan.c (asan_protect_global): Update.
10586
10587 2014-06-11 DJ Delorie <dj@redhat.com>
10588
10589 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
10590 cache lines.
10591 * config/rx/rx.c (rx_option_override): Likewise.
10592 (rx_align_for_label): Likewise.
10593
10594 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
10595
10596 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
10597
10598 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
10599 prototype.
10600
10601 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
10602
10603 * common.md: New file.
10604 * doc/md.texi: Update description of generic, machine-independent
10605 constraints.
10606 * config/s390/constraints.md (e): Delete.
10607 * Makefile.in (md_file): Include common.md.
10608 * config/m32c/t-m32c (md_file): Likewise.
10609 * genpreds.c (general_mem): New array.
10610 (generic_constraint_letters): Remove constraints now defined by
10611 common.md.
10612 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
10613 Allow the first character to be '<' or '>' as well.
10614 * genoutput.c (general_mem): New array.
10615 (indep_constraints): Remove constraints now defined by common.md.
10616 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
10617 Remove special handling of 'm'.
10618 * ira-costs.c (record_reg_classes): Remove special handling of
10619 constraints now defined by common.md.
10620 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
10621 * ira-lives.c (single_reg_class): Likewise.
10622 (ira_implicitly_set_insn_hard_regs): Likewise.
10623 * lra-constraints.c (reg_class_from_constraints): Likewise.
10624 (process_alt_operands, process_address, curr_insn_transform): Likewise.
10625 * postreload.c (reload_cse_simplify_operands): Likewise.
10626 * reload.c (push_secondary_reload, scratch_reload_class)
10627 (find_reloads, alternative_allows_const_pool_ref): Likewise.
10628 * reload1.c (maybe_fix_stack_asms): Likewise.
10629 * targhooks.c (default_secondary_reload): Likewise.
10630 * stmt.c (parse_output_constraint): Likewise.
10631 * recog.c (preprocess_constraints): Likewise.
10632 (constrain_operands, peep2_find_free_register): Likewise.
10633 (asm_operand_ok): Likewise, but add a comment saying why 'o'
10634 must be handled specially.
10635
10636 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
10637
10638 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
10639 * genpreds.c (have_const_dbl_constraints): Delete.
10640 (add_constraint): Don't set it.
10641 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
10642 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
10643 constraints using the lookup_constraint logic.
10644 * ira-lives.c (single_reg_class): Likewise.
10645 * ira.c (ira_setup_alts): Likewise.
10646 * lra-constraints.c (process_alt_operands): Likewise.
10647 * recog.c (asm_operand_ok, constrain_operands): Likewise.
10648 * reload.c (find_reloads): Likewise.
10649
10650 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
10651
10652 * genpreds.c (const_int_start, const_int_end): New variables.
10653 (choose_enum_order): Output CONST_INT constraints before memory
10654 constraints.
10655 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
10656 Add CT_CONST_INT.
10657 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
10658 * ira.c (ira_setup_alts): Likewise.
10659 * lra-constraints.c (process_alt_operands): Likewise.
10660 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
10661 * reload.c (find_reloads): Likewise.
10662
10663 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
10664
10665 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
10666 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
10667 * recog.c (preprocess_constraints): Update accordingly.
10668
10669 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
10670
10671 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
10672 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
10673 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
10674 * genpreds.c (print_type_tree): New function.
10675 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
10676 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
10677 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
10678 Write out enum constraint_type and get_constraint_type.
10679 * lra-constraints.c (satisfies_memory_constraint_p): Take a
10680 constraint_num rather than a constraint string.
10681 (satisfies_address_constraint_p): Likewise.
10682 (reg_class_from_constraints): Avoid old constraint macros.
10683 (process_alt_operands, process_address_1): Likewise.
10684 (curr_insn_transform): Likewise.
10685 * ira-costs.c (record_reg_classes): Likewise.
10686 (record_operand_costs): Likewise.
10687 * ira-lives.c (single_reg_class): Likewise.
10688 (ira_implicitly_set_insn_hard_regs): Likewise.
10689 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
10690 * postreload.c (reload_cse_simplify_operands): Likewise.
10691 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
10692 (constrain_operands, peep2_find_free_register): Likewise.
10693 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
10694 (find_reloads, alternative_allows_const_pool_ref): Likewise.
10695 * reload1.c (maybe_fix_stack_asms): Likewise.
10696 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
10697 * targhooks.c (default_secondary_reload): Likewise.
10698 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
10699 to EXTRA_CONSTRAINT_STR.
10700 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
10701
10702 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
10703
10704 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
10705 (write_constraint_satisfied_p_array): ...this new function.
10706 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
10707 an array.
10708 (write_insn_preds_c): Update accordingly.
10709
10710 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
10711
10712 * genpreds.c (write_lookup_constraint): Rename to...
10713 (write_lookup_constraint_1): ...this.
10714 (write_lookup_constraint_array): New function.
10715 (write_tm_preds_h): Define lookup_constraint as an inline function
10716 that uses write_lookup_constraint_array where possible.
10717 (write_insn_preds_c): Update for the changes above.
10718
10719 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
10720
10721 * doc/md.texi (regclass_for_constraint): Rename to...
10722 (reg_class_for_constraint): ...this.
10723 * genpreds.c (num_constraints, enum_order, register_start)
10724 (register_end, satisfied_start, memory_start, memory_end)
10725 (address_start, address_end): New variables.
10726 (add_constraint): Count the number of constraints.
10727 (choose_enum_order): New function.
10728 (write_enum_constraint_num): Iterate over enum_order.
10729 (write_regclass_for_constraint): Rename to...
10730 (write_reg_class_for_constraint_1): ...this and update output
10731 accordingly.
10732 (write_constraint_satisfied_p): Rename to...
10733 (write_constraint_satisfied_p_1): ...this and update output
10734 accordingly. Do nothing if all extra constraints are register
10735 constraints.
10736 (write_insn_extra_memory_constraint): Delete.
10737 (write_insn_extra_address_constraint): Delete.
10738 (write_range_function): New function.
10739 (write_tm_preds_h): Define constraint_satisfied_p and
10740 reg_class_for_constraint as inline functions that do a range check
10741 before calling the out-of-line function. Use write_range_function
10742 to implement insn_extra_{register,memory,address}_constraint,
10743 the first of which is new.
10744 (write_insn_preds_c): Update after above changes to write_* functions.
10745 (main): Call choose_enum_order.
10746
10747 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
10748
10749 PR tree-optimization/61306
10750 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
10751 expression instead of its size.
10752 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
10753 false to prevent optimization when the result is unpredictable due to
10754 arithmetic right shift of signed type with highest byte is set.
10755 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
10756 (init_symbolic_number): Likewise.
10757 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
10758 when the result is unpredictable due to sign extension.
10759
10760 2014-06-11 Terry Guo <terry.guo@arm.com>
10761
10762 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
10763 (*thumb1_addsi3): Ditto.
10764 (*thumb_subdi3): Ditto.
10765 (thumb1_subsi3_insn): Ditto.
10766 (*thumb_mulsi3): Ditto.
10767 (*thumb_mulsi3_v6): Ditto.
10768 (*thumb1_andsi3_insn): Ditto.
10769 (thumb1_bicsi3): Ditto.
10770 (*thumb1_iorsi3_insn): Ditto.
10771 (*thumb1_xorsi3_insn): Ditto.
10772 (*thumb1_ashlsi3): Ditto.
10773 (*thumb1_ashrsi3): Ditto.
10774 (*thumb1_lshrsi3): Ditto.
10775 (*thumb1_rotrsi3): Ditto.
10776 (*thumb1_negdi2): Ditto.
10777 (*thumb1_negsi2): Ditto.
10778 (*thumb1_abssi2): Ditto.
10779 (*thumb1_neg_abssi2): Ditto.
10780 (*thumb1_one_cmplsi2): Ditto.
10781 (*thumb1_zero_extendhisi2): Ditto.
10782 (*thumb1_zero_extendqisi2): Ditto.
10783 (*thumb1_zero_extendqisi2_v6): Ditto.
10784 (thumb1_extendhisi2): Ditto.
10785 (thumb1_extendqisi2): Ditto.
10786 (*thumb1_movdi_insn): Ditto.
10787 (*thumb1_movsi_insn): Ditto.
10788 (*thumb1_movhi_insn): Ditto.
10789 (thumb_movhi_clobber): Ditto.
10790 (*thumb1_movqi_insn): Ditto.
10791 (*thumb1_movhf): Ditto.
10792 (*thumb1_movsf_insn): Ditto.
10793 (*thumb_movdf_insn): Ditto.
10794 (movmem12b): Ditto.
10795 (movmem8b): Ditto.
10796 (cbranchqi4): Ditto.
10797 (cbranchsi4_insn): Ditto.
10798 (cbranchsi4_scratch): Ditto.
10799 (*negated_cbranchsi4): Ditto.
10800 (*tbit_cbranch): Ditto.
10801 (*tlobits_cbranch): Ditto.
10802 (*tstsi3_cbranch): Ditto.
10803 (*cbranchne_decr1): Ditto.
10804 (*addsi3_cbranch): Ditto.
10805 (*addsi3_cbranch_scratch): Ditto.
10806 (*thumb_cmpdi_zero): Ditto.
10807 (cstoresi_eq0_thumb1): Ditto.
10808 (cstoresi_ne0_thumb1): Ditto.
10809 (*cstoresi_eq0_thumb1_insn): Ditto.
10810 (*cstoresi_ne0_thumb1_insn): Ditto.
10811 (cstoresi_nltu_thumb1): Ditto.
10812 (cstoresi_ltu_thumb1): Ditto.
10813 (thumb1_addsi3_addgeu): Ditto.
10814 (*thumb_jump): Ditto.
10815 (*call_reg_thumb1_v5): Ditto.
10816 (*call_reg_thumb1): Ditto.
10817 (*call_value_reg_thumb1_v5): Ditto.
10818 (*call_value_reg_thumb1): Ditto.
10819 (*call_insn): Ditto.
10820 (*call_value_insn): Ditto.
10821 (thumb1_casesi_internal_pic): Ditto.
10822 (thumb1_casesi_dispatch): Ditto.
10823 (*thumb1_indirect_jump): Ditto.
10824 (prologue_thumb1_interwork): Ditto.
10825 (*epilogue_insns): Ditto.
10826 (consttable_1): Ditto.
10827 (consttable_2): Ditto.
10828 (tablejump): Ditto.
10829 (*thumb1_tablejump): Ditto.
10830 (thumb_eh_return): Ditto.
10831 (define_peephole2): Two of them are thumb1 only and got moved into
10832 new file thumb1.md.
10833 (define_split): Six of them are thumb1 only and got moved into new
10834 file thumb1.md.
10835 * config/arm/thumb1.md: New file comprised of above thumb1 only
10836 patterns.
10837
10838 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10839
10840 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
10841 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
10842 dependencies.
10843 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
10844 (aarch64_crc_builtin_datum): New struct.
10845 (aarch64_crc_builtin_data): New.
10846 (aarch64_init_crc32_builtins): New function.
10847 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
10848 (aarch64_crc32_expand_builtin): New.
10849 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
10850 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10851 __ARM_FEATURE_CRC32 when appropriate.
10852 (TARGET_CRC32): Define.
10853 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
10854 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
10855 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
10856 (aarch64_<crc_variant>): New pattern.
10857 * config/aarch64/arm_acle.h: New file.
10858 * config/aarch64/iterators.md (CRC): New int iterator.
10859 (crc_variant, crc_mode): New int attributes.
10860 * doc/aarch64-acle-intrinsics.texi: New file.
10861 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
10862 Include aarch64-acle-intrinsics.texi.
10863
10864 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
10865
10866 * tree-vect-data-refs.c (vect_grouped_store_supported): New
10867 check for stores group of length 3.
10868 (vect_permute_store_chain): New permutations for stores group of
10869 length 3.
10870 * tree-vect-stmts.c (vect_model_store_cost): Change cost
10871 of vec_perm_shuffle for the new permutations.
10872
10873 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
10874
10875 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
10876 table rewriting temporarily on targets not supporting ONE_ONLY.
10877
10878 2014-06-11 Richard Biener <rguenther@suse.de>
10879
10880 PR middle-end/61437
10881 Revert
10882 2014-06-04 Richard Biener <rguenther@suse.de>
10883
10884 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
10885 TREE_PUBLIC and DECL_EXTERNAL decls.
10886
10887 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
10888
10889 * varasm.c (set_implicit_section): New function.
10890 (resolve_unique_section): Use it to set implicit section
10891 for aliases, too.
10892 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
10893 (default_function_section): Likewise.
10894 (decl_binds_to_current_def_p): Constify argument.
10895 * varasm.h (decl_binds_to_current_def_p): Update prototype.
10896 * asan.c (asan_protect_global): Use
10897 symtab_get_node (decl)->implicit_section.
10898 * symtab.c (dump_symtab_base): Dump implicit sections.
10899 (verify_symtab_base): Verify sanity of sectoins and comdats.
10900 (symtab_resolve_alias): Alias share the section of its target.
10901 (set_section_1): New function.
10902 (symtab_node::set_section): Move here, recurse to aliases.
10903 (verify_symtab): Check for duplicated symtab lists.
10904 * tree-core.h (implicit_section_name_p): Remove.
10905 * tree-vect-data-refs.c: Include varasm.h.
10906 (vect_can_force_dr_alignment_p): Fix conditional on when
10907 decl bints to current definition; use
10908 symtab_get_node (decl)->implicit_section.
10909 * cgraph.c (cgraph_make_node_local_1): Fix section set.
10910 * cgraph.h (struct symtab_node): Add implicit_section.
10911 (set_section): Rename to ...
10912 (set_section_for_node): ... this one.
10913 (set_section): Declare.
10914 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
10915 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
10916 input_overwrite_node, input_varpool_node): Stream implicit_section.
10917 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
10918 removal; it will fail in LTO.
10919
10920 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10921
10922 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
10923 Change second alternative type to f_mcr.
10924 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
10925 and 12th alternatives' types to f_mcr and f_mrc.
10926 (*movdi_aarch64): Same for 12th and 13th alternatives.
10927 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
10928 (aarch64_movtilow_tilow): Change type to fmov.
10929
10930 2014-06-10 Jiong Wang <jiong.wang@arm.com>
10931
10932 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
10933 (aarch64_save_or_restore_callee_save_registers): Fix layout.
10934
10935 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10936
10937 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
10938 New expander.
10939 (aarch64_sqrdmulh_lane<mode>): Likewise.
10940 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
10941 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
10942 (aarch64_sqdmulh_laneq<mode>): New expander.
10943 (aarch64_sqrdmulh_laneq<mode>): Likewise.
10944 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
10945 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
10946 (aarch64_sqdmulh_lane<mode>): New expander.
10947 (aarch64_sqrdmulh_lane<mode>): Likewise.
10948 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
10949 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
10950 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
10951 (aarch64_sqdmlal_laneq<mode>): Likewise.
10952 (aarch64_sqdmlsl_lane<mode>): Likewise.
10953 (aarch64_sqdmlsl_laneq<mode>): Likewise.
10954 (aarch64_sqdmlal2_lane<mode>): Likewise.
10955 (aarch64_sqdmlal2_laneq<mode>): Likewise.
10956 (aarch64_sqdmlsl2_lane<mode>): Likewise.
10957 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
10958 (aarch64_sqdmull_lane<mode>): Likewise.
10959 (aarch64_sqdmull_laneq<mode>): Likewise.
10960 (aarch64_sqdmull2_lane<mode>): Likewise.
10961 (aarch64_sqdmull2_laneq<mode>): Likewise.
10962
10963 2014-06-10 Richard Biener <rguenther@suse.de>
10964
10965 PR tree-optimization/61438
10966 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
10967 (eliminate_dom_walker::before_dom_children): Only try to inhibit
10968 insertion of IVs if running PRE.
10969 (eliminate): Adjust.
10970 (pass_pre::execute): Likewise.
10971 (pass_fre::execute): Likewise.
10972
10973 2014-06-10 Richard Biener <rguenther@suse.de>
10974
10975 PR middle-end/61456
10976 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10977 Do not use the main variant for the type comparison.
10978 (ncr_compar): Likewise.
10979 (nonoverlapping_component_refs_p): Likewise.
10980
10981 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
10982
10983 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
10984 REG_CFA_RESTORE mode.
10985
10986 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
10987
10988 * config/i386/i386.c (expand_vec_perm_pblendv): New.
10989 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
10990 expand_vec_perm_pblendv.
10991
10992 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10993
10994 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
10995 available.
10996 Simplify description of __crc32d and __crc32cd intrinsics.
10997 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
10998 availability.
10999
11000 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
11001
11002 PR lto/61334
11003 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
11004 * config.in: Regenerate.
11005 * configure: Likewise.
11006
11007 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
11008
11009 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
11010 and public vars.
11011 (intersect_static_var_sets): Remove.
11012 (propagate): Do not prune local statics.
11013
11014 2014-06-10 Jakub Jelinek <jakub@redhat.com>
11015
11016 PR fortran/60928
11017 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
11018 Set lastprivate_firstprivate even if omp_private_outer_ref
11019 langhook returns true.
11020 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
11021 langhook, call unshare_expr on new_var and call
11022 build_outer_var_ref to get the last argument.
11023
11024 2014-06-10 Marek Polacek <polacek@redhat.com>
11025
11026 PR c/60988
11027 * doc/extend.texi: Add cindex for transparent_union.
11028
11029 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
11030
11031 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
11032 init_symbolic_number ().
11033
11034 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
11035
11036 PR middle-end/61141
11037 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
11038 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
11039 (verify_rtl_sharing): Likewise.
11040
11041 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
11042
11043 PR c++/54442
11044 * tree.c (build_qualified_type): Use a canonical type for
11045 TYPE_CANONICAL.
11046
11047 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11048
11049 * config/arm/arm-modes.def: Remove XFmode.
11050
11051 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
11052
11053 PR target/61062
11054 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
11055 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
11056 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
11057 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
11058 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
11059 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
11060 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
11061 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
11062 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
11063
11064 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
11065
11066 * tree-core.h (tree_decl_with_vis): Remove section_name.
11067
11068 2014-06-09 Kito Cheng <kito@0xlab.org>
11069
11070 * ira.c (ira): Don't call init_caller_save if LRA enabled
11071 since LRA use its own infrastructure to handle that.
11072
11073 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11074
11075 * symtab.c (dump_symtab_base): Update dumping.
11076 (symtab_make_decl_local): Clear only DECL_COMDAT.
11077 * tree-vect-data-refs.c (Check that variable is static before
11078 tampering with sections.
11079 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
11080 (cgraph_create_virtual_clone): Likewise.
11081 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
11082 (decl_section_name, set_decl_section_name): New accessors.
11083 (find_decls_types_r): Do not walk section name
11084 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
11085 (decl_comdat_group, decl_comdat_group_id): Constify.
11086 (decl_section_name, set_decl_section_name): Update.
11087 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
11088 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
11089 (cgraph_make_node_local_1): Clear section and comdat group.
11090 * cgraph.h (set_comdat_group): Sanity check.
11091 (get_section, set_section): New.
11092 * ipa-comdats.c (ipa_comdats): Use get_section.
11093 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
11094 * lto-streamer-out.c: Do not follow section names.
11095 * c-family/c-common.c (handle_section_attribute): Update.
11096 * lto-cgraph.c (lto_output_node): Output section.
11097 (lto_output_varpool_node): Likewise.
11098 (read_comdat_group): Rename to ...
11099 (read_identifier): ... this one.
11100 (read_string_cst): New function.
11101 (input_node, input_varpool_node): Input section names.
11102 * tree-emutls.c (get_emutls_init_templ_addr): Update.
11103 (new_emutls_decl): Update.
11104 (secname_for_decl): Check section names only of static vars.
11105 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
11106 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
11107 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
11108 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
11109 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
11110 * config/mcore/mcore.c (mcore_unique_section): Likewise.
11111 * config/mips/mips.c (mips16_build_function_stub): Likewise.
11112 * config/v850/v850.c (v850_insert_attributes): Likewise.
11113 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
11114 Likewise.
11115 (h8300_handle_tiny_data_attribute): Likewise.
11116 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
11117 (bfin_handle_l2_attribute): Likewise.
11118
11119 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11120
11121 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
11122 remove static initializer.
11123
11124 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11125
11126 * varasm.c (use_blocks_for_decl_p): Check symbol table
11127 instead of alias attribute.
11128 (place_block_symbol): Recurse on aliases.
11129
11130 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11131
11132 * ipa-visibility.c: Include varasm.h
11133 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
11134
11135 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
11136
11137 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
11138 outputting aliases.
11139
11140 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
11141
11142 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
11143 from test_insn into GGC space escape via SET_SRC.
11144
11145 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
11146
11147 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
11148 call statement, if any.
11149 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
11150 statements, if any. Tidy up.
11151
11152 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
11153
11154 PR target/61431
11155 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
11156 iterators, VSX_D that handles 64-bit types, and VSX_LE that
11157 handles swapping the two 64-bit double words on little endian
11158 systems. Include V1TImode and optionally TImode in VSX_LE so that
11159 these types are properly swapped. Change all of the insns and
11160 splits that do the 64-bit swaps to use VSX_LE.
11161 (vsx_le_perm_load_<mode>): Likewise.
11162 (vsx_le_perm_store_<mode>): Likewise.
11163 (splitters for little endian memory operations): Likewise.
11164 (vsx_xxpermdi2_le_<mode>): Likewise.
11165 (vsx_lxvd2x2_le_<mode>): Likewise.
11166 (vsx_stxvd2x2_le_<mode>): Likewise.
11167
11168 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
11169
11170 PR target/61423
11171 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
11172 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
11173 and corresponding splitters. Zero extend general register
11174 or memory input operand to XMM temporary. Enable for
11175 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
11176 (floatunssi<mode>2): Update expander predicate.
11177
11178 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
11179
11180 PR rtl-optimization/61325
11181 * lra-constraints.c (process_address_1): Check scale equal to one
11182 to prevent transformation: base + scale * index => base + new_reg.
11183
11184 2014-06-06 Richard Biener <rguenther@suse.de>
11185
11186 PR tree-optimization/59299
11187 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
11188 a def operand.
11189 (nearest_common_dominator_of_uses): Likewise.
11190 (statement_sink_location): Adjust. Support sinking loads.
11191
11192 2014-06-06 Martin Jambor <mjambor@suse.cz>
11193
11194 * ipa-prop.c (get_place_in_agg_contents_list): New function.
11195 (build_agg_jump_func_from_list): Likewise.
11196 (determine_known_aggregate_parts): Renamed to
11197 determine_locally_known_aggregate_parts. Moved some functionality
11198 to the two functions above, removed bound checks.
11199
11200 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
11201
11202 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
11203 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
11204 (aarch64_progress_pointer): Likewise.
11205 (aarch64_copy_one_part_and_move_pointers): Likewise.
11206 (aarch64_expand_movmen): Likewise.
11207 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
11208 * config/aarch64/aarch64.md (movmem<mode>): New.
11209
11210 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
11211
11212 * targhooks.c (default_add_stmt_cost): Call target specific
11213 hook instead of default one.
11214
11215 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
11216
11217 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
11218 endianness instead of host endianness.
11219 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
11220 comments.
11221
11222 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
11223
11224 PR debug/53927
11225 * function.c (instantiate_decls): Process the saved static chain.
11226 (expand_function_start): If not optimizing, save the static chain
11227 onto the stack.
11228 * tree-nested.c (convert_all_function_calls): Always create the static
11229 chain for nested functions if not optimizing.
11230
11231 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
11232
11233 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
11234
11235 2014-06-06 Richard Biener <rguenther@suse.de>
11236
11237 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
11238 (construct_init_block): Likewise.
11239 (construct_exit_block): Likewise.
11240 (pass_expand::execute): Likewise.
11241 * graphite.c (graphite_transforms): Replace check for current_loops
11242 with a check for > 1 loops.
11243 (pass_graphite_transforms::execute): Adjust.
11244 * ipa-split.c (split_function): Remove check for current_loops.
11245 * omp-low.c (expand_parallel_call): Likewise.
11246 (expand_omp_for_init_counts): Likewise.
11247 (extract_omp_for_update_vars): Likewise.
11248 (expand_omp_for_generic): Likewise.
11249 (expand_omp_sections): Likewise.
11250 (expand_omp_target): Likewise.
11251 * tracer.c (tail_duplicate): Likewise.
11252 (pass_tracer::execute): Likewise.
11253 * trans-mem.c (expand_transaction): Likewise.
11254 * tree-complex.c (expand_complex_div_wide): Likewise.
11255 * tree-eh.c (lower_resx): Likewise.
11256 (cleanup_empty_eh_merge_phis): Likewise.
11257 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
11258 current_loops with a check for > 1 loops.
11259 (pass_predcom::execute): Adjust.
11260 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
11261 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
11262 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
11263 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
11264 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
11265 * tree-switch-conversion.c (process_switch): Likewise.
11266 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
11267 * tree-vrp.c (vrp_visit_phi_node): Likewise.
11268 (execute_vrp): Likewise.
11269 * ubsan.c (ubsan_expand_null_ifn): Likewise.
11270
11271 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
11272
11273 * rtl.h (insn_location): Declare.
11274 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
11275 with UNKNOWN_LOCATION.
11276 * emit-rtl.c (insn_location): New function.
11277 * final.c (notice_source_line): Check that the instruction has a
11278 location before retrieving it and use insn_location.
11279 * modulo-sched.c (loop_single_full_bb_p): Likewise.
11280 * print-rtl.c (print_rtx): Likewise.
11281
11282 2014-06-06 Richard Biener <rguenther@suse.de>
11283
11284 * passes.def: Move 2nd VRP pass before phi-only-cprop.
11285
11286 2014-06-06 Christian Bruel <christian.bruel@st.com>
11287
11288 PR tree-optimization/43934
11289 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
11290 cost.
11291
11292 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
11293
11294 * ira-lives.c (single_reg_class): Add missing break. Explicitly
11295 return NO_REGS for extra address and memory constraints. Handle
11296 operands that match (or are equivalent to something that matches)
11297 extra constant constraints. Ignore other non-register operands.
11298
11299 2014-06-06 Alan Modra <amodra@gmail.com>
11300
11301 PR target/61300
11302 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
11303 * doc/tm.texi: Regenerate.
11304 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
11305 Use throughout in place of REG_PARM_STACK_SPACE.
11306 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
11307 "incoming" param. Pass to rs6000_function_parms_need_stack.
11308 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
11309 prototype_p when incoming. Use function decl when incoming
11310 to handle K&R style functions.
11311 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
11312 (INCOMING_REG_PARM_STACK_SPACE): Define.
11313
11314 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11315
11316 PR target/52472
11317 * cfgexpand.c (expand_debug_expr): Use address space of nested
11318 TREE_TYPE for ADDR_EXPR and MEM_REF.
11319
11320 2014-06-05 Jeff Law <law@redhat.com>
11321
11322 PR tree-optimization/61289
11323 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
11324 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
11325 looking for those which match LHS. All callers changed.
11326 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
11327 parameters and code which manipulated them. All callers changed.
11328 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
11329 and DST_MAP parameters. Simplify invalidation code by just calling
11330 invalidate_equivalences. All callers changed.
11331 (thread_across_edge): Simplify now that we don't need to maintain
11332 the map of equivalences to invalidate.
11333
11334 2014-06-05 Kai Tietz <ktietz@redhat.com>
11335 Richard Henderson <rth@redhat.com>
11336
11337 PR target/46219
11338 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
11339 checking for !TARGET_X32.
11340 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
11341 (sibcall_intern): New define_insn, plus required peepholes.
11342 (sibcall_pop_intern): Likewise.
11343 (sibcall_value_intern): Likewise.
11344 (sibcall_value_pop_intern): Likewise.
11345
11346 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
11347
11348 * tree-inline.c (tree_function_versioning): Check DF info existence
11349 before accessing it.
11350
11351 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11352
11353 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
11354 frame_size.
11355 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
11356 aarch64_frame hard_fp_offset and frame_size.
11357 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
11358 frame_size; remove original_frame_size.
11359 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
11360 (aarch64_initial_elimination_offset): Remove frame_size and
11361 offset. Use aarch64_frame frame_size.
11362
11363 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11364 Jiong Wang <jiong.wang@arm.com>
11365 Renlin <renlin.li@arm.com>
11366
11367 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
11368 initialization of R30 offset. Update offset. Iterate core
11369 regisers upto X30. Remove X29, X30 specific code.
11370
11371 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11372 Jiong Wang <jiong.wang@arm.com>
11373
11374 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
11375 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
11376 (aarch64_register_saved_on_entry): Adjust test.
11377
11378 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11379
11380 * config/aarch64/aarch64.h (machine_function): Move
11381 saved_varargs_size from here...
11382 (aarch64_frame): ... to here.
11383
11384 * config/aarch64/aarch64.c (aarch64_expand_prologue)
11385 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
11386 (aarch64_initial_elimination_offset)
11387 (aarch64_setup_incoming_varargs): Adjust location of
11388 saved_varargs_size.
11389
11390 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
11391
11392 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
11393 layout comment.
11394
11395 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
11396 Prachi Godbole <Prachi.Godbole@imgtec.com>
11397
11398 * config/mips/mips-cpus.def: Add definition for p5600. Updated
11399 mips32r5 entry to use PROCESSOR_P5600.
11400 * config/mips/mips-tables.opt: Regenerate.
11401 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
11402 * config/mips/mips.c (mips_fmadd_bypass): New function.
11403 (mips_rtx_cost_data): Add costs for p5600.
11404 (mips_issue_rate): Add support for p5600.
11405 (mips_multipass_dfa_lookahead): Likewise.
11406 * config/mips/mips.h (TUNE_P5600): New define.
11407 (TUNE_MACC_CHAINS): Add TUNE_P5600.
11408 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
11409 * config/mips/mips.md: Include p5600.md.
11410 (processor): Add p5600.
11411 * config/mips/p5600.md: New file.
11412
11413 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
11414
11415 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
11416 * config/i386/predicates.md (palignr_operand): New.
11417 Indicates if permutation is suitable for palignr instruction.
11418
11419 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
11420
11421 PR tree-optimization/61319
11422 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11423 stmt belongs to loop.
11424
11425 2014-06-05 Richard Biener <rguenther@suse.de>
11426
11427 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
11428 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
11429 (lookup_tmp_var): Adjust.
11430 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
11431
11432 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11433
11434 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
11435
11436 2014-06-05 Marek Polacek <polacek@redhat.com>
11437
11438 PR c/49706
11439 * doc/invoke.texi: Document -Wlogical-not-parentheses.
11440
11441 2014-06-04 Tom de Vries <tom@codesourcery.com>
11442
11443 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
11444 CONST_INT.
11445
11446 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
11447
11448 PR tree-optimization/61385
11449 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
11450
11451 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
11452
11453 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
11454 changed to use fatal_error.
11455 (main): Ensure lto_wrapper_cleanup is run atexit.
11456
11457 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
11458
11459 * lra-constraints.c (valid_address_p): Move earlier in file.
11460 (address_eliminator): New structure.
11461 (satisfies_memory_constraint_p): New function.
11462 (satisfies_address_constraint_p): Likewise.
11463 (process_alt_operands, process_address, curr_insn_transform): Use them.
11464
11465 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
11466
11467 * lra-int.h (lra_static_insn_data): Make operand_alternative a
11468 const pointer.
11469 (target_lra_int, default_target_lra_int, this_target_lra_int)
11470 (op_alt_data): Delete.
11471 * lra.h (lra_init): Delete.
11472 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
11473 (init_insn_code_data_once): Remove op_alt_data handling.
11474 (finish_insn_code_data_once): Likewise.
11475 (init_op_alt_data): Delete.
11476 (get_static_insn_data): Initialize operand_alternative to null.
11477 (free_insn_recog_data): Cast operand_alternative before freeing it.
11478 (setup_operand_alternative): Take the operand_alternative as
11479 parameter and assume it isn't already cached in the static
11480 insn data.
11481 (lra_set_insn_recog_data): Update accordingly.
11482 (lra_init): Delete.
11483 * ira.c (ira_init): Don't call lra_init.
11484 * target-globals.h (this_target_lra_int): Declare.
11485 (target_globals): Remove lra_int.
11486 (restore_target_globals): Update accordingly.
11487 * target-globals.c: Don't include lra-int.h.
11488 (default_target_globals, save_target_globals): Remove lra_int.
11489
11490 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
11491
11492 * recog.h (operand_alternative): Convert reg_class, reject,
11493 matched and matches into bitfields.
11494 (preprocess_constraints): New overload.
11495 (preprocess_insn_constraints): New function.
11496 (preprocess_constraints): Take the insn as parameter.
11497 (recog_op_alt): Change into a pointer.
11498 (target_recog): Add x_op_alt.
11499 * recog.c (asm_op_alt): New variable.
11500 (recog_op_alt): Change into a pointer.
11501 (preprocess_constraints): New overload, replacing the old function
11502 definition with one that doesn't use global state.
11503 (preprocess_insn_constraints): New function.
11504 (preprocess_constraints): Use them. Take the insn as parameter.
11505 Use asm_op_alt for asms.
11506 (recog_init): Free existing x_op_alt entries.
11507 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
11508 pointer const.
11509 (make_early_clobber_and_input_conflicts): Likewise.
11510 (process_bb_node_lives): Pass the insn to process_constraints.
11511 * reg-stack.c (check_asm_stack_operands): Likewise.
11512 (subst_asm_stack_regs): Likewise.
11513 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
11514 * regrename.c (build_def_use): Likewise.
11515 * sched-deps.c (sched_analyze_insn): Likewise.
11516 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
11517 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
11518 (note_invalid_constants): Likewise.
11519 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
11520 (ix86_legitimate_combined_insn): Make operand_alternative pointer
11521 const.
11522
11523 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
11524
11525 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
11526 * ira-lives.c (check_and_make_def_conflict): Check for disabled
11527 alternatives.
11528 (make_early_clobber_and_input_conflicts): Likewise.
11529 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
11530
11531 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
11532
11533 * recog.h (alternative_class): New function.
11534 (which_op_alt): Return a const recog_op_alt.
11535 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
11536 (subst_asm_stack_regs): Likewise.
11537 * config/arm/arm.c (note_invalid_constants): Likewise.
11538 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
11539 the operand_alternative; use alternative class instead.
11540 * sel-sched.c (get_reg_class): Likewise.
11541 * regrename.c (build_def_use): Likewise.
11542 (hide_operands, restore_operands, record_out_operands): Update type
11543 accordingly.
11544
11545 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
11546
11547 * recog.h (recog_op_alt): Convert to a flat array.
11548 (which_op_alt): New function.
11549 * recog.c (recog_op_alt): Convert to a flat array.
11550 (preprocess_constraints): Update accordingly, grouping all
11551 operands of the same alternative together, rather than the
11552 other way around.
11553 * ira-lives.c (check_and_make_def_conflict): Likewise.
11554 (make_early_clobber_and_input_conflicts): Likewise.
11555 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
11556 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
11557 (subst_asm_stack_regs): Likewise.
11558 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
11559 * regrename.c (hide_operands, record_out_operands): Likewise.
11560 (build_def_use): Likewise.
11561 * sel-sched.c (get_reg_class): Likewise.
11562 * config/arm/arm.c (note_invalid_constants): Likewise.
11563
11564 2014-06-04 Jason Merrill <jason@redhat.com>
11565
11566 PR c++/51253
11567 PR c++/61382
11568 * gimplify.c (gimplify_arg): Non-static.
11569 * gimplify.h: Declare it.
11570
11571 2014-06-04 Richard Biener <rguenther@suse.de>
11572
11573 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
11574 TREE_PUBLIC and DECL_EXTERNAL decls.
11575
11576 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
11577
11578 * regcprop.c (copyprop_hardreg_forward_1): Account for
11579 HARD_REGNO_CALL_PART_CLOBBERED.
11580
11581 2014-06-04 Richard Biener <rguenther@suse.de>
11582
11583 * configure.ac: Check whether the underlying type of int64_t
11584 is long or long long.
11585 * configure: Regenerate.
11586 * config.in: Likewise.
11587 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
11588 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
11589
11590 2014-06-04 Richard Biener <rguenther@suse.de>
11591
11592 PR tree-optimization/60098
11593 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
11594 we hit a kill.
11595 (dse_optimize_stmt): Simplify, now that we found a kill
11596 earlier.
11597
11598 2014-06-04 Richard Biener <rguenther@suse.de>
11599
11600 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
11601 of accesses with non-invariant address.
11602
11603 2014-06-04 Martin Liska <mliska@suse.cz>
11604
11605 * cgraph.h (cgraph_make_wrapper): New function introduced.
11606 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
11607 * ipa-inline.h (inline_analyze_function): The function is global.
11608 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
11609
11610 2014-06-04 Martin Liska <mliska@suse.cz>
11611
11612 * tree.h (private_lookup_attribute_starting): New function.
11613 (lookup_attribute_starting): Likewise.
11614 * tree.c (private_lookup_attribute_starting): Likewise.
11615
11616 2014-06-04 Martin Liska <mliska@suse.cz>
11617
11618 * cgraph.h (expand_thunk): New argument added.
11619 (address_taken_from_non_vtable_p): New global function.
11620 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
11621 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
11622 * cgraphunit.c (analyze_function): Likewise.
11623 (assemble_thunks_and_aliases): Argument added to call.
11624 (expand_thunk): New argument forces to produce GIMPLE thunk.
11625
11626 2014-06-04 Martin Liska <mliska@suse.cz>
11627
11628 * coverage.h (coverage_compute_cfg_checksum): Argument added.
11629 * coverage.c (coverage_compute_cfg_checksum): Likewise.
11630 * profile.c (branch_prob): Likewise.
11631
11632 2014-06-04 Martin Jambor <mjambor@suse.cz>
11633
11634 PR ipa/61340
11635 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
11636 handler for switch on an ipa_ref_use enum.
11637 * ipa-reference.c (analyze_function): Likewise.
11638
11639 2014-06-04 Kai Tietz <ktietz@redhat.com>
11640
11641 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
11642 from old call-instruction.
11643
11644 2014-06-04 Bin Cheng <bin.cheng@arm.com>
11645
11646 * config/aarch64/aarch64.c (aarch64_classify_address)
11647 (aarch64_legitimize_reload_address): Support full addressing modes
11648 for vector modes.
11649 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
11650 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
11651
11652 2014-06-03 Andrew Pinski <apinski@cavium.com>
11653
11654 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
11655 for OP0.
11656
11657 2014-06-03 Andrew Pinski <apinski@cavium.com>
11658
11659 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
11660 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
11661
11662 2014-06-03 Kai Tietz <ktietz@redhat.com>
11663
11664 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
11665 for 64-bit ms-abi.
11666
11667 2014-06-03 Dehao Chen <dehao@google.com>
11668
11669 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
11670 the same loop.
11671
11672 2014-06-03 Marek Polacek <polacek@redhat.com>
11673
11674 PR c/60439
11675 * doc/invoke.texi: Document -Wswitch-bool.
11676 * function.c (stack_protect_epilogue): Cast controlling expression of
11677 the switch to int.
11678 * gengtype.c (walk_type): Generate switch expression with its
11679 controlling expression cast to int.
11680
11681 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
11682
11683 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
11684 and attiny841.
11685 * config/avr/avr-tables.opt: Regenerate.
11686 * config/avr/t-multilib: Regenerate.
11687 * doc/avr-mmcu.texi: Regenerate.
11688
11689 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
11690 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11691
11692 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
11693 (ata6617c, ata664251): Add new avr35 devices.
11694 (ata6612c): Add new avr4 device.
11695 (ata6613c, ata6614q): Add new avr5 devices.
11696 * config/avr/avr-tables.opt: Regenerate.
11697 * config/avr/t-multilib: Regenerate.
11698 * doc/avr-mmcu.texi: Regenerate.
11699
11700 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
11701
11702 * gcc/config/aarch64/aarch64-builtins.c
11703 (aarch64_types_binop_ssu_qualifiers): New static data.
11704 (TYPES_BINOP_SSU): Define.
11705 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
11706 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
11707 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
11708 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
11709 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
11710 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
11711 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
11712 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
11713 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
11714 suffix to builtin function name, remove cast.
11715 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
11716 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
11717 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
11718
11719 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
11720
11721 * gcc/config/aarch64/aarch64-builtins.c
11722 (aarch64_types_binop_uus_qualifiers,
11723 aarch64_types_shift_to_unsigned_qualifiers,
11724 aarch64_types_unsigned_shiftacc_qualifiers): Define.
11725 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
11726 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
11727 sqshlu_n, uqshl_n): Update qualifiers.
11728 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
11729 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
11730 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
11731 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
11732 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
11733 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
11734 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
11735 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
11736 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
11737 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
11738 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
11739 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
11740 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
11741 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
11742 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
11743 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
11744 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
11745 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
11746 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
11747 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
11748 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
11749 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
11750 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
11751 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
11752 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
11753 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
11754 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
11755
11756 2014-06-03 Teresa Johnson <tejohnson@google.com>
11757
11758 * tree-sra.c (modify_function): Record caller nodes after rebuild.
11759
11760 2014-06-02 Jason Merrill <jason@redhat.com>
11761
11762 PR c++/61020
11763 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
11764
11765 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
11766
11767 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
11768 location == 0.
11769
11770 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
11771
11772 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
11773 New pattern.
11774 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
11775 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
11776 * config/aarch64/iterators.md (REVERSE): New iterator.
11777 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
11778 (rev_op): New int_attribute.
11779 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
11780 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
11781 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
11782 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
11783 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
11784 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
11785 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
11786 Replace temporary __asm__ with __builtin_shuffle.
11787
11788 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
11789
11790 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
11791 mips64r5.
11792 * config/mips/mips-tables.opt: Regenerate.
11793 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
11794 to use mips_isa_rev rather than ISA_MIPS32R2.
11795 * config/mips/mips.h (ISA_MIPS32R3): New define.
11796 (ISA_MIPS32R5): New define.
11797 (ISA_MIPS64R3): New define.
11798 (ISA_MIPS64R5): New define.
11799 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
11800 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
11801 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
11802 and mips64r5.
11803 (MIPS_ISA_SYNCI_SPEC): Likewise.
11804 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
11805 (LINK_SPEC): Added mips32r3 and mips32r5.
11806 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
11807 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
11808 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
11809 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
11810 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
11811 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
11812 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
11813
11814 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
11815
11816 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
11817 options.
11818 * config/mips/mips.opt (mxpa): New option.
11819 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
11820 assembler.
11821
11822 2014-06-03 Martin Jambor <mjambor@suse.cz>
11823
11824 PR ipa/61160
11825 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
11826 thunks.
11827
11828 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
11829
11830 PR tree-optimization/61328
11831 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
11832 initialization from find_bswap_or_nop_1.
11833 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
11834 in source_expr2 before using the size value the function sets. Also
11835 make use of init_symbolic_number () in both the old place and
11836 find_bswap_or_nop_load () to avoid reading uninitialized memory when
11837 doing recursion in the GIMPLE_BINARY_RHS case.
11838
11839 2014-06-03 Richard Biener <rguenther@suse.de>
11840
11841 PR tree-optimization/61383
11842 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
11843 stmts can't trap.
11844
11845 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
11846
11847 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
11848 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
11849 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
11850 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
11851 in this file.
11852 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
11853 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
11854 * system.h: ...here and make it unconditional.
11855 * target.def (conditional_register_usage): Mention
11856 define_register_constraint instead of old-style constraint macros.
11857 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
11858 * doc/tm.texi: Regenerate.
11859 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
11860 protected by !USE_MD_CONSTRAINTS.
11861 * config/frv/frv.md: Remove quote from old version of documentation.
11862 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
11863 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
11864 CONST_DOUBLE_OK_FOR_LETTER.
11865 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
11866
11867 2014-06-02 Andrew Pinski <apinski@cavium.com>
11868
11869 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
11870 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
11871 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
11872 file whose name depends on -mabi= and -mbig-endian.
11873 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
11874 Handle LP64 better and handle ilp32 too.
11875 (MULTILIB_OPTIONS): Delete.
11876 (MULTILIB_DIRNAMES): Delete.
11877
11878 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
11879
11880 * expr.h: Remove prototypes of functions defined in builtins.c.
11881 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
11882 Remove prototypes of functions defined in builtins.c.
11883 * builtins.h: Update prototype list to include all exported functions.
11884 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
11885 no_c99_libc_has_function): Move to targhooks.c
11886 (build_string_literal, build_call_expr_loc_array,
11887 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
11888 to tree.c.
11889 (expand_builtin_object_size, fold_builtin_object_size): Make static.
11890 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
11891 no_c99_libc_has_function): Relocate from builtins.c.
11892 * tree.c: Include builtins.h.
11893 (build_call_expr_loc_array, build_call_expr_loc_vec,
11894 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
11895 from builtins.c.
11896 * fold-const.h (fold_fma): Move prototype to builtins.h.
11897 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
11898 * asan.c: Include builtins.h.
11899 * cfgexpand.c: Likewise.
11900 * convert.c: Likewise.
11901 * emit-rtl.c: Likewise.
11902 * except.c: Likewise.
11903 * expr.c: Likewise.
11904 * fold-const.c: Likewise.
11905 * gimple-fold.c: Likewise.
11906 * gimple-ssa-strength-reduction.c: Likewise.
11907 * gimplify.c: Likewise.
11908 * ipa-inline.c: Likewise.
11909 * ipa-prop.c: Likewise.
11910 * lto-streamer-out.c: Likewise.
11911 * stmt.c: Likewise.
11912 * tree-inline.c: Likewise.
11913 * tree-object-size.c: Likewise.
11914 * tree-sra.c: Likewise.
11915 * tree-ssa-ccp.c: Likewise.
11916 * tree-ssa-forwprop.c: Likewise.
11917 * tree-ssa-loop-ivcanon.c: Likewise.
11918 * tree-ssa-loop-ivopts.c: Likewise.
11919 * tree-ssa-math-opts.c: Likewise.
11920 * tree-ssa-reassoc.c: Likewise.
11921 * tree-ssa-threadedge.c: Likewise.
11922 * tree-streamer-in.c: Likewise.
11923 * tree-vect-data-refs.c: Likewise.
11924 * tree-vect-patterns.c: Likewise.
11925 * tree-vect-stmts.c: Likewise.
11926 * config/aarch64/aarch64.c: Likewise.
11927 * config/alpha/alpha.c: Likewise.
11928 * config/arc/arc.c: Likewise.
11929 * config/arm/arm.c: Likewise.
11930 * config/avr/avr.c: Likewise.
11931 * config/bfin/bfin.c: Likewise.
11932 * config/c6x/c6x.c: Likewise.
11933 * config/cr16/cr16.c: Likewise.
11934 * config/cris/cris.c: Likewise.
11935 * config/epiphany/epiphany.c: Likewise.
11936 * config/fr30/fr30.c: Likewise.
11937 * config/frv/frv.c: Likewise.
11938 * config/h8300/h8300.c: Likewise.
11939 * config/i386/i386.c: Likewise.
11940 * config/i386/winnt.c: Likewise.
11941 * config/ia64/ia64.c: Likewise.
11942 * config/iq2000/iq2000.c: Likewise.
11943 * config/lm32/lm32.c: Likewise.
11944 * config/m32c/m32c.c: Likewise.
11945 * config/m32r/m32r.c: Likewise.
11946 * config/m68k/m68k.c: Likewise.
11947 * config/mcore/mcore.c: Likewise.
11948 * config/mep/mep.c: Likewise.
11949 * config/microblaze/microblaze.c: Likewise.
11950 * config/mips/mips.c: Likewise.
11951 * config/mmix/mmix.c: Likewise.
11952 * config/mn10300/mn10300.c: Likewise.
11953 * config/moxie/moxie.c: Likewise.
11954 * config/msp430/msp430.c: Likewise.
11955 * config/nds32/nds32.c: Likewise.
11956 * config/pa/pa.c: Likewise.
11957 * config/pdp11/pdp11.c: Likewise.
11958 * config/picochip/picochip.c: Likewise.
11959 * config/rl78/rl78.c: Likewise.
11960 * config/rs6000/rs6000.c: Likewise.
11961 * config/rx/rx.c: Likewise.
11962 * config/s390/s390.c: Likewise.
11963 * config/score/score.c: Likewise.
11964 * config/sh/sh.c: Likewise.
11965 * config/sparc/sparc.c: Likewise.
11966 * config/spu/spu.c: Likewise.
11967 * config/stormy16/stormy16.c: Likewise.
11968 * config/tilegx/tilegx.c: Likewise.
11969 * config/tilepro/tilepro.c: Likewise.
11970 * config/v850/v850.c: Likewise.
11971 * config/vax/vax.c: Likewise.
11972 * config/xtensa/xtensa.c: Likewise.
11973
11974 2014-06-02 Jeff Law <law@redhat.com>
11975
11976 PR rtl-optimization/61094
11977 * ree.c (combine_reaching_defs): Do not reextend an insn if it
11978 was marked as do_no_reextend. If a copy is needed to eliminate
11979 an extension, then mark it as do_not_reextend.
11980
11981 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
11982
11983 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
11984
11985 2014-06-02 Richard Henderson <rth@redhat.com>
11986
11987 PR target/61336
11988 * config/alpha/alpha.c (print_operand_address): Allow symbolic
11989 addresses inside asms. Use output_operand_lossage instead of
11990 gcc_unreachable.
11991
11992 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
11993
11994 PR target/61239
11995 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
11996 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
11997
11998 2014-06-02 Tom de Vries <tom@codesourcery.com>
11999
12000 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
12001 case that x has VOIDmode.
12002
12003 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
12004
12005 * varasm.c (copy_constant): Delete function.
12006 (build_constant_desc): Don't call it.
12007
12008 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12009
12010 PR target/61154
12011 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
12012 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
12013 with immediate_operand.
12014
12015 2014-06-02 Andreas Schwab <schwab@suse.de>
12016
12017 * config/ia64/ia64.c
12018 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
12019 pending_data_specs first.
12020
12021 2014-06-02 Richard Biener <rguenther@suse.de>
12022
12023 PR tree-optimization/61378
12024 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
12025 valueized_anything.
12026
12027 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
12028
12029 * config/i386/constraints.md (Bw): Rename from 'w'.
12030 (Bz): Rename from 'z'.
12031 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
12032
12033 2014-06-01 Kai Tietz <ktietz@redhat.com>
12034
12035 PR target/61377
12036 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
12037 * config/i386/i386.md (sibcall_insn_operand): Use Bs
12038 instead of m constraint.
12039
12040 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
12041
12042 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
12043 a separate alternative where the scratch operand 2 is marked as
12044 early clobber.
12045
12046 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
12047
12048 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
12049 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
12050 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
12051 and __builtins_arm_get_fpscr.
12052 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
12053 __builtins_arm_get_fpscr.
12054 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
12055 __builtins_arm_ldfpscr.
12056 (arm_atomic_assign_expand_fenv): New function.
12057 * config/arm/vfp.md (set_fpscr): New pattern.
12058 (get_fpscr) : Likewise.
12059 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
12060 VUNSPEC_SET_FPSCR.
12061 * doc/extend.texi (AARCH64 Built-in Functions) : Document
12062 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
12063
12064 2014-05-30 Jakub Jelinek <jakub@redhat.com>
12065
12066 * asan.c (report_error_func): Add SLOW_P argument, use
12067 BUILT_IN_ASAN_*_N if set.
12068 (build_check_stmt): Likewise.
12069 (instrument_derefs): If T has insufficient alignment,
12070 force same handling as for odd sizes.
12071
12072 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
12073 BUILT_IN_ASAN_REPORT_STORE_N): New.
12074 * asan.c (struct asan_mem_ref): Change access_size type to
12075 HOST_WIDE_INT.
12076 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
12077 update_mem_ref_hash_table): Likewise.
12078 (asan_mem_ref_hasher::hash): Hash in a HWI.
12079 (report_error_func): Change size_in_bytes argument to HWI.
12080 Use *_N builtins if size_in_bytes is larger than 16 or not power of
12081 two.
12082 (build_shadow_mem_access): New function.
12083 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
12084 Handle size_in_bytes not power of two or larger than 16.
12085 (instrument_derefs): Don't give up if size_in_bytes is not
12086 power of two or is larger than 16.
12087
12088 2014-05-30 Kai Tietz <ktietz@redhat.com>
12089
12090 PR target/60104
12091 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
12092 for sibling-tail-calls.
12093 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
12094 to its use.
12095 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
12096 (sibcall_insn_operand): Add check for sibcall_memory_operand.
12097
12098 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12099
12100 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
12101 * config/avr/avr-tables.opt: Regenerate.
12102 * config/avr/t-multilib: Regenerate.
12103 * doc/avr-mmcu.texi: Regenerate.
12104
12105 2014-05-30 Ian Lance Taylor <iant@google.com>
12106
12107 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
12108 target("sse").
12109
12110 2014-05-30 Tom de Vries <tom@codesourcery.com>
12111
12112 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
12113 Redefine as true.
12114
12115 2014-05-30 Tom de Vries <tom@codesourcery.com>
12116
12117 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
12118 * lra.c (initialize_lra_reg_info_element): Add init of
12119 actual_call_used_reg_set field.
12120 (lra): Call lra_create_live_ranges before lra_inheritance for
12121 -fuse-caller-save.
12122 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
12123 -fuse-caller-save.
12124 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
12125 instead of call_used_reg_set for -fuse-caller-save.
12126 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
12127
12128 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12129
12130 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
12131 to mov_imm.
12132 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
12133
12134 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
12135
12136 * ira.c (ira_get_dup_out_num): Check for output operands at
12137 the start of the loop. Handle cases where an included alternative
12138 follows an excluded one.
12139
12140 2014-05-29 Mike Stump <mikestump@comcast.net>
12141
12142 PR debug/61352
12143 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
12144 post ld passes when lto is used.
12145
12146 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
12147
12148 PR rtl-optimization/61325
12149 * lra-constraints.c (process_address): Rename to process_address_1.
12150 (process_address): New function.
12151
12152 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
12153
12154 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
12155 TYPES_BINOPV): New static data.
12156 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
12157 New builtin.
12158 * config/aarch64/aarch64-simd.md (aarch64_ext,
12159 aarch64_im_lane_boundsi): New patterns.
12160 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
12161 patterns for EXT.
12162 (aarch64_evpc_ext): New function.
12163
12164 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
12165
12166 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
12167 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
12168 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
12169 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
12170 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
12171
12172 2014-05-29 Tom de Vries <tom@codesourcery.com>
12173
12174 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
12175
12176 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
12177 Richard Sandiford <rdsandiford@googlemail.com>
12178
12179 * arm/iterators.md (shiftable_ops): New code iterator.
12180 (t2_binop0, arith_shift_insn): New code attributes.
12181 * arm/predicates.md (shift_nomul_operator): New predicate.
12182 * arm/arm.md (insn_enabled): Delete.
12183 (enabled): Remove insn_enabled test.
12184 (*arith_shiftsi): Delete. Replace with ...
12185 (*<arith_shift_insn>_multsi): ... new pattern.
12186 (*<arith_shift_insn>_shiftsi): ... new pattern.
12187 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
12188
12189 2014-05-29 Radovan Obradovic <robradovic@mips.com>
12190 Tom de Vries <tom@codesourcery.com>
12191
12192 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
12193 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
12194 clobber.
12195 (mips_split_call): Use POST_CALL_TMP_REG.
12196 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
12197
12198 2014-05-29 Tom de Vries <tom@codesourcery.com>
12199
12200 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
12201 with #ifdef STACK_REGS.
12202
12203 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
12204
12205 * varasm.c (get_variable_section): Walk aliases.
12206 (place_block_symbol): Walk aliases.
12207
12208 2014-05-28 Tom de Vries <tom@codesourcery.com>
12209
12210 Revert:
12211 2014-05-28 Tom de Vries <tom@codesourcery.com>
12212
12213 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
12214 * lra.c (initialize_lra_reg_info_element): Add init of
12215 actual_call_used_reg_set field.
12216 (lra): Call lra_create_live_ranges before lra_inheritance for
12217 -fuse-caller-save.
12218 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
12219 -fuse-caller-save.
12220 * lra-constraints.c (need_for_call_save_p): Use
12221 actual_call_used_reg_set instead of call_used_reg_set for
12222 -fuse-caller-save.
12223 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
12224
12225 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12226
12227 * doc/md.texi: Document that the % constraint character must
12228 be at the beginning of the string.
12229 * genoutput.c (validate_insn_alternatives): Check that '=',
12230 '+' and '%' only appear at the beginning of a constraint.
12231 * ira.c (commutative_constraint_p): Delete.
12232 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
12233 at the start of the string.
12234 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
12235 duplicate '='s.
12236 * config/arm/neon.md (bicdi3_neon): Likewise.
12237 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
12238 (slt_si, sltu_si): Likewise.
12239 * config/vax/vax.md (sbcdi3): Likewise.
12240 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
12241 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
12242 (mul64): Move '%' to beginning of constraint.
12243 * config/arm/arm.md (*xordi3_insn): Likewise.
12244 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
12245 (xorsi3): Likewise.
12246
12247 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12248
12249 * doc/md.texi: Document the restrictions on the "enabled" attribute.
12250
12251 2014-05-28 Jason Merrill <jason@redhat.com>
12252
12253 PR c++/47202
12254 * cgraph.h (symtab_node::get_comdat_group_id): New.
12255 * cgraphunit.c (analyze_functions): Call it.
12256 * symtab.c (dump_symtab_node): Likewise.
12257 * tree.c (decl_comdat_group_id): New.
12258 * tree.h: Declare it.
12259 * lto-streamer-out.c (write_symbol): Use it.
12260 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
12261
12262 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12263
12264 PR bootstrap/PR61146
12265 * wide-int.cc: Do not include longlong.h when compiling with clang.
12266
12267 2014-05-28 Richard Biener <rguenther@suse.de>
12268
12269 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
12270 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
12271 (vrp_visit_assignment_or_call): Print less vertical space.
12272 (vrp_visit_stmt): Likewise.
12273 (vrp_visit_phi_node): Likewise. For a PHI argument with
12274 VR_VARYING range consider recording it as copy.
12275
12276 2014-05-28 Richard Biener <rguenther@suse.de>
12277
12278 Revert
12279 2014-05-28 Richard Biener <rguenther@suse.de>
12280
12281 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
12282
12283 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
12284
12285 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
12286 sufficiently aligned and an offset is used at the same time.
12287 (expand_expr_real_1): Likewise.
12288
12289 2014-05-28 Richard Biener <rguenther@suse.de>
12290
12291 PR middle-end/61045
12292 * fold-const.c (fold_comparison): When folding
12293 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
12294 the sign of the remaining constant operand stays the same.
12295
12296 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
12297
12298 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
12299 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
12300 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
12301 to the assembler.
12302 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
12303 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
12304 (m32bit-doubles) Likewise.
12305 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
12306 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
12307 option for RL78.
12308
12309 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12310
12311 * configure.ac ($gcc_cv_ld_clearcap): New test.
12312 * configure: Regenerate.
12313 * config.in: Regenerate.
12314 * config/sol2.opt (mclear-hwcap): New option.
12315 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
12316 * config/sol2-clearcap.map: Moved here from
12317 testsuite/gcc.target/i386/clearcap.map.
12318 * config/sol2-clearcapv2.map: Move here from
12319 gcc.target/i386/clearcapv2.map.
12320 * config/t-sol2 (install): Depend on install-clearcap-map.
12321 (install-clearcap-map): New target.
12322 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
12323 -mclear-hwcap.
12324
12325 2014-05-28 Richard Biener <rguenther@suse.de>
12326
12327 * hwint.h (*_HALF_WIDE_INT*): Move to ...
12328 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
12329 ... here and remove the rest.
12330 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
12331
12332 2014-05-28 Richard Biener <rguenther@suse.de>
12333
12334 PR tree-optimization/61335
12335 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
12336 new range fails, drop to varying.
12337
12338 2014-05-28 Olivier Hainque <hainque@adacore.com>
12339
12340 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
12341 (CPP_SPEC): Add entry for -mcpu=8548.
12342 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
12343 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
12344
12345 2014-05-28 Tom de Vries <tom@codesourcery.com>
12346
12347 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
12348 * lra.c (initialize_lra_reg_info_element): Add init of
12349 actual_call_used_reg_set field.
12350 (lra): Call lra_create_live_ranges before lra_inheritance for
12351 -fuse-caller-save.
12352 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
12353 -fuse-caller-save.
12354 * lra-constraints.c (need_for_call_save_p): Use
12355 actual_call_used_reg_set instead of call_used_reg_set for
12356 -fuse-caller-save.
12357 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
12358
12359 2014-05-28 Radovan Obradovic <robradovic@mips.com>
12360 Tom de Vries <tom@codesourcery.com>
12361
12362 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
12363 to gccoptlist.
12364 (@item -fuse-caller-save): New item.
12365
12366 2014-05-28 Radovan Obradovic <robradovic@mips.com>
12367 Tom de Vries <tom@codesourcery.com>
12368
12369 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
12370 OPT_fuse_caller_save.
12371
12372 2014-05-28 Radovan Obradovic <robradovic@mips.com>
12373 Tom de Vries <tom@codesourcery.com>
12374
12375 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
12376 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
12377 get_call_reg_set_usage.
12378 * resource.c (mark_set_resources, mark_target_live_regs): Use
12379 get_call_reg_set_usage.
12380 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
12381 field.
12382 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
12383 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
12384 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
12385 * ira-build.c (ira_create_allocno): Init
12386 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
12387 (create_cap_allocno, propagate_allocno_info)
12388 (propagate_some_info_from_allocno)
12389 (copy_info_to_removed_store_destinations): Handle
12390 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
12391 * ira-costs.c (ira_tune_allocno_costs): Use
12392 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
12393
12394 2014-05-28 Radovan Obradovic <robradovic@mips.com>
12395 Tom de Vries <tom@codesourcery.com>
12396
12397 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
12398 and function_used_regs_valid fields.
12399 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
12400 find_all_hard_reg_sets.
12401 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
12402 (get_call_reg_set_usage): New function.
12403 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
12404 * regs.h (get_call_reg_set_usage): Declare.
12405
12406 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
12407
12408 PR libgcc/61152
12409 * config/dbx.h (License): Add Runtime Library Exception.
12410 * config/newlib-stdint.h (License): Same.
12411 * config/rtems.h (License): Same
12412 * config/initfini-array.h (License): Same
12413 * config/v850/v850.h (License): Same.
12414 * config/v850/v850-opts.h (License): Same
12415 * config/v850/rtems.h (License): Same.
12416
12417 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
12418
12419 PR target/61044
12420 * doc/extend.texi (Local Labels): Note that label differences are
12421 not supported for AVR.
12422
12423 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12424 Olivier Hainque <hainque@adacore.com>
12425
12426 * rtl.h (set_for_reg_notes): Declare.
12427 * emit-rtl.c (set_for_reg_notes): New function.
12428 (set_unique_reg_note): Use it.
12429 * optabs.c (add_equal_note): Likewise
12430
12431 2014-05-27 Andrew Pinski <apinski@cavium.com>
12432
12433 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
12434 Use <w> for the register in assembly template.
12435 (stack_protect_test): Use the mode of operands[0] for the result.
12436 (stack_protect_test_<mode>): Use <w> for the register
12437 in assembly template.
12438
12439 2014-05-27 DJ Delorie <dj@redhat.com>
12440
12441 * config/rx/rx.c (add_vector_labels): New.
12442 (rx_output_function_prologue): Call it.
12443 (rx_handle_func_attribute): Don't require empty arguments.
12444 (rx_handle_vector_attribute): New.
12445 (rx_attribute_table): Add "vector" attribute.
12446 * doc/extend.texi (interrupt, vector): Document new/changed
12447 RX-specific attributes.
12448
12449 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
12450
12451 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
12452
12453 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
12454 predicate to detect a negative quotient.
12455
12456 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
12457
12458 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
12459 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
12460 Add X - Y CMP 0 to X CMP Y transformation.
12461 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
12462
12463 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
12464
12465 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
12466 before printing.
12467
12468 2014-05-27 Steve Ellcey <sellcey@mips.com>
12469
12470 * config/mips/mips.c: Add include of cgraph.h.
12471
12472 2014-05-27 Richard Biener <rguenther@suse.de>
12473
12474 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
12475
12476 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
12477
12478 PR libgcc/61152
12479 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
12480 * config/arm/arm-cores.def (License): Same.
12481 * config/arm/arm-opts.h (License): Same.
12482 * config/arm/aout.h (License): Same.
12483 * config/arm/bpabi.h (License): Same.
12484 * config/arm/elf.h (License): Same.
12485 * config/arm/linux-elf.h (License): Same.
12486 * config/arm/linux-gas.h (License): Same.
12487 * config/arm/netbsd-elf.h (License): Same.
12488 * config/arm/uclinux-eabi.h (License): Same.
12489 * config/arm/uclinux-elf.h (License): Same.
12490 * config/arm/vxworks.h (License): Same.
12491
12492 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12493
12494 * config/arm/neon.md (neon_bswap<mode>): New pattern.
12495 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
12496 (arm_init_neon_builtins): Handle NEON_BSWAP.
12497 Define required type nodes.
12498 (arm_expand_neon_builtin): Handle NEON_BSWAP.
12499 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
12500 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
12501 * config/arm/iterators.md (VDQHSD): New mode iterator.
12502
12503 2014-05-27 Richard Biener <rguenther@suse.de>
12504
12505 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
12506 Try using literal operands when comparing value-ranges failed.
12507
12508 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
12509
12510 * ira.c (commutative_operand): Adjust for change to recog_data.
12511 [Missing from previous commit.]
12512
12513 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
12514
12515 * system.h (TEST_BIT): New macro.
12516 * recog.h (alternative_mask): New type.
12517 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
12518 (recog_data_d): Replace alternative_enabled_p array with
12519 enabled_alternatives.
12520 (target_recog): New structure.
12521 (default_target_recog, this_target_recog): Declare.
12522 (get_enabled_alternatives, recog_init): Likewise.
12523 * recog.c (default_target_recog, this_target_recog): New variables.
12524 (get_enabled_alternatives): New function.
12525 (extract_insn): Use it.
12526 (recog_init): New function.
12527 (preprocess_constraints, constrain_operands): Adjust for change to
12528 recog_data.
12529 * postreload.c (reload_cse_simplify_operands): Likewise.
12530 * reload.c (find_reloads): Likewise.
12531 * ira-costs.c (record_reg_classes): Likewise.
12532 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
12533 all alternatives after a disabled one would be skipped.
12534 (ira_implicitly_set_insn_hard_regs): Likewise.
12535 * ira.c (ira_setup_alts): Adjust for change to recog_data.
12536 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
12537 with enabled_alternatives.
12538 * lra.c (free_insn_recog_data): Update accordingly.
12539 (lra_update_insn_recog_data): Likewise.
12540 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
12541 * lra-constraints.c (process_alt_operands): Likewise. Handle
12542 only_alternative as part of the enabled mask.
12543 * target-globals.h (this_target_recog): Declare.
12544 (target_globals): Add a recog field.
12545 (restore_target_globals): Restore this_target_recog.
12546 * target-globals.c: Include recog.h.
12547 (default_target_globals): Initialize recog field.
12548 (save_target_globals): Likewise.
12549 * reginfo.c (reinit_regs): Call recog_init.
12550 * toplev.c (backend_init_target): Likewise.
12551
12552 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
12553
12554 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
12555 rather than any named insn's code.
12556
12557 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
12558
12559 PR libgcc/61152
12560 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
12561 * config/arm/arm-cores.def (License): Same.
12562
12563 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
12564
12565 * tree.h (decl_comdat_group): Declare.
12566 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
12567 * tree.c (decl_comdat_group): Here.
12568
12569 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
12570
12571 PR rtl-optimization/61222
12572 * combine.c (simplify_shift_const_1): When moving a PLUS outside
12573 the shift, truncate the PLUS operand to the result mode.
12574
12575 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
12576
12577 PR target/61271
12578 * config/i386/i386.c (ix86_rtx_costs)
12579 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
12580 Fix condition.
12581
12582 2014-05-26 Martin Jambor <mjambor@suse.cz>
12583
12584 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
12585 subreg uses.
12586
12587 2014-05-26 Richard Biener <rguenther@suse.de>
12588
12589 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
12590 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
12591 Provide specializations.
12592 (wi::int_traits <HOST_WIDE_INT>,
12593 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
12594
12595 2014-05-26 Alan Modra <amodra@gmail.com>
12596
12597 PR target/61098
12598 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
12599 params and return a bool. Remove dead code. Update comment.
12600 Assert we have a const_int source. Remove bogus code from
12601 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
12602 handling of constants > 2G and reg_equal note, from..
12603 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
12604 return value. Update comment. If we can, use a new pseudo
12605 for intermediate calculations.
12606 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
12607 prototype.
12608 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
12609 call to rs6000_emit_set_const in splitter.
12610 (movdi_internal64+2, +3): Likewise.
12611
12612 2014-05-26 Richard Biener <rguenther@suse.de>
12613
12614 * system.h: Define __STDC_FORMAT_MACROS before
12615 including inttypes.h.
12616 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
12617 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
12618 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
12619 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
12620 HOST_WIDEST_INT_C): Remove.
12621 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
12622 if C99 inttypes.h is not available.
12623 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
12624 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
12625 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
12626 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
12627 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
12628 (struct output_info): Likewise.
12629 (print_statistics): Adjust.
12630 (dump_bitmap_statistics): Likewise.
12631 * bt-load.c (migrate_btr_defs): Print with PRId64.
12632 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
12633 (MAX_SAFE_MULTIPLIER): Adjust.
12634 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
12635 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
12636 dump_cgraph_node): Likewise.
12637 * final.c (dump_basic_block_info): Likewise.
12638 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
12639 * gcov.c (format_gcov): Likewise.
12640 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
12641 for calculation.
12642 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
12643 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
12644 (inline_small_functions, dump_overall_stats, dump_inline_stats):
12645 Use PRId64 for dumping.
12646 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
12647 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
12648 (add_allocno_hard_regs): Adjust.
12649 * loop-doloop.c (doloop_modify): Print using PRId64.
12650 * loop-iv.c (inverse): Compute in uint64_t.
12651 (determine_max_iter, iv_number_of_iterations): Likewise.
12652 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
12653 Print using PRId64.
12654 * lto-streamer-out.c (write_symbol): Use uint64_t.
12655 * mcf.c (CAP_INFINITY): Use int64_t maximum.
12656 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
12657 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
12658 * modulo-sched.c (const_iteration_count): Use int64_t.
12659 (sms_schedule): Dump using PRId64.
12660 * predict.c (dump_prediction): Likewise.
12661 * pretty-print.h (pp_widest_integer): Remove.
12662 * profile.c (get_working_sets, is_edge_inconsistent,
12663 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
12664 * tree-pretty-print.c (pp_double_int): Remove case handling
12665 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
12666 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
12667 and adjust users.
12668 (pass_optimize_bswap::execute): Remove restriction on hosts.
12669 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
12670 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
12671 * tree.c (widest_int_cst_value): Remove.
12672 * tree.h (widest_int_cst_value): Likewise.
12673 * value-prof.c (dump_histogram_value): Print using PRId64.
12674 * gengtype.c (main): Also inject int64_t.
12675 * ggc-page.c (struct max_alignment): Use int64_t.
12676 * alloc-pool.c (struct allocation_object_def): Likewise.
12677 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
12678 for computation.
12679 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
12680 * doc/tm.texi: Regenerated.
12681 * gengtype-lex.l (IWORD): Handle [u]int64_t.
12682 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
12683 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
12684 mmix_output_register_setting): Use [u]int64_t in prototypes.
12685 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
12686 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
12687 mmix_output_octa, mmix_output_shifted_value): Adjust.
12688 (mmix_intval): Adjust. Remove unreachable case.
12689 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
12690
12691 2014-05-26 Richard Biener <rguenther@suse.de>
12692
12693 * configure.ac: Drop __int64 type check. Insist that we
12694 found uint64_t and int64_t.
12695 * hwint.h (HOST_BITS_PER___INT64): Remove.
12696 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
12697 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
12698 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
12699 (HOST_WIDEST_FAST_INT): Remove __int64 case.
12700 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
12701 for dst_q_src_df_rms_cdt.
12702 * configure: Regenerate.
12703 * config.in: Likewise.
12704
12705 2014-05-26 Michael Tautschnig <mt@debian.org>
12706
12707 PR target/61249
12708 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
12709 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
12710
12711 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12712
12713 PR rtl-optimization/61278
12714 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
12715
12716 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12717
12718 PR rtl-optimization/61220
12719 Part of PR rtl-optimization/61225
12720 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
12721 insn; skip split_edge for a block with only one successor.
12722
12723 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
12724
12725 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
12726 for variables.
12727
12728 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
12729
12730 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
12731 (update_vtable_references): New function.
12732 (function_and_variable_visibility): Rewrite also vtable initializers.
12733 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
12734
12735 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
12736
12737 * ggc.h (ggc_grow): New function.
12738 * ggc-none.c (ggc_grow): New function.
12739 * ggc-page.c (ggc_grow): Likewise.
12740
12741 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
12742
12743 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
12744 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
12745 comdat_can_be_unshared_p, cgraph_externally_visible_p,
12746 varpool_externally_visible_p, can_replace_by_local_alias,
12747 update_visibility_by_resolution_info, function_and_variable_visibility,
12748 pass_data_ipa_function_and_variable_visibility,
12749 make_pass_ipa_function_and_variable_visibility,
12750 whole_program_function_and_variable_visibility,
12751 pass_data_ipa_whole_program_visibility,
12752 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
12753 * cgraph.h (cgraph_local_node_p): Declare.
12754 * ipa-visibility.c: New file.
12755 * Makefile.in (OBJS): Add ipa-visiblity.o
12756
12757 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
12758
12759 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
12760 that var decl is available.
12761
12762 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
12763
12764 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
12765 symtab_node pointer.
12766 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
12767 (find_decls_types_r): Do not walk COMDAT_GROUP.
12768 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
12769 * varasm.c (make_decl_one_only): Use set_comdat_group;
12770 create node if needed.
12771 * ipa-inline-transform.c (save_inline_function_body): Update
12772 way we decl->symtab mapping.
12773 * symtab.c (symtab_hash, hash_node, eq_node
12774 symtab_insert_node_to_hashtable): Remove.
12775 (symtab_register_node): Update.
12776 (symtab_unregister_node): Update.
12777 (symtab_get_node): Reimplement as inline function.
12778 (symtab_add_to_same_comdat_group): Update.
12779 (symtab_dissolve_same_comdat_group_list): Update.
12780 (dump_symtab_base): Update.
12781 (verify_symtab_base): Update.
12782 (symtab_make_decl_local): Update.
12783 (fixup_same_cpp_alias_visibility): Update.
12784 (symtab_nonoverwritable_alias): Update.
12785 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
12786 * ipa.c (update_visibility_by_resolution_info): UPdate.
12787 * bb-reorder.c: Include cgraph.h
12788 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
12789 with comdat groups.
12790 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
12791 * cgraph.c (cgraph_get_create_node): Update.
12792 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
12793 and comdat_group_.
12794 (symtab_get_node): Make inline.
12795 (symtab_insert_node_to_hashtable): Remove.
12796 (symtab_can_be_discarded): Update.
12797 (decl_comdat_group): New function.
12798 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
12799 Update.
12800 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
12801 comdat group name.
12802 (read_comdat_group): New function.
12803 (input_node, input_varpool_node): Use it.
12804 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
12805 comdat groups.
12806 * mips.c (mips_start_unique_function): Likewise.
12807 (ix86_code_end): Likewise.
12808 (rs6000_code_end): Likweise.
12809 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
12810
12811 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
12812
12813 * gengtype-state.c (fatal_reading_state): Bring offline.
12814 * optabs.c (widening_optab_handler): Bring offline.
12815 * optabs.h (widening_optab_handler): Likewise.
12816 * final.c (get_attr_length_1): Likewise.
12817
12818 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
12819
12820 * sched-int.h (sd_iterator_cond): Manually tail recurse.
12821
12822 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
12823
12824 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
12825 (ppc440-compare): Include shift with dot.
12826 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
12827 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
12828 without dot.
12829 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
12830 without dot.
12831 (e6500_sfx2): Include it.
12832 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
12833 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
12834 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
12835 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
12836 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
12837 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
12838 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
12839 *lshiftrt_internal1le, *lshiftrt_internal1be,
12840 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
12841 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
12842 *rotldi3_internal10le, *rotldi3_internal10be,
12843 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
12844 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
12845 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
12846 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
12847 define_insns): Use type "shift" in the appropriate alternatives.
12848
12849 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
12850
12851 * config/rs6000/rs6000.md (type): Add "logical". Delete
12852 "fast_compare".
12853 (dot): Adjust comment.
12854 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
12855 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
12856 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
12857 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
12858 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
12859 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
12860 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
12861 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
12862
12863 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
12864 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
12865 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
12866 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
12867 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
12868 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
12869 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
12870 * config/rs6000/8540.md (ppc8540_su): Adjust.
12871 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
12872 cell-cmp-microcoded): Adjust.
12873 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
12874 * config/rs6000/e500mc.md (e500mc_su): Adjust.
12875 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
12876 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
12877 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
12878 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
12879 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
12880 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
12881 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
12882 Adjust.
12883 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
12884 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
12885 Adjust. Adjust comment.
12886 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
12887 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
12888
12889 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
12890
12891 * config/rs6000/rs6000.md (type): Add "add".
12892 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
12893 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
12894 define_insns): Use it.
12895 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
12896
12897 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
12898 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
12899 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
12900 * config/rs6000/601.md (ppc601-integer): Adjust.
12901 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
12902 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
12903 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
12904 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
12905 * config/rs6000/8540.md (ppc8540_su): Adjust.
12906 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
12907 cell-cmp-microcoded): Adjust.
12908 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
12909 * config/rs6000/e500mc.md (e500mc_su): Adjust.
12910 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
12911 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
12912 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
12913 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
12914 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
12915 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
12916 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
12917 Adjust.
12918 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
12919 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
12920 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
12921 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
12922
12923 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
12924
12925 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
12926 "delayed_compare", "var_delayed_compare".
12927 (var_shift): New attribute.
12928 (cell_micro): Adjust.
12929 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
12930 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
12931 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
12932 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
12933 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
12934 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
12935 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
12936 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
12937 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
12938 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
12939 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
12940 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
12941 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
12942 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
12943 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
12944 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
12945 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
12946 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
12947 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
12948 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
12949 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
12950 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
12951 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
12952 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
12953 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
12954
12955 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
12956 * config/rs6000/440.md (ppc440-integer): Adjust.
12957 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
12958 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
12959 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
12960 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
12961 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
12962 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
12963 * config/rs6000/8540.md (ppc8540_su): Adjust.
12964 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
12965 cell-cmp-microcoded): Adjust.
12966 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
12967 * config/rs6000/e500mc.md (e500mc_su): Adjust.
12968 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
12969 e500mc64_delayed): Adjust.
12970 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
12971 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
12972 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
12973 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
12974 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
12975 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
12976 power6-delayed-compare, power6-var-delayed-compare): Adjust.
12977 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
12978 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
12979 Adjust comment.
12980 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
12981 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
12982
12983 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
12984
12985 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
12986 (bits): New mode_attr.
12987 (idiv_ldiv): Delete mode_attr.
12988 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
12989 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
12990 rs6000_adjust_priority, is_nonpipeline_insn,
12991 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
12992
12993 * config/rs6000/40x.md (ppc403-idiv): Adjust.
12994 * config/rs6000/440.md (ppc440-idiv): Adjust.
12995 * config/rs6000/476.md (ppc476-idiv): Adjust.
12996 * config/rs6000/601.md (ppc601-idiv): Adjust.
12997 * config/rs6000/603.md (ppc603-idiv): Adjust.
12998 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
12999 ppc620-ldiv): Adjust.
13000 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
13001 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
13002 * config/rs6000/8540.md (ppc8540_divide): Adjust.
13003 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
13004 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
13005 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
13006 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
13007 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
13008 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
13009 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
13010 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
13011 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
13012 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
13013 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
13014 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
13015 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
13016 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
13017 * config/rs6000/titan.md (titan_fxu_div): Adjust.
13018
13019 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13020
13021 * config/rs6000/rs6000.md (type): Delete "insert_word",
13022 "insert_dword". Add "insert".
13023 (size): Update comment.
13024 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13025 insn_must_be_first_in_group): Adjust.
13026 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
13027 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
13028 *insvsi_internal6, insvdi_internal): Adjust.
13029
13030 * config/rs6000/40x.md (ppc403-integer): Adjust.
13031 * config/rs6000/440.md (ppc440-integer): Adjust.
13032 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
13033 * config/rs6000/601.md (ppc601-integer): Adjust.
13034 * config/rs6000/603.md (ppc603-integer): Adjust.
13035 * config/rs6000/6xx.md (ppc604-integer): Adjust.
13036 * config/rs6000/7450.md (ppc7450-integer): Adjust.
13037 * config/rs6000/7xx.md (ppc750-integer): Adjust.
13038 * config/rs6000/8540.md (ppc8540_su): Adjust.
13039 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
13040 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
13041 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13042 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
13043 * config/rs6000/e5500.md (e5500_sfx): Adjust.
13044 * config/rs6000/e6500.md (e6500_sfx): Adjust.
13045 * config/rs6000/mpc.md (mpccore-integer): Adjust.
13046 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
13047 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
13048 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
13049 * config/rs6000/power7.md (power7-integer): Adjust.
13050 * config/rs6000/power8.md (power8-1cyc): Adjust.
13051 * config/rs6000/rs64.md (rs64a-integer): Adjust.
13052 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
13053
13054 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13055
13056 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
13057 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
13058 (size): New attribute.
13059 (dot): New attribute.
13060 (cell_micro): Adjust.
13061 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
13062 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
13063 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
13064 umuldi3_highpart): Adjust.
13065 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13066 rs6000_adjust_priority, is_nonpipeline_insn,
13067 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
13068
13069 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
13070 ppc405-imul3): Adjust.
13071 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
13072 * config/rs6000/476.md (ppc476-imul): Adjust.
13073 * config/rs6000/601.md (ppc601-imul): Adjust.
13074 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
13075 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
13076 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
13077 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
13078 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
13079 Adjust.
13080 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
13081 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
13082 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
13083 cell-imul): Adjust.
13084 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
13085 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
13086 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
13087 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
13088 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
13089 * config/rs6000/mpc.md (mpccore-imul): Adjust.
13090 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
13091 power4-lmul, power4-imul, power4-imul3): Adjust.
13092 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
13093 power5-lmul, power5-imul, power5-imul3): Adjust.
13094 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
13095 power6-lmul, power6-imul, power6-imul3): Adjust.
13096 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
13097 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
13098
13099 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
13100 rs64a-lmul): Adjust.
13101 * config/rs6000/titan.md (titan_imul): Adjust.
13102
13103 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13104
13105 * config/rs6000/rs6000.md (type): Add new value "halfmul".
13106 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
13107 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
13108 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
13109 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
13110 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
13111 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
13112 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
13113 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
13114 * config/rs6000/titan.md: Delete nonsensical comment.
13115 (titan_imul): Add type imul3.
13116 (titan_mulhw): Remove type imul3; add type halfmul.
13117
13118 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13119
13120 * config/rs6000/rs6000.md (type): Reorder, reformat.
13121
13122 2014-05-23 Martin Jambor <mjambor@suse.cz>
13123
13124 PR tree-optimization/53787
13125 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
13126 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
13127 analysis_done, update all uses.
13128 * ipa-prop.c: Include domwalk.h
13129 (param_analysis_info): Removed.
13130 (param_aa_status): New type.
13131 (ipa_bb_info): Likewise.
13132 (func_body_info): Likewise.
13133 (ipa_get_bb_info): New function.
13134 (aa_overwalked): Likewise.
13135 (find_dominating_aa_status): Likewise.
13136 (parm_bb_aa_status_for_bb): Likewise.
13137 (parm_preserved_before_stmt_p): Changed to use new param AA info.
13138 (load_from_unmodified_param): Accept func_body_info as a parameter
13139 instead of parms_ainfo.
13140 (parm_ref_data_preserved_p): Changed to use new param AA info.
13141 (parm_ref_data_pass_through_p): Likewise.
13142 (ipa_load_from_parm_agg_1): Likewise. Update callers.
13143 (compute_complex_assign_jump_func): Changed to use new param AA info.
13144 (compute_complex_ancestor_jump_func): Likewise.
13145 (ipa_compute_jump_functions_for_edge): Likewise.
13146 (ipa_compute_jump_functions): Removed.
13147 (ipa_compute_jump_functions_for_bb): New function.
13148 (ipa_analyze_indirect_call_uses): Likewise, moved variable
13149 declarations down.
13150 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
13151 and info, moved variable declarations down.
13152 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
13153 node and info.
13154 (ipa_analyze_stmt_uses): Likewise.
13155 (ipa_analyze_params_uses): Removed.
13156 (ipa_analyze_params_uses_in_bb): New function.
13157 (ipa_analyze_controlled_uses): Likewise.
13158 (free_ipa_bb_info): Likewise.
13159 (analysis_dom_walker): New class.
13160 (ipa_analyze_node): Handle node-specific forbidden analysis,
13161 initialize and free func_body_info, use dominator walker.
13162 (ipcp_modif_dom_walker): New class.
13163 (ipcp_transform_function): Create and free func_body_info, use
13164 ipcp_modif_dom_walker, moved a lot of functionality there.
13165
13166 2014-05-23 Marek Polacek <polacek@redhat.com>
13167 Jakub Jelinek <jakub@redhat.com>
13168
13169 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
13170 * gcc.c (sanitize_spec_function): Likewise.
13171 * convert.c (convert_to_integer): Include "ubsan.h". Add
13172 floating-point to integer instrumentation.
13173 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
13174 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
13175 SANITIZE_NONDEFAULT.
13176 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
13177 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
13178 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
13179 * ubsan.c: Include "realmpfr.h" and "dfp.h".
13180 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
13181 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
13182 float/double/long double.
13183 (ubsan_instrument_float_cast): New function.
13184 * ubsan.h (ubsan_instrument_float_cast): Declare.
13185
13186 2014-05-23 Jiong Wang <jiong.wang@arm.com>
13187
13188 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
13189 predicate.
13190 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
13191 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
13192 Adjust for tailcalling through registers.
13193 * config/aarch64/aarch64.h (enum reg_class): New caller save
13194 register class.
13195 (REG_CLASS_NAMES): Likewise.
13196 (REG_CLASS_CONTENTS): Likewise.
13197 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
13198 Allow tailcalling without decls.
13199
13200 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
13201
13202 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
13203 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
13204
13205 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
13206 gsi, and variables v_* to v*.
13207
13208 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
13209
13210 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
13211
13212 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
13213
13214 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
13215 * omp-low.c: Update accordingly.
13216
13217 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
13218 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
13219 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
13220 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
13221 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
13222 GF_OMP_TARGET_KIND_UPDATE.
13223
13224 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
13225 Explicitly enumerate the expected region types.
13226
13227 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
13228
13229 PR other/56955
13230 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
13231 documentation; the old documentation didn't clearly state the
13232 constraints on the contents of the pointed-to storage.
13233
13234 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13235
13236 Fix bootstrap error on ia64
13237 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
13238 Return default value.
13239
13240 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
13241
13242 PR tree-optimization/54733
13243 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
13244 (CMPNOP): Define.
13245 (find_bswap_or_nop_load): New.
13246 (find_bswap_1): Renamed to ...
13247 (find_bswap_or_nop_1): This. Also add support for memory source.
13248 (find_bswap): Renamed to ...
13249 (find_bswap_or_nop): This. Also add support for memory source and
13250 detection of bitwise operations equivalent to load in target
13251 endianness.
13252 (execute_optimize_bswap): Likewise. Also move its leading comment back
13253 in place and split statement transformation into ...
13254 (bswap_replace): This.
13255
13256 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
13257
13258 PR rtl-optimization/61215
13259 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
13260 simplify_gen_subreg until final substitution.
13261
13262 2014-05-23 Alan Modra <amodra@gmail.com>
13263
13264 PR target/61231
13265 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
13266 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
13267 Use "Y" constraint rather than "m".
13268
13269 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13270
13271 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
13272 define.
13273 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
13274 New function declaration.
13275 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
13276 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
13277 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
13278 (aarch64_init_builtins) : Initialize builtins
13279 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
13280 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
13281 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
13282 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
13283 and __builtins_aarch64_set_fpsr.
13284 (aarch64_atomic_assign_expand_fenv): New function.
13285 * config/aarch64/aarch64.md (set_fpcr): New pattern.
13286 (get_fpcr) : Likewise.
13287 (set_fpsr) : Likewise.
13288 (get_fpsr) : Likewise.
13289 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
13290 and UNSPECV_SET_FPSR.
13291 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13292 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
13293 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
13294
13295 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
13296
13297 PR rtl-optimization/60969
13298 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
13299 constraints. Set up mem cost for NO_REGS case.
13300
13301 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
13302
13303 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
13304
13305 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
13306
13307 * config/darwin.c: Include "lto-section-names.h".
13308 (LTO_SEGMENT_NAME): Don't define.
13309 * config/i386/winnt.c: Include "lto-section-names.h".
13310 * lto-streamer.c: Include "lto-section-names.h".
13311 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
13312 * lto-wrapper.c: Include "lto-section-names.h".
13313 (LTO_SECTION_NAME_PREFIX): Don't define.
13314 * lto-section-names.h: New file.
13315 * cgraphunit.c: Include "lto-section-names.h".
13316
13317 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
13318
13319 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
13320
13321 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
13322
13323 PR target/61208
13324 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
13325
13326 2014-05-22 Nick Clifton <nickc@redhat.com>
13327
13328 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
13329
13330 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
13331
13332 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
13333 -> (T)A transformation to integer types.
13334
13335 2014-05-22 Teresa Johnson <tejohnson@google.com>
13336
13337 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
13338 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
13339 (gcov_rewrite): Use gcov_nonruntime_assert.
13340 (gcov_open): Ditto.
13341 (gcov_write_words): Ditto.
13342 (gcov_write_length): Ditto.
13343 (gcov_read_words): Use gcov_nonruntime_assert, and remove
13344 gcc_assert from IN_LIBGCOV code.
13345 (gcov_read_summary): Use gcov_error to flag profile corruption.
13346 (gcov_sync): Use gcov_nonruntime_assert.
13347 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
13348 (gcov_histo_index): Use gcov_nonruntime_assert.
13349 (static void gcov_histogram_merge): Ditto.
13350 (compute_working_sets): Ditto.
13351 * gcov-io.h (gcov_nonruntime_assert): Define.
13352 (gcov_error): Define for !IN_LIBGCOV
13353
13354 2014-05-22 Richard Biener <rguenther@suse.de>
13355
13356 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13357 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
13358 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
13359 and deallocation site.
13360 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13361 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
13362 passing through the incoming points-to set.
13363 (handle_lhs_call): Use flags argument instead of recomputing it.
13364 (find_func_aliases_for_call): Call handle_lhs_call with proper
13365 call return flags.
13366
13367 2014-05-22 Jakub Jelinek <jakub@redhat.com>
13368
13369 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
13370 all padding bits in REAL_VALUE_TYPE are cleared.
13371
13372 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13373
13374 Cleanup and improve multipass_dfa_lookahead_guard
13375 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
13376 (core2i7_first_cycle_multipass_begin,)
13377 (core2i7_first_cycle_multipass_issue,)
13378 (core2i7_first_cycle_multipass_backtrack): Update signature.
13379 * config/ia64/ia64.c
13380 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
13381 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
13382 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
13383 hook definition.
13384 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
13385 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
13386 values.
13387 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
13388 return values.
13389 * doc/tm.texi: Regenerate.
13390 * doc/tm.texi.in
13391 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
13392 * haifa-sched.c (ready_try): Make signed to allow negative values.
13393 (rebug_ready_list_1): Update.
13394 (choose_ready): Simplify.
13395 (sched_extend_ready_list): Update.
13396
13397 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13398
13399 Remove IA64 speculation tweaking flags
13400 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
13401 speculation tuning flags.
13402 (msched-prefer-non-data-spec-insns,)
13403 (msched-prefer-non-control-spec-insns): Obsolete options.
13404 * haifa-sched.c (choose_ready): Remove handling of
13405 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
13406 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
13407 and PREFER_NON_DATA_SPEC.
13408 * sel-sched.c (process_spec_exprs): Remove handling of
13409 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
13410
13411 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13412
13413 Improve scheduling debug output
13414 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
13415 (advance_one_cycle): Update.
13416 (schedule_insn, queue_to_ready): Add debug printouts.
13417 (debug_ready_list_1): New static function.
13418 (debug_ready_list): Update.
13419 (max_issue): Add debug printouts.
13420 (dump_insn_stream): New static function.
13421 (schedule_block): Use it. Also better indent printouts.
13422
13423 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
13424
13425 Fix sched_insn debug counter
13426 * haifa-sched.c (schedule_insn): Update.
13427 (struct haifa_saved_data): Add nonscheduled_insns_begin.
13428 (save_backtrack_point, restore_backtrack_point): Update.
13429 (first_nonscheduled_insn): New static function.
13430 (queue_to_ready, choose_ready): Use it.
13431 (schedule_block): Init nonscheduled_insns_begin.
13432 (sched_emit_insn): Update.
13433
13434
13435 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
13436
13437 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
13438 to GENERAL_REGS.
13439 (aarch64_secondary_reload) : LikeWise.
13440 (aarch64_class_max_nregs) : Remove CORE_REGS.
13441 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
13442 (REG_CLASS_NAMES) : Likewise.
13443 (REG_CLASS_CONTENTS) : LikeWise.
13444 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
13445
13446 2014-05-21 Guozhi Wei <carrot@google.com>
13447
13448 PR target/61202
13449 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
13450 constraint.
13451 (vqdmulhq_n_s16): Likewise.
13452
13453 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
13454
13455 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
13456
13457 2014-05-21 Marek Polacek <polacek@redhat.com>
13458
13459 PR sanitizer/61272
13460 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
13461
13462 2014-05-21 Martin Jambor <mjambor@suse.cz>
13463
13464 * doc/invoke.texi (Optimize Options): Document parameters
13465 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
13466 ipa-cp-array-index-hint-bonus.
13467
13468 2014-05-21 Mark Wielaard <mjw@redhat.com>
13469
13470 PR debug/16063
13471 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
13472 version >= 3 or not strict DWARF.
13473 * langhooks.h (struct lang_hooks_for_types): Add
13474 enum_underlying_base_type.
13475 * langhooks.c (lhd_enum_underlying_base_type): New function.
13476 * gcc/langhooks.h (struct lang_hooks_for_types): Add
13477 enum_underlying_base_type.
13478 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
13479 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
13480 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
13481
13482 2014-05-21 Richard Biener <rguenther@suse.de>
13483
13484 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
13485
13486 2014-05-21 John Marino <gnugcc@marino.st>
13487
13488 * config.gcc (*-*-dragonfly*): New target.
13489 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
13490 * configure: Regenerate.
13491 * config/dragonfly-stdint.h: New.
13492 * config/dragonfly.h: New.
13493 * config/dragonfly.opt: New.
13494 * config/i386/dragonfly.h: New.
13495 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
13496
13497 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13498
13499 * tree.def (VOID_CST): New.
13500 * tree-core.h (TI_VOID): New.
13501 * tree.h (void_node): New.
13502 * tree.c (tree_node_structure_for_code, tree_code_size)
13503 (iterative_hash_expr): Handle VOID_CST.
13504 (build_common_tree_nodes): Initialize void_node.
13505
13506 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
13507
13508 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
13509 functions.
13510 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
13511
13512 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
13513 more places.
13514
13515 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
13516 flag_reorder_blocks_and_partition.
13517 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
13518
13519 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
13520
13521 PR target/54236
13522 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
13523 constraints.
13524 (*addc_r_t): Add new insn_and_split.
13525
13526 2014-05-21 Jakub Jelinek <jakub@redhat.com>
13527
13528 PR middle-end/61252
13529 * omp-low.c (handle_simd_reference): New function.
13530 (lower_rec_input_clauses): Use it. Defer adding reference
13531 initialization even for reduction without placeholder if in simd,
13532 handle it properly later on.
13533
13534 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
13535
13536 PR tree-optimization/60899
13537 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
13538 assume all static symbols will have definition wile parsing and
13539 check the do have definition later in compilation; check that
13540 variable referring symbol will be output before concluding that
13541 reference is safe; be conservative for referring local statics;
13542 be more precise about when comdat is output in other partition.
13543
13544 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
13545
13546 PR bootstrap/60984
13547 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
13548 parameter.
13549 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
13550 (ipa_inline): Loop inline_to_all_callers until no more aliases
13551 are removed.
13552
13553 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
13554
13555 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
13556 set writeonly flag only for vars actually written to.
13557
13558 2014-05-20 Dehao Chen <dehao@google.com>
13559
13560 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
13561 and callee count to get clone count.
13562 * tree-inline.c (expand_call_inline): Use callee count instead of bb
13563 count in copy_body.
13564
13565 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
13566
13567 PR rtl-optimization/61243
13568 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
13569
13570 2014-05-20 Xinliang David Li <davidxl@google.com>
13571
13572 * cgraphunit.c (walk_polymorphic_call_targets): Add
13573 dbgcnt and fopt-info support.
13574 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
13575 * ipa-devirt.c (ipa_devirt): Ditto.
13576 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
13577 * ipa.c (walk_polymorphic_call_targets): Ditto.
13578 * gimple-fold.c (fold_gimple_assign): Ditto.
13579 (gimple_fold_call): Ditto.
13580 * dbgcnt.def: New counter.
13581
13582 2014-05-20 DJ Delorie <dj@redhat.com>
13583
13584 * config/msp430/msp430.md (split): Don't allow subregs when
13585 splitting SImode adds.
13586 (andneghi): Fix subtraction logic.
13587 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
13588
13589 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
13590
13591 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
13592 symbols.
13593 * except.c (switch_to_exception_section, resolve_unique_section,
13594 get_named_text_section, default_function_rodata_section,
13595 align_variable, get_block_for_decl, default_section_type_flags):
13596 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
13597 * symtab.c (symtab_add_to_same_comdat_group,
13598 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
13599 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
13600 Likewise.
13601 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
13602 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
13603 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
13604 (c6x_function_in_section_p): Likewise.
13605 * config/darwin.c (machopic_select_section): Likewise.
13606 * config/arm/arm.c (arm_function_in_section_p): Likewise.
13607 * config/mips/mips.c (mips_function_rodata_section): Likewise.
13608 * config/mep/mep.c (mep_select_section): LIkewise.
13609 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
13610
13611 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
13612
13613 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
13614 EH region of calls to pure functions that can throw an exception.
13615 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
13616 (copy_reference_ops_from_call): Also copy the EH region of the call if
13617 it can throw an exception.
13618
13619 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13620
13621 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
13622 nested VEC_SELECTs that are inverses of each other.
13623
13624 2014-05-20 Richard Biener <rguenther@suse.de>
13625
13626 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
13627 (extract_and_process_scc_for_name): not here.
13628 (cond_dom_walker::before_dom_children): Only process
13629 stmts that end the BB in interesting ways.
13630 (run_scc_vn): Mark param uses as visited.
13631
13632 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13633
13634 * config/arm/arm.md (arith_shiftsi): Do not predicate for
13635 arm_restrict_it.
13636
13637 2014-05-20 Nick Clifton <nickc@redhat.com>
13638
13639 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
13640 (msp430_gimplify_va_arg_expr): New function.
13641 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
13642
13643 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
13644 operand 0 in order to prevent confusion about the number of
13645 registers involved.
13646
13647 2014-05-20 Richard Biener <rguenther@suse.de>
13648
13649 PR tree-optimization/61221
13650 * tree-ssa-pre.c (el_to_update): Remove.
13651 (eliminate_dom_walker::before_dom_children): Handle released
13652 VDEFs by value-numbering them to the associated VUSE. Update
13653 stmt immediately for substituted call address.
13654 (eliminate): Remove delayed stmt updating code.
13655 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
13656 possibly late re-numbered vuses.
13657 (vn_reference_lookup_2): Adjust.
13658 (vn_reference_lookup_pieces): Likewise.
13659 (vn_reference_lookup): Likewise.
13660
13661 2014-05-20 Richard Biener <rguenther@suse.de>
13662
13663 * config.gcc: Remove need_64bit_hwint.
13664 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
13665 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
13666 it to be true.
13667 * config.in: Regenerate.
13668 * configure: Likewise.
13669
13670 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
13671
13672 * doc/extend.texi: Create Label Attributes section,
13673 move all label attributes into it and reference it.
13674
13675 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
13676
13677 * arm.c (thumb1_reorg): When scanning backwards skip anything
13678 that's not a proper insn.
13679
13680 2014-05-19 Richard Biener <rguenther@suse.de>
13681
13682 PR tree-optimization/61221
13683 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13684 Do nothing for unreachable blocks.
13685 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
13686 Improve unreachability detection.
13687
13688 2014-05-19 Richard Biener <rguenther@suse.de>
13689
13690 PR tree-optimization/61209
13691 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
13692
13693 2014-05-19 Nick Clifton <nickc@redhat.com>
13694
13695 * except.c (init_eh): Fix computation of builtin setjmp buffer
13696 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
13697
13698 2014-05-19 Richard Biener <rguenther@suse.de>
13699
13700 PR tree-optimization/61184
13701 * tree-vrp.c (is_negative_overflow_infinity): Use
13702 TREE_OVERFLOW_P and do that check first.
13703 (is_positive_overflow_infinity): Likewise.
13704 (is_overflow_infinity): Likewise.
13705 (vrp_operand_equal_p): Properly treat operands with
13706 differing overflow as not equal.
13707
13708 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
13709
13710 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
13711 shift simplification where it was intended.
13712
13713 2014-05-19 Christian Bruel <christian.bruel@st.com>
13714
13715 PR target/61195
13716 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
13717
13718 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
13719
13720 PR target/61084
13721 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
13722 than wide_int.
13723
13724 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
13725
13726 * reg-notes.def (CROSSING_JUMP): Likewise.
13727 * rtl.h (rtx_def): Update comment for jump flag.
13728 (CROSSING_JUMP_P): Define.
13729 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
13730 of a REG_CROSSING_JUMP note.
13731 * cfghooks.c (tidy_fallthru_edges): Likewise.
13732 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
13733 * emit-rtl.c (try_split): Likewise.
13734 * haifa-sched.c (sched_create_recovery_edges): Likewise.
13735 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
13736 * jump.c (redirect_jump_2): Likewise.
13737 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
13738 (relax_delay_slots): Likewise.
13739 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
13740 (bbit_di): Likewise.
13741 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
13742 * config/sh/sh.md (jump_compact): Likewise.
13743 * bb-reorder.c (rotate_loop): Likewise.
13744 (pass_duplicate_computed_gotos::execute): Likewise.
13745 (add_reg_crossing_jump_notes): Rename to...
13746 (update_crossing_jump_flags): ...this.
13747 (pass_partition_blocks::execute): Update accordingly.
13748
13749 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
13750
13751 * tree.h: Remove extraneous template <>.
13752
13753 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
13754
13755 * ipa.c (symtab_remove_unreachable_nodes): Remove
13756 symbol from comdat group if its body was eliminated.
13757 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
13758 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
13759 (symtab_unregister_node): ... this one.
13760 (verify_symtab_base): More strict checking of comdats.
13761 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
13762
13763 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
13764
13765 * tree-pass.h (make_pass_ipa_comdats): New pass.
13766 * timevar.def (TV_IPA_COMDATS): New timevar.
13767 * passes.def (pass_ipa_comdats): Add.
13768 * Makefile.in (OBJS): Add ipa-comdats.o
13769 * ipa-comdats.c: New file.
13770
13771 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
13772
13773 * ipa.c (update_visibility_by_resolution_info): New function.
13774 (function_and_variable_visibility): Use it.
13775
13776 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
13777
13778 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
13779 New functions.
13780 (FOR_EACH_DEFINED_SYMBOL): New macro.
13781 (varpool_first_static_initializer, varpool_next_static_initializer,
13782 varpool_first_defined_variable, varpool_next_defined_variable):
13783 Fix comments.
13784 (symtab_in_same_comdat_p): Correctly deal with inline functions.
13785
13786 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
13787
13788 * ggc-page.c (ggc_handle_finalizers): Add comment.
13789
13790 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
13791
13792 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
13793 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
13794 (ggc_internal_cleared_alloc): Likewise.
13795 * ggc-page.c (finalizer): New class.
13796 (vec_finalizer): Likewise.
13797 (globals::finalizers): New member.
13798 (globals::vec_finalizers): Likewise.
13799 (ggc_internal_alloc): Record the finalizer if any for the block being
13800 allocated.
13801 (ggc_handle_finalizers): New function.
13802 (ggc_collect): Call ggc_handle_finalizers.
13803 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
13804 finalizer.
13805 (ggc_internal_cleared_alloc): Likewise.
13806 (finalize): New function.
13807 (need_finalization_p): Likewise.
13808 (ggc_alloc): Install the type's destructor as the finalizer if it
13809 might do something.
13810 (ggc_cleared_alloc): Likewise.
13811 (ggc_vec_alloc): Likewise.
13812 (ggc_cleared_vec_alloc): Likewise.
13813
13814 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
13815
13816 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
13817
13818 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
13819
13820 * alias.c (record_alias_subset): Adjust.
13821 * bitmap.c (bitmap_element_allocate): Likewise.
13822 (bitmap_gc_alloc_stat): Likewise.
13823 * cfg.c (init_flow): Likewise.
13824 (alloc_block): Likewise.
13825 (unchecked_make_edge): Likewise.
13826 * cfgloop.c (alloc_loop): Likewise.
13827 (flow_loops_find): Likewise.
13828 (rescan_loop_exit): Likewise.
13829 * cfgrtl.c (init_rtl_bb_info): Likewise.
13830 * cgraph.c (insert_new_cgraph_node_version): Likewise.
13831 (cgraph_allocate_node): Likewise.
13832 (cgraph_create_edge_1): Likewise.
13833 (cgraph_allocate_init_indirect_info): Likewise.
13834 * cgraphclones.c (cgraph_clone_edge): Likewise.
13835 * cgraphunit.c (add_asm_node): Likewise.
13836 (init_lowered_empty_function): Likewise.
13837 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
13838 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
13839 (alpha_use_linkage): Likewise.
13840 * config/arc/arc.c (arc_init_machine_status): Likewise.
13841 * config/arm/arm.c (arm_init_machine_status): Likewise.
13842 * config/avr/avr.c (avr_init_machine_status): Likewise.
13843 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
13844 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
13845 * config/cris/cris.c (cris_init_machine_status): Likewise.
13846 * config/darwin.c (machopic_indirection_name): Likewise.
13847 (darwin_build_constant_cfstring): Likewise.
13848 (darwin_enter_string_into_cfstring_table): Likewise.
13849 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
13850 * config/frv/frv.c (frv_init_machine_status): Likewise.
13851 * config/i386/i386.c (get_dllimport_decl): Likewise.
13852 (ix86_init_machine_status): Likewise.
13853 (assign_386_stack_local): Likewise.
13854 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
13855 (i386_pe_maybe_record_exported_symbol): Likewise.
13856 (i386_pe_record_stub): Likewise.
13857 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
13858 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
13859 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
13860 (m32c_note_pragma_address): Likewise.
13861 * config/mep/mep.c (mep_init_machine_status): Likewise.
13862 (mep_note_pragma_flag): Likewise.
13863 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
13864 (mips16_local_alias): Likewise.
13865 (mips_init_machine_status): Likewise.
13866 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
13867 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
13868 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
13869 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
13870 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
13871 * config/pa/pa.c (pa_init_machine_status): Likewise.
13872 (pa_get_deferred_plabel): Likewise.
13873 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
13874 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
13875 (rs6000_init_machine_status): Likewise.
13876 (output_toc): Likewise.
13877 * config/s390/s390.c (s390_init_machine_status): Likewise.
13878 * config/score/score.c (score_output_external): Likewise.
13879 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
13880 * config/spu/spu.c (spu_init_machine_status): Likewise.
13881 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
13882 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
13883 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
13884 * coverage.c (coverage_end_function): Likewise.
13885 * dbxout.c (dbxout_init): Likewise.
13886 * doc/gty.texi: Don't mention variable_size attribute.
13887 * dwarf2cfi.c (new_cfi): Adjust.
13888 (new_cfi_row): Likewise.
13889 (copy_cfi_row): Likewise.
13890 (create_cie_data): Likewise.
13891 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
13892 (new_loc_descr): Likewise.
13893 (find_AT_string_in_table): Likewise.
13894 (add_addr_table_entry): Likewise.
13895 (new_die): Likewise.
13896 (add_var_loc_to_decl): Likewise.
13897 (clone_die): Likewise.
13898 (clone_as_declaration): Likewise.
13899 (break_out_comdat_types): Likewise.
13900 (new_loc_list): Likewise.
13901 (add_loc_descr_to_each): Likewise.
13902 (add_location_or_const_value_attribute): Likewise.
13903 (add_linkage_name): Likewise.
13904 (lookup_filename): Likewise.
13905 (dwarf2out_var_location): Likewise.
13906 (new_line_info_table): Likewise.
13907 (dwarf2out_init): Likewise.
13908 (mem_loc_descriptor): Likewise.
13909 (loc_descriptor): Likewise.
13910 (add_const_value_attribute): Likewise.
13911 (tree_add_const_value_attribute): Likewise.
13912 (comp_dir_string): Likewise.
13913 (dwarf2out_vms_debug_main_pointer): Likewise.
13914 (string_cst_pool_decl): Likewise.
13915 * emit-rtl.c (set_mem_attrs): Likewise.
13916 (get_reg_attrs): Likewise.
13917 (start_sequence): Likewise.
13918 (init_emit): Likewise.
13919 (init_emit_regs): Likewise.
13920 * except.c (init_eh_for_function): Likewise.
13921 (gen_eh_region): Likewise.
13922 (gen_eh_region_catch): Likewise.
13923 (gen_eh_landing_pad): Likewise.
13924 (add_call_site): Likewise.
13925 * function.c (add_frame_space): Likewise.
13926 (insert_temp_slot_address): Likewise.
13927 (assign_stack_temp_for_type): Likewise.
13928 (get_hard_reg_initial_val): Likewise.
13929 (allocate_struct_function): Likewise.
13930 (prepare_function_start): Likewise.
13931 (types_used_by_var_decl_insert): Likewise.
13932 * gengtype.c (variable_size_p): Remove function.
13933 (enum alloc_quantity): Remove enum.
13934 (write_typed_alloc_def): Remove function.
13935 (write_typed_struct_alloc_def): Likewise.
13936 (write_typed_typedef_alloc_def): Likewise.
13937 (write_typed_alloc_defns): Likewise.
13938 (main): Adjust.
13939 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
13940 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
13941 * ggc.h (ggc_alloc): new function.
13942 (ggc_cleared_alloc): Likewise.
13943 (ggc_vec_alloc): Template on type of vector element, and remove
13944 element size argument.
13945 (ggc_cleared_vec_alloc): Likewise.
13946 * gimple.c (gimple_build_omp_for): Adjust.
13947 (gimple_copy): Likewise.
13948 * ipa-cp.c (get_replacement_map): Likewise.
13949 (find_aggregate_values_for_callers_subset): Likewise.
13950 (known_aggs_to_agg_replacement_list): Likewise.
13951 * ipa-devirt.c (get_odr_type): Likewise.
13952 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
13953 (read_agg_replacement_chain): Likewise.
13954 * loop-iv.c (get_simple_loop_desc): Likewise.
13955 * lto-cgraph.c (input_node_opt_summary): Likewise.
13956 * lto-section-in.c (lto_new_in_decl_state): Likewise.
13957 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
13958 (input_eh_region): Likewise.
13959 (input_eh_lp): Likewise.
13960 (input_cfg): Likewise.
13961 * optabs.c (set_optab_libfunc): Likewise.
13962 (init_tree_optimization_optabs): Likewise.
13963 (set_conv_libfunc): Likewise.
13964 * passes.c (do_per_function_toporder): Likewise.
13965 * rtl.h: Don't use variable_size gty attribute.
13966 * sese.c (if_region_set_false_region): Adjust.
13967 * stringpool.c (gt_pch_save_stringpool): Likewise.
13968 * target-globals.c (save_target_globals): Likewise.
13969 * toplev.c (general_init): Likewise.
13970 * trans-mem.c (record_tm_replacement): Likewise.
13971 (split_bb_make_tm_edge): Likewise.
13972 * tree-cfg.c (move_sese_region_to_fn): Likewise.
13973 * tree-data-ref.h (lambda_vector_new): Likewise.
13974 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
13975 * tree-iterator.c (tsi_link_before): Likewise.
13976 (tsi_link_after): Likewise.
13977 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
13978 * tree-ssa-loop-niter.c (record_estimate): Likewise.
13979 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
13980 * tree-ssa-operands.h: Don't use variable_size gty attribute.
13981 * tree-ssa.c (init_tree_ssa): Adjust.
13982 * tree-ssanames.c (set_range_info): Likewise.
13983 (get_ptr_info): Likewise.
13984 (duplicate_ssa_name_ptr_info): Likewise.
13985 (duplicate_ssa_name_range_info): Likewise.
13986 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
13987 (unpack_ts_fixed_cst_value_fields): Likewise.
13988 * tree.c (build_fixed): Likewise.
13989 (build_real): Likewise.
13990 (build_string): Likewise.
13991 (decl_priority_info): Likewise.
13992 (decl_debug_expr_insert): Likewise.
13993 (decl_value_expr_insert): Likewise.
13994 (decl_debug_args_insert): Likewise.
13995 (type_hash_add): Likewise.
13996 (build_omp_clause): Likewise.
13997 * ubsan.c (decl_for_type_insert): Likewise.
13998 * varasm.c (get_unnamed_section): Likewise.
13999 (get_noswitch_section): Likewise.
14000 (get_section): Likewise.
14001 (get_block_for_section): Likewise.
14002 (create_block_symbol): Likewise.
14003 (build_constant_desc): Likewise.
14004 (create_constant_pool): Likewise.
14005 (force_const_mem): Likewise.
14006 (record_tm_clone_pair): Likewise.
14007 * varpool.c (varpool_create_empty_node): Likewise.
14008
14009 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14010
14011 * dwarf2out.c (tree_add_const_value_attribute): Call
14012 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
14013 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
14014 instead of ggc_internal_<x>alloc_stat.
14015 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
14016 (ggc_realloc): Likewise.
14017 * ggc-none.c (ggc_internal_alloc): Likewise.
14018 (ggc_internal_cleared_alloc): Likewise.
14019 * ggc-page.c: Likewise.
14020 * ggc.h (ggc_internal_alloc_stat): Likewise.
14021 (ggc_internal_alloc): Remove macro.
14022 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
14023 (ggc_internal_cleared_alloc): Remove macro.
14024 (GGC_RESIZEVEC): Adjust.
14025 (ggc_resizevar): Remove macro.
14026 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
14027 (ggc_internal_cleared_vec_alloc_stat): Likewise.
14028 (ggc_internal_vec_cleared_alloc): Remove macro.
14029 (ggc_alloc_atomic_stat): Drop _stat suffix.
14030 (ggc_alloc_atomic): Remove macro.
14031 (ggc_alloc_cleared_atomic): Remove macro.
14032 (ggc_alloc_string_stat): Drop _stat suffix.
14033 (ggc_alloc_string): Remove macro.
14034 (ggc_alloc_rtx_def_stat): Adjust.
14035 (ggc_alloc_tree_node_stat): Likewise.
14036 (ggc_alloc_cleared_tree_node_stat): Likewise.
14037 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
14038 (ggc_alloc_cleared_simd_clone_stat): Likewise.
14039 * gimple.c (gimple_build_omp_for): Likewise.
14040 (gimple_copy): Likewise.
14041 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
14042 * toplev.c (realloc_for_line_map): Adjust.
14043 * tree-data-ref.h (lambda_vector_new): Likewise.
14044 * tree-phinodes.c (allocate_phi_node): Likewise.
14045 * tree.c (grow_tree_vec_stat): Likewise.
14046 * vec.h (va_gc::reserve): Adjust.
14047
14048 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
14049
14050 * config/microblaze/microblaze.c (break_handler): New Declaration.
14051 (microblaze_break_function_p,microblaze_is_break_handler): New.
14052 (compute_frame_size): Use microblaze_break_function_p.
14053 Add the test of break_handler.
14054 (microblaze_function_prologue) : Add the test of variable
14055 break_handler. Check the fnname by BREAK_HANDLER_NAME.
14056 (microblaze_function_epilogue) : Add the test of break_handler.
14057 (microblaze_globalize_label) : Add the test of break_handler.
14058 Check the name by BREAK_HANDLER_NAME.
14059
14060 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
14061
14062 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
14063 microblaze_is_break_handler test.
14064 (call_internal1,call_value_intern): Use microblaze_break_function_p.
14065 Use SYMBOL_REF_DECL.
14066
14067 * config/microblaze/microblaze-protos.h
14068 (microblaze_break_function_p,microblaze_is_break_handler):
14069 New Declaration.
14070
14071 * doc/extend.texi (MicroBlaze break_handler Functions): Document
14072 new MicroBlaze break_handler functions.
14073
14074 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
14075
14076 * doc/extend.texi (Size of an asm): Move node text according
14077 to its @menu entry position.
14078
14079 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
14080
14081 PR tree-optimization/61140
14082 PR tree-optimization/61150
14083 PR tree-optimization/61197
14084 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
14085
14086 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
14087
14088 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
14089
14090 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
14091
14092 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
14093 __SIZEOF_INT128__ is defined.
14094
14095 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
14096
14097 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
14098 (rs6000_delegitimize_address): Use it.
14099
14100 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
14101
14102 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
14103 inplace argument. Store the new address in the original MEM when true.
14104 * emit-rtl.c (change_address_1): Likewise.
14105 (adjust_address_1, adjust_automodify_address_1, offset_address):
14106 Update accordingly.
14107 * rtl.h (plus_constant): Add an inplace argument.
14108 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
14109 when true. Avoid generating (plus X (const_int 0)).
14110 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
14111 in-place. Pass true to plus_constant.
14112 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
14113
14114 2014-05-16 Dehao Chen <dehao@google.com>
14115
14116 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
14117
14118 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
14119
14120 PR target/54089
14121 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
14122 patterns.
14123 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
14124
14125 2014-05-16 Dehao Chen <dehao@google.com>
14126
14127 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
14128 optimize_function_for_size_p.
14129 * regs.h (REG_FREQ_FROM_BB): Likewise.
14130
14131 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
14132
14133 PR target/51244
14134 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
14135 negt_reg_operand cases.
14136 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
14137 predicate.
14138 * config/sh/predicates.md (cbranch_treg_value): Simplify.
14139
14140 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
14141
14142 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
14143 target variants.
14144
14145 2014-05-16 David Malcolm <dmalcolm@redhat.com>
14146
14147 Revert:
14148 2014-04-29 David Malcolm <dmalcolm@redhat.com>
14149
14150 * tree-cfg.c (dump_function_to_file): Dump the return type of
14151 functions, in a line to itself before the function body, mimicking
14152 the layout of a C function.
14153
14154 2014-05-16 Dehao Chen <dehao@google.com>
14155
14156 * cfghooks.c (make_forwarder_block): Use direct computation to
14157 get fall-through edge's count and frequency.
14158
14159 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
14160
14161 * config/arc/arc.c (arc_init): Fix typo in error message.
14162 * config/i386/i386.c (ix86_expand_builtin): Likewise.
14163 (split_stack_prologue_scratch_regno): Likewise.
14164 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
14165 word from error message.
14166
14167 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
14168
14169 * ira-costs.c: Fix typo in comment.
14170
14171 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
14172
14173 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
14174
14175 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
14176
14177 * varpool.c (dump_varpool_node): Dump write-only flag.
14178 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
14179 write-only flag.
14180 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
14181 write-only variables.
14182 * ipa.c (process_references): New function.
14183 (set_readonly_bit): New function.
14184 (set_writeonly_bit): New function.
14185 (clear_addressable_bit): New function.
14186 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
14187 fix handling of aliases.
14188 * cgraph.h (struct varpool_node): Add writeonly flag.
14189
14190 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
14191
14192 PR rtl-optimization/60969
14193 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
14194 Calculate costs for this case.
14195
14196 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
14197
14198 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
14199 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
14200
14201 2014-05-16 Richard Biener <rguenther@suse.de>
14202
14203 PR tree-optimization/61194
14204 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
14205 bool patterns ending in a COND_EXPR.
14206
14207 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14208
14209 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
14210
14211 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14212
14213 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
14214 where we were unable to cost an RTX.
14215
14216 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14217
14218 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
14219 HIGH, LO_SUM.
14220
14221 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14222 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14223
14224 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
14225
14226 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14227 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14228
14229 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
14230 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
14231
14232 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14233 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14234
14235 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
14236 operators.
14237
14238 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14239 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14240
14241 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
14242 DIV/MOD.
14243
14244 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14245 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14246
14247 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
14248 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
14249
14250 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14251 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14252
14253 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
14254 rotates and shifts.
14255
14256 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14257 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14258
14259 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
14260 ZERO_EXTEND and SIGN_EXTEND better.
14261
14262 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14263 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14264
14265 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
14266 logical operations.
14267
14268 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14269 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14270
14271 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
14272 costs when costing loads and stores to memory.
14273
14274 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14275 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
14276
14277 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
14278 for SET RTX.
14279
14280 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14281
14282 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
14283
14284 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14285 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14286
14287 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
14288 to...
14289 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
14290 well formed.
14291 (aarch64_rtx_mult_cost): New.
14292 (aarch64_rtx_costs): Use it, refactor as appropriate.
14293
14294 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14295 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
14296
14297 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
14298 emit instructions, return number of instructions which would
14299 be emitted.
14300 (aarch64_add_constant): Update call to aarch64_build_constant.
14301 (aarch64_output_mi_thunk): Likewise.
14302 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
14303 a CONST_DOUBLE.
14304
14305 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14306
14307 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
14308 (TARGET_RTX_COSTS): Call it.
14309
14310 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14311
14312 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
14313 (cortexa57_vector_cost): Likewise.
14314 (cortexa57_tunings): Use them.
14315
14316 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
14317
14318 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
14319 (cpu_addrcost_table): Use it.
14320 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
14321 (aarch64_address_cost): Rewrite using aarch64_classify_address,
14322 move it.
14323
14324 2014-05-16 Richard Biener <rguenther@suse.de>
14325
14326 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
14327 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
14328 (visit_phi): Ignore edges marked as not executable.
14329 (class cond_dom_walker): New.
14330 (cond_dom_walker::before_dom_children): Value-number
14331 control statements and mark successor edges as not
14332 executable if possible.
14333 (run_scc_vn): First walk all control statements in
14334 dominator order, marking edges as not executable.
14335 * tree-inline.c (copy_edges_for_bb): Be not confused
14336 about random edge flags.
14337
14338 2014-05-16 Richard Biener <rguenther@suse.de>
14339
14340 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
14341
14342 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
14343
14344 PR target/61193
14345 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
14346 (__TM_simple_begin): Use it.
14347 (__TM_begin): Likewise.
14348
14349 2014-05-15 Martin Jambor <mjambor@suse.cz>
14350
14351 PR ipa/61085
14352 * ipa-prop.c (update_indirect_edges_after_inlining): Check
14353 type_preserved flag when the indirect edge is polymorphic.
14354
14355 2014-05-15 Martin Jambor <mjambor@suse.cz>
14356
14357 PR tree-optimization/61090
14358 * tree-sra.c (sra_modify_expr): Pass the current gsi to
14359 build_ref_for_model.
14360
14361 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14362
14363 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
14364 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
14365
14366 2014-05-15 Jakub Jelinek <jakub@redhat.com>
14367
14368 PR tree-optimization/61158
14369 * fold-const.c (fold_binary_loc): If X is zero-extended and
14370 shiftc >= prec, make sure zerobits is all ones instead of
14371 invoking undefined behavior.
14372
14373 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14374
14375 * regcprop.h: New file.
14376 * regcprop.c (skip_debug_insn_p): New decl.
14377 (replace_oldest_value_reg): Check skip_debug_insn_p.
14378 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
14379 * shrink-wrap.c: Include regcprop.h.
14380 (prepare_shrink_wrap): Call
14381 copyprop_hardreg_forward_bb_without_debug_insn.
14382
14383 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14384
14385 * shrink-wrap.h: Update comment.
14386 * shrink-wrap.c: Update comment.
14387 (next_block_for_reg): Rename to live_edge_for_reg.
14388 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
14389 (move_insn_for_shrink_wrap): Split live_edge.
14390 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
14391
14392 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
14393
14394 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
14395 Delete.
14396 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
14397 * config/sparc/sparc.md (fptype_ut699): New attribute.
14398 (in_branch_delay): Return false if -mfix-ut699 is specified and
14399 fptype_ut699 is set to single.
14400 (truncdfsf2): Add fptype_ut699 attribute.
14401 (fix_truncdfsi2): Likewise.
14402 (floatsisf2): Change fptype attribute.
14403 (fix_truncsfsi2): Likewise.
14404 (negtf2_notv9): Delete.
14405 (negtf2_v9): Likewise.
14406 (negtf2_hq): New instruction.
14407 (negtf2): New instruction and splitter.
14408 (negdf2_notv9): Rewrite.
14409 (abstf2_notv9): Delete.
14410 (abstf2_hq_v9): Likewise.
14411 (abstf2_v9): Likewise.
14412 (abstf2_hq): New instruction.
14413 (abstf2): New instruction and splitter.
14414 (absdf2_notv9): Rewrite.
14415
14416 2014-05-14 Cary Coutant <ccoutant@google.com>
14417
14418 PR debug/61013
14419 * opts.c (common_handle_option): Don't special-case "-g".
14420 (set_debug_level): Default to at least level 2 with "-g".
14421
14422 2014-05-14 DJ Delorie <dj@redhat.com>
14423
14424 * config/msp430/msp430.c (msp430_builtin): Add
14425 MSP430_BUILTIN_DELAY_CYCLES.
14426 (msp430_init_builtins): Register void __delay_cycles(long long).
14427 (msp430_builtin_decl): Add it.
14428 (cg_magic_constant): New.
14429 (msp430_expand_delay_cycles): New.
14430 (msp430_expand_builtin): Call it.
14431 (msp430_print_operand_raw): Change integer printing from "int" to
14432 HOST_WIDE_INT.
14433 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
14434 (delay_cycles_start): New.
14435 (delay_cycles_end): New.
14436 (delay_cycles_32): New.
14437 (delay_cycles_32x): New.
14438 (delay_cycles_16): New.
14439 (delay_cycles_16x): New.
14440 (delay_cycles_2): New.
14441 (delay_cycles_1): New.
14442 * doc/extend.texi: Document __delay_cycles().
14443
14444 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
14445
14446 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
14447 length attribute computation.
14448
14449 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
14450
14451 PR debug/61188
14452 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
14453
14454 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
14455
14456 PR target/61084
14457 * config/sparc/sparc.md: Fix types of low and high in DI constant
14458 splitter. Use gen_int_mode in some other splitters.
14459
14460 2014-05-14 Martin Jambor <mjambor@suse.cz>
14461
14462 PR ipa/60897
14463 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
14464
14465 2014-05-14 James Norris <jnorris@codesourcery.com>
14466
14467 * omp-low.c (expand_parallel_call): Remove shadow variable.
14468 (expand_omp_taskreg): Likewise.
14469
14470 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
14471
14472 * common/config/i386/i386-common.c
14473 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
14474 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
14475 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
14476 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
14477 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
14478 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
14479 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
14480 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
14481 xsavecintrin.h, xsavesintrin.h.
14482 (x86_64-*-*): Ditto.
14483 * config/i386/clflushoptintrin.h: New.
14484 * config/i386/xsavecintrin.h: Ditto.
14485 * config/i386/xsavesintrin.h: Ditto.
14486 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
14487 (bit_XSAVES): Ditto.
14488 (bit_XSAVES): Ditto.
14489 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
14490 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
14491 -mno-clflushopt.
14492 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14493 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
14494 OPTION_MASK_ISA_XSAVES.
14495 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
14496 -mxsavec, -mxsaves.
14497 (PTA_CLFLUSHOPT) Define.
14498 (PTA_XSAVEC): Ditto.
14499 (PTA_XSAVES): Ditto.
14500 (ix86_option_override_internal): Handle new options.
14501 (ix86_valid_target_attribute_inner_p): Ditto.
14502 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
14503 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
14504 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
14505 (bdesc_special_args): Add __builtin_ia32_xsaves,
14506 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
14507 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
14508 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
14509 (ix86_expand_builtin): Handle new builtins.
14510 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
14511 (TARGET_CLFLUSHOPT_P): Ditto.
14512 (TARGET_XSAVEC): Ditto.
14513 (TARGET_XSAVEC_P): Ditto.
14514 (TARGET_XSAVES): Ditto.
14515 (TARGET_XSAVES_P): Ditto.
14516 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
14517 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
14518 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
14519 (ANY_XRSTOR): New.
14520 (ANY_XRSTOR64): Ditto.
14521 (xrstor): Ditto.
14522 (xrstor): Change into <xrstor>.
14523 (xrstor_rex64): Change into <xrstor>_rex64.
14524 (xrstor64): Change into <xrstor>64
14525 (clflushopt): New.
14526 * config/i386/i386.opt (mclflushopt): New.
14527 (mxsavec): Ditto.
14528 (mxsaves): Ditto.
14529 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
14530 xsavecintrin.h.
14531 * doc/invoke.texi: Document new options.
14532
14533 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
14534
14535 PR rtl-optimization/60866
14536 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
14537 Default it to -1. Pass it down to init_simplejump_data.
14538 (init_simplejump_data): New parameter old_seqno. Pass it down
14539 to get_seqno_for_a_jump.
14540 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
14541 initializing new jump seqno as a last resort. Add comment.
14542 (sel_redirect_edge_and_branch): Save old seqno of the conditional
14543 jump and pass it down to sel_init_new_insn.
14544 (sel_redirect_edge_and_branch_force): Likewise.
14545
14546 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
14547
14548 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
14549 shifted values to avoid build warning.
14550
14551 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
14552
14553 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
14554 * cfgrtl.c (rtl_merge_blocks): Fix comment.
14555 (cfg_layout_merge_blocks): Likewise.
14556 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
14557
14558 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
14559
14560 PR rtl-optimization/60901
14561 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
14562 bb predecessor belongs to the same scheduling region. Adjust comment.
14563
14564 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
14565
14566 * doc/sourcebuild.texi: (dfp_hw): Document.
14567 (p8vector_hw): Likewise.
14568 (powerpc_eabi_ok): Likewise.
14569 (powerpc_elfv2): Likewise.
14570 (powerpc_htm_ok): Likewise.
14571 (ppc_recip_hw): Likewise.
14572 (vsx_hw): Likewise.
14573
14574 2014-05-13 Cary Coutant <ccoutant@google.com>
14575
14576 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
14577
14578 2014-05-13 David Malcolm <dmalcolm@redhat.com>
14579
14580 * gengtype-parse.c (require3): Eliminate in favor of...
14581 (require4): New.
14582 (require_template_declaration): Update to support optional single *
14583 on a type.
14584
14585 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
14586 (create_user_defined_type): Handle a single level of explicit
14587 pointerness within template arguments.
14588 (struct write_types_data): Add field "kind".
14589 (filter_type_name): Handle "*" character.
14590 (write_user_func_for_structure_ptr): Require a write_types_data
14591 rather than just a prefix string, so that we can look up the kind
14592 of the wtd and use it as an index into wrote_user_func_for_ptr,
14593 ensuring that such functions are written at most once. Support
14594 subclasses by invoking the marking function of the ultimate base class.
14595 (write_user_func_for_structure_body): Require a write_types_data
14596 rather than just a prefix string, so that we can pass this to
14597 write_user_func_for_structure_ptr.
14598 (write_func_for_structure): Likewise.
14599 (ggc_wtd): Add initializer of new "kind" field.
14600 (pch_wtd): Likewise.
14601
14602 * gengtype.h (enum write_types_kinds): New.
14603 (struct type): Add field wrote_user_func_for_ptr to the "s"
14604 union member.
14605
14606 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
14607
14608 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
14609 instead of const_binop.
14610 (fold_binary_loc): Likewise.
14611
14612 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
14613
14614 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
14615 calculation to match get_ref_base_and_extent.
14616
14617 2014-05-13 Catherine Moore <clm@codesourcery.com>
14618 Sandra Loosemore <sandra@codesourcery.com>
14619
14620 * configure.ac: Fix assembly for explicit JALR relocation check.
14621 * configure: Regenerate.
14622
14623 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14624
14625 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
14626 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
14627 Remove associated type declarations and initialisations.
14628 (arm_expand_neon_builtin): Likewise.
14629 (neon_emit_pair_result_insn): Delete.
14630 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
14631 * config/arm/neon.md (neon_vtrn<mode>): Delete.
14632 (neon_vzip<mode>): Likewise.
14633 (neon_vuzp<mode>): Likewise.
14634
14635 2014-05-13 Richard Biener <rguenther@suse.de>
14636
14637 PR ipa/60973
14638 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
14639 it needs revisiting whether the call still may be tail-called.
14640
14641 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
14642
14643 * rtl.def (SYMBOL_REF): Remove middle "0" field.
14644 * rtl.h (block_symbol): Reduce number of fields to 2.
14645 (rtx_def): Add u2.symbol_ref_flags.
14646 (SYMBOL_REF_FLAGS): Use it.
14647 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
14648 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
14649 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
14650 Lower index of SYMBOL_REF_DATA.
14651 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
14652 Print SYMBOL_REF_FLAGS at the same time.
14653 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
14654
14655 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
14656
14657 * rtl.def (VAR_LOCATION): Remove "i" field.
14658 * rtl.h (rtx_def): Add u2.var_location_status.
14659 (PAT_VAR_LOCATION_STATUS): Use it.
14660 (gen_rtx_VAR_LOCATION): Declare.
14661 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
14662 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
14663 * var-tracking.c (emit_note_insn_var_location): Remove casts.
14664
14665 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
14666
14667 * rtl.def (scratch): Fix outdated comment and remove "0" field.
14668 * gengtype.c (adjust_field_rtx_def): Update accordingly.
14669
14670 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
14671
14672 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
14673 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
14674 * rtl.h (rtx_def): Add insn_uid to u2 field.
14675 (RTX_FLAG_CHECK8): Delete in favor of...
14676 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
14677 (INSN_DELETED_P): Update accordingly.
14678 (INSN_UID): Use u2.insn_uid.
14679 (INSN_CHAIN_CODE_P): Define.
14680 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
14681 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
14682 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
14683 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
14684 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
14685 indices accordingly.
14686 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
14687 Update indices for insn-chain rtxes.
14688 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
14689 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
14690 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
14691 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
14692 * combine.c (try_combine): Likewise.
14693 * ira.c (setup_prohibited_mode_move_regs): Likewise.
14694
14695 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
14696
14697 * rtl.def (REG): Remove middle field.
14698 * rtl.h (rtx_def): Add orignal_regno to u2.
14699 (ORIGINAL_REGNO): Use it instead of field 1.
14700 (REG_ATTRS): Lower field index accordingly.
14701 * gengtype.c (adjust_field_rtx_def): Remove handling of
14702 ORIGINAL_REGNO. Move REG_ATTRS index down.
14703 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
14704 code that prints the REGNO.
14705
14706 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
14707
14708 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
14709 GENERATOR_FILE.
14710
14711 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
14712
14713 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
14714
14715 2014-05-13 Bin Cheng <bin.cheng@arm.com>
14716
14717 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
14718 (alloc_iv): Lower base expressions containing ADDR_EXPR.
14719
14720 2014-05-13 Ian Bolton <ian.bolton@arm.com>
14721
14722 * config/aarch64/aarch64-protos.h
14723 (aarch64_hard_regno_caller_save_mode): New prototype.
14724 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
14725 New function.
14726 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
14727
14728 2014-05-13 Christian Bruel <christian.bruel@st.com>
14729
14730 * target.def (mode_switching): New hook vector.
14731 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
14732 (mode_exit, modepriority_to_mode): Likewise.
14733 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
14734 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
14735 * target.h: Include tm.h and hard-reg-set.h.
14736 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
14737 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
14738 * doc/tm.texi Regenerate.
14739 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
14740 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
14741 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
14742 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
14743 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
14744 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
14745 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
14746 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
14747 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
14748 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
14749 (ix86_emit_mode_set): Hookify.
14750 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
14751 Delete.
14752 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
14753 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
14754 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
14755 (epiphany_mode_priority_to_mode): Remove declaration.
14756 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
14757 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
14758 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
14759 Likewise.
14760 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
14761 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
14762 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
14763
14764 2014-05-13 Jakub Jelinek <jakub@redhat.com>
14765
14766 PR target/61060
14767 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
14768 is const0_rtx, return immediately. Don't test count == 0 when
14769 it is always true.
14770
14771 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14772
14773 * Makefile.in: add shrink-wrap.o.
14774 * config/i386/i386.c: include "shrink-wrap.h"
14775 * function.c: Likewise.
14776 (requires_stack_frame_p, next_block_for_reg,
14777 move_insn_for_shrink_wrap, prepare_shrink_wrap,
14778 dup_block_and_redirect): Move to shrink-wrap.c
14779 (thread_prologue_and_epilogue_insns): Extract three code segments
14780 as functions in shrink-wrap.c
14781 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
14782 shrink-wrap.h
14783 * shrink-wrap.c: New file.
14784 * shrink-wrap.h: New file.
14785
14786 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
14787
14788 * doc/extend.texi: Reflect current numbers of pragmas. Remove
14789 reference to Solaris.
14790
14791 2014-05-12 Mike Stump <mikestump@comcast.net>
14792
14793 PR other/31778
14794 * genattrtab.c (filename): Add.
14795 (convert_set_attr_alternative): Improve error message.
14796 (check_defs): Restore read_md_filename for error messages.
14797 (gen_insn): Save filename.
14798
14799 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
14800
14801 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
14802 -fno-local-ivars and -fivar-visibility.
14803 * c-family/c.opt: Make -Wshadow also implicitly enable
14804 -Wshadow-ivar.
14805
14806 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
14807
14808 * doc/tm.texi: Remove reference to deleted macro.
14809 * doc/tm.texi.in: Likewise.
14810
14811 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14812
14813 PR target/60991
14814 * config/avr/avr.c (avr_out_store_psi): Use correct constant
14815 to restore Y.
14816
14817 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
14818
14819 PR libgcc/61152
14820 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
14821 * config/arm/aout.h (License): Same.
14822 * config/arm/bpabi.h (License): Same.
14823 * config/arm/elf.h (License): Same.
14824 * config/arm/linux-elf.h (License): Same.
14825 * config/arm/linux-gas.h (License): Same.
14826 * config/arm/netbsd-elf.h (License): Same.
14827 * config/arm/uclinux-eabi.h (License): Same.
14828 * config/arm/uclinux-elf.h (License): Same.
14829 * config/arm/vxworks.h (License): Same.
14830
14831 2014-05-11 Jakub Jelinek <jakub@redhat.com>
14832
14833 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
14834 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
14835 number of operands to 3.
14836 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
14837 * tree-nested.c (convert_nonlocal_omp_clauses,
14838 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
14839 * gimplify.c (gimplify_scan_omp_clauses): Handle
14840 OMP_CLAUSE_LINEAR_STMT.
14841 * omp-low.c (lower_rec_input_clauses): Fix typo.
14842 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
14843 cast between Fortran boolean_type_node and C _Bool if
14844 needed.
14845
14846 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
14847
14848 PR tree-optimization/61136
14849 * wide-int.h (multiple_of_p): Define a version that doesn't return
14850 the quotient.
14851 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
14852 integer_zerop/const_binop pair.
14853 (multiple_of_p): Likewise, converting both operands to widest_int
14854 precision.
14855
14856 2014-05-09 Teresa Johnson <tejohnson@google.com>
14857
14858 * cgraphunit.c (analyze_functions): Use correct dump file.
14859
14860 2014-05-09 Florian Weimer <fweimer@redhat.com>
14861
14862 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
14863 expand_used_vars.
14864 (stack_protect_return_slot_p): New function.
14865 (expand_used_vars): Call stack_protect_decl_p and
14866 stack_protect_return_slot_p for -fstack-protector-strong.
14867
14868 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
14869 Andrew Haley <aph@redhat.com>
14870 Richard Sandiford <rdsandiford@googlemail.com>
14871
14872 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
14873 pages.
14874
14875 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
14876
14877 PR middle-end/61111
14878 * fold-const.c (fold_binary_loc): Changed width of mask.
14879
14880 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
14881
14882 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
14883 unsigned int initializers for regno_in, regno_out.
14884
14885 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
14886
14887 PR target/61055
14888 * config/avr/avr.md (cc): Add new attribute set_vzn.
14889 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
14890 Set cc insn attribute to set_vzn instead of set_zn for alternatives
14891 with INC, DEC or NEG.
14892 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
14893 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
14894 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
14895
14896 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14897
14898 Revert:
14899 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14900
14901 * wide-int.cc (UTItype): Define.
14902 (UDWtype): Define for appropriate W_TYPE_SIZE.
14903
14904 2014-05-09 Richard Biener <rguenther@suse.de>
14905
14906 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
14907 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
14908 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
14909 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
14910 ssa_propagate): Adjust.
14911
14912 2014-05-08 Jeff Law <law@redhat.com>
14913
14914 PR tree-optimization/61009
14915 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
14916 tri-state rather than a boolean. When a block is too big to
14917 thread through, inform caller via negative return value.
14918 (thread_across_edge): If a block was too big for normal threading,
14919 then it's too big for a joiner too, so remove temporary equivalences
14920 and return immediately.
14921
14922 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14923 Matthias Klose <doko@ubuntu.com>
14924
14925 PR driver/61106
14926 * optc-gen.awk: Fix option handling for -Wunused-parameter.
14927
14928 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
14929
14930 PR target/59952
14931 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
14932
14933 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
14934
14935 PR target/61092
14936 * config/alpha/alpha.c: Include gimple-iterator.h.
14937 (alpha_gimple_fold_builtin): New function. Move
14938 ALPHA_BUILTIN_UMULH folding from ...
14939 (alpha_fold_builtin): ... here.
14940 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
14941
14942 2014-05-08 Wei Mi <wmi@google.com>
14943
14944 PR target/58066
14945 * config/i386/i386.c (ix86_compute_frame_layout): Update
14946 preferred_stack_boundary for call, expanded from tls descriptor.
14947 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
14948 to depend on SP register.
14949 (*tls_local_dynamic_base_32_gnu): Ditto.
14950 (*tls_local_dynamic_32_once): Ditto.
14951 (tls_global_dynamic_64_<mode>): Set
14952 ix86_tls_descriptor_calls_expanded_in_cfun.
14953 (tls_local_dynamic_base_64_<mode>): Ditto.
14954 (tls_global_dynamic_32): Set
14955 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
14956 to depend on SP register.
14957 (tls_local_dynamic_base_32): Ditto.
14958
14959 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14960
14961 * config/arm/arm_neon.h: Update comment.
14962 * config/arm/neon-docgen.ml: Delete.
14963 * config/arm/neon-gen.ml: Delete.
14964 * doc/arm-neon-intrinsics.texi: Update comment.
14965
14966 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14967
14968 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
14969 and v4sf versions.
14970 (vand, vorr, veor, vorn, vbic): Remove.
14971 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
14972 iterator.
14973 (neon_vsub_unspec): Likewise.
14974 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
14975
14976 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14977
14978 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
14979 (vadd_s16): Likewise.
14980 (vadd_s32): Likewise.
14981 (vadd_f32): Likewise.
14982 (vadd_u8): Likewise.
14983 (vadd_u16): Likewise.
14984 (vadd_u32): Likewise.
14985 (vadd_s64): Likewise.
14986 (vadd_u64): Likewise.
14987 (vaddq_s8): Likewise.
14988 (vaddq_s16): Likewise.
14989 (vaddq_s32): Likewise.
14990 (vaddq_s64): Likewise.
14991 (vaddq_f32): Likewise.
14992 (vaddq_u8): Likewise.
14993 (vaddq_u16): Likewise.
14994 (vaddq_u32): Likewise.
14995 (vaddq_u64): Likewise.
14996 (vmul_s8): Likewise.
14997 (vmul_s16): Likewise.
14998 (vmul_s32): Likewise.
14999 (vmul_f32): Likewise.
15000 (vmul_u8): Likewise.
15001 (vmul_u16): Likewise.
15002 (vmul_u32): Likewise.
15003 (vmul_p8): Likewise.
15004 (vmulq_s8): Likewise.
15005 (vmulq_s16): Likewise.
15006 (vmulq_s32): Likewise.
15007 (vmulq_f32): Likewise.
15008 (vmulq_u8): Likewise.
15009 (vmulq_u16): Likewise.
15010 (vmulq_u32): Likewise.
15011 (vsub_s8): Likewise.
15012 (vsub_s16): Likewise.
15013 (vsub_s32): Likewise.
15014 (vsub_f32): Likewise.
15015 (vsub_u8): Likewise.
15016 (vsub_u16): Likewise.
15017 (vsub_u32): Likewise.
15018 (vsub_s64): Likewise.
15019 (vsub_u64): Likewise.
15020 (vsubq_s8): Likewise.
15021 (vsubq_s16): Likewise.
15022 (vsubq_s32): Likewise.
15023 (vsubq_s64): Likewise.
15024 (vsubq_f32): Likewise.
15025 (vsubq_u8): Likewise.
15026 (vsubq_u16): Likewise.
15027 (vsubq_u32): Likewise.
15028 (vsubq_u64): Likewise.
15029 (vand_s8): Likewise.
15030 (vand_s16): Likewise.
15031 (vand_s32): Likewise.
15032 (vand_u8): Likewise.
15033 (vand_u16): Likewise.
15034 (vand_u32): Likewise.
15035 (vand_s64): Likewise.
15036 (vand_u64): Likewise.
15037 (vandq_s8): Likewise.
15038 (vandq_s16): Likewise.
15039 (vandq_s32): Likewise.
15040 (vandq_s64): Likewise.
15041 (vandq_u8): Likewise.
15042 (vandq_u16): Likewise.
15043 (vandq_u32): Likewise.
15044 (vandq_u64): Likewise.
15045 (vorr_s8): Likewise.
15046 (vorr_s16): Likewise.
15047 (vorr_s32): Likewise.
15048 (vorr_u8): Likewise.
15049 (vorr_u16): Likewise.
15050 (vorr_u32): Likewise.
15051 (vorr_s64): Likewise.
15052 (vorr_u64): Likewise.
15053 (vorrq_s8): Likewise.
15054 (vorrq_s16): Likewise.
15055 (vorrq_s32): Likewise.
15056 (vorrq_s64): Likewise.
15057 (vorrq_u8): Likewise.
15058 (vorrq_u16): Likewise.
15059 (vorrq_u32): Likewise.
15060 (vorrq_u64): Likewise.
15061 (veor_s8): Likewise.
15062 (veor_s16): Likewise.
15063 (veor_s32): Likewise.
15064 (veor_u8): Likewise.
15065 (veor_u16): Likewise.
15066 (veor_u32): Likewise.
15067 (veor_s64): Likewise.
15068 (veor_u64): Likewise.
15069 (veorq_s8): Likewise.
15070 (veorq_s16): Likewise.
15071 (veorq_s32): Likewise.
15072 (veorq_s64): Likewise.
15073 (veorq_u8): Likewise.
15074 (veorq_u16): Likewise.
15075 (veorq_u32): Likewise.
15076 (veorq_u64): Likewise.
15077 (vbic_s8): Likewise.
15078 (vbic_s16): Likewise.
15079 (vbic_s32): Likewise.
15080 (vbic_u8): Likewise.
15081 (vbic_u16): Likewise.
15082 (vbic_u32): Likewise.
15083 (vbic_s64): Likewise.
15084 (vbic_u64): Likewise.
15085 (vbicq_s8): Likewise.
15086 (vbicq_s16): Likewise.
15087 (vbicq_s32): Likewise.
15088 (vbicq_s64): Likewise.
15089 (vbicq_u8): Likewise.
15090 (vbicq_u16): Likewise.
15091 (vbicq_u32): Likewise.
15092 (vbicq_u64): Likewise.
15093 (vorn_s8): Likewise.
15094 (vorn_s16): Likewise.
15095 (vorn_s32): Likewise.
15096 (vorn_u8): Likewise.
15097 (vorn_u16): Likewise.
15098 (vorn_u32): Likewise.
15099 (vorn_s64): Likewise.
15100 (vorn_u64): Likewise.
15101 (vornq_s8): Likewise.
15102 (vornq_s16): Likewise.
15103 (vornq_s32): Likewise.
15104 (vornq_s64): Likewise.
15105 (vornq_u8): Likewise.
15106 (vornq_u16): Likewise.
15107 (vornq_u32): Likewise.
15108 (vornq_u64): Likewise.
15109
15110 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15111
15112 * wide-int.cc (UTItype): Define.
15113 (UDWtype): Define for appropriate W_TYPE_SIZE.
15114
15115 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
15116
15117 PR tree-optimization/59100
15118 * tree-ssa-phiopt.c: Include tree-inline.h.
15119 (neutral_element_p, absorbing_element_p): New functions.
15120 (value_replacement): Handle conditional binary operations with a
15121 neutral or absorbing element.
15122
15123 2014-05-08 Richard Biener <rguenther@suse.de>
15124
15125 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
15126 folding the expression.
15127 (valueize_expr): Remove.
15128 (visit_reference_op_load): Do not valueize the result of
15129 vn_get_expr_for.
15130 (simplify_binary_expression): Likewise.
15131 (simplify_unary_expression): Likewise.
15132
15133 2014-05-08 Richard Biener <rguenther@suse.de>
15134
15135 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
15136 looking at TYPE_ARG_TYPES.
15137
15138 2014-05-08 Richard Biener <rguenther@suse.de>
15139
15140 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
15141 pointer propagation special-case.
15142
15143 2014-05-08 Bin Cheng <bin.cheng@arm.com>
15144
15145 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
15146 core part of address expressions.
15147
15148 2014-05-08 Alan Modra <amodra@gmail.com>
15149
15150 PR target/60737
15151 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
15152 loads and stores when -mno-strict-align at any alignment.
15153 (expand_block_clear): Similarly. Also correct calculation of
15154 instruction count.
15155
15156 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
15157
15158 PR middle-end/39246
15159 * tree-complex.c (expand_complex_move): Keep line info when expanding
15160 complex move.
15161 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
15162 of complex expression. Use new argument to display correct location
15163 for values coming from phi statement.
15164 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
15165 (warn_uninitialized_phi): Pass location of phi argument to
15166 warn_uninit.
15167 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
15168 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
15169
15170 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
15171
15172 * config/rs6000/predicates.md (indexed_address_mem): New.
15173 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
15174 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
15175 fpstore_ux, fpstore_u.
15176 (sign_extend, indexed, update): New.
15177 (cell_micro): Adjust.
15178 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
15179 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
15180 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
15181 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
15182 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
15183 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
15184 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
15185 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
15186 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
15187 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
15188 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
15189 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
15190 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
15191 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
15192 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
15193
15194 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
15195 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
15196 *vsx_extract_<mode>_store): Adjust.
15197 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
15198 is_cracked_insn, insn_must_be_first_in_group,
15199 insn_must_be_last_in_group): Adjust.
15200
15201 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
15202 Adjust.
15203 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
15204 ppc440-fpstore): Adjust.
15205 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
15206 ppc476-fpstore): Adjust.
15207 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
15208 ppc601-fpstore): Adjust.
15209 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
15210 Adjust.
15211 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
15212 Adjust.
15213 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
15214 ppc7450-fpstore): Adjust.
15215 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
15216 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
15217 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
15218 Adjust.
15219 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
15220 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
15221 cell-fpstore, cell-fpstore-update): Adjust.
15222 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
15223 ppce300c3_store, ppce300c3_fpstore): Adjust.
15224 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
15225 e500mc_fpstore): Adjust.
15226 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
15227 e500mc64_store, e500mc64_fpstore): Adjust.
15228 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
15229 e5500_fpstore): Adjust.
15230 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
15231 e6500_fpstore): Adjust.
15232 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
15233 Adjust.
15234 * config/rs6000/power4.md (power4-load, power4-load-ext,
15235 power4-load-ext-update, power4-load-ext-update-indexed,
15236 power4-load-update-indexed, power4-load-update, power4-fpload,
15237 power4-fpload-update, power4-store, power4-store-update,
15238 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
15239 Adjust.
15240 * config/rs6000/power5.md (power5-load, power5-load-ext,
15241 power5-load-ext-update, power5-load-ext-update-indexed,
15242 power5-load-update-indexed, power5-load-update, power5-fpload,
15243 power5-fpload-update, power5-store, power5-store-update,
15244 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
15245 Adjust.
15246 * config/rs6000/power6.md (power6-load, power6-load-ext,
15247 power6-load-update, power6-load-update-indexed,
15248 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
15249 power6-fpload-update, power6-store, power6-store-update,
15250 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
15251 Adjust.
15252 * config/rs6000/power7.md (power7-load, power7-load-ext,
15253 power7-load-update, power7-load-update-indexed,
15254 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
15255 power7-fpload-update, power7-store, power7-store-update,
15256 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
15257 Adjust.
15258 * config/rs6000/power8.md (power8-load, power8-load-update,
15259 power8-load-ext, power8-load-ext-update, power8-fpload,
15260 power8-fpload-update, power8-store, power8-store-update-indexed,
15261 power8-fpstore, power8-fpstore-update): Adjust.
15262 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
15263 Adjust.
15264 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
15265 titan_lsu_store, titan_lsu_fpstore): Adjust.
15266 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
15267
15268 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
15269
15270 PR target/60884
15271 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
15272 unrolled byte insns. Emit address increments after move insns.
15273
15274 2014-05-07 David Malcolm <dmalcolm@redhat.com>
15275
15276 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
15277 const_gimple, rather than a gimple.
15278 (gimple_call_builtin_p): Likewise, for the three variants.
15279
15280 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
15281 (gimple_call_builtin_p): Likewise, for the three variants.
15282
15283 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15284
15285 PR tree-optimization/61095
15286 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
15287
15288 2014-05-07 Richard Biener <rguenther@suse.de>
15289
15290 PR tree-optimization/61034
15291 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
15292 (maybe_skip_until): Use translate to take into account
15293 lattices when trying to do disambiguations.
15294 (get_continuation_for_phi_1): Likewise.
15295 (get_continuation_for_phi): Adjust for added translate arguments.
15296 (walk_non_aliased_vuses): Likewise.
15297 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
15298 (walk_non_aliased_vuses): Likewise.
15299 (call_may_clobber_ref_p_1): Declare.
15300 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
15301 calls. Stop early if we are only supposed to disambiguate.
15302 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
15303
15304 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
15305
15306 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
15307 Emit an error when the function has arguments.
15308
15309 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
15310
15311 * cfgloop.h (unswitch_loops): Remove.
15312 * doc/passes.texi: Remove references to loop-unswitch.c
15313 * timevar.def (TV_LOOP_UNSWITCH): Remove.
15314
15315 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
15316
15317 * tree-vect-data-refs.c (vect_grouped_load_supported): New
15318 check for loads group of length 3.
15319 (vect_permute_load_chain): New permutations for loads group of
15320 length 3.
15321 * tree-vect-stmts.c (vect_model_load_cost): Change cost
15322 of vec_perm_shuffle for the new permutations.
15323
15324 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
15325
15326 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
15327 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
15328 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
15329 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
15330 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
15331 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
15332 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
15333 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
15334
15335 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
15336
15337 * loop-unswitch.c: Delete.
15338
15339 2014-05-07 Richard Biener <rguenther@suse.de>
15340
15341 * config.gcc: Always set need_64bit_hwint to yes.
15342
15343 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
15344
15345 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
15346 of using optimize_size.
15347
15348 2014-05-06 Mike Stump <mikestump@comcast.net>
15349
15350 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
15351
15352 2014-05-06 Joseph Myers <joseph@codesourcery.com>
15353
15354 * config/i386/sse.md (*mov<mode>_internal)
15355 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
15356 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
15357 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
15358 (*<code><mode>3, *andnot<mode>3<mask_name>)
15359 (<mask_codefor><code><mode>3<mask_name>): Only consider
15360 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
15361
15362 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
15363
15364 Revert:
15365 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
15366
15367 * lra-constraints.c (valid_address_p): Move earlier in file.
15368 Add a constraint argument to the address_info version.
15369 (satisfies_memory_constraint_p): New function.
15370 (satisfies_address_constraint_p): Likewise.
15371 (process_alt_operands, curr_insn_transform): Use them.
15372 (process_address): Pass the constraint to valid_address_p when
15373 checking address operands.
15374
15375 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
15376
15377 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
15378 to their respective blocks. Fix inadvertent use of "node".
15379
15380 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
15381
15382 * emit-rtl.c (init_derived_machine_modes): New functionm, split
15383 out from...
15384 (init_emit_once): ...here.
15385 * rtl.h (init_derived_machine_modes): Declare.
15386 * toplev.c (do_compile): Call it even if no_backend.
15387
15388 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
15389 Mike Stump <mikestump@comcast.net>
15390 Richard Sandiford <rdsandiford@googlemail.com>
15391 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15392
15393 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
15394 (rtx_equal_for_memref_p): Update comment.
15395 (adjust_offset_for_component_ref): Use wide-int interfaces.
15396 * builtins.c (get_object_alignment_2): Likewise.
15397 (c_readstr): Likewise.
15398 (target_char_cast): Add comment.
15399 (determine_block_size): Use wide-int interfaces.
15400 (expand_builtin_signbit): Likewise.
15401 (fold_builtin_int_roundingfn): Likewise.
15402 (fold_builtin_bitop): Likewise.
15403 (fold_builtin_bswap): Likewise.
15404 (fold_builtin_logarithm): Use signop.
15405 (fold_builtin_pow): Likewise.
15406 (fold_builtin_memory_op): Use wide-int interfaces.
15407 (fold_builtin_object_size): Likewise.
15408 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
15409 nb_iterations_estimate.
15410 (record_niter_bound): Use wide-int interfaces.
15411 (get_estimated_loop_iterations_int): Likewise.
15412 (get_estimated_loop_iterations): Likewise.
15413 (get_max_loop_iterations): Likewise.
15414 * cfgloop.h: Include wide-int.h.
15415 (struct nb_iter_bound): Change bound to widest_int.
15416 (struct loop): Change nb_iterations_upper_bound and
15417 nb_iterations_estimate to widest_int.
15418 (record_niter_bound): Switch to use widest_int.
15419 (get_estimated_loop_iterations): Likewise.
15420 (get_max_loop_iterations): Likewise.
15421 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
15422 update for wide-int.
15423 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
15424 * combine.c (try_combine): Likewise.
15425 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
15426 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
15427 interfaces.
15428 (aarch64_float_const_representable_p): Likewise.
15429 * config/arc/arc.c: Include wide-int.h.
15430 (arc_can_use_doloop_p): Use wide-int interfaces.
15431 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
15432 (vfp3_const_double_index): Likewise.
15433 * config/avr/avr.c (avr_out_round): Likewise.
15434 (avr_fold_builtin): Likewise.
15435 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
15436 (bfin_can_use_doloop_p): Likewise.
15437 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
15438 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
15439 * config/i386/i386.c: Include wide-int.h.
15440 (ix86_data_alignment): Use wide-int interfaces.
15441 (ix86_local_alignment): Likewise.
15442 (ix86_emit_swsqrtsf): Update real_from_integer.
15443 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
15444 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
15445 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
15446 (zero_constant): Likewise.
15447 (input_operand): Likewise.
15448 (splat_input_operand): Likewise.
15449 (non_logical_cint_operand): Change const_double to const_wide_int.
15450 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
15451 (easy_altivec_constant): Remove comment.
15452 (paired_expand_vector_init): Use CONSTANT_P.
15453 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
15454 (rs6000_emit_move): Update checks.
15455 (rs6000_aggregate_candidate): Use wide-int interfaces.
15456 (rs6000_expand_ternop_builtin): Likewise.
15457 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
15458 (rs6000_assemble_integer): Likewise.
15459 (rs6000_hash_constant): Likewise.
15460 (output_toc): Likewise.
15461 (rs6000_rtx_costs): Likewise.
15462 (rs6000_emit_swrsqrt); Update call to real_from_integer.
15463 * config/rs6000/rs6000-c.c: Include wide-int.h.
15464 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
15465 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
15466 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
15467 Handle CONST_WIDE_INT.
15468 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
15469 Use tree_fits_uhwi_p.
15470 * config/sparc/sparc.c: Include wide-int.h.
15471 (sparc_fold_builtin): Use wide-int interfaces.
15472 * config/vax/vax.c: Include wide-int.h.
15473 (vax_float_literal): Use real_from_integer.
15474 * coretypes.h (struct hwivec_def): New.
15475 (hwivec): New.
15476 (const_hwivec): New.
15477 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
15478 (equiv_constant): Handle CONST_WIDE_INT.
15479 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
15480 (cselib_hash_rtx): Handle CONST_WIDE_INT.
15481 * dbxout.c (stabstr_U): Use wide-int interfaces.
15482 (dbxout_type): Update to use cst_fits_shwi_p.
15483 * defaults.h (LOG2_BITS_PER_UNIT): Define.
15484 (TARGET_SUPPORTS_WIDE_INT): Add default.
15485 * dfp.c: Include wide-int.h.
15486 (decimal_real_to_integer2): Use wide-int interfaces and rename to
15487 decimal_real_to_integer.
15488 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
15489 decimal_real_to_integer.
15490 * doc/generic.texi (Constant expressions): Update for wide_int.
15491 * doc/rtl.texi (const_double): Likewise.
15492 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
15493 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
15494 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
15495 (REAL_VALUE_FROM_INT): Remove.
15496 (TARGET_SUPPORTS_WIDE_INT): New.
15497 * doc/tm.texi: Regenerate.
15498 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
15499 * double-int.h: Include wide-int.h.
15500 (struct wi::int_traits): New.
15501 * dwarf2out.c (get_full_len): New.
15502 (dw_val_equal_p): Add case dw_val_class_wide_int.
15503 (size_of_loc_descr): Likewise.
15504 (output_loc_operands): Likewise.
15505 (insert_double): Remove.
15506 (insert_wide_int): New.
15507 (add_AT_wide): New.
15508 (print_die): Add case dw_val_class_wide_int.
15509 (attr_checksum): Likewise.
15510 (attr_checksum_ordered): Likewise.
15511 (same_dw_val_p): Likewise.
15512 (size_of_die): Likewise.
15513 (value_format): Likewise.
15514 (output_die): Likewise.
15515 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
15516 Use wide-int.
15517 (clz_loc_descriptor): Use wide-int interfaces.
15518 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
15519 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
15520 (round_up_to_align): Use wide-int interfaces.
15521 (field_byte_offset): Likewise.
15522 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
15523 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
15524 CONST_DOUBLE handling. Use wide-int interfaces.
15525 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
15526 (gen_enumeration_type_die): Use add_AT_wide.
15527 (hash_loc_operands): Add case dw_val_class_wide_int.
15528 (compare_loc_operands): Likewise.
15529 * dwarf2out.h: Include wide-int.h.
15530 (wide_int_ptr): New.
15531 (enum dw_val_class): Add dw_val_class_wide_int.
15532 (struct dw_val_struct): Add val_wide.
15533 * emit-rtl.c (const_wide_int_htab): New.
15534 (const_wide_int_htab_hash): New.
15535 (const_wide_int_htab_eq): New.
15536 (lookup_const_wide_int): New.
15537 (const_double_htab_hash): Use wide-int interfaces.
15538 (const_double_htab_eq): Likewise.
15539 (rtx_to_double_int): Conditionally compile for wide-int.
15540 (immed_double_int_const): Rename to immed_wide_int_const and
15541 update for wide-int.
15542 (immed_double_const): Conditionally compile for wide-int.
15543 (init_emit_once): Use wide-int interfaces.
15544 * explow.c (plus_constant): Likewise.
15545 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
15546 (lshift_value): Use wide-int interfaces.
15547 (expand_mult): Likewise.
15548 (choose_multiplier): Likewise.
15549 (expand_smod_pow2): Likewise.
15550 (make_tree): Likewise.
15551 * expr.c (convert_modes): Consolidate handling of constants.
15552 Use wide-int interfaces.
15553 (emit_group_load_1): Add note.
15554 (store_expr): Update comment.
15555 (get_inner_reference): Use wide-int interfaces.
15556 (expand_constructor): Update comment.
15557 (expand_expr_real_2): Use wide-int interfaces.
15558 (expand_expr_real_1): Likewise.
15559 (reduce_to_bit_field_precision): Likewise.
15560 (const_vector_from_tree): Likewise.
15561 * final.c: Include wide-int-print.h.
15562 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
15563 * fixed-value.c: Include wide-int.h.
15564 (fixed_from_string): Use wide-int interfaces.
15565 (fixed_to_decimal): Likewise.
15566 (fixed_convert_from_real): Likewise.
15567 (real_convert_from_fixed): Likewise.
15568 * fold-const.h (mem_ref_offset): Return an offset_int.
15569 (div_if_zero_remainder): Remove code parameter.
15570 * fold-const.c (div_if_zero_remainder): Remove code parameter.
15571 Use wide-int interfaces.
15572 (may_negate_without_overflow_p): Use wide-int interfaces.
15573 (negate_expr_p): Likewise.
15574 (fold_negate_expr): Likewise.
15575 (int_const_binop_1): Likewise.
15576 (const_binop): Likewise.
15577 (fold_convert_const_int_from_int): Likewise.
15578 (fold_convert_const_int_from_real): Likewise.
15579 (fold_convert_const_int_from_fixed): Likewise.
15580 (fold_convert_const_fixed_from_int): Likewise.
15581 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
15582 (sign_bit_p): Use wide-int interfaces.
15583 (make_range_step): Likewise.
15584 (build_range_check): Likewise. Pass an integer of the correct type
15585 instead of using integer_one_node.
15586 (range_predecessor): Pass an integer of the correct type instead
15587 of using integer_one_node.
15588 (range_successor): Likewise.
15589 (merge_ranges): Likewise.
15590 (unextend): Use wide-int interfaces.
15591 (extract_muldiv_1): Likewise.
15592 (fold_div_compare): Likewise.
15593 (fold_single_bit_test): Likewise.
15594 (fold_sign_changed_comparison): Likewise.
15595 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
15596 (fold_plusminus_mult_expr): Use wide-int interfaces.
15597 (native_encode_int): Likewise.
15598 (native_interpret_int): Likewise.
15599 (fold_unary_loc): Likewise.
15600 (pointer_may_wrap_p): Likewise.
15601 (size_low_cst): Likewise.
15602 (mask_with_tz): Likewise.
15603 (fold_binary_loc): Likewise.
15604 (fold_ternary_loc): Likewise.
15605 (multiple_of_p): Likewise.
15606 (tree_call_nonnegative_warnv_p): Update calls to
15607 tree_int_cst_min_precision and real_from_integer.
15608 (fold_negate_const): Use wide-int interfaces.
15609 (fold_abs_const): Likewise.
15610 (fold_relational_const): Use tree_int_cst_lt.
15611 (round_up_loc): Use wide-int interfaces.
15612 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
15613 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
15614 * gengtype.c: Remove include of double-int.h.
15615 (do_typedef): Use wide-int interfaces.
15616 (open_base_files): Add wide-int.h.
15617 (main): Add offset_int and widest_int typedefs.
15618 * gengtype-lex.l: Handle "^".
15619 (CXX_KEYWORD): Add "static".
15620 * gengtype-parse.c (require3): New.
15621 (require_template_declaration): Handle constant template arguments
15622 and nested templates.
15623 * gengtype-state.c: Don't include "double-int.h".
15624 * genpreds.c (write_one_predicate_function): Update comment.
15625 (write_tm_constrs_h): Add check for hval and lval use in
15626 CONST_WIDE_INT.
15627 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
15628 (add_to_sequence): Likewise.
15629 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
15630 and const_double_operand.
15631 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
15632 interfaces.
15633 * gimple-fold.c (get_base_constructor): Likewise.
15634 (fold_array_ctor_reference): Likewise.
15635 (fold_nonarray_ctor_reference): Likewise.
15636 (fold_const_aggregate_ref_1): Likewise.
15637 (gimple_val_nonnegative_real_p): Likewise.
15638 (gimple_fold_indirect_ref): Likewise.
15639 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
15640 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
15641 (struct slsr_cand_d): Change index to be widest_int.
15642 (struct incr_info_d): Change incr to be widest_int.
15643 (alloc_cand_and_find_basis): Use wide-int interfaces.
15644 (slsr_process_phi): Likewise.
15645 (backtrace_base_for_ref): Likewise. Return a widest_int.
15646 (restructure_reference): Take a widest_int instead of a double_int.
15647 (slsr_process_ref): Use wide-int interfaces.
15648 (create_mul_ssa_cand): Likewise.
15649 (create_mul_imm_cand): Likewise.
15650 (create_add_ssa_cand): Likewise.
15651 (create_add_imm_cand): Take a widest_int instead of a double_int.
15652 (slsr_process_add): Use wide-int interfaces.
15653 (slsr_process_cast): Likewise.
15654 (slsr_process_copy): Likewise.
15655 (dump_candidate): Likewise.
15656 (dump_incr_vec): Likewise.
15657 (replace_ref): Likewise.
15658 (cand_increment): Likewise. Return a widest_int.
15659 (cand_abs_increment): Likewise.
15660 (replace_mult_candidate): Take a widest_int instead of a double_int.
15661 (replace_unconditional_candidate): Use wide-int interfaces.
15662 (incr_vec_index): Take a widest_int instead of a double_int.
15663 (create_add_on_incoming_edge): Likewise.
15664 (create_phi_basis): Use wide-int interfaces.
15665 (replace_conditional_candidate): Likewise.
15666 (record_increment): Take a widest_int instead of a double_int.
15667 (record_phi_increments): Use wide-int interfaces.
15668 (phi_incr_cost): Take a widest_int instead of a double_int.
15669 (lowest_cost_path): Likewise.
15670 (total_savings): Likewise.
15671 (analyze_increments): Use wide-int interfaces.
15672 (ncd_with_phi): Take a widest_int instead of a double_int.
15673 (ncd_of_cand_and_phis): Likewise.
15674 (nearest_common_dominator_for_cands): Likewise.
15675 (insert_initializers): Use wide-int interfaces.
15676 (all_phi_incrs_profitable): Likewise.
15677 (replace_one_candidate): Likewise.
15678 (replace_profitable_candidates): Likewise.
15679 * godump.c: Include wide-int-print.h.
15680 (go_output_typedef): Use wide-int interfaces.
15681 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
15682 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
15683 (build_loop_iteration_domains): Likewise.
15684 * hooks.h: Include wide-int.h rather than double-int.h.
15685 (hook_bool_dint_dint_uint_bool_true): Delete.
15686 (hook_bool_wint_wint_uint_bool_true): Declare.
15687 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
15688 (hook_bool_wint_wint_uint_bool_true): New.
15689 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
15690 interfaces.
15691 (ubsan_expand_si_overflow_mul_check): Likewise.
15692 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
15693 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
15694 (get_ancestor_addr_info): Likewise.
15695 (ipa_modify_call_arguments): Likewise.
15696 * loop-doloop.c (doloop_modify): Likewise.
15697 (doloop_optimize): Likewise.
15698 * loop-iv.c (iv_number_of_iterations): Likewise.
15699 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
15700 (unroll_loop_constant_iterations): Likewise.
15701 (decide_unroll_runtime_iterations): Likewise.
15702 (unroll_loop_runtime_iterations): Likewise.
15703 (decide_peel_simple): Likewise.
15704 (decide_unroll_stupid): Likewise.
15705 * lto-streamer-in.c (streamer_read_wi): Add.
15706 (input_cfg): Use wide-int interfaces.
15707 (lto_input_tree_1): Likewise.
15708 * lto-streamer-out.c (streamer_write_wi): Add.
15709 (hash_tree): Use wide-int interfaces.
15710 (output_cfg): Likewise.
15711 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
15712 (GTFILES): Add wide-int.h and signop.h.
15713 (TAGS): Look for .cc files too.
15714 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
15715 * optabs.c (expand_subword_shift): Likewise.
15716 (expand_doubleword_shift): Likewise.
15717 (expand_absneg_bit): Likewise.
15718 (expand_copysign_absneg): Likewise.
15719 (expand_copysign_bit): Likewise.
15720 * postreload.c (reload_cse_simplify_set): Likewise.
15721 * predict.c (predict_iv_comparison): Likewise.
15722 * pretty-print.h: Include wide-int-print.h.
15723 (pp_wide_int) New.
15724 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
15725 * print-tree.c: Include wide-int-print.h.
15726 (print_node_brief): Use wide-int interfaces.
15727 (print_node): Likewise.
15728 * read-rtl.c (validate_const_wide_int): New.
15729 (read_rtx_code): Add CONST_WIDE_INT case.
15730 * real.c: Include wide-int.h.
15731 (real_to_integer2): Delete.
15732 (real_to_integer): New function, returning a wide_int.
15733 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
15734 (ten_to_ptwo): Update call to real_from_integer.
15735 (real_digit): Likewise.
15736 * real.h: Include signop.h, wide-int.h and insn-modes.h.
15737 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
15738 (REAL_VALUE_TO_INT): Delete.
15739 (real_to_integer): Declare a wide-int form.
15740 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
15741 * recog.c (const_int_operand): Improve comment.
15742 (const_scalar_int_operand): New.
15743 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
15744 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
15745 (split_double): Likewise.
15746 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
15747 (rtx_size): Likewise.
15748 (rtx_alloc_stat_v): New.
15749 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
15750 (cwi_output_hex): New.
15751 (iterative_hash_rtx): Handle CONST_WIDE_INT.
15752 (cwi_check_failed_bounds): New.
15753 * rtl.def (CONST_WIDE_INT): New.
15754 * rtl.h: Include <utility> and wide-int.h.
15755 (struct hwivec_def): New.
15756 (CWI_GET_NUM_ELEM): New.
15757 (CWI_PUT_NUM_ELEM): New.
15758 (struct rtx_def): Add num_elem and hwiv.
15759 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
15760 (CASE_CONST_UNIQUE): Likewise.
15761 (CASE_CONST_ANY): Likewise.
15762 (CONST_SCALAR_INT_P): Likewise.
15763 (CONST_WIDE_INT_P): New.
15764 (CWI_ELT): New.
15765 (HWIVEC_CHECK): New.
15766 (cwi_check_failed_bounds): New.
15767 (CWI_ELT): New.
15768 (HWIVEC_CHECK): New.
15769 (CONST_WIDE_INT_VEC) New.
15770 (CONST_WIDE_INT_NUNITS) New.
15771 (CONST_WIDE_INT_ELT) New.
15772 (rtx_mode_t): New type.
15773 (wi::int_traits <rtx_mode_t>): New.
15774 (wi::shwi): New.
15775 (wi::min_value): New.
15776 (wi::max_value): New.
15777 (rtx_alloc_v) New.
15778 (const_wide_int_alloc): New.
15779 (immed_wide_int_const): New.
15780 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
15781 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
15782 * signop.h: New file.
15783 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
15784 (simplify_const_unary_operation): Use wide-int interfaces.
15785 (simplify_binary_operation_1): Likewise.
15786 (simplify_const_binary_operation): Likewise.
15787 (simplify_const_relational_operation): Likewise.
15788 (simplify_immed_subreg): Likewise.
15789 * stmt.c (expand_case): Likewise.
15790 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
15791 signop rather than a bool.
15792 * stor-layout.c (layout_type): Use wide-int interfaces.
15793 (initialize_sizetypes): Update calls to
15794 set_min_and_max_values_for_integral_type.
15795 (set_min_and_max_values_for_integral_type): Take a signop rather
15796 than a bool. Use wide-int interfaces.
15797 (fixup_signed_type): Update accordingly. Remove
15798 HOST_BITS_PER_DOUBLE_INT limit.
15799 (fixup_unsigned_type): Likewise.
15800 * system.h (STATIC_CONSTANT_P): New.
15801 (STATIC_ASSERT): New.
15802 * target.def (can_use_doloop_p): Take widest_ints rather than
15803 double_ints.
15804 * target.h: Include wide-int.h rather than double-int.h.
15805 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
15806 than double_ints.
15807 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
15808 rather than INT_CST_LT_UNSIGNED.
15809 (can_use_doloop_if_innermost): Take widest_ints rather than
15810 double_ints.
15811 * tree-affine.c: Include wide-int-print.h.
15812 (double_int_ext_for_comb): Delete.
15813 (wide_int_ext_for_comb): New.
15814 (aff_combination_zero): Use wide-int interfaces.
15815 (aff_combination_const): Take a widest_int instead of a double_int.
15816 (aff_combination_elt): Use wide-int interfaces.
15817 (aff_combination_scale): Take a widest_int instead of a double_int.
15818 (aff_combination_add_elt): Likewise.
15819 (aff_combination_add_cst): Likewise.
15820 (aff_combination_add): Use wide-int interfaces.
15821 (aff_combination_convert): Likewise.
15822 (tree_to_aff_combination): Likewise.
15823 (add_elt_to_tree): Take a widest_int instead of a double_int.
15824 (aff_combination_to_tree): Use wide-int interfaces.
15825 (aff_combination_remove_elt): Likewise.
15826 (aff_combination_add_product): Take a widest_int instead of
15827 a double_int.
15828 (aff_combination_mult): Use wide-int interfaces.
15829 (aff_combination_expand): Likewise.
15830 (double_int_constant_multiple_p): Delete.
15831 (wide_int_constant_multiple_p): New.
15832 (aff_combination_constant_multiple_p): Take a widest_int pointer
15833 instead of a double_int pointer.
15834 (print_aff): Use wide-int interfaces.
15835 (get_inner_reference_aff): Take a widest_int pointer
15836 instead of a double_int pointer.
15837 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
15838 * tree-affine.h: Include wide-int.h.
15839 (struct aff_comb_elt): Change type of coef to widest_int.
15840 (struct affine_tree_combination): Change type of offset to widest_int.
15841 (double_int_ext_for_comb): Delete.
15842 (wide_int_ext_for_comb): New.
15843 (aff_combination_const): Use widest_int instead of double_int.
15844 (aff_combination_scale): Likewise.
15845 (aff_combination_add_elt): Likewise.
15846 (aff_combination_constant_multiple_p): Likewise.
15847 (get_inner_reference_aff): Likewise.
15848 (aff_comb_cannot_overlap_p): Likewise.
15849 (aff_combination_zero_p): Use wide-int interfaces.
15850 * tree.c: Include tree.h.
15851 (init_ttree): Use make_int_cst.
15852 (tree_code_size): Removed code for INTEGER_CST case.
15853 (tree_size): Add INTEGER_CST case.
15854 (make_node_stat): Update comment.
15855 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
15856 (build_int_cst_type): Use wide-int interfaces.
15857 (double_int_to_tree): Likewise.
15858 (double_int_fits_to_tree_p): Delete.
15859 (force_fit_type_double): Delete.
15860 (force_fit_type): New.
15861 (int_cst_hash_hash): Use wide-int interfaces.
15862 (int_cst_hash_eq): Likewise.
15863 (build_int_cst_wide): Delete.
15864 (wide_int_to_tree): New.
15865 (cache_integer_cst): Use wide-int interfaces.
15866 (build_low_bits_mask): Likewise.
15867 (cst_and_fits_in_hwi): Likewise.
15868 (real_value_from_int_cst): Likewise.
15869 (make_int_cst_stat): New.
15870 (integer_zerop): Use wide_int interfaces.
15871 (integer_onep): Likewise.
15872 (integer_all_onesp): Likewise.
15873 (integer_pow2p): Likewise.
15874 (integer_nonzerop): Likewise.
15875 (tree_log2): Likewise.
15876 (tree_floor_log2): Likewise.
15877 (tree_ctz): Likewise.
15878 (int_size_in_bytes): Likewise.
15879 (mem_ref_offset): Return an offset_int rather than a double_int.
15880 (build_type_attribute_qual_variant): Use wide_int interfaces.
15881 (type_hash_eq): Likewise
15882 (tree_int_cst_equal): Likewise.
15883 (tree_int_cst_lt): Delete.
15884 (tree_int_cst_compare): Likewise.
15885 (tree_fits_shwi_p): Use wide_int interfaces.
15886 (tree_fits_uhwi_p): Likewise.
15887 (tree_int_cst_sign_bit): Likewise.
15888 (tree_int_cst_sgn): Likewise.
15889 (tree_int_cst_min_precision): Take a signop rather than a bool.
15890 (simple_cst_equal): Use wide_int interfaces.
15891 (compare_tree_int): Likewise.
15892 (iterative_hash_expr): Likewise.
15893 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
15894 INT_CST_LT.
15895 (get_type_static_bounds): Use wide_int interfaces.
15896 (tree_int_cst_elt_check_failed): New.
15897 (build_common_tree_nodes): Reordered to set prec before filling in
15898 value.
15899 (int_cst_value): Check cst_and_fits_in_hwi.
15900 (widest_int_cst_value): Use wide_int interfaces.
15901 (upper_bound_in_type): Likewise.
15902 (lower_bound_in_type): Likewise.
15903 (num_ending_zeros): Likewise.
15904 (drop_tree_overflow): Likewise.
15905 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
15906 (gen_conditions_for_pow_cst_base): Likewise.
15907 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
15908 (group_case_labels_stmt): Use wide-int interfaces.
15909 (verify_gimple_assign_binary): Likewise.
15910 (print_loop): Likewise.
15911 * tree-chrec.c (tree_fold_binomial): Likewise.
15912 * tree-core.h (struct tree_base): Add int_length.
15913 (struct tree_int_cst): Change rep of value.
15914 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
15915 (dr_may_alias_p): Likewise.
15916 (max_stmt_executions_tree): Likewise.
15917 * tree.def (INTEGER_CST): Update comment.
15918 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
15919 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
15920 * tree-dump.c: Include wide-int.h and wide-int-print.h.
15921 (dequeue_and_dump): Use wide-int interfaces.
15922 * tree.h: Include wide-int.h.
15923 (NULL_TREE): Moved to earlier loc in file.
15924 (TREE_INT_CST_ELT_CHECK): New.
15925 (tree_int_cst_elt_check_failed): New.
15926 (TYPE_SIGN): New.
15927 (TREE_INT_CST): Delete.
15928 (TREE_INT_CST_LOW): Use wide-int interfaces.
15929 (TREE_INT_CST_HIGH): Delete.
15930 (TREE_INT_CST_NUNITS): New.
15931 (TREE_INT_CST_EXT_NUNITS): Likewise.
15932 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
15933 (TREE_INT_CST_ELT): Likewise.
15934 (INT_CST_LT): Delete.
15935 (tree_int_cst_elt_check): New (two forms).
15936 (type_code_size): Update comment.
15937 (make_int_cst_stat, make_int_cst): New.
15938 (tree_to_double_int): Delete.
15939 (double_int_fits_to_tree_p): Delete.
15940 (force_fit_type_double): Delete.
15941 (build_int_cstu): Replace with out-of-line function.
15942 (build_int_cst_wide): Delete.
15943 (tree_int_cst_lt): Define inline.
15944 (tree_int_cst_le): New.
15945 (tree_int_cst_compare): Define inline.
15946 (tree_int_cst_min_precision): Take a signop rather than a bool.
15947 (wi::int_traits <const_tree>): New.
15948 (wi::int_traits <tree>): New.
15949 (wi::extended_tree): New.
15950 (wi::int_traits <wi::extended_tree>): New.
15951 (wi::to_widest): New.
15952 (wi::to_offset): New.
15953 (wi::fits_to_tree_p): New.
15954 (wi::min_value): New.
15955 (wi::max_value): New.
15956 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
15957 (copy_tree_body_r): Likewise.
15958 * tree-object-size.c (compute_object_offset): Likewise.
15959 (addr_object_size): Likewise.
15960 * tree-predcom.c: Include wide-int-print.h.
15961 (struct dref_d): Change type of offset to widest_int.
15962 (dump_dref): Call wide-int printer.
15963 (aff_combination_dr_offset): Use wide-int interfaces.
15964 (determine_offset): Take a widest_int pointer rather than a
15965 double_int pointer.
15966 (split_data_refs_to_components): Use wide-int interfaces.
15967 (suitable_component_p): Likewise.
15968 (order_drefs): Likewise.
15969 (add_ref_to_chain): Likewise.
15970 (valid_initializer_p): Likewise.
15971 (determine_roots_comp): Likewise.
15972 * tree-pretty-print.c: Include wide-int-print.h.
15973 (dump_generic_node): Use wide-int interfaces.
15974 * tree-sra.c (sra_ipa_modify_expr): Likewise.
15975 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
15976 (move_fixed_address_to_symbol): Likewise.
15977 (move_hint_to_base): Likewise.
15978 (move_pointer_to_base): Likewise.
15979 (move_variant_to_index): Likewise.
15980 (most_expensive_mult_to_index): Likewise.
15981 (addr_to_parts): Likewise.
15982 (copy_ref_info): Likewise.
15983 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
15984 (indirect_refs_may_alias_p): Likewise.
15985 (stmt_kills_ref_p_1): Likewise.
15986 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
15987 * tree-ssa-ccp.c: Update comment at top of file. Include
15988 wide-int-print.h.
15989 (struct prop_value_d): Change type of mask to widest_int.
15990 (extend_mask): New function.
15991 (dump_lattice_value): Use wide-int interfaces.
15992 (get_default_value): Likewise.
15993 (set_constant_value): Likewise.
15994 (set_value_varying): Likewise.
15995 (valid_lattice_transition): Likewise.
15996 (set_lattice_value): Likewise.
15997 (value_to_double_int): Delete.
15998 (value_to_wide_int): New.
15999 (get_value_from_alignment): Use wide-int interfaces.
16000 (get_value_for_expr): Likewise.
16001 (do_dbg_cnt): Likewise.
16002 (ccp_finalize): Likewise.
16003 (ccp_lattice_meet): Likewise.
16004 (bit_value_unop_1): Use widest_ints rather than double_ints.
16005 (bit_value_binop_1): Likewise.
16006 (bit_value_unop): Use wide-int interfaces.
16007 (bit_value_binop): Likewise.
16008 (bit_value_assume_aligned): Likewise.
16009 (evaluate_stmt): Likewise.
16010 (ccp_fold_stmt): Likewise.
16011 (visit_cond_stmt): Likewise.
16012 (ccp_visit_stmt): Likewise.
16013 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
16014 (constant_pointer_difference): Likewise.
16015 (associate_pointerplus): Likewise.
16016 (combine_conversions): Likewise.
16017 * tree-ssa-loop.h: Include wide-int.h.
16018 (struct tree_niter_desc): Change type of max to widest_int.
16019 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
16020 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
16021 (remove_redundant_iv_tests): Likewise.
16022 (canonicalize_loop_induction_variables): Likewise.
16023 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
16024 (constant_multiple_of): Take a widest_int pointer instead of
16025 a double_int pointer.
16026 (get_computation_aff): Use wide-int interfaces.
16027 (ptr_difference_cost): Likewise.
16028 (difference_cost): Likewise.
16029 (get_loop_invariant_expr_id): Likewise.
16030 (get_computation_cost_at): Likewise.
16031 (iv_elimination_compare_lt): Likewise.
16032 (may_eliminate_iv): Likewise.
16033 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
16034 instead of double_int.
16035 (max_loop_iterations): Likewise.
16036 (max_stmt_executions): Likewise.
16037 (estimated_stmt_executions): Likewise.
16038 * tree-ssa-loop-niter.c: Include wide-int-print.h.
16039 (split_to_var_and_offset): Use wide-int interfaces.
16040 (determine_value_range): Likewise.
16041 (bound_difference_of_offsetted_base): Likewise.
16042 (bounds_add): Take a widest_int instead of a double_int.
16043 (number_of_iterations_ne_max): Use wide-int interfaces.
16044 (number_of_iterations_ne): Likewise.
16045 (number_of_iterations_lt_to_ne): Likewise.
16046 (assert_loop_rolls_lt): Likewise.
16047 (number_of_iterations_lt): Likewise.
16048 (number_of_iterations_le): Likewise.
16049 (number_of_iterations_cond): Likewise.
16050 (number_of_iterations_exit): Likewise.
16051 (finite_loop_p): Likewise.
16052 (derive_constant_upper_bound_assign): Likewise.
16053 (derive_constant_upper_bound): Return a widest_int.
16054 (derive_constant_upper_bound_ops): Likewise.
16055 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
16056 (record_estimate): Take a widest_int rather than a double_int.
16057 (record_nonwrapping_iv): Use wide-int interfaces.
16058 (double_int_cmp): Delete.
16059 (wide_int_cmp): New.
16060 (bound_index): Take a widest_int rather than a double_int.
16061 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
16062 (maybe_lower_iteration_bound): Likewise.
16063 (estimate_numbers_of_iterations_loop): Likewise.
16064 (estimated_loop_iterations): Take a widest_int pointer than than
16065 a double_int pointer.
16066 (estimated_loop_iterations_int): Use wide-int interfaces.
16067 (max_loop_iterations): Take a widest_int pointer than than
16068 a double_int pointer.
16069 (max_loop_iterations_int): Use wide-int interfaces.
16070 (max_stmt_executions): Take a widest_int pointer than than
16071 a double_int pointer.
16072 (estimated_stmt_executions): Likewise.
16073 (n_of_executions_at_most): Use wide-int interfaces.
16074 (scev_probably_wraps_p): Likewise.
16075 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
16076 to real_to_integer.
16077 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
16078 interfaces.
16079 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
16080 double_ints. Adjust for trailing_wide_ints <3> representation.
16081 (set_nonzero_bits): Likewise.
16082 (get_range_info): Return wide_ints rather than double_ints.
16083 Adjust for trailing_wide_ints <3> representation.
16084 (get_nonzero_bits): Likewise.
16085 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
16086 representation.
16087 * tree-ssanames.h (struct range_info_def): Replace min, max and
16088 nonzero_bits with a trailing_wide_ints <3>.
16089 (set_range_info): Use wide_int_refs rather than double_ints.
16090 (set_nonzero_bits): Likewise.
16091 (get_range_info): Return wide_ints rather than double_ints.
16092 (get_nonzero_bits): Likewise.
16093 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
16094 * tree-ssa-pre.c (phi_translate_1): Likewise.
16095 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
16096 (acceptable_pow_call): Likewise.
16097 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
16098 interfaces.
16099 (vn_reference_fold_indirect): Likewise.
16100 (vn_reference_maybe_forwprop_address): Likewise.
16101 (valueize_refs_1): Likewise.
16102 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
16103 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
16104 tree_int_cst_lt and tree_int_cst_le.
16105 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
16106 interfaces.
16107 (streamer_alloc_tree): Likewise.
16108 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
16109 (streamer_write_tree_header): Likewise.
16110 (streamer_write_integer_cst): Likewise.
16111 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
16112 (build_constructors): Likewise.
16113 (array_value_type): Likewise.
16114 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
16115 (vect_check_gather): Likewise.
16116 * tree-vect-generic.c (build_replicated_const): Likewise.
16117 (expand_vector_divmod): Likewise.
16118 * tree-vect-loop.c (vect_transform_loop): Likewise.
16119 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
16120 (vect_do_peeling_for_alignment): Likewise.
16121 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
16122 * tree-vrp.c: Include wide-int.h.
16123 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
16124 (extract_range_from_assert): Use wide-int interfaces.
16125 (vrp_int_const_binop): Likewise.
16126 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
16127 double_int pointers.
16128 (ranges_from_anti_range): Use wide-int interfaces.
16129 (quad_int_cmp): Delete.
16130 (quad_int_pair_sort): Likewise.
16131 (extract_range_from_binary_expr_1): Use wide-int interfaces.
16132 (extract_range_from_unary_expr_1): Likewise.
16133 (adjust_range_with_scev): Likewise.
16134 (masked_increment): Take and return wide_ints rather than double_ints.
16135 (register_edge_assert_for_2): Use wide-int interfaces.
16136 (check_array_ref): Likewise.
16137 (search_for_addr_array): Likewise.
16138 (maybe_set_nonzero_bits): Likewise.
16139 (union_ranges): Pass an integer of the correct type instead of
16140 using integer_one_node.
16141 (intersect_ranges): Likewise.
16142 (simplify_truth_ops_using_ranges): Likewise.
16143 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
16144 (range_fits_type_p): Likewise.
16145 (simplify_cond_using_ranges): Likewise. Take a signop rather than
16146 a bool.
16147 (simplify_conversion_using_ranges): Use wide-int interfaces.
16148 (simplify_float_conversion_using_ranges): Likewise.
16149 (vrp_finalize): Likewise.
16150 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
16151 (gimple_stringops_transform): Likewise.
16152 * varasm.c (decode_addr_const): Likewise.
16153 (const_hash_1): Likewise.
16154 (const_rtx_hash_1): Likewise
16155 (output_constant): Likewise.
16156 (array_size_for_constructor): Likewise.
16157 (output_constructor_regular_field): Likewise.
16158 (output_constructor_bitfield): Likewise.
16159 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
16160 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
16161 GENERATOR_FILEs.
16162 * gencheck.c: Define BITS_PER_UNIT.
16163 * wide-int.cc: New.
16164 * wide-int.h: New.
16165 * wide-int-print.cc: New.
16166 * wide-int-print.h: New.
16167
16168 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16169
16170 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
16171
16172 2014-05-06 Richard Biener <rguenther@suse.de>
16173
16174 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
16175 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
16176 (TODO_verify_all): Adjust.
16177 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
16178 TODO_verify_stmts and TODO_verify_rtl_sharing.
16179 * bb-reorder.c: Likewise.
16180 * cfgexpand.c: Likewise.
16181 * cprop.c: Likewise.
16182 * cse.c: Likewise.
16183 * function.c: Likewise.
16184 * fwprop.c: Likewise.
16185 * gcse.c: Likewise.
16186 * gimple-ssa-isolate-paths.c: Likewise.
16187 * gimple-ssa-strength-reduction.c: Likewise.
16188 * ipa-split.c: Likewise.
16189 * loop-init.c: Likewise.
16190 * loop-unroll.c: Likewise.
16191 * lower-subreg.c: Likewise.
16192 * modulo-sched.c: Likewise.
16193 * postreload-gcse.c: Likewise.
16194 * predict.c: Likewise.
16195 * recog.c: Likewise.
16196 * sched-rgn.c: Likewise.
16197 * store-motion.c: Likewise.
16198 * tracer.c: Likewise.
16199 * trans-mem.c: Likewise.
16200 * tree-call-cdce.c: Likewise.
16201 * tree-cfg.c: Likewise.
16202 * tree-cfgcleanup.c: Likewise.
16203 * tree-complex.c: Likewise.
16204 * tree-eh.c: Likewise.
16205 * tree-emutls.c: Likewise.
16206 * tree-if-conv.c: Likewise.
16207 * tree-into-ssa.c: Likewise.
16208 * tree-loop-distribution.c: Likewise.
16209 * tree-object-size.c: Likewise.
16210 * tree-parloops.c: Likewise.
16211 * tree-pass.h: Likewise.
16212 * tree-sra.c: Likewise.
16213 * tree-ssa-ccp.c: Likewise.
16214 * tree-ssa-copy.c: Likewise.
16215 * tree-ssa-copyrename.c: Likewise.
16216 * tree-ssa-dce.c: Likewise.
16217 * tree-ssa-dom.c: Likewise.
16218 * tree-ssa-dse.c: Likewise.
16219 * tree-ssa-forwprop.c: Likewise.
16220 * tree-ssa-ifcombine.c: Likewise.
16221 * tree-ssa-loop-ch.c: Likewise.
16222 * tree-ssa-loop-ivcanon.c: Likewise.
16223 * tree-ssa-loop.c: Likewise.
16224 * tree-ssa-math-opts.c: Likewise.
16225 * tree-ssa-phiopt.c: Likewise.
16226 * tree-ssa-phiprop.c: Likewise.
16227 * tree-ssa-pre.c: Likewise.
16228 * tree-ssa-reassoc.c: Likewise.
16229 * tree-ssa-sink.c: Likewise.
16230 * tree-ssa-strlen.c: Likewise.
16231 * tree-ssa-tail-merge.c: Likewise.
16232 * tree-ssa-uncprop.c: Likewise.
16233 * tree-switch-conversion.c: Likewise.
16234 * tree-tailcall.c: Likewise.
16235 * tree-vect-generic.c: Likewise.
16236 * tree-vectorizer.c: Likewise.
16237 * tree-vrp.c: Likewise.
16238 * tsan.c: Likewise.
16239 * var-tracking.c: Likewise.
16240 * bt-load.c: Likewise.
16241 * cfgcleanup.c: Likewise.
16242 * combine-stack-adj.c: Likewise.
16243 * combine.c: Likewise.
16244 * compare-elim.c: Likewise.
16245 * config/epiphany/resolve-sw-modes.c: Likewise.
16246 * config/i386/i386.c: Likewise.
16247 * config/mips/mips.c: Likewise.
16248 * config/s390/s390.c: Likewise.
16249 * config/sh/sh_treg_combine.cc: Likewise.
16250 * config/sparc/sparc.c: Likewise.
16251 * dce.c: Likewise.
16252 * dse.c: Likewise.
16253 * final.c: Likewise.
16254 * ifcvt.c: Likewise.
16255 * mode-switching.c: Likewise.
16256 * passes.c: Likewise.
16257 * postreload.c: Likewise.
16258 * ree.c: Likewise.
16259 * reg-stack.c: Likewise.
16260 * regcprop.c: Likewise.
16261 * regrename.c: Likewise.
16262 * web.c: Likewise.
16263
16264 2014-05-06 Richard Biener <rguenther@suse.de>
16265
16266 PR middle-end/61070
16267 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
16268 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
16269
16270 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
16271
16272 PR ipa/60965
16273 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
16274
16275 2014-05-05 Radovan Obradovic <robradovic@mips.com>
16276 Tom de Vries <tom@codesourcery.com>
16277
16278 * target.def (call_fusage_contains_non_callee_clobbers): New
16279 DEFHOOKPOD.
16280 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
16281 Hooks to @menu.
16282 (@node Miscellaneous Register Hooks): New node.
16283 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
16284 * doc/tm.texi: Regenerate.
16285
16286 2014-05-05 Marek Polacek <polacek@redhat.com>
16287
16288 PR driver/61065
16289 * opts.c (common_handle_option): Call error_at instead of warning_at.
16290
16291 2014-05-05 Richard Biener <rguenther@suse.de>
16292
16293 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
16294 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
16295 under the TODO_verify_il umbrella.
16296
16297 2014-05-05 Richard Biener <rguenther@suse.de>
16298
16299 * passes.c (execute_function_todo): Move TODO_verify_flow under
16300 the TODO_verify_ul umbrella.
16301
16302 2014-05-05 Richard Biener <rguenther@suse.de>
16303
16304 PR middle-end/61010
16305 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
16306 X & CST away from a CST that is the mask of a mode.
16307
16308 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16309
16310 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
16311 int argument to enum machine_mode.
16312 (picochip_class_max_nregs): Ditto.
16313 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
16314 (picochip_class_max_nregs): Ditto.
16315
16316 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16317
16318 * target.def: Add new target hook.
16319 * doc/tm.texi: Regenerate.
16320 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
16321 * targhooks.c (default_keep_leaf_when_profiled): New function.
16322
16323 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
16324 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
16325
16326 2014-05-05 Bin Cheng <bin.cheng@arm.com>
16327
16328 PR tree-optimization/60363
16329 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
16330 (copy_phi_args): New parameters. Call get_value_locus_in_path.
16331 (update_destination_phis): New parameter.
16332 (create_edge_and_update_destination_phis): Ditto.
16333 (ssa_fix_duplicate_block_edges): Pass new arguments.
16334 (thread_single_edge): Ditto.
16335
16336 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
16337
16338 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
16339 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
16340 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
16341 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
16342 Use RS6000_BTM_HARD_FLOAT.
16343 (BU_MISC_2): Likewise.
16344 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16345 RS6000_BTM_HARD_FLOAT.
16346 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
16347 is explicitly used.
16348 (rs6000_invalid_builtin): Add hard floating builtin support.
16349 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
16350 hard float builtins.
16351 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
16352
16353 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
16354
16355 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
16356 Add missing function* argument.
16357
16358 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16359
16360 * lra-constraints.c (valid_address_p): Move earlier in file.
16361 Add a constraint argument to the address_info version.
16362 (satisfies_memory_constraint_p): New function.
16363 (satisfies_address_constraint_p): Likewise.
16364 (process_alt_operands, curr_insn_transform): Use them.
16365 (process_address): Pass the constraint to valid_address_p when
16366 checking address operands.
16367
16368 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16369
16370 * config/mips/mips.c (mips_isa_rev): New variable.
16371 (mips_set_architecture): Set it.
16372 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
16373 from mips_isa_rev.
16374 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
16375 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
16376 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
16377 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
16378 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
16379 conditions in terms of mips_isa_rev.
16380 (mips_isa_rev): Declare.
16381
16382 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
16383
16384 * config/sh/sh-mem.cc: Use tabs instead of spaces.
16385 (prob_unlikely, prob_likely): Make variables const.
16386
16387 2014-05-03 Denis Chertykov <chertykov@gmail.com>
16388
16389 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
16390
16391 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
16392
16393 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
16394
16395 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
16396
16397 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
16398 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
16399 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
16400 functions.
16401 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
16402 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
16403 sh_pass_in_reg_p.
16404 Replace usage of ROUND_REG with sh_round_reg.
16405 Use CEIL instead of ROUND_ADVANCE.
16406
16407 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
16408
16409 PR target/61026
16410 * config/sh/sh.c: Include stdlib headers before everything else.
16411
16412 2014-05-02 Jakub Jelinek <jakub@redhat.com>
16413
16414 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
16415 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
16416 (gimplify_adjust_omp_clauses): Simd region is never
16417 directly nested in combined parallel. Instead, for linear
16418 with copyin/copyout, if in combined for simd loop, make decl
16419 firstprivate/lastprivate on OMP_FOR.
16420 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
16421 expand_omp_for_static_chunk): When setting endvar, also set
16422 fd->loop.v to the same value.
16423
16424 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16425
16426 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
16427
16428 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
16429
16430 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
16431 expression.
16432
16433 2014-05-02 Marek Polacek <polacek@redhat.com>
16434
16435 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
16436
16437 2014-05-02 Kito Cheng <kito@0xlab.org>
16438
16439 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
16440 to a C expression marco.
16441 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
16442 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
16443 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
16444 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
16445 HONOR_REG_ALLOC_ORDER.
16446 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
16447
16448 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16449
16450 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
16451
16452 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16453
16454 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
16455
16456 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
16457
16458 * tree-if-conv.c (is_cond_scalar_reduction): New function.
16459 (convert_scalar_cond_reduction): Likewise.
16460 (predicate_scalar_phi): Add recognition and transformation
16461 of simple conditioanl reduction to be vectorizable.
16462
16463 2014-05-01 Marek Polacek <polacek@redhat.com>
16464
16465 PR c/43245
16466 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
16467
16468 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
16469
16470 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
16471 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
16472 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
16473 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
16474 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
16475 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
16476 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
16477 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
16478
16479 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
16480
16481 * config/arc/arc.opt (mlra): Move comment above option name
16482 to avoid mis-parsing as language options.
16483
16484 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16485
16486 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
16487 * config/sol2.h: ... here.
16488 * config/sol2-10.h: Remove.
16489
16490 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
16491 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
16492 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
16493 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
16494 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
16495 * config/sol2.h: ... here.
16496 (SECTION_NAME_FORMAT): Don't redefine.
16497 (STARTFILE_ARCH32_SPEC): Rename to ...
16498 (STARTFILE_ARCH_SPEC): ... this.
16499 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
16500 * config/sparc/sol2.h: ... here.
16501 (SECTION_NAME_FORMAT): Don't undef.
16502 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
16503 (SUBTARGET_EXTRA_SPECS): Remove.
16504 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
16505
16506 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
16507 (MD_STARTFILE_PREFIX): Remove.
16508 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
16509 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
16510 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
16511 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
16512 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
16513 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
16514 * config/i386/sol2.h: ... here.
16515 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
16516 * config/i386/sol2-bi.h: Remove.
16517 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
16518 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
16519
16520 * config/i386/t-sol2-64: Rename to ...
16521 * config/i386/t-sol2: ... this.
16522 * config/sparc/t-sol2-64: Rename to ...
16523 * config/sparc/t-sol2: ... this.
16524
16525 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
16526 sol2_tm_file_head, sol2_tm_file_tail.
16527 Include ${cpu_type}/sol2.h before sol2.h.
16528 Remove sol2-10.h.
16529 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
16530 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
16531 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
16532 Reflect i386/t-sol2-64 renaming.
16533 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
16534 Reflect sparc/t-sol2-64 renaming.
16535
16536 2014-04-30 Richard Biener <rguenther@suse.de>
16537
16538 * passes.c (execute_function_todo): Move TODO_verify_stmts
16539 and TODO_verify_ssa under the TODO_verify_il umbrella.
16540 * tree-ssa.h (verify_ssa): Adjust prototype.
16541 * tree-ssa.c (verify_ssa): Add parameter to tell whether
16542 we should verify SSA operands.
16543 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
16544 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
16545 whether we should verify whether not throwing stmts have EH info.
16546 * graphite-scop-detection.c (create_sese_edges): Adjust.
16547 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
16548 * tree-eh.c (lower_try_finally_switch): Do not add the
16549 default case label twice.
16550
16551 2014-04-30 Marek Polacek <polacek@redhat.com>
16552
16553 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
16554 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
16555 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
16556 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
16557
16558 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
16559
16560 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
16561 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
16562 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
16563 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
16564 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
16565 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
16566 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
16567 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
16568
16569 2014-04-29 David Malcolm <dmalcolm@redhat.com>
16570
16571 * tree-cfg.c (dump_function_to_file): Dump the return type of
16572 functions, in a line to itself before the function body, mimicking
16573 the layout of a C function.
16574
16575 2014-04-29 Jakub Jelinek <jakub@redhat.com>
16576
16577 PR tree-optimization/60971
16578 * tree-tailcall.c (process_assignment): Reject conversions which
16579 reduce precision.
16580
16581 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16582
16583 * calls.c (initialize_argument_information): Always treat
16584 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
16585 (expand_call): Likewise.
16586 (emit_library_call_calue_1): Likewise.
16587 * expr.c (PUSH_ARGS_REVERSED): Do not define.
16588 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
16589 code accordingly.
16590
16591 2014-04-29 Nick Clifton <nickc@redhat.com>
16592
16593 * config/msp430/msp430.md (umulsidi): Fix typo.
16594 (mulhisi3): Enable even inside interrupt handlers.
16595 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
16596 bigger return address pushed in large mode.
16597
16598 2014-04-29 Nick Clifton <nickc@redhat.com>
16599
16600 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
16601 (arc_init_reg_tables): Use a machine_mode enum to iterate over
16602 available modes.
16603 * config/m32r/m32r.c (init_reg_tables): Likewise.
16604 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
16605 enum to hold the modes.
16606
16607 2014-04-29 Richard Biener <rguenther@suse.de>
16608
16609 * dominance.c (free_dominance_info): Add overload with
16610 function parameter.
16611 (dom_info_state): Likewise.
16612 (dom_info_available_p): Likewise.
16613 * basic-block.h (free_dominance_info, dom_info_state,
16614 dom_info_available_p): Declare overloads.
16615 * passes.c (execute_function_todo): Verify that verifiers
16616 don't change dominator info state. Drop dominator info
16617 for IPA pass invocations.
16618 * cgraph.c (release_function_body): Restore asserts that
16619 dominator information is released.
16620
16621 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
16622
16623 * doc/invoke.texi: Fix typo.
16624 * tree-vrp.c: Fix typos.
16625 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
16626
16627 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16628
16629 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
16630
16631 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
16632
16633 * config/aarch64/aarch64-builtins.c
16634 (aarch64_types_storestruct_lane_qualifiers): New.
16635 (TYPES_STORESTRUCT_LANE): Likewise.
16636 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
16637 (st3_lane): Likewise.
16638 (st4_lane): Likewise.
16639 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
16640 (vec_store_lanesci_lane<mode>): Likewise.
16641 (vec_store_lanesxi_lane<mode>): Likewise.
16642 (aarch64_st2_lane<VQ:mode>): Likewise.
16643 (aarch64_st3_lane<VQ:mode>): Likewise.
16644 (aarch64_st4_lane<VQ:mode>): Likewise.
16645 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
16646 * config/aarch64/arm_neon.h
16647 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
16648 use new macro arguments.
16649 (__ST3_LANE_FUNC): Likewise.
16650 (__ST4_LANE_FUNC): Likewise.
16651 * config/aarch64/iterators.md (V_TWO_ELEM): New.
16652 (V_THREE_ELEM): Likewise.
16653 (V_FOUR_ELEM): Likewise.
16654
16655 2014-04-28 David Malcolm <dmalcolm@redhat.com>
16656
16657 * doc/gimple.texi: Replace the description of the now-defunct
16658 union gimple_statement_d with a diagram showing the
16659 gimple_statement_base class hierarchy and its relationships to
16660 the GSS_ and GIMPLE_ enums.
16661
16662 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
16663
16664 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
16665 * config/aarch64/aarch64.c
16666 (aarch64_cannot_change_mode_class): Weaken conditions.
16667 (aarch64_modes_tieable_p): New.
16668 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
16669
16670 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
16671
16672 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
16673 (loadsync_<mode>): Change mode.
16674 (load_quadpti, store_quadpti): New.
16675 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
16676 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
16677
16678 2014-04-28 Martin Jambor <mjambor@suse.cz>
16679
16680 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
16681 same alias type as the original statement.
16682 (subreplacement_assignment_data): New type.
16683 (handle_unscalarized_data_in_subtree): New type of parameter,
16684 generate new memory accesses with same alias type as the original
16685 statement.
16686 (load_assign_lhs_subreplacements): Likewise.
16687 (sra_modify_constructor_assign): Generate new memory accesses with
16688 same alias type as the original statement.
16689
16690 2014-04-28 Richard Biener <rguenther@suse.de>
16691
16692 * tree-pass.h (TODO_verify_il): Define.
16693 (TODO_verify_all): Complete properly.
16694 * passes.c (execute_function_todo): Move existing loop-closed
16695 SSA verification under TODO_verify_il.
16696 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
16697 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
16698 Fix tree sharing issue.
16699
16700 2014-04-28 Richard Biener <rguenther@suse.de>
16701
16702 PR middle-end/60092
16703 * builtins.def (DEF_C11_BUILTIN): Add.
16704 (BUILT_IN_ALIGNED_ALLOC): Likewise.
16705 * coretypes.h (enum function_class): Add function_c11_misc.
16706 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
16707 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
16708 (call_may_clobber_ref_p_1): Likewise.
16709 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16710 (mark_all_reaching_defs_necessary_1): Likewise.
16711 (propagate_necessity): Likewise.
16712 (eliminate_unnecessary_stmts): Likewise.
16713 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
16714
16715 2014-04-28 Richard Biener <rguenther@suse.de>
16716
16717 * tree-vrp.c (vrp_var_may_overflow): Remove.
16718 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
16719 with overflow immediately bump to one before that value and
16720 let iteration figure out overflow status.
16721
16722 2014-04-28 Richard Biener <rguenther@suse.de>
16723
16724 * configure.ac: Do valgrind header checks unconditionally.
16725 Add --enable-valgrind-annotations.
16726 * system.h: Guard valgrind header inclusion with
16727 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
16728 * alloc-pool.c (pool_alloc, pool_free): Use
16729 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
16730 to guard possibly dead code.
16731 * config.in: Regenerated.
16732 * configure: Likewise.
16733
16734 2014-04-28 Jeff Law <law@redhat.com>
16735
16736 PR tree-optimization/60902
16737 * tree-ssa-threadedge.c
16738 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
16739 over real defs when invalidating outputs from statements that do not
16740 produce useful outputs for threading.
16741
16742 2014-04-28 Richard Biener <rguenther@suse.de>
16743
16744 PR tree-optimization/60979
16745 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
16746 SCOPs that end in a block with a successor with abnormal
16747 predecessors.
16748
16749 2014-04-28 Richard Biener <rguenther@suse.de>
16750
16751 * tree-pass.h (execute_pass_list): Adjust prototype.
16752 * passes.c (pass_manager::execute_early_local_passes): Adjust.
16753 (do_per_function): Change callback signature, push all actual
16754 work to the callbals.
16755 (do_per_function_toporder): Likewise.
16756 (execute_function_dump): Adjust.
16757 (execute_function_todo): Likewise.
16758 (clear_last_verified): Likewise.
16759 (verify_curr_properties): Likewise.
16760 (update_properties_after_pass): Likewise.
16761 (execute_pass_list_1): Split out from ...
16762 (execute_pass_list): ... here. Adjust.
16763 (execute_ipa_pass_list): Likewise.
16764 * cgraphunit.c (cgraph_add_new_function): Adjust.
16765 (analyze_function): Likewise.
16766 (expand_function): Likewise.
16767 * cgraph.c (release_function_body): Free dominance info
16768 here instead of asserting it was magically freed elsewhere.
16769
16770 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
16771
16772 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
16773 * configure: Regenerate.
16774 * config/sparc/sparc.opt (muser-mode): New option.
16775 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
16776 for LEON3.
16777 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
16778 * doc/invoke.texi (SPARC options): Document -muser-mode.
16779
16780 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
16781
16782 * cselib.c (find_slot_memmode): Delete.
16783 (cselib_hasher): Change compare_type to a struct.
16784 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
16785 constants.
16786 (preserve_constants_and_equivs): Adjust for new compare_type.
16787 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
16788 (wrap_constant): Delete.
16789 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
16790
16791 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
16792
16793 * doc/install.texi (Building with profile feedback): Remove
16794 outdated sentence.
16795
16796 2014-04-26 Tom de Vries <tom@codesourcery.com>
16797
16798 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
16799 array accesses.
16800
16801 2014-04-25 Cary Coutant <ccoutant@google.com>
16802
16803 PR debug/60929
16804 * dwarf2out.c (should_move_die_to_comdat): A type definition
16805 can contain a subprogram definition, but don't move it to a
16806 comdat unit.
16807 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
16808 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
16809 from original DIE.
16810 (clone_tree_hash): Rename to...
16811 (clone_tree_partial): ...this; change callers. Copy
16812 DW_TAG_subprogram DIEs as declarations.
16813 (copy_decls_walk): Don't copy children of a declaration into a
16814 type unit.
16815
16816 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
16817
16818 PR target/60969
16819 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
16820 alternative 12.
16821
16822 2014-04-25 Jiong Wang <jiong.wang@arm.com>
16823
16824 * config/arm/predicates.md (call_insn_operand): Add long_call check.
16825 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
16826 reg for long_call.
16827 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
16828 restriction.
16829
16830 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16831
16832 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
16833
16834 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16835
16836 PR tree-optimization/60930
16837 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
16838 creating a multiply candidate by folding two constant
16839 multiplicands when the result overflows.
16840
16841 2014-04-25 Jakub Jelinek <jakub@redhat.com>
16842
16843 PR tree-optimization/60960
16844 * tree-vect-generic.c (expand_vector_operation): Only call
16845 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
16846
16847 2014-04-25 Tom de Vries <tom@codesourcery.com>
16848
16849 * expr.c (clobber_reg_mode): New function.
16850 * expr.h (clobber_reg): New function.
16851
16852 2014-04-25 Tom de Vries <tom@codesourcery.com>
16853
16854 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
16855 clobbers.
16856
16857 2014-04-25 Radovan Obradovic <robradovic@mips.com>
16858 Tom de Vries <tom@codesourcery.com>
16859
16860 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
16861 handle.
16862 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
16863 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
16864 new argument to find_all_hard_reg_sets call.
16865
16866 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16867
16868 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
16869 Use HOST_WIDE_INT_C for mask literal.
16870 (aarch_rev16_shleft_mask_imm_p): Likewise.
16871
16872 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
16873
16874 PR target/60941
16875 * config/sparc/sparc.md (ashlsi3_extend): Delete.
16876
16877 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
16878
16879 PR preprocessor/56540
16880 * config/i386/i386-c.c (ix86_target_macros): Define
16881 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
16882
16883 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16884
16885 * configure.ac (tga_func): Remove.
16886 (LIB_TLS_SPEC): Remove.
16887 * configure: Regenerate.
16888 * config.in: Regenerate.
16889 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
16890
16891 2014-04-25 Richard Biener <rguenther@suse.de>
16892
16893 PR ipa/60912
16894 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
16895 call stmt use/clobber sets during stmt walk instead of
16896 walking the possibly incomplete set of caller edges.
16897
16898 2014-04-25 Richard Biener <rguenther@suse.de>
16899
16900 PR ipa/60911
16901 * passes.c (apply_ipa_transforms): Inline into only caller ...
16902 (execute_one_pass): ... here. Properly bring in function
16903 bodies for nodes we want to apply IPA transforms to.
16904
16905 2014-04-24 Cong Hou <congh@google.com>
16906
16907 PR tree-optimization/60896
16908 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
16909 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
16910 (vect_mark_pattern_stmts): Set the def type of all statements in
16911 PATTERN_DEF_SEQ as vect_internal_def.
16912
16913 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16914
16915 * doc/extend.texi (PowerPC Built-in Functions): Document new
16916 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
16917 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
16918
16919 * config/rs6000/predicates.md (const_0_to_3_operand): New
16920 predicate to match 0..3 integer constants.
16921
16922 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
16923 to support adding miscellaneous builtin functions.
16924 (BU_DFP_MISC_2): Likewise.
16925 (BU_P7_MISC_1): Likewise.
16926 (BU_P7_MISC_2): Likewise.
16927 (BU_P8V_MISC_3): Likewise.
16928 (BU_MISC_1): Likewise.
16929 (BU_MISC_2): Likewise.
16930 (DIVWE): Add extended divide builtin functions.
16931 (DIVWEO): Likewise.
16932 (DIVWEU): Likewise.
16933 (DIVWEUO): Likewise.
16934 (DIVDE): Likewise.
16935 (DIVDEO): Likewise.
16936 (DIVDEU): Likewise.
16937 (DIVDEUO): Likewise.
16938 (DXEX): Add decimal floating-point builtin functions.
16939 (DXEXQ): Likewise.
16940 (DDEDPD): Likewise.
16941 (DDEDPDQ): Likewise.
16942 (DENBCD): Likewise.
16943 (DENBCDQ): Likewise.
16944 (DIEX): Likewise.
16945 (DIEXQ): Likewise.
16946 (DSCLI): Likewise.
16947 (DSCLIQ): Likewise.
16948 (DSCRI): Likewise.
16949 (DSCRIQ): Likewise.
16950 (CDTBCD): Add new BCD builtin functions.
16951 (CBCDTD): Likewise.
16952 (ADDG6S): Likewise.
16953 (BCDADD): Likewise.
16954 (BCDADD_LT): Likewise.
16955 (BCDADD_EQ): Likewise.
16956 (BCDADD_GT): Likewise.
16957 (BCDADD_OV): Likewise.
16958 (BCDSUB): Likewise.
16959 (BCDSUB_LT): Likewise.
16960 (BCDSUB_EQ): Likewise.
16961 (BCDSUB_GT): Likewise.
16962 (BCDSUB_OV): Likewise.
16963 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
16964 (UNPACK_TD): Likewise.
16965 (PACK_TF): Likewise.
16966 (UNPACK_TF): Likewise.
16967 (UNPACK_TF_0): Likewise.
16968 (UNPACK_TF_1): Likewise.
16969 (PACK_V1TI): Likewise.
16970 (UNPACK_V1TI): Likewise.
16971
16972 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
16973 support for decimal floating point builtin functions.
16974 (rs6000_expand_ternop_builtin): Add checks for the new builtin
16975 functions that take constant arguments.
16976 (rs6000_invalid_builtin): Add decimal floating point builtin support.
16977 (rs6000_init_builtins): Setup long double, _Decimal64, and
16978 _Decimal128 types for new builtin functions.
16979 (builtin_function_type): Set the unsigned flags appropriately for
16980 the new builtin functions.
16981 (rs6000_opt_masks): Add support for decimal floating point builtin
16982 functions.
16983
16984 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
16985 floating point builtin functions.
16986 (RS6000_BTM_COMMON): Likewise.
16987 (RS6000_BTI_long_double): Likewise.
16988 (RS6000_BTI_dfloat64): Likewise.
16989 (RS6000_BTI_dfloat128): Likewise.
16990 (long_double_type_internal_node): Likewise.
16991 (dfloat64_type_internal_node): Likewise.
16992 (dfloat128_type_internal_node): Likewise.
16993
16994 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
16995 2.07 bcd arithmetic instructions.
16996 (UNSPEC_BCDSUB): Likewise.
16997 (UNSPEC_BCD_OVERFLOW): Likewise.
16998 (UNSPEC_BCD_ADD_SUB): Likewise.
16999 (bcd_add_sub): Likewise.
17000 (BCD_TEST): Likewise.
17001 (bcd<bcd_add_sub>): Likewise.
17002 (bcd<bcd_add_sub>_test): Likewise.
17003 (bcd<bcd_add_sub>_test2): Likewise.
17004 (bcd<bcd_add_sub>_<code>): Likewise.
17005 (peephole2 for combined bcd ops): Likewise.
17006
17007 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
17008 decimal floating point builtin functions.
17009 (UNSPEC_DENBCD): Likewise.
17010 (UNSPEC_DXEX): Likewise.
17011 (UNSPEC_DIEX): Likewise.
17012 (UNSPEC_DSCLI): Likewise.
17013 (UNSPEC_DSCRI): Likewise.
17014 (D64_D128): Likewise.
17015 (dfp_suffix): Likewise.
17016 (dfp_ddedpd_<mode>): Likewise.
17017 (dfp_denbcd_<mode>): Likewise.
17018 (dfp_dxex_<mode>): Likewise.
17019 (dfp_diex_<mode>): Likewise.
17020 (dfp_dscli_<mode>): Likewise.
17021 (dfp_dscri_<mode>): Likewise.
17022
17023 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
17024 builtin functions.
17025 (UNSPEC_CDTBCD): Likewise.
17026 (UNSPEC_CBCDTD): Likewise.
17027 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
17028 (UNSPEC_DIVEO): Likewise.
17029 (UNSPEC_DIVEU): Likewise.
17030 (UNSPEC_DIVEUO): Likewise.
17031 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
17032 pack/unpack 128-bit types.
17033 (UNSPEC_PACK_128BIT): Likewise.
17034 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
17035 (udiv<mode>3): Use idiv_ldiv mode attribute.
17036 (div<mode>3): Likewise.
17037 (addg6s): Add new BCD builtin functions.
17038 (cdtbcd): Likewise.
17039 (cbcdtd): Likewise.
17040 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
17041 (div_extend): Likewise.
17042 (div<div_extend>_<mode>"): Likewise.
17043 (FP128_64): Add support for new builtin functions to pack/unpack
17044 128-bit types.
17045 (unpack<mode>): Likewise.
17046 (unpacktf_0): Likewise.
17047 (unpacktf_1): Likewise.
17048 (unpack<mode>_dm): Likewise.
17049 (unpack<mode>_nodm): Likewise.
17050 (pack<mode>): Likewise.
17051 (unpackv1ti): Likewise.
17052 (packv1ti): Likewise.
17053
17054 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
17055
17056 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
17057 is disabled.
17058
17059 2014-04-24 Jakub Jelinek <jakub@redhat.com>
17060
17061 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
17062 * gimplify.c (omp_is_private): Change last argument's type to int.
17063 Only diagnose lastprivate if the simd argument is 1, only diagnose
17064 linear if the simd argument is 2.
17065 (gimplify_omp_for): Adjust omp_is_private callers. When adding
17066 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
17067 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
17068 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
17069 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
17070 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
17071 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
17072 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
17073 * tree-nested.c (convert_nonlocal_omp_clauses,
17074 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
17075
17076 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
17077
17078 PR target/60822
17079 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
17080 operand 1.
17081
17082 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
17083
17084 * flag-types.h (enum ivar_visibility): Add.
17085
17086 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
17087
17088 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
17089 function * argument.
17090
17091 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
17092
17093 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
17094
17095 2014-04-24 Radovan Obradovic <robradovic@mips.com>
17096 Tom de Vries <tom@codesourcery.com>
17097
17098 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
17099 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
17100 reg-note.
17101 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
17102 * emit-rtl.c (try_split): Same.
17103
17104 2014-04-24 Radovan Obradovic <robradovic@mips.com>
17105 Tom de Vries <tom@codesourcery.com>
17106
17107 * common.opt (fuse-caller-save): New option.
17108
17109 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
17110
17111 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
17112 elements for big-endian.
17113
17114 2014-04-24 Richard Biener <rguenther@suse.de>
17115
17116 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
17117 during TER and instead use the sepops interface for expanding
17118 non-GIMPLE_SINGLE_RHS.
17119
17120 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17121
17122 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
17123 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
17124
17125 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17126
17127 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
17128 assembler 64-bit option.
17129 * configure: Regenerate.
17130
17131 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17132
17133 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
17134 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
17135 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
17136 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
17137 (TARGET_CRYPTO): Take TARGET_SIMD into account.
17138
17139 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17140
17141 * config/aarch64/aarch64-builtins.c
17142 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
17143 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
17144 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
17145 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
17146 builtins.
17147 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
17148 (Vrevsuff): New mode attribute.
17149
17150 2014-04-24 Terry Guo <terry.guo@arm.com>
17151
17152 * config/arm/arm.h (machine_function): Define variable
17153 after_arm_reorg here.
17154 * config/arm/arm.c (after_arm_reorg): Remove the definition.
17155 (arm_split_constant): Update the way to access variable
17156 after_arm_reorg.
17157 (arm_reorg): Ditto.
17158 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
17159
17160 2014-04-23 Tom de Vries <tom@codesourcery.com>
17161
17162 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
17163
17164 2014-04-23 David Malcolm <dmalcolm@redhat.com>
17165
17166 * is-a.h: Update comments to reflect the following changes to the
17167 "pointerness" of the API, making the template parameter match the
17168 return type, allowing use of is-a.h with typedefs of pointers.
17169 (is_a_helper::cast): Return a T rather then a pointer to a T, so
17170 that the return type matches the parameter to the is_a_helper.
17171 (as_a): Likewise.
17172 (dyn_cast): Likewise.
17173
17174 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
17175 pointer from the is-a.h API.
17176
17177 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
17178 (is_a_helper <cgraph_node *>::test): ...this, matching change to
17179 is-a.h API.
17180 (is_a_helper <varpool_node>::test): Likewise, convert to...
17181 (is_a_helper <varpool_node *>::test): ...this.
17182
17183 (varpool_first_variable): Update for removal of implicit pointer
17184 from the is-a.h API.
17185 (varpool_next_variable): Likewise.
17186 (varpool_first_static_initializer): Likewise.
17187 (varpool_next_static_initializer): Likewise.
17188 (varpool_first_defined_variable): Likewise.
17189 (varpool_next_defined_variable): Likewise.
17190 (cgraph_first_defined_function): Likewise.
17191 (cgraph_next_defined_function): Likewise.
17192 (cgraph_first_function): Likewise.
17193 (cgraph_next_function): Likewise.
17194 (cgraph_first_function_with_gimple_body): Likewise.
17195 (cgraph_next_function_with_gimple_body): Likewise.
17196 (cgraph_alias_target): Likewise.
17197 (varpool_alias_target): Likewise.
17198 (cgraph_function_or_thunk_node): Likewise.
17199 (varpool_variable_node): Likewise.
17200 (symtab_real_symbol_p): Likewise.
17201 * cgraphunit.c (referred_to_p): Likewise.
17202 (analyze_functions): Likewise.
17203 (handle_alias_pairs): Likewise.
17204 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
17205 * gimple-ssa.h (gimple_vuse_op): Likewise.
17206 (gimple_vdef_op): Likewise.
17207 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
17208 * gimple.c (gimple_build_asm_1): Likewise.
17209 (gimple_build_try): Likewise.
17210 (gimple_build_resx): Likewise.
17211 (gimple_build_eh_dispatch): Likewise.
17212 (gimple_build_omp_for): Likewise.
17213 (gimple_omp_for_set_clauses): Likewise.
17214
17215 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
17216 (is_a_helper <gimple_statement_asm *>::test): ...this.
17217 (is_a_helper <gimple_statement_bind>::test): Convert to...
17218 (is_a_helper <gimple_statement_bind *>::test): ...this.
17219 (is_a_helper <gimple_statement_call>::test): Convert to...
17220 (is_a_helper <gimple_statement_call *>::test): ...this.
17221 (is_a_helper <gimple_statement_catch>::test): Convert to...
17222 (is_a_helper <gimple_statement_catch *>::test): ...this.
17223 (is_a_helper <gimple_statement_resx>::test): Convert to...
17224 (is_a_helper <gimple_statement_resx *>::test): ...this.
17225 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
17226 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
17227 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
17228 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
17229 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
17230 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
17231 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
17232 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
17233 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
17234 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
17235 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
17236 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
17237 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
17238 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
17239 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
17240 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
17241 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
17242 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
17243 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
17244 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
17245 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
17246 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
17247 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
17248 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
17249 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
17250 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
17251 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
17252 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
17253 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
17254 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
17255 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
17256 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
17257 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
17258 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
17259 (is_a_helper <gimple_statement_phi>::test): Convert to...
17260 (is_a_helper <gimple_statement_phi *>::test): ...this.
17261 (is_a_helper <gimple_statement_transaction>::test): Convert to...
17262 (is_a_helper <gimple_statement_transaction *>::test): ...this.
17263 (is_a_helper <gimple_statement_try>::test): Convert to...
17264 (is_a_helper <gimple_statement_try *>::test): ...this.
17265 (is_a_helper <gimple_statement_wce>::test): Convert to...
17266 (is_a_helper <gimple_statement_wce *>::test): ...this.
17267 (is_a_helper <const gimple_statement_asm>::test): Convert to...
17268 (is_a_helper <const gimple_statement_asm *>::test): ...this.
17269 (is_a_helper <const gimple_statement_bind>::test): Convert to...
17270 (is_a_helper <const gimple_statement_bind *>::test): ...this.
17271 (is_a_helper <const gimple_statement_call>::test): Convert to...
17272 (is_a_helper <const gimple_statement_call *>::test): ...this.
17273 (is_a_helper <const gimple_statement_catch>::test): Convert to...
17274 (is_a_helper <const gimple_statement_catch *>::test): ...this.
17275 (is_a_helper <const gimple_statement_resx>::test): Convert to...
17276 (is_a_helper <const gimple_statement_resx *>::test): ...this.
17277 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
17278 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
17279 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
17280 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
17281 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
17282 Convert to...
17283 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
17284 ...this.
17285 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
17286 Convert to...
17287 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
17288 ...this.
17289 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
17290 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
17291 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
17292 to...
17293 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
17294 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
17295 to...
17296 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
17297 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
17298 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
17299 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
17300 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
17301 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
17302 to...
17303 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
17304 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
17305 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
17306 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
17307 to...
17308 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
17309 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
17310 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
17311 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
17312 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
17313 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
17314 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
17315 (is_a_helper <const gimple_statement_phi>::test): Convert to...
17316 (is_a_helper <const gimple_statement_phi *>::test): ...this.
17317 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
17318 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
17319 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
17320 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
17321 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
17322 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
17323 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
17324 to...
17325 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
17326 ...this.
17327 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
17328 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
17329
17330 (gimple_use_ops): Update for removal of implicit pointer from the
17331 is-a.h API.
17332 (gimple_set_use_ops): Likewise.
17333 (gimple_vuse): Likewise.
17334 (gimple_vdef): Likewise.
17335 (gimple_vuse_ptr): Likewise.
17336 (gimple_vdef_ptr): Likewise.
17337 (gimple_set_vuse): Likewise.
17338 (gimple_set_vdef): Likewise.
17339 (gimple_omp_return_set_lhs): Likewise.
17340 (gimple_omp_return_lhs): Likewise.
17341 (gimple_omp_return_lhs_ptr): Likewise.
17342 (gimple_call_fntype): Likewise.
17343 (gimple_call_set_fntype): Likewise.
17344 (gimple_call_set_internal_fn): Likewise.
17345 (gimple_call_use_set): Likewise.
17346 (gimple_call_clobber_set): Likewise.
17347 (gimple_bind_vars): Likewise.
17348 (gimple_bind_set_vars): Likewise.
17349 (gimple_bind_body_ptr): Likewise.
17350 (gimple_bind_set_body): Likewise.
17351 (gimple_bind_add_stmt): Likewise.
17352 (gimple_bind_block): Likewise.
17353 (gimple_bind_set_block): Likewise.
17354 (gimple_asm_ninputs): Likewise.
17355 (gimple_asm_noutputs): Likewise.
17356 (gimple_asm_nclobbers): Likewise.
17357 (gimple_asm_nlabels): Likewise.
17358 (gimple_asm_input_op): Likewise.
17359 (gimple_asm_input_op_ptr): Likewise.
17360 (gimple_asm_output_op): Likewise.
17361 (gimple_asm_output_op_ptr): Likewise.
17362 (gimple_asm_set_output_op): Likewise.
17363 (gimple_asm_clobber_op): Likewise.
17364 (gimple_asm_set_clobber_op): Likewise.
17365 (gimple_asm_label_op): Likewise.
17366 (gimple_asm_set_label_op): Likewise.
17367 (gimple_asm_string): Likewise.
17368 (gimple_catch_types): Likewise.
17369 (gimple_catch_types_ptr): Likewise.
17370 (gimple_catch_handler_ptr): Likewise.
17371 (gimple_catch_set_types): Likewise.
17372 (gimple_catch_set_handler): Likewise.
17373 (gimple_eh_filter_types): Likewise.
17374 (gimple_eh_filter_types_ptr): Likewise.
17375 (gimple_eh_filter_failure_ptr): Likewise.
17376 (gimple_eh_filter_set_types): Likewise.
17377 (gimple_eh_filter_set_failure): Likewise.
17378 (gimple_eh_must_not_throw_fndecl): Likewise.
17379 (gimple_eh_must_not_throw_set_fndecl): Likewise.
17380 (gimple_eh_else_n_body_ptr): Likewise.
17381 (gimple_eh_else_e_body_ptr): Likewise.
17382 (gimple_eh_else_set_n_body): Likewise.
17383 (gimple_eh_else_set_e_body): Likewise.
17384 (gimple_try_eval_ptr): Likewise.
17385 (gimple_try_cleanup_ptr): Likewise.
17386 (gimple_try_set_eval): Likewise.
17387 (gimple_try_set_cleanup): Likewise.
17388 (gimple_wce_cleanup_ptr): Likewise.
17389 (gimple_wce_set_cleanup): Likewise.
17390 (gimple_phi_capacity): Likewise.
17391 (gimple_phi_num_args): Likewise.
17392 (gimple_phi_result): Likewise.
17393 (gimple_phi_result_ptr): Likewise.
17394 (gimple_phi_set_result): Likewise.
17395 (gimple_phi_arg): Likewise.
17396 (gimple_phi_set_arg): Likewise.
17397 (gimple_resx_region): Likewise.
17398 (gimple_resx_set_region): Likewise.
17399 (gimple_eh_dispatch_region): Likewise.
17400 (gimple_eh_dispatch_set_region): Likewise.
17401 (gimple_omp_critical_name): Likewise.
17402 (gimple_omp_critical_name_ptr): Likewise.
17403 (gimple_omp_critical_set_name): Likewise.
17404 (gimple_omp_for_clauses): Likewise.
17405 (gimple_omp_for_clauses_ptr): Likewise.
17406 (gimple_omp_for_set_clauses): Likewise.
17407 (gimple_omp_for_collapse): Likewise.
17408 (gimple_omp_for_index): Likewise.
17409 (gimple_omp_for_index_ptr): Likewise.
17410 (gimple_omp_for_set_index): Likewise.
17411 (gimple_omp_for_initial): Likewise.
17412 (gimple_omp_for_initial_ptr): Likewise.
17413 (gimple_omp_for_set_initial): Likewise.
17414 (gimple_omp_for_final): Likewise.
17415 (gimple_omp_for_final_ptr): Likewise.
17416 (gimple_omp_for_set_final): Likewise.
17417 (gimple_omp_for_incr): Likewise.
17418 (gimple_omp_for_incr_ptr): Likewise.
17419 (gimple_omp_for_set_incr): Likewise.
17420 (gimple_omp_for_pre_body_ptr): Likewise.
17421 (gimple_omp_for_set_pre_body): Likewise.
17422 (gimple_omp_parallel_clauses): Likewise.
17423 (gimple_omp_parallel_clauses_ptr): Likewise.
17424 (gimple_omp_parallel_set_clauses): Likewise.
17425 (gimple_omp_parallel_child_fn): Likewise.
17426 (gimple_omp_parallel_child_fn_ptr): Likewise.
17427 (gimple_omp_parallel_set_child_fn): Likewise.
17428 (gimple_omp_parallel_data_arg): Likewise.
17429 (gimple_omp_parallel_data_arg_ptr): Likewise.
17430 (gimple_omp_parallel_set_data_arg): Likewise.
17431 (gimple_omp_task_clauses): Likewise.
17432 (gimple_omp_task_clauses_ptr): Likewise.
17433 (gimple_omp_task_set_clauses): Likewise.
17434 (gimple_omp_task_child_fn): Likewise.
17435 (gimple_omp_task_child_fn_ptr): Likewise.
17436 (gimple_omp_task_set_child_fn): Likewise.
17437 (gimple_omp_task_data_arg): Likewise.
17438 (gimple_omp_task_data_arg_ptr): Likewise.
17439 (gimple_omp_task_set_data_arg): Likewise.
17440 (gimple_omp_taskreg_clauses): Likewise.
17441 (gimple_omp_taskreg_clauses_ptr): Likewise.
17442 (gimple_omp_taskreg_set_clauses): Likewise.
17443 (gimple_omp_taskreg_child_fn): Likewise.
17444 (gimple_omp_taskreg_child_fn_ptr): Likewise.
17445 (gimple_omp_taskreg_set_child_fn): Likewise.
17446 (gimple_omp_taskreg_data_arg): Likewise.
17447 (gimple_omp_taskreg_data_arg_ptr): Likewise.
17448 (gimple_omp_taskreg_set_data_arg): Likewise.
17449 (gimple_omp_task_copy_fn): Likewise.
17450 (gimple_omp_task_copy_fn_ptr): Likewise.
17451 (gimple_omp_task_set_copy_fn): Likewise.
17452 (gimple_omp_task_arg_size): Likewise.
17453 (gimple_omp_task_arg_size_ptr): Likewise.
17454 (gimple_omp_task_set_arg_size): Likewise.
17455 (gimple_omp_task_arg_align): Likewise.
17456 (gimple_omp_task_arg_align_ptr): Likewise.
17457 (gimple_omp_task_set_arg_align): Likewise.
17458 (gimple_omp_single_clauses): Likewise.
17459 (gimple_omp_single_clauses_ptr): Likewise.
17460 (gimple_omp_single_set_clauses): Likewise.
17461 (gimple_omp_target_clauses): Likewise.
17462 (gimple_omp_target_clauses_ptr): Likewise.
17463 (gimple_omp_target_set_clauses): Likewise.
17464 (gimple_omp_target_child_fn): Likewise.
17465 (gimple_omp_target_child_fn_ptr): Likewise.
17466 (gimple_omp_target_set_child_fn): Likewise.
17467 (gimple_omp_target_data_arg): Likewise.
17468 (gimple_omp_target_data_arg_ptr): Likewise.
17469 (gimple_omp_target_set_data_arg): Likewise.
17470 (gimple_omp_teams_clauses): Likewise.
17471 (gimple_omp_teams_clauses_ptr): Likewise.
17472 (gimple_omp_teams_set_clauses): Likewise.
17473 (gimple_omp_sections_clauses): Likewise.
17474 (gimple_omp_sections_clauses_ptr): Likewise.
17475 (gimple_omp_sections_set_clauses): Likewise.
17476 (gimple_omp_sections_control): Likewise.
17477 (gimple_omp_sections_control_ptr): Likewise.
17478 (gimple_omp_sections_set_control): Likewise.
17479 (gimple_omp_for_set_cond): Likewise.
17480 (gimple_omp_for_cond): Likewise.
17481 (gimple_omp_atomic_store_set_val): Likewise.
17482 (gimple_omp_atomic_store_val): Likewise.
17483 (gimple_omp_atomic_store_val_ptr): Likewise.
17484 (gimple_omp_atomic_load_set_lhs): Likewise.
17485 (gimple_omp_atomic_load_lhs): Likewise.
17486 (gimple_omp_atomic_load_lhs_ptr): Likewise.
17487 (gimple_omp_atomic_load_set_rhs): Likewise.
17488 (gimple_omp_atomic_load_rhs): Likewise.
17489 (gimple_omp_atomic_load_rhs_ptr): Likewise.
17490 (gimple_omp_continue_control_def): Likewise.
17491 (gimple_omp_continue_control_def_ptr): Likewise.
17492 (gimple_omp_continue_set_control_def): Likewise.
17493 (gimple_omp_continue_control_use): Likewise.
17494 (gimple_omp_continue_control_use_ptr): Likewise.
17495 (gimple_omp_continue_set_control_use): Likewise.
17496 (gimple_transaction_body_ptr): Likewise.
17497 (gimple_transaction_label): Likewise.
17498 (gimple_transaction_label_ptr): Likewise.
17499 (gimple_transaction_set_body): Likewise.
17500 (gimple_transaction_set_label): Likewise.
17501
17502 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
17503 * ipa-inline-analysis.c (inline_write_summary): Likewise.
17504 * ipa-ref.c (ipa_record_reference): Likewise.
17505 * ipa-reference.c (analyze_function): Likewise.
17506 (ipa_reference_write_optimization_summary): Likewise.
17507 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
17508 (address_taken_from_non_vtable_p): Likewise.
17509 (comdat_can_be_unshared_p_1): Likewise.
17510 * lto-cgraph.c (lto_output_ref): Likewise.
17511 (add_references): Likewise.
17512 (compute_ltrans_boundary): Likewise.
17513 (output_symtab): Likewise.
17514 (input_ref): Likewise.
17515 (input_cgraph_1): Likewise.
17516 (output_cgraph_opt_summary): Likewise.
17517 * lto-streamer-out.c (lto_output): Likewise.
17518 (output_symbol_p): Likewise.
17519 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
17520 (lsei_start_function_in_partition): Likewise.
17521 (lsei_next_variable_in_partition): Likewise.
17522 (lsei_start_variable_in_partition): Likewise.
17523 * symtab.c (insert_to_assembler_name_hash): Likewise.
17524 (unlink_from_assembler_name_hash): Likewise.
17525 (symtab_unregister_node): Likewise.
17526 (symtab_remove_node): Likewise.
17527 (dump_symtab_node): Likewise.
17528 (verify_symtab_base): Likewise.
17529 (verify_symtab_node): Likewise.
17530 (symtab_make_decl_local): Likewise.
17531 (symtab_alias_ultimate_target): Likewise.
17532 (symtab_resolve_alias): Likewise.
17533 (symtab_get_symbol_partitioning_class): Likewise.
17534 * tree-phinodes.c (allocate_phi_node): Likewise.
17535 (reserve_phi_args_for_new_edge): Likewise.
17536 (remove_phi_args): Likewise.
17537 * varpool.c (varpool_node_for_asm): Likewise.
17538 (varpool_remove_unreferenced_decls): Likewise.
17539
17540 2014-04-23 Jeff Law <law@redhat.com>
17541
17542 PR tree-optimization/60902
17543 * tree-ssa-threadedge.c
17544 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
17545 invalidate outputs from statements that do not produce useful
17546 outputs for threading.
17547
17548 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
17549
17550 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
17551 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
17552 machine descriptions for Stack Smashing Protector.
17553
17554 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
17555
17556 * aarch64.md (<optab>_rol<mode>3): New pattern.
17557 (<optab>_rolsi3_uxtw): Likewise.
17558 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
17559
17560 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
17561
17562 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
17563 (arm_cortex_a12_tune): Likewise.
17564
17565 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17566
17567 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
17568
17569 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17570
17571 * config/arm/arm.md (arm_rev16si2): New pattern.
17572 (arm_rev16si2_alt): Likewise.
17573 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
17574
17575 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17576
17577 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
17578 (rev16<mode>2_alt): Likewise.
17579 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
17580 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
17581 (aarch_rev16_shleft_mask_imm_p): Likewise.
17582 (aarch_rev16_p_1): Likewise.
17583 (aarch_rev16_p): Likewise.
17584 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
17585 (aarch_rev16_shright_mask_imm_p): Likewise.
17586 (aarch_rev16_shleft_mask_imm_p): Likewise.
17587
17588 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17589
17590 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
17591 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
17592 rev cost.
17593 (cortex_a53_extra_costs): Likewise.
17594 (cortex_a57_extra_costs): Likewise.
17595 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
17596 (cortexa7_extra_costs): Likewise.
17597 (cortexa8_extra_costs): Likewise.
17598 (cortexa12_extra_costs): Likewise.
17599 (cortexa15_extra_costs): Likewise.
17600 (v7m_extra_costs): Likewise.
17601 (arm_new_rtx_costs): Handle BSWAP.
17602
17603 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17604
17605 * config/arm/arm.c (cortexa8_extra_costs): New table.
17606 (arm_cortex_a8_tune): New tuning struct.
17607 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
17608
17609 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17610
17611 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
17612
17613 2014-04-23 Richard Biener <rguenther@suse.de>
17614
17615 * Makefile.in (OBJS): Remove loop-unswitch.o.
17616 * tree-pass.h (make_pass_rtl_unswitch): Remove.
17617 * passes.def (pass_rtl_unswitch): Likewise.
17618 * loop-init.c (gate_rtl_unswitch): Likewise.
17619 (rtl_unswitch): Likewise.
17620 (pass_data_rtl_unswitch): Likewise.
17621 (pass_rtl_unswitch): Likewise.
17622 (make_pass_rtl_unswitch): Likewise.
17623 * rtl.h (reversed_condition): Likewise.
17624 (compare_and_jump_seq): Likewise.
17625 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
17626 and make static.
17627 * loop-unroll.c (compare_and_jump_seq): Likewise.
17628
17629 2014-04-23 Richard Biener <rguenther@suse.de>
17630
17631 PR tree-optimization/60903
17632 * tree-ssa-loop-im.c (analyze_memory_references): Remove
17633 commented code block.
17634 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
17635 loop flags to newly created BBs and edges.
17636
17637 2014-04-23 Nick Clifton <nickc@redhat.com>
17638
17639 * config/msp430/msp430.c (msp430_handle_option): Move function
17640 to msp430-common.c
17641 (msp430_option_override): Simplify mcu and mcpu option handling.
17642 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
17643 support for -mhwmult command line option.
17644 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
17645 -mhwmult command line option.
17646 (msp430_hwmult_enabled): Delete.
17647 (msp43o_output_labelref): Add support for -mhwmult command line option.
17648 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
17649 (umulsidi3): Likewise.
17650 * config/msp430/msp430.opt (mmcu): Add Report attribute.
17651 (mcpu, mlarge, msmall): Likewise.
17652 (mhwmult): New option.
17653 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
17654 prototype.
17655 (msp430_is_f5_mcu): Remove prototype.
17656 (msp430_use_f5_series_hwmult): Add prototype.
17657 * config/msp430/msp430-opts.h: New file.
17658 * common/config/msp430: New directory.
17659 * common/config/msp430/msp430-common.c: New file.
17660 * config.gcc (msp430): Remove target_has_targetm_common.
17661 * doc/invoke.texi: Document -mhwmult command line option.
17662
17663 2014-04-23 Nick Clifton <nickc@redhat.com>
17664
17665 * config/i386/cygwin.h (ENDFILE_SPEC): Include
17666 default-manifest.o if it can be found in the search path.
17667 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
17668
17669 2014-04-23 Terry Guo <terry.guo@arm.com>
17670
17671 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
17672
17673 2014-04-23 Richard Biener <rguenther@suse.de>
17674
17675 PR middle-end/60895
17676 * tree-inline.c (declare_return_variable): Use mark_addressable.
17677
17678 2014-04-23 Richard Biener <rguenther@suse.de>
17679
17680 PR middle-end/60891
17681 * loop-init.c (loop_optimizer_init): Make sure to apply
17682 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
17683
17684 2014-04-22 Jakub Jelinek <jakub@redhat.com>
17685
17686 PR sanitizer/60275
17687 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
17688 New options.
17689 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
17690 if flag_sanitize_undefined_trap_on_error.
17691 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
17692 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
17693 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
17694 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
17695 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
17696 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
17697 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
17698 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
17699 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
17700 * ubsan.c (ubsan_instrument_unreachable): Return
17701 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
17702 (ubsan_expand_null_ifn): Emit __builtin_trap ()
17703 if flag_sanitize_undefined_trap_on_error and
17704 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
17705 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
17706 instrument_bool_enum_load): Emit __builtin_trap () if
17707 flag_sanitize_undefined_trap_on_error and
17708 __builtin_handle_*_abort () if !flag_sanitize_recover.
17709 * doc/invoke.texi (-fsanitize-recover,
17710 -fsanitize-undefined-trap-on-error): Document.
17711
17712 2014-04-22 Christian Bruel <christian.bruel@st.com>
17713
17714 * config/sh/sh.md (mov<mode>): Replace movQIHI.
17715 Force immediates to SImode.
17716
17717 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
17718
17719 * config/nios2/nios2.md (UNSPEC_ROUND): New.
17720 (lroundsfsi2): New.
17721 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
17722 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
17723 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
17724 (nios2_fpu_insn): Add entry for round.
17725 (N2FPU_NO_ERRNO_P): Define.
17726 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
17727 flag_errno_math.
17728 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
17729
17730 2014-04-22 Richard Henderson <rth@redhat.com>
17731
17732 * config/aarch64/aarch64 (addti3, subti3): New expanders.
17733 (add<GPI>3_compare0): Remove leading * from name.
17734 (add<GPI>3_carryin): Likewise.
17735 (sub<GPI>3_compare0): Likewise.
17736 (sub<GPI>3_carryin): Likewise.
17737 (<su_optab>mulditi3): New expander.
17738 (multi3): New expander.
17739 (madd<GPI>): Remove leading * from name.
17740
17741 2014-04-22 Martin Jambor <mjambor@suse.cz>
17742
17743 * cgraphclones.c (cgraph_function_versioning): Copy
17744 ipa_transforms_to_apply instead of asserting it is empty.
17745
17746 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
17747
17748 PR target/60868
17749 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
17750 on count_exp to get mode.
17751
17752 2014-04-22 Andrew Pinski <apinski@cavium.com>
17753
17754 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17755 Handle TLS for ILP32.
17756 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
17757 (tlsie_small_<mode>): this and handle PTR.
17758 (tlsie_small_sidi): New pattern.
17759 (tlsle_small): Change to an expand to handle ILP32.
17760 (tlsle_small_<mode>): New pattern.
17761 (tlsdesc_small): Rename to ...
17762 (tlsdesc_small_<mode>): this and handle PTR.
17763
17764 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17765
17766 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
17767
17768 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
17769
17770 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
17771 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
17772 (aarch64_types_signed_poly_qualifiers): Likewise.
17773 (aarch64_types_unsigned_signed_qualifiers): Likewise.
17774 (aarch64_types_poly_signed_qualifiers): Likewise.
17775 (TYPES_REINTERP_SS): Type macro added.
17776 (TYPES_REINTERP_SU): Likewise.
17777 (TYPES_REINTERP_SP): Likewise.
17778 (TYPES_REINTERP_US): Likewise.
17779 (TYPES_REINTERP_PS): Likewise.
17780 (aarch64_fold_builtin): New expression folding added.
17781 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
17782 Declarations removed.
17783 (REINTERP_SS): Declarations added.
17784 (REINTERP_US): Likewise.
17785 (REINTERP_PS): Likewise.
17786 (REINTERP_SU): Likewise.
17787 (REINTERP_SP): Likewise.
17788 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
17789 (vreinterpretq_p8_f64): Likewise.
17790 (vreinterpret_p16_f64): Likewise.
17791 (vreinterpretq_p16_f64): Likewise.
17792 (vreinterpret_f32_f64): Likewise.
17793 (vreinterpretq_f32_f64): Likewise.
17794 (vreinterpret_f64_f32): Likewise.
17795 (vreinterpret_f64_p8): Likewise.
17796 (vreinterpret_f64_p16): Likewise.
17797 (vreinterpret_f64_s8): Likewise.
17798 (vreinterpret_f64_s16): Likewise.
17799 (vreinterpret_f64_s32): Likewise.
17800 (vreinterpret_f64_s64): Likewise.
17801 (vreinterpret_f64_u8): Likewise.
17802 (vreinterpret_f64_u16): Likewise.
17803 (vreinterpret_f64_u32): Likewise.
17804 (vreinterpret_f64_u64): Likewise.
17805 (vreinterpretq_f64_f32): Likewise.
17806 (vreinterpretq_f64_p8): Likewise.
17807 (vreinterpretq_f64_p16): Likewise.
17808 (vreinterpretq_f64_s8): Likewise.
17809 (vreinterpretq_f64_s16): Likewise.
17810 (vreinterpretq_f64_s32): Likewise.
17811 (vreinterpretq_f64_s64): Likewise.
17812 (vreinterpretq_f64_u8): Likewise.
17813 (vreinterpretq_f64_u16): Likewise.
17814 (vreinterpretq_f64_u32): Likewise.
17815 (vreinterpretq_f64_u64): Likewise.
17816 (vreinterpret_s64_f64): Likewise.
17817 (vreinterpretq_s64_f64): Likewise.
17818 (vreinterpret_u64_f64): Likewise.
17819 (vreinterpretq_u64_f64): Likewise.
17820 (vreinterpret_s8_f64): Likewise.
17821 (vreinterpretq_s8_f64): Likewise.
17822 (vreinterpret_s16_f64): Likewise.
17823 (vreinterpretq_s16_f64): Likewise.
17824 (vreinterpret_s32_f64): Likewise.
17825 (vreinterpretq_s32_f64): Likewise.
17826 (vreinterpret_u8_f64): Likewise.
17827 (vreinterpretq_u8_f64): Likewise.
17828 (vreinterpret_u16_f64): Likewise.
17829 (vreinterpretq_u16_f64): Likewise.
17830 (vreinterpret_u32_f64): Likewise.
17831 (vreinterpretq_u32_f64): Likewise.
17832
17833 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
17834
17835 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
17836 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
17837 (vreinterpret_p8_s8): Likewise.
17838 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
17839 (vreinterpret_p8_s16): Likewise.
17840 (vreinterpret_p8_s32): Likewise.
17841 (vreinterpret_p8_s64): Likewise.
17842 (vreinterpret_p8_f32): Likewise.
17843 (vreinterpret_p8_u8): Likewise.
17844 (vreinterpret_p8_u16): Likewise.
17845 (vreinterpret_p8_u32): Likewise.
17846 (vreinterpret_p8_u64): Likewise.
17847 (vreinterpret_p8_p16): Likewise.
17848 (vreinterpretq_p8_s8): Likewise.
17849 (vreinterpretq_p8_s16): Likewise.
17850 (vreinterpretq_p8_s32): Likewise.
17851 (vreinterpretq_p8_s64): Likewise.
17852 (vreinterpretq_p8_f32): Likewise.
17853 (vreinterpretq_p8_u8): Likewise.
17854 (vreinterpretq_p8_u16): Likewise.
17855 (vreinterpretq_p8_u32): Likewise.
17856 (vreinterpretq_p8_u64): Likewise.
17857 (vreinterpretq_p8_p16): Likewise.
17858 (vreinterpret_p16_s8): Likewise.
17859 (vreinterpret_p16_s16): Likewise.
17860 (vreinterpret_p16_s32): Likewise.
17861 (vreinterpret_p16_s64): Likewise.
17862 (vreinterpret_p16_f32): Likewise.
17863 (vreinterpret_p16_u8): Likewise.
17864 (vreinterpret_p16_u16): Likewise.
17865 (vreinterpret_p16_u32): Likewise.
17866 (vreinterpret_p16_u64): Likewise.
17867 (vreinterpret_p16_p8): Likewise.
17868 (vreinterpretq_p16_s8): Likewise.
17869 (vreinterpretq_p16_s16): Likewise.
17870 (vreinterpretq_p16_s32): Likewise.
17871 (vreinterpretq_p16_s64): Likewise.
17872 (vreinterpretq_p16_f32): Likewise.
17873 (vreinterpretq_p16_u8): Likewise.
17874 (vreinterpretq_p16_u16): Likewise.
17875 (vreinterpretq_p16_u32): Likewise.
17876 (vreinterpretq_p16_u64): Likewise.
17877 (vreinterpretq_p16_p8): Likewise.
17878 (vreinterpret_f32_s8): Likewise.
17879 (vreinterpret_f32_s16): Likewise.
17880 (vreinterpret_f32_s32): Likewise.
17881 (vreinterpret_f32_s64): Likewise.
17882 (vreinterpret_f32_u8): Likewise.
17883 (vreinterpret_f32_u16): Likewise.
17884 (vreinterpret_f32_u32): Likewise.
17885 (vreinterpret_f32_u64): Likewise.
17886 (vreinterpret_f32_p8): Likewise.
17887 (vreinterpret_f32_p16): Likewise.
17888 (vreinterpretq_f32_s8): Likewise.
17889 (vreinterpretq_f32_s16): Likewise.
17890 (vreinterpretq_f32_s32): Likewise.
17891 (vreinterpretq_f32_s64): Likewise.
17892 (vreinterpretq_f32_u8): Likewise.
17893 (vreinterpretq_f32_u16): Likewise.
17894 (vreinterpretq_f32_u32): Likewise.
17895 (vreinterpretq_f32_u64): Likewise.
17896 (vreinterpretq_f32_p8): Likewise.
17897 (vreinterpretq_f32_p16): Likewise.
17898 (vreinterpret_s64_s8): Likewise.
17899 (vreinterpret_s64_s16): Likewise.
17900 (vreinterpret_s64_s32): Likewise.
17901 (vreinterpret_s64_f32): Likewise.
17902 (vreinterpret_s64_u8): Likewise.
17903 (vreinterpret_s64_u16): Likewise.
17904 (vreinterpret_s64_u32): Likewise.
17905 (vreinterpret_s64_u64): Likewise.
17906 (vreinterpret_s64_p8): Likewise.
17907 (vreinterpret_s64_p16): Likewise.
17908 (vreinterpretq_s64_s8): Likewise.
17909 (vreinterpretq_s64_s16): Likewise.
17910 (vreinterpretq_s64_s32): Likewise.
17911 (vreinterpretq_s64_f32): Likewise.
17912 (vreinterpretq_s64_u8): Likewise.
17913 (vreinterpretq_s64_u16): Likewise.
17914 (vreinterpretq_s64_u32): Likewise.
17915 (vreinterpretq_s64_u64): Likewise.
17916 (vreinterpretq_s64_p8): Likewise.
17917 (vreinterpretq_s64_p16): Likewise.
17918 (vreinterpret_u64_s8): Likewise.
17919 (vreinterpret_u64_s16): Likewise.
17920 (vreinterpret_u64_s32): Likewise.
17921 (vreinterpret_u64_s64): Likewise.
17922 (vreinterpret_u64_f32): Likewise.
17923 (vreinterpret_u64_u8): Likewise.
17924 (vreinterpret_u64_u16): Likewise.
17925 (vreinterpret_u64_u32): Likewise.
17926 (vreinterpret_u64_p8): Likewise.
17927 (vreinterpret_u64_p16): Likewise.
17928 (vreinterpretq_u64_s8): Likewise.
17929 (vreinterpretq_u64_s16): Likewise.
17930 (vreinterpretq_u64_s32): Likewise.
17931 (vreinterpretq_u64_s64): Likewise.
17932 (vreinterpretq_u64_f32): Likewise.
17933 (vreinterpretq_u64_u8): Likewise.
17934 (vreinterpretq_u64_u16): Likewise.
17935 (vreinterpretq_u64_u32): Likewise.
17936 (vreinterpretq_u64_p8): Likewise.
17937 (vreinterpretq_u64_p16): Likewise.
17938 (vreinterpret_s8_s16): Likewise.
17939 (vreinterpret_s8_s32): Likewise.
17940 (vreinterpret_s8_s64): Likewise.
17941 (vreinterpret_s8_f32): Likewise.
17942 (vreinterpret_s8_u8): Likewise.
17943 (vreinterpret_s8_u16): Likewise.
17944 (vreinterpret_s8_u32): Likewise.
17945 (vreinterpret_s8_u64): Likewise.
17946 (vreinterpret_s8_p8): Likewise.
17947 (vreinterpret_s8_p16): Likewise.
17948 (vreinterpretq_s8_s16): Likewise.
17949 (vreinterpretq_s8_s32): Likewise.
17950 (vreinterpretq_s8_s64): Likewise.
17951 (vreinterpretq_s8_f32): Likewise.
17952 (vreinterpretq_s8_u8): Likewise.
17953 (vreinterpretq_s8_u16): Likewise.
17954 (vreinterpretq_s8_u32): Likewise.
17955 (vreinterpretq_s8_u64): Likewise.
17956 (vreinterpretq_s8_p8): Likewise.
17957 (vreinterpretq_s8_p16): Likewise.
17958 (vreinterpret_s16_s8): Likewise.
17959 (vreinterpret_s16_s32): Likewise.
17960 (vreinterpret_s16_s64): Likewise.
17961 (vreinterpret_s16_f32): Likewise.
17962 (vreinterpret_s16_u8): Likewise.
17963 (vreinterpret_s16_u16): Likewise.
17964 (vreinterpret_s16_u32): Likewise.
17965 (vreinterpret_s16_u64): Likewise.
17966 (vreinterpret_s16_p8): Likewise.
17967 (vreinterpret_s16_p16): Likewise.
17968 (vreinterpretq_s16_s8): Likewise.
17969 (vreinterpretq_s16_s32): Likewise.
17970 (vreinterpretq_s16_s64): Likewise.
17971 (vreinterpretq_s16_f32): Likewise.
17972 (vreinterpretq_s16_u8): Likewise.
17973 (vreinterpretq_s16_u16): Likewise.
17974 (vreinterpretq_s16_u32): Likewise.
17975 (vreinterpretq_s16_u64): Likewise.
17976 (vreinterpretq_s16_p8): Likewise.
17977 (vreinterpretq_s16_p16): Likewise.
17978 (vreinterpret_s32_s8): Likewise.
17979 (vreinterpret_s32_s16): Likewise.
17980 (vreinterpret_s32_s64): Likewise.
17981 (vreinterpret_s32_f32): Likewise.
17982 (vreinterpret_s32_u8): Likewise.
17983 (vreinterpret_s32_u16): Likewise.
17984 (vreinterpret_s32_u32): Likewise.
17985 (vreinterpret_s32_u64): Likewise.
17986 (vreinterpret_s32_p8): Likewise.
17987 (vreinterpret_s32_p16): Likewise.
17988 (vreinterpretq_s32_s8): Likewise.
17989 (vreinterpretq_s32_s16): Likewise.
17990 (vreinterpretq_s32_s64): Likewise.
17991 (vreinterpretq_s32_f32): Likewise.
17992 (vreinterpretq_s32_u8): Likewise.
17993 (vreinterpretq_s32_u16): Likewise.
17994 (vreinterpretq_s32_u32): Likewise.
17995 (vreinterpretq_s32_u64): Likewise.
17996 (vreinterpretq_s32_p8): Likewise.
17997 (vreinterpretq_s32_p16): Likewise.
17998 (vreinterpret_u8_s8): Likewise.
17999 (vreinterpret_u8_s16): Likewise.
18000 (vreinterpret_u8_s32): Likewise.
18001 (vreinterpret_u8_s64): Likewise.
18002 (vreinterpret_u8_f32): Likewise.
18003 (vreinterpret_u8_u16): Likewise.
18004 (vreinterpret_u8_u32): Likewise.
18005 (vreinterpret_u8_u64): Likewise.
18006 (vreinterpret_u8_p8): Likewise.
18007 (vreinterpret_u8_p16): Likewise.
18008 (vreinterpretq_u8_s8): Likewise.
18009 (vreinterpretq_u8_s16): Likewise.
18010 (vreinterpretq_u8_s32): Likewise.
18011 (vreinterpretq_u8_s64): Likewise.
18012 (vreinterpretq_u8_f32): Likewise.
18013 (vreinterpretq_u8_u16): Likewise.
18014 (vreinterpretq_u8_u32): Likewise.
18015 (vreinterpretq_u8_u64): Likewise.
18016 (vreinterpretq_u8_p8): Likewise.
18017 (vreinterpretq_u8_p16): Likewise.
18018 (vreinterpret_u16_s8): Likewise.
18019 (vreinterpret_u16_s16): Likewise.
18020 (vreinterpret_u16_s32): Likewise.
18021 (vreinterpret_u16_s64): Likewise.
18022 (vreinterpret_u16_f32): Likewise.
18023 (vreinterpret_u16_u8): Likewise.
18024 (vreinterpret_u16_u32): Likewise.
18025 (vreinterpret_u16_u64): Likewise.
18026 (vreinterpret_u16_p8): Likewise.
18027 (vreinterpret_u16_p16): Likewise.
18028 (vreinterpretq_u16_s8): Likewise.
18029 (vreinterpretq_u16_s16): Likewise.
18030 (vreinterpretq_u16_s32): Likewise.
18031 (vreinterpretq_u16_s64): Likewise.
18032 (vreinterpretq_u16_f32): Likewise.
18033 (vreinterpretq_u16_u8): Likewise.
18034 (vreinterpretq_u16_u32): Likewise.
18035 (vreinterpretq_u16_u64): Likewise.
18036 (vreinterpretq_u16_p8): Likewise.
18037 (vreinterpretq_u16_p16): Likewise.
18038 (vreinterpret_u32_s8): Likewise.
18039 (vreinterpret_u32_s16): Likewise.
18040 (vreinterpret_u32_s32): Likewise.
18041 (vreinterpret_u32_s64): Likewise.
18042 (vreinterpret_u32_f32): Likewise.
18043 (vreinterpret_u32_u8): Likewise.
18044 (vreinterpret_u32_u16): Likewise.
18045 (vreinterpret_u32_u64): Likewise.
18046 (vreinterpret_u32_p8): Likewise.
18047 (vreinterpret_u32_p16): Likewise.
18048 (vreinterpretq_u32_s8): Likewise.
18049 (vreinterpretq_u32_s16): Likewise.
18050 (vreinterpretq_u32_s32): Likewise.
18051 (vreinterpretq_u32_s64): Likewise.
18052 (vreinterpretq_u32_f32): Likewise.
18053 (vreinterpretq_u32_u8): Likewise.
18054 (vreinterpretq_u32_u16): Likewise.
18055 (vreinterpretq_u32_u64): Likewise.
18056 (vreinterpretq_u32_p8): Likewise.
18057 (vreinterpretq_u32_p16): Likewise.
18058
18059 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18060
18061 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
18062 Pattern extended.
18063 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
18064 (sqabs): Likewise.
18065 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
18066 (vqnegd_s64): Likewise.
18067 (vqabs_s64): Likewise.
18068 (vqabsd_s64): Likewise.
18069
18070 2014-04-22 Richard Henderson <rth@redhat.com>
18071
18072 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
18073 computation to the top of the loop.
18074
18075 2014-04-22 Renlin <renlin.li@arm.com>
18076 Jiong Wang <jiong.wang@arm.com>
18077
18078 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
18079 * config/aarch64/aarch64.c (aarch64_layout_frame)
18080 (aarch64_initial_elimination_offset): Likewise.
18081
18082 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
18083
18084 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
18085 Fix indentation.
18086
18087 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
18088
18089 * machmode.h (bitwise_mode_for_mode): Declare.
18090 * stor-layout.h (bitwise_type_for_mode): Likewise.
18091 * stor-layout.c (bitwise_mode_for_mode): New function.
18092 (bitwise_type_for_mode): Likewise.
18093 * builtins.c (fold_builtin_memory_op): Use it instead of
18094 int_mode_for_mode and build_nonstandard_integer_type.
18095
18096 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18097
18098 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
18099 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
18100 (*-*-solaris2*): Simplify.
18101 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
18102 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
18103 *-*-solaris2.9* handling.
18104
18105 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
18106 as bug.
18107 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
18108 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
18109 handling, simplify.
18110 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
18111 * configure: Regenerate.
18112
18113 * config/i386/sol2-9.h: Remove.
18114
18115 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
18116 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
18117 Remove Solaris 9 references.
18118
18119 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
18120
18121 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
18122 (floatuns<GPI:mode><GPF:mode>2): Remove.
18123 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
18124 and floatuns conversions.
18125 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
18126 and floatuns conversions.
18127 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
18128 (w1,w2): New mode attributes for inequal width conversions.
18129
18130 2014-04-22 Renlin Li <Renlin.Li@arm.com>
18131
18132 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
18133 the output asm format.
18134
18135 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
18136
18137 * config/aarch64/aarch64-simd.md
18138 (aarch64_cm<optab>di): Always split.
18139 (*aarch64_cm<optab>di): New.
18140 (aarch64_cmtstdi): Always split.
18141 (*aarch64_cmtstdi): New.
18142
18143 2014-04-22 Jakub Jelinek <jakub@redhat.com>
18144
18145 PR tree-optimization/60823
18146 * omp-low.c (ipa_simd_modify_function_body): Go through
18147 all SSA_NAMEs and for those refering to vector arguments
18148 which are going to be replaced adjust SSA_NAME_VAR and,
18149 if it is a default definition, change it into a non-default
18150 definition assigned at the beginning of function from new_decl.
18151 (ipa_simd_modify_stmt_ops): Rewritten.
18152 * tree-dfa.c (set_ssa_default_def): When removing default def,
18153 check for NULL loc instead of NULL *loc.
18154
18155 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18156
18157 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
18158 restrictions on core registers for DImode values in Thumb2.
18159
18160 2014-04-22 Ian Bolton <ian.bolton@arm.com>
18161
18162 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
18163 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
18164
18165 2014-04-22 Ian Bolton <ian.bolton@arm.com>
18166
18167 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
18168 (*iordi_notzesidi_di): Likewise.
18169 (*iordi_notsesidi_di): Likewise.
18170
18171 2014-04-22 Ian Bolton <ian.bolton@arm.com>
18172
18173 * config/arm/arm-protos.h (tune_params): New struct members.
18174 * config/arm/arm.c: Initialise tune_params per processor.
18175 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
18176 for speed, based on new tune_params.
18177
18178 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18179
18180 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
18181 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
18182 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
18183 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
18184 * config/aarch64/arm_neon.h (vrnd_f64): Added.
18185 (vrnda_f64): Likewise.
18186 (vrndi_f64): Likewise.
18187 (vrndm_f64): Likewise.
18188 (vrndn_f64): Likewise.
18189 (vrndp_f64): Likewise.
18190 (vrndx_f64): Likewise.
18191
18192 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18193
18194 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
18195 GET_MODE_SIZE argument is enum machine_mode.
18196
18197 2014-04-22 Jakub Jelinek <jakub@redhat.com>
18198
18199 PR target/60910
18200 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
18201 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
18202
18203 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
18204
18205 PR middle-end/60281
18206 * asan.c (asan_emit_stack_protection): Force the base to align to
18207 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
18208 appropriate bits if STRICT_ALIGNMENT.
18209 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
18210 when asan is on.
18211 (expand_used_vars): Leave a space in the stack frame for alignment
18212 if STRICT_ALIGNMENT.
18213
18214 2014-04-21 David Malcolm <dmalcolm@redhat.com>
18215
18216 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
18217 than a gimple.
18218 (gimple_store_p): Likewise.
18219 (gimple_assign_load_p): Likewise.
18220 (gimple_assign_cast_p): Likewise.
18221 (gimple_clobber_p): Likewise.
18222
18223 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
18224 rather than a gimple.
18225 (gimple_assign_cast_p): Likewise.
18226
18227 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
18228
18229 PR target/60735
18230 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
18231 If mode is DDmode and TARGET_E500_DOUBLE allow move.
18232
18233 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
18234 more debug information for E500 if -mdebug=reg.
18235
18236 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
18237
18238 PR target/60909
18239 * config/i386/i386.c (ix86_expand_builtin)
18240 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
18241 register for target RTX.
18242 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
18243
18244 2014-04-18 Cong Hou <congh@google.com>
18245
18246 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
18247 the widen-mult pattern by handling two operands with different sizes,
18248 and operands whose size is smaller than half of the result type.
18249
18250 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
18251
18252 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
18253 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
18254 (do_estimate_edge_time): Compute it.
18255 * ipa-inline.c (want_inline_small_function_p): Bypass
18256 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
18257
18258 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
18259
18260 * ipa-inline.c (spec_rem): New static variable.
18261 (dump_overall_stats): New function.
18262 (dump_inline_stats): New function.
18263
18264 2014-04-18 Richard Henderson <rth@redhat.com>
18265
18266 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
18267 to GET_MODE_SIZE, not a reg_class_t.
18268
18269 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18270
18271 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
18272 (vsx_xxmrglw_<mode>): Likewise.
18273
18274 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
18275
18276 PR target/60876
18277 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
18278 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
18279 (rs6000_init_hard_regno_mode_ok): Likewise.
18280
18281 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
18282
18283 * ipa-inline.c (inline_small_functions): Account only non-cold
18284 functions.
18285 * doc/invoke.texi (inline-unit-growth): Update documentation.
18286
18287 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
18288
18289 * config/rs6000/rs6000.md (addti3, subti3): New.
18290
18291 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
18292
18293 PR target/60863
18294 * config/i386/i386.c (ix86_expand_clear): Remove outdated
18295 comment. Check optimize_insn_for_size_p instead of
18296 optimize_insn_for_speed_p.
18297
18298 2014-04-17 Martin Jambor <mjambor@suse.cz>
18299
18300 * gimple-iterator.c (gsi_start_edge): New function.
18301 * gimple-iterator.h (gsi_start_edge): Declare.
18302 * tree-sra.c (single_non_eh_succ): New function.
18303 (disqualify_ops_if_throwing_stmt): Renamed to
18304 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
18305 having one non-EH successor BB.
18306 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
18307 generate loads into replacements.
18308 (sra_modify_assign): Likewise and and also use the simple path for
18309 such statements.
18310 (sra_modify_function_body): Commit statements on edges.
18311
18312 2014-04-17 Richard Biener <rguenther@suse.de>
18313
18314 PR middle-end/60849
18315 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
18316 comparison results and add clarifying comment.
18317
18318 2014-04-17 Jakub Jelinek <jakub@redhat.com>
18319
18320 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
18321 (blank_mode): Initialize it.
18322 (emit_mode_size_inline, emit_mode_nunits_inline,
18323 emit_mode_inner_inline): New functions.
18324 (emit_insn_modes_h): Call them and surround their output with
18325 #if GCC_VERSION >= 4001 ... #endif.
18326 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
18327 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
18328 mode_* arrays if the argument is __builtin_constant_p.
18329 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
18330 is enum machine_mode.
18331
18332 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
18333
18334 * passes.c (opt_pass::execute): Adjust.
18335 (pass_manager::execute_pass_mode_switching): Likewise.
18336 (early_local_passes::execute): Likewise.
18337 (execute_one_pass): Pass cfun to the pass's execute method.
18338 * tree-pass.h (opt_pass::execute): Add function * argument.
18339 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18340 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18341 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18342 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18343 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18344 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
18345 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
18346 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
18347 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
18348 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
18349 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
18350 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
18351 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
18352 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
18353 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
18354 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
18355 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
18356 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
18357 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
18358 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18359 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18360 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18361 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18362 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18363 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18364 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18365 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18366 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18367 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
18368 Adjust.
18369
18370 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
18371
18372 * passes.c (opt_pass::gate): Take function * argument.
18373 (gate_all_early_local_passes): Merge into
18374 (early_local_passes::gate): this.
18375 (gate_all_early_optimizations): Merge into
18376 (all_early_optimizations::gate): this.
18377 (gate_all_optimizations): Mege into
18378 (all_optimizations::gate): this.
18379 (gate_all_optimizations_g): Merge into
18380 (all_optimizations_g::gate): this.
18381 (gate_rest_of_compilation): Mege into
18382 (rest_of_compilation::gate): this.
18383 (gate_postreload): Merge into
18384 (postreload::gate): this.
18385 (dump_one_pass): Pass cfun to the pass's gate method.
18386 (execute_ipa_summary_passes): Likewise.
18387 (execute_one_pass): Likewise.
18388 (ipa_write_summaries_2): Likewise.
18389 (ipa_write_optimization_summaries_1): Likewise.
18390 (ipa_read_summaries_1): Likewise.
18391 (ipa_read_optimization_summaries_1): Likewise.
18392 (execute_ipa_stmt_fixups): Likewise.
18393 * tree-pass.h (opt_pass::gate): Add function * argument.
18394 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
18395 combine-stack-adj.c, combine.c, compare-elim.c,
18396 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18397 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
18398 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
18399 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
18400 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
18401 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
18402 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
18403 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
18404 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
18405 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
18406 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
18407 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
18408 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
18409 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
18410 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18411 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18412 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18413 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18414 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18415 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18416 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18417 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18418 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
18419 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
18420 var-tracking.c, vtable-verify.c, web.c: Adjust.
18421
18422 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
18423
18424 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
18425 * configure: Regenerate.
18426
18427 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
18428
18429 * passes.c (dump_one_pass): don't check pass->has_gate.
18430 (execute_ipa_summary_passes): Likewise.
18431 (execute_one_pass): Likewise.
18432 (ipa_write_summaries_2): Likewise.
18433 (ipa_write_optimization_summaries_1): Likewise.
18434 (ipa_read_optimization_summaries_1): Likewise.
18435 (execute_ipa_stmt_fixups): Likewise.
18436 * tree-pass.h (pass_data::has_gate): Remove.
18437 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18438 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18439 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18440 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18441 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18442 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
18443 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
18444 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
18445 gimple-low.c, gimple-ssa-isolate-paths.c,
18446 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
18447 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
18448 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
18449 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
18450 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
18451 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
18452 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
18453 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
18454 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
18455 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
18456 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
18457 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18458 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18459 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18460 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18461 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18462 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18463 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18464 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18465 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18466 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18467 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
18468 Adjust.
18469
18470 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
18471
18472 * pass_manager.h (pass_manager::register_dump_files_1): Remove
18473 declaration.
18474 * passes.c (pass_manager::register_dump_files_1): Merge into
18475 (pass_manager::register_dump_files): this, and remove its handling of
18476 properties since the pass always has the properties anyway.
18477 (pass_manager::pass_manager): Adjust.
18478
18479 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
18480
18481 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
18482 * passes.c (pass_manager::register_dump_files_1): Remove dead code
18483 dealing with properties.
18484 (pass_manager::register_dump_files): Adjust.
18485
18486 2014-03-20 Mark Wielaard <mjw@redhat.com>
18487
18488 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
18489 then represent the bound as normal constant value.
18490
18491 2014-04-17 Jakub Jelinek <jakub@redhat.com>
18492
18493 PR target/60847
18494 Forward port from 4.8 branch
18495 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
18496
18497 * config/i386/bmiintrin.h (_blsi_u32): New.
18498 (_blsi_u64): Ditto.
18499 (_blsr_u32): Ditto.
18500 (_blsr_u64): Ditto.
18501 (_blsmsk_u32): Ditto.
18502 (_blsmsk_u64): Ditto.
18503 (_tzcnt_u32): Ditto.
18504 (_tzcnt_u64): Ditto.
18505
18506 2014-04-17 Kito Cheng <kito@0xlab.org>
18507
18508 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
18509
18510 2014-04-17 Richard Biener <rguenther@suse.de>
18511
18512 PR middle-end/60849
18513 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
18514 boolean results for comparisons.
18515
18516 2014-04-17 Richard Biener <rguenther@suse.de>
18517
18518 PR tree-optimization/60836
18519 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
18520 initial PHI args to be gimple values.
18521
18522 2014-04-17 Richard Biener <rguenther@suse.de>
18523
18524 PR tree-optimization/60841
18525 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
18526 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
18527 of stmts to SLP build.
18528 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
18529 (vect_analyze_slp): Likewise.
18530 (vect_analyze_slp_instance): Likewise.
18531 (vect_build_slp_tree): Limit overall SLP tree growth.
18532 * tree-vectorizer.h (vect_analyze_data_refs,
18533 vect_analyze_slp): Adjust prototypes.
18534
18535 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
18536
18537 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
18538 Silvermont.
18539
18540 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
18541
18542 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
18543 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
18544 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
18545 for TARGET_SLOW_PSHUFB
18546
18547 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
18548
18549 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
18550 * config/i386/i386.c (intel_cost): Ditto.
18551
18552 2014-04-17 Joey Ye <joey.ye@arm.com>
18553
18554 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
18555
18556 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
18557
18558 * opts.c (common_handle_option): Disable -fipa-reference coorectly
18559 with -fuse-profile.
18560
18561 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
18562
18563 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
18564 (type_all_derivations_known_p): New predicate.
18565 (type_all_ctors_visible_p): New predicate.
18566 (type_possibly_instantiated_p): New predicate.
18567 (get_odr_type): Compute all_derivations_known.
18568 (dump_odr_type): Dump the flag.
18569 (maybe_record_type): Cleanup.
18570 (record_target_from_binfo): Add bases_to_consider array;
18571 record bases for types w/o instances and skip CXX destructor.
18572 (possible_polymorphic_call_targets_1): Add bases_to_consider
18573 and consider_construction parameters; check if type may have instance.
18574 (get_polymorphic_call_info): Set maybe_in_construction to true
18575 when we know nothing.
18576 (record_targets_from_bases): Skip CXX destructors; they are
18577 never called for types in construction.
18578 (possible_polymorphic_call_targets): Do not record target when
18579 type may not have instance.
18580
18581 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
18582
18583 PR ipa/60854
18584 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
18585 external aliases alive, too.
18586
18587 2014-04-16 Andrew Pinski <apinski@cavium.com>
18588
18589 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
18590 definition.
18591
18592 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
18593
18594 * final.c (compute_alignments): Do not apply loop alignment to a block
18595 falling through to the exit.
18596
18597 2014-04-16 Catherine Moore <clm@codesourcery.com>
18598
18599 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
18600 Adjust constraints for microMIPS store patterns.
18601
18602 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
18603
18604 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
18605
18606 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
18607
18608 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
18609 (append_use): Run at -O0.
18610 (append_vdef): Likewise.
18611 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
18612 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
18613
18614 2014-04-16 Jakub Jelinek <jakub@redhat.com>
18615
18616 PR tree-optimization/60844
18617 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
18618 (propagate_op_to_single_use, remove_visited_stmt_chain,
18619 linearize_expr, repropagate_negates, reassociate_bb): Use it
18620 instead of gsi_remove.
18621
18622 2014-04-16 Martin Jambor <mjambor@suse.cz>
18623
18624 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
18625 ipa_transforms_to_apply.
18626 (cgraph_function_versioning): Assert that old_node has empty
18627 ipa_transforms_to_apply.
18628 * trans-mem.c (ipa_tm_create_version): Likewise.
18629 * tree-inline.c (tree_function_versioning): Do not duplicate
18630 ipa_transforms_to_apply.
18631
18632 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18633
18634 PR target/60817
18635 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
18636 x86_64-*-* cases.
18637 Pass necessary as flags on 64-bit Solaris/x86.
18638 Use lowercase relocs for x86_64-*-*.
18639 * configure: Regenerate.
18640
18641 2014-04-15 Jan Hubicka <jh@suse.cz>
18642
18643 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
18644 (maybe_record_node, likely_target_p): Use it.
18645
18646 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18647
18648 PR target/60839
18649 Revert following patch
18650
18651 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18652
18653 PR target/60735
18654 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
18655 software floating point or no floating point registers, do not
18656 allow any type in the FPRs. Eliminate a test for SPE SIMD types
18657 in GPRs that occurs after we tested for GPRs that would never be
18658 true.
18659
18660 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
18661 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
18662 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
18663 specifically allow DDmode, since that does not use the SPE SIMD
18664 instructions.
18665
18666 2014-03-21 Mark Wielaard <mjw@redhat.com>
18667
18668 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
18669 as unsigned or int depending on type and value used.
18670
18671 2014-04-15 Richard Biener <rguenther@suse.de>
18672
18673 PR rtl-optimization/56965
18674 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
18675 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
18676 ... here.
18677 * alias.c (true_dependence_1): Do not call
18678 nonoverlapping_component_refs_p.
18679 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
18680 nonoverlapping_component_refs_p.
18681 (indirect_refs_may_alias_p): Likewise.
18682
18683 2014-04-15 Teresa Johnson <tejohnson@google.com>
18684
18685 * cfg.c (dump_bb_info): Fix flags check.
18686 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
18687
18688 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18689
18690 PR rtl-optimization/60663
18691 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
18692 avoid 0 cost.
18693
18694 2014-04-15 Richard Biener <rguenther@suse.de>
18695
18696 * lto-streamer.h (LTO_major_version): Bump to 4.
18697
18698 2014-04-15 Richard Biener <rguenther@suse.de>
18699
18700 * common.opt (lto_partition_model): New enum.
18701 (flto-partition=): Merge separate options with a single with argument,
18702 add -flto-partition=one support.
18703 * flag-types.h (enum lto_partition_model): Declare.
18704 * opts.c (finish_options): Remove duplicate -flto-partition=
18705 option check.
18706 * lto-wrapper.c (run_gcc): Adjust.
18707
18708 2014-04-15 Richard Biener <rguenther@suse.de>
18709
18710 * alias.c (ncr_compar): New function.
18711 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
18712
18713 2014-04-15 Richard Biener <rguenther@suse.de>
18714
18715 * alias.c (record_component_aliases): Do not walk BINFOs.
18716
18717 2014-04-15 Richard Biener <rguenther@suse.de>
18718
18719 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
18720 Add struct function argument and adjust.
18721 (find_func_aliases_for_call): Likewise.
18722 (find_func_aliases): Likewise.
18723 (find_func_clobbers): Likewise.
18724 (intra_create_variable_infos): Likewise.
18725 (compute_points_to_sets): Likewise.
18726 (ipa_pta_execute): Adjust. Do not push/pop cfun.
18727
18728 2014-04-15 Richard Biener <rguenther@suse.de>
18729
18730 * tree.c (iterative_hash_expr): Use enum tree_code_class
18731 to store TREE_CODE_CLASS.
18732 (tree_block): Likewise.
18733 (tree_set_block): Likewise.
18734 * tree.h (fold_build_pointer_plus_loc): Use
18735 convert_to_ptrofftype_loc.
18736
18737 2014-04-15 Jakub Jelinek <jakub@redhat.com>
18738
18739 PR plugins/59335
18740 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
18741 added in 4.9.
18742
18743 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
18744
18745 * cfgloop.h (struct loop): Move force_vectorize down.
18746 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
18747 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
18748 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
18749 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
18750 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
18751 * tree-core.h (enum annot_expr_kind): Add new kind values.
18752 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
18753 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
18754 kinds.
18755 * tree.def (ANNOTATE_EXPR): Tweak comment.
18756
18757 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
18758
18759 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
18760 cxa_pure_virtual).
18761
18762 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
18763
18764 * tree.h (TYPE_IDENTIFIER): Declare.
18765 * tree.c (subrange_type_for_debug_p): Use it.
18766 * godump.c (go_format_type): Likewise.
18767 * dwarf2out.c (is_cxx_auto, modified_type_die,
18768 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
18769 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
18770
18771 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
18772
18773 PR lto/60820
18774 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
18775
18776 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
18777
18778 * config/i386/i386.c (examine_argument): Return bool. Return true if
18779 parameter should be passed in memory.
18780 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
18781 (construct_container): Update calls to examine_argument.
18782 (function_arg_advance_64): Ditto.
18783 (return_in_memory_32): Merge with ix86_return_in_memory.
18784 (return_in_memory_64): Ditto.
18785 (return_in_memory_ms_64): Ditto.
18786
18787 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
18788
18789 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
18790 * coverage.c (coverage_compute_profile_id): Handle externally visible
18791 symbols.
18792
18793 2014-04-14 Martin Jambor <mjambor@suse.cz>
18794
18795 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
18796 DECL_DISREGARD_INLINE_LIMITS functions.
18797
18798 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
18799
18800 PR target/60827
18801 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
18802
18803 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
18804
18805 PR target/60827
18806 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
18807 optimize_insn_for_speed_p instead of
18808 optimize_function_for_speed_p.
18809
18810 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
18811
18812 * doc/invoke.texi (free): Document AArch64.
18813
18814 2014-04-14 Richard Biener <rguenther@suse.de>
18815
18816 PR tree-optimization/60042
18817 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
18818 (insert_into_preds_of_block): Do not prevent PHI insertion
18819 for REFERENCE exprs here ...
18820 (eliminate_dom_walker::before_dom_children): ... but prevent
18821 their use here under similar conditions when applied to the
18822 IL after PRE optimizations.
18823
18824 2014-04-14 Richard Biener <rguenther@suse.de>
18825
18826 * passes.def: Move early points-to after early SRA.
18827
18828 2014-04-14 Richard Biener <rguenther@suse.de>
18829
18830 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
18831 check for which sign-changes we allow when forwarding
18832 a converted value into a switch.
18833
18834 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
18835
18836 * stor-layout.c (place_field): Finalize non-constant offset for the
18837 field, if any.
18838
18839 2014-04-14 Richard Biener <rguenther@suse.de>
18840
18841 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
18842 as argument.
18843 (expand_switch_using_bit_tests_p): Likewise.
18844 (process_switch): Compute and pass on speed_p based on the
18845 switch stmt.
18846 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
18847 optimize_bb_for_speed_p.
18848
18849 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
18850
18851 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
18852 * function.h (struct function): Rename has_force_vect_loops into
18853 has_force_vectorize_loops.
18854 * lto-streamer-in.c (input_cfg): Adjust for renaming.
18855 (input_struct_function_base): Likewise.
18856 * lto-streamer-out.c (output_cfg): Likewise.
18857 (output_struct_function_base): Likewise.
18858 * omp-low.c (expand_omp_simd): Likewise.
18859 * tree-cfg.c (move_sese_region_to_fn): Likewise.
18860 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
18861 (version_loop_for_if_conversion): Likewise.
18862 (tree_if_conversion): Likewise.
18863 (main_tree_if_conversion): Likewise.
18864 (gate_tree_if_conversion): Likewise.
18865 * tree-inline.c (copy_loops): Likewise.
18866 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
18867 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
18868 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
18869 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
18870 * tree-vectorizer.c (vectorize_loops): Likewise.
18871 * tree-vectorizer.h (unlimited_cost_model): Likewise.
18872
18873 2014-04-14 Richard Biener <rguenther@suse.de>
18874
18875 PR lto/60720
18876 * lto-streamer-out.c (wrap_refs): New function.
18877 (lto_output): Wrap symbol references in global initializes in
18878 type-preserving MEM_REFs.
18879
18880 2014-04-14 Christian Bruel <christian.bruel@st.com>
18881
18882 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
18883
18884 2014-04-14 Christian Bruel <christian.bruel@st.com>
18885
18886 * config/sh/sh.md (setmemqi): New expand pattern.
18887 * config/sh/sh.h (CLEAR_RATIO): Define.
18888 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
18889 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
18890
18891 2014-04-14 Richard Biener <rguenther@suse.de>
18892
18893 PR middle-end/55022
18894 * fold-const.c (negate_expr_p): Don't negate directional rounding
18895 division.
18896 (fold_negate_expr): Likewise.
18897
18898 2014-04-14 Richard Biener <rguenther@suse.de>
18899
18900 PR tree-optimization/59817
18901 PR tree-optimization/60453
18902 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
18903 recursion to catch all CHRECs in the scalar evolution and restrict
18904 the predicate for the remains appropriately.
18905
18906 2014-04-12 Catherine Moore <clm@codesourcery.com>
18907
18908 * config/mips/constraints.md: Add new register constraint "kb".
18909 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
18910 (*movhi_internal): Likewise.
18911 (*movqi_internal): Likewise.
18912 * config/mips/mips.h (M16_STORE_REGS): New register class.
18913 (REG_CLASS_NAMES): Add M16_STORE_REGS.
18914 (REG_CLASS_CONTENTS): Likewise.
18915 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
18916
18917 2014-04-11 Tobias Burnus <burnus@net-b.de>
18918
18919 PR c/60194
18920 * doc/invoke.texi (-Wformat-signedness): Document it.
18921 (Wformat=2): Mention that this enables -Wformat-signedness.
18922
18923 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
18924
18925 * common/config/epiphany/epiphany-common.c
18926 (epiphany_option_optimization_table): Enable section anchors by
18927 default at -O1 or higher.
18928 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
18929 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
18930 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
18931 carries no extra cost.
18932 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
18933 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
18934 * config/epiphany/predicates.md (memclob_operand): New predicate.
18935 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
18936 Use memclob_operand predicate and X constraint for operand 3.
18937
18938 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
18939
18940 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
18941 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
18942 its operands.
18943
18944 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
18945
18946 PR rtl-optimization/60651
18947 * mode-switching.c (optimize_mode_switching): Make sure to emit
18948 sets of a lower numbered entity before sets of a higher numbered
18949 entity to a mode of the same or lower priority.
18950 When creating a seginfo for a basic block that starts with a code
18951 label, move the insertion point past the code label.
18952 (new_seginfo): Document and enforce requirement that
18953 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
18954 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
18955 * doc/tm.texi: Regenerate.
18956
18957 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
18958
18959 PR target/60811
18960 * config/arc/arc.c (arc_save_restore): Fix assert typo.
18961
18962 2013-04-11 Jakub Jelinek <jakub@redhat.com>
18963
18964 * BASE-VER: Set to 4.10.0.
18965
18966 2014-04-11 Tobias Burnus <burnus@net-b.de>
18967
18968 PR other/59055
18969 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
18970 * doc/gcc.texi (Service): Update description in the @menu
18971 * doc/invoke.texi (Option Summary): Remove misplaced and
18972 duplicated @menu.
18973
18974 2014-04-11 Steve Ellcey <sellcey@mips.com>
18975 Jakub Jelinek <jakub@redhat.com>
18976
18977 PR middle-end/60556
18978 * expr.c (convert_move): Use emit_store_flag_force instead of
18979 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
18980 argument to it.
18981
18982 2014-04-11 Richard Biener <rguenther@suse.de>
18983
18984 PR middle-end/60797
18985 * varasm.c (assemble_alias): Avoid endless error reporting
18986 recursion by setting TREE_ASM_WRITTEN.
18987
18988 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18989
18990 * config/s390/s390.md: Add a splitter for NOT rtx.
18991
18992 2014-04-11 Jakub Jelinek <jakub@redhat.com>
18993
18994 PR rtl-optimization/60663
18995 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
18996
18997 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
18998 Jakub Jelinek <jakub@redhat.com>
18999
19000 PR lto/60567
19001 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
19002 flag from decl_node to node.
19003
19004 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19005
19006 PR debug/60655
19007 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
19008 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
19009 ameliorating the cases where it can be.
19010
19011 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
19012
19013 Revert
19014 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
19015
19016 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
19017 (loadsync_<mode>): Change mode.
19018 (load_quadpti, store_quadpti): New.
19019 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
19020 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
19021 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
19022
19023 2014-04-09 Cong Hou <congh@google.com>
19024
19025 PR testsuite/60773
19026 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
19027 documentation.
19028
19029 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19030
19031 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
19032 instead of vnor to exploit possible fusion opportunity in the
19033 future.
19034 (altivec_expand_vec_perm_const_le): Likewise.
19035
19036 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
19037
19038 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
19039 (loadsync_<mode>): Change mode.
19040 (load_quadpti, store_quadpti): New.
19041 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
19042 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
19043
19044 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
19045
19046 PR target/60763
19047 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
19048 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
19049 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
19050
19051 2014-04-08 Richard Biener <rguenther@suse.de>
19052
19053 PR middle-end/60706
19054 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
19055 a 64bit widest int print double-int similar to on HWI64 hosts.
19056
19057 2014-04-08 Richard Biener <rguenther@suse.de>
19058
19059 PR tree-optimization/60785
19060 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
19061 default defs properly.
19062
19063 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
19064
19065 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
19066 (Weffc++): Likewise.
19067
19068 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
19069
19070 * ipa-devirt.c (maybe_record_node): When node is not recorded,
19071 set completep to false rather than true.
19072
19073 2014-04-07 Douglas B Rupp <rupp@adacore.com>
19074
19075 PR target/60504
19076 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
19077 ARM_TARGET2_DWARF_FORMAT.
19078
19079 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
19080
19081 PR target/60609
19082 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
19083 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
19084 ADDR_DIFF_VEC.
19085
19086 2014-04-07 Richard Biener <rguenther@suse.de>
19087
19088 PR tree-optimization/60766
19089 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
19090 (may_eliminate_iv): Convert cand_value_at result to desired type.
19091
19092 2014-04-07 Jason Merrill <jason@redhat.com>
19093
19094 PR c++/60731
19095 * common.opt (-fno-gnu-unique): Add.
19096 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
19097
19098 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19099
19100 * haifa-sched.c: Fix outdated function reference and minor
19101 grammar errors in introductory comment.
19102
19103 2014-04-07 Richard Biener <rguenther@suse.de>
19104
19105 PR middle-end/60750
19106 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
19107 for noreturn calls.
19108 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
19109
19110 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
19111
19112 PR debug/55794
19113 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
19114 size accounting for thunks.
19115 (pa_asm_output_mi_thunk): Use final_start_function() and
19116 final_end_function() to output function start and end directives.
19117
19118 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
19119
19120 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
19121 device specific ISA/ feature information. Remove short_sp and
19122 errata_skip ds. Add avr_device_specific_features enum to have device
19123 specific info.
19124 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
19125 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
19126 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
19127 updated device specific info.
19128 * config/avr/avr-mcus.def: Merge device specific details to
19129 dev_attribute field.
19130 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
19131 errata_skip.
19132 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
19133 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
19134 assembler if RMW isa supported by current device.
19135 * config/avr/genmultilib.awk: Update as device info structure changed.
19136 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
19137
19138 2014-04-04 Cong Hou <congh@google.com>
19139
19140 PR tree-optimization/60656
19141 * tree-vect-stmts.c (supportable_widening_operation):
19142 Fix a bug that elements in a vector with vect_used_by_reduction
19143 property are incorrectly reordered when the operation on it is not
19144 consistant with the one in reduction operation.
19145
19146 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
19147
19148 PR rtl-optimization/60155
19149 * gcse.c (record_set_data): New function.
19150 (single_set_gcse): New function.
19151 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
19152 (hoist_code): Likewise.
19153 (get_pressure_class_and_nregs): Likewise.
19154
19155 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
19156
19157 * explow.c (probe_stack_range): Emit a final optimization blockage.
19158
19159 2014-04-04 Anthony Green <green@moxielogic.com>
19160
19161 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
19162 typos.
19163
19164 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
19165
19166 PR ipa/59626
19167 * lto-cgraph.c (input_overwrite_node): Check that partitioning
19168 flags are set only during streaming.
19169 * ipa.c (process_references, walk_polymorphic_call_targets,
19170 symtab_remove_unreachable_nodes): Drop bodies of always inline
19171 after early inlining.
19172 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
19173
19174 2014-04-04 Jakub Jelinek <jakub@redhat.com>
19175 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19176
19177 PR debug/60655
19178 * dwarf2out.c (const_ok_for_output_1): Reject expressions
19179 containing a NOT.
19180
19181 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19182
19183 PR bootstrap/60743
19184 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
19185 duration.
19186 (cortex_a53_fdivd): Likewise.
19187
19188 2014-04-04 Martin Jambor <mjambor@suse.cz>
19189
19190 PR ipa/60640
19191 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
19192 Adjust all callers.
19193 * cgraph.c (clone_of_p): Also return true if thunks match.
19194 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
19195 cgraph_function_or_thunk_node and an obsolete comment.
19196 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
19197 file.
19198 (build_function_decl_skip_args): Likewise.
19199 (set_new_clone_decl_and_node_flags): New function.
19200 (duplicate_thunk_for_node): Likewise.
19201 (redirect_edge_duplicating_thunks): Likewise.
19202 (cgraph_clone_node): New parameter args_to_skip, pass it to
19203 redirect_edge_duplicating_thunks which is called instead of
19204 cgraph_redirect_edge_callee.
19205 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
19206 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
19207
19208 2014-04-04 Jeff Law <law@redhat.com>
19209
19210 PR target/60657
19211 * config/arm/predicates.md (const_int_I_operand): New predicate.
19212 (const_int_M_operand): Similarly.
19213 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
19214 const_int_operand.
19215 (insv_t2, extv_reg, extzv_t2): Likewise.
19216 (load_multiple_with_writeback): Similarly for const_int_I_operand.
19217 (pop_multiple_with_writeback_and_return): Likewise.
19218 (vfp_pop_multiple_with_writeback): Likewise
19219
19220 2014-04-04 Richard Biener <rguenther@suse.de>
19221
19222 PR ipa/60746
19223 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
19224 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
19225 non-GIMPLE_LABELs.
19226 * gimplify.h (gimple_add_tmp_var_fn): Declare.
19227 * gimplify.c (gimple_add_tmp_var_fn): New function.
19228 * gimple-expr.h (create_tmp_reg_fn): Declare.
19229 * gimple-expr.c (create_tmp_reg_fn): New function.
19230 * gimple-low.c (record_vars_into): Don't change cfun.
19231 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
19232 code generation without cfun.
19233
19234 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
19235
19236 PR bootstrap/60719
19237 * Makefile.in (install-driver): Fix shell scripting.
19238
19239 2014-04-03 Cong Hou <congh@google.com>
19240
19241 PR tree-optimization/60505
19242 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
19243 threshold of number of iterations below which no vectorization
19244 will be done.
19245 * tree-vect-loop.c (new_loop_vec_info):
19246 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
19247 * tree-vect-loop.c (vect_analyze_loop_operations):
19248 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
19249 * tree-vect-loop.c (vect_transform_loop):
19250 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
19251 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
19252 of iterations of the loop and see if we should build the epilogue.
19253
19254 2014-04-03 Richard Biener <rguenther@suse.de>
19255
19256 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
19257 (streamer_tree_cache_create): Adjust.
19258 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
19259 to allow optional nodes array.
19260 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
19261 (streamer_tree_cache_append): Likewise.
19262 (streamer_tree_cache_create): Create nodes array optionally
19263 as specified by parameter.
19264 * lto-streamer-out.c (create_output_block): Avoid maintaining
19265 the node array in the writer cache.
19266 (DFS_write_tree): Remove assertion.
19267 (produce_asm_for_decls): Free the out decl state hash table early.
19268 * lto-streamer-in.c (lto_data_in_create): Adjust for
19269 streamer_tree_cache_create prototype change.
19270
19271 2014-04-03 Richard Biener <rguenther@suse.de>
19272
19273 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
19274 set TREE_CHAIN to NULL_TREE.
19275
19276 2014-04-03 Richard Biener <rguenther@suse.de>
19277
19278 PR tree-optimization/60740
19279 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
19280 over all GIMPLE_COND operands.
19281
19282 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
19283
19284 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
19285 (Weffc++): Remove Scott's numbering, merge lists and reference
19286 Wnon-virtual-dtor.
19287
19288 2014-04-03 Nick Clifton <nickc@redhat.com>
19289
19290 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
19291 properly.
19292
19293 2014-04-03 Martin Jambor <mjambor@suse.cz>
19294
19295 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
19296 mention gcc_unreachable before failing.
19297 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
19298 removed symbols.
19299
19300 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
19301
19302 PR ipa/60659
19303 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
19304 inconsistent code and instead mark the context inconsistent.
19305 (possible_polymorphic_call_targets): For inconsistent contexts
19306 return empty complete list.
19307
19308 2014-04-02 Anthony Green <green@moxielogic.com>
19309
19310 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
19311 (extendqisi2, extendhisi2): Define.
19312 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
19313 (WCHAR_TYPE): Change to unsigned int.
19314
19315 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19316
19317 PR tree-optimization/60733
19318 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
19319 insertion point for PHI candidates to be the end of the feeding
19320 block for the PHI argument.
19321
19322 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
19323
19324 PR rtl-optimization/60650
19325 * lra-constraints.c (process_alt_operands): Decrease reject for
19326 earlyclobber matching.
19327
19328 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19329
19330 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
19331
19332 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19333
19334 * config/spu/spu.c (pad_bb): Do not crash when the last
19335 insn is CODE_FOR_blockage.
19336
19337 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19338
19339 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
19340 lies outside the target mode.
19341
19342 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19343
19344 PR target/60735
19345 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
19346 software floating point or no floating point registers, do not
19347 allow any type in the FPRs. Eliminate a test for SPE SIMD types
19348 in GPRs that occurs after we tested for GPRs that would never be
19349 true.
19350
19351 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
19352 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
19353 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
19354 specifically allow DDmode, since that does not use the SPE SIMD
19355 instructions.
19356
19357 2014-04-02 Richard Biener <rguenther@suse.de>
19358
19359 PR middle-end/60729
19360 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
19361 MODE_INTs. Properly use negv_optab.
19362 (expand_abs): Likewise.
19363
19364 2014-04-02 Richard Biener <rguenther@suse.de>
19365
19366 PR bootstrap/60719
19367 * Makefile.in (install-driver): Guard extra installs with special
19368 names properly.
19369
19370 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
19371
19372 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19373 Document vec_vgbbd.
19374
19375 2014-04-01 Richard Henderson <rth@redhat.com>
19376
19377 PR target/60704
19378 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
19379 alternative enabled before register allocation.
19380
19381 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
19382
19383 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
19384 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
19385 typo.
19386 (nios2_large_got_address): Remove unneeded 'sym' parameter.
19387 (nios2_got_address): Update nios2_large_got_address call site.
19388 (nios2_delegitimize_address): New function.
19389 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
19390 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
19391 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
19392
19393 2014-04-01 Martin Husemann <martin@duskware.de>
19394
19395 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
19396 for -mabi=32.
19397
19398 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
19399
19400 PR rtl-optimization/60604
19401 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
19402 check from register_operand.
19403 (register_operand): Redefine in terms of general_operand.
19404 (nonmemory_operand): Use register_operand for the non-constant cases.
19405
19406 2014-04-01 Richard Biener <rguenther@suse.de>
19407
19408 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
19409
19410 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
19411
19412 * doc/invoke.texi (mapp-regs): Clarify.
19413
19414 2014-03-31 Ulrich Drepper <drepper@gmail.com>
19415
19416 * config/i386/avx512fintrin.h (__v32hi): Define type.
19417 (__v64qi): Likewise.
19418 (_mm512_set1_epi8): Define.
19419 (_mm512_set1_epi16): Define.
19420 (_mm512_set4_epi32): Define.
19421 (_mm512_set4_epi64): Define.
19422 (_mm512_set4_pd): Define.
19423 (_mm512_set4_ps): Define.
19424 (_mm512_setr4_epi64): Define.
19425 (_mm512_setr4_epi32): Define.
19426 (_mm512_setr4_pd): Define.
19427 (_mm512_setr4_ps): Define.
19428 (_mm512_setzero_epi32): Define.
19429
19430 2014-03-31 Martin Jambor <mjambor@suse.cz>
19431
19432 PR middle-end/60647
19433 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
19434 callsite_arguments_match_p. Updated all callers. Also check types of
19435 corresponding formal parameters and actual arguments.
19436 (not_all_callers_have_enough_arguments_p) Renamed to
19437 some_callers_have_mismatched_arguments_p.
19438
19439 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
19440
19441 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
19442
19443 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
19444
19445 PR target/60034
19446 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
19447 section anchor.
19448
19449 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
19450
19451 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
19452 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
19453 Split out
19454 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
19455 Use FMAMODE_NOVF512 mode iterator.
19456 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
19457 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
19458 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
19459 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
19460 Split out
19461 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
19462 Use VF_128_256 mode iterator.
19463 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
19464 Ditto.
19465
19466 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
19467
19468 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
19469 static chain if needed.
19470
19471 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
19472
19473 PR target/60697
19474 * lra-constraints.c (index_part_to_reg): New.
19475 (process_address): Use it.
19476
19477 2014-03-27 Jeff Law <law@redhat.com>
19478 Jakub Jelinek <jakub@redhat.com>
19479
19480 PR target/60648
19481 * expr.c (do_tablejump): Use simplify_gen_binary rather than
19482 gen_rtx_{PLUS,MULT} to build up the address expression.
19483
19484 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
19485 creating non-canonical RTL.
19486
19487 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
19488
19489 PR ipa/60243
19490 * ipa-inline.c (want_inline_small_function_p): Short circuit large
19491 functions; reorganize to make cheap checks first.
19492 (inline_small_functions): Do not estimate growth when dumping;
19493 it is expensive.
19494 * ipa-inline.h (inline_summary): Add min_size.
19495 (growth_likely_positive): New function.
19496 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
19497 (set_cond_stmt_execution_predicate): Cleanup.
19498 (estimate_edge_size_and_time): Compute min_size.
19499 (estimate_calls_size_and_time): Likewise.
19500 (estimate_node_size_and_time): Likewise.
19501 (inline_update_overall_summary): Update min_size.
19502 (do_estimate_edge_time): Likewise.
19503 (do_estimate_edge_size): Update.
19504 (do_estimate_edge_hints): Update.
19505 (growth_likely_positive): New function.
19506
19507 2014-03-28 Jakub Jelinek <jakub@redhat.com>
19508
19509 PR target/60693
19510 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
19511 also if addr has VOIDmode.
19512
19513 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19514
19515 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
19516 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
19517 Declare extern.
19518 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
19519 instructions as well as AdvancedSIMD loads.
19520
19521 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19522
19523 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
19524 Use crypto_aese type.
19525 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
19526 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
19527 crypto_aese, crypto_aesmc. Move to types.md.
19528 * config/arm/types.md (crypto_aes): Split into crypto_aese,
19529 crypto_aesmc.
19530 * config/arm/iterators.md (crypto_type): Likewise.
19531
19532 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
19533
19534 * cgraph.c: Include expr.h and tree-dfa.h.
19535 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
19536 remove LHS.
19537
19538 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
19539
19540 PR target/60675
19541 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
19542 regs from checking multi-reg pseudos.
19543
19544 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19545
19546 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
19547
19548 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19549
19550 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
19551 if it would clobber the stack pointer, even temporarily.
19552
19553 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
19554
19555 * mode-switching.c: Make small adjustments to the top comment.
19556
19557 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
19558
19559 * config/rs6000/constraints.md (wD constraint): New constraint to
19560 match the constant integer to get the top DImode/DFmode out of a
19561 vector in a VSX register.
19562
19563 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
19564 match the constant integer to get the top DImode/DFmode out of a
19565 vector in a VSX register.
19566
19567 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
19568 for ISA 2.07.
19569
19570 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19571 vbpermq builtins.
19572
19573 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
19574 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
19575
19576 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
19577 Optimize vec_extract of 64-bit values, where the value being
19578 extracted is in the top word, where we can use scalar
19579 instructions. Add direct move and store support. Combine the big
19580 endian/little endian vector select load support into a single insn.
19581 (vsx_extract_<mode>_internal1): Likewise.
19582 (vsx_extract_<mode>_internal2): Likewise.
19583 (vsx_extract_<mode>_load): Likewise.
19584 (vsx_extract_<mode>_store): Likewise.
19585 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
19586 combined into vsx_extract_<mode>_load.
19587 (vsx_extract_<mode>_one_le): Likewise.
19588
19589 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
19590 define the top 64-bit vector element.
19591
19592 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
19593 constraint.
19594
19595 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19596 Document vec_vbpermq builtin.
19597
19598 PR target/60672
19599 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
19600 enable use of xxsldwi and xxpermdi builtin functions.
19601 (vec_xxpermdi): Likewise.
19602
19603 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19604 Document use of vec_xxsldwi and vec_xxpermdi builtins.
19605
19606 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
19607
19608 PR rtl-optimization/60650
19609 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
19610 first_p. Use it.
19611 (find_spills_for): New.
19612 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
19613 Spill all pseudos on the second iteration.
19614
19615 2014-03-27 Marek Polacek <polacek@redhat.com>
19616
19617 PR c/50347
19618 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
19619 types.
19620
19621 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19622
19623 * config/s390/s390.c (s390_can_use_return_insn): Check for
19624 call-saved FPRs on 31 bit.
19625
19626 2014-03-27 Jakub Jelinek <jakub@redhat.com>
19627
19628 PR middle-end/60682
19629 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
19630 if they need regimplification, just drop them instead of
19631 calling gimple_regimplify_operands on them.
19632
19633 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
19634
19635 PR target/60580
19636 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
19637 (aarch64_frame_pointer_required): Adjust logic.
19638 (aarch64_can_eliminate): Adjust logic.
19639 (aarch64_override_options_after_change): Adjust logic.
19640
19641 2014-03-27 Dehao Chen <dehao@google.com>
19642
19643 * ipa-inline.c (early_inliner): Update node's inline info.
19644
19645 2014-03-26 Dehao Chen <dehao@google.com>
19646
19647 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
19648 compiler inserted conditional jumps for NAN float check.
19649
19650 2014-03-26 Jakub Jelinek <jakub@redhat.com>
19651
19652 * ubsan.h (ubsan_create_data): Change second argument's type
19653 to const location_t *.
19654 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
19655 _("<unknown>").
19656 (ubsan_create_data): Change second argument to const location_t *PLOC.
19657 Create Loc field whenever PLOC is non-NULL.
19658 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
19659 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
19660 callers.
19661
19662 PR other/59545
19663 * real.c (real_to_integer2): Change type of low to UHWI.
19664
19665 2014-03-26 Tobias Burnus <burnus@net-b.de>
19666
19667 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
19668 (CILK_SELF_SPECS): New define.
19669 (driver_self_specs): Use it.
19670
19671 2014-03-26 Richard Biener <rguenther@suse.de>
19672
19673 * tree-pretty-print.c (percent_K_format): Implement special
19674 case for LTO and its stripped down BLOCK tree.
19675
19676 2014-03-26 Jakub Jelinek <jakub@redhat.com>
19677
19678 PR sanitizer/60636
19679 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
19680
19681 * tree-vrp.c (simplify_internal_call_using_ranges): If only
19682 one range is range_int_cst_p, but not both, at least optimize
19683 addition/subtraction of 0 and multiplication by 0 or 1.
19684 * gimple-fold.c (gimple_fold_call): Fold
19685 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
19686 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
19687 INTEGER_CSTs, try to fold at least x * 0 and y - y.
19688
19689 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
19690
19691 PR rtl-optimization/60452
19692 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
19693 <case REG>: Return 1 for invalid offsets from the frame pointer.
19694
19695 2014-03-26 Marek Polacek <polacek@redhat.com>
19696
19697 PR c/37428
19698 * doc/extend.texi (C Extensions): Mention variable-length arrays in
19699 a structure/union.
19700
19701 2014-03-26 Marek Polacek <polacek@redhat.com>
19702
19703 PR c/39525
19704 * doc/extend.texi (Designated Inits): Describe what happens to omitted
19705 field members.
19706
19707 2014-03-26 Marek Polacek <polacek@redhat.com>
19708
19709 PR other/59545
19710 * ira-color.c (update_conflict_hard_regno_costs): Perform the
19711 multiplication in unsigned type.
19712
19713 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
19714
19715 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
19716
19717 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
19718
19719 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
19720
19721 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
19722
19723 PR ipa/60315
19724 * cif-code.def (UNREACHABLE) New code.
19725 * ipa-inline.c (inline_small_functions): Skip edges to
19726 __builtlin_unreachable.
19727 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
19728 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
19729 predicate to __bulitin_unreachable.
19730 (set_cond_stmt_execution_predicate): Fix issue when
19731 invert_tree_comparison returns ERROR_MARK.
19732 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
19733 propagate to inline clones.
19734 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
19735 to unreachable.
19736 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
19737 * cgraphclones.c (cgraph_clone_node): If call destination is already
19738 ureachable, do not redirect it back.
19739 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
19740 unreachable.
19741
19742 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
19743
19744 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
19745 Do not modify inline clones.
19746
19747 2014-03-25 Jakub Jelinek <jakub@redhat.com>
19748
19749 * config/i386/i386.md (general_sext_operand): New mode attr.
19750 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
19751 don't generate (sign_extend (const_int)).
19752 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
19753 operands[2]. Use We constraint instead of <i> and
19754 <general_sext_operand> predicate instead of <general_operand>.
19755 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
19756 * config/i386/constraints.md (We): New constraint.
19757 * config/i386/predicates.md (x86_64_sext_operand,
19758 sext_operand): New predicates.
19759
19760 2014-03-25 Martin Jambor <mjambor@suse.cz>
19761
19762 PR ipa/60600
19763 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
19764 inconsistent devirtualizations to __builtin_unreachable.
19765
19766 2014-03-25 Marek Polacek <polacek@redhat.com>
19767
19768 PR c/35449
19769 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
19770
19771 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
19772
19773 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
19774 order of elements for big-endian.
19775
19776 2014-03-25 Richard Biener <rguenther@suse.de>
19777
19778 PR middle-end/60635
19779 * gimplify-me.c (gimple_regimplify_operands): Update the
19780 re-gimplifed stmt.
19781
19782 2014-03-25 Martin Jambor <mjambor@suse.cz>
19783
19784 PR ipa/59176
19785 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
19786 (lto_output_varpool_node): Likewise.
19787 (input_overwrite_node): Likewise.
19788 (input_varpool_node): Likewise.
19789
19790 2014-03-25 Richard Biener <rguenther@suse.de>
19791
19792 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
19793 (run_gcc): Likewise.
19794
19795 2014-03-25 Jakub Jelinek <jakub@redhat.com>
19796
19797 * combine.c (simplify_compare_const): Add MODE argument.
19798 Handle mode_width 0 as very large mode_width.
19799 (try_combine, simplify_comparison): Adjust callers.
19800
19801 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
19802 type to avoid signed integer overflow.
19803 * explow.c (plus_constant): Likewise.
19804
19805 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
19806
19807 * doc/generic.texi: Correct typos.
19808
19809 2014-03-24 Tobias Burnus <burnus@net-b.de>
19810
19811 * doc/invoke.texi (-flto): Expand section about
19812 using static libraries with LTO.
19813
19814 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19815
19816 PR rtl-optimization/60501
19817 * optabs.def (addptr3_optab): New optab.
19818 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
19819 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
19820 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
19821
19822 * lra.c (emit_add3_insn): Use the addptr pattern if available.
19823
19824 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
19825
19826 2014-03-24 Ulrich Drepper <drepper@gmail.com>
19827
19828 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
19829 _mm512_set1_pd.
19830
19831 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
19832 (_mm256_undefined_ps): Define.
19833 (_mm256_undefined_pd): Define.
19834 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
19835 (_mm_undefined_pd): Define.
19836 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
19837 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
19838 (_mm512_undefined_ps): Define.
19839 (_mm512_undefined_pd): Define.
19840 Use _mm*_undefined_*.
19841 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
19842
19843 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
19844
19845 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
19846 (lshr_simd): DI mode added.
19847 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
19848 (aarch64_ushr_simddi): Likewise.
19849 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
19850 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
19851 (vshrd_n_u64): Likewise.
19852
19853 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19854
19855 * Makefile.in (s-macro_list): Depend on cc1.
19856
19857 2014-03-23 Teresa Johnson <tejohnson@google.com>
19858
19859 * ipa-utils.c (ipa_print_order): Use specified dump file.
19860
19861 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
19862
19863 PR rtl-optimization/60601
19864 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
19865
19866 * gcc.c (eval_spec_function): Initialize save_growing_value.
19867
19868 2014-03-22 Jakub Jelinek <jakub@redhat.com>
19869
19870 PR sanitizer/60613
19871 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
19872 code == MINUS_EXPR, never swap op0 with op1.
19873
19874 * toplev.c (init_local_tick): Avoid signed integer multiplication
19875 overflow.
19876 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
19877 shift by first operand's bitsize.
19878
19879 2014-03-21 Jakub Jelinek <jakub@redhat.com>
19880
19881 PR target/60610
19882 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
19883 redefine to 1 or 0.
19884 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
19885 TARGET_ISA_64BIT_P(x).
19886
19887 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19888
19889 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
19890 pattern for vector nor instead of subtract from splat(-1).
19891 (altivec_expand_vec_perm_const_le): Likewise.
19892
19893 2014-03-21 Richard Henderson <rth@twiddle.net>
19894
19895 PR target/60598
19896 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
19897 related insns after epilogue_completed.
19898
19899 2014-03-21 Martin Jambor <mjambor@suse.cz>
19900
19901 PR ipa/59176
19902 * cgraph.h (symtab_node): New flag body_removed.
19903 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
19904 when removing bodies.
19905 * symtab.c (dump_symtab_base): Dump body_removed flag.
19906 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
19907 had their bodies removed.
19908
19909 2014-03-21 Martin Jambor <mjambor@suse.cz>
19910
19911 PR ipa/60419
19912 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
19913 in the border.
19914
19915 2014-03-21 Richard Biener <rguenther@suse.de>
19916
19917 PR tree-optimization/60577
19918 * tree-core.h (struct tree_base): Document nothrow_flag use
19919 in DECL_NONALIASED.
19920 * tree.h (DECL_NONALIASED): New.
19921 (may_be_aliased): Adjust.
19922 * coverage.c (build_var): Set DECL_NONALIASED.
19923
19924 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
19925
19926 * expr.c (expand_expr_real_1): Remove outdated comment.
19927
19928 2014-03-20 Jakub Jelinek <jakub@redhat.com>
19929
19930 PR middle-end/60597
19931 * ira.c (adjust_cleared_regs): Call copy_rtx on
19932 *reg_equiv[REGNO (loc)].src_p before passing it to
19933 simplify_replace_fn_rtx.
19934
19935 PR target/60568
19936 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
19937 into CONST, put pic register as first operand of PLUS. Use
19938 gen_const_mem for both 32-bit and 64-bit PIC got loads.
19939
19940 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19941
19942 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
19943
19944 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
19945
19946 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
19947 around for store forwarding issue in the FPU on the UT699.
19948 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
19949 loads and operations if -mfix-ut699 is specified.
19950 (divtf3_hq): Tweak attribute.
19951 (sqrttf2_hq): Likewise.
19952
19953 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
19954
19955 * calls.c (store_one_arg): Remove incorrect const qualification on the
19956 type of the temporary.
19957 * cfgexpand.c (expand_return): Likewise.
19958 * expr.c (expand_constructor): Likewise.
19959 (expand_expr_real_1): Likewise.
19960
19961 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19962
19963 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
19964 of parts.
19965
19966 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
19967
19968 PR target/60039
19969 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
19970
19971 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
19972
19973 * config/arm/aarch-common-protos.h
19974 (alu_cost_table): Fix spelling of "extend".
19975 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
19976
19977 2014-03-19 Richard Biener <rguenther@suse.de>
19978
19979 PR middle-end/60553
19980 * tree-core.h (tree_type_common): Re-order pointer members
19981 to reduce recursion depth during GC walks.
19982
19983 2014-03-19 Marek Polacek <polacek@redhat.com>
19984
19985 PR sanitizer/60569
19986 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
19987 before accessing it.
19988
19989 2014-03-19 Richard Biener <rguenther@suse.de>
19990
19991 PR lto/59543
19992 * lto-streamer-in.c (input_function): In WPA stage do not drop
19993 debug stmts.
19994
19995 2014-03-19 Jakub Jelinek <jakub@redhat.com>
19996
19997 PR tree-optimization/60559
19998 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
19999 with build_zero_cst assignment.
20000
20001 2014-03-18 Kai Tietz <ktietz@redhat.com>
20002
20003 PR rtl-optimization/56356
20004 * sdbout.c (sdbout_parms): Verify that parms'
20005 incoming argument is valid.
20006 (sdbout_reg_parms): Likewise.
20007
20008 2014-03-18 Richard Henderson <rth@redhat.com>
20009
20010 PR target/60562
20011 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
20012 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
20013 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
20014
20015 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
20016
20017 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
20018 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
20019 Italicize plugin event names in description. Explain that
20020 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
20021 Remind that no GCC functions should be called after PLUGIN_FINISH.
20022 Explain what pragmas with expansion are.
20023
20024 2014-03-18 Martin Liska <mliska@suse.cz>
20025
20026 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
20027 gimple call statement is update.
20028 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
20029 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
20030
20031 2014-03-18 Jakub Jelinek <jakub@redhat.com>
20032
20033 PR sanitizer/60557
20034 * ubsan.c (ubsan_instrument_unreachable): Call
20035 initialize_sanitizer_builtins.
20036 (ubsan_pass): Likewise.
20037
20038 PR sanitizer/60535
20039 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
20040 varpool_finalize_decl instead of rest_of_decl_compilation.
20041
20042 2014-03-18 Richard Biener <rguenther@suse.de>
20043
20044 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
20045 by using bitmap_and_compl instead of bitmap_and_compl_into.
20046 (df_rd_transfer_function): Likewise.
20047
20048 2014-03-18 Richard Biener <rguenther@suse.de>
20049
20050 * doc/lto.texi (fresolution): Fix typo.
20051
20052 2014-03-18 Richard Biener <rguenther@suse.de>
20053
20054 * doc/invoke.texi (flto): Update for changes in 4.9.
20055
20056 2014-03-18 Richard Biener <rguenther@suse.de>
20057
20058 * doc/loop.texi: Remove section on the removed lambda framework.
20059 Update loop docs with recent changes in preserving loop structure.
20060
20061 2014-03-18 Richard Biener <rguenther@suse.de>
20062
20063 * doc/lto.texi (-fresolution): Document.
20064
20065 2014-03-18 Richard Biener <rguenther@suse.de>
20066
20067 * doc/contrib.texi: Adjust my name.
20068
20069 2014-03-18 Jakub Jelinek <jakub@redhat.com>
20070
20071 PR ipa/58721
20072 * internal-fn.c: Include diagnostic-core.h.
20073 (expand_BUILTIN_EXPECT): New function.
20074 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
20075 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
20076 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
20077 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
20078 IFN_BUILTIN_EXPECT.
20079 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
20080 Revert 3 argument __builtin_expect code.
20081 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
20082 * gimple-fold.c (gimple_fold_call): Likewise.
20083 * tree.h (fold_builtin_expect): New prototype.
20084 * builtins.c (build_builtin_expect_predicate): Add predictor
20085 argument, if non-NULL, create 3 argument __builtin_expect.
20086 (fold_builtin_expect): No longer static. Add ARG2 argument,
20087 pass it through to build_builtin_expect_predicate.
20088 (fold_builtin_2): Adjust caller.
20089 (fold_builtin_3): Handle BUILT_IN_EXPECT.
20090 * internal-fn.def (BUILTIN_EXPECT): New.
20091
20092 2014-03-18 Tobias Burnus <burnus@net-b.de>
20093
20094 PR ipa/58721
20095 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
20096 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
20097 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
20098
20099 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
20100
20101 PR ipa/58721
20102 * predict.c (combine_predictions_for_bb): Fix up formatting.
20103 (expr_expected_value_1, expr_expected_value): Add predictor argument,
20104 fill what it points to if non-NULL.
20105 (tree_predict_by_opcode): Adjust caller, use the predictor.
20106 * predict.def (PRED_COMPARE_AND_SWAP): Add.
20107
20108 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
20109
20110 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
20111 proper constant for the store mode.
20112
20113 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
20114
20115 * symtab.c (change_decl_assembler_name): Fix transparent alias
20116 chain construction.
20117
20118 2014-03-16 Renlin Li <Renlin.Li@arm.com>
20119
20120 * config/aarch64/aarch64.c: Correct the comments about the
20121 aarch64 stack layout.
20122
20123 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
20124
20125 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
20126 check for GF_OMP_FOR_KIND_FOR.
20127
20128 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
20129
20130 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
20131 ymm and zmm register names.
20132
20133 2014-03-17 Jakub Jelinek <jakub@redhat.com>
20134
20135 PR target/60516
20136 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
20137 note creation for the 2010-08-31 changes.
20138
20139 2014-03-17 Marek Polacek <polacek@redhat.com>
20140
20141 PR middle-end/60534
20142 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
20143 as -fno-tree-loop-vectorize.
20144 (expand_omp_simd): Likewise.
20145
20146 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
20147
20148 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
20149 (eligible_for_call_delay): New prototype.
20150 * config/sparc/sparc.c (tls_call_delay): Rename into...
20151 (eligible_for_call_delay): ...this. Return false if the instruction
20152 cannot be put in the delay slot of a branch.
20153 (eligible_for_restore_insn): Simplify.
20154 (eligible_for_return_delay): Return false if the instruction cannot be
20155 put in the delay slot of a branch and simplify.
20156 (eligible_for_sibcall_delay): Return false if the instruction cannot be
20157 put in the delay slot of a branch.
20158 * config/sparc/sparc.md (fix_ut699): New attribute.
20159 (tls_call_delay): Delete.
20160 (in_call_delay): Reimplement.
20161 (eligible_for_sibcall_delay): Rename into...
20162 (in_sibcall_delay): ...this.
20163 (eligible_for_return_delay): Rename into...
20164 (in_return_delay): ...this.
20165 (in_branch_delay): Reimplement.
20166 (in_uncond_branch_delay): Delete.
20167 (in_annul_branch_delay): Delete.
20168
20169 2014-03-14 Richard Henderson <rth@redhat.com>
20170
20171 PR target/60525
20172 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
20173 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
20174 (*floathi<X87MODEF>2_i387_with_temp): Remove.
20175 (floathi splitters): Remove.
20176 (float<SWI48x>xf2): New pattern.
20177 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
20178 code that tried to handle DImode for 32-bit, but which was excluded
20179 by the pattern's condition. Drop allocation of stack temporary.
20180 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
20181 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
20182 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
20183 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
20184 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
20185 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
20186 (*float<SWI48><MODEF>2_sse_interunit): Remove.
20187 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
20188 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
20189 (*float<SWI48x><X87MODEF>2_i387): Remove.
20190 (all float _with_temp splitters): Remove.
20191 (*float<SWI48x><MODEF>2_i387): New pattern.
20192 (*float<SWI48><MODEF>2_sse): New pattern.
20193 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
20194 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
20195
20196 2014-03-14 Jakub Jelinek <jakub@redhat.com>
20197 Marek Polacek <polacek@redhat.com>
20198
20199 PR middle-end/60484
20200 * common.opt (dump_base_name_prefixed): New Variable.
20201 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
20202 if x_dump_base_name_prefixed is already set, set it at the end.
20203
20204 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
20205
20206 PR rtl-optimization/60508
20207 * lra-constraints.c (get_reload_reg): Add new parameter
20208 in_subreg_p.
20209 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
20210 Pass the new parameter values.
20211
20212 2014-03-14 Richard Biener <rguenther@suse.de>
20213
20214 * common.opt: Revert unintented changes from r205065.
20215 * opts.c: Likewise.
20216
20217 2014-03-14 Richard Biener <rguenther@suse.de>
20218
20219 PR middle-end/60518
20220 * cfghooks.c (split_block): Properly adjust all loops the
20221 block was a latch of.
20222
20223 2014-03-14 Martin Jambor <mjambor@suse.cz>
20224
20225 PR lto/60461
20226 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
20227 and simplify it.
20228
20229 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
20230
20231 PR target/59396
20232 * config/avr/avr.c (avr_set_current_function): Pass function name
20233 through default_strip_name_encoding before sanity checking instead
20234 of skipping the first char of the assembler name.
20235
20236 2014-03-13 Richard Henderson <rth@redhat.com>
20237
20238 PR debug/60438
20239 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
20240 (ix86_force_to_memory, ix86_free_from_memory): Remove.
20241 * config/i386/i386-protos.h: Likewise.
20242 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
20243 in the expander instead of a splitter.
20244 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
20245 any possibility of requiring a memory.
20246 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
20247 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
20248 (fp branch splitters): Update for ix86_split_fp_branch.
20249 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
20250 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
20251 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
20252 (*fop_<MODEF>_2_i387): Remove f/r alternative.
20253 (*fop_<MODEF>_3_i387): Likewise.
20254 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
20255 (splitters for the fop_* register patterns): Remove.
20256 (fscalexf4_i387): Rename from *fscalexf4_i387.
20257 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
20258
20259 2014-03-13 Jakub Jelinek <jakub@redhat.com>
20260
20261 PR tree-optimization/59779
20262 * tree-dfa.c (get_ref_base_and_extent): Use double_int
20263 type for bitsize and maxsize instead of HOST_WIDE_INT.
20264
20265 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
20266
20267 PR rtl-optimization/57320
20268 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
20269 the CFG after thread_prologue_and_epilogue_insns.
20270
20271 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
20272
20273 PR rtl-optimization/57189
20274 * lra-constraints.c (process_alt_operands): Disfavor spilling
20275 vector pseudos.
20276
20277 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
20278
20279 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
20280
20281 2014-03-13 Jakub Jelinek <jakub@redhat.com>
20282
20283 PR tree-optimization/59025
20284 PR middle-end/60418
20285 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
20286 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
20287
20288 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
20289
20290 PR target/60486
20291 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
20292 calls of avr_out_plus_1.
20293
20294 2014-03-13 Bin Cheng <bin.cheng@arm.com>
20295
20296 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
20297 BB's single pred and update the father loop's latch info later.
20298
20299 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
20300
20301 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
20302 (VEC_M): Likewise.
20303 (VEC_N): Likewise.
20304 (VEC_R): Likewise.
20305 (VEC_base): Likewise.
20306 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
20307 registers, we need to swap double words in little endian mode.
20308
20309 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
20310 to be a container mode for 128-bit integer operations added in ISA
20311 2.07. Unlike TImode and PTImode, the preferred register set is
20312 the Altivec/VMX registers for the 128-bit operations.
20313
20314 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
20315 declarations.
20316 (rs6000_split_128bit_ok_p): Likewise.
20317
20318 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
20319 macros for creating ISA 2.07 normal and overloaded builtin
20320 functions with 3 arguments.
20321 (BU_P8V_OVERLOAD_3): Likewise.
20322 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
20323 for use as overloaded functions.
20324 (VPERM_1TI_UNS): Likewise.
20325 (VSEL_1TI): Likewise.
20326 (VSEL_1TI_UNS): Likewise.
20327 (ST_INTERNAL_1ti): Likewise.
20328 (LD_INTERNAL_1ti): Likewise.
20329 (XXSEL_1TI): Likewise.
20330 (XXSEL_1TI_UNS): Likewise.
20331 (VPERM_1TI): Likewise.
20332 (VPERM_1TI_UNS): Likewise.
20333 (XXPERMDI_1TI): Likewise.
20334 (SET_1TI): Likewise.
20335 (LXVD2X_V1TI): Likewise.
20336 (STXVD2X_V1TI): Likewise.
20337 (VEC_INIT_V1TI): Likewise.
20338 (VEC_SET_V1TI): Likewise.
20339 (VEC_EXT_V1TI): Likewise.
20340 (EQV_V1TI): Likewise.
20341 (NAND_V1TI): Likewise.
20342 (ORC_V1TI): Likewise.
20343 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
20344 added in ISA 2.07. Add both normal 'altivec' builtins, and the
20345 overloaded builtin.
20346 (VADDUQM): Likewise.
20347 (VSUBCUQ): Likewise.
20348 (VADDEUQM): Likewise.
20349 (VADDECUQ): Likewise.
20350 (VSUBEUQM): Likewise.
20351 (VSUBECUQ): Likewise.
20352
20353 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
20354 __int128_t and __uint128_t types.
20355 (__uint128_type): Likewise.
20356 (altivec_categorize_keyword): Add support for vector __int128_t,
20357 vector __uint128_t, vector __int128, and vector unsigned __int128
20358 as a container type for TImode operations that need to be done in
20359 VSX/Altivec registers.
20360 (rs6000_macro_to_expand): Likewise.
20361 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
20362 to support 128-bit integer instructions vaddcuq, vadduqm,
20363 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
20364 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
20365
20366 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
20367 for V1TImode, and set up preferences to use VSX/Altivec registers.
20368 Setup VSX reload handlers.
20369 (rs6000_debug_reg_global): Likewise.
20370 (rs6000_init_hard_regno_mode_ok): Likewise.
20371 (rs6000_preferred_simd_mode): Likewise.
20372 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
20373 (easy_altivec_constant): Likewise.
20374 (output_vec_const_move): Likewise.
20375 (rs6000_expand_vector_set): Convert V1TImode set and extract to
20376 simple move.
20377 (rs6000_expand_vector_extract): Likewise.
20378 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
20379 addressing.
20380 (rs6000_const_vec): Add support for V1TImode.
20381 (rs6000_emit_le_vsx_load): Swap double words when loading or
20382 storing TImode/V1TImode.
20383 (rs6000_emit_le_vsx_store): Likewise.
20384 (rs6000_emit_le_vsx_move): Likewise.
20385 (rs6000_emit_move): Add support for V1TImode.
20386 (altivec_expand_ld_builtin): Likewise.
20387 (altivec_expand_st_builtin): Likewise.
20388 (altivec_expand_vec_init_builtin): Likewise.
20389 (altivec_expand_builtin): Likewise.
20390 (rs6000_init_builtins): Add support for V1TImode type. Add
20391 support for ISA 2.07 128-bit integer builtins. Define type names
20392 for the VSX/Altivec vector types.
20393 (altivec_init_builtins): Add support for overloaded vector
20394 functions with V1TImode type.
20395 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
20396 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
20397 external function.
20398 (rs6000_split_128bit_ok_p): Likewise.
20399 (rs6000_handle_altivec_attribute): Create V1TImode from vector
20400 __int128_t and vector __uint128_t.
20401
20402 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
20403 and mode attributes.
20404 (VSX_M): Likewise.
20405 (VSX_M2): Likewise.
20406 (VSm): Likewise.
20407 (VSs): Likewise.
20408 (VSr): Likewise.
20409 (VSv): Likewise.
20410 (VS_scalar): Likewise.
20411 (VS_double): Likewise.
20412 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
20413
20414 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
20415 we support the ISA 2.07 128-bit integer arithmetic instructions.
20416 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
20417 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
20418 and TImode types for use with the builtin functions.
20419 (V1TI_type_node): Likewise.
20420 (unsigned_V1TI_type_node): Likewise.
20421 (intTI_type_internal_node): Likewise.
20422 (uintTI_type_internal_node): Likewise.
20423
20424 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
20425 128-bit builtin functions.
20426 (UNSPEC_VADDEUQM): Likewise.
20427 (UNSPEC_VADDECUQ): Likewise.
20428 (UNSPEC_VSUBCUQ): Likewise.
20429 (UNSPEC_VSUBEUQM): Likewise.
20430 (UNSPEC_VSUBECUQ): Likewise.
20431 (VM): Add V1TImode to vector mode iterators.
20432 (VM2): Likewise.
20433 (VI_unit): Likewise.
20434 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
20435 (altivec_vaddcuq): Likewise.
20436 (altivec_vsubuqm): Likewise.
20437 (altivec_vsubcuq): Likewise.
20438 (altivec_vaddeuqm): Likewise.
20439 (altivec_vaddecuq): Likewise.
20440 (altivec_vsubeuqm): Likewise.
20441 (altivec_vsubecuq): Likewise.
20442
20443 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
20444 mode iterators.
20445 (BOOL_128): Likewise.
20446 (BOOL_REGS_OUTPUT): Likewise.
20447 (BOOL_REGS_OP1): Likewise.
20448 (BOOL_REGS_OP2): Likewise.
20449 (BOOL_REGS_UNARY): Likewise.
20450 (BOOL_REGS_AND_CR0): Likewise.
20451
20452 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
20453 128-bit integer builtin support.
20454 (vec_vadduqm): Likewise.
20455 (vec_vaddecuq): Likewise.
20456 (vec_vaddeuqm): Likewise.
20457 (vec_vsubecuq): Likewise.
20458 (vec_vsubeuqm): Likewise.
20459 (vec_vsubcuq): Likewise.
20460 (vec_vsubuqm): Likewise.
20461
20462 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20463 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
20464 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
20465 128-bit integer add/subtract to ISA 2.07.
20466
20467 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
20468
20469 * config/arc/arc.c (arc_predicate_delay_insns):
20470 Fix third argument passed to conditionalize_nonjump.
20471
20472 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
20473
20474 * config/aarch64/aarch64-builtins.c
20475 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
20476 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
20477 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
20478 instead of __builtin_lfloor.
20479 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
20480
20481 2014-03-12 Jakub Jelinek <jakub@redhat.com>
20482
20483 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
20484 (tree_ssa_ifcombine_bb_1): New function.
20485 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
20486 is an empty forwarder block to then_bb or vice versa and then_bb
20487 and else_bb are effectively swapped.
20488
20489 2014-03-12 Christian Bruel <christian.bruel@st.com>
20490
20491 PR target/60264
20492 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
20493 REG_CFA_DEF_CFA note.
20494 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
20495 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
20496
20497 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
20498
20499 PR tree-optimization/60454
20500 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
20501
20502 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20503
20504 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
20505 Do not define target_cpu_default2 to generic.
20506 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
20507 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
20508 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
20509
20510 2014-03-12 Jakub Jelinek <jakub@redhat.com>
20511 Marc Glisse <marc.glisse@inria.fr>
20512
20513 PR tree-optimization/60502
20514 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
20515 instead of build_low_bits_mask.
20516
20517 2014-03-12 Jakub Jelinek <jakub@redhat.com>
20518
20519 PR middle-end/60482
20520 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
20521 if there are multiple uses, but op doesn't live on E edge.
20522 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
20523 clobber stmts before __builtin_unreachable.
20524
20525 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
20526
20527 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
20528 hard_frame_pointer_rtx.
20529 * cse.c (cse_insn): Remove volatile check.
20530 * cselib.c (cselib_process_insn): Likewise.
20531 * dse.c (scan_insn): Likewise.
20532
20533 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
20534
20535 * config/arc/arc.c (conditionalize_nonjump): New function,
20536 broken out of ...
20537 (arc_ifcvt): ... this.
20538 (arc_predicate_delay_insns): Use it.
20539
20540 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
20541
20542 * config/arc/predicates.md (extend_operand): During/after reload,
20543 allow const_int_operand.
20544 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
20545 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
20546 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
20547 to "i".
20548 (umulsi3_highpart_i): Likewise.
20549
20550 2014-03-11 Richard Biener <rguenther@suse.de>
20551
20552 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
20553 Add asserts to guard possible wrong-code bugs.
20554
20555 2014-03-11 Richard Biener <rguenther@suse.de>
20556
20557 PR tree-optimization/60429
20558 PR tree-optimization/60485
20559 * tree-ssa-structalias.c (set_union_with_increment): Properly
20560 take into account all fields that overlap the shifted vars.
20561 (do_sd_constraint): Likewise.
20562 (do_ds_constraint): Likewise.
20563 (get_constraint_for_ptr_offset): Likewise.
20564
20565 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
20566
20567 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
20568 (nios2_compute_frame_layout):
20569 Add calculation of cfun->machine->fp_save_offset.
20570 (nios2_expand_prologue): Correct setting of frame pointer register
20571 in prologue.
20572 (nios2_expand_epilogue): Update recovery of stack pointer from
20573 frame pointer accordingly.
20574 (nios2_initial_elimination_offset): Update calculation of offset
20575 for eliminating to HARD_FRAME_POINTER_REGNUM.
20576
20577 2014-03-10 Jakub Jelinek <jakub@redhat.com>
20578
20579 PR ipa/60457
20580 * ipa.c (symtab_remove_unreachable_nodes): Don't call
20581 cgraph_get_create_node on VAR_DECLs.
20582
20583 2014-03-10 Richard Biener <rguenther@suse.de>
20584
20585 PR middle-end/60474
20586 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
20587
20588 2014-03-08 Douglas B Rupp <rupp@gnat.com>
20589
20590 * config/vms/vms.opt (vms_float_format): New variable.
20591
20592 2014-03-08 Tobias Burnus <burnus@net-b.de>
20593
20594 * doc/invoke.texi (-fcilkplus): Update implementation status.
20595
20596 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
20597 Richard Biener <rguenther@suse.de>
20598
20599 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
20600 consistently accross all TUs.
20601 (run_gcc): Enable -fshort-double automatically at link at link-time
20602 and disallow override.
20603
20604 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
20605
20606 PR target/58271
20607 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
20608 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
20609 if they can't be used.
20610
20611 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20612
20613 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
20614 for Solaris 11/x86 ld.
20615 * configure: Regenerate.
20616
20617 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20618
20619 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
20620 (LIB_TLS_SPEC): Save as ld_tls_libs.
20621 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
20622 (HAVE_AS_IX86_TLSLDM): New test.
20623 * configure, config.in: Regenerate.
20624 * config/i386/i386.c (legitimize_tls_address): Fall back to
20625 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
20626 cannot support TLS_MODEL_LOCAL_DYNAMIC.
20627 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
20628 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
20629
20630 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
20631
20632 * common.opt (fira-loop-pressure): Mark as optimization.
20633
20634 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
20635
20636 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
20637 an OpenMP mappable type.
20638
20639 2014-03-06 Matthias Klose <doko@ubuntu.com>
20640
20641 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
20642 MULTILIB_OSDIRNAMES is not defined.
20643
20644 2014-03-06 Jakub Jelinek <jakub@redhat.com>
20645 Meador Inge <meadori@codesourcery.com>
20646
20647 PR target/58595
20648 * config/arm/arm.c (arm_tls_symbol_p): Remove.
20649 (arm_legitimize_address): Call legitimize_tls_address for any
20650 arm_tls_referenced_p expression, handle constant addend. Call it
20651 before testing for !TARGET_ARM.
20652 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
20653
20654 2014-03-06 Richard Biener <rguenther@suse.de>
20655
20656 PR middle-end/60445
20657 PR lto/60424
20658 PR lto/60427
20659 Revert
20660 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
20661
20662 * tree-streamer.c (record_common_node): Assert we don't record
20663 nodes with type double.
20664 (preload_common_node): Skip type double, complex double and double
20665 pointer since it is now frontend dependent due to fshort-double option.
20666
20667 2014-03-06 Richard Biener <rguenther@suse.de>
20668
20669 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
20670 or -fno-lto is specified and the linker has full plugin support.
20671 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
20672 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
20673 * lto-wrapper.c (merge_and_complain): Merge compile-time
20674 optimization levels.
20675 (run_gcc): And pass it through to the link options.
20676
20677 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
20678
20679 PR debug/60381
20680 Revert:
20681 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
20682 PR debug/59992
20683 * cselib.c (remove_useless_values): Skip to avoid quadratic
20684 behavior if the condition moved from...
20685 (cselib_process_insn): ... here holds.
20686
20687 2014-03-05 Jakub Jelinek <jakub@redhat.com>
20688
20689 PR plugins/59335
20690 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
20691 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
20692
20693 PR plugins/59335
20694 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
20695 (TM_H): Add x86-tune.def.
20696
20697 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20698
20699 * config/aarch64/aarch64.c (generic_tunings):
20700 Use cortexa57_extra_costs.
20701
20702 2014-03-05 Jakub Jelinek <jakub@redhat.com>
20703
20704 PR lto/60404
20705 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
20706 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
20707 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
20708 cost for in_lto_p.
20709
20710 2014-03-04 Heiher <r@hev.cc>
20711
20712 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
20713 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
20714
20715 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
20716
20717 * config/i386/predicates.md (const2356_operand): Change to ...
20718 (const2367_operand): ... this.
20719 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
20720 const2367_operand.
20721 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
20722 (*avx512pf_scatterpf<mode>sf): Ditto.
20723 (avx512pf_scatterpf<mode>df): Ditto.
20724 (*avx512pf_scatterpf<mode>df_mask): Ditto.
20725 (*avx512pf_scatterpf<mode>df): Ditto.
20726 * config/i386/i386.c (ix86_expand_builtin): Update
20727 incorrect hint operand error message.
20728
20729 2014-03-04 Richard Biener <rguenther@suse.de>
20730
20731 * lto-section-in.c (lto_get_section_data): Fix const cast.
20732
20733 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
20734
20735 * tree-streamer.c (record_common_node): Assert we don't record
20736 nodes with type double.
20737 (preload_common_node): Skip type double, complex double and double
20738 pointer since it is now frontend dependent due to fshort-double option.
20739
20740 2014-03-04 Richard Biener <rguenther@suse.de>
20741
20742 PR lto/60405
20743 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
20744 (lto_input_toplevel_asms): Likewise.
20745 * lto-section-in.c (lto_get_section_data): Instead do it here
20746 for every section.
20747
20748 2014-03-04 Richard Biener <rguenther@suse.de>
20749
20750 PR tree-optimization/60382
20751 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
20752 dead PHIs a reduction.
20753
20754 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
20755
20756 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
20757 hint value.
20758 (_mm_prefetch): Move out of GCC target("sse") pragma.
20759 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
20760 GCC target("prfchw") pragma.
20761 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
20762 for locality <= 2.
20763 * config/i386/i386.c (ix86_option_override_internal): Enable
20764 -mprfchw with -mprefetchwt1.
20765
20766 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
20767
20768 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
20769 Mark as varying.
20770
20771 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
20772
20773 * opts.h (CL_PCH_IGNORE): Define.
20774 * targhooks.c (option_affects_pch_p):
20775 Return false for options that have CL_PCH_IGNORE set.
20776 * opt-functions.awk: Process PchIgnore.
20777 * doc/options.texi: Document PchIgnore.
20778
20779 * config/arc/arc.opt (misize): Add PchIgnore property.
20780
20781 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20782
20783 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
20784 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
20785 constraint on constants to permit them being loaded into
20786 GENERAL_REGS or BASE_REGS.
20787
20788 2014-03-03 Nick Clifton <nickc@redhat.com>
20789
20790 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
20791 anti-cacnonical alternatives.
20792 (negandhi3_real): New pattern.
20793 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
20794
20795 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20796
20797 * config/avr/avr-mcus.def: Remove atxmega16x1.
20798 * config/avr/avr-tables.opt: Regenerate.
20799 * config/avr/t-multilib: Regenerate.
20800 * doc/avr-mmcu.texi: Regenerate.
20801
20802 2014-03-03 Tobias Grosser <tobias@grosser.es>
20803 Mircea Namolaru <mircea.namolaru@inria.fr>
20804
20805 PR tree-optimization/58028
20806 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
20807 scalar dimensions.
20808
20809 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20810
20811 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
20812 not handled by recognizers.
20813
20814 2014-03-03 Jakub Jelinek <jakub@redhat.com>
20815
20816 PR middle-end/60175
20817 * function.c (expand_function_end): Don't emit
20818 clobber_return_register sequence if clobber_after is a BARRIER.
20819 * cfgexpand.c (construct_exit_block): Append instructions before
20820 return_label to prev_bb.
20821
20822 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20823
20824 * config/rs6000/constraints.md: Document reserved use of "wc".
20825
20826 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
20827
20828 PR ipa/60150
20829 * ipa.c (function_and_variable_visibility): When dissolving comdat
20830 group, also set all symbols to local.
20831
20832 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
20833
20834 PR ipa/60306
20835
20836 Revert:
20837 2013-12-14 Jan Hubicka <jh@suse.cz>
20838 PR middle-end/58477
20839 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
20840
20841 2014-03-02 Jon Beniston <jon@beniston.com>
20842
20843 PR bootstrap/48230
20844 PR bootstrap/50927
20845 PR bootstrap/52466
20846 PR target/46898
20847 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
20848 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
20849 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
20850 (simple_return, *simple_return): New patterns
20851 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
20852 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
20853
20854 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
20855
20856 * dwarf2out.c (gen_subprogram_die): Tidy.
20857
20858 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
20859
20860 PR target/60071
20861 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
20862 (*mov_t_msb_neg_negc): ... this new insn.
20863
20864 2014-02-28 Jason Merrill <jason@redhat.com>
20865
20866 PR c++/58678
20867 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
20868 function.
20869
20870 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
20871
20872 PR c++/60314
20873 * dwarf2out.c (decltype_auto_die): New static.
20874 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
20875 (gen_type_die_with_usage): Handle 'decltype(auto)'.
20876 (is_cxx_auto): Likewise.
20877
20878 2014-02-28 Ian Bolton <ian.bolton@arm.com>
20879
20880 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
20881 we are not using general regs only.
20882
20883 2014-02-28 Richard Biener <rguenther@suse.de>
20884
20885 PR target/60280
20886 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
20887 previous fix and only allow to remove trivial pre-headers
20888 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
20889 (remove_forwarder_block): Properly update the latch of a loop.
20890
20891 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
20892
20893 PR debug/59992
20894 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
20895 (cselib_preserved_hash_table): New.
20896 (preserve_constants_and_equivs): Move preserved vals to it.
20897 (cselib_find_slot): Look it up first.
20898 (cselib_init): Initialize it.
20899 (cselib_finish): Release it.
20900 (dump_cselib_table): Dump it.
20901
20902 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
20903
20904 PR debug/59992
20905 * cselib.c (remove_useless_values): Skip to avoid quadratic
20906 behavior if the condition moved from...
20907 (cselib_process_insn): ... here holds.
20908
20909 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
20910
20911 PR debug/57232
20912 * var-tracking.c (vt_initialize): Apply the same condition to
20913 preserve the CFA base value.
20914
20915 2014-02-28 Joey Ye <joey.ye@arm.com>
20916
20917 PR target/PR60169
20918 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
20919 if reload in progress or completed.
20920
20921 2014-02-28 Tobias Burnus <burnus@net-b.de>
20922
20923 PR middle-end/60147
20924 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
20925 NAMELIST_DECL.
20926
20927 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
20928
20929 * doc/tm.texi.in (Condition Code Status): Update documention for
20930 relative locations of cc0-setter and cc0-user.
20931
20932 2014-02-27 Jeff Law <law@redhat.com>
20933
20934 PR rtl-optimization/52714
20935 * combine.c (try_combine): When splitting an unrecognized PARALLEL
20936 into two independent simple sets, if I3 is a jump, ensure the
20937 pattern we place into I3 is a (set (pc) ...).
20938
20939 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
20940 Jeff Law <law@redhat.com>
20941
20942 PR rtl-optimization/49847
20943 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
20944 are in different blocks.
20945 * doc/tm.texi (Condition Code Status): Update documention for
20946 relative locations of cc0-setter and cc0-user.
20947
20948 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
20949
20950 PR target/59222
20951 * lra.c (lra_emit_add): Check SUBREG too.
20952
20953 2014-02-27 Andreas Schwab <schwab@suse.de>
20954
20955 * config/m68k/m68k.c (m68k_option_override): Disable
20956 -flive-range-shrinkage for classic m68k.
20957 (m68k_override_options_after_change): Likewise.
20958
20959 2014-02-27 Marek Polacek <polacek@redhat.com>
20960
20961 PR middle-end/59223
20962 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
20963 -Wmaybe-uninitialized.
20964
20965 2014-02-27 Alan Modra <amodra@gmail.com>
20966
20967 PR target/57936
20968 * reload1.c (emit_input_reload_insns): When reload_override_in,
20969 set old to rl->in_reg when rl->in_reg is a subreg.
20970
20971 2014-02-26 Richard Biener <rguenther@suse.de>
20972
20973 PR bootstrap/60343
20974 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
20975
20976 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
20977
20978 * common/config/i386/predicates.md (const1256_operand): Remove.
20979 (const2356_operand): New.
20980 (const_1_to_2_operand): Remove.
20981 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
20982 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
20983 (*avx512pf_gatherpf<mode>sf): Ditto.
20984 (avx512pf_gatherpf<mode>df): Ditto.
20985 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20986 (*avx512pf_gatherpf<mode>df): Ditto.
20987 (avx512pf_scatterpf<mode>sf): Ditto.
20988 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
20989 (*avx512pf_scatterpf<mode>sf): Ditto.
20990 (avx512pf_scatterpf<mode>df): Ditto.
20991 (*avx512pf_scatterpf<mode>df_mask): Ditto.
20992 (*avx512pf_scatterpf<mode>df): Ditto.
20993 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
20994
20995 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
20996
20997 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
20998 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
20999 (_mm512_mask_testn_epi64_mask): Move to ...
21000 * config/i386/avx512cdintrin.h: Here.
21001 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
21002 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
21003 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
21004 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
21005 TARGET_AVX512F from TARGET_AVX512CD.
21006
21007 2014-02-26 Richard Biener <rguenther@suse.de>
21008
21009 PR ipa/60327
21010 * ipa.c (walk_polymorphic_call_targets): Properly guard
21011 call to inline_update_overall_summary.
21012
21013 2014-02-26 Bin Cheng <bin.cheng@arm.com>
21014
21015 PR target/60280
21016 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
21017 and latches only if requested. Fix latch if it is removed.
21018 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
21019 LOOPS_HAVE_PREHEADERS.
21020
21021 2014-02-25 Andrew Pinski <apinski@cavium.com>
21022
21023 * builtins.c (expand_builtin_thread_pointer): Create a new target
21024 when the target is NULL.
21025
21026 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
21027
21028 PR rtl-optimization/60317
21029 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
21030 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
21031 * lra-assigns.c: Include params.h.
21032 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
21033 other reload pseudos considerations.
21034
21035 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21036
21037 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
21038 to use canonical form for nor<mode>3.
21039
21040 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21041
21042 PR target/55426
21043 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
21044 conversions.
21045
21046 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
21047
21048 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
21049 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
21050 (ix86_handle_option): Handle OPT_mprefetchwt1.
21051 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
21052 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21053 PREFETCHWT1 CPUID.
21054 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21055 OPTION_MASK_ISA_PREFETCHWT1.
21056 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
21057 (PTA_PREFETCHWT1): New.
21058 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
21059 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
21060 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
21061 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
21062 (*prefetch_avx512pf_<mode>_: Change into ...
21063 (*prefetch_prefetchwt1_<mode>: This.
21064 * config/i386/i386.opt (mprefetchwt1): New.
21065 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
21066 (_mm_prefetch): Handle intent to write.
21067 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
21068
21069 2014-02-25 Richard Biener <rguenther@suse.de>
21070
21071 PR middle-end/60291
21072 * emit-rtl.c (mem_attrs_htab): Remove.
21073 (mem_attrs_htab_hash): Likewise.
21074 (mem_attrs_htab_eq): Likewise.
21075 (set_mem_attrs): Always allocate new mem-attrs when something changed.
21076 (init_emit_once): Do not allocate mem_attrs_htab.
21077
21078 2014-02-25 Richard Biener <rguenther@suse.de>
21079
21080 PR lto/60319
21081 * lto-opts.c (lto_write_options): Output non-explicit conservative
21082 -fwrapv, -fno-trapv and -fno-strict-overflow.
21083 * lto-wrapper.c (merge_and_complain): Handle merging those options.
21084 (run_gcc): And pass them through.
21085
21086 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
21087
21088 * sel-sched.c (calculate_new_fences): New parameter ptime.
21089 Calculate it as a maximum over all fence cycles.
21090 (sel_sched_region_2): Adjust the call to calculate_new_fences.
21091 Print the final schedule timing when sched_verbose.
21092
21093 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
21094
21095 PR rtl-optimization/60292
21096 * sel-sched.c (fill_vec_av_set): Do not reset target availability
21097 bit fot the fence instruction.
21098
21099 2014-02-24 Alangi Derick <alangiderick@gmail.com>
21100
21101 * calls.h: Fix typo in comment.
21102
21103 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
21104
21105 * config/pa/pa.c (pa_output_move_double): Don't valididate when
21106 adjusting offsetable addresses.
21107
21108 2014-02-24 Guozhi Wei <carrot@google.com>
21109
21110 * sparseset.h (sparseset_pop): Fix the wrong index.
21111
21112 2014-02-24 Walter Lee <walt@tilera.com>
21113
21114 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
21115 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
21116 triplet.
21117 * common/config/tilegx/tilegx-common.c
21118 (TARGET_DEFAULT_TARGET_FLAGS): Define.
21119 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
21120 (LINK_SPEC): Ditto.
21121 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
21122 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
21123 (tilegx_gimplify_va_arg_expr): Handle big endian.
21124 (tilegx_expand_unaligned_load): Ditto.
21125 (tilegx_expand_unaligned_store): Ditto.
21126 (TARGET_RETURN_IN_MSB): New.
21127 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
21128 (TARGET_ENDIAN_DEFAULT): New.
21129 (TARGET_BIG_ENDIAN): Handle big endian.
21130 (BYTES_BIG_ENDIAN): Ditto.
21131 (WORDS_BIG_ENDIAN): Ditto.
21132 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
21133 (ENDIAN_SPEC): New.
21134 (EXTRA_SPECS): New.
21135 * config/tilegx/tilegx.md (extv): Handle big endian.
21136 (extzv): Ditto.
21137 (insn_st<n>): Ditto.
21138 (insn_st<n>_add<bitsuffix>): Ditto.
21139 (insn_stnt<n>): Ditto.
21140 (insn_stnt<n>_add<bitsuffix>):Ditto.
21141 (vec_interleave_highv8qi): Handle big endian.
21142 (vec_interleave_highv8qi_be): New.
21143 (vec_interleave_highv8qi_le): New.
21144 (insn_v1int_h): Handle big endian.
21145 (vec_interleave_lowv8qi): Handle big endian.
21146 (vec_interleave_lowv8qi_be): New.
21147 (vec_interleave_lowv8qi_le): New.
21148 (insn_v1int_l): Handle big endian.
21149 (vec_interleave_highv4hi): Handle big endian.
21150 (vec_interleave_highv4hi_be): New.
21151 (vec_interleave_highv4hi_le): New.
21152 (insn_v2int_h): Handle big endian.
21153 (vec_interleave_lowv4hi): Handle big endian.
21154 (vec_interleave_lowv4hi_be): New.
21155 (vec_interleave_lowv4hi_le): New.
21156 (insn_v2int_l): Handle big endian.
21157 (vec_interleave_highv2si): Handle big endian.
21158 (vec_interleave_highv2si_be): New.
21159 (vec_interleave_highv2si_le): New.
21160 (insn_v4int_h): Handle big endian.
21161 (vec_interleave_lowv2si): Handle big endian.
21162 (vec_interleave_lowv2si_be): New.
21163 (vec_interleave_lowv2si_le): New.
21164 (insn_v4int_l): Handle big endian.
21165 * config/tilegx/tilegx.opt (mbig-endian): New option.
21166 (mlittle-endian): New option.
21167 * doc/install.texi: Document tilegxbe-linux.
21168 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
21169
21170 2014-02-24 Martin Jambor <mjambor@suse.cz>
21171
21172 PR ipa/60266
21173 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
21174 there are no parameter descriptors.
21175
21176 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
21177
21178 PR rtl-optimization/60268
21179 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
21180 initialization to ...
21181 (sched_rgn_init): ... here.
21182 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
21183
21184 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
21185
21186 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
21187 names.
21188
21189 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
21190
21191 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
21192 definition.
21193
21194 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
21195
21196 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
21197 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
21198
21199 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
21200
21201 * config/microblaze/predicates.md: Add cmp_op predicate.
21202 * config/microblaze/microblaze.md: Add branch_compare instruction
21203 which uses cmp_op predicate and emits cmp insn before branch.
21204 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
21205 to microblaze_expand_conditional_branch and consolidate logic.
21206 (microblaze_expand_conditional_branch): emit branch_compare
21207 insn instead of handling cmp op separate from branch insn.
21208
21209 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21210
21211 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
21212 to permit subregs.
21213
21214 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21215
21216 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
21217 define_insn with define_expand and new define_insn
21218 *altivec_lve<VI_char>x_internal.
21219 (altivec_stve<VI_char>x): Replace define_insn with define_expand
21220 and new define_insn *altivec_stve<VI_char>x_internal.
21221 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
21222 prototype.
21223 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
21224 lve*x built-ins.
21225 (altivec_expand_stvex_be): New function.
21226
21227 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
21228
21229 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
21230 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
21231 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
21232 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
21233
21234 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
21235
21236 PR target/60298
21237 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
21238 instead of emit_move_insn.
21239
21240 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21241
21242 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
21243 vspltw with vsldoi.
21244 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
21245 gen_altivec_vsumsws.
21246
21247 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21248
21249 * config/rs6000/altivec.md (altivec_lvxl): Rename as
21250 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
21251 (altivec_lvxl_<mode>): New define_expand incorporating
21252 -maltivec=be semantics where needed.
21253 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
21254 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
21255 semantics where needed.
21256 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
21257 (altivec_stvx_<mode>): New define_expand incorporating
21258 -maltivec=be semantics where needed.
21259 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
21260 VM2 iterator instead of V4SI.
21261 (altivec_stvxl_<mode>): New define_expand incorporating
21262 -maltivec=be semantics where needed.
21263 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
21264 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
21265 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
21266 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
21267 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
21268 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
21269 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
21270 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
21271 ALTIVEC_BUILTIN_STVXL.
21272 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
21273 (altivec_expand_stvx_be): Likewise.
21274 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
21275 (altivec_expand_lvx_be): Likewise.
21276 (altivec_expand_stvx_be): Likewise.
21277 (altivec_expand_builtin): Add cases for
21278 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
21279 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
21280 (altivec_init_builtins): Add definitions for
21281 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
21282 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
21283
21284 2014-02-21 Catherine Moore <clm@codesourcery.com>
21285
21286 * doc/invoke.texi (mvirt, mno-virt): Document.
21287 * config/mips/mips.opt (mvirt): New option.
21288 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
21289
21290 2014-02-21 Richard Biener <rguenther@suse.de>
21291
21292 PR tree-optimization/60276
21293 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
21294 (STMT_VINFO_MIN_NEG_DIST): New macro.
21295 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
21296 STMT_VINFO_MIN_NEG_DIST.
21297 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
21298 made for negative dependence distances still hold.
21299
21300 2014-02-21 Richard Biener <rguenther@suse.de>
21301
21302 PR middle-end/60291
21303 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
21304 DECL_INITIAL for globals not in the current function context.
21305
21306 2014-02-21 Jakub Jelinek <jakub@redhat.com>
21307
21308 PR tree-optimization/56490
21309 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
21310 * tree-ssa-uninit.c: Include params.h.
21311 (compute_control_dep_chain): Add num_calls argument, return false
21312 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
21313 num_calls to recursive call.
21314 (find_predicates): Change dep_chain into normal array,
21315 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
21316 variable and adjust compute_control_dep_chain caller.
21317 (find_def_preds): Likewise.
21318
21319 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
21320
21321 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
21322 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
21323
21324 2014-02-21 Nick Clifton <nickc@redhat.com>
21325
21326 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
21327 (pushhi1): Likewise.
21328 (popqi1): Add mode to pre_dec.
21329 (pophi1): Likewise.
21330
21331 2014-02-21 Jakub Jelinek <jakub@redhat.com>
21332
21333 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
21334 mode for mask of V8SFmode permutation.
21335
21336 2014-02-20 Richard Henderson <rth@redhat.com>
21337
21338 PR c++/60272
21339 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
21340 a new pseudo for OLDVAL.
21341
21342 2014-02-20 Jakub Jelinek <jakub@redhat.com>
21343
21344 PR target/57896
21345 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
21346 gen_reg_rtx if d->testing_p.
21347 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
21348 if d->testing_p and we will certainly return true.
21349 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
21350 if d->testing_p.
21351
21352 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
21353
21354 * emit-rtl.c (gen_reg_rtx): Assert that
21355 crtl->emit.regno_pointer_align_length is non-zero.
21356
21357 2014-02-20 Richard Henderson <rth@redhat.com>
21358
21359 PR c++/60272
21360 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
21361 on failure the store back into EXPECT.
21362
21363 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
21364 Sandra Loosemore <sandra@codesourcery.com>
21365
21366 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
21367 * config/nios2/nios2.c (nios2_function_profiler): Add
21368 -fPIC (flag_pic == 2) support.
21369 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
21370 (nios2_large_offset_p): New function.
21371 (nios2_unspec_reloc_p): Move up position, update to use
21372 nios2_large_offset_p.
21373 (nios2_unspec_address): Remove function.
21374 (nios2_unspec_offset): New function.
21375 (nios2_large_got_address): New function.
21376 (nios2_got_address): Add large offset support.
21377 (nios2_legitimize_tls_address): Update usage of removed and new
21378 functions.
21379 (nios2_symbol_binds_local_p): New function.
21380 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
21381 (nios2_legitimize_address): Update to use nios2_large_offset_p.
21382 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
21383 (nios2_print_operand): Merge H/L processing, add hiadj/lo
21384 processing for (const (unspec ...)).
21385 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
21386
21387 2014-02-20 Richard Biener <rguenther@suse.de>
21388
21389 * tree-cfg.c (replace_uses_by): Mark altered BBs before
21390 doing the substitution.
21391 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
21392
21393 2014-02-20 Martin Jambor <mjambor@suse.cz>
21394
21395 PR ipa/55260
21396 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
21397 info when checking whether lattices are bottom.
21398
21399 2014-02-20 Richard Biener <rguenther@suse.de>
21400
21401 PR middle-end/60221
21402 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
21403 regions at -O0.
21404
21405 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
21406
21407 PR ipa/58555
21408 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
21409 parameter specifying the scaling.
21410 (inline_call): Update.
21411 (want_inline_recursively): Guard division by zero.
21412 (recursive_inlining): Update.
21413 * ipa-inline.h (clone_inlined_nodes): Update.
21414
21415 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
21416
21417 PR target/60204
21418 * config/i386/i386.c (classify_argument): Pass structures of size
21419 64 bytes or less in register.
21420
21421 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
21422 Kirill Yukhin <kirill.yukhin@intel.com>
21423
21424 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
21425 (_mm_rcp28_round_ss): Ditto.
21426 (_mm_rsqrt28_round_sd): Ditto.
21427 (_mm_rsqrt28_round_ss): Ditto.
21428 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
21429 (_mm_rcp14_round_ss): Ditto.
21430 (_mm_rsqrt14_round_sd): Ditto.
21431 (_mm_rsqrt14_round_ss): Ditto.
21432 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
21433 the first input operand, get rid of match_dup.
21434 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
21435 attribute to sse.
21436 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21437 Ditto.
21438 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
21439 operand as the first input operand, set type attribute.
21440 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21441 Set type attribute.
21442 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
21443 operand as the first input operand, set type attribute.
21444
21445 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21446
21447 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
21448 bit of zero.
21449
21450 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
21451
21452 PR target/60207
21453 * config/i386/i386.c (construct_container): Remove TFmode check
21454 for X86_64_INTEGER_CLASS.
21455
21456 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
21457
21458 PR target/59794
21459 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
21460 only when -Wpsabi is enabled.
21461
21462 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
21463
21464 PR target/59799
21465 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
21466 passing arrays in registers are the same as for structs, so remove the
21467 special case for them.
21468
21469 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
21470
21471 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
21472 destination type, extract only the valid bits if the source type is not
21473 integral and has a different mode.
21474
21475 2014-02-19 Richard Biener <rguenther@suse.de>
21476
21477 PR ipa/60243
21478 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
21479 for all calls.
21480
21481 2014-02-19 Richard Biener <rguenther@suse.de>
21482
21483 PR ipa/60243
21484 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
21485 (ipa_modify_call_arguments): Emit an argument load explicitely and
21486 preserve virtual SSA form there and for the replacement call.
21487 Do not update SSA form nor free dominance info.
21488
21489 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
21490
21491 * ipa.c (function_and_variable_visibility): Also clear WEAK
21492 flag when disolving COMDAT_GROUP.
21493
21494 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
21495
21496 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
21497 * ipa-prop.c (ipa_set_jf_known_type): Return early when
21498 not devirtualizing.
21499 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
21500 do more sanity checks.
21501 (detect_type_change): Return true when giving up early.
21502 (compute_complex_assign_jump_func): Fix type parameter of
21503 ipa_set_ancestor_jf.
21504 (compute_complex_ancestor_jump_func): Likewise.
21505 (update_jump_functions_after_inlining): Fix updating of
21506 ancestor function.
21507 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
21508
21509 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
21510
21511 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
21512 inline clones when edge disappears.
21513
21514 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
21515
21516 PR target/60203
21517 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
21518 Split 64-bit moves into 2 patterns. Do not allow the use of
21519 direct move for TDmode in little endian, since the decimal value
21520 has little endian bytes within a word, but the 64-bit pieces are
21521 ordered in a big endian fashion, and normal subreg's of TDmode are
21522 not allowed.
21523 (mov<mode>_64bit_dm): Likewise.
21524 (movtd_64bit_nodm): Likewise.
21525
21526 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
21527
21528 PR tree-optimization/60174
21529 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
21530 statement of an SSA_NAME that occurs in an abnormal PHI node.
21531
21532 2014-02-18 Jakub Jelinek <jakub@redhat.com>
21533
21534 PR sanitizer/60142
21535 * final.c (SEEN_BB): Remove.
21536 (SEEN_NOTE, SEEN_EMITTED): Renumber.
21537 (final_scan_insn): Don't force_source_line on second
21538 NOTE_INSN_BASIC_BLOCK.
21539
21540 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
21541
21542 PR target/60205
21543 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
21544 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
21545 (type_natural_mode): Warn ABI change when %zmm register is not
21546 available for AVX512F vector value passing.
21547
21548 2014-02-18 Kai Tietz <ktietz@redhat.com>
21549
21550 PR target/60193
21551 * config/i386/i386.c (ix86_expand_prologue): Use value in
21552 rax register as displacement when restoring %r10 or %rax.
21553 Fix wrong offset when restoring both registers.
21554
21555 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
21556
21557 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
21558 assertion with conditional return.
21559
21560 2014-02-18 Jakub Jelinek <jakub@redhat.com>
21561 Uros Bizjak <ubizjak@gmail.com>
21562
21563 PR driver/60233
21564 * config/i386/driver-i386.c (host_detect_local_cpu): If
21565 YMM state is not saved by the OS, also clear has_f16c. Move
21566 CPUID 0x80000001 handling before YMM state saving checking.
21567
21568 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
21569
21570 PR rtl-optimization/58960
21571 * haifa-sched.c (alloc_global_sched_pressure_data): New,
21572 factored out from ...
21573 (sched_init): ... here.
21574 (free_global_sched_pressure_data): New, factored out from ...
21575 (sched_finish): ... here.
21576 * sched-int.h (free_global_sched_pressure_data): Declare.
21577 * sched-rgn.c (nr_regions_initial): New static global.
21578 (haifa_find_rgns): Initialize it.
21579 (schedule_region): Disable sched-pressure for the newly
21580 generated regions.
21581
21582 2014-02-17 Richard Biener <rguenther@suse.de>
21583
21584 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
21585 release SSA defs of pattern stmts.
21586
21587 2014-02-17 Richard Biener <rguenther@suse.de>
21588
21589 * tree-inline.c (expand_call_inline): Release the virtual
21590 operand defined by the call we are about to inline.
21591
21592 2014-02-17 Richard Biener <rguenther@suse.de>
21593
21594 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
21595
21596 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
21597 Ilya Tocar <ilya.tocar@intel.com>
21598
21599 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
21600 arguments order in builtin.
21601 (_mm512_permutexvar_epi64): Ditto.
21602 (_mm512_mask_permutexvar_epi64): Ditto
21603 (_mm512_maskz_permutexvar_epi32): Ditto
21604 (_mm512_permutexvar_epi32): Ditto
21605 (_mm512_mask_permutexvar_epi32): Ditto
21606
21607 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21608
21609 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
21610 (p8_vmrgow): Likewise.
21611
21612 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21613
21614 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
21615 endian targets.
21616
21617 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
21618
21619 PR target/60203
21620 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
21621 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
21622 into 64-bit and 32-bit moves. On 64-bit moves, add support for
21623 using direct move instructions on ISA 2.07. Also adjust
21624 instruction length for 64-bit.
21625 (mov<mode>_64bit, TFmode/TDmode): Likewise.
21626 (mov<mode>_32bit, TFmode/TDmode): Likewise.
21627
21628 2014-02-15 Alan Modra <amodra@gmail.com>
21629
21630 PR target/58675
21631 PR target/57935
21632 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
21633 find_replacement on parts of insn rtl that might be reloaded.
21634
21635 2014-02-15 Richard Biener <rguenther@suse.de>
21636
21637 PR tree-optimization/60183
21638 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
21639 (tree_ssa_phiprop): Calculate and free post-dominators.
21640
21641 2014-02-14 Jeff Law <law@redhat.com>
21642
21643 PR rtl-optimization/60131
21644 * ree.c (get_extended_src_reg): New function.
21645 (combine_reaching_defs): Use it rather than assuming location of REG.
21646 (find_and_remove_re): Verify first operand of extension is
21647 a REG before adding the insns to the copy list.
21648
21649 2014-02-14 Roland McGrath <mcgrathr@google.com>
21650
21651 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
21652 * configure: Regenerated.
21653 * config.in: Regenerated.
21654 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
21655 instead of ASM_SHORT.
21656
21657 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
21658 Richard Earnshaw <rearnsha@arm.com>
21659
21660 PR rtl-optimization/59535
21661 * lra-constraints.c (process_alt_operands): Encourage alternative
21662 when unassigned pseudo class is superset of the alternative class.
21663 (inherit_reload_reg): Don't inherit when optimizing for code size.
21664 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
21665 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
21666 modes not less than 4 for Thumb1.
21667
21668 2014-02-14 Kyle McMartin <kyle@redhat.com>
21669
21670 PR pch/60010
21671 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
21672
21673 2014-02-14 Richard Biener <rguenther@suse.de>
21674
21675 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
21676 (get_frame_arg): Drop the assert with langhook types_compatible_p.
21677 Do not strip INDIRECT_REFs.
21678
21679 2014-02-14 Richard Biener <rguenther@suse.de>
21680
21681 PR lto/60179
21682 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
21683 DECL_FUNCTION_SPECIFIC_TARGET.
21684 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
21685 * tree-streamer-out.c (pack_ts_target_option): Remove.
21686 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
21687 (write_ts_function_decl_tree_pointers): Do not stream
21688 DECL_FUNCTION_SPECIFIC_TARGET.
21689 * tree-streamer-in.c (unpack_ts_target_option): Remove.
21690 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
21691 (lto_input_ts_function_decl_tree_pointers): Do not stream
21692 DECL_FUNCTION_SPECIFIC_TARGET.
21693
21694 2014-02-14 Jakub Jelinek <jakub@redhat.com>
21695
21696 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
21697 (get_initial_def_for_induction, vectorizable_induction): Ignore
21698 debug stmts when looking for exit_phi.
21699 (vectorizable_live_operation): Fix up condition.
21700
21701 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
21702
21703 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
21704 nreverse() because it changes the content of original tree list.
21705
21706 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
21707
21708 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
21709 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
21710
21711 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
21712
21713 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
21714 GNU coding standards.
21715
21716 2014-02-13 Jakub Jelinek <jakub@redhat.com>
21717
21718 PR debug/60152
21719 * dwarf2out.c (gen_subprogram_die): Don't call
21720 add_calling_convention_attribute if subr_die is old_die.
21721
21722 2014-02-13 Sharad Singhai <singhai@google.com>
21723
21724 * doc/optinfo.texi: Fix order of nodes.
21725
21726 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
21727
21728 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
21729 operands[2], not operands[3].
21730
21731 2014-02-13 Richard Biener <rguenther@suse.de>
21732
21733 PR bootstrap/59878
21734 * doc/install.texi (ISL): Update recommended version to 0.12.2,
21735 mention the possibility of an in-tree build.
21736 (CLooG): Update recommended version to 0.18.1, mention the
21737 possibility of an in-tree build and clarify that the ISL
21738 bundled with CLooG does not work.
21739
21740 2014-02-13 Jakub Jelinek <jakub@redhat.com>
21741
21742 PR target/43546
21743 * expr.c (compress_float_constant): If x is a hard register,
21744 extend into a pseudo and then move to x.
21745
21746 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
21747
21748 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
21749 caused by bad second argument to warning_at() with -mhotpatch and
21750 nested functions (e.g. with gfortran).
21751
21752 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
21753
21754 * opts.c (option_name): Remove "enabled by default" rider.
21755
21756 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
21757
21758 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
21759
21760 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
21761 Uros Bizjak <ubizjak@gmail.com>
21762
21763 PR target/60151
21764 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
21765 * configure: Regenerated.
21766
21767 2014-02-12 Richard Biener <rguenther@suse.de>
21768
21769 * vec.c (vec_prefix::calculate_allocation): Move as
21770 inline variant to vec.h.
21771 (vec_prefix::calculate_allocation_1): New out-of-line version.
21772 * vec.h (vec_prefix::calculate_allocation_1): Declare.
21773 (vec_prefix::m_has_auto_buf): Rename to ...
21774 (vec_prefix::m_using_auto_storage): ... this.
21775 (vec_prefix::calculate_allocation): Inline the easy cases
21776 and dispatch to calculate_allocation_1 which doesn't need the
21777 prefix address.
21778 (va_heap::reserve): Use gcc_checking_assert.
21779 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
21780 m_using_auto_storage.
21781 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
21782 member and adjust.
21783 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
21784 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
21785 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
21786
21787 2014-02-12 Richard Biener <rguenther@suse.de>
21788
21789 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
21790 when we found a dependence.
21791
21792 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
21793
21794 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
21795 common code...
21796 (maybe_fold_stmt): ... into this new function.
21797 * omp-low.c (lower_omp): Update comment.
21798
21799 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
21800 last use.
21801
21802 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
21803 dereference.
21804
21805 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
21806
21807 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
21808 identifiers in comments.
21809 (cortexa53_extra_costs): Likewise.
21810 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
21811 (cortexa7_extra_costs): Likewise.
21812 (cortexa12_extra_costs): Likewise.
21813 (cortexa15_extra_costs): Likewise.
21814 (v7m_extra_costs): Likewise.
21815
21816 2014-02-12 Richard Biener <rguenther@suse.de>
21817
21818 PR middle-end/60092
21819 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
21820 of posix_memalign being successful.
21821 (lower_stmt): Restrict lowering of posix_memalign to when
21822 -ftree-bit-ccp is enabled.
21823
21824 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21825
21826 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
21827 arg_loc.
21828 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
21829
21830 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
21831
21832 PR rtl-optimization/60116
21833 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
21834 other_insn once the combination has been validated.
21835
21836 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
21837
21838 PR lto/59468
21839 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
21840 and wrapper.
21841 * ipa-devirt.c: Include demangle.h
21842 (odr_violation_reported): New static variable.
21843 (add_type_duplicate): Update odr_violations.
21844 (maybe_record_node): Add completep parameter; update it.
21845 (record_target_from_binfo): Add COMPLETEP parameter;
21846 update it as needed.
21847 (possible_polymorphic_call_targets_1): Likewise.
21848 (struct polymorphic_call_target_d): Add nonconstruction_targets;
21849 rename FINAL to COMPLETE.
21850 (record_targets_from_bases): Sanity check we found the binfo;
21851 fix COMPLETEP updating.
21852 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
21853 parameter, fix computing of COMPLETEP.
21854 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
21855 at LTO time do demangling.
21856 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
21857 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
21858 parameter.
21859 (gimple_get_virt_method_for_binfo): Likewise.
21860 * gimple-fold.h (gimple_get_virt_method_for_binfo,
21861 gimple_get_virt_method_for_vtable): Update prototypes.
21862
21863 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
21864
21865 PR target/49008
21866 * genautomata.c (add_presence_absence): Fix typo with
21867 {final_}presence_list.
21868
21869 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21870
21871 PR target/60137
21872 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
21873 for VSX/Altivec vectors that land in GPR registers.
21874
21875 2014-02-11 Richard Henderson <rth@redhat.com>
21876 Jakub Jelinek <jakub@redhat.com>
21877
21878 PR debug/59776
21879 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
21880 around drhs if type conversion to lacc->type is not useless.
21881
21882 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21883
21884 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
21885 tuning struct.
21886 (cortex-a57.cortex-a53): Likewise.
21887 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
21888
21889 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21890
21891 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
21892 arm_restrict_it.
21893
21894 2014-02-11 Renlin Li <Renlin.Li@arm.com>
21895
21896 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
21897 add_options_for_arm_vfp3.
21898
21899 2014-02-11 Jeff Law <law@redhat.com>
21900
21901 PR middle-end/54041
21902 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
21903 object with an undesirable mode.
21904
21905 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21906
21907 PR libgomp/60107
21908 * config/i386/sol2-9.h: New file.
21909 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
21910 *-*-solaris2.9*): Use it.
21911
21912 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
21913
21914 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
21915 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
21916
21917 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
21918
21919 * config/microblaze/microblaze.c: Extend mcpu version format
21920
21921 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
21922
21923 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
21924
21925 2014-02-10 Richard Henderson <rth@redhat.com>
21926
21927 PR target/59927
21928 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
21929 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
21930 ms-abi vs -mno-accumulate-outgoing-args.
21931 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
21932 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
21933 respect to ms-abi.
21934
21935 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
21936
21937 PR middle-end/60080
21938 * cfgexpand.c (expand_asm_operands): Attach source location to
21939 ASM_INPUT rtx objects.
21940 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
21941
21942 2014-02-10 Nick Clifton <nickc@redhat.com>
21943
21944 * config/mn10300/mn10300.c (popcount): New function.
21945 (mn10300_expand_prologue): Include saved registers in stack usage
21946 count.
21947
21948 2014-02-10 Jeff Law <law@redhat.com>
21949
21950 PR middle-end/52306
21951 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
21952 when changing the SET_DEST of a prior insn to avoid an input reload.
21953
21954 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21955
21956 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
21957 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
21958 -mcall-openbsd, or -mcall-linux.
21959 (CC1_ENDIAN_BIG_SPEC): Remove.
21960 (CC1_ENDIAN_LITTLE_SPEC): Remove.
21961 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
21962 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
21963 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
21964 and %cc1_endian_default.
21965 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
21966
21967 2014-02-10 Richard Biener <rguenther@suse.de>
21968
21969 PR tree-optimization/60115
21970 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
21971 MEM_REF handling. Properly verify that the accesses are not
21972 out of the objects bound.
21973
21974 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21975
21976 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
21977 coretex to cortex.
21978
21979 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
21980
21981 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
21982 proper constants and fix formatting.
21983 (possible_polymorphic_call_targets): Fix formatting.
21984
21985 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
21986 Ilya Tocar <ilya.tocar@intel.com>
21987
21988 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
21989 (_mm512_loadu_epi32): Renamed into...
21990 (_mm512_loadu_si512): This.
21991 (_mm512_storeu_epi32): Renamed into...
21992 (_mm512_storeu_si512): This.
21993 (_mm512_maskz_ceil_ps): Removed.
21994 (_mm512_maskz_ceil_pd): Ditto.
21995 (_mm512_maskz_floor_ps): Ditto.
21996 (_mm512_maskz_floor_pd): Ditto.
21997 (_mm512_floor_round_ps): Ditto.
21998 (_mm512_floor_round_pd): Ditto.
21999 (_mm512_ceil_round_ps): Ditto.
22000 (_mm512_ceil_round_pd): Ditto.
22001 (_mm512_mask_floor_round_ps): Ditto.
22002 (_mm512_mask_floor_round_pd): Ditto.
22003 (_mm512_mask_ceil_round_ps): Ditto.
22004 (_mm512_mask_ceil_round_pd): Ditto.
22005 (_mm512_maskz_floor_round_ps): Ditto.
22006 (_mm512_maskz_floor_round_pd): Ditto.
22007 (_mm512_maskz_ceil_round_ps): Ditto.
22008 (_mm512_maskz_ceil_round_pd): Ditto.
22009 (_mm512_expand_pd): Ditto.
22010 (_mm512_expand_ps): Ditto.
22011 * config/i386/i386.c (ix86_builtins): Remove
22012 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
22013 (bdesc_args): Ditto.
22014 * config/i386/predicates.md (const1256_operand): New.
22015 (const_1_to_2_operand): Ditto.
22016 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22017 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22018 (*avx512pf_gatherpf<mode>sf): Ditto.
22019 (avx512pf_gatherpf<mode>df): Ditto.
22020 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22021 (*avx512pf_gatherpf<mode>df): Ditto.
22022 (avx512pf_scatterpf<mode>sf): Ditto.
22023 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22024 (*avx512pf_scatterpf<mode>sf): Ditto.
22025 (avx512pf_scatterpf<mode>df): Ditto.
22026 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22027 (*avx512pf_scatterpf<mode>df): Ditto.
22028 (avx512f_expand<mode>): Removed.
22029 (<shift_insn><mode>3<mask_name>): Change predicate type.
22030
22031 2014-02-08 Jakub Jelinek <jakub@redhat.com>
22032
22033 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
22034 not at the end of datarefs vector use ordered_remove to avoid
22035 reordering datarefs vector.
22036
22037 PR c/59984
22038 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
22039 mark local addressable non-static vars as GOVD_PRIVATE
22040 instead of GOVD_LOCAL.
22041 * omp-low.c (lower_omp_for): Move gimple_bind_vars
22042 and BLOCK_VARS of gimple_bind_block to new_stmt rather
22043 than copying them.
22044
22045 PR middle-end/60092
22046 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
22047 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
22048 assume_aligned or alloc_align attributes.
22049 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
22050 arguments. Handle also assume_aligned and alloc_align attributes.
22051 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
22052 calls to functions with assume_aligned or alloc_align attributes.
22053 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
22054
22055 2014-02-08 Terry Guo <terry.guo@arm.com>
22056
22057 * doc/invoke.texi: Document ARM -march=armv7e-m.
22058
22059 2014-02-08 Jakub Jelinek <jakub@redhat.com>
22060
22061 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
22062 flag on __cilkrts_rethrow builtin.
22063
22064 PR ipa/60026
22065 * ipa-cp.c (determine_versionability): Fail at -O0
22066 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
22067 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
22068
22069 Revert:
22070 2014-02-04 Jakub Jelinek <jakub@redhat.com>
22071
22072 PR ipa/60026
22073 * tree-inline.c (copy_forbidden): Fail for
22074 __attribute__((optimize (0))) functions.
22075
22076 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
22077
22078 * varpool.c: Include pointer-set.h.
22079 (varpool_remove_unreferenced_decls): Variables in other partitions
22080 will not be output; be however careful to not lose information
22081 about partitioning.
22082
22083 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
22084
22085 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
22086 lookup in the vtable constructor.
22087
22088 2014-02-07 Jeff Law <law@redhat.com>
22089
22090 PR target/40977
22091 * config/m68k/m68k.md (ashldi_extsi): Turn into a
22092 define_insn_and_split.
22093
22094 * ipa-inline.c (inline_small_functions): Fix typos.
22095
22096 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22097
22098 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
22099 (s390_can_use_return_insn): Declare.
22100 * config/s390/s390.h (EPILOGUE_USES): Define.
22101 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
22102 instructions.
22103 (s390_chunkify_start): Handle return JUMP_LABELs.
22104 (s390_early_mach): Emit a main_pool instruction on the entry edge.
22105 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
22106 (s390_can_use_return_insn): New functions.
22107 (s390_fix_long_loop_prediction): Handle conditional returns.
22108 (TARGET_SET_UP_BY_PROLOGUE): Define.
22109 * config/s390/s390.md (ANY_RETURN): New code iterator.
22110 (*creturn, *csimple_return, return, simple_return): New patterns.
22111
22112 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22113
22114 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
22115 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
22116 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
22117 REG_CFA_RESTORE list when deciding not to restore a register.
22118
22119 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22120
22121 * config/s390/s390.c: Include tree-pass.h and context.h.
22122 (s390_early_mach): New function, split out from...
22123 (s390_emit_prologue): ...here.
22124 (pass_data_s390_early_mach): New pass structure.
22125 (pass_s390_early_mach): New class.
22126 (s390_option_override): Create and register early_mach pass.
22127 Move to end of file.
22128
22129 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22130
22131 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
22132 to match for the exit block.
22133
22134 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22135
22136 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
22137 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
22138 Reject misaligned operands.
22139
22140 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22141
22142 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
22143
22144 2014-02-07 Richard Biener <rguenther@suse.de>
22145
22146 PR middle-end/60092
22147 * gimple-low.c (lower_builtin_posix_memalign): New function.
22148 (lower_stmt): Call it to lower posix_memalign in a way
22149 to make alignment info accessible.
22150
22151 2014-02-07 Jakub Jelinek <jakub@redhat.com>
22152
22153 PR c++/60082
22154 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
22155 __builtin_setjmp_receiver.
22156
22157 2014-02-07 Richard Biener <rguenther@suse.de>
22158
22159 PR middle-end/60092
22160 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
22161 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
22162 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22163 Handle BUILT_IN_POSIX_MEMALIGN.
22164 (find_func_clobbers): Likewise.
22165 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
22166 (call_may_clobber_ref_p_1): Likewise.
22167
22168 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22169
22170 PR ipa/59918
22171 * ipa-devirt.c (record_target_from_binfo): Remove overactive
22172 sanity check.
22173
22174 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22175
22176 PR ipa/59469
22177 * lto-cgraph.c (lto_output_node): Use
22178 symtab_get_symbol_partitioning_class.
22179 (lto_output_varpool_node): likewise.
22180 (symtab_get_symbol_partitioning_class): Move here from
22181 lto/lto-partition.c
22182 * cgraph.h (symbol_partitioning_class): Likewise.
22183 (symtab_get_symbol_partitioning_class): Declare.
22184
22185 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22186
22187 * ggc.h (ggc_internal_cleared_alloc): New macro.
22188 * vec.h (vec_safe_copy): Handle memory stats.
22189 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
22190 * target-globals.c (save_target_globals): Likewise.
22191
22192 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
22193
22194 PR target/60077
22195 * expr.c (emit_move_resolve_push): Export; be bit more selective
22196 on when to clear alias set.
22197 * expr.h (emit_move_resolve_push): Declare.
22198 * function.h (struct function): Add tail_call_marked.
22199 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
22200 * config/i386/i386-protos.h (ix86_expand_push): Remove.
22201 * config/i386/i386.md (TImode move expander): De not call
22202 ix86_expand_push.
22203 (FP push expanders): Preserve memory attributes.
22204 * config/i386/sse.md (push<mode>1): Remove.
22205 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
22206 (ix86_expand_push): Remove.
22207 * config/i386/mmx.md (push<mode>1): Remove.
22208
22209 2014-02-06 Jakub Jelinek <jakub@redhat.com>
22210
22211 PR rtl-optimization/60030
22212 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
22213 lopart with paradoxical subreg before shifting it up by hprec.
22214
22215 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22216
22217 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
22218 Remove extra newline at end of file.
22219 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
22220 (arm_issue_rate): Handle cortexa57.
22221 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
22222 (cortex-a57.cortex-a53): Likewise.
22223
22224 2014-02-06 Jakub Jelinek <jakub@redhat.com>
22225
22226 PR target/59575
22227 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
22228 don't record in REG_FRAME_RELATED_EXPR registers not set in that
22229 bitmask.
22230 (arm_expand_prologue): Adjust all callers.
22231 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
22232 info, registers also at the lowest numbered registers side. Use
22233 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
22234 XEXP.
22235
22236 PR debug/59992
22237 * var-tracking.c (adjust_mems): Before adding a SET to
22238 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
22239
22240 2014-02-06 Alan Modra <amodra@gmail.com>
22241
22242 PR target/60032
22243 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
22244 change SDmode to DDmode when lra_in_progress.
22245
22246 2014-02-06 Jakub Jelinek <jakub@redhat.com>
22247
22248 PR middle-end/59150
22249 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
22250 free_data_ref on the dr first, and before goto again also set dr
22251 to the next dr. For simd_lane_access, free old datarefs[i] before
22252 overwriting it. For get_vectype_for_scalar_type failure, don't
22253 free_data_ref if simd_lane_access.
22254
22255 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
22256
22257 PR target/60062
22258 * tree.h (opts_for_fn): New inline function.
22259 (opt_for_fn): Define.
22260 * config/i386/i386.c (ix86_function_regparm): Use
22261 opt_for_fn (decl, optimize) instead of optimize.
22262
22263 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
22264
22265 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
22266 for SYMBOL_REF in large memory model.
22267
22268 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22269
22270 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
22271 and crypto support.
22272 (cortex-a57): Likewise.
22273 (cortex-a57.cortex-a53): Likewise.
22274
22275 2014-02-06 Yury Gribov <y.gribov@samsung.com>
22276 Kugan Vivekanandarajah <kuganv@linaro.org>
22277
22278 * config/arm/arm.c (arm_vector_alignment_reachable): Check
22279 unaligned_access.
22280 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
22281
22282 2014-02-06 Richard Biener <rguenther@suse.de>
22283
22284 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
22285 set_loop_copy and initialize_original_copy_tables.
22286
22287 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
22288
22289 * config/aarch64/aarch64-simd.md
22290 (aarch64_ashr_simddi): Change QI to SI.
22291
22292 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
22293 Jakub Jelinek <jakub@redhat.com>
22294
22295 PR middle-end/60013
22296 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
22297 of the dataflow.
22298
22299 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22300
22301 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
22302 CODE_FOR_altivec_vpku[hw]um to
22303 CODE_FOR_altivec_vpku[hw]um_direct.
22304 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
22305 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
22306 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
22307 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
22308
22309 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22310
22311 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
22312 generation for -maltivec=be.
22313 (altivec_vsumsws): Simplify redundant test.
22314
22315 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22316
22317 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
22318 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
22319 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
22320 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
22321 gen_altivec_vpkuwum.
22322 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
22323 BYTES_BIG_ENDIAN.
22324 (altivec_vpks<VI_char>ss): Likewise.
22325 (altivec_vpks<VI_char>us): Likewise.
22326 (altivec_vpku<VI_char>us): Likewise.
22327 (altivec_vpku<VI_char>um): Likewise.
22328 (altivec_vpku<VI_char>um_direct): New (copy of
22329 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
22330 internal use).
22331 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
22332 target is little endian and -maltivec=be is not specified.
22333 (*altivec_vupkhs<VU_char>_direct): New (copy of
22334 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
22335 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
22336 target is little endian and -maltivec=be is not specified.
22337 (*altivec_vupkls<VU_char>_direct): New (copy of
22338 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
22339 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
22340 little endian and -maltivec=be is not specified.
22341 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
22342 little endian and -maltivec=be is not specified.
22343
22344 2014-02-05 Richard Henderson <rth@redhat.com>
22345
22346 PR debug/52727
22347 * combine-stack-adj.c: Revert r206943.
22348 * sched-int.h (struct deps_desc): Add last_args_size.
22349 * sched-deps.c (init_deps): Initialize it.
22350 (sched_analyze_insn): Add OUTPUT dependencies between insns that
22351 contain REG_ARGS_SIZE notes.
22352
22353 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
22354
22355 * lto-cgraph.c (asm_nodes_output): Make global.
22356 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
22357 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
22358 (driver_handle_option): Handle OPT_fwpa.
22359
22360 2014-02-05 Jakub Jelinek <jakub@redhat.com>
22361
22362 PR ipa/59947
22363 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
22364 a comment typo and formatting issue. If odr_hash hasn't been
22365 created, return vNULL and set *completep to false.
22366
22367 PR middle-end/57499
22368 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
22369 bb with no successors.
22370
22371 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
22372
22373 PR target/59718
22374 * doc/invoke.texi (-march): Clarify documentation for ARM.
22375 (-mtune): Likewise.
22376 (-mcpu): Likewise.
22377
22378 2014-02-05 Richard Biener <rguenther@suse.de>
22379
22380 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
22381 when not vectorizing because of too many alias checks.
22382 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22383 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
22384
22385 2014-02-05 Nick Clifton <nickc@redhat.com>
22386
22387 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
22388 accept extended registers in any mode when compiling for the MN10300.
22389
22390 2014-02-05 Yury Gribov <y.gribov@samsung.com>
22391
22392 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
22393 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
22394 sanitization attributes.
22395 (can_inline_edge_p): Likewise.
22396 (sanitize_attrs_match_for_inline_p): New function.
22397
22398 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
22399
22400 * ipa-prop.c (detect_type_change): Shor circuit testing of
22401 type changes on THIS pointer.
22402
22403 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
22404
22405 PR target/59777
22406 * config/pa/pa.c (legitimize_tls_address): Return original address
22407 if not passed a SYMBOL_REF rtx.
22408 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
22409 addresses.
22410 (pa_emit_move_sequence): Simplify TLS source operands.
22411 (pa_legitimate_constant_p): Reject all TLS constants.
22412 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
22413 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
22414
22415 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
22416
22417 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
22418 groups when we know they are controlled by LTO.
22419 * varasm.c (default_binds_local_p_1): If object is in other partition,
22420 it will be resolved locally.
22421
22422 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
22423
22424 * config/host-linux.c (linux_gt_pch_use_address): Don't
22425 use SSIZE_MAX because it is not always defined.
22426
22427 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
22428
22429 PR bootstrap/59913
22430 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
22431 threshold for pseudo splitting.
22432 (update_ebb_live_info): Process call argument hard registers and
22433 hard registers from insn definition too.
22434 (max_small_class_regs_num): New constant.
22435 (inherit_in_ebb): Update live hard regs through EBBs. Update
22436 reloads_num only for small register classes. Don't split for
22437 outputs of jumps.
22438
22439 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
22440
22441 PR ipa/60058
22442 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
22443 is non-null.
22444
22445 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
22446
22447 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
22448 visibility is safe.
22449
22450 2014-02-04 Marek Polacek <polacek@redhat.com>
22451
22452 * gdbinit.in (pel): Define.
22453
22454 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
22455
22456 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
22457 behavior.
22458
22459 2014-02-04 Richard Biener <rguenther@suse.de>
22460
22461 PR lto/59723
22462 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
22463 in function context local.
22464 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
22465 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
22466 similar to LTO_imported_decl_ref.
22467
22468 2014-02-04 Jakub Jelinek <jakub@redhat.com>
22469
22470 PR tree-optimization/60002
22471 * cgraphclones.c (build_function_decl_skip_args): Clear
22472 DECL_LANG_SPECIFIC.
22473
22474 PR tree-optimization/60023
22475 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
22476 false to gsi_replace.
22477 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
22478 has been in some EH region and vec_stmt could throw, add
22479 vec_stmt into the same EH region.
22480 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
22481 has no lhs, ignore it.
22482 * internal-fn.c (expand_MASK_LOAD): Likewise.
22483
22484 PR ipa/60026
22485 * tree-inline.c (copy_forbidden): Fail for
22486 __attribute__((optimize (0))) functions.
22487
22488 PR other/58712
22489 * omp-low.c (simd_clone_struct_copy): If from->inbranch
22490 is set, copy one less argument.
22491 (expand_simd_clones): Don't subtract clone_info->inbranch
22492 from simd_clone_struct_alloc argument.
22493
22494 PR rtl-optimization/57915
22495 * recog.c (simplify_while_replacing): If all unary/binary/relational
22496 operation arguments are constant, attempt to simplify those.
22497
22498 PR middle-end/59261
22499 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
22500 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
22501
22502 2014-02-04 Richard Biener <rguenther@suse.de>
22503
22504 PR tree-optimization/60012
22505 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
22506 TBAA disambiguation to all DDRs.
22507
22508 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22509
22510 PR target/59788
22511 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
22512 (LINK_SPEC): Use it for -shared, -shared-libgcc.
22513
22514 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
22515
22516 PR ipa/59882
22517 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
22518
22519 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
22520
22521 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
22522 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
22523
22524 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
22525
22526 PR ipa/59831
22527 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
22528 to figure out targets of polymorphic calls with known decl.
22529 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
22530 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
22531 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
22532 (get_polymorphic_call_info): ... here.
22533 (get_polymorphic_call_info_from_invariant): New function.
22534
22535 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
22536
22537 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
22538 lookup via vtable pointer; check for type consistency
22539 and turn inconsitent facts into UNREACHABLE.
22540 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
22541 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
22542 type inconsistent querries; return UNREACHABLE instead.
22543
22544 2014-02-03 Richard Henderson <rth@twiddle.net>
22545
22546 PR tree-opt/59924
22547 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
22548 already processed this node.
22549 (normalize_one_pred_1): Pass along mark_set.
22550 (normalize_one_pred): Create and destroy a pointer_set_t.
22551 (normalize_one_pred_chain): Likewise.
22552
22553 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
22554
22555 PR gcov-profile/58602
22556 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
22557
22558 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
22559
22560 PR ipa/59831
22561 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
22562 -fno-devirtualize; try to devirtualize by the knowledge of
22563 virtual table pointer given by aggregate propagation.
22564 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
22565 (ipa_print_node_jump_functions): Dump also offset that
22566 is relevant for polymorphic calls.
22567 (determine_known_aggregate_parts): Add arg_type parameter; use it
22568 instead of determining the type from pointer type.
22569 (ipa_compute_jump_functions_for_edge): Update call of
22570 determine_known_aggregate_parts.
22571 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
22572 (gimple_get_virt_method_for_binfo): ... here; simplify using
22573 vtable_pointer_value_to_vtable.
22574 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
22575 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
22576 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
22577 (vtable_pointer_value_to_vtable): Break out from ...; handle also
22578 POINTER_PLUS_EXPR.
22579 (vtable_pointer_value_to_binfo): ... here.
22580 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
22581
22582 2014-02-03 Teresa Johnson <tejohnson@google.com>
22583
22584 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
22585 redef of outer loop index variable.
22586
22587 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
22588
22589 PR c++/53017
22590 PR c++/59211
22591 * doc/extend.texi (Function Attributes): Typo.
22592
22593 2014-02-03 Cong Hou <congh@google.com>
22594
22595 PR tree-optimization/60000
22596 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
22597 if the vectorized statement is a store. A store statement can only
22598 appear at the end of pattern statements.
22599
22600 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
22601
22602 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
22603 (ix86_option_override_internal): Default long double to 64-bit for
22604 32-bit Bionic and to 128-bit for 64-bit Bionic.
22605
22606 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
22607 TARGET_LONG_DOUBLE_128 is true.
22608 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
22609
22610 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
22611 (mlong-double-64): Negate -mlong-double-128.
22612 (mlong-double-128): New option.
22613
22614 * config/i386/i386-c.c (ix86_target_macros): Define
22615 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
22616
22617 * doc/invoke.texi: Document -mlong-double-128.
22618
22619 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
22620
22621 PR rtl-optimization/60024
22622 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
22623
22624 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
22625
22626 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
22627
22628 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
22629
22630 PR rtl-optimization/57662
22631 * sel-sched.c (code_motion_path_driver): Do not mark already not
22632 existing blocks in the visiting bitmap.
22633
22634 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
22635
22636 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
22637 on the insn being emitted.
22638
22639 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
22640 Will Deacon <will.deacon@arm.com>
22641
22642 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
22643
22644 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22645
22646 * config/arm/arm-tables.opt: Regenerate.
22647
22648 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22649
22650 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
22651 for vector types other than V16QImode.
22652 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
22653 define_expand, and call altivec_expand_vec_perm_le when producing
22654 code with little endian element order.
22655 (*altivec_vperm_<mode>_internal): New insn having previous
22656 behavior of altivec_vperm_<mode>.
22657 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
22658 altivec_expand_vec_perm_le when producing code with little endian
22659 element order.
22660 (*altivec_vperm_<mode>_uns_internal): New insn having previous
22661 behavior of altivec_vperm_<mode>_uns.
22662
22663 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22664
22665 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
22666 (altivec_vsumsws): Add handling for -maltivec=be with a little
22667 endian target.
22668 (altivec_vsumsws_direct): New.
22669 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
22670 gen_altivec_vsumsws.
22671
22672 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
22673
22674 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
22675 vtable_pointer_value_to_binfo): New functions.
22676 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
22677 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
22678
22679 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
22680
22681 * config/nios2/nios2.md (load_got_register): Initialize GOT
22682 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
22683 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
22684
22685 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
22686
22687 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
22688 preserverd by passthrough, do not propagate the type.
22689
22690 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
22691
22692 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
22693 (mips_atomic_assign_expand_fenv): New function.
22694 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
22695
22696 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
22697
22698 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
22699 (__builtin_mips_set_fcsr): Likewise.
22700 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
22701 MIPS_USI_FTYPE_VOID.
22702 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
22703 (mips16_expand_set_fcsr): Likewise.
22704 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
22705 (mips16_set_fcsr_stub): Likewise.
22706 (mips16_get_fcsr_one_only_stub): New class.
22707 (mips16_set_fcsr_one_only_stub): Likewise.
22708 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
22709 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
22710 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
22711 (hard_float): New availability predicate.
22712 (mips_builtins): Add get_fcsr and set_fcsr.
22713 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
22714 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
22715 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
22716 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
22717 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
22718 patterns.
22719
22720 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
22721
22722 * config/mips/mips.c (mips_one_only_stub): New class.
22723 (mips_need_mips16_rdhwr_p): Replace with...
22724 (mips16_rdhwr_stub): ...this new variable.
22725 (mips16_stub_call_address): New function.
22726 (mips16_rdhwr_one_only_stub): New class.
22727 (mips_expand_thread_pointer): Use mips16_stub_call_address.
22728 (mips_output_mips16_rdhwr): Delete.
22729 (mips_finish_stub): New function.
22730 (mips_code_end): Use it to handle rdhwr stubs.
22731
22732 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
22733
22734 PR target/60017
22735 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
22736 when calculating size of integer atomic types.
22737
22738 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
22739
22740 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
22741
22742 2014-02-01 Jakub Jelinek <jakub@redhat.com>
22743
22744 PR tree-optimization/60003
22745 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
22746 * profile.c (branch_prob): Use gimple_call_builtin_p
22747 to check for BUILT_IN_SETJMP_RECEIVER.
22748 * tree-inline.c (copy_bb): Call notice_special_calls.
22749
22750 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
22751
22752 PR bootstrap/59985
22753 * lra-constraints.c (process_alt_operands): Update reload_sum only
22754 on the first pass.
22755
22756 2014-01-31 Richard Henderson <rth@redhat.com>
22757
22758 PR middle-end/60004
22759 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
22760 until after else_eh is processed.
22761
22762 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
22763
22764 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
22765 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
22766 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
22767 in smmintrin.h, remove them.
22768 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
22769 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
22770 * config/i386/i386.md (ROUND_SAE): Fix value.
22771 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
22772 (const48_operand): New.
22773 * config/i386/subst.md (round), (round_expand): Use
22774 const_4_or_8_to_11_operand.
22775 (round_saeonly), (round_saeonly_expand): Use const48_operand.
22776
22777 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
22778
22779 * config/i386/constraints.md (Yk): Swap meaning with k.
22780 * config/i386/i386.md (movhi_internal): Change Yk to k.
22781 (movqi_internal): Ditto.
22782 (*k<logic><mode>): Ditto.
22783 (*andhi_1): Ditto.
22784 (*andqi_1): Ditto.
22785 (kandn<mode>): Ditto.
22786 (*<code>hi_1): Ditto.
22787 (*<code>qi_1): Ditto.
22788 (kxnor<mode>): Ditto.
22789 (kortestzhi): Ditto.
22790 (kortestchi): Ditto.
22791 (kunpckhi): Ditto.
22792 (*one_cmplhi2_1): Ditto.
22793 (*one_cmplqi2_1): Ditto.
22794 * config/i386/sse.md (): Change k to Yk.
22795 (avx512f_load<mode>_mask): Ditto.
22796 (avx512f_blendm<mode>): Ditto.
22797 (avx512f_store<mode>_mask): Ditto.
22798 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
22799 (avx512f_storedqu<mode>_mask): Ditto.
22800 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
22801 Ditto.
22802 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
22803 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
22804 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
22805 (avx512f_maskcmp<mode>3): Ditto.
22806 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
22807 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
22808 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
22809 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
22810 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
22811 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
22812 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
22813 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
22814 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
22815 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
22816 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
22817 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
22818 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
22819 (vec_extract_lo_<mode>_maskm): Ditto.
22820 (vec_extract_hi_<mode>_maskm): Ditto.
22821 (avx512f_vternlog<mode>_mask): Ditto.
22822 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
22823 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
22824 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
22825 (avx512f_<code>v8div16qi2_mask): Ditto.
22826 (avx512f_<code>v8div16qi2_mask_store): Ditto.
22827 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
22828 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
22829 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
22830 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
22831 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22832 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22833 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22834 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22835 (avx512cd_maskb_vec_dupv8di): Ditto.
22836 (avx512cd_maskw_vec_dupv16si): Ditto.
22837 (avx512f_vpermi2var<mode>3_maskz): Ditto.
22838 (avx512f_vpermi2var<mode>3_mask): Ditto.
22839 (avx512f_vpermi2var<mode>3_mask): Ditto.
22840 (avx512f_vpermt2var<mode>3_maskz): Ditto.
22841 (*avx512f_gathersi<mode>): Ditto.
22842 (*avx512f_gathersi<mode>_2): Ditto.
22843 (*avx512f_gatherdi<mode>): Ditto.
22844 (*avx512f_gatherdi<mode>_2): Ditto.
22845 (*avx512f_scattersi<mode>): Ditto.
22846 (*avx512f_scatterdi<mode>): Ditto.
22847 (avx512f_compress<mode>_mask): Ditto.
22848 (avx512f_compressstore<mode>_mask): Ditto.
22849 (avx512f_expand<mode>_mask): Ditto.
22850 * config/i386/subst.md (mask): Change k to Yk.
22851 (mask_scalar_merge): Ditto.
22852 (sd): Ditto.
22853
22854 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
22855
22856 * doc/extend.texi (Vector Extensions): Document ?: in C++.
22857
22858 2014-01-31 Richard Biener <rguenther@suse.de>
22859
22860 PR middle-end/59990
22861 * builtins.c (fold_builtin_memory_op): Make sure to not
22862 use a floating-point mode or a boolean or enumeral type for
22863 the copy operation.
22864
22865 2014-01-30 DJ Delorie <dj@redhat.com>
22866
22867 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
22868 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
22869 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
22870 whenever main() has an epilogue.
22871
22872 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22873
22874 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
22875 unused variable "field".
22876 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
22877 (vsx_mergeh_<mode>): Likewise.
22878 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
22879 (altivec_vmrghh): Likewise.
22880 (altivec_vmrghw): Likewise.
22881 (altivec_vmrglb): Likewise.
22882 (altivec_vmrglh): Likewise.
22883 (altivec_vmrglw): Likewise.
22884 (altivec_vspltb): Add missing uses.
22885 (altivec_vsplth): Likewise.
22886 (altivec_vspltw): Likewise.
22887 (altivec_vspltsf): Likewise.
22888
22889 2014-01-30 Jakub Jelinek <jakub@redhat.com>
22890
22891 PR target/59923
22892 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
22893 frame related instructions.
22894
22895 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
22896
22897 PR rtl-optimization/59959
22898 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
22899 any reload of register whose subreg is invalid.
22900
22901 2014-01-30 Jakub Jelinek <jakub@redhat.com>
22902
22903 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
22904 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
22905 Add missing return type - void.
22906
22907 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22908
22909 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
22910 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
22911 remove element index adjustment for endian (now handled in vsx.md
22912 and altivec.md).
22913 (altivec_expand_vec_perm_const): Use
22914 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
22915 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
22916 (vsx_xxspltw_<mode>): Adjust element index for little endian.
22917 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
22918 define_expand and a new define_insn *altivec_vspltb_internal;
22919 adjust for -maltivec=be on a little endian target.
22920 (altivec_vspltb_direct): New.
22921 (altivec_vsplth): Divide into a define_expand and a new
22922 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
22923 little endian target.
22924 (altivec_vsplth_direct): New.
22925 (altivec_vspltw): Divide into a define_expand and a new
22926 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
22927 little endian target.
22928 (altivec_vspltw_direct): New.
22929 (altivec_vspltsf): Divide into a define_expand and a new
22930 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
22931 a little endian target.
22932
22933 2014-01-30 Richard Biener <rguenther@suse.de>
22934
22935 PR tree-optimization/59993
22936 * tree-ssa-forwprop.c (associate_pointerplus): Check we
22937 can propagate form the earlier stmt and avoid the transform
22938 when the intermediate result is needed.
22939
22940 2014-01-30 Alangi Derick <alangiderick@gmail.com>
22941
22942 * README.Portability: Fix typo.
22943
22944 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
22945
22946 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
22947 comparison_operator with ordered_comparison_operator.
22948
22949 2014-01-30 Nick Clifton <nickc@redhat.com>
22950
22951 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
22952 Rename to mn10300_store_multiple_regs.
22953 * config/mn10300/mn10300.c: Likewise.
22954 * config/mn10300/mn10300.md (store_movm): Fix typo: call
22955 store_multiple_regs.
22956 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
22957 Call mn10300_store_multiple_regs.
22958
22959 2014-01-30 Nick Clifton <nickc@redhat.com>
22960 DJ Delorie <dj@redhat.com>
22961
22962 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
22963 %fp 2 to keep registers after it properly word-aligned.
22964 (rl78_alloc_physical_registers_umul): Handle the case where both
22965 input operands are the same.
22966
22967 2014-01-30 Richard Biener <rguenther@suse.de>
22968
22969 PR tree-optimization/59903
22970 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
22971 check properly.
22972
22973 2014-01-30 Jason Merrill <jason@redhat.com>
22974
22975 PR c++/59633
22976 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
22977
22978 PR c++/59645
22979 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
22980
22981 2014-01-30 Richard Biener <rguenther@suse.de>
22982
22983 PR tree-optimization/59951
22984 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
22985
22986 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
22987
22988 PR target/59784
22989 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
22990 SFmode to DFmode case.
22991
22992 2014-01-29 DJ Delorie <dj@redhat.com>
22993
22994 * config/msp430/msp430.opt (-minrt): New.
22995 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
22996 if -minrt given.
22997 (ENDFILE_SPEC): Likewise.
22998
22999 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
23000
23001 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
23002 (estimate_function_body_sizes): Use it.
23003
23004 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
23005
23006 PR c++/58561
23007 * dwarf2out.c (is_cxx_auto): New.
23008 (is_base_type): Use it.
23009 (gen_type_die_with_usage): Likewise.
23010
23011 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23012
23013 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
23014 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
23015 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
23016 -maltivec=be with LE targets.
23017 (vsx_mergeh_<mode>): Likewise.
23018 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
23019 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
23020 (altivec_vmrghb): Replace with define_expand and new
23021 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
23022 (altivec_vmrghb_direct): New define_insn.
23023 (altivec_vmrghh): Replace with define_expand and new
23024 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
23025 (altivec_vmrghh_direct): New define_insn.
23026 (altivec_vmrghw): Replace with define_expand and new
23027 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
23028 (altivec_vmrghw_direct): New define_insn.
23029 (*altivec_vmrghsf): Adjust for endianness.
23030 (altivec_vmrglb): Replace with define_expand and new
23031 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
23032 (altivec_vmrglb_direct): New define_insn.
23033 (altivec_vmrglh): Replace with define_expand and new
23034 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
23035 (altivec_vmrglh_direct): New define_insn.
23036 (altivec_vmrglw): Replace with define_expand and new
23037 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
23038 (altivec_vmrglw_direct): New define_insn.
23039 (*altivec_vmrglsf): Adjust for endianness.
23040 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
23041 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
23042 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
23043 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
23044 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
23045 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
23046 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
23047 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
23048
23049 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
23050
23051 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
23052 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
23053 whitespace.
23054
23055 2014-01-29 Richard Biener <rguenther@suse.de>
23056
23057 PR tree-optimization/58742
23058 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
23059 associate_pointerplus_align.
23060 (associate_pointerplus_diff): New function.
23061 (associate_pointerplus): Likewise. Call associate_pointerplus_align
23062 and associate_pointerplus_diff.
23063
23064 2014-01-29 Richard Biener <rguenther@suse.de>
23065
23066 * lto-streamer.h (LTO_major_version): Bump to 3.
23067 (LTO_minor_version): Reset to 0.
23068
23069 2014-01-29 Renlin Li <Renlin.Li@arm.com>
23070
23071 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
23072 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
23073 (arm_file_start): Generate correct asm header for armv7ve.
23074 * config/arm/bpabi.h: Add multilib support for armv7ve.
23075 * config/arm/driver-arm.c: Change the architectures of cortex-a7
23076 and cortex-a15 to armv7ve.
23077 * config/arm/t-aprofile: Add multilib support for armv7ve.
23078 * doc/invoke.texi: Document -march=armv7ve.
23079
23080 2014-01-29 Richard Biener <rguenther@suse.de>
23081
23082 PR tree-optimization/58742
23083 * tree-ssa-forwprop.c (associate_plusminus): Return true
23084 if we changed sth, defer EH cleanup to ...
23085 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
23086 (simplify_mult): New function.
23087
23088 2014-01-29 Jakub Jelinek <jakub@redhat.com>
23089
23090 PR middle-end/59917
23091 PR tree-optimization/59920
23092 * tree.c (build_common_builtin_nodes): Remove
23093 __builtin_setjmp_dispatcher initialization.
23094 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
23095 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
23096 instead of gsi_after_labels + manually skipping debug stmts.
23097 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
23098 ignore bbs with IFN_ABNORMAL_DISPATCHER.
23099 * tree-inline.c (copy_edges_for_bb): Remove
23100 can_make_abnormal_goto argument, instead add abnormal_goto_dest
23101 argument. Ignore computed_goto_p stmts. Don't call
23102 make_abnormal_goto_edges. If a call might need abnormal edges
23103 for non-local gotos, see if it already has an edge to
23104 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
23105 with true argument, don't do anything then, otherwise add
23106 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
23107 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
23108 caller.
23109 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
23110 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
23111 (lower_stmt): Don't set data->calls_builtin_setjmp.
23112 (lower_builtin_setjmp): Adjust comment.
23113 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
23114 * tree-cfg.c (found_computed_goto): Remove.
23115 (factor_computed_gotos): Remove.
23116 (make_goto_expr_edges): Return bool, true for computed gotos.
23117 Don't call make_abnormal_goto_edges.
23118 (build_gimple_cfg): Don't set found_computed_goto, don't call
23119 factor_computed_gotos.
23120 (computed_goto_p): No longer static.
23121 (make_blocks): Don't set found_computed_goto.
23122 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
23123 (make_edges): If make_goto_expr_edges returns true, push bb
23124 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
23125 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
23126 vector. Record mapping between bbs and OpenMP regions if there
23127 are any, adjust make_gimple_omp_edges caller. Call
23128 handle_abnormal_edges.
23129 (make_abnormal_goto_edges): Remove.
23130 * tree-cfg.h (make_abnormal_goto_edges): Remove.
23131 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
23132 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
23133 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
23134 * internal-fn.def (ABNORMAL_DISPATCHER): New.
23135 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
23136 filling *region also set *region_idx to (*region)->entry->index.
23137
23138 PR other/58712
23139 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
23140 For REGs set ORIGINAL_REGNO.
23141
23142 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
23143
23144 * doc/md.texi: Mention that a target shouldn't implement
23145 vec_widen_(s|u)mul_even/odd pair if it is less efficient
23146 than hi/lo pair.
23147
23148 2014-01-29 Jakub Jelinek <jakub@redhat.com>
23149
23150 PR tree-optimization/59594
23151 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
23152 a copy of the datarefs vector rather than the vector itself.
23153
23154 2014-01-28 Jason Merrill <jason@redhat.com>
23155
23156 PR c++/53756
23157 * dwarf2out.c (auto_die): New static.
23158 (gen_type_die_with_usage): Handle C++1y 'auto'.
23159 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
23160 on definition.
23161
23162 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
23163
23164 PR target/59672
23165 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
23166 (SPEC_X32): Likewise.
23167 (SPEC_64): Likewise.
23168 * config/i386/i386.c (ix86_option_override_internal): Turn off
23169 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
23170 for TARGET_16BIT.
23171 (x86_file_start): Output .code16gcc for TARGET_16BIT.
23172 * config/i386/i386.h (TARGET_16BIT): New macro.
23173 (TARGET_16BIT_P): Likewise.
23174 * config/i386/i386.opt: Add m16.
23175 * doc/invoke.texi: Document -m16.
23176
23177 2014-01-28 Jakub Jelinek <jakub@redhat.com>
23178
23179 PR preprocessor/59935
23180 * input.c (location_get_source_line): Bail out on when line number
23181 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
23182
23183 2014-01-28 Richard Biener <rguenther@suse.de>
23184
23185 PR tree-optimization/58742
23186 * tree-ssa-forwprop.c (associate_plusminus): Handle
23187 pointer subtraction of the form (T)(P + A) - (T)P.
23188
23189 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23190
23191 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
23192 at const_int_cost.
23193
23194 2014-01-28 Richard Biener <rguenther@suse.de>
23195
23196 Revert
23197 2014-01-28 Richard Biener <rguenther@suse.de>
23198
23199 PR rtl-optimization/45364
23200 PR rtl-optimization/59890
23201 * var-tracking.c (local_get_addr_clear_given_value): Handle
23202 already cleared slot.
23203 (val_reset): Handle not allocated local_get_addr_cache.
23204 (vt_find_locations): Use post-order on the inverted CFG.
23205
23206 2014-01-28 Richard Biener <rguenther@suse.de>
23207
23208 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
23209
23210 2014-01-28 Richard Biener <rguenther@suse.de>
23211
23212 PR rtl-optimization/45364
23213 PR rtl-optimization/59890
23214 * var-tracking.c (local_get_addr_clear_given_value): Handle
23215 already cleared slot.
23216 (val_reset): Handle not allocated local_get_addr_cache.
23217 (vt_find_locations): Use post-order on the inverted CFG.
23218
23219 2014-01-28 Alan Modra <amodra@gmail.com>
23220
23221 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
23222 * configure.ac <recursive call for build != host>: Define
23223 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
23224 and LD_FOR_BUILD too.
23225 * configure: Regenerate.
23226
23227 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
23228
23229 * config/i386/i386.c (get_builtin_code_for_version): Separate
23230 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
23231 Broadwell from Haswell.
23232
23233 2014-01-27 Steve Ellcey <sellcey@mips.com>
23234
23235 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
23236 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
23237 * config/mips/mips.c (mips_option_override): Change setting
23238 of TARGET_DSP.
23239 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
23240 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
23241 Change from Mask to Var.
23242
23243 2014-01-27 Jeff Law <law@redhat.com>
23244
23245 * ipa-inline.c (inline_small_functions): Fix typo.
23246
23247 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
23248
23249 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
23250 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
23251 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
23252 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
23253 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
23254 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
23255 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
23256 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
23257 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
23258 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
23259 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
23260 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
23261 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
23262 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
23263 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
23264 (_mm512_storeu_epi64): Ditto.
23265 (_mm512_cmpge_epi32_mask): Ditto.
23266 (_mm512_cmpge_epu32_mask): Ditto.
23267 (_mm512_cmpge_epi64_mask): Ditto.
23268 (_mm512_cmpge_epu64_mask): Ditto.
23269 (_mm512_cmple_epi32_mask): Ditto.
23270 (_mm512_cmple_epu32_mask): Ditto.
23271 (_mm512_cmple_epi64_mask): Ditto.
23272 (_mm512_cmple_epu64_mask): Ditto.
23273 (_mm512_cmplt_epi32_mask): Ditto.
23274 (_mm512_cmplt_epu32_mask): Ditto.
23275 (_mm512_cmplt_epi64_mask): Ditto.
23276 (_mm512_cmplt_epu64_mask): Ditto.
23277 (_mm512_cmpneq_epi32_mask): Ditto.
23278 (_mm512_cmpneq_epu32_mask): Ditto.
23279 (_mm512_cmpneq_epi64_mask): Ditto.
23280 (_mm512_cmpneq_epu64_mask): Ditto.
23281 (_mm512_expand_pd): Ditto.
23282 (_mm512_expand_ps): Ditto.
23283 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
23284 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
23285 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
23286 * config/i386/i386.c (ix86_builtins): Add
23287 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
23288 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
23289 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
23290 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
23291 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
23292 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
23293 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
23294 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
23295 IX86_BUILTIN_PMOVUSQW512_MEM.
23296 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
23297 __builtin_ia32_pmovsqd512mem_mask,
23298 __builtin_ia32_pmovqd512mem_mask,
23299 __builtin_ia32_pmovusqw512mem_mask,
23300 __builtin_ia32_pmovsqw512mem_mask,
23301 __builtin_ia32_pmovqw512mem_mask,
23302 __builtin_ia32_pmovusdw512mem_mask,
23303 __builtin_ia32_pmovsdw512mem_mask,
23304 __builtin_ia32_pmovdw512mem_mask,
23305 __builtin_ia32_pmovqb512mem_mask,
23306 __builtin_ia32_pmovusqb512mem_mask,
23307 __builtin_ia32_pmovsqb512mem_mask,
23308 __builtin_ia32_pmovusdb512mem_mask,
23309 __builtin_ia32_pmovsdb512mem_mask,
23310 __builtin_ia32_pmovdb512mem_mask.
23311 (bdesc_args): Add __builtin_ia32_expanddf512,
23312 __builtin_ia32_expandsf512.
23313 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
23314 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
23315 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
23316 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
23317 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
23318 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
23319 (avx512f_<code>v8div16qi2_mask_store): This.
23320 (avx512f_expand<mode>): New.
23321
23322 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
23323
23324 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
23325 New.
23326 (_mm512_mask_prefetch_i64gather_pd): Ditto.
23327 (_mm512_prefetch_i32scatter_pd): Ditto.
23328 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
23329 (_mm512_prefetch_i64scatter_pd): Ditto.
23330 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
23331 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
23332 (_mm512_mask_prefetch_i64gather_ps): Ditto.
23333 (_mm512_prefetch_i32scatter_ps): Ditto.
23334 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
23335 (_mm512_prefetch_i64scatter_ps): Ditto.
23336 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
23337 * config/i386/i386-builtin-types.def: Define
23338 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
23339 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
23340 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
23341 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
23342 IX86_BUILTIN_SCATTERPFQPD.
23343 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
23344 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
23345 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
23346 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
23347 __builtin_ia32_scatterpfqps.
23348 (ix86_expand_builtin): Expand new built-ins.
23349 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
23350 fix memory access data type.
23351 (*avx512pf_gatherpf<mode>_mask): Ditto.
23352 (*avx512pf_gatherpf<mode>): Ditto.
23353 (avx512pf_scatterpf<mode>): Ditto.
23354 (*avx512pf_scatterpf<mode>_mask): Ditto.
23355 (*avx512pf_scatterpf<mode>): Ditto.
23356 (GATHER_SCATTER_SF_MEM_MODE): New.
23357 (avx512pf_gatherpf<mode>df): Ditto.
23358 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23359 (*avx512pf_scatterpf<mode>df): Ditto.
23360
23361 2014-01-27 Jakub Jelinek <jakub@redhat.com>
23362
23363 PR bootstrap/59934
23364 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
23365 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
23366 reached.
23367
23368 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
23369
23370 * common/config/arm/arm-common.c
23371 (arm_rewrite_mcpu): Handle multiple names.
23372 * config/arm/arm.h
23373 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
23374
23375 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
23376
23377 * gimple-builder.h (create_gimple_tmp): Delete.
23378
23379 2014-01-27 Christian Bruel <christian.bruel@st.com>
23380
23381 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
23382 words comparisons.
23383
23384 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
23385
23386 * config/pa/pa.md (call): Generate indirect long calls to non-local
23387 functions when outputing 32-bit code.
23388 (call_value): Likewise except for special call to buggy powf function.
23389
23390 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
23391 portable runtime and PIC indirect calls.
23392 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
23393 and PIC call sequences. Use ldo instead of blr to set return register
23394 in PIC call sequence.
23395
23396 2014-01-25 Walter Lee <walt@tilera.com>
23397
23398 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
23399 avoid clobbering a live register.
23400
23401 2014-01-25 Walter Lee <walt@tilera.com>
23402
23403 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
23404 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
23405 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
23406 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
23407
23408 2014-01-25 Walter Lee <walt@tilera.com>
23409
23410 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
23411 arguments on even registers.
23412 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
23413 STACK_BOUNDARY.
23414 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
23415 (BIGGEST_ALIGNMENT): Ditto.
23416 (BIGGEST_FIELD_ALIGNMENT): Ditto.
23417
23418 2014-01-25 Walter Lee <walt@tilera.com>
23419
23420 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
23421 insns before bundling.
23422 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
23423
23424 2014-01-25 Walter Lee <walt@tilera.com>
23425
23426 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
23427 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
23428 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
23429
23430 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
23431
23432 * config/mips/constraints.md (kl): Delete.
23433 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
23434 define expands, using...
23435 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
23436 instructions for MIPS16.
23437 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
23438 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
23439
23440 2014-01-25 Walter Lee <walt@tilera.com>
23441
23442 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
23443 (clzdi2): Ditto.
23444 (ffsdi2): Ditto.
23445
23446 2014-01-25 Walter Lee <walt@tilera.com>
23447
23448 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
23449 (TARGET_EXPAND_TO_RTL_HOOK): Define.
23450
23451 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
23452
23453 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
23454 Handle XOR.
23455
23456 2014-01-25 Jakub Jelinek <jakub@redhat.com>
23457
23458 * print-rtl.c (in_call_function_usage): New var.
23459 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
23460 EXPR_LIST mode as mode and not as reg note name.
23461
23462 PR middle-end/59561
23463 * cfgloopmanip.c (copy_loop_info): If
23464 loop->warned_aggressive_loop_optimizations, make sure
23465 the flag is set in target loop too.
23466
23467 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
23468
23469 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
23470 flag_cilkplus.
23471 * builtins.def: Likewise.
23472 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
23473 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
23474 * ira.c (ira_setup_eliminable_regset): Likewise.
23475 * omp-low.c (gate_expand_omp): Likewise.
23476 (execute_lower_omp): Likewise.
23477 (diagnose_sb_0): Likewise.
23478 (gate_diagnose_omp_blocks): Likewise.
23479 (simd_clone_clauses_extract): Likewise.
23480 (gate): Likewise.
23481
23482 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23483
23484 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
23485 correction for little endian...
23486 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
23487 here.
23488
23489 2014-01-24 Jeff Law <law@redhat.com>
23490
23491 PR tree-optimization/59919
23492 * tree-vrp.c (find_assert_locations_1): Do not register asserts
23493 for non-returning calls.
23494
23495 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
23496
23497 * common/config/aarch64/aarch64-common.c
23498 (aarch64_rewrite_mcpu): Handle multiple names.
23499 * config/aarch64/aarch64.h
23500 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
23501
23502 2014-01-24 Dodji Seketeli <dodji@redhat.com>
23503
23504 * input.c (add_file_to_cache_tab): Handle the case where fopen
23505 returns NULL.
23506
23507 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
23508
23509 PR target/59929
23510 * config/i386/i386.md (pushsf splitter): Get stack adjustment
23511 from push operand if code of push isn't PRE_DEC.
23512
23513 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23514
23515 PR target/59909
23516 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
23517 -mquad-memory-atomic. Update -mquad-memory documentation to say
23518 it is only used for non-atomic loads/stores.
23519
23520 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
23521 -mquad-memory or -mquad-memory-atomic switches.
23522
23523 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
23524 -mquad-memory-atomic to ISA 2.07 support.
23525
23526 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
23527 to separate support of normal quad word memory operations (ldq, stq)
23528 from the atomic quad word memory operations.
23529
23530 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
23531 support to separate non-atomic quad word operations from atomic
23532 quad word operations. Disable non-atomic quad word operations in
23533 little endian mode so that we don't have to swap words after the
23534 load and before the store.
23535 (quad_load_store_p): Add comment about atomic quad word support.
23536 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
23537 options printed with -mdebug=reg.
23538
23539 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
23540 -mquad-memory-atomic as the test for whether we have quad word
23541 atomic instructions.
23542 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
23543 or -mp8-vector are used, allow byte/half-word atomic operations.
23544
23545 * config/rs6000/sync.md (load_lockedti): Insure that the address
23546 is a proper indexed or indirect address for the lqarx instruction.
23547 On little endian systems, swap the hi/lo registers after the lqarx
23548 instruction.
23549 (load_lockedpti): Use indexed_or_indirect_operand predicate to
23550 insure the address is valid for the lqarx instruction.
23551 (store_conditionalti): Insure that the address is a proper indexed
23552 or indirect address for the stqcrx. instruction. On little endian
23553 systems, swap the hi/lo registers before doing the stqcrx.
23554 instruction.
23555 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
23556 insure the address is valid for the stqcrx. instruction.
23557
23558 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
23559 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
23560 type of quad memory support is available.
23561
23562 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
23563
23564 PR regression/59915
23565 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
23566 there is a danger of looping.
23567
23568 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
23569
23570 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23571 force flag_ira_loop_pressure if set via command line.
23572
23573 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
23574
23575 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
23576 (ashr_simd): New builtin handling DI mode.
23577 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
23578 (aarch64_sshr_simddi): New match pattern.
23579 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
23580 (vshrd_n_s64): Likewise.
23581 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
23582
23583 2014-01-23 Nick Clifton <nickc@redhat.com>
23584
23585 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
23586 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
23587 favour of mcu specific scripts.
23588 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
23589 430x multilibs.
23590
23591 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
23592 Alex Velenko <Alex.Velenko@arm.com>
23593
23594 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
23595 (vaddv_s16): Likewise.
23596 (vaddv_s32): Likewise.
23597 (vaddv_u8): Likewise.
23598 (vaddv_u16): Likewise.
23599 (vaddv_u32): Likewise.
23600 (vaddvq_s8): Likewise.
23601 (vaddvq_s16): Likewise.
23602 (vaddvq_s32): Likewise.
23603 (vaddvq_s64): Likewise.
23604 (vaddvq_u8): Likewise.
23605 (vaddvq_u16): Likewise.
23606 (vaddvq_u32): Likewise.
23607 (vaddvq_u64): Likewise.
23608 (vaddv_f32): Likewise.
23609 (vaddvq_f32): Likewise.
23610 (vaddvq_f64): Likewise.
23611 (vmaxv_f32): Likewise.
23612 (vmaxv_s8): Likewise.
23613 (vmaxv_s16): Likewise.
23614 (vmaxv_s32): Likewise.
23615 (vmaxv_u8): Likewise.
23616 (vmaxv_u16): Likewise.
23617 (vmaxv_u32): Likewise.
23618 (vmaxvq_f32): Likewise.
23619 (vmaxvq_f64): Likewise.
23620 (vmaxvq_s8): Likewise.
23621 (vmaxvq_s16): Likewise.
23622 (vmaxvq_s32): Likewise.
23623 (vmaxvq_u8): Likewise.
23624 (vmaxvq_u16): Likewise.
23625 (vmaxvq_u32): Likewise.
23626 (vmaxnmv_f32): Likewise.
23627 (vmaxnmvq_f32): Likewise.
23628 (vmaxnmvq_f64): Likewise.
23629 (vminv_f32): Likewise.
23630 (vminv_s8): Likewise.
23631 (vminv_s16): Likewise.
23632 (vminv_s32): Likewise.
23633 (vminv_u8): Likewise.
23634 (vminv_u16): Likewise.
23635 (vminv_u32): Likewise.
23636 (vminvq_f32): Likewise.
23637 (vminvq_f64): Likewise.
23638 (vminvq_s8): Likewise.
23639 (vminvq_s16): Likewise.
23640 (vminvq_s32): Likewise.
23641 (vminvq_u8): Likewise.
23642 (vminvq_u16): Likewise.
23643 (vminvq_u32): Likewise.
23644 (vminnmv_f32): Likewise.
23645 (vminnmvq_f32): Likewise.
23646 (vminnmvq_f64): Likewise.
23647
23648 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
23649
23650 * config/aarch64/aarch64-simd.md
23651 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
23652 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
23653 (*aarch64_mul3_elt<mode>): Likewise.
23654 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
23655 (*aarch64_mul3_elt_to_64v2df): Likewise.
23656 (*aarch64_mla_elt<mode>): Likewise.
23657 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
23658 (*aarch64_mls_elt<mode>): Likewise.
23659 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
23660 (*aarch64_fma4_elt<mode>): Likewise.
23661 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
23662 (*aarch64_fma4_elt_to_64v2df): Likewise.
23663 (*aarch64_fnma4_elt<mode>): Likewise.
23664 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
23665 (*aarch64_fnma4_elt_to_64v2df): Likewise.
23666 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
23667 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
23668 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
23669 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
23670 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
23671 (aarch64_sqdmull_lane<mode>_internal): Likewise.
23672 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
23673
23674 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
23675
23676 * config/aarch64/aarch64-simd.md
23677 (aarch64_be_checked_get_lane<mode>): New define_expand.
23678 * config/aarch64/aarch64-simd-builtins.def
23679 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
23680 New builtin definition.
23681 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
23682 Use new safe be builtin.
23683
23684 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
23685
23686 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
23687 New define_insn.
23688 (aarch64_be_st1<mode>): Likewise.
23689 (aarch_ld1<VALL:mode>): Define_expand modified.
23690 (aarch_st1<VALL:mode>): Likewise.
23691 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
23692 (UNSPEC_ST1): Likewise.
23693
23694 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
23695
23696 * config/microblaze/microblaze.md: Add trap insn and attribute
23697
23698 2014-01-23 Dodji Seketeli <dodji@redhat.com>
23699
23700 PR preprocessor/58580
23701 * input.h (location_get_source_line): Take an additional line_size
23702 parameter.
23703 (void diagnostics_file_cache_fini): Declare new function.
23704 * input.c (struct fcache): New type.
23705 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
23706 New static constants.
23707 (diagnostic_file_cache_init, total_lines_num)
23708 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
23709 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
23710 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
23711 (get_next_line, read_next_line, goto_next_line, read_line_num):
23712 New static function definitions.
23713 (diagnostic_file_cache_fini): New function.
23714 (location_get_source_line): Take an additional output line_len
23715 parameter. Re-write using lookup_or_add_file_to_cache_tab and
23716 read_line_num.
23717 * diagnostic.c (diagnostic_finish): Call
23718 diagnostic_file_cache_fini.
23719 (adjust_line): Take an additional input parameter for the length
23720 of the line, rather than calculating it with strlen.
23721 (diagnostic_show_locus): Adjust the use of
23722 location_get_source_line and adjust_line with respect to their new
23723 signature. While displaying a line now, do not stop at the first
23724 null byte. Rather, display the zero byte as a space and keep
23725 going until we reach the size of the line.
23726 * Makefile.in: Add vec.o to OBJS-libcommon
23727
23728 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
23729 Ilya Tocar <ilya.tocar@intel.com>
23730
23731 * config/i386/avx512fintrin.h (_mm512_kmov): New.
23732 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
23733 (__builtin_ia32_kmov16): Ditto.
23734 * config/i386/i386.md (UNSPEC_KMOV): New.
23735 (kmovw): Ditto.
23736
23737 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
23738
23739 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
23740 (_mm512_storeu_si512): Ditto.
23741
23742 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
23743
23744 PR target/52125
23745 * rtl.h (get_referenced_operands): Declare.
23746 * recog.c (get_referenced_operands): New function.
23747 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
23748 operands have been referenced when recording LO_SUM references.
23749
23750 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
23751
23752 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
23753
23754 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
23755
23756 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
23757 Enable for generic and recent AMD targets.
23758
23759 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
23760
23761 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
23762 ARG_SIZE note when adjustment was eliminated.
23763
23764 2014-01-22 Jeff Law <law@redhat.com>
23765
23766 PR tree-optimization/59597
23767 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
23768 in file. Accept new argument REGISTERING and use it to modify
23769 dump output appropriately.
23770 (register_jump_thread): Corresponding changes.
23771 (mark_threaded_blocks): Reinstate code to cancel unprofitable
23772 thread paths involving joiner blocks. Add code to dump cancelled
23773 jump threading paths.
23774
23775 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
23776
23777 PR rtl-optimization/59477
23778 * lra-constraints.c (inherit_in_ebb): Process call for living hard
23779 regs. Update reloads_num and potential_reload_hard_regs for all insns.
23780
23781 2014-01-22 Tom Tromey <tromey@redhat.com>
23782
23783 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
23784 PARAMS.
23785 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
23786
23787 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
23788
23789 PR rtl-optimization/59896
23790 * lra-constraints.c (process_alt_operands): Check unused note for
23791 matched operands of insn with no output reloads.
23792
23793 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
23794
23795 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
23796 (mips_move_from_gpr_cost): Likewise.
23797
23798 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
23799
23800 PR rtl-optimization/59858
23801 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
23802 ira_class_hard_regs_num.
23803 (process_alt_operands): Increase reject for dying matched operand.
23804
23805 2014-01-21 Jakub Jelinek <jakub@redhat.com>
23806
23807 PR target/59003
23808 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
23809 smaller than size, perform several stores or loads and stores
23810 at dst + count - size to store or copy all of size bytes, rather
23811 than just last modesize bytes.
23812
23813 2014-01-20 DJ Delorie <dj@redhat.com>
23814
23815 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
23816 that CLOBBERs are REGs before propogating their values.
23817
23818 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
23819
23820 PR middle-end/59789
23821 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
23822 (cgraph_inline_failed_type): New function.
23823 * cgraph.h (DEFCIFCODE): Add type.
23824 (cgraph_inline_failed_type_t): New enum.
23825 (cgraph_inline_failed_type): New prototype.
23826 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
23827 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
23828 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
23829 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
23830 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
23831 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
23832 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
23833 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
23834 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
23835 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
23836 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
23837 OPTIMIZATION_MISMATCH.
23838 * tree-inline.c (expand_call_inline): Emit errors during
23839 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
23840
23841 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
23842
23843 PR target/59685
23844 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
23845 mode attribute in insn output.
23846
23847 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
23848
23849 * output.h (output_constant): Delete.
23850 * varasm.c (output_constant): Make private.
23851
23852 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
23853
23854 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
23855
23856 2014-01-20 Jakub Jelinek <jakub@redhat.com>
23857
23858 PR middle-end/59860
23859 * tree.h (fold_builtin_strcat): New prototype.
23860 * builtins.c (fold_builtin_strcat): No longer static. Add len
23861 argument, if non-NULL, don't call c_strlen. Optimize
23862 directly into __builtin_memcpy instead of __builtin_strcpy.
23863 (fold_builtin_2): Adjust fold_builtin_strcat caller.
23864 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
23865
23866 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
23867
23868 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
23869 for SImode_address_operand operands, having only a REG argument.
23870
23871 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
23872
23873 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
23874 loader name using mbig-endian.
23875 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
23876
23877 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
23878
23879 * doc/invoke.texi (-march): Clarify documentation for AArch64.
23880 (-mtune): Likewise.
23881 (-mcpu): Likewise.
23882
23883 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
23884
23885 * config/aarch64/aarch64-protos.h
23886 (aarch64_cannot_change_mode_class_ptr): Declare.
23887 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
23888 aarch64_cannot_change_mode_class_ptr): New.
23889 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
23890 backend hook aarch64_cannot_change_mode_class.
23891
23892 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
23893
23894 * common/config/aarch64/aarch64-common.c
23895 (aarch64_handle_option): Don't handle any option order logic here.
23896 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
23897 selected_cpu, warn on architecture version mismatch.
23898 (aarch64_override_options): Fix parsing order for option strings.
23899
23900 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23901 Iain Sandoe <iain@codesourcery.com>
23902
23903 PR bootstrap/59496
23904 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
23905 warning. Amend comment to reflect current functionality.
23906
23907 2014-01-20 Richard Biener <rguenther@suse.de>
23908
23909 PR middle-end/59860
23910 * builtins.c (fold_builtin_strcat): Remove case better handled
23911 by tree-ssa-strlen.c.
23912
23913 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
23914
23915 * config/aarch64/aarch64.opt
23916 (mcpu, march, mtune): Make case-insensitive.
23917
23918 2014-01-20 Jakub Jelinek <jakub@redhat.com>
23919
23920 PR target/59880
23921 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
23922 if operands[1] is a REG or ZERO_EXTEND of a REG.
23923
23924 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
23925
23926 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
23927
23928 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
23929
23930 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
23931 long non-pic millicode calls.
23932
23933 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23934
23935 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
23936
23937 2014-01-19 Kito Cheng <kito@0xlab.org>
23938
23939 * builtins.c (expand_movstr): Check movstr expand done or fail.
23940
23941 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
23942 H.J. Lu <hongjiu.lu@intel.com>
23943
23944 PR target/59379
23945 * config/i386/i386.md (*lea<mode>): Zero-extend return register
23946 to DImode for zero-extended addresses.
23947
23948 2014-01-19 Jakub Jelinek <jakub@redhat.com>
23949
23950 PR rtl-optimization/57763
23951 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
23952 on the new indirect jump_insn and increment LABEL_NUSES (label).
23953
23954 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
23955
23956 PR bootstrap/59580
23957 PR bootstrap/59583
23958 * config.gcc (x86_archs): New variable.
23959 (x86_64_archs): Likewise.
23960 (x86_cpus): Likewise.
23961 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
23962 --with-arch/--with-cpu= options.
23963 Support --with-arch=/--with-cpu={nehalem,westmere,
23964 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
23965
23966 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
23967
23968 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
23969 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
23970
23971 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
23972
23973 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
23974
23975 2014-01-18 Jakub Jelinek <jakub@redhat.com>
23976
23977 PR target/58944
23978 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
23979 clear cpp_get_options (parse_in)->warn_unused_macros for
23980 ix86_target_macros_internal with cpp_define.
23981
23982 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
23983
23984 * jump.c (delete_related_insns): Keep (use (insn))s.
23985 * reorg.c (redundant_insn): Check for barriers too.
23986
23987 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
23988
23989 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
23990
23991 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
23992
23993 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
23994 call to $$dyncall when TARGET_LONG_CALLS is true.
23995
23996 2014-01-17 Jeff Law <law@redhat.com>
23997
23998 * ree.c (combine_set_extension): Temporarily disable test for
23999 changing number of hard registers.
24000
24001 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
24002
24003 PR middle-end/58125
24004 * ipa-inline-analysis.c (inline_free_summary):
24005 Do not free summary of aliases.
24006
24007 2014-01-17 Jakub Jelinek <jakub@redhat.com>
24008
24009 PR middle-end/59706
24010 * gimplify.c (gimplify_expr): Use create_tmp_var
24011 instead of create_tmp_var_raw. If cond doesn't have
24012 integral type, don't add the IFN_ANNOTATE builtin at all.
24013
24014 2014-01-17 Martin Jambor <mjambor@suse.cz>
24015
24016 PR ipa/59736
24017 * ipa-cp.c (prev_edge_clone): New variable.
24018 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
24019 Also resize prev_edge_clone vector.
24020 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
24021 (ipcp_edge_removal_hook): New function.
24022 (ipcp_driver): Register ipcp_edge_removal_hook.
24023
24024 2014-01-17 Andrew Pinski <apinski@cavium.com>
24025 Steve Ellcey <sellcey@mips.com>
24026
24027 PR target/59462
24028 * config/mips/mips.c (mips_print_operand): Check operand mode instead
24029 of operator mode.
24030
24031 2014-01-17 Jeff Law <law@redhat.com>
24032
24033 PR middle-end/57904
24034 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
24035 so that pass_ccp runs first.
24036
24037 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
24038
24039 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
24040 (ix86_adjust_cost): Use !TARGET_XXX.
24041 (do_reorder_for_imul): Likewise.
24042 (swap_top_of_ready_list): Likewise.
24043 (ix86_sched_reorder): Likewise.
24044
24045 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
24046
24047 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24048 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
24049 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
24050 (intel_memset): New. Duplicate slm_memset.
24051 (intel_cost): New. Duplicate slm_cost.
24052 (m_INTEL): New macro.
24053 (processor_target_table): Add "intel".
24054 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
24055 with PROCESSOR_INTEL for "intel".
24056 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
24057 PROCESSOR_SILVERMONT.
24058 (ix86_issue_rate): Likewise.
24059 (ix86_adjust_cost): Likewise.
24060 (ia32_multipass_dfa_lookahead): Likewise.
24061 (swap_top_of_ready_list): Likewise.
24062 (ix86_sched_reorder): Likewise.
24063 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
24064 instead of TARGET_OPT_AGU.
24065 * config/i386/i386.h (TARGET_INTEL): New.
24066 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
24067 (processor_type): Add PROCESSOR_INTEL.
24068 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
24069 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
24070
24071 2014-01-17 Marek Polacek <polacek@redhat.com>
24072
24073 PR c/58346
24074 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
24075 size is zero.
24076
24077 2014-01-17 Richard Biener <rguenther@suse.de>
24078
24079 PR tree-optimization/46590
24080 * opts.c (default_options_table): Add entries for
24081 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
24082 all enabled at -O1 but not for -Og.
24083 * common.opt (fbranch-count-reg): Remove Init(1).
24084 (fmove-loop-invariants): Likewise.
24085 (ftree-pta): Likewise.
24086
24087 2014-01-17 Jakub Jelinek <jakub@redhat.com>
24088
24089 * config/i386/i386.c (ix86_data_alignment): For compatibility with
24090 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
24091 decls to at least the GCC 4.8 used alignments.
24092
24093 PR fortran/59440
24094 * tree-nested.c (convert_nonlocal_reference_stmt,
24095 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
24096 of GIMPLE_BIND stmts, adjust associated decls.
24097
24098 2014-01-17 Richard Biener <rguenther@suse.de>
24099
24100 PR tree-optimization/46590
24101 * vec.h (vec<>::bseach): New member function implementing
24102 binary search according to C89 bsearch.
24103 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
24104 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
24105 bitmap pointer again. Make accesses_in_loop a flat array.
24106 (mem_ref_obstack): New global.
24107 (outermost_indep_loop): Adjust for mem_ref->stored changes.
24108 (mark_ref_stored): Likewise.
24109 (ref_indep_loop_p_2): Likewise.
24110 (set_ref_stored_in_loop): New helper function.
24111 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
24112 (memref_free): Adjust.
24113 (record_mem_ref_loc): Simplify.
24114 (gather_mem_refs_stmt): Adjust.
24115 (sort_locs_in_loop_postorder_cmp): New function.
24116 (analyze_memory_references): Sort accesses_in_loop after
24117 loop postorder number.
24118 (find_ref_loc_in_loop_cmp): New function.
24119 (for_all_locs_in_loop): Find relevant cluster of locs in
24120 accesses_in_loop and iterate without recursion.
24121 (execute_sm): Avoid uninit warning.
24122 (struct ref_always_accessed): Simplify.
24123 (ref_always_accessed::operator ()): Likewise.
24124 (ref_always_accessed_p): Likewise.
24125 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
24126 loop postorder numbers here.
24127 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
24128 numbers.
24129
24130 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
24131
24132 PR c++/57945
24133 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
24134 on decls for which assemble_alias has been called.
24135
24136 2014-01-17 Nick Clifton <nickc@redhat.com>
24137
24138 * config/msp430/msp430.opt: (mcpu): New option.
24139 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
24140 (msp430_option_override): Parse target_cpu. If the MCU name
24141 matches a generic string, clear target_mcu.
24142 (msp430_attr): Allow numeric interrupt values up to 63.
24143 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
24144 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
24145 option.
24146 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
24147 Add mcpu matches.
24148 * config/msp430/msp430.md (popm): Use %J rather than %I.
24149 (addsi3): Use msp430_nonimmediate_operand for operand 2.
24150 (addhi_cy_i): Use immediate_operand for operand 2.
24151 * doc/invoke.texi: Document -mcpu option.
24152
24153 2014-01-17 Richard Biener <rguenther@suse.de>
24154
24155 PR rtl-optimization/38518
24156 * df.h (df_analyze_loop): Declare.
24157 * df-core.c: Include cfgloop.h.
24158 (df_analyze_1): Split out main part of df_analyze.
24159 (df_analyze): Adjust.
24160 (loop_inverted_post_order_compute): New function.
24161 (loop_post_order_compute): Likewise.
24162 (df_analyze_loop): New function avoiding whole-function
24163 postorder computes.
24164 * loop-invariant.c (find_defs): Use df_analyze_loop.
24165 (find_invariants): Adjust.
24166 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
24167
24168 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
24169
24170 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
24171 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
24172
24173 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
24174
24175 * ipa-ref.c (ipa_remove_stmt_references): Fix references
24176 traversal when removing references.
24177
24178 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
24179
24180 PR ipa/59775
24181 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
24182
24183 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
24184
24185 PR middle-end/56791
24186 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
24187 pushing a reload for an autoinc when we had previously reloaded an
24188 inner part of the address.
24189
24190 2014-01-16 Jakub Jelinek <jakub@redhat.com>
24191
24192 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
24193 field.
24194 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
24195 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
24196 when not giving up or versioning for alias only because of
24197 loop->safelen.
24198 (vect_analyze_data_ref_dependences): Set to true.
24199 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
24200 is a GIMPLE_PHI.
24201 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
24202 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
24203 to the condition.
24204
24205 PR middle-end/58344
24206 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
24207
24208 PR target/59839
24209 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
24210 operand 0 predicate for gathers, use a new pseudo as subtarget.
24211
24212 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
24213
24214 PR middle-end/59609
24215 * lra-constraints.c (process_alt_operands): Add printing debug info.
24216 Check absence of input/output reloads for matched operands too.
24217
24218 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
24219
24220 PR rtl-optimization/59835
24221 * ira.c (ira_init_register_move_cost): Increase cost for
24222 impossible modes.
24223
24224 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
24225
24226 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
24227
24228 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
24229
24230 PR target/59780
24231 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
24232 non-register objects. Use gen_(high/low)part more consistently.
24233 Fix assertions.
24234
24235 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
24236
24237 PR target/59844
24238 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
24239 endian support, remove tests for WORDS_BIG_ENDIAN.
24240 (p8_mfvsrd_3_<mode>): Likewise.
24241 (reload_gpr_from_vsx<mode>): Likewise.
24242 (reload_gpr_from_vsxsf): Likewise.
24243 (p8_mfvsrd_4_disf): Likewise.
24244
24245 2014-01-16 Richard Biener <rguenther@suse.de>
24246
24247 PR rtl-optimization/46590
24248 * lcm.c (compute_antinout_edge): Use postorder iteration.
24249 (compute_laterin): Use inverted postorder iteration.
24250
24251 2014-01-16 Nick Clifton <nickc@redhat.com>
24252
24253 PR middle-end/28865
24254 * varasm.c (output_constant): Return the number of bytes actually
24255 emitted.
24256 (output_constructor_array_range): Update the field size with the
24257 number of bytes emitted by output_constant.
24258 (output_constructor_regular_field): Likewise. Also do not
24259 complain if the total number of bytes emitted is now greater
24260 than the expected fieldpos.
24261 * output.h (output_constant): Update prototype and descriptive comment.
24262
24263 2014-01-16 Marek Polacek <polacek@redhat.com>
24264
24265 PR middle-end/59827
24266 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
24267 it is error_mark_node.
24268
24269 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
24270
24271 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
24272 VALID_AVX256_REG_OR_OI_MODE.
24273
24274 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
24275
24276 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
24277 current procedure should be profiled.
24278
24279 2014-01-15 Andrew Pinski <apinski@cavium.com>
24280
24281 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
24282 of moving from/to the STACK_REG register class.
24283
24284 2014-01-15 Richard Henderson <rth@redhat.com>
24285
24286 PR debug/54694
24287 * reginfo.c (global_regs_decl): Globalize.
24288 * rtl.h (global_regs_decl): Declare.
24289 * ira.c (do_reload): Diagnose frame_pointer_needed and it
24290 reserved via global_regs.
24291
24292 2014-01-15 Teresa Johnson <tejohnson@google.com>
24293
24294 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
24295
24296 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24297
24298 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
24299 and vmulosh rather than call gen_vec_widen_smult_*.
24300 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
24301 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
24302 (vec_widen_smult_even_v16qi): Likewise.
24303 (vec_widen_umult_even_v8hi): Likewise.
24304 (vec_widen_smult_even_v8hi): Likewise.
24305 (vec_widen_umult_odd_v16qi): Likewise.
24306 (vec_widen_smult_odd_v16qi): Likewise.
24307 (vec_widen_umult_odd_v8hi): Likewise.
24308 (vec_widen_smult_odd_v8hi): Likewise.
24309 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
24310 vmuloub rather than call gen_vec_widen_umult_*.
24311 (vec_widen_umult_lo_v16qi): Likewise.
24312 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
24313 vmulosb rather than call gen_vec_widen_smult_*.
24314 (vec_widen_smult_lo_v16qi): Likewise.
24315 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
24316 rather than call gen_vec_widen_umult_*.
24317 (vec_widen_umult_lo_v8hi): Likewise.
24318 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
24319 rather than call gen_vec_widen_smult_*.
24320 (vec_widen_smult_lo_v8hi): Likewise.
24321
24322 2014-01-15 Jeff Law <law@redhat.com>
24323
24324 PR tree-optimization/59747
24325 * ree.c (find_and_remove_re): Properly handle case where a second
24326 eliminated extension requires widening a copy created for elimination
24327 of a prior extension.
24328 (combine_set_extension): Ensure that the number of hard regs needed
24329 for a destination register does not change when we widen it.
24330
24331 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
24332
24333 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
24334 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
24335 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
24336 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
24337 (avr-*-rtems*): Likewise.
24338 (bfin*-rtems*): Likewise.
24339 (moxie-*-rtems*): Likewise.
24340 (h8300-*-rtems*): Likewise.
24341 (i[34567]86-*-rtems*): Likewise.
24342 (lm32-*-rtems*): Likewise.
24343 (m32r-*-rtems*): Likewise.
24344 (m68k-*-rtems*): Likewise.
24345 (microblaze*-*-rtems*): Likewise.
24346 (mips*-*-rtems*): Likewise.
24347 (powerpc-*-rtems*): Likewise.
24348 (sh-*-rtems*): Likewise.
24349 (sparc-*-rtems*): Likewise.
24350 (sparc64-*-rtems*): Likewise.
24351 (v850-*-rtems*): Likewise.
24352 (m32c-*-rtems*): Likewise.
24353
24354 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
24355
24356 PR rtl-optimization/59511
24357 * ira.c (ira_init_register_move_cost): Use memory costs for some
24358 cases of register move cost calculations.
24359 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
24360 instead of BB frequency.
24361 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
24362 * lra-assigns.c (find_hard_regno_for): Ditto.
24363
24364 2014-01-15 Richard Biener <rguenther@suse.de>
24365
24366 PR tree-optimization/59822
24367 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
24368 (vectorizable_load): Use it to hoist defs of uses of invariant
24369 loads out of the loop.
24370
24371 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
24372 Kugan Vivekanandarajah <kuganv@linaro.org>
24373
24374 PR target/59695
24375 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
24376 truncation.
24377
24378 2014-01-15 Richard Biener <rguenther@suse.de>
24379
24380 PR rtl-optimization/59802
24381 * lcm.c (compute_available): Use inverted postorder to seed
24382 the initial worklist.
24383
24384 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24385
24386 PR target/59803
24387 * config/s390/s390.c (s390_preferred_reload_class): Don't return
24388 ADDR_REGS for invalid symrefs in non-PIC code.
24389
24390 2014-01-15 Jakub Jelinek <jakub@redhat.com>
24391
24392 PR other/58712
24393 * builtins.c (determine_block_size): Initialize *probable_max_size
24394 even if len_rtx is CONST_INT.
24395
24396 2014-01-14 Andrew Pinski <apinski@cavium.com>
24397
24398 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
24399 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
24400 (cortexa53_tunings): Likewise.
24401 (aarch64_sched_issue_rate): New function.
24402 (TARGET_SCHED_ISSUE_RATE): Define.
24403
24404 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
24405
24406 * ira-costs.c (find_costs_and_classes): Add missed
24407 ira_init_register_move_cost_if_necessary.
24408
24409 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
24410
24411 PR target/59787
24412 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
24413
24414 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
24415
24416 PR target/59794
24417 * config/i386/i386.c (type_natural_mode): Add a bool parameter
24418 to indicate if type is used for function return value. Warn ABI
24419 change if the vector mode isn't available for function return value.
24420 (ix86_function_arg_advance): Pass false to type_natural_mode.
24421 (ix86_function_arg): Likewise.
24422 (ix86_gimplify_va_arg): Likewise.
24423 (function_arg_32): Don't warn ABI change.
24424 (ix86_function_value): Pass true to type_natural_mode.
24425 (ix86_return_in_memory): Likewise.
24426 (ix86_struct_value_rtx): Removed.
24427 (TARGET_STRUCT_VALUE_RTX): Likewise.
24428
24429 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24430
24431 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
24432 converting a conditional jump into a conditional return.
24433
24434 2014-01-14 Richard Biener <rguenther@suse.de>
24435
24436 PR tree-optimization/58921
24437 PR tree-optimization/59006
24438 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
24439 hoisting invariant stmts.
24440 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
24441 invariant loads on the preheader edge if possible.
24442
24443 2014-01-14 Joey Ye <joey.ye@arm.com>
24444
24445 * doc/plugin.texi (Building GCC plugins): Update to C++.
24446
24447 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
24448
24449 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
24450 (_mm_rcp28_round_ss): Ditto.
24451 (_mm_rsqrt28_round_sd): Ditto.
24452 (_mm_rsqrt28_round_ss): Ditto.
24453 (_mm_rcp28_sd): Ditto.
24454 (_mm_rcp28_ss): Ditto.
24455 (_mm_rsqrt28_sd): Ditto.
24456 (_mm_rsqrt28_ss): Ditto.
24457 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
24458 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
24459 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
24460 (IX86_BUILTIN_RCP28SD): Ditto.
24461 (IX86_BUILTIN_RCP28SS): Ditto.
24462 (IX86_BUILTIN_RSQRT28SD): Ditto.
24463 (IX86_BUILTIN_RSQRT28SS): Ditto.
24464 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
24465 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
24466 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
24467 (ix86_expand_special_args_builtin): Expand new FTYPE.
24468 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
24469 (srcp14<mode>): Make insn unary.
24470 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
24471 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
24472 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
24473 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
24474 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
24475 Fix rounding: make it SAE only.
24476 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
24477 Ditto.
24478 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
24479 Ditto.
24480 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
24481 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
24482 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
24483 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
24484 (round_saeonly_mask_scalar_operand4): Ditto.
24485 (round_saeonly_mask_scalar_op3): Ditto.
24486 (round_saeonly_mask_scalar_op4): Ditto.
24487
24488 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24489
24490 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24491 Implement -maltivec=be for vec_insert and vec_extract.
24492
24493 2014-01-10 DJ Delorie <dj@redhat.com>
24494
24495 * config/msp430/msp430.md (call_internal): Don't allow memory
24496 references with SP as the base register.
24497 (call_value_internal): Likewise.
24498 * config/msp430/constraints.md (Yc): New. For memory references
24499 that don't use SP as a base register.
24500
24501 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
24502 "an integer without a # prefix"
24503 * config/msp430/msp430.md (epilogue_helper): Use it.
24504
24505 2014-01-13 Jakub Jelinek <jakub@redhat.com>
24506
24507 PR target/59617
24508 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
24509 AVX512F gather builtins.
24510 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
24511 on gather decls with INTEGER_TYPE masktype.
24512 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
24513 directly into the builtin rather than hoisting it before loop.
24514
24515 PR tree-optimization/59387
24516 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
24517 (scev_const_prop): If folded_casts and type has undefined overflow,
24518 use force_gimple_operand instead of force_gimple_operand_gsi and
24519 for each added stmt if it is assign with
24520 arith_code_with_undefined_signed_overflow, call
24521 rewrite_to_defined_overflow.
24522 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
24523 gimple-fold.h instead.
24524 (arith_code_with_undefined_signed_overflow,
24525 rewrite_to_defined_overflow): Moved to ...
24526 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
24527 rewrite_to_defined_overflow): ... here. No longer static.
24528 Include gimplify-me.h.
24529 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
24530 rewrite_to_defined_overflow): New prototypes.
24531
24532 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24533
24534 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
24535
24536 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
24537
24538 * builtins.c (get_object_alignment_2): Minor tweak.
24539 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
24540
24541 2014-01-13 Christian Bruel <christian.bruel@st.com>
24542
24543 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
24544 optimized non constant lengths.
24545
24546 2014-01-13 Jakub Jelinek <jakub@redhat.com>
24547
24548 PR libgomp/59194
24549 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
24550 load as __atomic_load_N if possible.
24551
24552 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
24553
24554 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
24555 target parameter.
24556 (rs6000_expand_builtin): Adjust call.
24557
24558 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
24559
24560 PR target/58115
24561 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
24562 * config/rs6000/rs6000.c: Include target-globals.h.
24563 (rs6000_set_current_function): Instead of doing target_reinit
24564 unconditionally, use save_target_globals_default_opts and
24565 restore_target_globals.
24566
24567 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
24568 FPSCR.
24569 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
24570 (rs6000_expand_builtin): Handle mffs and mtfsf.
24571 (rs6000_init_builtins): Define mffs and mtfsf.
24572 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
24573 (rs6000_mffs): New pattern.
24574 (rs6000_mtfsf): New pattern.
24575
24576 2014-01-11 Bin Cheng <bin.cheng@arm.com>
24577
24578 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
24579 Start narrowing with START. Apply candidate-use pair
24580 and check overall cost in narrowing.
24581 (iv_ca_prune): Pass new argument.
24582
24583 2014-01-10 Jeff Law <law@redhat.com>
24584
24585 PR middle-end/59743
24586 * ree.c (combine_reaching_defs): Ensure the defining statement
24587 occurs before the extension when optimizing extensions with
24588 different source and destination hard registers.
24589
24590 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
24591
24592 PR ipa/58585
24593 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
24594 vtables into the type inheritance graph.
24595
24596 2014-01-10 Jakub Jelinek <jakub@redhat.com>
24597
24598 PR rtl-optimization/59754
24599 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
24600 modes in the REGNO != REGNO case.
24601
24602 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24603
24604 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
24605
24606 2014-01-10 Jakub Jelinek <jakub@redhat.com>
24607
24608 PR tree-optimization/59745
24609 * tree-predcom.c (tree_predictive_commoning_loop): Call
24610 free_affine_expand_cache if giving up because components is NULL.
24611
24612 * target-globals.c (save_target_globals): Allocate < 4KB structs using
24613 GC in payload of target_globals struct instead of allocating them on
24614 the heap and the larger structs separately using GC.
24615 * target-globals.h (struct target_globals): Make regs, hard_regs,
24616 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
24617 of GTY((skip)) and change type to void *.
24618 (reset_target_globals): Cast loads from those fields to corresponding
24619 types.
24620
24621 2014-01-10 Steve Ellcey <sellcey@mips.com>
24622
24623 PR plugins/59335
24624 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
24625 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
24626 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
24627
24628 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
24629
24630 PR target/59744
24631 * aarch64-modes.def (CC_Zmode): New flags mode.
24632 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
24633 represents an equality.
24634 (aarch64_get_condition_code): Handle CC_Zmode.
24635 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
24636
24637 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24638
24639 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
24640 extraction in good case.
24641
24642 2014-01-10 Richard Biener <rguenther@suse.de>
24643
24644 PR tree-optimization/59374
24645 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
24646 checking after SLP discovery. Mark stmts not participating
24647 in any SLP instance properly.
24648
24649 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24650
24651 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
24652 when handling a SET rtx.
24653
24654 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24655
24656 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
24657 (cortex-a57): Likewise.
24658 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
24659
24660 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24661
24662 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
24663 non-iwmmxt builtins.
24664
24665 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
24666
24667 PR ipa/58252
24668 PR ipa/59226
24669 * ipa-devirt.c record_target_from_binfo): Take as argument
24670 stack of binfos and lookup matching one for virtual inheritance.
24671 (possible_polymorphic_call_targets_1): Update.
24672
24673 2014-01-10 Huacai Chen <chenhc@lemote.com>
24674
24675 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
24676 kernel strings for Loongson-2E/2F/3A.
24677
24678 2014-01-10 Jakub Jelinek <jakub@redhat.com>
24679
24680 PR middle-end/59670
24681 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
24682 is_gimple_call before calling gimple_call_internal_p.
24683
24684 2014-01-09 Steve Ellcey <sellcey@mips.com>
24685
24686 * Makefile.in (TREE_FLOW_H): Remove.
24687 (TREE_SSA_H): Add file names from tree-flow.h.
24688 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
24689 * tree.h: Remove tree-flow.h reference.
24690 * hash-table.h: Remove tree-flow.h reference.
24691 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
24692 reference with tree-ssa-loop.h.
24693
24694 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24695
24696 * doc/invoke.texi: Add -maltivec={be,le} options, and document
24697 default element-order behavior for -maltivec.
24698 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
24699 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
24700 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
24701 when targeting big endian, at least for now.
24702 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
24703
24704 2014-01-09 Jakub Jelinek <jakub@redhat.com>
24705
24706 PR middle-end/47735
24707 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
24708 var satisfies use_register_for_decl, just take into account type
24709 alignment, rather than decl alignment.
24710
24711 PR tree-optimization/59622
24712 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
24713 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
24714 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
24715 Don't devirtualize for inplace at all. For targets.length () == 1,
24716 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
24717
24718 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
24719
24720 * config/i386/i386.md (cpu): Remove the unused btver1.
24721
24722 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
24723
24724 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
24725
24726 2014-01-09 Jakub Jelinek <jakub@redhat.com>
24727
24728 PR target/58115
24729 * tree-core.h (struct target_globals): New forward declaration.
24730 (struct tree_target_option): Add globals field.
24731 * tree.h (TREE_TARGET_GLOBALS): Define.
24732 (prepare_target_option_nodes_for_pch): New prototype.
24733 * target-globals.h (struct target_globals): Define even if
24734 !SWITCHABLE_TARGET.
24735 * tree.c (prepare_target_option_node_for_pch,
24736 prepare_target_option_nodes_for_pch): New functions.
24737 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
24738 * config/i386/i386.c: Include target-globals.h.
24739 (ix86_set_current_function): Instead of doing target_reinit
24740 unconditionally, use save_target_globals_default_opts and
24741 restore_target_globals.
24742
24743 2014-01-09 Richard Biener <rguenther@suse.de>
24744
24745 PR tree-optimization/59715
24746 * tree-cfg.h (split_critical_edges): Declare.
24747 * tree-cfg.c (split_critical_edges): Export.
24748 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
24749
24750 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
24751
24752 * cfgexpand.c (expand_stack_vars): Optionally disable
24753 asan stack protection.
24754 (expand_used_vars): Likewise.
24755 (partition_stack_vars): Likewise.
24756 * asan.c (asan_emit_stack_protection): Optionally disable
24757 after return stack usage.
24758 (instrument_derefs): Optionally disable memory access instrumentation.
24759 (instrument_builtin_call): Likewise.
24760 (instrument_strlen_call): Likewise.
24761 (asan_protect_global): Optionally disable global variables protection.
24762 * doc/invoke.texi: Added doc for new options.
24763 * params.def: Added new options.
24764 * params.h: Likewise.
24765
24766 2014-01-09 Jakub Jelinek <jakub@redhat.com>
24767
24768 PR rtl-optimization/59724
24769 * ifcvt.c (cond_exec_process_if_block): Don't call
24770 flow_find_head_matching_sequence with 0 longest_match.
24771 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
24772 non-active insns if !stop_after.
24773 (try_head_merge_bb): Revert 2014-01-07 changes.
24774
24775 2014-01-08 Jeff Law <law@redhat.com>
24776
24777 * ree.c (get_sub_rtx): New function, extracted from...
24778 (merge_def_and_ext): Here.
24779 (combine_reaching_defs): Use get_sub_rtx.
24780
24781 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
24782
24783 * cgraph.h (varpool_variable_node): Do not choke on null node.
24784
24785 2014-01-08 Catherine Moore <clm@codesourcery.com>
24786
24787 * config/mips/mips.md (simple_return): Attempt to use JRC
24788 for microMIPS.
24789 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
24790
24791 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
24792
24793 PR rtl-optimization/59137
24794 * reorg.c (steal_delay_list_from_target): Call update_block for
24795 elided insns.
24796 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
24797
24798 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24799
24800 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
24801 two duplicate entries.
24802
24803 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
24804
24805 Revert:
24806 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
24807
24808 * config/mips/mips.c (mips_truncated_op_cost): New function.
24809 (mips_rtx_costs): Adjust test for BADDU.
24810 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
24811
24812 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
24813
24814 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
24815 (*baddu_si): ...this new pattern.
24816
24817 2014-01-08 Jakub Jelinek <jakub@redhat.com>
24818
24819 PR ipa/59722
24820 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
24821
24822 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
24823
24824 PR middle-end/57748
24825 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
24826 inner_reference_p.
24827 (expand_expr, expand_normal): Adjust.
24828 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
24829 inner_reference_p. Use inner_reference_p to expand inner references.
24830 (store_expr): Adjust.
24831 * cfgexpand.c (expand_call_stmt): Adjust.
24832
24833 2014-01-08 Rong Xu <xur@google.com>
24834
24835 * gcov-io.c (gcov_var): Move from gcov-io.h.
24836 (gcov_position): Ditto.
24837 (gcov_is_error): Ditto.
24838 (gcov_rewrite): Ditto.
24839 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
24840 only part to libgcc/libgcov.h.
24841
24842 2014-01-08 Marek Polacek <polacek@redhat.com>
24843
24844 PR middle-end/59669
24845 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
24846
24847 2014-01-08 Marek Polacek <polacek@redhat.com>
24848
24849 PR sanitizer/59667
24850 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
24851
24852 2014-01-08 Jakub Jelinek <jakub@redhat.com>
24853
24854 PR rtl-optimization/59649
24855 * stor-layout.c (get_mode_bounds): For BImode return
24856 0 and STORE_FLAG_VALUE.
24857
24858 2014-01-08 Richard Biener <rguenther@suse.de>
24859
24860 PR middle-end/59630
24861 * gimple.h (is_gimple_builtin_call): Remove.
24862 (gimple_builtin_call_types_compatible_p): New.
24863 (gimple_call_builtin_p): New overload.
24864 * gimple.c (is_gimple_builtin_call): Remove.
24865 (validate_call): Rename to ...
24866 (gimple_builtin_call_types_compatible_p): ... this and export. Also
24867 check return types.
24868 (validate_type): New static function.
24869 (gimple_call_builtin_p): New overload and adjust.
24870 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
24871 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
24872 (gimple_fold_stmt_to_constant_1): Likewise.
24873 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
24874
24875 2014-01-08 Richard Biener <rguenther@suse.de>
24876
24877 PR middle-end/59471
24878 * gimplify.c (gimplify_expr): Gimplify register-register type
24879 VIEW_CONVERT_EXPRs to separate stmts.
24880
24881 2014-01-07 Jeff Law <law@redhat.com>
24882
24883 PR middle-end/53623
24884 * ree.c (combine_set_extension): Handle case where source
24885 and destination registers in an extension insn are different.
24886 (combine_reaching_defs): Allow source and destination registers
24887 in extension to be different under limited circumstances.
24888 (add_removable_extension): Remove restriction that the
24889 source and destination registers in the extension are the same.
24890 (find_and_remove_re): Emit a copy from the extension's
24891 destination to its source after the defining insn if
24892 the source and destination registers are different.
24893
24894 PR middle-end/59285
24895 * ifcvt.c (merge_if_block): If we are merging a block with more than
24896 one successor with a block with no successors, remove any BARRIER
24897 after the second block.
24898
24899 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
24900
24901 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
24902
24903 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
24904
24905 PR target/59652
24906 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
24907 for 14-bit register offsets when INT14_OK_STRICT is false.
24908
24909 2014-01-07 Roland Stigge <stigge@antcom.de>
24910 Michael Meissner <meissner@linux.vnet.ibm.com>
24911
24912 PR 57386/target
24913 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
24914 Only check TFmode for SPE constants. Don't check TImode or TDmode.
24915
24916 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
24917
24918 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
24919 -mcpu.
24920
24921 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
24922
24923 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
24924 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
24925 rtx is const0_rtx or not.
24926
24927 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
24928
24929 PR target/58115
24930 * target-globals.c (save_target_globals): Remove this_fn_optab
24931 handling.
24932 * toplev.c: Include optabs.h.
24933 (target_reinit): Temporarily restore the global options if another
24934 set of options are in force.
24935
24936 2014-01-07 Jakub Jelinek <jakub@redhat.com>
24937
24938 PR rtl-optimization/58668
24939 * cfgcleanup.c (flow_find_cross_jump): Don't count
24940 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
24941 to determine what is counted.
24942 (flow_find_head_matching_sequence): Use active_insn_p to determine
24943 what is counted.
24944 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
24945 counting change.
24946 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
24947 determine what is counted.
24948
24949 PR tree-optimization/59643
24950 * tree-predcom.c (split_data_refs_to_components): If one dr is
24951 read and one write, determine_offset fails and the write isn't
24952 in the bad component, just put the read into the bad component.
24953
24954 2014-01-07 Mike Stump <mikestump@comcast.net>
24955 Jakub Jelinek <jakub@redhat.com>
24956
24957 PR pch/59436
24958 * tree-core.h (struct tree_optimization_option): Change optabs
24959 type from unsigned char * to void *.
24960 * optabs.c (init_tree_optimization_optabs): Adjust
24961 TREE_OPTIMIZATION_OPTABS initialization.
24962
24963 2014-01-06 Jakub Jelinek <jakub@redhat.com>
24964
24965 PR target/59644
24966 * config/i386/i386.h (struct machine_function): Add
24967 no_drap_save_restore field.
24968 * config/i386/i386.c (ix86_save_reg): Use
24969 !cfun->machine->no_drap_save_restore instead of
24970 crtl->stack_realign_needed.
24971 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
24972 this function clears frame_pointer_needed. Set
24973 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
24974 and DRAP reg is needed.
24975
24976 2014-01-06 Marek Polacek <polacek@redhat.com>
24977
24978 PR c/57773
24979 * doc/implement-c.texi: Mention that other integer types are
24980 permitted as bit-field types in strictly conforming mode.
24981
24982 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
24983
24984 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
24985 is newly allocated.
24986
24987 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
24988
24989 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
24990
24991 2014-01-06 Martin Jambor <mjambor@suse.cz>
24992
24993 PR ipa/59008
24994 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
24995 to int.
24996 * ipa-prop.c (ipa_print_node_params): Fix indentation.
24997
24998 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
24999
25000 PR debug/59350
25001 PR debug/59510
25002 * var-tracking.c (add_stores): Preserve the value of the source even if
25003 we don't record the store.
25004
25005 2014-01-06 Terry Guo <terry.guo@arm.com>
25006
25007 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
25008
25009 2014-01-05 Iain Sandoe <iain@codesourcery.com>
25010
25011 PR bootstrap/59541
25012 * config/darwin.c (darwin_function_section): Adjust return values to
25013 correspond to optimisation changes made in r206070.
25014
25015 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
25016
25017 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
25018 from prefetch_block tune setting.
25019 (nocona_cost): Correct size of prefetch block to 64.
25020
25021 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
25022
25023 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
25024 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
25025 used to save the static chain register in the computation of the offset
25026 from which the FP registers need to be restored.
25027
25028 2014-01-04 Jakub Jelinek <jakub@redhat.com>
25029
25030 PR tree-optimization/59519
25031 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
25032 ICE if get_current_def (current_new_name) is already non-NULL, as long
25033 as it is a phi result of some other phi in *new_exit_bb that has
25034 the same argument.
25035
25036 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
25037 or vmovdqu* for misaligned_operand.
25038 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
25039 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
25040 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
25041 aligned_mem for AVX512F masked aligned load and store builtins and for
25042 non-temporal moves.
25043
25044 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
25045
25046 PR tree-optimization/59651
25047 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
25048 Address range for negative step should be added by TYPE_SIZE_UNIT.
25049
25050 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
25051
25052 * config/m68k/m68k.c (handle_move_double): Handle pushes with
25053 overlapping registers also for registers other than the stack pointer.
25054
25055 2014-01-03 Marek Polacek <polacek@redhat.com>
25056
25057 PR other/59661
25058 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
25059 __builtin_FILE.
25060
25061 2014-01-03 Jakub Jelinek <jakub@redhat.com>
25062
25063 PR target/59625
25064 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
25065 asm goto as jump.
25066
25067 * config/i386/i386.md (MODE_SIZE): New mode attribute.
25068 (push splitter): Use <P:MODE_SIZE> instead of
25069 GET_MODE_SIZE (<P:MODE>mode).
25070 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
25071 (mov -1, reg peephole2): Likewise.
25072 * config/i386/sse.md (*mov<mode>_internal,
25073 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
25074 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
25075 *<code><mode>3, *andnot<mode>3<mask_name>,
25076 <mask_codefor><code><mode>3<mask_name>): Likewise.
25077 * config/i386/subst.md (mask_mode512bit_condition,
25078 sd_mask_mode512bit_condition): Likewise.
25079
25080 2014-01-02 Xinliang David Li <davidxl@google.com>
25081
25082 PR tree-optimization/59303
25083 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
25084 (dump_predicates): Better output format.
25085 (pred_equal_p): New function.
25086 (is_neq_relop_p): Ditto.
25087 (is_neq_zero_form_p): Ditto.
25088 (pred_expr_equal_p): Ditto.
25089 (pred_neg_p): Ditto.
25090 (simplify_pred): Ditto.
25091 (simplify_preds_2): Ditto.
25092 (simplify_preds_3): Ditto.
25093 (simplify_preds_4): Ditto.
25094 (simplify_preds): Ditto.
25095 (push_pred): Ditto.
25096 (push_to_worklist): Ditto.
25097 (get_pred_info_from_cmp): Ditto.
25098 (is_degenerated_phi): Ditto.
25099 (normalize_one_pred_1): Ditto.
25100 (normalize_one_pred): Ditto.
25101 (normalize_one_pred_chain): Ditto.
25102 (normalize_preds): Ditto.
25103 (normalize_cond_1): Remove function.
25104 (normalize_cond): Ditto.
25105 (is_gcond_subset_of): Ditto.
25106 (is_subset_of_any): Ditto.
25107 (is_or_set_subset_of): Ditto.
25108 (is_and_set_subset_of): Ditto.
25109 (is_norm_cond_subset_of): Ditto.
25110 (pred_chain_length_cmp): Ditto.
25111 (convert_control_dep_chain_into_preds): Type change.
25112 (find_predicates): Ditto.
25113 (find_def_preds): Ditto.
25114 (destroy_predicates_vecs): Ditto.
25115 (find_matching_predicates_in_rest_chains): Ditto.
25116 (use_pred_not_overlap_with_undef_path_pred): Ditto.
25117 (is_pred_expr_subset): Ditto.
25118 (is_pred_chain_subset_of): Ditto.
25119 (is_included_in): Ditto.
25120 (is_superset_of): Ditto.
25121
25122 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
25123
25124 Update copyright years.
25125
25126 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
25127
25128 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
25129 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
25130 config/arc/arc.md, config/arc/arc.opt,
25131 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
25132 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
25133 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
25134 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
25135 config/linux-protos.h, config/linux.c, config/winnt-c.c,
25136 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
25137 vtable-verify.c, vtable-verify.h: Use the standard form for the
25138 copyright notice.
25139
25140 2014-01-02 Tobias Burnus <burnus@net-b.de>
25141
25142 * gcc.c (process_command): Update copyright notice dates.
25143 * gcov-dump.c: Ditto.
25144 * gcov.c: Ditto.
25145 * doc/cpp.texi: Bump @copying's copyright year.
25146 * doc/cppinternals.texi: Ditto.
25147 * doc/gcc.texi: Ditto.
25148 * doc/gccint.texi: Ditto.
25149 * doc/gcov.texi: Ditto.
25150 * doc/install.texi: Ditto.
25151 * doc/invoke.texi: Ditto.
25152
25153 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25154
25155 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
25156
25157 2014-01-01 Jakub Jelinek <jakub@redhat.com>
25158
25159 * config/i386/sse.md (*mov<mode>_internal): Guard
25160 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
25161
25162 PR rtl-optimization/59647
25163 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
25164 new_rtx into UNSIGNED_FLOAT rtxes.
25165 \f
25166 Copyright (C) 2014 Free Software Foundation, Inc.
25167
25168 Copying and distribution of this file, with or without modification,
25169 are permitted in any medium without royalty provided the copyright
25170 notice and this notice are preserved.