]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
8962bf2ca7ebb70a384a45a5d8933455e8500f3d
[thirdparty/gcc.git] / gcc / ChangeLog
1 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2
3 * except.h (sjlj_emit_function_exit_after): Strengthen param
4 "after" from rtx to rtx_insn *. This is only called with
5 result of get_last_insn (in function.c) so type-change should be
6 self-contained.
7
8 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
9 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
10 to rtx_insn *. These fields are only used from except.c so this
11 type-change should be self-contained to this patch.
12
13 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
14 local "last" from rtx to rtx_insn *.
15 (dw2_build_landing_pads): Likewise for local "seq".
16 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
17 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
18 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
19 rtx to rtx_insn *.
20 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
21 to rtx_insn *.
22 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
23 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
24 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
25 referring to an insn. Strengthen local "dispatch_label" from
26 rtx to rtx_code_label *.
27 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
28 rtx_insn *.
29 (expand_eh_return): Strengthen local "around_label" from
30 rtx to rtx_code_label *.
31 (convert_to_eh_region_ranges): Strengthen locals "iter",
32 "last_action_insn", "first_no_action_insn",
33 "first_no_action_insn_before_switch",
34 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
35
36 2014-08-22 David Malcolm <dmalcolm@redhat.com>
37
38 * dwarf2out.c (last_var_location_insn): Strengthen this variable
39 from rtx to rtx_insn *.
40 (cached_next_real_insn): Likewise.
41 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
42 working with insns.
43 (dwarf2out_var_location): Strengthen locals "next_real",
44 "next_note", "expected_next_loc_note", "last_start", "insn" from
45 rtx to rtx_insn *.
46
47 2014-08-22 David Malcolm <dmalcolm@redhat.com>
48
49 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
50 from rtx to rtx_insn *.
51 (create_pseudo_cfg): Likewise for local "insn".
52
53 2014-08-22 David Malcolm <dmalcolm@redhat.com>
54
55 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
56 from rtx to rtx_insn *.
57 (df_bb_regno_last_def_find): Likewise.
58
59 * df-problems.c (df_rd_bb_local_compute): Likewise.
60 (df_lr_bb_local_compute): Likewise.
61 (df_live_bb_local_compute): Likewise.
62 (df_chain_remove_problem): Likewise.
63 (df_chain_create_bb): Likewise.
64 (df_word_lr_bb_local_compute): Likewise.
65 (df_remove_dead_eq_notes): Likewise for param "insn".
66 (df_note_bb_compute): Likewise for local "insn".
67 (simulate_backwards_to_point): Likewise.
68 (df_md_bb_local_compute): Likewise.
69
70 * df-scan.c (df_scan_free_bb_info): Likewise.
71 (df_scan_start_dump): Likewise.
72 (df_scan_start_block): Likewise.
73 (df_install_ref_incremental): Likewise for local "insn".
74 (df_insn_rescan_all): Likewise.
75 (df_reorganize_refs_by_reg_by_insn): Likewise.
76 (df_reorganize_refs_by_insn_bb): Likewise.
77 (df_recompute_luids): Likewise.
78 (df_bb_refs_record): Likewise.
79 (df_update_entry_exit_and_calls): Likewise.
80 (df_bb_verify): Likewise.
81
82 2014-08-22 David Malcolm <dmalcolm@redhat.com>
83
84 * ddg.h (struct ddg_node): Strengthen fields "insn" and
85 "first_note" from rtx to rtx_insn *.
86 (get_node_of_insn): Likewise for param 2 "insn".
87 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
88
89 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
90 rtx_insn *.
91 (mem_write_insn_p): Likewise.
92 (mem_access_insn_p): Likewise.
93 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
94 (def_has_ccmode_p): Likewise for param "insn".
95 (add_cross_iteration_register_deps): Likewise for locals
96 "def_insn" and "use_insn".
97 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
98 (build_intra_loop_deps): Likewise for local "src_insn".
99 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
100 to rtx_insn *.
101 (get_node_of_insn): Likewise for param "insn".
102
103 2014-08-22 David Malcolm <dmalcolm@redhat.com>
104
105 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
106 (deletable_insn_p): Strengthen param "insn" from rtx to
107 rtx_insn *. Add checked cast to rtx_call_insn when invoking
108 find_call_stack_args, since this is guarded by CALL_P (insn).
109 (marked_insn_p): Strengthen param "insn" from rtx to
110 rtx_insn *.
111 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
112 invoking find_call_stack_args, since this is guarded by
113 CALL_P (insn).
114 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
115 rtx_insn *; we know this is an insn since this was called by
116 mark_nonreg_stores.
117 (mark_nonreg_stores_2): Likewise.
118 (mark_nonreg_stores): Strengthen param "insn" from rtx to
119 rtx_insn *.
120 (find_call_stack_args): Strengthen param "call_insn" from rtx to
121 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
122 to rtx_insn *.
123 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
124 from rtx to rtx_insn *.
125 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
126 "next", "ref_insn".
127 (delete_unmarked_insns): Likewise for locals "insn", "next".
128 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
129 (mark_reg_dependencies): Likewise for param "insn".
130 (rest_of_handle_ud_dce): Likewise for local "insn".
131 (word_dce_process_block): Likewise.
132 (dce_process_block): Likewise.
133
134 2014-08-22 David Malcolm <dmalcolm@redhat.com>
135
136 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
137 from rtx to rtx_insn *.
138 (struct change_cc_mode_args): Likewise for field "insn".
139 (this_insn): Strengthen from rtx to rtx_insn *.
140 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
141 with insn.
142 (validate_canon_reg): Strengthen param "insn" from rtx to
143 rtx_insn *.
144 (canon_reg): Likewise.
145 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
146 dealing with insn.
147 (record_jump_equiv): Strengthen param "insn" from rtx to
148 rtx_insn *.
149 (try_back_substitute_reg): Likewise, also for locals "prev",
150 "bb_head".
151 (find_sets_in_insn): Likewise for param "insn".
152 (canonicalize_insn): Likewise.
153 (cse_insn): Likewise. Add a checked cast.
154 (invalidate_from_clobbers): Likewise for param "insn".
155 (invalidate_from_sets_and_clobbers): Likewise.
156 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
157 dealing with insn.
158 (cse_prescan_path): Strengthen local "insn" from rtx to
159 rtx_insn *.
160 (cse_extended_basic_block): Likewise for locals "insn" and
161 "prev_insn".
162 (cse_main): Likewise for param "f".
163 (check_for_label_ref): Likewise for local "insn".
164 (set_live_p): Likewise for second param ("insn").
165 (insn_live_p): Likewise for first param ("insn") and for local
166 "next".
167 (cse_change_cc_mode_insn): Likewise for first param "insn".
168 (cse_change_cc_mode_insns): Likewise for first and second params
169 "start" and "end".
170 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
171 and "end".
172 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
173 "cc_src_insn".
174
175 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
176 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
177 Anna Tikhonova <anna.tikhonova@intel.com>
178 Ilya Tocar <ilya.tocar@intel.com>
179 Andrey Turetskiy <andrey.turetskiy@intel.com>
180 Ilya Verbin <ilya.verbin@intel.com>
181 Kirill Yukhin <kirill.yukhin@intel.com>
182 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
183
184 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
185 New.
186 * config/i386/sse.md
187 (define_mode_iterator VI248_AVX2): Delete.
188 (define_mode_iterator VI2_AVX2_AVX512BW): New.
189 (define_mode_iterator VI48_AVX2): Ditto.
190 (define_insn <shift_insn><mode>3): Delete.
191 (define_insn "<shift_insn><mode>3<mask_name>" with
192 VI2_AVX2_AVX512BW): New.
193 (define_insn "<shift_insn><mode>3<mask_name>" with
194 VI48_AVX2): Ditto.
195
196 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
197 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
198 Anna Tikhonova <anna.tikhonova@intel.com>
199 Ilya Tocar <ilya.tocar@intel.com>
200 Andrey Turetskiy <andrey.turetskiy@intel.com>
201 Ilya Verbin <ilya.verbin@intel.com>
202 Kirill Yukhin <kirill.yukhin@intel.com>
203 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
204
205 * config/i386/sse.md
206 (define_mode_iterator VI4F_BRCST32x2): New.
207 (define_mode_attr 64x2_mode): Ditto.
208 (define_mode_attr 32x2mode): Ditto.
209 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
210 with VI4F_BRCST32x2): Ditto.
211 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
212 with V16FI mode iterator): Ditto.
213 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
214 with V16FI): Ditto.
215 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
216 with VI8F_BRCST64x2): Ditto.
217
218 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
219 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
220 Anna Tikhonova <anna.tikhonova@intel.com>
221 Ilya Tocar <ilya.tocar@intel.com>
222 Andrey Turetskiy <andrey.turetskiy@intel.com>
223 Ilya Verbin <ilya.verbin@intel.com>
224 Kirill Yukhin <kirill.yukhin@intel.com>
225 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
226
227 * config/i386/sse.md
228 (define_mode_iterator VI8_AVX512VL): New.
229 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
230
231 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
232
233 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
234 (define_mode_iterator V48_AVX512VL): New.
235 (define_mode_iterator V12_AVX512VL): Ditto.
236 (define_insn <avx512>_load<mode>_mask): Split into two similar
237 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
238 Refactor output template.
239 (define_insn "<avx512>_store<mode>_mask"): Ditto.
240
241 2014-08-22 David Malcolm <dmalcolm@redhat.com>
242
243 * cprop.c (struct occr): Strengthen field "insn" from rtx to
244 rtx_insn *.
245 (reg_available_p): Likewise for param "insn".
246 (insert_set_in_table): Likewise.
247 (hash_scan_set): Likewise.
248 (hash_scan_insn): Likewise.
249 (make_set_regs_unavailable): Likewise.
250 (compute_hash_table_work): Likewise for local "insn".
251 (reg_not_set_p): Strengthen param "insn" from const_rtx to
252 const rtx_insn *.
253 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
254 (try_replace_reg): Likewise.
255 (find_avail_set): Likewise.
256 (cprop_jump): Likewise for params "setcc", "jump".
257 (constprop_register): Likewise for param "insn".
258 (cprop_insn): Likewise.
259 (do_local_cprop): Likewise.
260 (local_cprop_pass): Likewise for local "insn".
261 (bypass_block): Likewise for params "setcc" and "jump".
262 (bypass_conditional_jumps): Likewise for locals "setcc" and
263 "insn".
264 (one_cprop_pass): Likewise for local "insn".
265
266 2014-08-22 David Malcolm <dmalcolm@redhat.com>
267
268 * compare-elim.c (struct comparison_use): Strengthen field "insn"
269 from rtx to rtx_insn *.
270 (struct comparison): Likewise, also for field "prev_clobber".
271 (conforming_compare): Likewise for param "insn".
272 (arithmetic_flags_clobber_p): Likewise.
273 (find_flags_uses_in_insn): Likewise.
274 (find_comparison_dom_walker::before_dom_children): Likewise for
275 locals "insn", "next", "last_clobber".
276 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
277
278 2014-08-22 David Malcolm <dmalcolm@redhat.com>
279
280 * combine-stack-adj.c (struct csa_reflist): Strengthen field
281 "insn" from rtx to rtx_insn *.
282 (single_set_for_csa): Likewise for param "insn".
283 (record_one_stack_ref): Likewise.
284 (try_apply_stack_adjustment): Likewise.
285 (struct record_stack_refs_data): Likewise for field "insn".
286 (maybe_move_args_size_note): Likewise for params "last" and "insn".
287 (prev_active_insn_bb): Likewise for return type and param "insn".
288 (next_active_insn_bb): Likewise.
289 (force_move_args_size_note): Likewise for params "prev" and "last"
290 and locals "test", "next_candidate", "prev_candidate".
291 (combine_stack_adjustments_for_block): Strengthen locals
292 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
293 rtx_insn *.
294
295 2014-08-21 David Malcolm <dmalcolm@redhat.com>
296
297 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
298 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
299 (subst_insn): Likewise for this variable.
300 (added_links_insn): Likewise.
301 (struct insn_link): Likewise for field "insn".
302 (alloc_insn_link): Likewise for param "insn".
303 (struct undobuf): Likewise for field "other_insn".
304 (find_single_use): Likewise for param "insn" and local "next".
305 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
306 (delete_noop_moves): Likewise for locals "insn", "next".
307 (create_log_links): Likewise for locals "insn", "use_insn".
308 Strengthen local "next_use" from rtx * to rtx_insn **.
309 (insn_a_feeds_b): Likewise for params "a", "b".
310 (combine_instructions): Likewise for param "f" and locals "insn",
311 "next", "prev", "first", "last_combined_insn", "link", "link1",
312 "temp". Replace use of NULL_RTX with NULL when referring to
313 insns.
314 (setup_incoming_promotions): Likewise for param "first"
315 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
316 (can_combine_p): Likewise for params "insn", "i3", "pred",
317 "pred2", "succ", "succ2" and for local "p".
318 (combinable_i3pat): Likewise for param "i3".
319 (cant_combine_insn_p): Likewise for param "insn".
320 (likely_spilled_retval_p): Likewise.
321 (adjust_for_new_dest): Likewise.
322 (update_cfg_for_uncondjump): Likewise, also for local "insn".
323 (try_combine): Likewise for return type and for params "i3", "i2",
324 "i1", "i0", "last_combined_insn", and for locals "insn",
325 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
326 "i0_insn". Eliminate local "tem" in favor of new locals
327 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
328 checked cast for now to rtx_insn * on the return type of
329 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
330 insns.
331 (find_split_point): Strengthen param "insn" from rtx to
332 rtx_insn *.
333 (simplify_set): Likewise for local "other_insn".
334 (recog_for_combine): Likewise for param "insn".
335 (record_value_for_reg): Likewise.
336 (record_dead_and_set_regs_1): Likewise for local
337 "record_dead_insn".
338 (record_dead_and_set_regs): Likewise for param "insn".
339 (record_promoted_value): Likewise.
340 (check_promoted_subreg): Likewise.
341 (get_last_value_validate): Likewise.
342 (reg_dead_at_p): Likewise.
343 (move_deaths): Likewise for param "to_insn".
344 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
345 and locals "place", "place2", "cc0_setter". Eliminate local "tem
346 in favor of new locals "tem_note" and "tem_insn", the latter being
347 an rtx_insn *.
348 (distribute_links): Strengthen locals "place", "insn" from rtx to
349 rtx_insn *.
350
351 2014-08-21 David Malcolm <dmalcolm@redhat.com>
352
353 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
354 than a const_rtx.
355 (can_delete_label_p): Require a const rtx_code_label * rather than
356 a const_rtx.
357 (delete_insn): Add checked cast to rtx_code_label * when we know
358 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
359 rtx to rtx_insn *.
360 (delete_insn_chain): Strengthen locals "prev" and "current" from
361 rtx to rtx_insn *. Add a checked cast when assigning from
362 "finish" (strengthening the params will come later). Add a
363 checked cast to rtx_note * in region where we know
364 NOTE_P (current).
365 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
366 rtx_insn *.
367 (compute_bb_for_insn): Likewise.
368 (free_bb_for_insn): Likewise for local "insn".
369 (compute_bb_for_insn): Likewise.
370 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
371 local "insn" from rtx to rtx_insn *
372 (flow_active_insn_p): Require a const rtx_insn * rather than a
373 const_rtx.
374 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
375 rtx_insn *.
376 (can_fallthru): Likewise for locals "insn" and "insn2".
377 (bb_note): Likewise for local "note".
378 (first_insn_after_basic_block_note): Likewise for local "note" and
379 for return type.
380 (rtl_split_block): Likewise for locals "insn" and "next".
381 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
382 "end".
383 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
384 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
385 "prev", "tmp".
386 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
387 them), "kill_from", "barrier", "new_insn".
388 (patch_jump_insn): Likewise for params "insn", "old_label".
389 (redirect_branch_edge): Likewise for locals "old_label", "insn".
390 (force_nonfallthru_and_redirect): Likewise for locals "insn",
391 "old_label", "new_label".
392 (rtl_tidy_fallthru_edge): Likewise for local "q".
393 (rtl_split_edge): Likewise for locals "before", "last".
394 (commit_one_edge_insertion): Likewise for locals "before",
395 "after", "insns", "tmp", "last", adding a checked cast where
396 currently necessary.
397 (commit_edge_insertions): Likewise.
398 (rtl_dump_bb): Likewise for locals "insn", "last".
399 (print_rtl_with_bb): Likewise for local "x".
400 (rtl_verify_bb_insns): Likewise for local "x".
401 (rtl_verify_bb_pointers): Likewise for local "insn".
402 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
403 "head", "end".
404 (rtl_verify_fallthru): Likewise for local "insn".
405 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
406 (purge_dead_edges): Likewise for local "insn".
407 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
408 (skip_insns_after_block): Likewise for return type and for locals
409 "insn", "last_insn", "next_head", "prev".
410 (record_effective_endpoints): Likewise for locals "next_insn",
411 "insn", "end".
412 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
413 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
414 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
415 (duplicate_insn_chain): For now, add checked cast from rtx to
416 rtx_insn * when returning insn.
417 (cfg_layout_duplicate_bb): Likewise for local "insn".
418 (cfg_layout_delete_block): Likewise for locals "insn", "next",
419 "prev", "remaints".
420 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
421 (rtl_block_empty_p): Likewise.
422 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
423 "split_point", "last".
424 (rtl_block_ends_with_call_p): Likewise for local "insn".
425 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
426 const rtx_insn *.
427 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
428 "split_at_insn" from rtx to rtx_insn *.
429 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
430 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
431 to const rtx_insn *.
432 (rtl_account_profile_record): Likewise.
433
434 2014-08-21 David Malcolm <dmalcolm@redhat.com>
435
436 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
437 rtx to rtx_insn *.
438 (average_num_loop_insns): Likewise.
439 (init_set_costs): Likewise for local "seq".
440 (seq_cost): Likewise for param "seq", from const_rtx to const
441 rtx_insn *.
442
443 2014-08-21 David Malcolm <dmalcolm@redhat.com>
444
445 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
446 rtx to rtx_insn *.
447
448 2014-08-21 David Malcolm <dmalcolm@redhat.com>
449
450 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
451 "f1" and "f2" from rtx * to rtx_insn **.
452 (flow_find_head_matching_sequence): Likewise.
453
454 * cfgcleanup.c (try_simplify_condjump): Strengthen local
455 "cbranch_insn" from rtx to rtx_insn *.
456 (thread_jump): Likewise for local "insn".
457 (try_forward_edges): Likewise for local "last".
458 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
459 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
460 "real_b_end".
461 (can_replace_by): Likewise for params "i1", "i2".
462 (old_insns_match_p): Likewise.
463 (merge_notes): Likewise.
464 (walk_to_nondebug_insn): Likewise for param "i1".
465 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
466 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
467 "afterlast1", "afterlast2" from rtx to rtx_insn *.
468 (flow_find_head_matching_sequence): Strengthen params "f1" and
469 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
470 "last1", "last2", "beforelast1", "beforelast2" from rtx to
471 rtx_insn *.
472 (outgoing_edges_match): Likewise for locals "last1", "last2".
473 (try_crossjump_to_edge): Likewise for local "insn".
474 Replace call to for_each_rtx with for_each_rtx_in_insn.
475
476 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
477 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
478 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
479 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
480 (try_optimize_cfg): Strengthen local "last" from rtx to
481 rtx_insn *.
482 (delete_dead_jumptables): Likewise for locals "insn", "next",
483 "label".
484
485 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
486 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
487 "rtx else_first_tail", to reflect the basic-block.h changes above.
488
489 2014-08-21 David Malcolm <dmalcolm@redhat.com>
490
491 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
492 rtx_insn *.
493 (purge_dead_tablejump_edges): Likewise.
494 (find_bb_boundaries): Likewise for locals "insn", "end",
495 "flow_transfer_insn".
496
497 2014-08-21 David Malcolm <dmalcolm@redhat.com>
498
499 * caller-save.c (save_call_clobbered_regs): Strengthen locals
500 "ins" and "prev" from rtx to rtx_insn *.
501
502 2014-08-21 David Malcolm <dmalcolm@redhat.com>
503
504 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
505 rtx_insn *.
506 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
507 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
508 "scan_start".
509 (load_register_parameters): Likewise for local "before_arg".
510 (check_sibcall_argument_overlap): Likewise for param "insn".
511 (expand_call): Likewise for locals "normal_call_insns",
512 "tail_call_insns", "insns", "before_call", "after_args",
513 "before_arg", "last", "prev". Strengthen one of the "last" from
514 rtx to rtx_call_insn *.
515 (fixup_tail_calls): Strengthen local "insn" from rtx to
516 rtx_insn *.
517 (emit_library_call_value_1): Likewise for locals "before_call" and
518 "last".
519
520 2014-08-21 David Malcolm <dmalcolm@redhat.com>
521
522 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
523 and "last" from rtx to rtx_insn *.
524 (expand_builtin_nonlocal_goto): Likewise for local "insn".
525 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
526 rtx_call_insn *.
527 (expand_errno_check): Strengthen local "lab" from rtx to
528 rtx_code_label *.
529 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
530 rtx_insn *.
531 (expand_builtin_mathfn_2): Likewise.
532 (expand_builtin_mathfn_ternary): Likewise.
533 (expand_builtin_mathfn_3): Likewise.
534 (expand_builtin_interclass_mathfn): Likewise for local "last".
535 (expand_builtin_int_roundingfn): Likewise for local "insns".
536 (expand_builtin_int_roundingfn_2): Likewise.
537 (expand_builtin_strlen): Likewise for local "before_strlen".
538 (expand_builtin_strncmp): Likewise for local "seq".
539 (expand_builtin_signbit): Likewise for local "last".
540 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
541 from rtx to rtx_code_label *.
542 (expand_stack_restore): Strengthen local "prev" from rtx to
543 rtx_insn *.
544
545 2014-08-21 David Malcolm <dmalcolm@redhat.com>
546
547 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
548 to rtx_insn *.
549 (struct btr_def_s): Likewise.
550 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
551 const rtx_insn *.
552 (add_btr_def): Likewise.
553 (new_btr_user): Likewise.
554 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
555 rtx to rtx_insn *.
556 (link_btr_uses): Likewise.
557 (move_btr_def): Likewise for locals "insp", "old_insn",
558 "new_insn". Add checked cast to rtx_insn * for now on result of
559 gen_move_insn.
560 (can_move_up): Strengthen param "insn" from const_rtx to
561 const rtx_insn *.
562
563 2014-08-21 David Malcolm <dmalcolm@redhat.com>
564
565 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
566 rtx_insn *.
567 (get_uncond_jump_length): Likewise for locals "label", "jump".
568 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
569 "jump", "insn".
570 (add_labels_and_missing_jumps): Likewise for local "new_jump".
571 (fix_up_fall_thru_edges): Likewise for local "old_jump".
572 (find_jump_block): Likewise for local "insn".
573 (fix_crossing_conditional_branches): Likewise for locals
574 "old_jump", "new_jump".
575 (fix_crossing_unconditional_branches): Likewise for locals
576 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
577 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
578
579 2014-08-21 David Malcolm <dmalcolm@redhat.com>
580
581 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
582 rtx to rtx_insn *.
583 (struct mem_insn): Likewise for field "insn".
584 (reg_next_use): Strengthen from rtx * to rtx_insn **.
585 (reg_next_inc_use): Likewise.
586 (reg_next_def): Likewise.
587 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
588 from rtx to rtx_insn *.
589 (move_insn_before): Likewise for param "next_insn" and local "insns".
590 (attempt_change): Likewise for local "mov_insn".
591 (try_merge): Likewise for param "last_insn".
592 (get_next_ref): Likewise for return type and local "insn".
593 Strengthen param "next_array" from rtx * to rtx_insn **.
594 (parse_add_or_inc): Strengthen param "insn" from rtx to
595 rtx_insn *.
596 (find_inc): Likewise for locals "insn" and "other_insn" (three of
597 the latter).
598 (merge_in_block): Likewise for locals "insn", "curr",
599 "other_insn".
600 (pass_inc_dec::execute): Update allocations of the arrays to
601 reflect the stronger types.
602
603 2014-08-21 David Malcolm <dmalcolm@redhat.com>
604
605 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
606 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
607 from rtx to rtx_code_label *.
608
609 2014-08-21 David Malcolm <dmalcolm@redhat.com>
610
611 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
612 to rtx_insn *.
613
614 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
615
616 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
617 generated a warning and prevented bootstrapping the compiler.
618
619 2014-08-21 David Malcolm <dmalcolm@redhat.com>
620
621 * rtl.h (delete_related_insns): Strengthen return type from rtx to
622 rtx_insn *.
623
624 * jump.c (delete_related_insns): Likewise, also for locals "next"
625 and "prev".
626
627 2014-08-21 David Malcolm <dmalcolm@redhat.com>
628
629 * genautomata.c (output_internal_insn_latency_func): When writing
630 the function "internal_insn_latency" to insn-automata.c,
631 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
632 allowing the optional guard function of (define_bypass) clauses to
633 expect a pair of rtx_insn *, rather than a pair of rtx.
634 (output_insn_latency_func): When writing the function
635 "insn_latency", add an "uncast_" prefix to params "insn" and
636 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
637 using checked casts from the params, thus enabling the above
638 change to the generated "internal_insn_latency" function.
639
640 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
641
642 PR tree-optimization/62091
643 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
644 handle correctly arrays.
645 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
646 inheritance binfos.
647 (record_known_type): Walk into inner type.
648 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
649 condition on no type changes.
650
651 2014-08-21 David Malcolm <dmalcolm@redhat.com>
652
653 * genattrtab.c (write_attr_get): Within the generated get_attr_
654 functions, rename param "insn" to "uncast_insn" and reintroduce
655 "insn" as an local rtx_insn * using a checked cast, so that "insn"
656 is an rtx_insn * within insn-attrtab.c
657
658 2014-08-21 David Malcolm <dmalcolm@redhat.com>
659
660 * output.h (peephole): Strengthen return type from rtx to
661 rtx_insn *.
662 * rtl.h (delete_for_peephole): Likewise for both params.
663 * genpeep.c (main): In generated "peephole" function, strengthen
664 return type and local "insn" from rtx to rtx_insn *. For now,
665 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
666 rtx_insn *, with a checked cast.
667 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
668 locals "insn", "next", "prev" from rtx to rtx_insn *.
669
670 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
671
672 PR tree-optimization/62112
673 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
674 * gimple-iterator.h (gsi_replace): Return bool.
675 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
676 moved from ref_may_alias_global_p.
677 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
678 New overloads.
679 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
680 (stmt_kills_ref_p_1): Rename...
681 (stmt_kills_ref_p): ... to this.
682 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
683 stmt_kills_ref_p): Declare.
684 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
685 Move the self-assignment case...
686 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
687
688 2014-08-21 David Malcolm <dmalcolm@redhat.com>
689
690 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
691
692 * emit-rtl.c (try_split): Likewise, also for locals "before" and
693 "after". For now, don't strengthen param "trial", which requires
694 adding checked casts when returning it.
695
696 2014-08-21 David Malcolm <dmalcolm@redhat.com>
697
698 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
699 "label" from rtx to rtx_code_label *. Strengthen param 1 of
700 "var_location" hook from rtx to rtx_insn *.
701 (debug_nothing_rtx): Delete in favor of...
702 (debug_nothing_rtx_code_label): New prototype.
703 (debug_nothing_rtx_rtx): Delete unused prototype.
704 (debug_nothing_rtx_insn): New prototype.
705
706 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
707 invoking debug_hooks->var_location (in two places, one in a NOTE
708 case of a switch statement, the other guarded by a CALL_P
709 conditional. Add checked cast to rtx_code_label * when invoking
710 debug_hooks->label (within CODE_LABEL case of switch statement).
711
712 * dbxout.c (dbx_debug_hooks): Update "label" hook from
713 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
714 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
715 (xcoff_debug_hooks): Likewise.
716 * debug.c (do_nothing_debug_hooks): Likewise.
717 (debug_nothing_rtx): Delete in favor of...
718 (debug_nothing_rtx_insn): New function.
719 (debug_nothing_rtx_rtx): Delete unused function.
720 (debug_nothing_rtx_code_label): New function.
721 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
722 debug_nothing_rtx to debug_nothing_rtx_code_label.
723 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
724 to rtx_insn *.
725 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
726 debug_nothing_rtx to debug_nothing_rtx_insn.
727 (sdbout_label): Strengthen param "insn" from rtx to
728 rtx_code_label *.
729 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
730 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
731 "var_location" hook from debug_nothing_rtx to
732 debug_nothing_rtx_insn.
733
734 2014-08-21 David Malcolm <dmalcolm@redhat.com>
735
736 * recog.h (insn_output_fn): Update this function typedef to match
737 the changes below to the generated output functions, strengthening
738 the 2nd param from rtx to rtx_insn *.
739
740 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
741 insn when invoking an output function, to match the new signature
742 of insn_output_fn with a stronger second param.
743
744 * genconditions.c (write_header): In the generated code for
745 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
746 to match the other changes in this patch.
747
748 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
749 the generated "gen_" functions from rtx to rtx_insn * within their
750 implementations.
751
752 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
753 the subfunctions within the generated "recog_", "split", "peephole2"
754 function trees from rtx to rtx_insn *. For now, the top-level
755 generated functions ("recog", "split", "peephole2") continue to
756 take a plain rtx for "insn", to avoid introducing dependencies on
757 other patches. Rename this 2nd param from "insn" to
758 "uncast_insn", and reintroduce "insn" as a local variable of type
759 rtx_insn *, initialized at the top of the generated function with
760 a checked cast on "uncast_insn".
761 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
762 the generated "gen_" functions from rtx to rtx_insn * within their
763 prototypes.
764
765 * genoutput.c (process_template): Strengthen the 2nd param within
766 the generated "output_" functions "insn" from rtx to rtx_insn *.
767
768 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
769
770 * tree-profile.c (tree_profiling): Skip external functions
771 when doing coverage instrumentation.
772 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
773
774 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
775
776 * config/rs6000/altivec.h (vec_cpsgn): New #define.
777 (vec_mergee): Likewise.
778 (vec_mergeo): Likewise.
779 (vec_cntlz): Likewise.
780 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
781 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
782 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
783 VMRGEW, and VMRGOW.
784 * doc/extend.texi: Document various forms of vec_cpsgn,
785 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
786 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
787 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
788 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
789 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
790
791 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
792
793 * config/rs6000/rs6000.c (context.h): New include.
794 (tree-pass.h): Likewise.
795 (make_pass_analyze_swaps): New decl.
796 (rs6000_option_override): Register pass_analyze_swaps.
797 (swap_web_entry): New subsclass of web_entry_base (df.h).
798 (special_handling_values): New enum.
799 (union_defs): New function.
800 (union_uses): Likewise.
801 (insn_is_load_p): Likewise.
802 (insn_is_store_p): Likewise.
803 (insn_is_swap_p): Likewise.
804 (rtx_is_swappable_p): Likewise.
805 (insn_is_swappable_p): Likewise.
806 (chain_purpose): New enum.
807 (chain_contains_only_swaps): New function.
808 (mark_swaps_for_removal): Likewise.
809 (swap_const_vector_halves): Likewise.
810 (adjust_subreg_index): Likewise.
811 (permute_load): Likewise.
812 (permute_store): Likewise.
813 (handle_special_swappables): Likewise.
814 (replace_swap_with_copy): Likewise.
815 (dump_swap_insn_table): Likewise.
816 (rs6000_analyze_swaps): Likewise.
817 (pass_data_analyze_swaps): New pass_data.
818 (pass_analyze_swaps): New rtl_opt_pass.
819 (make_pass_analyze_swaps): New function.
820 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
821
822 2014-08-21 David Malcolm <dmalcolm@redhat.com>
823
824 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
825 type from rtx to rtx_insn *.
826 (create_copy_of_insn_rtx): Likewise.
827 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
828 (create_copy_of_insn_rtx): Likewise, also for local "res".
829
830 2014-08-21 David Malcolm <dmalcolm@redhat.com>
831
832 * rtl.h (find_first_parameter_load): Strengthen return type from
833 rtx to rtx_insn *.
834 * rtlanal.c (find_first_parameter_load): Strengthen return type
835 from rtx to rtx_insn *. Add checked cast for now, to postpone
836 strengthening the params.
837
838 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
839
840 PR fortran/44054
841 * diagnostic.c: Set default caret.
842 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
843 line is needed.
844 * diagnostic.h (struct diagnostic_context):
845
846 2014-08-21 David Malcolm <dmalcolm@redhat.com>
847
848 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
849 (sel_bb_head): Strengthen return type insn_t (currently just an
850 rtx) to rtx_insn *.
851 (sel_bb_end): Likewise.
852
853 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
854 (sel_bb_head): Strengthen return type and local "head" from
855 insn_t (currently just an rtx) to rtx_insn *.
856 (sel_bb_end): Likewise for return type.
857 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
858 working with insn.
859
860 2014-08-21 David Malcolm <dmalcolm@redhat.com>
861
862 * basic-block.h (get_last_bb_insn): Strengthen return type from
863 rtx to rtx_insn *.
864 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
865 end".
866
867 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
868
869 PR fortran/44054
870 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
871 to here ...
872 (diagnostic_report_diagnostic): ... from here.
873 * toplev.c (general_init): Move code to c-family.
874
875 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
876
877 * df.h (web_entry_base): Replace existing struct web_entry with a
878 new class web_entry_base with only the predecessor member.
879 (unionfind_root): Remove declaration and move to class member.
880 (unionfind_union): Remove declaration and move to friend
881 function.
882 (union_defs): Remove declaration.
883 * web.c (web_entry_base::unionfind_root): Modify to be member
884 function and adjust accessors.
885 (unionfind_union): Modify to be friend function and adjust
886 accessors.
887 (web_entry): New subclass of web_entry_base containing the reg
888 member.
889 (union_match_dups): Modify for struct -> class changes.
890 (union_defs): Likewise.
891 (entry_register): Likewise.
892 (pass_web::execute): Likewise.
893
894 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
895
896 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
897 builtin define __VEC_ELEMENT_REG_ORDER__.
898
899 2014-08-20 Martin Jambor <mjambor@suse.cz>
900 Wei Mi <wmi@google.com>
901
902 PR ipa/60449
903 PR middle-end/61776
904 * tree-ssa-operands.c (update_stmt_operands): Remove
905 MODIFIED_NORETURN_CALLS.
906 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
907 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
908 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
909 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
910 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
911 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
912 (gimple_call_set_ctrl_altering): New func.
913 (gimple_call_ctrl_altering_p): Ditto.
914 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
915 (make_blocks): Use gimple_call_initialize_ctrl_altering.
916 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
917 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
918 remove MODIFIED_NORETURN_CALLS.
919
920 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
921
922 * coverage.c (coverage_compute_profile_id): Return non-0;
923 also handle symbols with unique name.
924 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
925
926 2014-08-20 Steve Ellcey <sellcey@mips.com>
927
928 PR middle-end/49191
929 * doc/sourcebuild.texi (non_strict_align): New.
930
931 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
932
933 * cgraphunit.c (ipa_passes, compile): Reshedule
934 symtab_remove_unreachable_nodes passes; update comments.
935 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
936 TODO_remove_functions before the pass; the functions ought to be
937 already removed.
938 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
939 TODO_remove_functions.
940 * passes.c (pass_data_early_local_passes): Do not schedule function
941 removal.
942 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
943
944 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
945
946 PR c/59304
947 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
948 before setting the option.
949 * diagnostic.c (diagnostic_classify_diagnostic): Record
950 command-line status.
951
952 2014-08-20 Richard Biener <rguenther@suse.de>
953
954 PR lto/62190
955 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
956 to build uint{16,32,64}_type_node.
957
958 2014-08-20 Terry Guo <terry.guo@arm.com>
959
960 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
961 with immediate_operand.
962
963 2014-08-20 David Malcolm <dmalcolm@redhat.com>
964
965 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
966 "insn" from an as_a to a safe_as_a, for the case when "insn" is
967 NULL.
968
969 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
970
971 PR preprocessor/51303
972 * incpath.c (remove_duplicates): Use cpp_warning.
973
974 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
975
976 PR c/60975
977 PR c/53063
978 * doc/options.texi (CPP): Document it.
979 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
980 * optc-gen.awk: Handle CPP.
981 * opth-gen.awk: Likewise.
982
983 2014-08-19 David Malcolm <dmalcolm@redhat.com>
984
985 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
986 rtx_insn *.
987 (duplicate_insn_chain): Likewise.
988 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
989 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
990 checked cast for now (until we can strengthen the params in the
991 same way).
992 (duplicate_insn_chain): Likewise.
993
994 2014-08-19 David Malcolm <dmalcolm@redhat.com>
995
996 * rtl.h (next_cc0_user): Strengthen return type from rtx to
997 rtx_insn *.
998 (prev_cc0_setter): Likewise.
999
1000 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
1001 rtx_insn *, adding checked casts for now as necessary.
1002 (prev_cc0_setter): Likewise.
1003
1004 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1005
1006 * expr.h (emit_move_insn): Strengthen return type from rtx to
1007 rtx_insn *.
1008 (emit_move_insn_1): Likewise.
1009 (emit_move_complex_push): Likewise.
1010 (emit_move_complex_parts): Likewise.
1011
1012 * expr.c (emit_move_via_integer): Strengthen return type from rtx
1013 to rtx_insn *. Replace use of NULL_RTX with NULL when working
1014 with insns.
1015 (emit_move_complex_push): Strengthen return type from rtx to
1016 rtx_insn *.
1017 (emit_move_complex): Likewise, also for local "ret".
1018 (emit_move_ccmode): Likewise.
1019 (emit_move_multi_word): Likewise for return type and locals
1020 "last_insn", "seq".
1021 (emit_move_insn_1): Likewise for return type and locals "result",
1022 "ret".
1023 (emit_move_insn): Likewise for return type and local "last_insn".
1024 (compress_float_constant): Likewise.
1025
1026 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1027
1028 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
1029 from rtx to rtx_insn *.
1030
1031 * rtl.h (emit_insn_before): Likewise.
1032 (emit_insn_before_noloc): Likewise.
1033 (emit_insn_before_setloc): Likewise.
1034 (emit_jump_insn_before): Likewise.
1035 (emit_jump_insn_before_noloc): Likewise.
1036 (emit_jump_insn_before_setloc): Likewise.
1037 (emit_call_insn_before): Likewise.
1038 (emit_call_insn_before_noloc): Likewise.
1039 (emit_call_insn_before_setloc): Likewise.
1040 (emit_debug_insn_before): Likewise.
1041 (emit_debug_insn_before_noloc): Likewise.
1042 (emit_debug_insn_before_setloc): Likewise.
1043 (emit_label_before): Likewise.
1044 (emit_insn_after): Likewise.
1045 (emit_insn_after_noloc): Likewise.
1046 (emit_insn_after_setloc): Likewise.
1047 (emit_jump_insn_after): Likewise.
1048 (emit_jump_insn_after_noloc): Likewise.
1049 (emit_jump_insn_after_setloc): Likewise.
1050 (emit_call_insn_after): Likewise.
1051 (emit_call_insn_after_noloc): Likewise.
1052 (emit_call_insn_after_setloc): Likewise.
1053 (emit_debug_insn_after): Likewise.
1054 (emit_debug_insn_after_noloc): Likewise.
1055 (emit_debug_insn_after_setloc): Likewise.
1056 (emit_label_after): Likewise.
1057 (emit_insn): Likewise.
1058 (emit_debug_insn): Likewise.
1059 (emit_jump_insn): Likewise.
1060 (emit_call_insn): Likewise.
1061 (emit_label): Likewise.
1062 (gen_clobber): Likewise.
1063 (emit_clobber): Likewise.
1064 (gen_use): Likewise.
1065 (emit_use): Likewise.
1066 (emit): Likewise.
1067
1068 (emit_barrier_before): Strengthen return type from rtx to
1069 rtx_barrier *.
1070 (emit_barrier_after): Likewise.
1071 (emit_barrier): Likewise.
1072
1073 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
1074 from rtx to rtx_insn *. Add checked casts for now when converting
1075 "last" from rtx to rtx_insn *.
1076 (emit_insn_before_noloc): Likewise for return type.
1077 (emit_jump_insn_before_noloc): Likewise.
1078 (emit_call_insn_before_noloc): Likewise.
1079 (emit_debug_insn_before_noloc): Likewise.
1080 (emit_barrier_before): Strengthen return type and local "insn"
1081 from rtx to rtx_barrier *.
1082 (emit_label_before): Strengthen return type from rtx to
1083 rtx_insn *. Add checked cast for now when returning param
1084 (emit_pattern_after_noloc): Strengthen return type from rtx to
1085 rtx_insn *. Add checked casts for now when converting "last" from
1086 rtx to rtx_insn *.
1087 (emit_insn_after_noloc): Strengthen return type from rtx to
1088 rtx_insn *.
1089 (emit_jump_insn_after_noloc): Likewise.
1090 (emit_call_insn_after_noloc): Likewise.
1091 (emit_debug_insn_after_noloc): Likewise.
1092 (emit_barrier_after): Strengthen return type from rtx to
1093 rtx_barrier *.
1094 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
1095 Add checked cast for now when converting "label" from rtx to
1096 rtx_insn *.
1097 (emit_pattern_after_setloc): Strengthen return type from rtx to
1098 rtx_insn *. Add checked casts for now when converting "last" from
1099 rtx to rtx_insn *.
1100 (emit_pattern_after): Strengthen return type from rtx to
1101 rtx_insn *.
1102 (emit_insn_after_setloc): Likewise.
1103 (emit_insn_after): Likewise.
1104 (emit_jump_insn_after_setloc): Likewise.
1105 (emit_jump_insn_after): Likewise.
1106 (emit_call_insn_after_setloc): Likewise.
1107 (emit_call_insn_after): Likewise.
1108 (emit_debug_insn_after_setloc): Likewise.
1109 (emit_debug_insn_after): Likewise.
1110 (emit_pattern_before_setloc): Likewise. Add checked casts for now
1111 when converting "last" from rtx to rtx_insn *.
1112 (emit_pattern_before): Strengthen return type from rtx to
1113 rtx_insn *.
1114 (emit_insn_before_setloc): Likewise.
1115 (emit_insn_before): Likewise.
1116 (emit_jump_insn_before_setloc): Likewise.
1117 (emit_jump_insn_before): Likewise.
1118 (emit_call_insn_before_setloc): Likewise.
1119 (emit_call_insn_before): Likewise.
1120 (emit_debug_insn_before_setloc): Likewise.
1121 (emit_debug_insn_before): Likewise.
1122 (emit_insn): Strengthen return type and locals "last", "insn",
1123 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
1124 within cases where we know we have an insn.
1125 (emit_debug_insn): Likewise.
1126 (emit_jump_insn): Likewise.
1127 (emit_call_insn): Strengthen return type and local "insn" from rtx
1128 to rtx_insn *.
1129 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
1130 a checked cast to rtx_insn * for now on "label".
1131 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
1132 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
1133 (emit_use): Likewise.
1134 (gen_use): Likewise, also for local "seq".
1135 (emit): Likewise for return type and local "insn".
1136 (rtx_insn): Likewise for return type and local "new_rtx".
1137
1138 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
1139 from rtx to rtx_barrier *.
1140
1141 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
1142 changed return type from rtx to rtx_insn *, we must update
1143 "emit_fn" type, and this in turn means updating...
1144 (frame_insn): ...this. Strengthen return type from rtx to
1145 rtx_insn *. Introduce a new local "insn" of the appropriate type.
1146
1147 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1148
1149 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
1150 rtx to rtx_jump_table_data *. Also for local.
1151 * rtl.h (emit_jump_table_data): Likewise.
1152
1153 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1154
1155 * basic-block.h (create_basic_block_structure): Strengthen third
1156 param "bb_note" from rtx to rtx_note *.
1157 * rtl.h (emit_note_before): Strengthen return type from rtx to
1158 rtx_note *.
1159 (emit_note_after): Likewise.
1160 (emit_note): Likewise.
1161 (emit_note_copy): Likewise. Also, strengthen param similarly.
1162 * function.h (struct rtl_data): Strengthen field
1163 "x_stack_check_probe_note" from rtx to rtx_note *.
1164
1165 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
1166 from rtx to rtx_note *.
1167 * cfgrtl.c (create_basic_block_structure): Strengthen third param
1168 "bb_note" from rtx to rtx_note *.
1169 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
1170 when calling emit_note_copy.
1171 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
1172 rtx_note *.
1173 (emit_note_after): Likewise.
1174 (emit_note_before): Likewise.
1175 (emit_note_copy): Likewise. Also, strengthen param similarly.
1176 (emit_note): Likewise.
1177 * except.c (emit_note_eh_region_end): Likewise for return type.
1178 Strengthen local "next" from rtx to rtx_insn *.
1179 (convert_to_eh_region_ranges): Strengthen local "note"
1180 from rtx to rtx_note *.
1181 * final.c (change_scope): Likewise.
1182 (reemit_insn_block_notes): Likewise, for both locals named "note".
1183 Also, strengthen local "insn" from rtx to rtx_insn *.
1184 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
1185 rtx to rtx_note *.
1186 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
1187 strengthen local "seq" from rtx to rtx_insn *.
1188 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
1189 to rtx_note *.
1190 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
1191 vec<rtx_note *>.
1192 (get_bb_note_from_pool): Strengthen return type from rtx to
1193 rtx_note *.
1194 (sel_create_basic_block): Strengthen local "new_bb_note" from
1195 insn_t to rtx_note *.
1196 * var-tracking.c (emit_note_insn_var_location): Strengthen local
1197 "note" from rtx to rtx_note *.
1198 (emit_notes_in_bb): Likewise.
1199
1200 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1201
1202 * function.h (struct rtl_data): Strengthen field
1203 "x_parm_birth_insn" from rtx to rtx_insn *.
1204 * function.c (struct assign_parm_data_all): Strengthen fields
1205 "first_conversion_insn" and "last_conversion_insn" from rtx to
1206 rtx_insn *.
1207
1208 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1209
1210 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
1211 to rtx_insn *; also for local "var_end_seq".
1212 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
1213 (maybe_cleanup_end_of_block): Likewise for param "last" and local
1214 "insn".
1215 (expand_gimple_cond): Likewise for locals "last2" and "last".
1216 (mark_transaction_restart_calls): Likewise for local "insn".
1217 (expand_gimple_stmt): Likewise for return type and locals "last"
1218 and "insn".
1219 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
1220 (avoid_complex_debug_insns): Likewise for param "insn".
1221 (expand_debug_locations): Likewise for locals "insn", "last",
1222 "prev_insn" and "insn2".
1223 (expand_gimple_basic_block): Likewise for local "last".
1224 (construct_exit_block): Likewise for locals "head", "end",
1225 "orig_end".
1226 (pass_expand::execute): Likewise for locals "var_seq",
1227 "var_ret_seq", "next".
1228
1229 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1230
1231 * asan.h (asan_emit_stack_protection): Strengthen return type from
1232 rtx to rtx_insn *.
1233 * asan.c (asan_emit_stack_protection): Likewise. Add local
1234 "insns" to hold the return value.
1235
1236 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1237
1238 * basic-block.h (bb_note): Strengthen return type from rtx to
1239 rtx_note *.
1240 * sched-int.h (bb_note): Likewise.
1241 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
1242
1243 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1244
1245 * rtl.h (make_insn_raw): Strengthen return type from rtx to
1246 rtx_insn *.
1247
1248 * emit-rtl.c (make_insn_raw): Strengthen return type and local
1249 "insn" from rtx to rtx_insn *.
1250 (make_debug_insn_raw): Strengthen return type from rtx to
1251 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
1252 (make_jump_insn_raw): Strengthen return type from rtx to
1253 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
1254 (make_call_insn_raw): Strengthen return type from rtx to
1255 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
1256 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
1257 callback from rtx to rtx_insn *; likewise for local "insn" and
1258 "next", adding a checked cast to rtx_insn in the relevant cases of
1259 the switch statement.
1260 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
1261 callback from rtx to rtx_insn *.
1262 (emit_pattern_after_setloc): Likewise.
1263 (emit_pattern_after): Likewise.
1264 (emit_pattern_before_setloc): Likewise.
1265 (emit_pattern_before): Likewise.
1266
1267 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1268
1269 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
1270 rtx_call_insn *.
1271 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
1272 accepting an rtx_insn *.
1273 (last_call_insn): Strengthen return type from rtx to
1274 rtx_call_insn *.
1275
1276 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1277
1278 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
1279 "insns" from rtx to rtx_insn *.
1280 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
1281 locals "insn" and "prev".
1282
1283 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1284
1285 * rtl.h (tablejump_p): Strengthen third param from rtx * to
1286 rtx_jump_table_data **.
1287
1288 * cfgbuild.c (make_edges): Introduce local "table", using it in
1289 place of "tmp" for jump table data.
1290 (find_bb_boundaries): Strengthen local "table" from rtx to
1291 rtx_jump_table_data *.
1292 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1293 (outgoing_edges_match): Likewise for locals "table1" and "table2".
1294 (try_crossjump_to_edge): Likewise.
1295 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
1296 "table".
1297 (patch_jump_insn): Introduce local "table", using it in place of
1298 "tmp" for jump table data.
1299 (force_nonfallthru_and_redirect): Introduce local "table", so that
1300 call to tablejump_p can receive an rtx_jump_table_data **. Update
1301 logic around the call to overwrite "note" appropriately if
1302 tablejump_p returns non-zero.
1303 (get_last_bb_insn): Introduce local "table", using it in place of
1304 "tmp" for jump table data.
1305 * dwarf2cfi.c (create_trace_edges): Likewise.
1306
1307 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
1308 from rtx to rtx_jump_table_data *.
1309 (create_fix_barrier): Strengthen local "tmp" from rtx to
1310 rtx_jump_table_data *.
1311 (arm_reorg): Likewise for local "table".
1312
1313 * config/s390/s390.c (s390_chunkify_start): Likewise.
1314
1315 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
1316
1317 * jump.c (delete_related_insns): Strengthen local "lab_next" from
1318 rtx to rtx_jump_table_data *.
1319
1320 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
1321 rtx_jump_table_data **. Add a checked cast when writing through
1322 the pointer: we know there that local "table" is non-NULL and that
1323 JUMP_TABLE_DATA_P (table) holds.
1324 (label_is_jump_target_p): Introduce local "table", using it in
1325 place of "tmp" for jump table data.
1326
1327 2014-08-19 Marek Polacek <polacek@redhat.com>
1328
1329 PR c++/62153
1330 * doc/invoke.texi: Document -Wbool-compare.
1331
1332 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1333
1334 * rtl.h (entry_of_function): Strengthen return type from rtx to
1335 rtx_insn *.
1336 * cfgrtl.c (entry_of_function): Likewise.
1337
1338 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1339
1340 * emit-rtl.h (get_insns): Strengthen return type from rtx to
1341 rtx_insn *, adding a checked cast for now.
1342 (get_last_insn): Likewise.
1343
1344 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1345
1346 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
1347 rtx_code_label *.
1348
1349 * emit-rtl.c (gen_label_rtx): Likewise.
1350
1351 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1352
1353 * rtl.h (previous_insn): Strengthen return type from rtx to
1354 rtx_insn *.
1355 (next_insn): Likewise.
1356 (prev_nonnote_insn): Likewise.
1357 (prev_nonnote_insn_bb): Likewise.
1358 (next_nonnote_insn): Likewise.
1359 (next_nonnote_insn_bb): Likewise.
1360 (prev_nondebug_insn): Likewise.
1361 (next_nondebug_insn): Likewise.
1362 (prev_nonnote_nondebug_insn): Likewise.
1363 (next_nonnote_nondebug_insn): Likewise.
1364 (prev_real_insn): Likewise.
1365 (next_real_insn): Likewise.
1366 (prev_active_insn): Likewise.
1367 (next_active_insn): Likewise.
1368
1369 * emit-rtl.c (next_insn): Strengthen return type from rtx to
1370 rtx_insn *, adding a checked cast.
1371 (previous_insn): Likewise.
1372 (next_nonnote_insn): Likewise.
1373 (next_nonnote_insn_bb): Likewise.
1374 (prev_nonnote_insn): Likewise.
1375 (prev_nonnote_insn_bb): Likewise.
1376 (next_nondebug_insn): Likewise.
1377 (prev_nondebug_insn): Likewise.
1378 (next_nonnote_nondebug_insn): Likewise.
1379 (prev_nonnote_nondebug_insn): Likewise.
1380 (next_real_insn): Likewise.
1381 (prev_real_insn): Likewise.
1382 (next_active_insn): Likewise.
1383 (prev_active_insn): Likewise.
1384
1385 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
1386 param "stepfunc" so that it returns an rtx_insn * rather than an
1387 rtx, to track the change to prev_nonnote_insn_bb, which is the
1388 only function this is called with.
1389 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
1390
1391 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
1392
1393 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
1394 assert.
1395
1396 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1397
1398 * coretypes.h (class rtx_debug_insn): Add forward declaration.
1399 (class rtx_nonjump_insn): Likewise.
1400 (class rtx_jump_insn): Likewise.
1401 (class rtx_call_insn): Likewise.
1402 (class rtx_jump_table_data): Likewise.
1403 (class rtx_barrier): Likewise.
1404 (class rtx_code_label): Likewise.
1405 (class rtx_note): Likewise.
1406
1407 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
1408 adding the invariant DEBUG_INSN_P (X).
1409 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
1410 the invariant NONJUMP_INSN_P (X).
1411 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
1412 the invariant JUMP_P (X).
1413 (class rtx_call_insn): New, a subclass of rtx_insn, adding
1414 the invariant CALL_P (X).
1415 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
1416 invariant JUMP_TABLE_DATA_P (X).
1417 (class rtx_barrier): New, a subclass of rtx_insn, adding the
1418 invariant BARRIER_P (X).
1419 (class rtx_code_label): New, a subclass of rtx_insn, adding
1420 the invariant LABEL_P (X).
1421 (class rtx_note): New, a subclass of rtx_insn, adding
1422 the invariant NOTE_P(X).
1423 (is_a_helper <rtx_debug_insn *>::test): New.
1424 (is_a_helper <rtx_nonjump_insn *>::test): New.
1425 (is_a_helper <rtx_jump_insn *>::test): New.
1426 (is_a_helper <rtx_call_insn *>::test): New.
1427 (is_a_helper <rtx_jump_table_data *>::test): New functions,
1428 overloaded for both rtx and rtx_insn *.
1429 (is_a_helper <rtx_barrier *>::test): New.
1430 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
1431 for both rtx and rtx_insn *.
1432 (is_a_helper <rtx_note *>::test): New.
1433
1434 2014-08-19 Marek Polacek <polacek@redhat.com>
1435
1436 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
1437 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
1438 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
1439 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
1440
1441 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1442
1443 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
1444 rtx_insn *. To help with transition, for now, convert from an
1445 access macro into a pair of functions: BND_TO, returning an
1446 rtx_insn *, and...
1447 (SET_BND_TO): New function, for use where BND_TO is used as an
1448 lvalue.
1449
1450 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
1451 SET_BND_TO.
1452 (BND_TO): New function, adding a checked cast.
1453 (SET_BND_TO): New function.
1454
1455 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
1456 SET_BND_TO.
1457 (compute_av_set_on_boundaries): Likewise.
1458
1459 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
1460
1461 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
1462 destination if it is used in source.
1463 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
1464 (*popcount<mode>2_falsedep_1): Likewise.
1465
1466 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
1467
1468 PR other/62168
1469 * configure.ac: Set install_gold_as_default to no first.
1470 * configure: Regenerated.
1471
1472 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1473
1474 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
1475 "note_list" field will eventually be an rtx_insn *. To help with
1476 transition, for now, convert from an access macro into a pair of
1477 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
1478 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
1479 used as an lvalue.
1480
1481 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
1482 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
1483
1484 * sel-sched-ir.c (init_bb): Likewise.
1485 (sel_restore_notes): Likewise.
1486 (move_bb_info): Likewise.
1487 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
1488 (SET_BB_NOTE_LIST): New function.
1489
1490 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1491
1492 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
1493 field will eventually be an rtx_insn *. To help with transition,
1494 for now, convert from an access macro into a pair of functions:
1495 VINSN_INSN_RTX, returning an rtx_insn *, and...
1496 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
1497 is used as an lvalue.
1498
1499 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
1500 SET_VINSN_INSN_RTX where it's used as an lvalue.
1501 (VINSN_INSN_RTX): New function.
1502 (SET_VINSN_INSN_RTX): New function.
1503
1504 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1505
1506 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
1507 eventually be rtx_insn *, but to help with transition, for now,
1508 convert from an access macro into a pair of functions: DEP_PRO
1509 returning an rtx_insn * and...
1510 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
1511 lvalue, returning an rtx&.
1512 (DEP_CON): Analogous changes to DEP_PRO above.
1513 (SET_DEP_CON): Likewise.
1514
1515 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
1516 an lvalue to SET_DEP_CON.
1517 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
1518 (sd_copy_back_deps): Likewise for DEP_CON.
1519 (DEP_PRO): New function, adding a checked cast for now.
1520 (DEP_CON): Likewise.
1521 (SET_DEP_PRO): New function.
1522 (SET_DEP_CON): Likewise.
1523
1524 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
1525
1526 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
1527 (extra_options): Add i386/cygwin.opt.
1528 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
1529 (CPP_SPEC): Accept -pthread.
1530 (LINK_SPEC): Ditto.
1531 (GOMP_SELF_SPECS): Update comment.
1532 * config/i386/cygwin.opt: New file for -pthread flag.
1533
1534 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1535
1536 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
1537 * df.h (DF_REF_INSN): Convert from a macro to a function, so
1538 that we can return an rtx_insn *.
1539
1540 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
1541
1542 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
1543 when building executables, not DLLs. Add --large-address-aware
1544 under the same conditions.
1545 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
1546 when building executables, not DLLs. Add --large-address-aware
1547 under the same conditions when using -m32.
1548
1549 * config/i386/cygwin-stdint.h: Throughout, make type
1550 definitions dependent on target architecture, not host.
1551
1552 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1553
1554 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
1555 the return type from rtx to rtx_insn *, which will enable various
1556 conversions in followup patches. For now this is is done by a
1557 checked cast.
1558 (NEXT_INSN): Likewise.
1559 (SET_PREV_INSN): Convert to an inline function. This is intended
1560 for use as an lvalue, and so returns an rtx& to allow in-place
1561 modification.
1562 (SET_NEXT_INSN): Likewise.
1563
1564 2014-07-08 Mark Wielaard <mjw@redhat.com>
1565
1566 PR debug/59051
1567 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
1568
1569 2014-08-19 Marek Polacek <polacek@redhat.com>
1570
1571 PR c/61271
1572 * cgraphunit.c (handle_alias_pairs): Fix condition.
1573
1574 2014-08-19 Richard Biener <rguenther@suse.de>
1575
1576 * gimple-fold.c (fold_gimple_assign): Properly build a
1577 null-pointer constant when devirtualizing addresses.
1578
1579 2014-07-07 Mark Wielaard <mjw@redhat.com>
1580
1581 * dwarf2out.c (decl_quals): New function.
1582 (modified_type_die): Take one cv_quals argument instead of two,
1583 one for const and one for volatile.
1584 (add_type_attribute): Likewise.
1585 (generic_parameter_die): Call add_type_attribute with one modifier
1586 argument.
1587 (base_type_for_mode): Likewise.
1588 (add_bounds_info): Likewise.
1589 (add_subscript_info): Likewise.
1590 (gen_array_type_die): Likewise.
1591 (gen_descr_array_type_die): Likewise.
1592 (gen_entry_point_die): Likewise.
1593 (gen_enumeration_type_die): Likewise.
1594 (gen_formal_parameter_die): Likewise.
1595 (gen_subprogram_die): Likewise.
1596 (gen_variable_die): Likewise.
1597 (gen_const_die): Likewise.
1598 (gen_field_die): Likewise.
1599 (gen_pointer_type_die): Likewise.
1600 (gen_reference_type_die): Likewise.
1601 (gen_ptr_to_mbr_type_die): Likewise.
1602 (gen_inheritance_die): Likewise.
1603 (gen_subroutine_type_die): Likewise.
1604 (gen_typedef_die): Likewise.
1605 (force_type_die): Likewise.
1606
1607 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1608
1609 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
1610 if unset.
1611 * configure: Regenerate.
1612
1613 2014-08-19 Richard Biener <rguenther@suse.de>
1614
1615 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
1616 DECL_EXTERNALs in BLOCKs as non-references.
1617 * tree-streamer-out.c (streamer_write_chain): Likewise.
1618
1619 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
1620 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1621 Anna Tikhonova <anna.tikhonova@intel.com>
1622 Ilya Tocar <ilya.tocar@intel.com>
1623 Andrey Turetskiy <andrey.turetskiy@intel.com>
1624 Ilya Verbin <ilya.verbin@intel.com>
1625 Kirill Yukhin <kirill.yukhin@intel.com>
1626 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1627
1628 * config/i386/sse.md
1629 (define_mode_iterator VI48_AVX512F): Delete.
1630 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
1631 (define_mode_iterator VI2_AVX512VL): Ditto.
1632 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
1633 Delete.
1634 (define_insn
1635 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
1636 New.
1637 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
1638 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
1639 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1640 with VI48_AVX512F_AVX512VL): New.
1641 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1642 with VI2_AVX512VL): Ditto.
1643
1644 2014-08-19 Marek Polacek <polacek@redhat.com>
1645
1646 * doc/invoke.texi: Document -Wc99-c11-compat.
1647
1648 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1649
1650 * rtl.h (PREV_INSN): Split macro in two: the existing one,
1651 for rvalues, and...
1652 (SET_PREV_INSN): New macro, for use as an lvalue.
1653 (NEXT_INSN, SET_NEXT_INSN): Likewise.
1654
1655 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
1656 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
1657 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1658 (fixup_abnormal_edges): Likewise.
1659 (unlink_insn_chain): Likewise.
1660 (fixup_reorder_chain): Likewise.
1661 (cfg_layout_delete_block): Likewise.
1662 (cfg_layout_merge_blocks): Likewise.
1663 * combine.c (update_cfg_for_uncondjump): Likewise.
1664 * emit-rtl.c (link_insn_into_chain): Likewise.
1665 (remove_insn): Likewise.
1666 (delete_insns_since): Likewise.
1667 (reorder_insns_nobb): Likewise.
1668 (emit_insn_after_1): Likewise.
1669 * final.c (rest_of_clean_state): Likewise.
1670 (final_scan_insn): Likewise.
1671 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
1672 * haifa-sched.c (concat_note_lists): Likewise.
1673 (remove_notes): Likewise.
1674 (restore_other_notes): Likewise.
1675 (move_insn): Likewise.
1676 (unlink_bb_notes): Likewise.
1677 (restore_bb_notes): Likewise.
1678 * jump.c (delete_for_peephole): Likewise.
1679 * optabs.c (emit_libcall_block_1): Likewise.
1680 * reorg.c (emit_delay_sequence): Likewise.
1681 (fill_simple_delay_slots): Likewise.
1682 * sel-sched-ir.c (sel_move_insn): Likewise.
1683 (sel_remove_insn): Likewise.
1684 (get_bb_note_from_pool): Likewise.
1685 * sel-sched.c (move_nop_to_previous_block): Likewise.
1686
1687 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
1688 * config/c6x/c6x.c (gen_one_bundle): Likewise.
1689 (c6x_gen_bundles): Likewise.
1690 (hwloop_optimize): Likewise.
1691 * config/frv/frv.c (frv_function_prologue): Likewise.
1692 (frv_register_nop): Likewise.
1693 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
1694 (ia64_reorg): Likewise.
1695 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
1696 (mep_make_bundle): Likewise.
1697 (mep_bundle_insns): Likewise.
1698 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1699 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
1700 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
1701
1702 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1703
1704 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
1705 return type from rtx to rtx_insn *.
1706 (BB_END): Likewise.
1707 (BB_HEADER): Likewise.
1708 (BB_FOOTER): Likewise.
1709 (SET_BB_HEAD): Convert to a function.
1710 (SET_BB_END): Likewise.
1711 (SET_BB_HEADER): Likewise.
1712 (SET_BB_FOOTER): Likewise.
1713
1714 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
1715 Strengthen the return type from rtx to rtx_insn *. For now, this
1716 is done by adding a checked cast, but this will eventually
1717 become a field lookup.
1718 (BB_END): Likewise.
1719 (BB_HEADER): Likewise.
1720 (BB_FOOTER): Likewise.
1721 (SET_BB_HEAD): New function, from macro of same name. This is
1722 intended for use as an lvalue, and so returns an rtx& to allow
1723 in-place modification.
1724 (SET_BB_END): Likewise.
1725 (SET_BB_HEADER): Likewise.
1726 (SET_BB_FOOTER): Likewise.
1727
1728 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1729
1730 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
1731 for rvalues, and...
1732 (SET_BB_HEAD): New macro, for use as a lvalue.
1733 (BB_END, SET_BB_END): Likewise.
1734 (BB_HEADER, SET_BB_HEADER): Likewise.
1735 (BB_FOOTER, SET_BB_FOOTER): Likewise.
1736
1737 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
1738 of BB_* macros into SET_BB_* macros.
1739 (fix_crossing_unconditional_branches): Likewise.
1740 * caller-save.c (save_call_clobbered_regs): Likewise.
1741 (insert_one_insn): Likewise.
1742 * cfgbuild.c (find_bb_boundaries): Likewise.
1743 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1744 (outgoing_edges_match): Likewise.
1745 (try_optimize_cfg): Likewise.
1746 * cfgexpand.c (expand_gimple_cond): Likewise.
1747 (expand_gimple_tailcall): Likewise.
1748 (expand_gimple_basic_block): Likewise.
1749 (construct_exit_block): Likewise.
1750 * cfgrtl.c (delete_insn): Likewise.
1751 (create_basic_block_structure): Likewise.
1752 (rtl_delete_block): Likewise.
1753 (rtl_split_block): Likewise.
1754 (emit_nop_for_unique_locus_between): Likewise.
1755 (rtl_merge_blocks): Likewise.
1756 (block_label): Likewise.
1757 (try_redirect_by_replacing_jump): Likewise.
1758 (emit_barrier_after_bb): Likewise.
1759 (fixup_abnormal_edges): Likewise.
1760 (record_effective_endpoints): Likewise.
1761 (relink_block_chain): Likewise.
1762 (fixup_reorder_chain): Likewise.
1763 (fixup_fallthru_exit_predecessor): Likewise.
1764 (cfg_layout_duplicate_bb): Likewise.
1765 (cfg_layout_split_block): Likewise.
1766 (cfg_layout_delete_block): Likewise.
1767 (cfg_layout_merge_blocks): Likewise.
1768 * combine.c (update_cfg_for_uncondjump): Likewise.
1769 * emit-rtl.c (add_insn_after): Likewise.
1770 (remove_insn): Likewise.
1771 (reorder_insns): Likewise.
1772 (emit_insn_after_1): Likewise.
1773 * haifa-sched.c (get_ebb_head_tail): Likewise.
1774 (restore_other_notes): Likewise.
1775 (move_insn): Likewise.
1776 (sched_extend_bb): Likewise.
1777 (fix_jump_move): Likewise.
1778 * ifcvt.c (noce_process_if_block): Likewise.
1779 (dead_or_predicable): Likewise.
1780 * ira.c (update_equiv_regs): Likewise.
1781 * reg-stack.c (change_stack): Likewise.
1782 * sel-sched-ir.c (sel_move_insn): Likewise.
1783 * sel-sched.c (move_nop_to_previous_block): Likewise.
1784
1785 * config/c6x/c6x.c (hwloop_optimize): Likewise.
1786 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1787
1788 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1789
1790 * rtl.h (for_each_rtx_in_insn): New function.
1791 * rtlanal.c (for_each_rtx_in_insn): Likewise.
1792
1793 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1794
1795 * coretypes.h (class rtx_insn): Add forward declaration.
1796
1797 * rtl.h: Include is-a.h.
1798 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
1799 workaround to ensure gengtype knows inheritance is occurring,
1800 whilst continuing to use the pre-existing special-casing for
1801 rtx_def.
1802 (class rtx_insn): New subclass of rtx_def, adding the
1803 invariant that we're dealing with something we can sanely use
1804 INSN_UID, NEXT_INSN, PREV_INSN on.
1805 (is_a_helper <rtx_insn *>::test): New.
1806 (is_a_helper <const rtx_insn *>::test): New.
1807
1808 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1809
1810 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
1811
1812 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1813
1814 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
1815 comdats as extern.
1816
1817 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1818
1819 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
1820 to BUILT_IN_UNREACHABLE.
1821
1822 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
1823
1824 PR target/62011
1825 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1826 New tune flag.
1827 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1828 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1829 (ffs<mode>2): Do not expand with tzcnt for
1830 TARGET_AVOID_FALSE_DEP_FOR_BMI.
1831 (ffssi2_no_cmove): Ditto.
1832 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1833 (ctz<mode>2): New expander.
1834 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1835 (*ctz<mode>2_falsedep): New insn.
1836 (*ctz<mode>2): Rename from ctz<mode>2.
1837 (clz<mode>2_lzcnt): New expander.
1838 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1839 (*clz<mode>2_lzcnt_falsedep): New insn.
1840 (*clz<mode>2): Rename from ctz<mode>2.
1841 (popcount<mode>2): New expander.
1842 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1843 (*popcount<mode>2_falsedep): New insn.
1844 (*popcount<mode>2): Rename from ctz<mode>2.
1845 (*popcount<mode>2_cmp): Remove.
1846 (*popcountsi2_cmp_zext): Ditto.
1847
1848 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
1849
1850 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
1851 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
1852 * config/microblaze/microblaze.h
1853 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
1854
1855 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
1856
1857 PR other/62168
1858 * configure.ac: Set install_gold_as_default to no for
1859 --enable-gold=no.
1860 * configure: Regenerated.
1861
1862 2014-08-18 Roman Gareev <gareevroman@gmail.com>
1863
1864 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
1865 * config.in: Add undef of HAVE_isl.
1866 * configure: Regenerate.
1867 * configure.ac: Add definition of HAVE_isl.
1868 * graphite-blocking.c: Add checking of HAVE_isl.
1869 * graphite-dependences.c: Likewise.
1870 * graphite-interchange.c: Likewise.
1871 * graphite-isl-ast-to-gimple.c: Likewise.
1872 * graphite-optimize-isl.c: Likewise.
1873 * graphite-poly.c: Likewise.
1874 * graphite-scop-detection.c: Likewise.
1875 * graphite-sese-to-poly.c: Likewise.
1876 * graphite.c: Likewise.
1877 * toplev.c: Replace the checking of HAVE_cloog with the checking
1878 of HAVE_isl.
1879
1880 2014-08-18 Richard Biener <rguenther@suse.de>
1881
1882 PR tree-optimization/62090
1883 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
1884 (fold_builtin_3): Do not fold snprintf.
1885 (fold_builtin_4): Likewise.
1886 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
1887 moved from builtins.c.
1888 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
1889 (gimple_fold_builtin): Do not fold sprintf here.
1890
1891 2014-08-18 Richard Biener <rguenther@suse.de>
1892
1893 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
1894 code to ...
1895 (maybe_canonicalize_mem_ref_addr): ... this function.
1896 (fold_stmt_1): Apply it here before all simplification.
1897
1898 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
1899
1900 PR ipa/61800
1901 * cgraph.h (cgraph_node::create_indirect_edge): Add
1902 compute_indirect_info param.
1903 * cgraph.c (cgraph_node::create_indirect_edge): Compute
1904 indirect_info only when it is required.
1905 * cgraphclones.c (cgraph_clone_edge): Do not recompute
1906 indirect_info fore cloned indirect edge.
1907
1908 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1909 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1910 Anna Tikhonova <anna.tikhonova@intel.com>
1911 Ilya Tocar <ilya.tocar@intel.com>
1912 Andrey Turetskiy <andrey.turetskiy@intel.com>
1913 Ilya Verbin <ilya.verbin@intel.com>
1914 Kirill Yukhin <kirill.yukhin@intel.com>
1915 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1916
1917 * config/i386/sse.md
1918 (define_mode_iterator VI8_AVX2_AVX512BW): New.
1919 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
1920
1921 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1922 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1923 Anna Tikhonova <anna.tikhonova@intel.com>
1924 Ilya Tocar <ilya.tocar@intel.com>
1925 Andrey Turetskiy <andrey.turetskiy@intel.com>
1926 Ilya Verbin <ilya.verbin@intel.com>
1927 Kirill Yukhin <kirill.yukhin@intel.com>
1928 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1929
1930 * config/i386/sse.md
1931 (define_mode_iterator VF1_AVX512VL): New.
1932 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
1933 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
1934 New.
1935
1936 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1937 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1938 Anna Tikhonova <anna.tikhonova@intel.com>
1939 Ilya Tocar <ilya.tocar@intel.com>
1940 Andrey Turetskiy <andrey.turetskiy@intel.com>
1941 Ilya Verbin <ilya.verbin@intel.com>
1942 Kirill Yukhin <kirill.yukhin@intel.com>
1943 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1944
1945 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
1946 * config/i386/i386.md
1947 (define_code_iterator any_float): New.
1948 (define_code_attr floatsuffix): New.
1949 * config/i386/sse.md
1950 (define_mode_iterator VF1_128_256VL): New.
1951 (define_mode_iterator VF2_512_256VL): New.
1952 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
1953 TARGET check.
1954 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
1955 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
1956 New.
1957 (define_mode_attr qq2pssuff): New.
1958 (define_mode_attr sselongvecmode): New.
1959 (define_mode_attr sselongvecmodelower): New.
1960 (define_mode_attr sseintvecmode3): New.
1961 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
1962 New.
1963 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
1964 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
1965 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
1966 (define_insn "ufloatv2siv2df2<mask_name>"): New.
1967
1968 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1969 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1970 Anna Tikhonova <anna.tikhonova@intel.com>
1971 Ilya Tocar <ilya.tocar@intel.com>
1972 Andrey Turetskiy <andrey.turetskiy@intel.com>
1973 Ilya Verbin <ilya.verbin@intel.com>
1974 Kirill Yukhin <kirill.yukhin@intel.com>
1975 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1976
1977 * config/i386/sse.md
1978 (define_mode_iterator VF2_AVX512VL): New.
1979 (define_mode_attr sseintvecmode2): New.
1980 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
1981 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
1982 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
1983 (define_insn
1984 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
1985 Ditto.
1986 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1987 Ditto.
1988 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1989 Ditto.
1990
1991 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1992 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1993 Anna Tikhonova <anna.tikhonova@intel.com>
1994 Ilya Tocar <ilya.tocar@intel.com>
1995 Andrey Turetskiy <andrey.turetskiy@intel.com>
1996 Ilya Verbin <ilya.verbin@intel.com>
1997 Kirill Yukhin <kirill.yukhin@intel.com>
1998 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1999
2000 * config/i386/i386.md
2001 (define_insn "*movoi_internal_avx"): Add evex version.
2002 (define_insn "*movti_internal"): Ditto.
2003
2004 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2005 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2006 Anna Tikhonova <anna.tikhonova@intel.com>
2007 Ilya Tocar <ilya.tocar@intel.com>
2008 Andrey Turetskiy <andrey.turetskiy@intel.com>
2009 Ilya Verbin <ilya.verbin@intel.com>
2010 Kirill Yukhin <kirill.yukhin@intel.com>
2011 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2012
2013 * config/i386/i386.md
2014 (define_attr "isa"): Add avx512dq, noavx512dq.
2015 (define_attr "enabled"): Ditto.
2016 * config/i386/sse.md
2017 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
2018
2019 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2020 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2021 Anna Tikhonova <anna.tikhonova@intel.com>
2022 Ilya Tocar <ilya.tocar@intel.com>
2023 Andrey Turetskiy <andrey.turetskiy@intel.com>
2024 Ilya Verbin <ilya.verbin@intel.com>
2025 Kirill Yukhin <kirill.yukhin@intel.com>
2026 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2027
2028 * config/i386/i386.c
2029 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
2030 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
2031 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
2032 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
2033 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
2034 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
2035 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
2036 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
2037 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
2038 * config/i386/sse.md
2039 (define_mode_iterator VMOVE): Allow V4TI mode.
2040 (define_mode_iterator V_AVX512VL): New.
2041 (define_mode_iterator V): New handling for AVX512VL.
2042 (define_insn "avx512f_load<mode>_mask"): Delete.
2043 (define_insn "<avx512>_load<mode>_mask"): New.
2044 (define_insn "avx512f_store<mode>_mask"): Delete.
2045 (define_insn "<avx512>_store<mode>_mask"): New.
2046
2047
2048 2014-08-18 Yury Gribov <y.gribov@samsung.com>
2049
2050 PR sanitizer/62089
2051 * asan.c (instrument_derefs): Fix bitfield check.
2052
2053 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2054
2055 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
2056 * config/rs6000/htm.md (ttest): Remove clobber.
2057 * config/rs6000/predicates.md (any_mask_operand): New predicate.
2058 (and_operand): Reformat.
2059 (and_2rld_operand): New predicate.
2060 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
2061 parameter.
2062 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
2063 parameter. Handle AND directly.
2064 (rs6000_split_logical_di): Remove last parameter.
2065 (rs6000_split_logical): Remove last parameter. Remove obsolete
2066 comment.
2067 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
2068 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
2069 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
2070 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
2071 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
2072 and 5 anonymous splitters): Delete.
2073 (and<mode>3): New expander.
2074 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
2075 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
2076 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
2077 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
2078 (floatdisf2_internal1): Remove clobbers.
2079 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
2080 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
2081 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
2082 (and<mode>3 for BOOL_128): Remove clobber.
2083 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
2084 rs6000_split_logical.
2085 (*bool<mode>3_internal for BOOL_128): Adjust call of
2086 rs6000_split_logical.
2087 (*boolc<mode>3_internal1 for BOOL_128,
2088 *boolc<mode>3_internal2 for BOOL_128,
2089 *boolcc<mode>3_internal1 for BOOL_128,
2090 *boolcc<mode>3_internal2 for BOOL_128,
2091 *eqv<mode>3_internal1 for BOOL_128,
2092 *eqv<mode>3_internal2 for BOOL_128,
2093 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
2094 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
2095 clobber.
2096 (*vec_reload_and_reg_<mptrsize>): Delete.
2097
2098 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2099
2100 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
2101 and split, *boolccsi3_internal3 and split): Delete.
2102 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
2103 *boolccdi3_internal3 and split): Delete.
2104 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
2105 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
2106
2107 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2108
2109 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
2110 and split, *boolcsi3_internal3 and split): Delete.
2111 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
2112 *boolcdi3_internal3 and split): Delete.
2113 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
2114
2115 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2116
2117 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
2118 <'u'>: Also support printing the low-order 16 bits.
2119 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
2120 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
2121 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
2122 *booldi3_internal3 and split): Delete.
2123 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
2124 *bool<mode>3_dot2): New.
2125 (two anonymous define_splits for non_logical_cint_operand): Merge.
2126
2127 2014-08-17 Marek Polacek <polacek@redhat.com>
2128 Manuel López-Ibáñez <manu@gcc.gnu.org>
2129
2130 PR c/62059
2131 * diagnostic.c (adjust_line): Add gcc_checking_assert.
2132 (diagnostic_show_locus): Don't print caret diagnostic
2133 if a column is larger than the line_width.
2134
2135 2014-08-17 Roman Gareev <gareevroman@gmail.com>
2136
2137 * common.opt: Make the ISL AST generator to be the main code generator
2138 of Graphite.
2139
2140 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
2141
2142 * wide-int.h (generic_wide_int): Declare as class instead of struct.
2143
2144 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
2145
2146 PR target/61641
2147 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
2148 Declare.
2149 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
2150 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
2151 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
2152 Define.
2153 * config/pa/pa.md (begin_brtab): Delete insn.
2154 (end_brtab): Likewise.
2155
2156 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2157
2158 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
2159
2160 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
2161
2162 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
2163 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
2164 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
2165 (get_dynamic_type): Remove.
2166 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
2167 (clear_speculation): Bring to ipa-deivrt.h
2168 (get_class_context): Rename to ...
2169 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
2170 (contains_type_p): Update.
2171 (get_dynamic_type): Rename to ...
2172 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
2173 (possible_polymorphic_call_targets): UPdate.
2174 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
2175 * ipa-prop.c (ipa_analyze_call_uses): Update.
2176
2177 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
2178
2179 * doc/invoke.texi (SH options): Document missing processor variant
2180 options. Remove references to Hitachi. Undocument deprecated mspace
2181 option.
2182
2183 2014-08-15 Jason Merrill <jason@redhat.com>
2184
2185 * tree.c (type_hash_canon): Uncomment assert.
2186
2187 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2188
2189 * input.h (in_system_header_at): Add comment.
2190
2191 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2192
2193 PR fortran/44054
2194 * diagnostic.c (build_message_string): Make it extern.
2195 * diagnostic.h (build_message_string): Make it extern.
2196
2197 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
2198
2199 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
2200 load/store from/to non-floating class pseudo.
2201
2202 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2203
2204 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
2205
2206 2014-08-15 Richard Biener <rguenther@suse.de>
2207
2208 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
2209 (get_constraint_for_ssa_var): Remove dead code.
2210 (get_constraint_for_1): Adjust.
2211 (find_what_var_points_to): Likewise.
2212 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
2213
2214 2014-08-15 Ilya Tocar <tocarip@gmail.com>
2215
2216 PR target/61878
2217 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
2218 (_mm512_mask_cmpge_epu32_mask): Ditto.
2219 (_mm512_cmpge_epu32_mask): Ditto.
2220 (_mm512_mask_cmpge_epi64_mask): Ditto.
2221 (_mm512_cmpge_epi64_mask): Ditto.
2222 (_mm512_mask_cmpge_epu64_mask): Ditto.
2223 (_mm512_cmpge_epu64_mask): Ditto.
2224 (_mm512_mask_cmple_epi32_mask): Ditto.
2225 (_mm512_cmple_epi32_mask): Ditto.
2226 (_mm512_mask_cmple_epu32_mask): Ditto.
2227 (_mm512_cmple_epu32_mask): Ditto.
2228 (_mm512_mask_cmple_epi64_mask): Ditto.
2229 (_mm512_cmple_epi64_mask): Ditto.
2230 (_mm512_mask_cmple_epu64_mask): Ditto.
2231 (_mm512_cmple_epu64_mask): Ditto.
2232 (_mm512_mask_cmplt_epi32_mask): Ditto.
2233 (_mm512_cmplt_epi32_mask): Ditto.
2234 (_mm512_mask_cmplt_epu32_mask): Ditto.
2235 (_mm512_cmplt_epu32_mask): Ditto.
2236 (_mm512_mask_cmplt_epi64_mask): Ditto.
2237 (_mm512_cmplt_epi64_mask): Ditto.
2238 (_mm512_mask_cmplt_epu64_mask): Ditto.
2239 (_mm512_cmplt_epu64_mask): Ditto.
2240 (_mm512_mask_cmpneq_epi32_mask): Ditto.
2241 (_mm512_mask_cmpneq_epu32_mask): Ditto.
2242 (_mm512_cmpneq_epu32_mask): Ditto.
2243 (_mm512_mask_cmpneq_epi64_mask): Ditto.
2244 (_mm512_cmpneq_epi64_mask): Ditto.
2245 (_mm512_mask_cmpneq_epu64_mask): Ditto.
2246 (_mm512_cmpneq_epu64_mask): Ditto.
2247 (_mm512_castpd_ps): Ditto.
2248 (_mm512_castpd_si512): Ditto.
2249 (_mm512_castps_pd): Ditto.
2250 (_mm512_castps_si512): Ditto.
2251 (_mm512_castsi512_ps): Ditto.
2252 (_mm512_castsi512_pd): Ditto.
2253 (_mm512_castpd512_pd128): Ditto.
2254 (_mm512_castps512_ps128): Ditto.
2255 (_mm512_castsi512_si128): Ditto.
2256 (_mm512_castpd512_pd256): Ditto.
2257 (_mm512_castps512_ps256): Ditto.
2258 (_mm512_castsi512_si256): Ditto.
2259 (_mm512_castpd128_pd512): Ditto.
2260 (_mm512_castps128_ps512): Ditto.
2261 (_mm512_castsi128_si512): Ditto.
2262 (_mm512_castpd256_pd512): Ditto.
2263 (_mm512_castps256_ps512): Ditto.
2264 (_mm512_castsi256_si512): Ditto.
2265 (_mm512_cmpeq_epu32_mask): Ditto.
2266 (_mm512_mask_cmpeq_epu32_mask): Ditto.
2267 (_mm512_mask_cmpeq_epu64_mask): Ditto.
2268 (_mm512_cmpeq_epu64_mask): Ditto.
2269 (_mm512_cmpgt_epu32_mask): Ditto.
2270 (_mm512_mask_cmpgt_epu32_mask): Ditto.
2271 (_mm512_mask_cmpgt_epu64_mask): Ditto.
2272 (_mm512_cmpgt_epu64_mask): Ditto.
2273 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
2274 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
2275 * config/i386/i386.c (enum ix86_builtins): Add
2276 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
2277 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
2278 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
2279 (bdesc_args): Add __builtin_ia32_si512_256si,
2280 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
2281 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
2282 __builtin_ia32_pd512_pd.
2283 (ix86_expand_args_builtin): Handle new FTYPEs.
2284 * config/i386/sse.md (castmode): Add 512-bit modes.
2285 (AVX512MODE2P): New.
2286 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
2287 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
2288
2289 2014-08-15 Richard Biener <rguenther@suse.de>
2290
2291 * fold-const.c (tree_swap_operands_p): Put all constants
2292 last, also strip sign-changing NOPs when considering further
2293 canonicalization. Canonicalize also when optimizing for size.
2294
2295 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2296
2297 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
2298 one_match > zero_match case to just before simple_sequence.
2299
2300 2014-08-15 Richard Biener <rguenther@suse.de>
2301
2302 * data-streamer.h (streamer_string_index, string_for_index):
2303 Remove.
2304 * data-streamer-out.c (streamer_string_index): Make static.
2305 * data-streamer-in.c (string_for_index): Likewise.
2306 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
2307 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
2308
2309 2014-08-15 Richard Biener <rguenther@suse.de>
2310
2311 PR tree-optimization/62031
2312 * tree-data-ref.c (dr_analyze_indices): Do not set
2313 DR_UNCONSTRAINED_BASE.
2314 (dr_may_alias_p): All indirect accesses have to go the
2315 formerly DR_UNCONSTRAINED_BASE path.
2316 * tree-data-ref.h (struct indices): Remove
2317 unconstrained_base member.
2318 (DR_UNCONSTRAINED_BASE): Remove.
2319
2320 2014-08-15 Jakub Jelinek <jakub@redhat.com>
2321
2322 PR middle-end/62092
2323 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
2324 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
2325 in OMP_CLAUSE_MAP in some outer target region.
2326
2327 2014-08-15 Bin Cheng <bin.cheng@arm.com>
2328
2329 * tree-ssa-loop-ivopts.c (ivopts_data): New field
2330 name_expansion_cache.
2331 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
2332 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
2333 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
2334 (difference_cannot_overflow_p): New parameter. Use affine
2335 expansion for equality check.
2336 (iv_elimination_compare_lt): Pass new argument.
2337
2338 2014-08-14 DJ Delorie <dj@redhat.com>
2339
2340 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
2341 variables to the accumulator.
2342
2343 * config/rl78/predicates.md (rl78_near_mem_operand): New.
2344 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
2345 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
2346 with far-far moves.
2347
2348 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
2349 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
2350 (umulqihi3_virt): Likewise.
2351 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
2352 (umulqihi3_real): Likewise.
2353
2354 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
2355
2356 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
2357
2358 PR tree-optimization/62091
2359 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
2360 function_entry_reached.
2361 (walk_aliased_vdefs): Clear it here.
2362 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
2363
2364 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
2365
2366 * ipa-utils.h (compare_virtual_tables): Declare.
2367 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
2368
2369 2014-08-14 Marek Polacek <polacek@redhat.com>
2370
2371 DR 458
2372 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
2373 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
2374
2375 2014-08-14 Tom de Vries <tom@codesourcery.com>
2376
2377 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
2378
2379 2014-08-14 Tom de Vries <tom@codesourcery.com>
2380
2381 PR rtl-optimization/62004
2382 PR rtl-optimization/62030
2383 * ifcvt.c (rtx_interchangeable_p): New function.
2384 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
2385 * emit-rtl.h (mem_attrs_eq_p): Declare.
2386
2387 2014-08-14 Roman Gareev <gareevroman@gmail.com>
2388
2389 * graphite-scop-detection.c:
2390 Add inclusion of cp-tree.h.
2391 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
2392 in case they are pointers to object types
2393
2394 2014-08-14 Richard Biener <rguenther@suse.de>
2395
2396 * BASE-VER: Change to 5.0.0
2397
2398 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2399 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2400 Anna Tikhonova <anna.tikhonova@intel.com>
2401 Ilya Tocar <ilya.tocar@intel.com>
2402 Andrey Turetskiy <andrey.turetskiy@intel.com>
2403 Ilya Verbin <ilya.verbin@intel.com>
2404 Kirill Yukhin <kirill.yukhin@intel.com>
2405 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2406
2407 * config/i386/sse.md (define_mode_attr avx512): New.
2408 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
2409 V4DI modes.
2410 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
2411 (define_mode_attr ssse3_avx2): Ditto.
2412 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
2413 (define_mode_attr avx2_avx512bw): New.
2414 (define_mode_attr ssedoublemodelower): New.
2415 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
2416 V32HI, V64QI modes.
2417 (define_mode_attr ssebytemode): Allow V8DI modes.
2418 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
2419 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
2420 (define_mode_attr ssePSmode2): New.
2421 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
2422 V16HI, V32HI modes.
2423 (define_mode_attr dbpsadbwmode): New.
2424 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
2425 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
2426 (vi8_sse4_1_avx2_avx512): New.
2427 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
2428 mode attribute.
2429 (define_mode_attr blendbits): Move before its immediate use.
2430
2431 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2432 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2433 Anna Tikhonova <anna.tikhonova@intel.com>
2434 Ilya Tocar <ilya.tocar@intel.com>
2435 Andrey Turetskiy <andrey.turetskiy@intel.com>
2436 Ilya Verbin <ilya.verbin@intel.com>
2437 Kirill Yukhin <kirill.yukhin@intel.com>
2438 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2439
2440 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
2441 * config/i386/subst.md
2442 (define_mode_iterator SUBST_V): Update.
2443 (define_mode_iterator SUBST_A): Ditto.
2444 (define_subst_attr "mask_operand7"): New.
2445 (define_subst_attr "mask_operand10"): New.
2446 (define_subst_attr "mask_operand_arg34") : New.
2447 (define_subst_attr "mask_expand_op3"): New.
2448 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
2449 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
2450 (define_subst_attr "mask_avx512vl_condition"): New.
2451 (define_subst_attr "round_mask_operand4"): Ditto.
2452 (define_subst_attr "round_mask_scalar_op3"): Delete.
2453 (define_subst_attr "round_mask_op4"): New.
2454 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
2455 V16SImode.
2456 (define_subst_attr "round_modev8sf_condition"): New.
2457 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
2458 <MODE>mode.
2459 (define_subst_attr "round_saeonly_mask_operand4"): New.
2460 (define_subst_attr "round_saeonly_mask_op4"): New.
2461 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
2462 V8DImode, V16SImode.
2463 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
2464 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
2465 (define_subst_attr "mask_expand4_args"): New.
2466 (define_subst "mask_expand4"): New.
2467
2468 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2469 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2470 Anna Tikhonova <anna.tikhonova@intel.com>
2471 Ilya Tocar <ilya.tocar@intel.com>
2472 Andrey Turetskiy <andrey.turetskiy@intel.com>
2473 Ilya Verbin <ilya.verbin@intel.com>
2474 Kirill Yukhin <kirill.yukhin@intel.com>
2475 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2476
2477 * config/i386/i386.md
2478 (define_attr "isa"): Add avx512bw,noavx512bw.
2479 (define_attr "enabled"): Ditto.
2480 (define_split): Add 32/64-bit mask logic.
2481 (define_insn "*k<logic>qi"): New.
2482 (define_insn "*k<logic>hi"): New.
2483 (define_insn "*anddi_1"): Add mask version.
2484 (define_insn "*andsi_1"): Ditto.
2485 (define_insn "*<code><mode>_1"): Ditto.
2486 (define_insn "*<code>hi_1"): Ditto.
2487 (define_insn "kxnor<mode>"): New.
2488 (define_insn "kunpcksi"): New.
2489 (define_insn "kunpckdi"): New.
2490 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
2491 (define_insn "*one_cmplhi2_1"): Ditto.
2492
2493 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2494 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2495 Anna Tikhonova <anna.tikhonova@intel.com>
2496 Ilya Tocar <ilya.tocar@intel.com>
2497 Andrey Turetskiy <andrey.turetskiy@intel.com>
2498 Ilya Verbin <ilya.verbin@intel.com>
2499 Kirill Yukhin <kirill.yukhin@intel.com>
2500 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2501
2502 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
2503 V32HImode.
2504
2505 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2506 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2507 Anna Tikhonova <anna.tikhonova@intel.com>
2508 Ilya Tocar <ilya.tocar@intel.com>
2509 Andrey Turetskiy <andrey.turetskiy@intel.com>
2510 Ilya Verbin <ilya.verbin@intel.com>
2511 Kirill Yukhin <kirill.yukhin@intel.com>
2512 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2513
2514 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
2515 registers.
2516 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
2517 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
2518 xmm/ymm16+ when availble.
2519 * config/i386/i386.h
2520 (HARD_REGNO_NREGS): Add mask regs.
2521 (VALID_AVX512F_REG_MODE): Ditto.
2522 (VALID_AVX512F_REG_MODE) : Define.
2523 (VALID_MASK_AVX512BW_MODE): Ditto.
2524 (reg_class) (MASK_REG_P(X)): Define.
2525 * config/i386/i386.md: Do not split long moves with mask register,
2526 use kmovb if avx512bw is availible.
2527 (movdi_internal): Handle mask registers.
2528
2529 2014-08-14 Richard Biener <rguenther@suse.de>
2530
2531 PR tree-optimization/62081
2532 * tree-ssa-loop.c (pass_fix_loops): New pass.
2533 (pass_tree_loop::gate): Do not fixup loops here.
2534 * tree-pass.h (make_pass_fix_loops): Declare.
2535 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
2536
2537 2014-08-14 Richard Biener <rguenther@suse.de>
2538
2539 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
2540 (type_hash_canon): ... this and avoid 2nd lookup for the add.
2541
2542 2014-08-14 Richard Biener <rguenther@suse.de>
2543
2544 PR tree-optimization/62090
2545 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
2546 (fold_builtin_2): Do not fold sprintf.
2547 (fold_builtin_3): Likewise.
2548 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
2549 moved from builtins.c.
2550 (gimple_fold_builtin): Fold sprintf.
2551
2552 2014-08-14 Richard Biener <rguenther@suse.de>
2553
2554 PR rtl-optimization/62079
2555 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
2556 run cleanup_cfg.
2557
2558 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
2559
2560 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
2561 current_function_decl.
2562
2563 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
2564
2565 * cgraph.c (cgraph_node::function_symbol): Fix wrong
2566 cgraph_function_node to cgraph_node::function_symbol
2567 refactoring.
2568
2569 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
2570
2571 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
2572 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
2573
2574 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
2575
2576 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
2577 warning.
2578
2579 2014-08-13 Roman Gareev <gareevroman@gmail.com>
2580
2581 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
2582 generator.
2583
2584 2014-08-12 Jakub Jelinek <jakub@redhat.com>
2585
2586 PR target/62025
2587 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
2588 any registers that are used in mem_insn.
2589
2590 2014-08-12 Steve Ellcey <sellcey@mips.com>
2591
2592 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
2593
2594 2014-08-12 Steve Ellcey <sellcey@mips.com>
2595
2596 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
2597 (MULTILIB_DIRNAMES): Ditto.
2598 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
2599 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
2600 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
2601 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
2602 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
2603 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
2604
2605 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2606
2607 PR target/61413
2608 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
2609 of __ARM_SIZEOF_WCHAR_T.
2610
2611 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2612
2613 PR target/62098
2614 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
2615 Remove unnecessary attributes.
2616
2617 2014-08-12 Yury Gribov <y.gribov@samsung.com>
2618
2619 * internal-fn.c (init_internal_fns): Fix off-by-one.
2620
2621 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2622 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2623 Anna Tikhonova <anna.tikhonova@intel.com>
2624 Ilya Tocar <ilya.tocar@intel.com>
2625 Andrey Turetskiy <andrey.turetskiy@intel.com>
2626 Ilya Verbin <ilya.verbin@intel.com>
2627 Kirill Yukhin <kirill.yukhin@intel.com>
2628 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2629
2630 * config/i386/i386.c (standard_sse_constant_opcode): Use
2631 vpxord/vpternlog if avx512 is availible.
2632
2633 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
2634
2635 PR middle-end/62103
2636 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
2637 bitfields, that is when size doesn't match the size of type or the
2638 size of the constructor.
2639
2640 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2641
2642 * config/rs6000/constraints.md (wh constraint): New constraint,
2643 for FP registers if direct move is available.
2644 (wi constraint): New constraint, for VSX/FP registers that can
2645 handle 64-bit integers.
2646 (wj constraint): New constraint for VSX/FP registers that can
2647 handle 64-bit integers for direct moves.
2648 (wk constraint): New constraint for VSX/FP registers that can
2649 handle 64-bit doubles for direct moves.
2650 (wy constraint): Make documentation match implementation.
2651
2652 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
2653 scalar_in_vmx_p field to simplify tests of whether SFmode or
2654 DFmode can go in the Altivec registers.
2655 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
2656 (rs6000_setup_reg_addr_masks): Likewise.
2657 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
2658 field, and wh/wi/wj/wk constraints.
2659 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
2660 the wh/wi/wj/wk constraints.
2661 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
2662 upper registers, prefer VSX registers unless the operation is a
2663 memory operation with REG+OFFSET addressing.
2664
2665 * config/rs6000/vsx.md (VSr mode attribute): Add support for
2666 DImode. Change SFmode to use ww constraint instead of d to allow
2667 SF registers in the upper registers.
2668 (VSr2): Likewise.
2669 (VSr3): Likewise.
2670 (VSr5): Fix thinko in comment.
2671 (VSa): New mode attribute that is an alternative to wa, that
2672 returns the VSX register class that a mode can go in, but may not
2673 be the preferred register class.
2674 (VS_64dm): New mode attribute for appropriate register classes for
2675 referencing 64-bit elements of vectors for direct moves and normal
2676 moves.
2677 (VS_64reg): Likewise.
2678 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
2679 register allocator to only registers the data type can handle.
2680 (vsx_le_perm_load_<mode>): Likewise.
2681 (vsx_le_perm_store_<mode>): Likewise.
2682 (vsx_xxpermdi2_le_<mode>): Likewise.
2683 (vsx_xxpermdi4_le_<mode>): Likewise.
2684 (vsx_lxvd2x2_le_<mode>): Likewise.
2685 (vsx_lxvd2x4_le_<mode>): Likewise.
2686 (vsx_stxvd2x2_le_<mode>): Likewise.
2687 (vsx_add<mode>3): Likewise.
2688 (vsx_sub<mode>3): Likewise.
2689 (vsx_mul<mode>3): Likewise.
2690 (vsx_div<mode>3): Likewise.
2691 (vsx_tdiv<mode>3_internal): Likewise.
2692 (vsx_fre<mode>2): Likewise.
2693 (vsx_neg<mode>2): Likewise.
2694 (vsx_abs<mode>2): Likewise.
2695 (vsx_nabs<mode>2): Likewise.
2696 (vsx_smax<mode>3): Likewise.
2697 (vsx_smin<mode>3): Likewise.
2698 (vsx_sqrt<mode>2): Likewise.
2699 (vsx_rsqrte<mode>2): Likewise.
2700 (vsx_tsqrt<mode>2_internal): Likewise.
2701 (vsx_fms<mode>4): Likewise.
2702 (vsx_nfma<mode>4): Likewise.
2703 (vsx_eq<mode>): Likewise.
2704 (vsx_gt<mode>): Likewise.
2705 (vsx_ge<mode>): Likewise.
2706 (vsx_eq<mode>_p): Likewise.
2707 (vsx_gt<mode>_p): Likewise.
2708 (vsx_ge<mode>_p): Likewise.
2709 (vsx_xxsel<mode>): Likewise.
2710 (vsx_xxsel<mode>_uns): Likewise.
2711 (vsx_copysign<mode>3): Likewise.
2712 (vsx_float<VSi><mode>2): Likewise.
2713 (vsx_floatuns<VSi><mode>2): Likewise.
2714 (vsx_fix_trunc<mode><VSi>2): Likewise.
2715 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
2716 (vsx_x<VSv>r<VSs>i): Likewise.
2717 (vsx_x<VSv>r<VSs>ic): Likewise.
2718 (vsx_btrunc<mode>2): Likewise.
2719 (vsx_b2trunc<mode>2): Likewise.
2720 (vsx_floor<mode>2): Likewise.
2721 (vsx_ceil<mode>2): Likewise.
2722 (vsx_<VS_spdp_insn>): Likewise.
2723 (vsx_xscvspdp): Likewise.
2724 (vsx_xvcvspuxds): Likewise.
2725 (vsx_float_fix_<mode>2): Likewise.
2726 (vsx_set_<mode>): Likewise.
2727 (vsx_extract_<mode>_internal1): Likewise.
2728 (vsx_extract_<mode>_internal2): Likewise.
2729 (vsx_extract_<mode>_load): Likewise.
2730 (vsx_extract_<mode>_store): Likewise.
2731 (vsx_splat_<mode>): Likewise.
2732 (vsx_xxspltw_<mode>): Likewise.
2733 (vsx_xxspltw_<mode>_direct): Likewise.
2734 (vsx_xxmrghw_<mode>): Likewise.
2735 (vsx_xxmrglw_<mode>): Likewise.
2736 (vsx_xxsldwi_<mode>): Likewise.
2737 (vsx_xscvdpspn): Tighten constraints to only use register classes
2738 the types use.
2739 (vsx_xscvspdpn): Likewise.
2740 (vsx_xscvdpspn_scalar): Likewise.
2741
2742 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
2743 wj, and wk constraints.
2744 (GPR_REG_CLASS_P): New helper macro for register classes targeting
2745 general purpose registers.
2746
2747 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
2748 direct moves.
2749 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
2750 DImode instead of wm. Use wk constraint for direct move of DFmode
2751 instead of wm.
2752 (extendsidi2_lfiwax): Likewise.
2753 (lfiwax): Likewise.
2754 (lfiwzx): Likewise.
2755 (movdi_internal64): Likewise.
2756
2757 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
2758 wk constraints. Make the wy constraint documentation match them
2759 implementation.
2760
2761 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
2762
2763 Replacement of isl_int by isl_val
2764 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
2765 (compute_bounds_for_param): use isl_val instead of isl_int
2766 (compute_bounds_for_loop): likewise
2767 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
2768 (build_linearized_memory_access): use isl_val instead of isl_int
2769 (pdr_stride_in_loop): likewise
2770 * graphite-optimize-isl.c:
2771 (getPrevectorMap): use isl_val instead of isl_int
2772 * graphite-poly.c:
2773 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
2774 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
2775 (extern the_isl_ctx): declare
2776 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
2777 (extract_affine_gmp): likewise
2778 (wrap): likewise
2779 (build_loop_iteration_domains): likewise
2780 (add_param_constraints): likewise
2781
2782 2014-08-11 Richard Biener <rguenther@suse.de>
2783
2784 PR tree-optimization/62075
2785 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
2786 handle uses in patterns.
2787
2788 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2789 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2790 Anna Tikhonova <anna.tikhonova@intel.com>
2791 Ilya Tocar <ilya.tocar@intel.com>
2792 Andrey Turetskiy <andrey.turetskiy@intel.com>
2793 Ilya Verbin <ilya.verbin@intel.com>
2794 Kirill Yukhin <kirill.yukhin@intel.com>
2795 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2796
2797 * common/config/i386/i386-common.c
2798 (OPTION_MASK_ISA_AVX512VL_SET): Define.
2799 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
2800 (ix86_handle_option): Handle OPT_mavx512vl.
2801 * config/i386/cpuid.h (bit_AVX512VL): Define.
2802 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
2803 set -mavx512vl accordingly.
2804 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2805 OPTION_MASK_ISA_AVX512VL.
2806 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
2807 (ix86_option_override_internal): Define PTA_AVX512VL, handle
2808 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
2809 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
2810 * config/i386/i386.h (TARGET_AVX512VL): Define.
2811 (TARGET_AVX512VL_P(x)): Ditto.
2812 * config/i386/i386.opt: Add mavx512vl.
2813
2814 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
2815
2816 PR tree-optimization/62073
2817 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
2818 a basic block.
2819
2820 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2821 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2822 Anna Tikhonova <anna.tikhonova@intel.com>
2823 Ilya Tocar <ilya.tocar@intel.com>
2824 Andrey Turetskiy <andrey.turetskiy@intel.com>
2825 Ilya Verbin <ilya.verbin@intel.com>
2826 Kirill Yukhin <kirill.yukhin@intel.com>
2827 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2828
2829 * common/config/i386/i386-common.c
2830 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
2831 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
2832 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
2833 (ix86_handle_option): Handle OPT_mavx512bw.
2834 * config/i386/cpuid.h (bit_AVX512BW): Define.
2835 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
2836 set -mavx512bw accordingly.
2837 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2838 OPTION_MASK_ISA_AVX512BW.
2839 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
2840 (ix86_option_override_internal): Define PTA_AVX512BW, handle
2841 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
2842 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
2843 * config/i386/i386.h (TARGET_AVX512BW): Define.
2844 (TARGET_AVX512BW_P(x)): Ditto.
2845 * config/i386/i386.opt: Add mavx512bw.
2846
2847 2014-08-11 Richard Biener <rguenther@suse.de>
2848
2849 PR tree-optimization/62070
2850 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
2851 Remove SSA checking.
2852
2853 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2854
2855 * asan.c (asan_check_flags): New enum.
2856 (build_check_stmt_with_calls): Removed function.
2857 (build_check_stmt): Split inlining logic to
2858 asan_expand_check_ifn.
2859 (instrument_derefs): Rename parameter.
2860 (instrument_mem_region_access): Rename parameter.
2861 (instrument_strlen_call): Likewise.
2862 (asan_expand_check_ifn): New function.
2863 (asan_instrument): Remove old code.
2864 (pass_sanopt::execute): Change handling of
2865 asan-instrumentation-with-call-threshold.
2866 (asan_clear_shadow): Fix formatting.
2867 (asan_function_start): Likewise.
2868 (asan_emit_stack_protection): Likewise.
2869 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
2870 Update description.
2871 * internal-fn.c (expand_ASAN_CHECK): New function.
2872 * internal-fn.def (ASAN_CHECK): New internal function.
2873 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
2874 Update description.
2875 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
2876 * tree.c: Small comment fix.
2877
2878 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2879
2880 * gimple.c (gimple_call_fnspec): Support internal functions.
2881 (gimple_call_return_flags): Use const.
2882 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
2883 * internal-fn.def: Add fnspec information.
2884 * internal-fn.h (internal_fn_fnspec): New function.
2885 (init_internal_fns): Declare new function.
2886 * internal-fn.c (internal_fn_fnspec_array): New global variable.
2887 (init_internal_fns): New function.
2888 * tree-core.h: Update macro call.
2889 * tree.c (build_common_builtin_nodes): Initialize internal fns.
2890
2891 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
2892
2893 * lto-streamer.h (struct output_block::symbol): Change from
2894 struct symtab_node to plain symtab_node.
2895 (referenced_from_this_partition_p): Change first parameter
2896 from struct symtab_node to plain symtab_node.
2897
2898 2014-08-10 Marek Polacek <polacek@redhat.com>
2899
2900 PR c/51849
2901 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
2902
2903 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
2904
2905 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
2906 DECL correctly; do not give up on types in static storage.
2907
2908 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
2909
2910 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
2911
2912 2014-08-09 Roman Gareev <gareevroman@gmail.com>
2913
2914 * graphite-isl-ast-to-gimple.c:
2915 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
2916
2917 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
2918
2919 2014-08-08 Guozhi Wei <carrot@google.com>
2920
2921 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
2922
2923 2014-08-08 Cary Coutant <ccoutant@google.com>
2924
2925 * dwarf2out.c (get_skeleton_type_unit): Remove.
2926 (output_skeleton_debug_sections): Remove skeleton type units.
2927 (output_comdat_type_unit): Likewise.
2928 (dwarf2out_finish): Likewise.
2929
2930 2014-08-07 Yi Yang <ahyangyi@google.com>
2931
2932 * predict.c (expr_expected_value_1): Remove the redundant assignment.
2933
2934 2014-08-08 Richard Biener <rguenther@suse.de>
2935
2936 * lto-streamer.h (struct lto_input_block): Make it a class
2937 with a constructor.
2938 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
2939 (struct lto_function_header, struct lto_simple_header,
2940 struct lto_simple_header_with_strings,
2941 struct lto_decl_header, struct lto_function_header): Make
2942 a simple inheritance hieararchy. Remove unused fields.
2943 (struct lto_asm_header): Remove.
2944 * lto-streamer-out.c (produce_asm): Adjust.
2945 (lto_output_toplevel_asms): Likewise.
2946 (produce_asm_for_decls): Likewise.
2947 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2948 * data-streamer-in.c (string_for_index): Likewise.
2949 * ipa-inline-analysis.c (inline_read_section): Likewise.
2950 * ipa-prop.c (ipa_prop_read_section): Likewise.
2951 (read_replacements_section): Likewise.
2952 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
2953 * lto-section-in.c (lto_create_simple_input_block): Likewise.
2954 (lto_destroy_simple_input_block): Likewise.
2955 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
2956 (lto_input_toplevel_asms): Likewise.
2957
2958 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2959 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2960 Anna Tikhonova <anna.tikhonova@intel.com>
2961 Ilya Tocar <ilya.tocar@intel.com>
2962 Andrey Turetskiy <andrey.turetskiy@intel.com>
2963 Ilya Verbin <ilya.verbin@intel.com>
2964 Kirill Yukhin <kirill.yukhin@intel.com>
2965 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2966
2967 * common/config/i386/i386-common.c
2968 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
2969 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
2970 (ix86_handle_option): Handle OPT_mavx512dq.
2971 * config/i386/cpuid.h (bit_AVX512DQ): Define.
2972 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
2973 set -mavx512dq accordingly.
2974 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2975 OPTION_MASK_ISA_AVX512DQ.
2976 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
2977 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
2978 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
2979 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
2980 * config/i386/i386.h (TARGET_AVX512DQ): Define.
2981 (TARGET_AVX512DQ_P(x)): Ditto.
2982 * config/i386/i386.opt: Add mavx512dq.
2983
2984 2014-08-08 Richard Biener <rguenther@suse.de>
2985
2986 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
2987 target_percent, target_percent_s): Export.
2988 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
2989 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
2990 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
2991 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
2992 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
2993 Move to gimple-fold.c.
2994 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
2995 strcat and strcpy.
2996 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
2997 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
2998 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
2999 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
3000 (rewrite_call_expr_array): Remove.
3001 (fold_builtin_sprintf_chk): Likewise.
3002 (fold_builtin_snprintf_chk): Likewise.
3003 (fold_builtin_varargs): Remove handling of sprintf_chk,
3004 vsprintf_chk, snprintf_chk and vsnprintf_chk.
3005 (gimple_fold_builtin_sprintf_chk): Remove.
3006 (gimple_fold_builtin_snprintf_chk): Likewise.
3007 (gimple_fold_builtin_varargs): Likewise.
3008 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
3009 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
3010 * gimple.c (gimple_seq_add_seq_without_update): New function.
3011 * gimple.h (gimple_seq_add_seq_without_update): Declare.
3012 * gimple-fold.c: Include output.h.
3013 (gsi_replace_with_seq_vops): New function, split out from ...
3014 (gimplify_and_update_call_from_tree): ... here.
3015 (replace_call_with_value): New function.
3016 (replace_call_with_call_and_fold): Likewise.
3017 (var_decl_component_p): Moved from builtins.c.
3018 (gimple_fold_builtin_memory_op): Moved from builtins.c
3019 fold_builtin_memory_op and rewritten to GIMPLE.
3020 (gimple_fold_builtin_memset): Likewise.
3021 (gimple_fold_builtin_strcpy): Likewise.
3022 (gimple_fold_builtin_strncpy): Likewise.
3023 (gimple_fold_builtin_strcat): Likewise.
3024 (gimple_fold_builtin_fputs): Likewise.
3025 (gimple_fold_builtin_memory_chk): Likewise.
3026 (gimple_fold_builtin_stxcpy_chk): Likewise.
3027 (gimple_fold_builtin_stxncpy_chk): Likewise.
3028 (gimple_fold_builtin_snprintf_chk): Likewise.
3029 (gimple_fold_builtin_sprintf_chk): Likewise.
3030 (gimple_fold_builtin_strlen): New function.
3031 (gimple_fold_builtin_with_strlen): New function split out from
3032 gimple_fold_builtin.
3033 (gimple_fold_builtin): Change signature and handle
3034 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
3035 here. Call gimple_fold_builtin_with_strlen.
3036 (gimple_fold_call): Adjust.
3037
3038 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
3039
3040 * calls.c (precompute_arguments): Check
3041 promoted_for_signed_and_unsigned_p and set the promoted mode.
3042 (promoted_for_signed_and_unsigned_p): New function.
3043 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
3044 and set the promoted mode.
3045 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
3046 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
3047 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
3048
3049
3050 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
3051
3052 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
3053 instead of SUBREG_PROMOTED_UNSIGNED_SET.
3054 (expand_call): Likewise.
3055 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
3056 to get promoted mode.
3057 * combine.c (record_promoted_value): Skip > 0 comparison with
3058 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
3059 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
3060 of SUBREG_PROMOTED_UNSIGNED_P.
3061 (convert_modes): Likewise.
3062 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
3063 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
3064 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
3065 SUBREG_PROMOTED_UNSIGNED_SET.
3066 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
3067 instead of SUBREG_PROMOTED_UNSIGNED_SET.
3068 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
3069 SUBREG_PROMOTED_SET.
3070 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
3071 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
3072 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
3073 of SUBREG_PROMOTED_UNSIGNED_P.
3074 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
3075 (SUBREG_PROMOTED_SET): New define.
3076 (SUBREG_PROMOTED_GET): Likewise.
3077 (SUBREG_PROMOTED_SIGN): Likewise.
3078 (SUBREG_PROMOTED_SIGNED_P): Likewise.
3079 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
3080 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
3081 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
3082 instead of SUBREG_PROMOTED_UNSIGNED_GET.
3083 (nonzero_bits1): Skip > 0 comparison with the results as
3084 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
3085 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
3086 of !SUBREG_PROMOTED_UNSIGNED_P.
3087 * simplify-rtx.c (simplify_unary_operation_1): Use new
3088 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
3089 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
3090 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
3091 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
3092
3093 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
3094
3095 * ipa-devirt.c: Include gimple-pretty-print.h
3096 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
3097 further tests.
3098 (decl_maybe_in_construction_p): Fix conditional on cdtor check
3099 (get_polymorphic_call_info): Fix return value
3100 (type_change_info): New sturcture based on ipa-prop
3101 variant.
3102 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
3103 based on ipa-prop variant.
3104 (extr_type_from_vtbl_ptr_store): New function
3105 based on ipa-prop variant.
3106 (record_known_type): New function.
3107 (check_stmt_for_type_change): New function.
3108 (get_dynamic_type): New function.
3109 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
3110 * tree-ssa-pre.c: ipa-utils.h
3111 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
3112 machinery; sanity check with ipa-prop devirtualization.
3113 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
3114 polymorphic flag.
3115
3116 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3117
3118 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
3119 * alias.c, cfgexpand.c, cgraphbuild.c,
3120 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
3121 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
3122 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
3123 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
3124 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
3125 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
3126 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
3127 dse.c, except.c, gengtype.c, gimple-expr.c,
3128 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
3129 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
3130 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
3131 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
3132 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
3133 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
3134 pointer-set.h.
3135 * pointer-set.c: Remove file.
3136 * pointer-set.h: Remove file.
3137
3138 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3139
3140 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
3141 * config/arm/types.md (f_sels, f_seld): Delete.
3142
3143 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3144
3145 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
3146 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
3147 (aarch64_movdi_<mode>high): Likewise.
3148 (aarch64_mov<mode>high_di): Likewise.
3149 (aarch64_movdi_<mode>low): Likewise.
3150 (aarch64_mov<mode>low_di): Likewise.
3151 (aarch64_movtilow_tilow): Likewise.
3152 Add comment explaining usage of fp,simd attributes and of
3153 TARGET_FLOAT and TARGET_SIMD.
3154
3155 2014-08-07 Ian Bolton <ian.bolton@arm.com>
3156 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3157
3158 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
3159 Use MOVN when one of the half-words is 0xffff.
3160
3161 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
3162
3163 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
3164
3165 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3166
3167 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
3168 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
3169 (rfs_str): String corresponding to RFS_* constants.
3170 (rank_for_schedule_stats_t): New typedef.
3171 (rank_for_schedule_stats): New static variable.
3172 (rfs_result): New static function.
3173 (rank_for_schedule): Track statistics for deciding heuristics.
3174 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
3175 static functions.
3176 (ready_sort): Use them for debug printouts.
3177 (schedule_block): Init statistics state. Print statistics on
3178 rank_for_schedule decisions.
3179
3180 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3181
3182 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
3183
3184 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
3185
3186 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
3187 constraint.
3188
3189 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3190
3191 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
3192 function to not conflict.
3193 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
3194 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
3195 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
3196 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
3197 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
3198 of pointer_map.
3199
3200 2014-08-07 Marek Polacek <polacek@redhat.com>
3201
3202 * fold-const.c (fold_binary_loc): Add folding of
3203 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
3204
3205 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
3206
3207 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
3208 instead of type size.
3209 (ASM_FINISH_DECLARE_OBJECT): Likewise.
3210
3211 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
3212
3213 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
3214 (*thumb1_movqi_insn): Likewise.
3215 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
3216
3217 2014-08-07 Tom de Vries <tom@codesourcery.com>
3218
3219 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
3220 (glibc_2_11_or_earlier): Remove effective-target keywords.
3221
3222 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
3223
3224 * config/arm/arm.c (bdesc_2arg): Fix typo.
3225 (arm_atomic_assign_expand_fenv): Remove The default implementation.
3226
3227 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
3228
3229 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
3230
3231 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
3232
3233 PR debug/61923
3234 * haifa-sched.c (advance_one_cycle): Fix dump.
3235 (schedule_block): Don't advance cycle if we are already at the
3236 beginning of the cycle.
3237
3238 2014-08-06 Martin Jambor <mjambor@suse.cz>
3239
3240 PR ipa/61393
3241 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
3242
3243 2014-08-06 Richard Biener <rguenther@suse.de>
3244
3245 PR lto/62034
3246 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
3247 SCCs here.
3248 (lto_input_tree): Pop SCCs here.
3249
3250 2014-08-06 Richard Biener <rguenther@suse.de>
3251
3252 PR tree-optimization/61320
3253 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
3254 handle misaligned loads.
3255
3256 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
3257
3258 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
3259 (aarch64_expand_vec_perm_const): Check for dup before zip.
3260
3261 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3262
3263 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
3264 CONST_INT_P instead of GET_CODE and compare.
3265 (aarch64_select_cc_mode): Likewise.
3266 (aarch64_print_operand): Likewise.
3267 (aarch64_rtx_costs): Likewise.
3268 (aarch64_simd_valid_immediate): Likewise.
3269 (aarch64_simd_check_vect_par_cnst_half): Likewise.
3270 (aarch64_simd_emit_pair_result_insn): Likewise.
3271
3272 2014-08-05 David Malcolm <dmalcolm@redhat.com>
3273
3274 * gdbhooks.py (find_gcc_source_dir): New helper function.
3275 (class PassNames): New class, locating and parsing passes.def.
3276 (class BreakOnPass): New command "break-on-pass".
3277
3278 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
3279
3280 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
3281 getting olde.
3282
3283 2014-08-05 Richard Biener <rguenther@suse.de>
3284
3285 PR rtl-optimization/61672
3286 * emit-rtl.h (mem_attrs_eq_p): Declare.
3287 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
3288 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
3289 * cfgcleanup.c (merge_memattrs): Likewise.
3290 Include emit-rtl.h.
3291
3292 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3293
3294 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
3295 rather than singleton vectors.
3296 (vqdmlsls_lane_s32): Likewise.
3297
3298 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3299
3300 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
3301 Use VSDQ_HSI mode iterator.
3302 (aarch64_sqrdmulh_laneq<mode>): Likewise.
3303 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
3304 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
3305 Use BUILTIN_VDQHS macro.
3306 (sqrdmulh_laneq): Likewise.
3307 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
3308 (vqdmlals_laneq_s32): Likewise.
3309 (vqdmlslh_laneq_s16): Likewise.
3310 (vqdmlsls_laneq_s32): Likewise.
3311 (vqdmulhh_laneq_s16): Likewise.
3312 (vqdmulhs_laneq_s32): Likewise.
3313 (vqrdmulhh_laneq_s16): Likewise.
3314 (vqrdmulhs_laneq_s32): Likewise.
3315
3316 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3317
3318 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
3319 (vmuld_laneq_f64): Likewise.
3320 (vmuls_laneq_f32): Likewise.
3321 (vmul_n_f64): Likewise.
3322 (vmuld_lane_f64): Reimplement in C.
3323 (vmuls_lane_f32): Likewise.
3324
3325 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3326
3327 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
3328 to reservation.
3329 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
3330
3331 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3332
3333 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
3334 (rbitsi2): Likewise.
3335 (*arm_rev): Set predicable and predicable_short_it attributes.
3336
3337 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3338
3339 * convert.c (convert_to_integer): Guard transformation to lrint by
3340 -fno-math-errno.
3341
3342 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
3343
3344 * config/aarch64/aarch64-builtins.c
3345 (aarch64_simd_builtin_type_mode): Delete.
3346 (v8qi_UP): Remap to V8QImode.
3347 (v4hi_UP): Remap to V4HImode.
3348 (v2si_UP): Remap to V2SImode.
3349 (v2sf_UP): Remap to V2SFmode.
3350 (v1df_UP): Remap to V1DFmode.
3351 (di_UP): Remap to DImode.
3352 (df_UP): Remap to DFmode.
3353 (v16qi_UP):V16QImode.
3354 (v8hi_UP): Remap to V8HImode.
3355 (v4si_UP): Remap to V4SImode.
3356 (v4sf_UP): Remap to V4SFmode.
3357 (v2di_UP): Remap to V2DImode.
3358 (v2df_UP): Remap to V2DFmode.
3359 (ti_UP): Remap to TImode.
3360 (ei_UP): Remap to EImode.
3361 (oi_UP): Remap to OImode.
3362 (ci_UP): Map to CImode.
3363 (xi_UP): Remap to XImode.
3364 (si_UP): Remap to SImode.
3365 (sf_UP): Remap to SFmode.
3366 (hi_UP): Remap to HImode.
3367 (qi_UP): Remap to QImode.
3368 (aarch64_simd_builtin_datum): Make mode a machine_mode.
3369 (VAR1): Build builtin name.
3370 (aarch64_init_simd_builtins): Remove dead code.
3371
3372 2014-08-05 Roman Gareev <gareevroman@gmail.com>
3373
3374 * graphite-isl-ast-to-gimple.c:
3375 (set_options): New function.
3376 (scop_to_isl_ast): Add calling of set_options.
3377
3378 2014-08-05 Jakub Jelinek <jakub@redhat.com>
3379
3380 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
3381 (analyze_iv_to_split_insn): Don't initialize them.
3382 (get_ivts_expr): Removed.
3383 (allocate_basic_variable, insert_base_initialization): Use
3384 SET_SRC instead of *get_ivts_expr.
3385 (split_iv): Use &SET_SRC instead of get_ivts_expr.
3386
3387 2014-08-05 Roman Gareev <gareevroman@gmail.com>
3388
3389 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
3390 (translate_isl_ast_for_loop): Add checking of the
3391 flag_loop_parallelize_all.
3392 (ast_build_before_for): New function.
3393 (scop_to_isl_ast): Add checking of the
3394 flag_loop_parallelize_all.
3395 * graphite-dependences.c: Move the defenition of the
3396 scop_get_dependences from graphite-optimize-isl.c to this file.
3397 (apply_schedule_on_deps): Add checking of the ux's emptiness.
3398 (carries_deps): Add checking of the x's value.
3399 * graphite-optimize-isl.c: Move the defenition of the
3400 scop_get_dependences to graphite-dependences.c.
3401 * graphite-poly.h: Add declarations of scop_get_dependences
3402 and carries_deps.
3403
3404 2014-08-04 Rohit <rohitarulraj@freescale.com>
3405
3406 PR target/60102
3407 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
3408 names.
3409 (alt_reg_names): Likewise.
3410 (rs6000_dwarf_register_span): For SPE high registers, replace
3411 dwarf register numbers with GCC hard register numbers.
3412 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
3413 (rs6000_dbx_register_number): For SPE high registers, return dwarf
3414 register number for the corresponding GCC hard register number.
3415 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
3416 newly added GCC hard register numbers for SPE high registers.
3417 (DWARF_FRAME_REGISTERS): Likewise.
3418 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
3419 (DWARF_FRAME_REGNUM): Likewise.
3420 (FIXED_REGISTERS): Likewise.
3421 (CALL_USED_REGISTERS): Likewise.
3422 (CALL_REALLY_USED_REGISTERS): Likewise.
3423 (REG_ALLOC_ORDER): Likewise.
3424 (enum reg_class): Likewise.
3425 (REG_CLASS_NAMES): Likewise.
3426 (REG_CLASS_CONTENTS): Likewise.
3427 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
3428
3429 2014-08-04 Richard Biener <rguenther@suse.de>
3430
3431 * gimple-fold.h (gimple_fold_builtin): Remove.
3432 * gimple-fold.c (gimple_fold_builtin): Make static.
3433 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
3434 fold_stmt, not gimple_fold_builtin.
3435
3436 2014-08-04 Martin Liska <mliska@suse.cz>
3437
3438 * cgraph.h (csi_end_p): Removed.
3439 (csi_next): Likewise.
3440 (csi_node): Likewise.
3441 (csi_start): Likewise.
3442 (cgraph_node_in_set_p): Likewise.
3443 (cgraph_node_set_size): Likewise.
3444 (vsi_end_p): Likewise.
3445 (vsi_next): Likewise.
3446 (vsi_node): Likewise.
3447 (vsi_start): Likewise.
3448 (varpool_node_set_size): Likewise.
3449 (cgraph_node_set_nonempty_p): Likewise.
3450 (varpool_node_set_nonempty_p): Likewise.
3451 * cgraphunit.c (cgraph_process_new_functions): vec replaces
3452 cgraph_node_set.
3453 * ipa-inline-transform.c: Likewise.
3454 * ipa-utils.c (cgraph_node_set_new): Removed.
3455 (cgraph_node_set_add): Likewise.
3456 (cgraph_node_set_remove): Likewise.
3457 (cgraph_node_set_find): Likewise.
3458 (dump_cgraph_node_set): Likewise.
3459 (debug_cgraph_node_set): Likewise.
3460 (free_cgraph_node_set): Likewise.
3461 (varpool_node_set_new): Likewise.
3462 (varpool_node_set_add): Likewise.
3463 (varpool_node_set_remove): Likewise.
3464 (varpool_node_set_find): Likewise.
3465 (dump_varpool_node_set): Likewise.
3466 (free_varpool_node_set): Likewise.
3467 (debug_varpool_node_set): Likewise.
3468 * tree-emutls.c (struct tls_var_data):
3469 (emutls_index): Removed.
3470 (emutls_decl): Likewise.
3471 (gen_emutls_addr): Function implementation uses newly added
3472 hash_map<varpool_node *, tls_var_data>.
3473 (clear_access_vars): Likewise.
3474 (create_emultls_var): Likewise.
3475 (ipa_lower_emutls): Likewise.
3476 (reset_access): New function.
3477
3478 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3479
3480 * config/i386/i386.c (ix86_option_override_internal): Add
3481 PTA_RDRND and PTA_MOVBE for bdver4.
3482
3483 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3484 James Greenhalgh <james.greenhalgh@arm.com>
3485
3486 * doc/md.texi (clrsb): Document.
3487 (clz): Change reference to x into operand 1.
3488 (ctz): Likewise.
3489 (popcount): Likewise.
3490
3491 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3492
3493 PR target/61713
3494 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
3495 move to subtarget in serial version if result is ignored.
3496
3497 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3498 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3499
3500 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
3501 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
3502 (sched_analyze_insn): Update use of try_group_insn to
3503 sched_macro_fuse_insns.
3504 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
3505 arguments that are not conditional jumps.
3506
3507 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3508
3509 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
3510 family information. Handle BTVER2 cpu with cpuid family value.
3511
3512 2014-08-04 Tom de Vries <tom@codesourcery.com>
3513
3514 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
3515 (glibc_2_11_or_earlier): Document effective-target keywords.
3516
3517 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
3518
3519 * ipa-devirt.c (odr_type_warn_count): Add type.
3520 (possible_polymorphic_call_targets): Set it.
3521 (ipa_devirt): Use it.
3522
3523 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
3524
3525 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
3526 Document.
3527 * ipa-devirt.c: Include hash-map.h
3528 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
3529 (clear_speculation): Break out of ...
3530 (get_class_context): ... here; speed up handling obviously useless
3531 speculations.
3532 (odr_type_warn_count, decl_warn_count): New structures.
3533 (final_warning_record): New structure.
3534 (final_warning_records): New static variable.
3535 (possible_polymorphic_call_targets): Cleanup handling of
3536 speculative info; do not build speculation when user do not care;
3537 record info about warnings when asked for.
3538 (add_decl_warning): New function.
3539 (type_warning_cmp): New function.
3540 (decl_warning_cmp): New function.
3541 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
3542 (gate): Enable pass when warnings are requested.
3543 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
3544 options.
3545
3546 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3547
3548 * hash-map.h (default_hashmap_traits::mark_key_deleted):
3549 Fix cast.
3550 (hash_map::remove): New method.
3551 (hash_map::traverse): New method.
3552 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
3553 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
3554 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
3555 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
3556 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
3557 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
3558 pointer_map.
3559
3560 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3561
3562 * hash-set.h: new File.
3563 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
3564 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
3565 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
3566 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
3567 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
3568 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
3569 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
3570 varpool.c: Use hash_set instead of pointer_set.
3571
3572 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
3573
3574 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
3575
3576 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3577
3578 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
3579 for frame access when strict_p is false.
3580
3581 2014-08-01 Renlin Li <renlin.li@arm.com>
3582 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3583
3584 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
3585 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
3586 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
3587 Declaration.
3588 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
3589 predicate.
3590 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
3591 aarch64_mem_pair_offset.
3592
3593 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3594
3595 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
3596 offset.
3597 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
3598 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
3599
3600 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
3601
3602 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
3603
3604 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
3605
3606 PR regression/61510
3607 * cgraphunit.c (analyze_functions): Use get_create rather than get
3608 for decls which are clones of abstract functions.
3609
3610 2014-08-01 Martin Liska <mliska@suse.cz>
3611
3612 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
3613 * ipa-prop.h (count_formal_params): Global function created from static.
3614 * ipa-prop.c (count_formal_params): Likewise.
3615 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
3616 profiles for semantically equivalent functions.
3617 * passes.c (do_per_function): If we load body of a function
3618 during WPA, this condition should behave same.
3619 * varpool.c (ctor_for_folding): More tolerant assert for variable
3620 aliases created during WPA.
3621
3622 2014-08-01 Martin Liska <mliska@suse.cz>
3623
3624 * doc/invoke.texi (Options That Control Optimization): Documentation
3625 for -foptimize-strlen introduced. Optimization levels default options
3626 fixed.
3627
3628 2014-08-01 Jakub Jelinek <jakub@redhat.com>
3629
3630 * opts.c (common_handle_option): Handle -fsanitize=alignment.
3631 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
3632 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
3633 type to bool.
3634 * stor-layout.h (min_align_of_type): New prototype.
3635 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
3636 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
3637 check.
3638 * ubsan.c: Include builtins.h.
3639 (ubsan_expand_bounds_ifn): Change return type to bool,
3640 always return true.
3641 (ubsan_expand_null_ifn): Change return type to bool, change
3642 argument to gimple_stmt_iterator *. Handle both null and alignment
3643 sanitization, take type from ckind argument's type rather than
3644 first argument.
3645 (instrument_member_call): Removed.
3646 (instrument_mem_ref): Remove t argument, add mem and base arguments.
3647 Handle both null and alignment sanitization, don't say whole
3648 struct access is member access. Build 3 argument IFN_UBSAN_NULL
3649 call instead of 2 argument.
3650 (instrument_null): Adjust instrument_mem_ref caller. Don't
3651 instrument calls here.
3652 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
3653 like SANITIZE_NULL.
3654 * stor-layout.c (min_align_of_type): New function.
3655 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
3656 Or it into SANITIZE_UNDEFINED.
3657 * doc/invoke.texi (-fsanitize=alignment): Document.
3658
3659 2014-07-31 Andi Kleen <ak@linux.intel.com>
3660
3661 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
3662
3663 2014-07-31 Andi Kleen <ak@linux.intel.com>
3664
3665 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
3666 inchash.
3667 (vn_reference_compute_hash): Dito.
3668 (vn_nary_op_compute_hash): Dito.
3669 (vn_phi_compute_hash): Dito.
3670 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
3671
3672 2014-07-31 Andi Kleen <ak@linux.intel.com>
3673
3674 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
3675 Rename to inchash:add_expr_commutative. Convert to inchash.
3676 (iterative_hash_hashable_expr): Rename to
3677 inchash:add_hashable_expr. Convert to inchash.
3678 (avail_expr_hash): Dito.
3679
3680 2014-07-31 Andi Kleen <ak@linux.intel.com>
3681
3682 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
3683 Convert to inchash.
3684
3685 2014-07-31 Andi Kleen <ak@linux.intel.com>
3686
3687 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
3688
3689 2014-07-31 Andi Kleen <ak@linux.intel.com>
3690
3691 * Makefile.in (OBJS): Add rtlhash.o
3692 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
3693 (loc_checksum): Dito.
3694 (loc_checksum_ordered): Dito.
3695 (hash_loc_operands): Dito.
3696 (hash_locs): Dito.
3697 (hash_loc_list): Dito.
3698 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
3699 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
3700 * rtlhash.c: New file.
3701 * rtlhash.h: New file.
3702
3703 2014-07-31 Andi Kleen <ak@linux.intel.com>
3704
3705 * inchash.h (inchash): Change inchash class to namespace.
3706 (class hash): ... Rename from inchash.
3707 (add_object): Move from macro to class template.
3708 * lto-streamer-out.c (hash_tree): Change inchash
3709 to inchash::hash.
3710 * tree.c (build_type_attribute_qual_variant): Dito.
3711 (type_hash_list): Dito.
3712 (attribute_hash_list): Dito.
3713 (iterative_hstate_expr): Rename to inchash::add_expr
3714 (build_range_type_1): Change inchash to inchash::hash
3715 and use hash::add_expr.
3716 (build_array_type_1): Dito.
3717 (build_function_type): Dito
3718 (build_method_type_directly): Dito.
3719 (build_offset_type): Dito.
3720 (build_complex_type): Dito.
3721 (make_vector_type): Dito.
3722 * tree.h (iterative_hash_expr): Dito.
3723
3724 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
3725
3726 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
3727
3728 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3729
3730 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
3731 correct alphabetical position.
3732 (vpaddd_f64): Rewrite using builtins.
3733 (vpaddd_s64): Move to correct alphabetical position.
3734 (vpaddd_u64): New.
3735
3736 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
3737
3738 PR target/61844
3739 * config/sh/sh.c (sh_legitimate_address_p,
3740 sh_legitimize_reload_address): Handle reg+reg address modes when
3741 ALLOW_INDEXED_ADDRESS is false.
3742 * config/sh/predicates.md (general_movsrc_operand,
3743 general_movdst_operand): Likewise.
3744
3745 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3746
3747 * config/aarch64/aarch64-builtins.c
3748 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
3749 BYTES_BIG_ENDIAN.
3750
3751 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3752
3753 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
3754 the generated mask based on BYTES_BIG_ENDIAN.
3755 (aarch64_simd_check_vect_par_cnst_half): New.
3756 * config/aarch64/aarch64-protos.h
3757 (aarch64_simd_check_vect_par_cnst_half): New.
3758 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
3759 the check out to aarch64_simd_check_vect_par_cnst_half.
3760 (vect_par_cnst_lo_half): Likewise.
3761 * config/aarch64/aarch64-simd.md
3762 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
3763 (move_hi_quad_<mode>): Always generate a low mask.
3764
3765 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3766
3767 * doc/invoke.texi (AVR Options): Add documentation about
3768 __AVR_DEVICE_NAME__ built-in macro.
3769
3770 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
3771
3772 PR target/61948
3773 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
3774 constraints are satisfied.
3775 (<shift>di3_neon): Likewise.
3776
3777 2014-07-31 Richard Biener <rguenther@suse.de>
3778
3779 PR tree-optimization/61964
3780 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
3781 by structural equality.
3782
3783 2014-07-31 Yury Gribov <y.gribov@samsung.com>
3784
3785 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
3786 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
3787 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
3788 New enums.
3789 * gcc.c (sanitize_spec_function): Support new option.
3790 (SANITIZER_SPEC): Remove now redundant check.
3791 * opts.c (common_handle_option): Support new option.
3792 (finish_options): Check for incompatibilities.
3793 * toplev.c (process_options): Split userspace-specific checks.
3794
3795 2014-07-31 Richard Biener <rguenther@suse.de>
3796
3797 * lto-streamer.h (struct output_block): Remove global.
3798 (struct data_in): Remove labels, num_named_labels and
3799 num_unnamed_labels.
3800 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
3801 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
3802
3803 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
3804
3805 PR c++/60517
3806 * common.opt (-Wreturn-local-addr): Moved from c.opt.
3807 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
3808 (isolate_path): New argument to avoid inserting a trap.
3809 (find_implicit_erroneous_behaviour): Handle returning the address
3810 of a local variable.
3811 (find_explicit_erroneous_behaviour): Likewise.
3812
3813 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
3814
3815 PR lto/61868
3816 * toplev.c (init_random_seed): Move piece of code never called to
3817 set_random_seed.
3818 (set_random_seed): see above.
3819
3820 2014-07-31 Tom de Vries <tom@codesourcery.com>
3821
3822 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
3823
3824 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3825
3826 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
3827 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
3828
3829 2014-07-31 Richard Biener <rguenther@suse.de>
3830
3831 * data-streamer.h (streamer_write_data_stream): Declare here,
3832 renamed from ...
3833 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
3834 * lto-cgraph.c (lto_output_node): Adjust.
3835 (lto_output_varpool_node): Likewise.
3836 * data-streamer-out.c (streamer_string_index): Likewise.
3837 (streamer_write_data_stream, lto_append_block): Move from ...
3838 * lto-section-out.c (lto_output_data_stream,
3839 lto_append_block): ... here.
3840
3841 2014-07-30 Mike Stump <mikestump@comcast.net>
3842
3843 * configure.ac: Also check for popen.
3844 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
3845 * configure: Regenerate.
3846 * config.in: Regenerate.
3847
3848 2014-07-30 Martin Jambor <mjambor@suse.cz>
3849
3850 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
3851 parameter to gimple.
3852
3853 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3854
3855 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
3856 address as second parameter to __tpf_eh_return routine.
3857
3858 2014-07-30 Jiong Wang <jiong.wang@arm.com>
3859
3860 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
3861 Thumb2.
3862
3863 2014-07-30 Tom Tromey <tromey@redhat.com>
3864
3865 PR c/59855
3866 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
3867 * doc/extend.texi (Type Attributes): Document designated_init
3868 attribute.
3869
3870 2014-07-30 Roman Gareev <gareevroman@gmail.com>
3871
3872 * graphite-isl-ast-to-gimple.c:
3873 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
3874 (gcc_expression_from_isl_expression): Pass type to
3875 gcc_expression_from_isl_ast_expr_id.
3876
3877 2014-07-30 Richard Biener <rguenther@suse.de>
3878
3879 * lto-streamer.h (lto_write_data): New function.
3880 * langhooks.c (lhd_append_data): Do not free block.
3881 * lto-section-out.c (lto_write_data): New function writing
3882 raw data to the current section.
3883 (lto_write_stream): Adjust for langhook semantic change.
3884 (lto_destroy_simple_output_block): Write header directly.
3885 * lto-opts.c (lto_write_options): Write options directly.
3886 * lto-streamer-out.c (produce_asm): Write heaeder directly.
3887 (lto_output_toplevel_asms): Likewise.
3888 (copy_function_or_variable): Copy data directly.
3889 (write_global_references): Output index table directly.
3890 (lto_output_decl_state_refs): Likewise.
3891 (write_symbol): Write data directly.
3892 (produce_symtab): Adjust.
3893 (produce_asm_for_decls): Output header and refs directly.
3894
3895 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3896
3897 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
3898 to speculative_targets
3899 (get_class_context): Fix handling of contextes without outer type;
3900 avoid matching non-polymorphic types in LTO.
3901 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
3902 parameter to speculative_targetsp; handle speculation.
3903 (dump_possible_polymorphic_call_targets): Update dumping.
3904
3905 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3906
3907 * common.opt (Wodr): Enable by default.
3908
3909 2014-07-29 Olivier Hainque <hainque@adacore.com>
3910
3911 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
3912
3913 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
3914
3915 PR bootstrap/61914
3916 * gengtype.c (strtoken): New function.
3917 (create_user_defined_type): Replace strtok with strtoken.
3918
3919 2014-07-29 Nathan Sidwell <nathan@acm.org>
3920
3921 * gcov-io.c (gcov_var): Make hidden.
3922 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
3923 (gcov_do_dump): Declare.
3924 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
3925
3926 2014-07-29 Martin Jambor <mjambor@suse.cz>
3927
3928 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
3929 parameter to gimple.
3930 (sra_modify_assign): Likewise.
3931
3932 2014-07-29 Richard Biener <rguenther@suse.de>
3933
3934 PR middle-end/52478
3935 * expr.c (expand_expr_real_2): Revert last change.
3936
3937 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3938
3939 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
3940 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
3941 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
3942 call.
3943 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
3944 (contains_type_p): Forward declare.
3945 (polymorphic_call_target_hasher::hash): Hash speculative info.
3946 (polymorphic_call_target_hasher::equal): Compare speculative info.
3947 (get_class_context): Handle speuclation.
3948 (contains_type_p): Update.
3949 (get_polymorphic_call_info_for_decl): Update.
3950 (walk_ssa_copies): Break out from ...
3951 (get_polymorphic_call_info): ... here; set speculative context
3952 before giving up.
3953 * ipa-prop.c (ipa_write_indirect_edge_info,
3954 ipa_read_indirect_edge_info): Stream speculative context.
3955 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
3956 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
3957 SPECULATIVE_MAYBE_DERIVED_TYPE).
3958 (possible_polymorphic_call_targets overriders): Update.
3959 (dump_possible_polymorphic_call_targets overriders): Update.
3960 (dump_possible_polymorphic_call_target_p overriders): Update.
3961
3962 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3963
3964 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
3965 ipa-devirt path; fix thinko there.
3966
3967 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
3968
3969 * config/i386/i386.c (ix86_return_in_memory): Replace one
3970 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
3971
3972 2014-07-28 Marek Polacek <polacek@redhat.com>
3973
3974 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
3975
3976 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
3977
3978 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
3979 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
3980 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
3981 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3982 (USE_LD_AS_NEEDED): Likewise.
3983 (ASM_APP_ON): Likewise.
3984 (ASM_APP_OFF): Likewise.
3985 (TARGET_POSIX_IO): Likewise.
3986 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
3987 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3988 (USE_LD_AS_NEEDED): Likewise.
3989 (ASM_APP_ON): Likewise.
3990 (ASM_APP_OFF): Likewise.
3991 (TARGET_POSIX_IO): Likewise.
3992
3993 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
3994
3995 PR middle-end/61734
3996 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
3997 operators other than the equality operators.
3998
3999 2014-07-28 Richard Biener <rguenther@suse.de>
4000
4001 PR middle-end/52478
4002 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
4003 sure to register SImode ones, not only >= word_mode ones.
4004 * expr.c (expand_expr_real_2): When expanding -ftrapv
4005 binops do not use OPTAB_LIB_WIDEN.
4006
4007 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
4008
4009 PR middle-end/61919
4010 * tree-outof-ssa.c (insert_partition_copy_on_edge)
4011 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
4012 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
4013 inserting them in the insn stream.
4014
4015 2014-07-28 Marek Polacek <polacek@redhat.com>
4016
4017 PR middle-end/61913
4018 * common.opt (Wodr): Add Var.
4019
4020 2014-07-28 Richard Biener <rguenther@suse.de>
4021
4022 PR tree-optimization/61921
4023 * tree-ssa-structalias.c (create_variable_info_for_1): Check
4024 if there is a varpool node before dereferencing it.
4025
4026 2014-07-28 Roman Gareev <gareevroman@gmail.com>
4027
4028 * graphite-sese-to-poly.c:
4029 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
4030 id of the pbb), which contains pointer to the pbb1.
4031
4032 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
4033
4034 2014-07-28 Roman Gareev <gareevroman@gmail.com>
4035
4036 * graphite-isl-ast-to-gimple.c:
4037 (graphite_create_new_guard): New function.
4038 (translate_isl_ast_node_if): New function.
4039 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
4040
4041 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
4042
4043 2014-07-27 Anthony Green <green@moxielogic.com>
4044
4045 * config.gcc: Add moxie-*-moxiebox* configuration.
4046 * config/moxie/moxiebox.h: New file.
4047
4048 2014-07-26 Andrew Pinski <apinski@cavium.com>
4049
4050 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
4051 from the read only register.
4052
4053 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
4054
4055 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
4056 as the allocation class if it isn't likely to be spilled.
4057
4058 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
4059
4060 * rtl.h (tls_referenced_p): Declare.
4061 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
4062 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
4063 (mips_cannot_force_const_mem): Use tls_referenced_p.
4064 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
4065 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
4066 instead of pa_tls_referenced_p.
4067 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
4068 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
4069 (pa_legitimate_constant_p): Likewise.
4070 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
4071 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
4072 (rs6000_cannot_force_const_mem, rs6000_emit_move)
4073 (rs6000_address_for_altivec): Use tls_referenced_p instead of
4074 rs6000_tls_referenced_p.
4075 (rs6000_tls_symbol_ref_1): Delete.
4076
4077 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
4078
4079 PR target/44551
4080 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4081 Optimize inverse of a VEC_CONCAT.
4082
4083 2014-07-25 Xinliang David Li <davidxl@google.com>
4084
4085 * params.def: New parameter.
4086 * coverage.c (get_coverage_counts): Check new flag.
4087 (coverage_compute_profile_id): Check new flag.
4088 (coverage_begin_function): Check new flag.
4089 (coverage_end_function): Check new flag.
4090 * value-prof.c (coverage_node_map_initialized_p): New function.
4091 (init_node_map): Populate map with all functions.
4092 * doc/invoke.texi: Document new parameter.
4093
4094 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
4095 Richard Biener <rguenther@suse.de>
4096
4097 * lto-streamer-out.c (struct sccs): Turn to ...
4098 (class DFS): ... this one; refactor the DFS walk so it can
4099 be re-done on per-SCC basis.
4100 (DFS::DFS): New constructor.
4101 (DFS::~DFS): New destructor.
4102 (hash_tree): Add new MAP argument holding in-SCC hash values;
4103 remove POINTER_TYPE hashing hack.
4104 (scc_entry_compare): Rename to ...
4105 (DFS::scc_entry_compare): ... this one.
4106 (hash_scc): Rename to ...
4107 (DFS::hash_scc): ... this one; pass output_block instead
4108 of streamer_cache; work harder to get unique and stable SCC
4109 hashes.
4110 (DFS_write_tree): Rename to ...
4111 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
4112 (lto_output_tree): Update.
4113
4114 2014-07-25 Andi Kleen <ak@linux.intel.com>
4115
4116 * lto-streamer-out.c (hash_tree): Convert to inchash.
4117
4118 2014-07-25 Andi Kleen <ak@linux.intel.com>
4119
4120 * tree.c (build_type_attribute_qual_variant): Use inchash.
4121 (type_hash_list): Dito.
4122 (attribute_hash_list): Dito
4123 (iterative_hstate_expr): Dito.
4124 (iterative_hash_expr): Dito.
4125 (build_range_type_1): Dito.
4126 (build_array_type_1): Dito.
4127 (build_function_type): Dito.
4128 (build_method_type_directly): Dito.
4129 (build_offset_type): Dito.
4130 (build_complex_type): Dito.
4131 (make_vector_type): Dito.
4132 * tree.h (iterative_hash_expr): Add compat wrapper.
4133 (iterative_hstate_expr): Add.
4134
4135 2014-07-25 Andi Kleen <ak@linux.intel.com>
4136
4137 * Makefile.in (OBJS): Add inchash.o.
4138 (PLUGIN_HEADERS): Add inchash.h.
4139 * ipa-devirt.c: Include inchash.h.
4140 * lto-streamer-out.c: Dito.
4141 * tree-ssa-dom.c: Dito.
4142 * tree-ssa-pre.c: Dito.
4143 * tree-ssa-sccvn.c: Dito.
4144 * tree-ssa-tail-merge.c: Dito.
4145 * asan.c: Dito.
4146 * tree.c (iterative_hash_hashval_t): Move to ...
4147 (iterative_hash_host_wide_int): Move to ...
4148 * inchash.c: Here. New file.
4149 * tree.h (iterative_hash_hashval_t): Move to ...
4150 (iterative_hash_host_wide_int): Move to ...
4151 * inchash.h: Here. New file.
4152
4153 2014-07-25 Richard Biener <rguenther@suse.de>
4154
4155 PR middle-end/61762
4156 PR middle-end/61894
4157 * fold-const.c (native_encode_int): Add and handle offset
4158 parameter to do partial encodings of expr.
4159 (native_encode_fixed): Likewise.
4160 (native_encode_real): Likewise.
4161 (native_encode_complex): Likewise.
4162 (native_encode_vector): Likewise.
4163 (native_encode_string): Likewise.
4164 (native_encode_expr): Likewise.
4165 * fold-const.c (native_encode_expr): Add offset parameter
4166 defaulting to -1.
4167 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
4168 (fold_ctor_reference): Handle all reads from tcc_constant
4169 ctors.
4170
4171 2014-07-25 Richard Biener <rguenther@suse.de>
4172
4173 * tree-inline.c (estimate_move_cost): Mark speed_p argument
4174 as possibly unused.
4175
4176 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4177
4178 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
4179
4180 2014-07-24 Kyle McMartin <kyle@redhat.com>
4181
4182 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
4183
4184 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4185
4186 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
4187 Add prototype.
4188 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
4189 function.
4190 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
4191 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4192 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
4193
4194 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4195
4196 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
4197 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
4198 aggregate types. Instead, *all* aggregate types, except for single-
4199 element or homogeneous float/vector aggregates, are quadword-aligned
4200 if required by their type alignment. Issue -Wpsabi note when a type
4201 is now treated differently than before.
4202
4203 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4204
4205 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
4206 does not fit fully into floating-point registers, and there is still
4207 space in the register parameter area, use GPRs to pass those parts
4208 of the argument. Issue -Wpsabi note if any parameter is now treated
4209 differently than before.
4210 (rs6000_arg_partial_bytes): Update.
4211
4212 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
4213
4214 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
4215
4216 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4217
4218 * rtl.h (target_rtl): Remove lang_dependent_initialized.
4219 * toplev.c (initialize_rtl): Don't use it. Move previously
4220 "language-dependent" calls to...
4221 (backend_init): ...here.
4222 (lang_dependent_init_target): Don't set lang_dependent_initialized.
4223 Assert that RTL initialization hasn't happend yet.
4224
4225 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4226
4227 PR rtl-optimization/61629
4228 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
4229 they have already been initialized.
4230
4231 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4232
4233 PR middle-end/61268
4234 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
4235 DECL_INCOMING_RTL and entry_parm.
4236 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
4237 * calls.c (load_register_parameters): Likewise argument values.
4238 (emit_library_call_value_1, store_one_arg): Likewise argument
4239 save areas.
4240 * config/i386/i386.c (assign_386_stack_local): Likewise the local
4241 stack slot.
4242 * explow.c (validize_mem): Modify the argument in-place.
4243
4244 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4245
4246 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
4247 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
4248
4249 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4250
4251 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
4252 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
4253
4254 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4255
4256 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
4257 (aarch64_save_callee_saves): New parameter "skip_wb".
4258 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
4259
4260 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4261
4262 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
4263 "wb_candidate2".
4264 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
4265
4266 2014-07-24 Roman Gareev <gareevroman@gmail.com>
4267
4268 * graphite-isl-ast-to-gimple.c:
4269 (graphite_create_new_loop): Add calling of isl_id_free to properly
4270 decrement reference counts.
4271
4272 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
4273
4274 2014-07-24 Martin Liska <mliska@suse.cz>
4275 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
4276 function used.
4277 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
4278 (rs6000_code_end): Likewise.
4279
4280 2014-07-24 Martin Liska <mliska@suse.cz>
4281
4282 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
4283 symtab_node funtion used.
4284 (rs6000_xcoff_declare_object_name): Likewise.
4285
4286 2014-07-24 Martin Liska <mliska@suse.cz>
4287
4288 * cgraphunit.c (compile): Correct function used.
4289
4290 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
4291
4292 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
4293 as non-indexable.
4294
4295 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
4296
4297 PR lto/61802
4298 * varasm.c (bss_initializer_p): Handle offlined ctors.
4299 (align_variable, get_variable_align): Likewise.
4300 (make_decl_one_only): Likewise.
4301 (default_binds_local_p_1): Likewise.
4302 (decl_binds_to_current_def_p): Likewise.
4303 (get_variable_section): Get constructor if it is offlined.
4304 (assemble_variable_contents): Sanity check that the caller
4305 streamed in the ctor in LTO.
4306
4307 2014-07-24 Roman Gareev <gareevroman@gmail.com>
4308
4309 * graphite-isl-ast-to-gimple.c:
4310 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
4311 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
4312 isl_ast_op_pdiv_r to the different case.
4313
4314 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
4315
4316 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4317
4318 PR middle-end/61876
4319 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
4320 when flag_errno_math is on.
4321
4322 2014-07-24 Martin Liska <mliska@suse.cz>
4323
4324 * cgraph.h (varpool_node):
4325 (availability get_availability (void)):
4326 created from cgraph_variable_initializer_availability
4327 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
4328 created from: cgraph_variable_initializer_availability
4329 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
4330 (void finalize_named_section_flags (void)):
4331 created from varpool_finalize_named_section_flags
4332 (bool assemble_decl (void)): created from varpool_assemble_decl
4333 (void analyze (void)): created from varpool_analyze_node
4334 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
4335 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
4336 (void remove_initializer (void)): created from varpool_remove_initializer
4337 (tree get_constructor (void)): created from varpool_get_constructor
4338 (bool externally_visible_p (void)): created from varpool_externally_visible_p
4339 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
4340 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
4341 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
4342 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
4343 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
4344 (static bool output_variables (void)): created from varpool_output_variables
4345 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
4346 created from varpool_extra_name_alias
4347 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
4348 (static void dump_varpool (FILE *f)): created from dump_varpool
4349 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
4350 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
4351 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
4352 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
4353 (void assemble_aliases (void)): created from assemble_aliases
4354
4355 2014-07-24 Martin Liska <mliska@suse.cz>
4356
4357 * cgraph.h (symtab_node):
4358 (void register_symbol (void)): created from symtab_register_node
4359 (void remove (void)): created from symtab_remove_node
4360 (void dump (FILE *f)): created from dump_symtab_node
4361 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
4362 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
4363 (struct ipa_ref *add_reference (symtab_node *referred_node,
4364 enum ipa_ref_use use_type)): created from add_reference
4365 (struct ipa_ref *add_reference (symtab_node *referred_node,
4366 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
4367 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
4368 gimple stmt)): created from maybe_add_reference
4369 (bool semantically_equivalent_p (symtab_node *target)): created from
4370 symtab_semantically_equivalent_p
4371 (void remove_from_same_comdat_group (void)): created from
4372 remove_from_same_comdat_group
4373 (void add_to_same_comdat_group (symtab_node *old_node)): created from
4374 symtab_add_to_same_comdat_group
4375 (void dissolve_same_comdat_group_list (void)): created from
4376 symtab_dissolve_same_comdat_group_list
4377 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
4378 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
4379 created from symtab_alias_ultimate_target
4380 (inline symtab_node *next_defined_symbol (void)): created from
4381 symtab_next_defined_symbol
4382 (bool resolve_alias (symtab_node *target)): created from
4383 symtab_resolve_alias
4384 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
4385 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
4386 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
4387 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
4388 (void set_section (const char *section)): created from set_section_1
4389 (enum availability get_availability (void)): created from symtab_node_availability
4390 (void make_decl_local (void)): created from symtab_make_decl_local
4391 (bool real_symbol_p (void)): created from symtab_read_node
4392 (can_be_discarded_p (void)): created from symtab_can_be_discarded
4393 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
4394 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
4395 symtab_in_same_comdat_p;
4396 (bool address_taken_from_non_vtable_p (void)): created from
4397 address_taken_from_non_vtable_p
4398 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
4399 (static void dump_table (FILE *)): created from dump_symtab
4400 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
4401 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
4402 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
4403 symtab_used_from_object_file_p
4404 (void dump_base (FILE *)): created from dump_symtab_base
4405 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
4406 (void unregister (void)): created from symtab_unregister_node
4407 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
4408 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
4409 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
4410 symtab_nonoverwritable_alias_1
4411 * cgraph.h (cgraph_node):
4412 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
4413 created from cgraph_remove_node_and_inline_clones
4414 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
4415 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
4416 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
4417 (cgraph_node *function_symbol (enum availability *avail = NULL)):
4418 created from cgraph_function_node
4419 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
4420 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
4421 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
4422 created from cgraph_create_clone
4423 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
4424 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
4425 created from cgraph_create_virtual_clone
4426 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
4427 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
4428 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
4429 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
4430 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
4431 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
4432 created from cgraph_function_version_info
4433 (struct cgraph_function_version_info *insert_new_function_version (void)):
4434 created from insert_new_cgraph_node_version
4435 (struct cgraph_function_version_info *function_version (void)): created from
4436 get_cgraph_node_version
4437 (void analyze (void)): created from analyze_function
4438 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
4439 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
4440 tree real_alias) cgraph_add_thunk
4441 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
4442 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
4443 created from cgraph_function_or_thunk_node
4444 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
4445 created from expand_thunk
4446 (void reset (void)): created from cgraph_reset_node
4447 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
4448 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
4449 (void remove (void)): created from cgraph_remove_node
4450 (void dump (FILE *f)): created from dump_cgraph_node
4451 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
4452 (bool get_body (void)): created from cgraph_get_body
4453 (void release_body (void)): created from cgraph_release_function_body
4454 (void unnest (void)): created from cgraph_unnest_node
4455 (void make_local (void)): created from cgraph_make_node_local
4456 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
4457 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
4458 gcov_type count, int freq)): created from cgraph_create_edge
4459 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
4460 gcov_type count, int freq)): created from cgraph_create_indirect_edge
4461 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
4462 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
4463 created from cgraph_create_edge_including_clones
4464 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
4465 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
4466 (void remove_callers (void)): created from cgraph_node_remove_callers
4467 (void remove_callees (void)): created from cgraph_node_remove_callees
4468 (enum availability get_availability (void)): created from cgraph_function_body_availability
4469 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
4470 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
4471 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
4472 (void call_duplication_hooks (cgraph_node *node2)): created from
4473 cgraph_call_node_duplication_hooks
4474 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
4475 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
4476 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
4477 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
4478 (void call_function_insertion_hooks (void)):
4479 created from cgraph_call_function_insertion_hooks
4480 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
4481 (bool local_p (void)): created from cgraph_local_node
4482 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
4483 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
4484 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
4485 (inline bool only_called_directly_or_aliased_p (void)):
4486 created from cgraph_only_called_directly_or_aliased_p
4487 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
4488 created from cgraph_will_be_removed_from_program_if_no_direct_calls
4489 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
4490 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
4491 (bool can_remove_if_no_direct_calls_p (void)):
4492 created from cgraph_can_remove_if_no_direct_calls_p
4493 (inline bool has_gimple_body_p (void)):
4494 created from cgraph_function_with_gimple_body_p
4495 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
4496 (static void dump_cgraph (FILE *f)): created from dump_cgraph
4497 (static inline void debug_cgraph (void)): created from debug_cgraph
4498 (static void record_function_versions (tree decl1, tree decl2)):
4499 created from record_function_versions
4500 (static void delete_function_version (tree decl)):
4501 created from delete_function_version
4502 (static void add_new_function (tree fndecl, bool lowered)):
4503 created from cgraph_add_new_function
4504 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
4505 (static cgraph_node * create (tree decl)): created from cgraph_create_node
4506 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
4507 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
4508 (static cgraph_node *get_for_asmname (tree asmname)):
4509 created from cgraph_node_for_asm
4510 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
4511 created from cgraph_same_body_alias
4512 (static bool used_from_object_file_p_worker (cgraph_node *node,
4513 void *): new function
4514 (static bool non_local_p (cgraph_node *node, void *)):
4515 created from cgraph_non_local_node_p_1
4516 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
4517 created from verify_cgraph
4518 (static bool make_local (cgraph_node *node, void *)):
4519 created from cgraph_make_node_local
4520 (static cgraph_node *create_alias (tree alias, tree target)):
4521 created from cgraph_create_function_alias
4522 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
4523 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
4524 created from cgraph_create_edge_1
4525 * cgraph.h (varpool_node):
4526 (void remove (void)): created from varpool_remove_node
4527 (void dump (FILE *f)): created from dump_varpool_node
4528
4529 2014-07-24 Richard Biener <rguenther@suse.de>
4530
4531 PR ipa/61823
4532 * tree-ssa-structalias.c (create_variable_info_for_1):
4533 Use varpool_get_constructor.
4534 (create_variable_info_for): Likewise.
4535
4536 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4537
4538 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
4539 subtract outgoing area size when restoring stack_pointer_rtx.
4540
4541 2014-07-24 Nick Clifton <nickc@redhat.com>
4542
4543 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
4544 that operations are taking place in parallel.
4545 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
4546
4547 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
4548
4549 * omp-low.c (extract_omp_for_data): Add missing break statement.
4550
4551 2014-07-24 Richard Biener <rguenther@suse.de>
4552
4553 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
4554 * tree-inline.c (estimate_move_cost): Add speed_p parameter
4555 and adjust MOVE_RATIO query accordingly.
4556 (estimate_num_insns): Adjust callers.
4557 * ipa-prop.c (ipa_populate_param_decls): Likewise.
4558 * ipa-cp.c (gather_context_independent_values,
4559 estimate_local_effects): Likewise.
4560 * ipa-split.c (consider_split): Likewise.
4561
4562 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
4563
4564 * config/i386/driver-i386.c: Remove names of unused arguments and
4565 unnecessary unused attributes.
4566 * config/i386/host-mingw32.c: Likewise.
4567 * config/i386/i386.c: Likewise.
4568 * config/i386/winnt-stubs.c: Likewise.
4569 * config/i386/winnt.c: Likewise.
4570
4571 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4572
4573 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
4574 (aarch64_gen_loadwb_pair): New helper function.
4575 (aarch64_expand_epilogue): Simplify code using new helper functions.
4576 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
4577
4578 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4579
4580 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
4581 (aarch64_gen_storewb_pair): New helper function.
4582 (aarch64_expand_prologue): Simplify code using new helper functions.
4583 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
4584
4585 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4586
4587 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
4588 Rename to aarch64_save_callee_saves, remove restore code.
4589 (aarch64_restore_callee_saves): New function.
4590
4591 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4592
4593 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
4594 (aarch64_save_callee_saves): New function to handle reg save
4595 for both core and vectore regs.
4596
4597 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4598
4599 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
4600 (aarch64_gen_store_pair): New helper function.
4601 (aarch64_save_or_restore_callee_save_registers)
4602 (aarch64_save_or_restore_fprs): Use new helper functions.
4603
4604 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4605
4606 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
4607 (aarch64_save_or_restore_callee_save_registers)
4608 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
4609
4610 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4611
4612 * config/aarch64/aarch64.c
4613 (aarch64_save_or_restore_callee_save_registers)
4614 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
4615
4616 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4617
4618 * config/aarch64/aarch64.c
4619 (aarch64_save_or_restore_callee_save_registers)
4620 (aarch64_save_or_restore_fprs): Remove 'increment'.
4621
4622 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4623
4624 * config/aarch64/aarch64.c
4625 (aarch64_save_or_restore_callee_save_registers)
4626 (aarch64_save_or_restore_fprs): Use register offset in
4627 cfun->machine->frame.reg_offset.
4628
4629 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4630
4631 * config/aarch64/aarch64.c
4632 (aarch64_save_or_restore_callee_save_registers)
4633 (aarch64_save_or_restore_fprs): Remove base_rtx.
4634
4635 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4636
4637 * config/aarch64/aarch64.c
4638 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
4639 to 'start_offset'. Remove local variable 'start_offset'.
4640
4641 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4642
4643 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
4644 type to HOST_WIDE_INT.
4645
4646 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4647
4648 * config/aarch64/aarch64.c (aarch64_expand_prologue)
4649 (aarch64_save_or_restore_fprs)
4650 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
4651
4652 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4653
4654 * config/arm/t-rtems-eabi: Add
4655 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
4656 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
4657 mbig-endian/mthumb/march=armv7-r, and
4658 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
4659 multilibs.
4660
4661 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4662 Chris Johns <chrisj@rtems.org>
4663 Joel Sherrill <joel.sherrill@oarcorp.com>
4664
4665 * config.gcc: Add nios2-*-rtems*.
4666 * config/nios2/rtems.h: New file.
4667 * gcc/config/nios2/t-rtems: New file.
4668
4669 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
4670
4671 PR target/61396
4672 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
4673 constant numbers, not general constants.
4674 (rs6000_expand_vector_init): Ditto.
4675
4676 2014-07-23 Nathan Sidwell <nathan@acm.org>
4677
4678 * gcov-tool.c (gcov_list): Declare here.
4679 (set_gcov_list): Remove.
4680 (gcov_output_files): Set gcov_list directly.
4681
4682 2014-07-23 Host Schirmeier <horst@schirmeier.com>
4683
4684 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
4685
4686 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4687
4688 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
4689 callee-saved registers are available for padding purpose
4690 and r3 is not mandatory, then prefer use those callee-saved
4691 instead of r3.
4692
4693 2014-07-23 Richard Biener <rguenther@suse.de>
4694
4695 * params.def (PARAM_MAX_COMBINE_INSNS): New.
4696 * combine.c: Include statistics.h and params.h.
4697 (combine_instructions): Guard three and four insn combines
4698 with max-combine-insns value. Record statistics for combines
4699 performed.
4700 * doc/invoke.texi (max-combine-insns): Document new param.
4701
4702 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4703
4704 * graphite-isl-ast-to-gimple.c:
4705 (translate_isl_ast_node_block): New function.
4706 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
4707
4708 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
4709 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
4710
4711 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4712
4713 * graphite-isl-ast-to-gimple.c:
4714 (get_max_schedule_dimensions): New function.
4715 (extend_schedule): Likewise.
4716 (generate_isl_schedule): Add calling of extend_schedule and
4717 get_max_schedule_dimensions.
4718
4719 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4720
4721 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
4722 (case UNSPEC): Handle UNSPEC_RBIT.
4723
4724 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4725
4726 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
4727 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
4728
4729 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4730
4731 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
4732
4733 2014-07-22 Roman Gareev <gareevroman@gmail.com>
4734
4735 * graphite-isl-ast-to-gimple.c:
4736 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
4737 (ivs_params_clear):
4738 (build_iv_mapping): New function.
4739 (translate_isl_ast_node_user): Likewise.
4740 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
4741
4742 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
4743 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
4744 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
4745
4746 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4747
4748 PR target/55701
4749 * config/arm/arm.md (setmem): New pattern.
4750 * config/arm/arm-protos.h (struct tune_params): New fields.
4751 (arm_gen_setmem): New prototype.
4752 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4753 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4754 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4755 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4756 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4757 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4758 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4759 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4760 (arm_const_inline_cost): New function.
4761 (arm_block_set_max_insns): New function.
4762 (arm_block_set_non_vect_profit_p): New function.
4763 (arm_block_set_vect_profit_p): New function.
4764 (arm_block_set_unaligned_vect): New function.
4765 (arm_block_set_aligned_vect): New function.
4766 (arm_block_set_unaligned_non_vect): New function.
4767 (arm_block_set_aligned_non_vect): New function.
4768 (arm_block_set_vect, arm_gen_setmem): New functions.
4769
4770 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4771
4772 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4773
4774 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
4775
4776 PR target/61855
4777 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
4778 out of #ifdef __OPTIMIZE__.
4779
4780 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4781
4782 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
4783 different trapping status if -fnon-call-exceptions is enabled.
4784
4785 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4786
4787 * expr.c (store_field): Handle VOIDmode for calls that return values
4788 in multiple locations.
4789
4790 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4791
4792 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
4793 (altivec_vsldoi_<mode>): Likewise.
4794
4795 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4796
4797 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
4798 to the number of characters in the line.
4799
4800 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4801
4802 * graphite-isl-ast-to-gimple.c: Add using of
4803 build_nonstandard_integer_type instead of int128_integer_type_node.
4804
4805 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
4806
4807 * toplev.c (output_stack_usage): Adjust the location of the warning.
4808
4809 2014-07-19 Daniel Cederman <cederman@gaisler.com>
4810
4811 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
4812 (*membar_storeload): Disable for LEON3.
4813
4814 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4815
4816 PR rtl-optimization/61461
4817 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
4818
4819 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
4820
4821 PR target/61794
4822 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
4823 Fix instruction constraint.
4824 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4825
4826 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
4827
4828 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
4829
4830 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
4831
4832 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
4833 GNU coding standards.
4834 (nds32_register_move_cost): Likewise.
4835 (nds32_memory_move_cost): Likewise.
4836 (nds32_address_cost): Likewise.
4837
4838 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4839
4840 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
4841
4842 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
4843
4844 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4845 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
4846 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4847 (HAVE_sync_compare_and_swapqi): Define.
4848 (HAVE_sync_compare_and_swaphi): Likewise.
4849 (HAVE_sync_compare_and_swapsi): Likewise.
4850
4851 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
4852
4853 * config/mips/p5600.md: Add missing cpu tests.
4854
4855 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4856
4857 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
4858 (vmla_f64): Likewise.
4859 (vfms_f64): Likewise.
4860 (vmls_f64): Likewise.
4861
4862 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4863
4864 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
4865 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
4866
4867 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4868
4869 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
4870 (vmlal_high_lane_s32): Likewise.
4871 (vmlal_high_lane_u16): Likewise.
4872 (vmlal_high_lane_u32): Likewise.
4873 (vmlsl_high_lane_s16): Likewise.
4874 (vmlsl_high_lane_s32): Likewise.
4875 (vmlsl_high_lane_u16): Likewise.
4876 (vmlsl_high_lane_u32): Likewise.
4877
4878 2014-07-17 Terry Guo <terry.guo@arm.com>
4879
4880 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
4881 (alus_reg): Renamed to alus_sreg.
4882 * config/arm/arm-fixed.md: Change type of non-dsp instructions
4883 from alu_reg to alu_sreg. Change type of dsp instructions from
4884 alu_reg to alu_dsp_reg.
4885 * config/arm/thumb1.md: Likewise.
4886 * config/arm/thumb2.md: Likewise.
4887 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
4888 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
4889 with alu_sreg and alus_sreg.
4890 * config/arm/arm1026ejs.md (alu_op): Likewise.
4891 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4892 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4893 * config/arm/fa526.md (526_alu_op): Likewise.
4894 * config/arm/fa606te.md (606te_alu_op): Likewise.
4895 * config/arm/fa626te.md (626te_alu_op): Likewise.
4896 * config/arm/fa726te.md (726te_alu_op): Likewise.
4897 * config/arm/fmp626.md (mp626_alu_op): Likewise.
4898 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
4899 alu_sreg, alu_dsp_reg and alus_sreg.
4900 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4901 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4902 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4903 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
4904 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4905 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4906 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4907 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4908 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
4909 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
4910 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
4911 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
4912 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
4913 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
4914 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
4915 alus_reg to alus_sreg.
4916
4917 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
4918
4919 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
4920 infinity format.
4921
4922 2014-07-17 Richard Biener <rguenther@suse.de>
4923
4924 PR rtl-optimization/61801
4925 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
4926 don't set reg_pending_barrier if it appears in a debug-insn.
4927
4928 2014-07-16 DJ Delorie <dj@redhat.com>
4929
4930 * config/rx/rx.c (rx_option_override): Fix alignment values.
4931 (rx_align_for_label): Likewise.
4932
4933 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
4934
4935 PR target/61737.
4936 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
4937 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4938 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
4939 functions.
4940 (cris_print_index, cris_print_operand, cris_constant_index_p)
4941 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
4942 (cris_address_cost): Ditto last CONSTANT_P.
4943 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
4944 callers changed. Yield cris_offsettable_symbol for non-PIC
4945 constant symbolic expressions including labels. Yield cris_unspec
4946 for all unspecs.
4947 (cris_expand_pic_call_address): New parameter MARKERP. Set its
4948 target to pic_offset_table_rtx for calls that will likely go
4949 through PLT, const0_rtx when they can't. All callers changed.
4950 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
4951 symbolic expressions to be PICified. Remove second, redundant,
4952 assert on can_create_pseudo_p returning non-zero. Use
4953 replace_equiv_address_nv, not replace_equiv_address, for final
4954 operand update.
4955 * config/cris/cris.md ("movsi"): Move variable t to pattern
4956 toplevel. Adjust assert for new cris_symbol_type member. Use
4957 CONSTANT_P instead of CONSTANT_ADDRESS_P.
4958 ("*movsi_internal") <case 9>: Make check for valid unspec operands
4959 for lapc stricter.
4960 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
4961 ("call", "call_value"): Use second incoming operand as a marker
4962 for pic-offset-table-register being used.
4963 ("*expanded_call_non_v32", "*expanded_call_v32")
4964 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
4965 second incoming operand to CALL, match cris_call_type_marker.
4966 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
4967 ("*expanded_call_side"): Ditto. Fix typo in comment.
4968 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
4969 CONSTANT_P.
4970 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
4971 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
4972 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
4973 users changed. Add members cris_offsettable_symbol and cris_unspec.
4974 (cris_symbol_type): Rename from cris_pic_symbol_type.
4975 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
4976 just CONSTANT_P.
4977 * config/cris/cris-protos.h (cris_symbol_type_of,
4978 cris_expand_pic_call_address): Adjust prototypes.
4979 (cris_legitimate_constant_p): New prototype.
4980
4981 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
4982 an existing tmake_file. Don't add t-slibgcc and t-linux.
4983
4984 2014-07-17 Jason Merrill <jason@redhat.com>
4985
4986 PR c++/61623
4987 * symtab.c (symtab_remove_from_same_comdat_group): Also
4988 set_comdat_group to NULL_TREE.
4989 (verify_symtab): Fix diagnostic.
4990
4991 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
4992
4993 PR target/61662
4994 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
4995
4996 2014-07-16 Dodji Seketeli <dodji@redhat.com>
4997
4998 Support location tracking for built-in macro tokens
4999 * input.h (is_location_from_builtin_token): New function declaration.
5000 * input.c (is_location_from_builtin_token): New function definition.
5001 * toplev.c (general_init): Tell libcpp what the pre-defined
5002 spelling location for built-in tokens is.
5003
5004 2014-07-16 Jakub Jelinek <jakub@redhat.com>
5005
5006 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
5007 on the FUNCTION_DECL.
5008
5009 2014-07-16 Richard Biener <rguenther@suse.de>
5010
5011 PR other/61782
5012 * doc/extend.texi (always_inline): Clarify.
5013
5014 2014-07-15 Eric Christopher <echristo@gmail.com>
5015
5016 * doc/invoke.texi (Link Options): Document -z option.
5017
5018 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
5019
5020 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
5021 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
5022
5023 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
5024
5025 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
5026
5027 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
5028
5029 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
5030 varpool_assemble_decl.
5031 * varpool.c (varpool_assemble_decl): Assert that node->definition is
5032 true.
5033
5034 2014-07-15 Michael Matz <matz@suse.de>
5035
5036 PR rtl-optimization/61772
5037 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
5038
5039 2014-07-15 Richard Biener <rguenther@suse.de>
5040
5041 * opts.c (default_options_table): Disable bit-ccp at -Og.
5042
5043 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
5044
5045 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
5046
5047 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
5048
5049 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
5050 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
5051 call langhook for unknown declaration.
5052 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
5053 * tree.h (DECL_ARGUMENTS): Update.
5054 * print-tree.c (print_node): Update.
5055 * tree-core.h (tree_decl_non_common): Remove arguments.
5056 (tree_function_decl): Add arguments.
5057
5058 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
5059
5060 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
5061
5062 2014-07-14 Richard Biener <rguenther@suse.de>
5063
5064 PR tree-optimization/61779
5065 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
5066 simplifying a condition.
5067
5068 2014-07-14 Richard Biener <rguenther@suse.de>
5069
5070 * builtins.c (c_strlen): Make only_value == 2 really only
5071 affect warning generation.
5072
5073 2014-07-14 Richard Biener <rguenther@suse.de>
5074
5075 PR tree-optimization/61757
5076 PR tree-optimization/61783
5077 PR tree-optimization/61787
5078 * tree-ssa-dom.c (record_equality): Revert canonicalization
5079 change and add comment.
5080 (propagate_rhs_into_lhs): Revert previous fix, removing
5081 loop depth restriction again.
5082
5083 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5084
5085 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
5086 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
5087 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
5088 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
5089 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
5090 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
5091 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
5092
5093 2014-07-14 Richard Biener <rguenther@suse.de>
5094
5095 * cgraph.h (decl_in_symtab_p): Make inline.
5096
5097 2014-07-14 Jakub Jelinek <jakub@redhat.com>
5098
5099 PR middle-end/61294
5100 * doc/invoke.texi (-Wmemset-transposed-args): Document.
5101
5102 PR target/61656
5103 * config/i386/i386.c (classify_argument): Don't merge classes above
5104 number of words.
5105
5106 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
5107
5108 * cgraph.h (symtab_node): Add nonzero_address.
5109 (decl_in_symtab_p): Break out from ...
5110 (symtab_get_node): ... here.
5111 * fold-const.c: Include cgraph.h
5112 (tree_single_nonzero_warnv_p): Use symtab to determine
5113 if symbol is non-zero.
5114 * symtab.c (symtab_node::nonzero_address): New method.
5115
5116 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
5117
5118 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
5119 forgotten in previous commit.
5120
5121 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
5122
5123 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
5124 on builtin types.
5125 * ipa-devirt.c: Include stor-layout.h and intl.h
5126 (odr_subtypes_equivalent_p): New function.
5127 (warn_odr): New function.
5128 (warn_type_mismatch): New function.
5129 (odr_types_equivalent_p): New function.
5130 (add_type_duplicate): Use it.
5131 * common.opt (Wodr): New flag.
5132 * doc/invoke.texi (Wodr): Document new warning.
5133
5134 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
5135
5136 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
5137 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
5138 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
5139 (varpool_get_constructor): Push CTORS_IN timevar.
5140 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
5141
5142 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
5143
5144 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
5145 Remove VOID_FTYPE_PUSHORT.
5146 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
5147 Change code to USHORT_FTYPE_VOID.
5148 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
5149 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
5150 (ix86_atomic_assign_expand_fenv): Update for
5151 __builtin_ia32_fnstsw changes.
5152 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
5153 (fnstsw): Change operand 0 to nonimmediate operand.
5154
5155 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
5156
5157 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
5158 (varpool_get_constructor): New function.
5159 (varpool_ctor_useable_for_folding_p): Break out from ...
5160 (ctor_for_folding): ... here; use varpool_get_constructor.
5161 (varpool_assemble_decl): Likewise.
5162 * lto-streamer.h (struct output_block): Turn cgraph_node
5163 to symbol filed.
5164 (lto_input_variable_constructor): Declare.
5165 * ipa-visibility.c (function_and_variable_visibility): Use
5166 varpool_get_constructor.
5167 * cgraph.h (varpool_get_constructor): Declare.
5168 (varpool_ctor_useable_for_folding_p): New function.
5169 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
5170 parameter; return error_mark_node for non-trivial constructors.
5171 (lto_write_tree_1, DFS_write_tree): Update use of
5172 get_symbol_initial_value.
5173 (output_function): Update initialization of symbol.
5174 (output_constructor): New function.
5175 (copy_function): Rename to ..
5176 (copy_function_or_variable): ... this one; handle vars too.
5177 (lto_output): Output variable sections.
5178 * lto-streamer-in.c (input_constructor): New function.
5179 (lto_read_body): Rename from ...
5180 (lto_read_body_or_constructor): ... this one; handle vars too.
5181 (lto_input_variable_constructor): New function.
5182 * ipa-prop.c (ipa_prop_write_jump_functions,
5183 ipa_prop_write_all_agg_replacement): Update.
5184 * lto-cgraph.c (compute_ltrans_boundary): Use it.
5185 (output_cgraph_opt_summary): Set symbol to NULL.
5186
5187 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
5188
5189 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
5190 non-polymorphic types.
5191 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
5192 * ipa-devirt.c (types_same_for_odr): Do not explode when one
5193 of types is not polymorphic.
5194
5195 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
5196
5197 * lra-constraints.c (remove_inheritance_pseudos): Process
5198 destination pseudo too.
5199
5200 2014-07-11 Rong Xu <xur@google.com>
5201
5202 * gcov-tool.c (gcov_output_files): Fix build error introduced in
5203 commit r212448.
5204
5205 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5206
5207 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
5208 * config/avr/avr-devices.c (AVR_MCU): Same.
5209 (avr_mcu_types): add text start value to end of device list.
5210 * config/avr/avr-mcus.def: Add text section start for all devices.
5211 (ata5782): Add new avr5 device.
5212 (ata5831): Same.
5213 * config/avr/avr-tables.opt: Regenerate.
5214 * config/avr/avr.h: Add declaration for text section start handler.
5215 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
5216 SPEC functions.
5217 (LINK_SPEC): Include text section start handler to linker spec.
5218 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
5219 pass -Ttext option to linker if the text section start for the device
5220 is not zero.
5221 * config/avr/t-multilib: Regenerate.
5222 * doc/avr-mmcu.texi: Regenerate.
5223
5224 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
5225
5226 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
5227 * config/rs6000/aix52.h (LINK_SPEC): Same.
5228 * config/rs6000/aix53.h (LINK_SPEC): Same.
5229 * config/rs6000/aix61.h (LINK_SPEC): Same.
5230 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
5231
5232 2014-07-11 Roman Gareev <gareevroman@gmail.com>
5233
5234 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
5235 (graphite_verify): New function.
5236 (ivs_params_clear): New function.
5237 (gcc_expression_from_isl_ast_expr_id): New function.
5238 (gcc_expression_from_isl_expr_int): New function.
5239 (binary_op_to_tree): New function.
5240 (ternary_op_to_tree): New function.
5241 (unary_op_to_tree): New function.
5242 (nary_op_to_tree): New function.
5243 (gcc_expression_from_isl_expr_op): New function.
5244 (gcc_expression_from_isl_expression): New function.
5245 (graphite_create_new_loop): New function.
5246 (translate_isl_ast_for_loop): New function.
5247 (get_upper_bound): New function.
5248 (graphite_create_new_loop_guard): New function.
5249 (translate_isl_ast_node_for): New function.
5250 (translate_isl_ast): New function.
5251 (add_parameters_to_ivs_params): New function.
5252 (scop_to_isl_ast): New parameter ip.
5253 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
5254
5255 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
5256
5257 * config/xtensa/predicates.md (call expander): Update for
5258 DECL_SECTION_NAME being string.
5259
5260 2014-07-11 Richard Biener <rguenther@suse.de>
5261
5262 PR middle-end/61473
5263 * builtins.c (fold_builtin_memory_op): Inline memory moves that
5264 can be implemented with a single load followed by a single store.
5265 (c_strlen): Only warn when only_value is not 2.
5266
5267 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
5268
5269 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
5270
5271 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
5272
5273 PR target/61561
5274 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
5275 (*movhi_bytes): Likewise.
5276 (*arm_movqi_insn): Likewise.
5277
5278 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
5279
5280 PR target/56858
5281 * config/alpha/alpha.c: Include tree-pass.h, context.h
5282 and pass_manager.h.
5283 (pass_data_handle_trap_shadows): New pass.
5284 (pass_handle_trap_shadows::gate): New pass gate function.
5285 (make_pass_handle_trap_shadows): New function.
5286 (rest_of_handle_trap_shadows): Ditto.
5287
5288 (alpha_align_insns_1): Rename from alpha_align_insns.
5289 (pass_data_align_insns): New pass.
5290 (pass_align_insns::gate): New pass gate function.
5291 (make_pass_aling_insns): New function.
5292 (rest_of_align_insns): Ditto.
5293 (alpha_align_insns): Ditto.
5294
5295 (alpha_option_override): Declare handle_trap_shadows info
5296 and align_insns_info. Register handle_trap_shadows and align_insns
5297 passes here.
5298 (alpha_reorg): Do not call alpha_trap_shadows and
5299 alpha_align_insn from here.
5300
5301 (alpha_pad_function_end): Do not skip BARRIERs.
5302
5303 2014-07-10 Rong Xu <xur@google.com>
5304
5305 Add gcov-tool: an offline gcda profile processing tool support.
5306 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
5307 (gcov_is_error): Ditto.
5308 (gcov_read_string): Ditto.
5309 (gcov_read_sync): Ditto.
5310 * gcov-io.h: Move counter defines to gcov-counter.def.
5311 * gcov-dump.c (tag_counters): Use gcov-counter.def.
5312 * coverage.c: Ditto.
5313 * gcov-tool.c: Offline gcda profile processing tool.
5314 (unlink_gcda_file): Remove one gcda file.
5315 (unlink_profile_dir): Remove gcda files from the profile path.
5316 (gcov_output_files): Output gcda files to an output dir.
5317 (profile_merge): Merge two profiles in directory.
5318 (print_merge_usage_message): Print merge usage.
5319 (merge_usage): Print merge usage and exit.
5320 (do_merge): Driver for profile merge sub-command.
5321 (profile_rewrite): Rewrite profile.
5322 (print_rewrite_usage_message): Print rewrite usage.
5323 (rewrite_usage): Print rewrite usage and exit.
5324 (do_rewrite): Driver for profile rewrite sub-command.
5325 (print_usage): Print gcov-info usage and exit.
5326 (print_version): Print gcov-info version.
5327 (process_args): Process arguments.
5328 (main): Main routine for gcov-tool.
5329 * Makefile.in: Build and install gcov-tool.
5330 * gcov-counter.def: New file split from gcov-io.h.
5331 * doc/gcc.texi: Include gcov-tool.texi.
5332 * doc/gcov-tool.texi: Document for gcov-tool.
5333
5334 2014-07-10 Richard Biener <rguenther@suse.de>
5335
5336 PR tree-optimization/61757
5337 * tree-ssa-dom.c (loop_depth_of_name): Restore.
5338 (propagate_rhs_into_lhs): Revert part of last change.
5339
5340 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
5341
5342 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
5343 FUNCTION_DECLs.
5344
5345 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
5346
5347 PR middle-end/53590
5348 * function.c (allocate_struct_function): Revert r188667 change.
5349
5350 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
5351
5352 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
5353
5354 * doc/install.texi: Remove links to defunct package providers for
5355 Solaris.
5356
5357 2014-07-09 Tom de Vries <tom@codesourcery.com>
5358
5359 * final.c (get_call_fndecl): Declare.
5360 (self_recursive_call_p): New function.
5361 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
5362
5363 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5364
5365 * ipa-devirt.c (record_node): Walk through aliases.
5366
5367 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5368
5369 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
5370
5371 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5372
5373 Revert:
5374 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5375
5376 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5377
5378 * ipa-visibility.c (function_and_variable_visibility): Remove
5379 temporary hack disabling local aliases on AIX.
5380
5381 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5382
5383 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
5384 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
5385
5386 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5387
5388 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
5389 * rs6000/rs6000.c: Inline output of .set instruction.
5390 (declare_alias_data): New struct.
5391 (rs6000_declare_alias): New function.
5392 (rs6000_xcoff_declare_function_name): Use it.
5393 (rs6000_xcoff_declare_object_name): New function.
5394 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
5395 (ASM_OUTPUT_DEF): Turn to empty definition.
5396
5397 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5398
5399 PR bootstrap/61679
5400 * hash-table.h: use hash_table::value_type instead of
5401 Descriptor::value_type in the return types of several methods.
5402
5403 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5404
5405 * tree-pass.h (pass_data): Remove has_execute member.
5406 * passes.c (execute_one_pass): Don't check pass->has_execute.
5407 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
5408 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
5409 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
5410 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
5411 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
5412 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
5413 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
5414 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
5415 gimple-low.c, gimple-ssa-isolate-paths.c,
5416 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
5417 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
5418 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
5419 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
5420 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
5421 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
5422 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
5423 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
5424 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
5425 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
5426 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
5427 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
5428 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
5429 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5430 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
5431 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
5432 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
5433 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
5434 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
5435 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
5436 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
5437 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
5438 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
5439 web.c: Remove initializer for pass_data::has_execute.
5440
5441 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5442
5443 * graphite-htab.h: Use hash_map instead of hash_table.
5444 * graphite-clast-to-gimple.c: Adjust.
5445 * passes.c: Use hash_map instead of hash_table.
5446 * sese.c: Likewise.
5447 * sese.h: Remove now unused code.
5448
5449 2014-07-08 Sriraman Tallam <tmsriram@google.com>
5450
5451 PR target/61599
5452 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
5453 than zero.
5454
5455 2014-07-08 Jakub Jelinek <jakub@redhat.com>
5456
5457 PR rtl-optimization/61673
5458 * combine.c (simplify_comparison): Test just mode's sign bit
5459 in tmode rather than the sign bit and any bits above it.
5460
5461 2014-07-08 Roman Gareev <gareevroman@gmail.com>
5462
5463 * graphite-isl-ast-to-gimple.c (generate_isl_context):
5464 Add __isl_give to the declaration.
5465 (generate_isl_schedule): Likewise.
5466 (scop_to_isl_ast): Likewise.
5467
5468 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5469
5470 * config/arm/arm.c (cortexa5_extra_costs): New table.
5471 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
5472
5473 2014-07-08 Jakub Jelinek <jakub@redhat.com>
5474
5475 PR tree-optimization/61725
5476 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
5477 range, use range_includes_zerop_p instead of integer_zerop on
5478 vr0->min, only use log2 of max if min is not negative.
5479
5480 2014-07-08 Richard Biener <rguenther@suse.de>
5481
5482 * tree-ssa-dom.h (loop_depth_of_name): Remove.
5483 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
5484 restriction on loop depth difference.
5485 (record_equality): Likewise.
5486 (propagate_rhs_into_lhs): Likewise. Simplify condition.
5487 (loop_depth_of_name): Remove.
5488 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
5489 restriction on loop depth difference.
5490 (init_copy_prop): Likewise.
5491
5492 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5493
5494 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
5495 parameter.
5496 (walk_aliased_vdefs): Likewise.
5497 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
5498 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
5499 (detect_type_change_from_memory_writes): Check if entry was reached.
5500
5501 2014-07-08 Richard Biener <rguenther@suse.de>
5502
5503 PR tree-optimization/61681
5504 * tree-ssa-structalias.c (find_what_var_points_to): Expand
5505 NONLOCAL inside ESCAPED.
5506
5507 2014-07-08 Richard Biener <rguenther@suse.de>
5508
5509 PR tree-optimization/61680
5510 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5511 Handle properly all read-write dependences with group accesses.
5512
5513 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
5514
5515 PR tree-optimization/61576
5516 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
5517 block containing reduction statement is predecessor of phi basi block.
5518
5519 2014-07-08 Marek Polacek <polacek@redhat.com>
5520
5521 PR c/60226
5522 * fold-const.c (round_up_loc): Change the parameter type.
5523 Remove assert.
5524 * fold-const.h (round_up_loc): Adjust declaration.
5525 * stor-layout.c (finalize_record_size): Check for too large types.
5526
5527 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
5528
5529 * symtab.c: Include calls.h.
5530 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
5531
5532 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
5533
5534 * config/rs6000/rs6000.c (output_vec_const_move): Handle
5535 little-endian code generation.
5536 * config/rs6000/spe.md (spe_evmergehi): Rename to...
5537 (vec_perm00_v2si): ... this. Handle little-endian code generation.
5538 (spe_evmergehilo): Rename to...
5539 (vec_perm01_v2si): ... this. Handle little-endian code generation.
5540 (spe_evmergelo): Rename to...
5541 (vec_perm11_v2si): ... this. Handle little-endian code generation.
5542 (spe_evmergelohi): Rename to...
5543 (vec_perm10_v2si): ... this. Handle little-endian code generation.
5544 (spe_evmergehi, spe_evmergehilo): New expanders.
5545 (spe_evmergelo, spe_evmergelohi): Likewise.
5546 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
5547 (*frob_tf_ti): Likewise.
5548 (*frob_<mode>_di_2): Likewise.
5549 (*frob_tf_di_8_2): Likewise.
5550 (*frob_di_<mode>): Likewise.
5551 (*frob_ti_tf): Likewise.
5552 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
5553 (*frob_ti_<mode>_8_2): Likewise.
5554 (*frob_ti_tf_2): Likewise.
5555 (mov_si<mode>_e500_subreg0): Rename to...
5556 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
5557 endianness only.
5558 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
5559 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
5560 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
5561 the big endianness only.
5562 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
5563 (*mov_si<mode>_e500_subreg0_2): Rename to...
5564 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
5565 big big endianness only.
5566 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
5567 (*mov_si<mode>_e500_subreg4): Rename to...
5568 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
5569 endianness only.
5570 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
5571 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
5572 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
5573 the big endianness only.
5574 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
5575 pattern.
5576 (*mov_si<mode>_e500_subreg4_2): Rename to...
5577 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
5578 endianness only.
5579 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
5580 (*mov_sitf_e500_subreg8): Rename to...
5581 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
5582 endianness only.
5583 (*mov_sitf_e500_subreg8_le): New instruction pattern.
5584 (*mov_sitf_e500_subreg8_2): Rename to...
5585 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
5586 endianness only.
5587 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
5588 (*mov_sitf_e500_subreg12): Rename to...
5589 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
5590 endianness only.
5591 (*mov_sitf_e500_subreg12_le): New instruction pattern.
5592 (*mov_sitf_e500_subreg12_2): Rename to...
5593 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
5594 endianness only.
5595 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
5596
5597 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
5598
5599 * asan.c (instrument_strlen_call): Do not instrument first byte
5600 in strlen if already instrumented.
5601
5602 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5603
5604 * config/arm/arm.opt (mwords-little-endian): Delete.
5605 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
5606 of TARGET_LITTLE_WORDS.
5607 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
5608 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
5609 warning.
5610 * doc/invoke.texi: Remove references to -mwords-little-endian.
5611
5612 2014-07-07 Jakub Jelinek <jakub@redhat.com>
5613
5614 * expmed.c (struct init_expmed_rtl): Change all fields but
5615 pow2 and cint from struct rtx_def to rtx.
5616 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
5617 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
5618 at the end again.
5619
5620 2014-07-06 Marek Polacek <polacek@redhat.com>
5621
5622 PR c/6940
5623 * doc/invoke.texi: Document -Wsizeof-array-argument.
5624
5625 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
5626
5627 * wide-int.h (wide_int_storage): Change declaration from struct
5628 to class.
5629
5630 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
5631
5632 * cgraph.c (cgraph_create_indirect_edge): Update call of
5633 get_polymorphic_call_info.
5634 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
5635 (possible_polymorphic_call_targets): Add parameter call.
5636 (decl_maybe_in_construction_p): New predicate.
5637 (get_polymorphic_call_info): Add parameter call;
5638 use decl_maybe_in_construction_p.
5639 * gimple-fold.c (fold_gimple_assign): Update use of
5640 possible_polymorphic_call_targets.
5641 (gimple_fold_call): Likewise.
5642 * ipa-prop.c: Inlcude calls.h
5643 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
5644 (param_type_may_change_p): New predicate.
5645 (detect_type_change_from_memory_writes): Break out from ...
5646 (detect_type_change): ... this one; use param_type_may_change_p.
5647 (detect_type_change_ssa): Use param_type_may_change_p.
5648 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
5649
5650 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
5651
5652 PR target/49423
5653 * config/arm/arm-protos.h (arm_legitimate_address_p,
5654 arm_is_constant_pool_ref): Add prototypes.
5655 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
5656 (arm_is_constant_pool_ref) New function.
5657 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
5658 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
5659 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
5660 operand. Remove pool_range and neg_pool_range attributes.
5661 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
5662 pool_range and neg_pool_range attributes.
5663 * config/arm/constraints.md (Uh): New constraint.
5664 (Uq): Don't allow constant pool references.
5665
5666 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
5667
5668 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
5669 (move_lo_quad_internal_be_<mode>): Likewise.
5670 (move_lo_quad_<mode>): Convert to define_expand.
5671 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
5672 (aarch64_simd_move_hi_quad_be_<mode>): New.
5673 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
5674 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
5675 (aarch64_combinez_be<mode>): New.
5676 (aarch64_combine<mode>): Convert to define_expand.
5677 (aarch64_combine_internal<mode>): New.
5678 (aarch64_simd_combine<mode>): Remove bogus RTL description.
5679
5680 2014-07-04 Tom de Vries <tom@codesourcery.com>
5681
5682 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
5683 combination of earlyclobber and read/write modifiers.
5684
5685 2014-07-04 Tom de Vries <tom@codesourcery.com>
5686
5687 * config/aarch64/aarch64-simd.md
5688 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
5689
5690 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
5691
5692 PR target/61714
5693 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
5694
5695 2014-07-04 Jakub Jelinek <jakub@redhat.com>
5696
5697 PR middle-end/61654
5698 * cgraphunit.c (expand_thunk): Call free_dominance_info.
5699
5700 PR tree-optimization/61684
5701 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
5702 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
5703
5704 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5705 Kito Cheng <kito@0xlab.org>
5706 Monk Chiang <sh.chiang04@gmail.com>
5707
5708 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
5709 (nds32_symbol_load_store_p): Move to ...
5710 (nds32_fp_as_gp_check_available): Move to ...
5711 * config/nds32/nds32-fp-as-gp.c: ... here.
5712 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
5713 extern declaration.
5714
5715 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5716 Kito Cheng <kito@0xlab.org>
5717 Monk Chiang <sh.chiang04@gmail.com>
5718
5719 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
5720 (nds32_expand_store_multiple): Move to ...
5721 (nds32_expand_movmemqi): Move to ...
5722 * config/nds32/nds32-memory-manipulation.c: ... here.
5723
5724 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5725 Kito Cheng <kito@0xlab.org>
5726 Monk Chiang <sh.chiang04@gmail.com>
5727
5728 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
5729 (nds32_output_casesi_pc_relative): Move to ...
5730 (nds32_output_casesi): Move to ...
5731 (nds32_mem_format): Move to ...
5732 (nds32_output_16bit_store): Move to ...
5733 (nds32_output_16bit_load): Move to ...
5734 (nds32_output_32bit_store): Move to ...
5735 (nds32_output_32bit_load): Move to ...
5736 (nds32_output_32bit_load_s): Move to ...
5737 (nds32_output_stack_push): Move to ...
5738 (nds32_output_stack_pop): Move to ...
5739 * config/nds32/nds32-md-auxiliary.c: ... here.
5740
5741 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5742 Ling-Hua Tseng <uranus@tinlans.org>
5743
5744 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
5745 the purpose of this file.
5746
5747 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5748 Kito Cheng <kito@0xlab.org>
5749 Monk Chiang <sh.chiang04@gmail.com>
5750
5751 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
5752 (nds32_address_cost): Move implementation to ...
5753 * config/nds32/nds32-cost.c: ... here.
5754 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
5755 (nds32_address_cost_impl): Declare.
5756
5757 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5758 Kito Cheng <kito@0xlab.org>
5759 Monk Chiang <sh.chiang04@gmail.com>
5760
5761 * config/nds32/nds32.c
5762 (nds32_consecutive_registers_load_store_p): Move to ...
5763 (nds32_valid_multiple_load_store): Move to ...
5764 (nds32_valid_stack_push_pop): Move to ...
5765 (nds32_can_use_bclr_p): Move to ...
5766 (nds32_can_use_bset_p): Move to ...
5767 (nds32_can_use_btgl_p): Move to ...
5768 (nds32_can_use_bitci_p): Move to ...
5769 * config/nds32/nds32-predicates.c: ... here.
5770
5771 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5772 Kito Cheng <kito@0xlab.org>
5773 Monk Chiang <sh.chiang04@gmail.com>
5774
5775 * config/nds32/nds32.c
5776 (nds32_expand_builtin_null_ftype_reg): Move to ...
5777 (nds32_expand_builtin_reg_ftype_imm): Move to ...
5778 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
5779 (nds32_init_builtins): Move implementation to ...
5780 (nds32_expand_builtin): Move implementation to ...
5781 * config/nds32/nds32-intrinsic.c: ... here.
5782 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
5783 (nds32_expand_builtin_impl): Declare.
5784
5785 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5786 Kito Cheng <kito@0xlab.org>
5787 Monk Chiang <sh.chiang04@gmail.com>
5788
5789 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
5790 (nds32_emit_section_tail_template): Move to ...
5791 (nds32_emit_isr_jmptbl_section): Move to ...
5792 (nds32_emit_isr_vector_section): Move to ...
5793 (nds32_emit_isr_reset_conten): Move to ...
5794 (nds32_check_isr_attrs_conflict): Move to ...
5795 (nds32_construct_isr_vectors_information): Move to ...
5796 (nds32_asm_file_start): Move implementation to ...
5797 (nds32_asm_file_end): Move implementation to ...
5798 * config/nds32/nds32-isr.c: ... here.
5799 * config/nds32/nds32-protos.h
5800 (nds32_check_isr_attrs_conflict): Declare.
5801 (nds32_construct_isr_vectors_information): Declare.
5802 (nds32_asm_file_start_for_isr): Declare.
5803 (nds32_asm_file_end_for_isr): Declare.
5804
5805 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5806 Kito Cheng <kito@0xlab.org>
5807 Monk Chiang <sh.chiang04@gmail.com>
5808
5809 * config.gcc (nds32*): Add new modules to extra_objs.
5810 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
5811 (nds32be-*-*): Likewise.
5812 * config/nds32/nds32-cost.c: New file.
5813 * config/nds32/nds32-fp-as-gp.c: New file.
5814 * config/nds32/nds32-intrinsic.c: New file.
5815 * config/nds32/nds32-isr.c: New file.
5816 * config/nds32/nds32-md-auxiliary.c: New file.
5817 * config/nds32/nds32-memory-manipulation.c: New file.
5818 * config/nds32/nds32-pipelines-auxiliary.c: New file.
5819 * config/nds32/nds32-predicates.c: New file.
5820 * config/nds32/t-nds32: New file.
5821
5822 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5823
5824 PR tree-optimization/61682
5825 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
5826 using cases and when one of the operands is equal to 1.
5827
5828 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
5829
5830 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
5831 ashr<mode>3): Correct mode of operands[2].
5832 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
5833 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
5834 Correct mode of operands[2]. Fix split condition.
5835
5836 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
5837
5838 * arm.md (arch): Add armv6_or_vfpv3.
5839 (arch_enabled): Add test for the above.
5840 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
5841 on VFP9.
5842 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
5843
5844 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5845
5846 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
5847 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
5848 HWI 1 and negate the unsigned value.
5849 * expmed.c (expand_sdiv_pow2): For modes wider than word always
5850 use AND instead of shift.
5851 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
5852
5853 2014-07-03 Marek Polacek <polacek@redhat.com>
5854
5855 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
5856 (-fsanitize=float-divide-by-zero): Move to the table with
5857 -fsanitize=undefined suboptions.
5858 (-fsanitize=float-cast-overflow): Likewise.
5859
5860 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
5861
5862 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
5863 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
5864 endianness.
5865
5866 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5867
5868 * loop-invariant.c (struct invariant): Add a new member: eqno;
5869 (find_identical_invariants): Update eqno;
5870 (create_new_invariant): Init eqno;
5871 (get_inv_cost): Compute comp_cost with eqno;
5872
5873 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5874
5875 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
5876 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
5877 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
5878 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
5879 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
5880
5881 2014-07-02 Christian Bruel <christian.bruel@st.com>
5882
5883 PR target/29349
5884 PR target/53513
5885 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
5886 (make_preds_opaque): Delete.
5887 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
5888 (commit_mode_sets): New function.
5889 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
5890 Process all modes at once.
5891 * basic-block.h (pre_edge_lcm_avs): Declare.
5892 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
5893 Call clear_aux_for_edges. Fix comments.
5894 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
5895 (pre_edge_rev_lcm): Idem.
5896 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
5897 parameter.
5898 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
5899 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5900 Idem.
5901 * config/i386/i386.c (x96_emit_mode_set): Idem.
5902 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
5903 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
5904 (fpscr_toggle) Disallow from delay slot.
5905 * target.def (emit_mode_set): Add prev_mode parameter.
5906 * doc/tm.texi: Regenerate.
5907
5908 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5909
5910 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
5911 variable i.
5912
5913 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5914
5915 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
5916 vtable_pointer_value_to_vtable): Constify.
5917 (contains_polymorphic_type_p): Declare.
5918 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
5919 vtable_pointer_value_to_vtable): Constify.
5920 (contains_polymorphic_type_p): New predicate.
5921 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
5922 polymorphic types.
5923 (ipa_set_ancestor_jf): Likewise.
5924 (detect_type_change): Return false in easy cases.
5925 (compute_complex_assign_jump_func): Require type to contain
5926 polymorphic type.
5927 (compute_known_type_jump_func): Likewise.
5928
5929 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5930
5931 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
5932 Remove.
5933 (type_in_anonymous_namespace_p): Constify argument.
5934 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
5935 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
5936 (main_odr_variant): New function.
5937 (hash_type_name): Make static; update assert; do not ICE on
5938 non-records.
5939 (types_same_for_odr): Bring here from tree.c; simplify and remove
5940 old structural comparing code that doesn't work for templates.
5941 (odr_hasher::equal): Update assert.
5942 (add_type_duplicate): Return true when bases should be computed;
5943 replace incomplete loader by complete; do not output duplicated
5944 warnings; do not ICE on non-records; set odr_violated flag.
5945 (get_odr_type): Be ready to replace incomplete type by complete
5946 one; work on ODR variants instead of main variants; reorder item
5947 in array so bases have still smaller indexes.
5948 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
5949 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
5950
5951 2014-07-01 Cary Coutant <ccoutant@google.com>
5952
5953 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
5954 lookup.
5955 (resolve_addr_in_expr): When replacing the rtx in a location list
5956 entry, get a new address table entry.
5957 (dwarf2out_finish): Call index_location_lists even if there are no
5958 addr_index_table entries yet.
5959
5960 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5961
5962 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
5963 change for not being obvious.
5964
5965 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5966
5967 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
5968 unused argument.
5969
5970 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5971
5972 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
5973 (vcagt_f64): Likewise.
5974 (vcale_f64): Likewise.
5975 (vcaled_f64): Likewise.
5976 (vcales_f32): Likewise.
5977 (vcalt_f64): Likewise.
5978 (vcaltd_f64): Likewise.
5979 (vcalts_f32): Likewise.
5980
5981 2014-07-01 Marek Polacek <polacek@redhat.com>
5982
5983 * doc/invoke.texi: Document -Wint-conversion.
5984
5985 2014-07-01 Marek Polacek <polacek@redhat.com>
5986
5987 PR c/58286
5988 * doc/invoke.texi: Document -Wincompatible-pointer-types.
5989
5990 2014-07-01 Martin Liska <mliska@suse.cz>
5991
5992 IPA REF alias refactoring
5993 * cgraph.h (iterate_direct_aliases): New function.
5994 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
5995 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
5996 FOR_EACH_ALIAS added.
5997 (cgraph_for_node_and_aliases): Likewise.
5998 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
5999 * ipa-inline.c (reset_edge_caches): Likewise.
6000 (update_caller_keys): Likewise.
6001 * trans-mem.c (ipa_tm_execute): Likewise.
6002 *varpool.c (varpool_analyze_node): Likewise.
6003 (varpool_for_node_and_aliases): Likewise.
6004 * ipa-ref.h (first_alias): New function.
6005 (last_alias): Likewise.
6006 (has_aliases_p): Likewise.
6007 * ipa-ref.c (ipa_ref::remove_reference): Removal function
6008 is sensitive to IPA_REF_ALIASes.
6009 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
6010 are put at the beginning of the list.
6011 (symtab_node::iterate_direct_aliases): New function.
6012
6013 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6014
6015 Revert:
6016 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
6017 type is complete.
6018 (write_ts_type_common_tree_pointers): Do not stream fields not set
6019 for incomplete types; do not stream duplicated fields for variants;
6020 sanity check that variant and type match.
6021 (write_ts_type_non_common_tree_pointers): Likewise.
6022 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
6023 TYPE_SIZE whether type is complete.
6024 (lto_input_ts_type_common_tree_pointers): Do same changes as in
6025 write_ts_type_common_tree_pointers
6026 (lto_input_ts_type_non_common_tree_pointers): Likewise.
6027
6028 2014-06-30 Joseph Myers <joseph@codesourcery.com>
6029
6030 * var-tracking.c (add_stores): Return instead of asserting if old
6031 and new values for conditional store are the same.
6032
6033 2014-06-30 Richard Henderson <rth@redhat.com>
6034
6035 PR rtl-opt/61608
6036 PR target/39284
6037 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
6038 the cfg if there were any changes.
6039 * passes.def: Revert move of peephole2 after reorder_blocks;
6040 move duplicate_computed_gotos before peephole2.
6041
6042 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
6043
6044 * except.c (emit_note_eh_region_end): New helper function.
6045 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
6046 emit EH_REGION_END note.
6047 * jump.c (cleanup_barriers): Do not split a call and its
6048 corresponding CALL_ARG_LOCATION note.
6049
6050 2014-06-30 Jeff Law <law@redhat.com>
6051
6052 PR tree-optimization/61607
6053 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
6054 deeper into the SSA_NAME_VALUE chain.
6055
6056 2014-06-30 Marek Polacek <polacek@redhat.com>
6057
6058 * convert.c (convert_to_integer): Don't instrument conversions if the
6059 function has no_sanitize_undefined attribute.
6060 * ubsan.c: Don't run the ubsan pass if the function has
6061 no_sanitize_undefined attribute.
6062
6063 2014-06-30 Jakub Jelinek <jakub@redhat.com>
6064
6065 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
6066 -fsanitize=undefined suboptions.
6067
6068 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
6069
6070 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
6071 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
6072 against bigendian and adjust indices.
6073
6074 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
6075
6076 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
6077
6078 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
6079
6080 PR target/61633
6081 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
6082 Add alternative; make early clobber. Adjust both split patterns
6083 to use operand 0 as the working register.
6084
6085 2014-06-30 Jakub Jelinek <jakub@redhat.com>
6086
6087 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
6088 as ira_object_id_map might be NULL, or 1.
6089
6090 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6091
6092 * loop-invariant.c (get_inv_cost): Handle register class.
6093 (gain_for_invariant): Check the register pressure of the inv
6094 and its overlapped register class, other than all.
6095
6096 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
6097
6098 * doc/invoke.texi (Optimize Options): Fix descriptions of
6099 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
6100
6101 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
6102
6103 * doc/extend.texi (Function Attributes): Update 'naked' attribute
6104 documentation.
6105
6106 2014-06-29 Tobias Grosser <tobias@grosser.es>
6107
6108 PR bootstrap/61650
6109 * graphite-isl-ast-to-gimple.c: Add missing guards.
6110
6111 2014-06-29 Roman Gareev <gareevroman@gmail.com>
6112
6113 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
6114 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
6115 * flag-types.h: Add new enum fgraphite_generator.
6116 * graphite-isl-ast-to-gimple.c: New.
6117 * graphite-isl-ast-to-gimple.h: New.
6118 * graphite.c (graphite_transform_loops): Add choice of Graphite
6119 code generator, which depends on flag_graphite_code_gen.
6120
6121 2014-06-29 Roman Gareev <gareevroman@gmail.com>
6122
6123 * graphite-dependences.c (subtract_commutative_associative_deps):
6124 Add NULL checking of the following variables: must_raw_no_source,
6125 may_raw_no_source, must_war_no_source, may_war_no_source,
6126 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
6127 must_war, may_war, must_waw, may_waw.
6128
6129 2014-06-29 Roman Gareev <gareevroman@gmail.com>
6130
6131 * graphite-clast-to-gimple.c: gloog is renamed to
6132 graphite_regenerate_ast_cloog. gloog_error is renamed to
6133 graphite_regenerate_error.
6134 * graphite-clast-to-gimple.h: The definition of the struct
6135 bb_pbb_def is moved to graphite-htab.h.
6136 Add inclusion of the hash-table.h.
6137 * graphite-htab.h: The declaration of the function gloog is moved
6138 to graphite-clast-to-gimple.h and renamed to
6139 graphite_regenerate_ast_cloog.
6140 * graphite.c (graphite_transform_loops): gloog is renamed
6141 to graphite_regenerate_ast_cloog.
6142
6143 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6144
6145 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
6146 type is complete.
6147 (write_ts_type_common_tree_pointers): Do not stream fields not set
6148 for incomplete types; do not stream duplicated fields for variants;
6149 sanity check that variant and type match.
6150 (write_ts_type_non_common_tree_pointers): Likewise.
6151 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
6152 TYPE_SIZE whether type is complete.
6153 (lto_input_ts_type_common_tree_pointers): Do same changes as in
6154 write_ts_type_common_tree_pointers
6155 (lto_input_ts_type_non_common_tree_pointers): Likewise.
6156
6157 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6158
6159 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
6160
6161 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6162
6163 * tree-inline.c (remap_type_1): Do not duplicate fields
6164 that are shared in between type and its main variant.
6165
6166 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6167
6168 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
6169 of the type.
6170 (ipa_set_ancestor_jf) Likewise.
6171 (check_stmt_for_type_change): Check that we work on main variant.
6172 (detect_type_change): Look into main variant.
6173 (compute_known_type_jump_func): Check that main variant has BINFO.
6174
6175 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6176
6177 * ipa-devirt.c (set_type_binfo): New function.
6178 (add_type_duplicate): Use it.
6179 (get_odr_type): Sanity check that binfos points to main variants.
6180 (get_class_context): Be sure the context's outer_type is main variant.
6181 (contains_type_p): Walk main variant.
6182 (get_polymorphic_call_info_for_decl): Set outer_type to be
6183 main variant.
6184 (get_polymorphic_call_info): Likewise.
6185 (possible_polymorphic_call_targets): Sanity check that we operate
6186 on main variant.
6187
6188 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6189
6190 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
6191
6192 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6193
6194 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
6195 accidental change due to wide-int branch merge.
6196
6197 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6198
6199 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
6200 compressed debug support.
6201 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
6202 * configure: Regenerate.
6203 * config.in: Regenerate.
6204 * common.opt (compressed_debug_sections): New enum.
6205 (gz, gz=): New options.
6206 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
6207 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
6208 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
6209 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
6210 LINK_COMPRESS_DEBUG_SPEC.
6211 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
6212 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
6213 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
6214 (Debugging Options): Document -gz[=type].
6215
6216 2014-06-27 Martin Jambor <mjambor@suse.cz>
6217
6218 PR ipa/61160
6219 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
6220 args_to_skip, use those from node instead. Copy args_to_skip and
6221 combined_args_to_skip from node to the new thunk.
6222 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
6223 (cgraph_create_virtual_clone): Moved computation of
6224 combined_args_to_skip...
6225 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
6226
6227 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
6228
6229 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
6230 redundant diagnostic machinary.
6231
6232 2014-06-27 Richard Biener <rguenther@suse.de>
6233
6234 * tree-ssa-math-opts.c (bswap_replace): Fix
6235 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
6236
6237 2014-06-27 Martin Liska <mliska@suse.cz>
6238
6239 * gimple.h (gimple_location_safe): New function introduced.
6240 * cgraphunit.c (walk_polymorphic_call_targets): Usage
6241 of gimple_location_safe replaces gimple_location.
6242 (gimple_fold_call): Likewise.
6243 * ipa-devirt.c (ipa_devirt): Likewise.
6244 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6245 * ipa.c (walk_polymorphic_call_targets): Likewise.
6246 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
6247
6248 2014-06-27 Jakub Jelinek <jakub@redhat.com>
6249
6250 PR tree-optimization/57233
6251 PR tree-optimization/61299
6252 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
6253 functions.
6254 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
6255 would be lowered to scalar shifts, check if corresponding
6256 shifts and vector BIT_IOR_EXPR are supported and don't lower
6257 or lower just to narrower vector type in that case.
6258 * expmed.c (expand_shift_1): Fix up handling of vector
6259 shifts and rotates.
6260
6261 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
6262
6263 PR target/61586
6264 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
6265
6266 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
6267
6268 * doc/invoke.texi (-fsemantic-interposition): Document.
6269 * common.opt (fsemantic-interposition): New flag.
6270 * varasm.c (decl_replaceable_p): Use it.
6271
6272 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6273
6274 PR target/61542
6275 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
6276 extraction other than index 3.
6277
6278 2014-06-26 Teresa Johnson <tejohnson@google.com>
6279
6280 * doc/invoke.texi: Fix typo.
6281 * dumpfile.c: Add support for documented -fdump-* options
6282 optimized/missed/note/optall.
6283
6284 2014-06-26 Martin Jambor <mjambor@suse.cz>
6285
6286 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
6287 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
6288 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
6289 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
6290 * opts.c (default_options_optimization): Set
6291 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
6292 * doc/invoke.texi (allow-load-data-races)
6293 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
6294 (allow-store-data-races): Document the new default.
6295
6296 2014-06-26 Martin Jambor <mjambor@suse.cz>
6297
6298 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
6299 renamed to ipa_impossible_devirt_target. Fix typo.
6300 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
6301 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
6302 ipa_impossible_devirt_target.
6303
6304 2014-06-26 Richard Biener <rguenther@suse.de>
6305
6306 PR tree-optimization/61607
6307 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
6308 explaining why we restrict copies on loop depth.
6309 * tree-ssa-dom.c (cprop_operand): Remove restriction on
6310 on loop depth.
6311 (record_equivalences_from_phis): Instead add it here.
6312
6313 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
6314
6315 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
6316 (LTO_WRAPPER_OBJS): New variable.
6317 (lto-wrapper$(exeext)): Use it.
6318 * collect2.c: Include "collect-utils.h".
6319 (verbose, debug): Remove variables.
6320 (at_file_supplied): No longer static.
6321 (tool_name): New variable.
6322 (do_wait, fork_execute, maybe_unlink): Don't declare.
6323 (tool_cleanup): No longer static.
6324 (notice): Remove function.
6325 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
6326 fork_execute calls.
6327 (collect_wait, do_wait, collect_execute): Remove functions.
6328 (maybe_unlink): No longer static.
6329 * collect2.h (verbose, debug): Don't declare.
6330 (at_file_supplied): Declare.
6331 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
6332 changed.
6333 (collect_execute): Replace with implementation from collect2, plus a
6334 new arg use_atfile. All callers changed.
6335 (collect_wait): Replace with implementation from collect2.
6336 (maybe_unlink_file): Remove function.
6337 (fork_execute): Replace with implementation from collect2, plus a
6338 new arg use_atfile. All callers changed.
6339 (do_wait): Add call to utils_cleanup to the error path.
6340 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
6341 (tool_cleanup): Adjust declarations.
6342 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
6343 * tlink.c: Include "collect-utils.h".
6344 (tlink_execute): New arg use_atfile. All callers changed.
6345 (tlink_init, tlink_execute): Remove declarations.
6346
6347 * collect-utils.c (save_temps): New variable.
6348 (do_wait): Use it instead of debug. Use fatal_error.
6349 * collect-utils.h (save_temps): Declare.
6350 * collect2.c (verbose): Rename from vflag. All uses changed.
6351 (tool_cleanup): New function, copied from collect_atexit.
6352 (collect_atexit, handler): Just call it.
6353 * collect2.h (verbose): Declaration renamed from vflag.
6354 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
6355 debug.
6356
6357 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
6358 (lto-wrapper$(exeext)): Link with collect-utils.o.
6359 * collect-utils.c: New file.
6360 * collect-utils.h: New file.
6361 * lto-wrapper.c: Include "collect-utils.h".
6362 (args_name): Delete variable.
6363 (tool_name): New variable.
6364 (tool_cleanup): New function.
6365 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
6366 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
6367 (fork_execute): Remove functions.
6368
6369 2014-06-26 Nick Clifton <nickc@redhat.com>
6370
6371 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
6372
6373 * doc/extend.texi (Function Attributes): Fix typo in description
6374 of RX vector attribute.
6375
6376 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6377
6378 * config.gcc (supported_defaults): Error when passing either
6379 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
6380
6381 2014-06-26 Richard Biener <rguenther@suse.de>
6382
6383 * tree-ssa-dom.c (cprop_operand): Remove restriction on
6384 propagating volatile pointers.
6385
6386 2014-06-26 Richard Biener <rguenther@suse.de>
6387
6388 PR tree-optimization/61607
6389 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
6390 loop if we redirected its latch edge.
6391 (thread_block_1): Do not cancel loops prematurely.
6392
6393 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
6394
6395 * toplev.c (backend_init_target): Move init_emit_regs and
6396 init_regs to...
6397 (backend_init) ... here; skip ira_init_once and backend_init_target.
6398 (target_reinit) ... and here; clear
6399 this_target_rtl->lang_dependent_initialized.
6400 (lang_dependent_init_target): Clear
6401 this_target_rtl->lang_dependent_initialized;
6402 break out rtl initialization to ...
6403 (initialize_rtl): ... here; call also backend_init_target
6404 and ira_init_once.
6405 * toplev.h (initialize_rtl): New function.
6406 * function.c: Include toplev.h
6407 (init_function_start): Call initialize_rtl.
6408 * rtl.h (target_rtl): Add target_specific_initialized,
6409 lang_dependent_initialized.
6410
6411 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
6412 Jakub Jelinek <jakub@redhat.com>
6413
6414 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
6415
6416 2014-06-25 Tom de Vries <tom@codesourcery.com>
6417
6418 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
6419
6420 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6421
6422 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
6423 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
6424 Issue a strict overflow warning if appropriate.
6425
6426 2014-06-25 Martin Liska <mliska@suse.cz>
6427
6428 IPA REF refactoring
6429 * Makefile.in: Removed header file (ipa-ref-inline.h).
6430 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
6431 called.
6432 (cgraph_speculative_call_info): Likewise.
6433 (cgraph_for_node_thunks_and_aliases): Likewise.
6434 (cgraph_for_node_and_aliases): Likewise.
6435 (verify_cgraph_node): Likewise.
6436 * cgraph.h: Batch of IPA REF functions become member functions of
6437 symtab_node: add_reference, maybe_add_reference, clone_references,
6438 clone_referring, clone_reference, find_reference,
6439 remove_stmt_references, remove_all_references,
6440 remove_all_referring, dump_references, dump_referring,
6441 has_alias_p, iterate_reference, iterate_referring.
6442 * cgraphbuild.c (record_reference): New IPA REF function used.
6443 (record_type_list): Likewise.
6444 (record_eh_tables): Likewise.
6445 (mark_address): Likewise.
6446 (mark_load): Likewise.
6447 (mark_store): Likewise.
6448 (pass_build_cgraph_edges): Likewise.
6449 (rebuild_cgraph_edge): Likewise.
6450 (cgraph_rebuild_references): Likewise.
6451 (pass_remove_cgraph_callee_edges): Likewise.
6452 * cgraphclones.c (cgraph_clone_node): Likewise.
6453 (cgraph_create_virtual_clone): Likewise.
6454 (cgraph_materialize_clone): Likewise.
6455 (cgraph_materialize_all_clones): Likewise.
6456 * cgraphunit.c (cgraph_reset_node): Likewise.
6457 (cgraph_reset_node): Likewise.
6458 (analyze_function): Likewise.
6459 (assemble_thunks_and_aliases): Likewise.
6460 (expand_function): Likewise.
6461 * ipa-comdats.c (propagate_comdat_group): Likewise.
6462 (enqueue_references): Likewise.
6463 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
6464 (create_specialized_node): Likewise.
6465 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
6466 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
6467 * ipa-inline.c (reset_edge_caches): Likewise.
6468 (update_caller_keys): Likewise.
6469 (execute): Likewise.
6470 * ipa-prop.c (remove_described_reference): Likewise.
6471 (propagate_controlled_uses): Likewise.
6472 (ipa_edge_duplication_hook): Likewise.
6473 (ipa_modify_call_arguments): Likewise.
6474 * ipa-pure-const.c (propagate_pure_const): Likewise.
6475 * ipa-ref-inline.h: Header file removed, functions moved
6476 to symtab_node class.
6477 * ipa-ref.c (remove_reference): New class member function.
6478 (cannot_lead_to_return): New class member function.
6479 (referring_ref_list): Likewise.
6480 (referred_ref_list): Likewise.
6481 Rest of functions moved to symtab_node class.
6482 * ipa-ref.h: New member functions remove_reference,
6483 cannot_lead_to_return, referring_ref_list, referred_ref_list added
6484 to ipa_ref class.
6485 ipa_ref_list class has new member functions: first_reference,
6486 first_referring, clear, nreferences.
6487 * ipa-reference.c (analyze_function): New IPA REF function used.
6488 (write_node_summary_p): Likewise.
6489 (ipa_reference_write_optimization_summary): Likewise.
6490 * ipa-split.c (split_function): Likewise.
6491 * ipa-utils.c (ipa_reverse_postorder): Likewise.
6492 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
6493 (function_and_variable_visibility): Likewise.
6494 * ipa.c (has_addr_references_p): Likewise.
6495 (process_references): Argument type changed.
6496 (symtab_remove_unreachable_nodes): New IPA REF function used.
6497 (process_references): Likewise.
6498 (set_writeonly_bit): Likewise.
6499 * lto-cgraph.c: Implementation of new symtab_node member functions
6500 that uses new IPA REF functions.
6501 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
6502 function used.
6503 * lto-streamer-out.c (output_symbol_p): Likewise.
6504 * lto-streamer.h (referenced_from_this_partition_p): Argument type
6505 changed.
6506 * symtab.c: Implementation of new IPA REF API.
6507 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
6508 (ipa_tm_create_version): Likewise.
6509 (ipa_tm_execute): Likewise.
6510 * tree-emutls.c (gen_emutls_addr): Likewise.
6511 * tree-inline.c (copy_bb): Likewise.
6512 (delete_unreachable_blocks_update_callgraph): Likewise.
6513 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
6514 (varpool_for_node_and_aliases): Likewise.
6515
6516 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
6517
6518 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
6519
6520 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
6521
6522 PR bootstrap/61598
6523 * fold-const.c (fold_checksum_tree): Use a hash_table of const
6524 tree_node * instead of tree_node *.
6525 (fold): Adjust.
6526 (print_fold_checksum): Likewise.
6527 (fold_check_failed): Likewise.
6528 (debug_fold_checksum): Likewise.
6529 (fold_build1_stat_loc): Likewise.
6530 (fold_build2_stat_loc): Likewise.
6531 (fold_build3_stat_loc): Likewise.
6532 (fold_build_call_array_loc): Likewise.
6533
6534 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
6535
6536 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
6537 implementation with call to...
6538 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
6539 function.
6540 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
6541 Declare.
6542
6543 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
6544
6545 PR tree-optimization/57742
6546 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
6547 after replacing the statement.
6548
6549 2014-06-25 Nick Clifton <nickc@redhat.com>
6550
6551 * config/v850/v850.c (GHS_default_section_names): Change to const
6552 char * type.
6553 (GHS_current_section_names): Likewise.
6554 (v850_insert_attributes): Do not build strings, just assign the
6555 names directly. Change the type of 'chosen_section' to const
6556 char*.
6557 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
6558 directly to the array entry.
6559 * config/v850/v850.h (GHS_default_section_names): Change to const
6560 char * type.
6561 (GHS_current_section_names): Likewise.
6562
6563 2014-06-25 Jakub Jelinek <jakub@redhat.com>
6564
6565 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
6566 (LANG_HOOKS_DECLS): Add it.
6567 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
6568 has correct type.
6569 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
6570 * langhooks.h (struct lang_hooks_for_decls): Add
6571 omp_clause_linear_ctor hook.
6572 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
6573 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
6574 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
6575 combined simd loop use omp_clause_linear_ctor hook.
6576
6577 2014-06-24 Cong Hou <congh@google.com>
6578
6579 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
6580 pattern recognition.
6581 (type_conversion_p): PROMOTION is true if it's a type promotion
6582 conversion, and false otherwise. Return true if the given expression
6583 is a type conversion one.
6584 * tree-vectorizer.h: Adjust the number of patterns.
6585 * tree.def: Add SAD_EXPR.
6586 * optabs.def: Add sad_optab.
6587 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
6588 * expr.c (expand_expr_real_2): Likewise.
6589 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6590 * gimple.c (get_gimple_rhs_num_ops): Likewise.
6591 * optabs.c (optab_for_tree_code): Likewise.
6592 * tree-cfg.c (estimate_operator_cost): Likewise.
6593 * tree-ssa-operands.c (get_expr_operands): Likewise.
6594 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
6595 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
6596 * doc/generic.texi: Add document for SAD_EXPR.
6597 * doc/md.texi: Add document for ssad and usad.
6598
6599 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6600
6601 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
6602 qualification in cast.
6603
6604 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
6605
6606 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
6607 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
6608 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
6609 (tree_function_decl): ... here.
6610 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
6611 streaming of vindex to ...
6612 (write_ts_function_decl_tree_pointers): ... here.
6613 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
6614 Do not stream DECL_VINDEX.
6615 (lto_input_ts_function_decl_tree_pointers): Stream it here.
6616
6617 2014-06-24 Catherine Moore <clm@codesourcery.com>
6618 Sandra Loosemore <sandra@codesourcery.com>
6619
6620 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
6621 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
6622 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
6623
6624 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6625
6626 * doc/invoke.texi (Warning Options): Remove duplicated
6627 -Wmaybe-uninitialized.
6628
6629 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6630
6631 PR tree-optimization/57742
6632 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
6633 (handle_builtin_malloc, handle_builtin_memset): New functions.
6634 (strlen_optimize_stmt): Call them.
6635 * passes.def: Move strlen after loop+dom but before vrp.
6636
6637 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6638
6639 PR target/61570
6640 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
6641 model family 6 CPU with has_longmode never use a CPU without
6642 64-bit support.
6643
6644 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
6645
6646 PR target/61570
6647 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
6648 the last change.
6649
6650 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6651
6652 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
6653 * dominance.c (iterate_fix_dominators): Use hash_map instead of
6654 pointer_map.
6655 * hash-map.h: New file.
6656 * ipa-comdats.c: Use hash_map instead of pointer_map.
6657 * ipa.c: Likewise.
6658 * lto-section-out.c: Adjust.
6659 * lto-streamer.h: Replace pointer_map with hash_map.
6660 * symtab.c (verify_symtab): Likewise.
6661 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
6662 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
6663 * tree-streamer.h: Likewise.
6664 * tree-streamer.c: Adjust.
6665 * pointer-set.h: Remove pointer_map.
6666
6667 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6668
6669 * hash-table.h: Add a template arg to choose between storing values
6670 and storing pointers to values, and then provide partial
6671 specializations for both.
6672 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
6673 should store, not the type values should point to.
6674 * tree-into-ssa.c (var_info_hasher): Likewise.
6675 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6676 * tree-complex.c: Adjust.
6677 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
6678 table instead of int_tree_map *.
6679 * tree-parloops.c: Adjust.
6680 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
6681 type is being stored.
6682 * tree-vectorizer.c: Adjust.
6683
6684 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6685
6686 * hash-table.h: Remove a layer of indirection from hash_table so that
6687 it contains the hash table's data instead of a pointer to the data.
6688 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
6689 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
6690 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
6691 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
6692 fold-const.c, gcse.c, ggc-common.c,
6693 gimple-ssa-strength-reduction.c, gimplify.c,
6694 graphite-clast-to-gimple.c, graphite-dependences.c,
6695 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
6696 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
6697 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
6698 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
6699 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
6700 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
6701 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
6702 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
6703 tree-ssa-live.c, tree-ssa-loop-im.c,
6704 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
6705 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6706 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
6707 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
6708 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
6709 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
6710 vtable-verify.c, vtable-verify.h: Adjust.
6711
6712 2014-06-24 Richard Biener <rguenther@suse.de>
6713
6714 PR tree-optimization/61572
6715 * tree-ssa-sink.c (statement_sink_location): Do not sink
6716 loads from hard registers.
6717
6718 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6719
6720 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
6721 not mentioned in clauses use private clause if the iterator is
6722 declared in #pragma omp for simd, and when adding lastprivate
6723 instead, add it to the outer #pragma omp for too. Diagnose
6724 if the variable is private in outer context. For simd collapse > 1
6725 loops, replace all iterators with temporaries.
6726 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
6727 same even in collapse > 1 loops.
6728
6729 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
6730 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
6731 non-NULL.
6732 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
6733 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
6734 non-NULL.
6735 (gimplify_adjust_omp_clauses): Likewise.
6736 * omp-low.c (lower_rec_simd_input_clauses,
6737 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
6738 safelen the same as safelen(1).
6739 * tree-nested.c (convert_nonlocal_omp_clauses,
6740 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
6741 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
6742 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
6743 Fixup handling of GIMPLE_OMP_TARGET.
6744 (convert_tramp_reference_stmt, convert_gimple_call): Handle
6745 GIMPLE_OMP_TARGET.
6746
6747 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
6748
6749 PR tree-optimization/61554
6750 * tree-ssa-propagate.c: Include "bitmap.h".
6751 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
6752 properly update constructor/destructor.
6753 (substitute_and_fold_dom_walker::before_dom_children):
6754 Remove call to gimple_purge_dead_eh_edges, add bb->index to
6755 need_eh_cleaup instead.
6756 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
6757 need_eh_cleanup.
6758
6759 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6760
6761 * varpool.c (dump_varpool_node): Dump used_by_single_function.
6762 * tree-pass.h (make_pass_ipa_single_use): New pass.
6763 * cgraph.h (used_by_single_function): New flag.
6764 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
6765 Stream it.
6766 * passes.def (pass_ipa_single_use): Scedule.
6767 * ipa.c (BOTTOM): New macro.
6768 (meet): New function
6769 (propagate_single_user): New function.
6770 (ipa_single_use): New function.
6771 (pass_data_ipa_single_use): New pass.
6772 (pass_ipa_single_use): New pass.
6773 (pass_ipa_single_use::gate): New gate.
6774 (make_pass_ipa_single_use): New function.
6775
6776 2014-06-23 Kai Tietz <ktietz@redhat.com>
6777
6778 PR target/39284
6779 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
6780 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
6781
6782 2014-06-23 Richard Biener <rguenther@suse.de>
6783
6784 * tree-ssa-loop.c (gate_loop): New function.
6785 (pass_tree_loop::gate): Call it.
6786 (pass_data_tree_no_loop, pass_tree_no_loop,
6787 make_pass_tree_no_loop): New.
6788 * tree-vectorizer.c: Include tree-scalar-evolution.c
6789 (pass_slp_vectorize::execute): Initialize loops and SCEV if
6790 required.
6791 (pass_slp_vectorize::clone): New method.
6792 * timevar.def (TV_TREE_NOLOOP): New.
6793 * tree-pass.h (make_pass_tree_no_loop): Declare.
6794 * passes.def (pass_tree_no_loop): New pass group with
6795 SLP vectorizer.
6796
6797 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
6798
6799 PR target/61570
6800 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
6801 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
6802
6803 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6804
6805 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
6806 "yes" where needed.
6807
6808 2014-06-23 Alan Modra <amodra@gmail.com>
6809
6810 PR bootstrap/61583
6811 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
6812 to zero on debug statements.
6813
6814 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6815
6816 PR target/60825
6817 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
6818 Ignore third operand if present by marking qualifier_internal.
6819
6820 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
6821
6822 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
6823 vector extension.
6824 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
6825 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
6826 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
6827 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
6828 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
6829 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
6830 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
6831 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
6832 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
6833 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
6834 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
6835 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
6836 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
6837 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
6838 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
6839 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
6840 logic in GCC vector extensions
6841
6842 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
6843 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
6844 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
6845 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
6846 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
6847 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
6848 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
6849 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
6850 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
6851 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
6852
6853 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
6854
6855 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
6856 extensions.
6857
6858 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
6859 (vget_low_s64): Use __GET_LOW macro.
6860 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
6861 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
6862 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
6863 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
6864 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
6865
6866 (vcombine_s64): Use GCC vector extensions; remove cast.
6867 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
6868 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
6869 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
6870 Fix type signature; remove cast.
6871
6872 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6873
6874 PR target/60825
6875 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
6876 V1DFmode.
6877 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
6878 add V1DFmode
6879 (BUILTIN_VD1): New.
6880 (BUILTIN_VD_RE): Remove.
6881 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
6882 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
6883 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
6884 variant but not df.
6885 (vreinterpretv1df*, vreinterpret*v1df): New.
6886 (vreinterpretdf*, vreinterpret*df): Remove.
6887 * config/aarch64/aarch64-simd.md (aarch64_create,
6888 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
6889 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
6890 (VD1): New.
6891 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
6892 (vcreate_f64): Remove cast, use v1df builtin.
6893 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
6894 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
6895 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
6896 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
6897 vmov_n_f64, vst1_f64): Use gcc vector extensions.
6898 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
6899 add range check using __builtin_aarch64_im_lane_boundsi.
6900 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
6901 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
6902 type signature, use gcc vector extensions.
6903 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
6904 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
6905 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
6906 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
6907 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
6908 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
6909 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
6910 vreinterpret_u64_f64): Use v1df builtin not df.
6911
6912 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6913
6914 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
6915 vector registers.
6916
6917 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6918
6919 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
6920 priority directly.
6921
6922 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6923
6924 * loop-invariant.c (pre_check_invariant_p): New function.
6925 (find_invariant_insn): Call pre_check_invariant_p.
6926
6927 2014-06-22 Richard Henderson <rth@redhat.com>
6928
6929 PR target/61565
6930 * compare-elim.c (struct comparison): Add eh_note.
6931 (find_comparison_dom_walker::before_dom_children): Don't eliminate
6932 a redundant comparison in a different EH region. Purge EH edges if
6933 necessary.
6934
6935 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6936
6937 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
6938 (var_shift): Use it.
6939 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
6940 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
6941 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
6942 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
6943 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
6944 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
6945 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
6946 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
6947 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
6948 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
6949 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
6950 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
6951 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
6952 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
6953 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
6954 *rotldi3_internal15be): Use the new attribute. Merge register and
6955 integer alternatives.
6956
6957 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6958
6959 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
6960 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
6961 split, *ashrdi3_internal3 and split): Delete, merge into...
6962 (ashr<mode>3): New expander.
6963 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
6964 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
6965
6966 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6967
6968 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
6969 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
6970 *rotldi3_internal3 and split): Delete, merge into...
6971 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
6972 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
6973 Use "rotlw" extended mnemonic.
6974
6975 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6976
6977 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
6978 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
6979 and split, *ashldi3_internal3 and split): Delete, merge into...
6980 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
6981 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
6982
6983 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6984
6985 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
6986 (lshrsi3, two anonymous define_insns and define_splits,
6987 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
6988 *lshrdi3_internal3 and split): Delete, merge into...
6989 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
6990 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
6991
6992 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6993
6994 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
6995 Remove "O" alternative.
6996
6997 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
6998
6999 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
7000 (mips_move_from_gpr_cost): Likewise.
7001 (mips_register_move_cost): Update accordingly.
7002 (mips_secondary_reload_class): Remove name of in_p.
7003
7004 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
7005
7006 PR target/61503
7007 * config/i386/i386.md (x86_64_shrd, x86_shrd,
7008 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
7009
7010 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7011
7012 * config/nios2/nios2.c: Include "builtins.h".
7013
7014 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
7015
7016 * cgraph.h (tls_model_names): New variable.
7017 * print-tree.c (print_node): Simplify.
7018 * varpool.c (tls_model_names): New variable.
7019 (dump_varpool_node): Output tls model.
7020
7021 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
7022
7023 * ipa-visibility.c (function_and_variable_visibility): Disable
7024 temporarily local aliases for some targets.
7025
7026 2014-06-20 Marek Polacek <polacek@redhat.com>
7027
7028 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
7029 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
7030 into SANITIZE_UNDEFINED.
7031 * doc/invoke.texi: Describe -fsanitize=bounds.
7032 * gimplify.c (gimplify_call_expr): Add gimplification of internal
7033 functions created in the FEs.
7034 * internal-fn.c: Move "internal-fn.h" after "tree.h".
7035 (expand_UBSAN_BOUNDS): New function.
7036 * internal-fn.def (UBSAN_BOUNDS): New internal function.
7037 * internal-fn.h: Don't define internal functions here.
7038 * opts.c (common_handle_option): Add -fsanitize=bounds.
7039 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
7040 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
7041 * tree-core.h: Define internal functions here.
7042 (struct tree_base): Add ifn field.
7043 * tree-pretty-print.c: Include "internal-fn.h".
7044 (dump_generic_node): Handle functions without CALL_EXPR_FN.
7045 * tree.c (get_callee_fndecl): Likewise.
7046 (build_call_expr_internal_loc): New function.
7047 * tree.def (CALL_EXPR): Update description.
7048 * tree.h (CALL_EXPR_IFN): Define.
7049 (build_call_expr_internal_loc): Declare.
7050 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
7051 types.
7052 (ubsan_type_descriptor): Change bool parameter to enum
7053 ubsan_print_style. Adjust the code. Add handling of
7054 UBSAN_PRINT_ARRAY.
7055 (ubsan_expand_bounds_ifn): New function.
7056 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
7057 (ubsan_build_overflow_builtin): Likewise.
7058 (instrument_bool_enum_load): Likewise.
7059 (ubsan_instrument_float_cast): Likewise.
7060 * ubsan.h (enum ubsan_print_style): New enum.
7061 (ubsan_expand_bounds_ifn): Declare.
7062 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
7063
7064 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
7065
7066 * config/rs6000/rs6000.md: Append `DONE' to preparation
7067 statements of `bswap' pattern splitters.
7068
7069 2014-06-20 Tom de Vries <tom@codesourcery.com>
7070
7071 * target.def (call_fusage_contains_non_callee_clobbers): Update
7072 definition.
7073 * doc/tm.texi: Regenerate.
7074
7075 2014-06-20 Yury Gribov <y.gribov@samsung.com>
7076 Max Ostapenko <m.ostapenko@partner.samsung.com>
7077
7078 PR sanitizer/61547
7079 * asan.c (instrument_strlen_call): Fixed instrumentation of
7080 trailing byte.
7081
7082 2014-06-20 Martin Jambor <mjambor@suse.cz>
7083
7084 PR ipa/61540
7085 * ipa-prop.c (impossible_devirt_target): New function.
7086 (try_make_edge_direct_virtual_call): Use it, also instead of
7087 asserting.
7088
7089 2014-06-20 Yury Gribov <y.gribov@samsung.com>
7090 Max Ostapenko <m.ostapenko@partner.samsung.com>
7091
7092 PR sanitizer/61530
7093 * asan.c (build_check_stmt): Add condition.
7094
7095 2014-06-20 Martin Jambor <mjambor@suse.cz>
7096
7097 PR ipa/61211
7098 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
7099 expanded clones.
7100
7101 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7102
7103 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
7104 Update comments.
7105 (VCONQ): Make comment more helpful.
7106 (VCON): Delete.
7107 * config/aarch64/aarch64-simd.md
7108 (aarch64_sqdmulh_lane<mode>):
7109 Use VCOND for operands 2. Update lane checking and flipping logic.
7110 (aarch64_sqrdmulh_lane<mode>): Likewise.
7111 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
7112 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
7113 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
7114 attribute of operand 3 to VCOND.
7115 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
7116 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
7117 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
7118 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
7119 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
7120 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
7121 define_insn.
7122 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
7123 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
7124 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
7125 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
7126 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
7127 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
7128 operand to VCOND. Update lane flipping and bounds checking logic.
7129 (aarch64_sqdmlal2_lane<mode>): Likewise.
7130 (aarch64_sqdmlsl_lane<mode>): Likewise.
7131 (aarch64_sqdmull_lane<mode>): Likewise.
7132 (aarch64_sqdmull2_lane<mode>): Likewise.
7133 (aarch64_sqdmlal_laneq<mode>):
7134 Replace VCON usage with VCONQ.
7135 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
7136 (aarch64_sqdmlal2_laneq<mode>): Emit
7137 aarch64_sqdmlal2_laneq<mode>_internal insn.
7138 Replace VCON with VCONQ.
7139 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
7140 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
7141 (aarch64_sqdmull_laneq<mode>): Emit
7142 aarch64_sqdmull_laneq<mode>_internal insn.
7143 Replace VCON with VCONQ.
7144 (aarch64_sqdmull2_laneq<mode>): Emit
7145 aarch64_sqdmull2_laneq<mode>_internal insn.
7146 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
7147 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
7148 of 3rd argument to int16x4_t.
7149 (vqdmlalh_lane_s16): Likewise.
7150 (vqdmlslh_lane_s16): Likewise.
7151 (vqdmull_high_lane_s16): Likewise.
7152 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
7153 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
7154 (vqdmlsl_lane_s16): Likewise.
7155 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
7156 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
7157 (vqdmlals_lane_s32): Likewise.
7158 (vqdmlsls_lane_s32): Likewise.
7159 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
7160 (vqdmulls_lane_s32): Likewise.
7161 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
7162 (vqdmlsl_lane_s32): Likewise.
7163 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
7164 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
7165 (vqrdmulhh_lane_s16): Likewise.
7166 (vqdmlsl_high_lane_s16): Likewise.
7167 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
7168 (vqdmlsl_high_lane_s32): Likewise.
7169 (vqrdmulhs_lane_s32): Likewise.
7170
7171 2014-06-20 Tom de Vries <tom@codesourcery.com>
7172
7173 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
7174 get_call_reg_set_usage.
7175
7176 2014-06-20 Tom de Vries <tom@codesourcery.com>
7177
7178 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
7179 it contains all call_used_regs.
7180
7181 2014-06-20 Tom de Vries <tom@codesourcery.com>
7182
7183 * final.c (collect_fn_hard_reg_usage): Add and use variable
7184 function_used_regs.
7185
7186 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
7187
7188 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
7189 (set_init_priority, get_init_priority, set_fini_priority,
7190 get_fini_priority): New methods.
7191 * tree.c (init_priority_for_decl): Remove.
7192 (init_ttree): Do not initialize init priority.
7193 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
7194 (decl_priority_info): Remove.
7195 (decl_init_priority_insert): Rewrite.
7196 (decl_fini_priority_insert): Rewrite.
7197 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
7198 tree_priority_map_marked_p): Remove.
7199 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
7200 * lto-streamer-out.c (hash_tree): Do not hash priorities.
7201 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
7202 not output priorities.
7203 (pack_ts_function_decl_value_fields): Likewise.
7204 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7205 not input priorities.
7206 (unpack_ts_function_decl_value_fields): Likewise.
7207 * symtab.c (symbol_priority_map): Declare.
7208 (init_priority_hash): Declare.
7209 (symtab_unregister_node): Unregister from priority hash, too.
7210 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
7211 New methods.
7212 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
7213 (symbol_priority_info): New function.
7214 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
7215 New methods.
7216 * tree-core.h (tree_priority_map): Remove.
7217
7218 2014-06-20 Jakub Jelinek <jakub@redhat.com>
7219
7220 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
7221 0xff to uint64_t before shifting it up.
7222
7223 2014-06-20 Julian Brown <julian@codesourcery.com>
7224 Chung-Lin Tang <cltang@codesourcery.com>
7225
7226 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
7227 TARGET_THUMB1_ONLY. Add comments.
7228
7229 2014-06-19 Tom de Vries <tom@codesourcery.com>
7230
7231 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
7232 return type to void.
7233 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
7234
7235 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7236
7237 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
7238 as "move", from depends_on.
7239
7240 2014-06-19 Terry Guo <terry.guo@arm.com>
7241
7242 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
7243 stage.
7244
7245 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
7246
7247 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
7248 Remove cr5.
7249 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
7250
7251 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
7252
7253 PR target/61550
7254 * config/sh/sh.c (prepare_move_operands): Don't process TLS
7255 addresses here if reload in progress or completed.
7256
7257 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
7258
7259 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
7260 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
7261 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
7262 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
7263 (mips_register_priority): New function that implements the target
7264 hook TARGET_REGISTER_PRIORITY.
7265 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
7266 (mips_lra_p): Likewise for TARGET_LRA_P.
7267 (TARGET_REGISTER_PRIORITY): Define macro.
7268 (TARGET_SPILL_CLASS): Likewise.
7269 (TARGET_LRA_P): Likewise.
7270 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
7271 classes.
7272 (REG_CLASS_NAMES): Likewise.
7273 (REG_CLASS_CONTENTS): Likewise.
7274 (BASE_REG_CLASS): Use M16_SP_REGS.
7275 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
7276 New set attribute to enable alternatives depending on the register
7277 allocator used.
7278 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
7279 (*lea64): Disable pattern for MIPS16.
7280 * config/mips/mips.opt (mlra): New option.
7281
7282 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
7283
7284 * lra-constraints.c (base_to_reg): New function.
7285 (process_address): Use new function.
7286
7287 2014-06-18 Tom de Vries <tom@codesourcery.com>
7288
7289 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
7290 * config/aarch64/aarch64.c
7291 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
7292 (aarch64_emit_call_insn): New function.
7293 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
7294 of emit_call_insn.
7295 * config/aarch64/aarch64.md (define_expand "call_internal")
7296 (define_expand "call_value_internal", define_expand "sibcall_internal")
7297 (define_expand "sibcall_value_internal"): New.
7298 (define_expand "call", define_expand "call_value")
7299 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
7300 expand variant and aarch64_emit_call_insn.
7301
7302 2014-06-18 Radovan Obradovic <robradovic@mips.com>
7303 Tom de Vries <tom@codesourcery.com>
7304
7305 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
7306 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
7307 Redefine to true.
7308 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
7309 clobbers to CALL_INSN_FUNCTION_USAGE.
7310 (define_expand "sibcall_internal")
7311 (define_expand "sibcall_value_internal"): New.
7312 (define_expand "call", define_expand "call_value"): Add argument to
7313 arm_emit_call_insn.
7314 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
7315 (define_expand "sibcall_value"): Use sibcall_value_internal and
7316 arm_emit_call_insn.
7317
7318 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7319
7320 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
7321
7322 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7323
7324 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
7325 __udivmoddi4.
7326
7327 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7328
7329 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
7330 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
7331 annotations. Fix DWARF information.
7332
7333 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7334
7335 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
7336 __udivmoddi4, and fixups for negative operands.
7337
7338 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7339
7340 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
7341
7342 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7343
7344 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
7345 to __udivmoddi4.
7346
7347 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7348
7349 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
7350 manipulation.
7351
7352 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7353
7354 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
7355 describing register usage on function entry and exit.
7356
7357 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7358
7359 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
7360 (__aeabi_ldivmod): Fix whitespace.
7361
7362 2014-06-18 Andreas Schwab <schwab@suse.de>
7363
7364 * doc/md.texi (Standard Names): Use @itemx for grouped items.
7365 Remove blank line after @item.
7366
7367 2014-06-18 Richard Henderson <rth@redhat.com>
7368
7369 PR target/61545
7370 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
7371
7372 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7373
7374 * config/arm/arm.c (neon_vector_mem_operand): Allow register
7375 POST_MODIFY for neon loads and stores.
7376 (arm_print_operand): Output post-index register for neon loads and
7377 stores.
7378
7379 2014-06-18 Richard Biener <rguenther@suse.de>
7380
7381 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
7382
7383 2014-06-18 Richard Biener <rguenther@suse.de>
7384
7385 * tree-pass.h (make_pass_dce_loop): Remove.
7386 * passes.def: Replace pass_dce_loop with pass_dce.
7387 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
7388 changed free niter estimates and reset the scev cache.
7389 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
7390 make_pass_dce_loop): Remove.
7391 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
7392 (fini_copy_prop): Return whether something changed. Always
7393 let substitute_and_fold perform DCE and free niter estimates
7394 and reset the scev cache if so.
7395 (execute_copy_prop): If sth changed schedule cleanup-cfg.
7396 (pass_data_copy_prop): Do not unconditionally schedule
7397 cleanup-cfg or update-ssa.
7398
7399 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
7400
7401 PR tree-optimization/61518
7402 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
7403 reduction var is used in reduction stmt or phi-function only.
7404
7405 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7406
7407 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
7408
7409 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
7410
7411 PR tree-optimization/61517
7412 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
7413 whose rhs's first tree is the source expression instead of the
7414 expression itself.
7415 (find_bswap_or_nop): Likewise.
7416 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
7417 gimple stmt whose rhs's first tree is the source. In the memory source
7418 case, move the stmt to be replaced close to one of the original load to
7419 avoid the problem of a store between the load and the stmt's original
7420 location.
7421 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
7422 signature.
7423
7424 2014-06-18 Andreas Schwab <schwab@suse.de>
7425
7426 PR rtl-optimization/54555
7427 * postreload.c (move2add_use_add2_insn): Substitute
7428 STRICT_LOW_PART only if it is cheaper.
7429
7430 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
7431
7432 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
7433 Do not use unspec as call operand. Use memory_operand instead of
7434 memory_nox32_operand and add "m" operand constraint. Disable
7435 pattern for TARGET_X32.
7436 (*sibcall_pop_memory): Ditto.
7437 (*sibcall_value_memory): Ditto.
7438 (*sibcall_value_pop_memory): Ditto.
7439 (sibcall peepholes): Merge SImode and DImode patterns using
7440 W mode iterator. Use memory_operand instead of memory_nox32_operand.
7441 Disable pattern for TARGET_X32. Check if eliminated register is
7442 really dead after call insn. Generate call RTX without unspec operand.
7443 (sibcall_value peepholes): Ditto.
7444 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
7445 instead of memory_nox32_operand. Check if eliminated register is
7446 really dead after call insn. Generate call RTX without unspec operand.
7447 (sibcall_value_pop peepholes): Ditto.
7448 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
7449
7450 2014-06-18 Terry Guo <terry.guo@arm.com>
7451
7452 PR target/61544
7453 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
7454 reach the head.
7455
7456 2014-06-18 Olivier Hainque <hainque@adacore.com>
7457
7458 * tree-core.h (tree_block): Add an "end_locus" field, allowing
7459 memorization of the end of block source location.
7460 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
7461 * gimplify.c (gimplify_bind_expr): Propagate the block start and
7462 end source location info we have on the block entry/exit code we
7463 generate.
7464
7465 2014-06-18 Richard Biener <rguenther@suse.de>
7466
7467 * common.opt (fssa-phiopt): New option.
7468 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
7469 but not with -Og.
7470 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
7471 * doc/invoke.texi (-fssa-phiopt): Document.
7472
7473 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7474
7475 * genattrtab.c (n_bypassed): New variable.
7476 (process_bypasses): Initialise n_bypassed.
7477 Count number of bypassed reservations.
7478 (make_automaton_attrs): Allocate space for bypassed reservations
7479 rather than number of bypasses.
7480
7481 2014-06-18 Richard Biener <rguenther@suse.de>
7482
7483 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
7484 we propagated anything.
7485 (substitute_and_fold_dom_walker::before_dom_children): Something
7486 changed if we propagated into PHI arguments.
7487 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
7488 we removed a stmt.
7489
7490 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
7491
7492 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
7493 vector case.
7494 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
7495 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
7496 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
7497 Introduces alternative way of loads group permutaions.
7498 (vect_transform_grouped_load): Try alternative way of permutations.
7499
7500 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7501
7502 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
7503 changed in ORT_TARGET region, don't jump to do_outer.
7504 (struct gimplify_adjust_omp_clauses_data): New type.
7505 (gimplify_adjust_omp_clauses_1): Adjust for data being
7506 a struct gimplify_adjust_omp_clauses_data pointer instead
7507 of tree *. Pass pre_p as a new argument to
7508 lang_hooks.decls.omp_finish_clause hook.
7509 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
7510 splay_tree_foreach to pass both list_p and pre_p.
7511 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
7512 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
7513 gimplify_adjust_omp_clauses callers.
7514 * langhooks.c (lhd_omp_finish_clause): New function.
7515 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
7516 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
7517 * langhooks.h (struct lang_hooks_for_decls): Add a new
7518 gimple_seq * argument to omp_finish_clause hook.
7519 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
7520 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
7521 (scan_omp_parallel, lower_omp_for): When adding
7522 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
7523 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
7524 * tree-nested.c (convert_nonlocal_omp_clauses,
7525 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
7526 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
7527
7528 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
7529
7530 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
7531 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
7532
7533 2014-06-17 Xinliang David Li <davidxl@google.com>
7534
7535 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
7536 * passes.c (pass_init_dump_file): Do not set initialize
7537 flag to false unconditionally.
7538
7539 2014-06-17 Richard Biener <rguenther@suse.de>
7540
7541 * genopinit.c (main): Use vec<>::qsort method.
7542 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
7543 Likewise.
7544 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
7545
7546 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
7547
7548 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
7549 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
7550 (mips_move_to_gpr_cost): Remove ST_REGS case.
7551 (mips_move_from_gpr_cost): Likewise.
7552 (mips_register_move_cost): Likewise.
7553 (mips_secondary_reload_class): Likewise.
7554
7555 2014-06-17 Richard Biener <rguenther@suse.de>
7556
7557 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
7558 (pass_all_optimizations): Move 3rd copy-prop pass from after
7559 fre to before ifcombine/phiopt.
7560
7561 2014-06-17 Richard Biener <rguenther@suse.de>
7562
7563 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
7564 and allow all blocks to be forwarders.
7565
7566 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
7567
7568 PR target/61483
7569 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
7570 variable 'size'; calculate 'size' right in the front; use
7571 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
7572 pcum->aapcs_stack_words.
7573
7574 2014-06-17 Nick Clifton <nickc@redhat.com>
7575
7576 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
7577 (umulhi3, mulsidi3, umulsidi3): Likewise.
7578
7579 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
7580
7581 PR middle-end/61508
7582 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
7583 check for section name.
7584
7585 2014-06-17 Richard Biener <rguenther@suse.de>
7586
7587 * tree-ssa-propagate.c: Include domwalk.h.
7588 (substitute_and_fold): Outline main worker into a domwalker ...
7589 (substitute_and_fold_dom_walker::before_dom_children): ... here.
7590 Schedule stmts we can fully propagate for removal. Remove
7591 poor-mans DCE.
7592 (substitute_and_fold): Apply a dominator walk to perform
7593 substitution. Process stmts scheduled for removal here.
7594
7595 2014-06-17 Richard Biener <rguenther@suse.de>
7596
7597 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
7598 of PHI node moving.
7599
7600 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7601
7602 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
7603 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
7604 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
7605 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
7606 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
7607 TARGET_HARD_FLOAT.
7608 (get_fpscr) : Likewise.
7609
7610 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7611
7612 PR rtl-optimization/61325
7613 * lra-constraints.c (valid_address_p): Add forward declaration.
7614 (simplify_operand_subreg): Check address validity before and after
7615 alter_reg of memory subreg.
7616
7617 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
7618
7619 * config/i386/i386.c (decide_alg): Correctly handle
7620 maximum size of stringop algorithm.
7621
7622 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7623
7624 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
7625
7626 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7627
7628 PR rtl-optimization/61522
7629 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
7630
7631 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
7632
7633 Revert:
7634 * symtab.c (symtab_node::reset_section): New method.
7635 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7636 for localization.
7637 * cgraph.h (reset_section): Declare.
7638 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7639 do not consider comdat locals.
7640 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7641 for new symbol.
7642 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7643 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7644 reset sections of symbols dragged out of the comdats.
7645 (function_and_variable_visibility): Reset sections of
7646 localized symbols.
7647
7648 2014-06-16 Richard Biener <rguenther@suse.de>
7649
7650 PR tree-optimization/61482
7651 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
7652 [-INF(OVF), +INF(OVF)] range.
7653
7654 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7655
7656 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
7657 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
7658 handling 32-bit multiplication.
7659
7660 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
7661
7662 PR middle-end/61430
7663 * lra-lives.c (process_bb_lives): Skip creating copy during
7664 insn scan when src/dest has constrained to same regno.
7665
7666 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7667
7668 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
7669 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
7670
7671 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7672
7673 * asan.c (check_func): New function.
7674 (maybe_create_ssa_name): Likewise.
7675 (build_check_stmt_with_calls): Likewise.
7676 (use_calls_p): Likewise.
7677 (report_error_func): Change interface.
7678 (build_check_stmt): Allow non-integer lengths; add support
7679 for new parameter.
7680 (asan_instrument): Likewise.
7681 (instrument_mem_region_access): Moved code to build_check_stmt.
7682 (instrument_derefs): Likewise.
7683 (instrument_strlen_call): Likewise.
7684 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
7685 * doc/invoke.texi: Describe new parameter.
7686 * params.def: Define new parameter.
7687 * params.h: Likewise.
7688 * sanitizer.def: Describe new builtins.
7689
7690 2014-06-16 Richard Biener <rguenther@suse.de>
7691
7692 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7693 Make all defs available at the end.
7694 (eliminate): If we remove a PHI node schedule cfg-cleanup.
7695
7696 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7697
7698 PR plugins/45078
7699 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
7700
7701 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
7702
7703 PR bootstrap/61516
7704 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
7705 initialization. Replace remaining use of uid.
7706
7707 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7708
7709 * c-family/c-common.c (handle_tls_model_attribute): Use
7710 set_decl_tls_model.
7711 * c-family/c-common.c (handle_tls_model_attribute): Use
7712 set_decl_tls_model.
7713 * cgraph.h (struct varpool_node): Add tls_model.
7714 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
7715 * tree.h (DECL_TLS_MODEL): Update.
7716 (DECL_THREAD_LOCAL_P): Check that variable is static.
7717 (decl_tls_model): Declare.
7718 (set_decl_tls_model): Declare.
7719 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
7720 set symbol prorperties.
7721 (get_emutls_init_templ_addr): Cleanup.
7722 (new_emutls_decl): Update.
7723 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
7724 (lto_input_varpool_node): Likewise.
7725 * lto-streamer-out.c (hash_tree): Likewise.
7726 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7727 not stream DECL_TLS_MODEL.
7728 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
7729 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
7730
7731 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7732
7733 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
7734
7735 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7736
7737 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
7738 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
7739 lists.
7740 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
7741 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
7742 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
7743 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
7744 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
7745 (df_get_artificial_defs, df_get_artificial_uses)
7746 (df_single_def, df_single_use): Update accordingly.
7747 (df_refs_chain_dump): Take the first element in a linked list as
7748 parameter, rather than a pointer to an array of pointers.
7749 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
7750 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
7751 (df_chain_create_bb_process_use): Likewise.
7752 (df_md_bb_local_compute_process_def): Likewise.
7753 * fwprop.c (process_defs, process_uses): Likewise.
7754 (register_active_defs, update_uses): Likewise.
7755 (forward_propagate_asm): Update for new df_ref linking.
7756 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
7757 (df_null_ref_rec, df_null_mw_rec): Likewise.
7758 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
7759 explicitly.
7760 (df_scan_free_bb_info): Remove check for null artificial_defs.
7761 (df_install_ref_incremental): Adjust for new df_ref linking.
7762 Use a single-element insertion rather than a full sort.
7763 (df_ref_chain_delete_du_chain): Take the first element
7764 in a linked list as parameter, rather than a pointer to an array of
7765 pointers.
7766 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
7767 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
7768 (df_insn_info_delete): Remove check for null defs and call to
7769 df_scan_free_mws_vec.
7770 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
7771 null rather than df_null_*_rec.
7772 (df_insn_rescan_debug_internal): Likewise, and update null
7773 checks in the same way. Remove check for null defs.
7774 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
7775 Move a single element rather doing a full sort.
7776 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
7777 linking.
7778 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
7779 Initialize df_ref and df_mw_hardreg lists to null rather than
7780 df_null_*_rec.
7781 (df_ref_compare): Take df_refs as parameter, transferring the
7782 old interface to...
7783 (df_ref_ptr_compare): ...this new function.
7784 (df_sort_and_compress_refs): Update accordingly.
7785 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
7786 old interface to...
7787 (df_mw_ptr_compare): ...this new function.
7788 (df_sort_and_compress_mws): Update accordingly.
7789 (df_install_refs, df_install_mws): Return a linked list rather than
7790 an array of pointers.
7791 (df_refs_add_to_chains): Assert that old lists are empty rather
7792 than freeing them.
7793 (df_insn_refs_verify): Don't handle null defs speciailly.
7794 * web.c (union_match_dups): Update for new df_ref linking.
7795
7796 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7797
7798 * df.h (df_ref_create, df_ref_remove): Delete.
7799 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
7800 (df_ref_remove): Likewise.
7801
7802 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7803
7804 * df.h (df_single_def, df_single_use): New functions.
7805 * ira.c (find_moveable_pseudos): Use them.
7806
7807 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7808
7809 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
7810 * df-problems.c (df_note_bb_compute): Use it.
7811 * regstat.c (regstat_bb_compute_ri): Likewise.
7812
7813 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7814
7815 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
7816 * cse.c (cse_extended_basic_block): Use them.
7817 * dce.c (mark_artificial_use): Likewise.
7818 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
7819 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7820 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
7821 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
7822 (df_simulate_initialize_backwards): Likewise.
7823 (df_simulate_finalize_backwards): Likewise.
7824 (df_simulate_initialize_forwards): Likewise.
7825 (df_md_simulate_artificial_defs_at_top): Likewise.
7826 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7827 * regrename.c (init_rename_info): Likewise.
7828 * regstat.c (regstat_bb_compute_ri): Likewise.
7829 (regstat_bb_compute_calls_crossed): Likewise.
7830
7831 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7832
7833 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
7834 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
7835 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
7836 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
7837 * combine.c (create_log_links): Likewise.
7838 * compare-elim.c (find_flags_uses_in_insn): Likewise.
7839 (try_eliminate_compare): Likewise.
7840 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
7841 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
7842 (remove_reg_equal_equiv_notes_for_defs): Likewise.
7843 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
7844 (word_dce_process_block, dce_process_block): Likewise.
7845 * ddg.c (def_has_ccmode_p): Likewise.
7846 * df-core.c (df_bb_regno_first_def_find): Likewise.
7847 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
7848 * df-problems.c (df_rd_simulate_one_insn): Likewise.
7849 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7850 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
7851 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
7852 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
7853 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
7854 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
7855 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
7856 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
7857 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7858 * fwprop.c (local_ref_killed_between_p): Likewise.
7859 (all_uses_available_at, free_load_extend): Likewise.
7860 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
7861 * hw-doloop.c (scan_loop): Likewise.
7862 * ifcvt.c (dead_or_predicable): Likewise.
7863 * init-regs.c (initialize_uninitialized_regs): Likewise.
7864 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
7865 (process_bb_node_lives): Likewise.
7866 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
7867 (find_moveable_pseudos): Likewise.
7868 * loop-invariant.c (check_dependencies, record_uses): Likewise.
7869 * recog.c (peep2_find_free_register): Likewise.
7870 * ree.c (get_defs): Likewise.
7871 * regstat.c (regstat_bb_compute_ri): Likewise.
7872 (regstat_bb_compute_calls_crossed): Likewise.
7873 * sched-deps.c (find_inc, find_mem): Likewise.
7874 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
7875 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
7876 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7877 (prepare_shrink_wrap): Likewise.
7878 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
7879 * web.c (union_defs, pass_web::execute): Likewise.
7880 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
7881 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
7882
7883 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
7884
7885 * lra-assign.c (assign_by_spills): Add code to assign vector regs
7886 to inheritance pseudos.
7887 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
7888
7889 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
7890
7891 PR target/61415
7892 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
7893 (BU_MISC_2): Rename to ...
7894 (BU_LDBL128_2): ... this.
7895 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
7896 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
7897 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7898 RS6000_BTM_LDBL128.
7899 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
7900 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
7901 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
7902 (unpacktf_1): Likewise.
7903 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
7904 (__builtin_longdouble_dw1): Likewise.
7905 * doc/sourcebuild.texi (longdouble128): Document.
7906
7907 2014-06-13 Jeff Law <law@redhat.com>
7908
7909 PR rtl-optimization/61094
7910 PR rtl-optimization/61446
7911 * ree.c (combine_reaching_defs): Get the mode for the copy from
7912 the extension insn rather than the defining insn.
7913
7914 2014-06-13 Dehao Chen <dehao@google.com>
7915
7916 * dwarf2out.c (add_linkage_name): Emit more linkage name.
7917
7918 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
7919
7920 * doc/install.texi (--enable-linker-plugin-configure-flags)
7921 (--enable-linker-plugin-flags): Document new flags.
7922
7923 2014-06-13 Martin Jambor <mjambor@suse.cz>
7924
7925 PR ipa/61186
7926 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
7927 cache_token if returning early.
7928
7929 2014-06-13 Nick Clifton <nickc@redhat.com>
7930
7931 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
7932 requested alignment is active.
7933 (LABEL_ALIGN): Likewise.
7934 (LOOP_ALIGN): Likewise.
7935
7936 2014-06-13 Richard Biener <rguenther@suse.de>
7937
7938 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7939 Rewrite to propagate the VN result into all uses where
7940 possible and to remove stmts becoming dead because of that.
7941 (eliminate): Generalize stmt removal handling, remove in
7942 reverse dominator order to support proper debug stmt
7943 generation. Update stmts before removing stmts.
7944 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
7945
7946 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7947
7948 PR tree-optimization/61375
7949 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
7950 symbolic number cannot be represented in an uint64_t.
7951 (find_bswap_or_nop_1): Likewise.
7952
7953 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7954
7955 * symtab.c (symtab_node::reset_section): New method.
7956 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7957 for localization.
7958 * cgraph.h (reset_section): Declare.
7959 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7960 do not consider comdat locals.
7961 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7962 for new symbol.
7963 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7964 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7965 reset sections of symbols dragged out of the comdats.
7966 (function_and_variable_visibility): Reset sections of
7967 localized symbols.
7968
7969 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7970
7971 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
7972 to use symtab and decl_binds_to_current_def_p
7973 * tree-vectorizer.c (increase_alignment): Increase alignment
7974 of alias target, too.
7975
7976 2014-06-12 Jakub Jelinek <jakub@redhat.com>
7977
7978 PR middle-end/61486
7979 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
7980 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
7981 if outer combined construct is distribute.
7982 (gimplify_omp_for): For OMP_DISTRIBUTE set
7983 gimplify_omp_ctxp->distribute.
7984 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
7985 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
7986 mapping into decl map.
7987
7988 2014-06-12 Jason Merrill <jason@redhat.com>
7989
7990 * common.opt (fabi-version): Change default to 0.
7991
7992 2014-06-12 Jason Merrill <jason@redhat.com>
7993
7994 * toplev.c (process_options): Reject -fabi-version=1.
7995
7996 2014-06-12 Jeff Law <law@redhat.com>
7997
7998 PR tree-optimization/61009
7999 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
8000 value when we stop processing a block due to problematic PHIs.
8001
8002 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
8003
8004 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
8005 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
8006 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
8007 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
8008 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
8009 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
8010 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
8011 are not in the spec.
8012
8013 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
8014
8015 PR target/59843
8016 * config/aarch64/aarch64-modes.def: Add V1DFmode.
8017 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
8018 Support V1DFmode.
8019
8020 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
8021
8022 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
8023
8024 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
8025
8026 PR target/61443
8027 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
8028 loading from address spaces.
8029
8030 2014-06-12 Martin Liska <mliska@suse.cz>
8031
8032 PR ipa/61462
8033 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
8034 statement is reachable.
8035
8036 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
8037
8038 * symtab.c (section_hash): New hash.
8039 (symtab_unregister_node): Clear section before freeing.
8040 (hash_section_hash_entry): New haser.
8041 (eq_sections): New function.
8042 (symtab_node::set_section_for_node): New method.
8043 (set_section_1): Update.
8044 (symtab_node::set_section): Take string instead of tree as parameter.
8045 (symtab_resolve_alias): Update.
8046 * cgraph.h (section_hash_entry_d): New structure.
8047 (section_hash_entry): New typedef.
8048 (cgraph_node): Change comdat_group_ to x_comdat_group,
8049 change section_ to x_section and turn into section_hash_entry;
8050 update accestors; put set_section_for_node offline.
8051 * tree.c (decl_section_name): Turn into string.
8052 (set_decl_section_name): Change parameter to be string.
8053 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
8054 * sdbout.c (sdbout_one_type): Update.
8055 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
8056 * varasm.c (IN_NAMED_SECTION, get_named_section,
8057 resolve_unique_section, hot_function_section, get_named_text_section,
8058 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
8059 make_decl_rtl, default_unique_section): Update.
8060 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
8061 (c6x_elf_unique_section): Update.
8062 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
8063 * config/pa/pa.c (pa_function_section): Update.
8064 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
8065 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
8066 * config/arc/arc.c (arc_in_small_data_p): Update.
8067 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
8068 * config/mcore/mcore.c (mcore_unique_section): Update.
8069 * config/mips/mips.c (mips16_build_function_stub): Update.
8070 (mips16_build_call_stub): Update.
8071 (mips_function_rodata_section): Update.
8072 (mips_in_small_data_p): Update.
8073 * config/score/score.c (score_in_small_data_p): Update.
8074 * config/rx/rx.c (rx_in_small_data): Update.
8075 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
8076 (rs6000_xcoff_asm_named_section): Update.
8077 (rs6000_xcoff_unique_section): Update.
8078 * config/frv/frv.c (frv_string_begins_with): Update.
8079 (frv_in_small_data_p): Update.
8080 * config/v850/v850.c (v850_encode_data_area): Update.
8081 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
8082 (bfin_handle_l1_data_attribute): Update.
8083 (bfin_handle_l2_attribute): Update.
8084 * config/mep/mep.c (mep_unique_section): Update.
8085 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
8086 Update.
8087 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
8088 (h8300_handle_tiny_data_attribute): Update.
8089 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
8090 (m32r_in_small_data_p): Update.
8091 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
8092 * config/i386/i386.c (ix86_in_large_data_p): Update.
8093 * config/i386/winnt.c (i386_pe_unique_section): Update.
8094 * config/darwin.c (darwin_function_section): Update.
8095 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
8096 * tree-emutls.c (get_emutls_init_templ_addr): Update.
8097 (new_emutls_decl): Update.
8098 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
8099 input_varpool_node): Update.
8100 (ead_string_cst): Turn to ...
8101 (read_string): ... this one.
8102 * dwarf2out.c (secname_for_decl): Update.
8103 * asan.c (asan_protect_global): Update.
8104
8105 2014-06-11 DJ Delorie <dj@redhat.com>
8106
8107 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
8108 cache lines.
8109 * config/rx/rx.c (rx_option_override): Likewise.
8110 (rx_align_for_label): Likewise.
8111
8112 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
8113
8114 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
8115
8116 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
8117 prototype.
8118
8119 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8120
8121 * common.md: New file.
8122 * doc/md.texi: Update description of generic, machine-independent
8123 constraints.
8124 * config/s390/constraints.md (e): Delete.
8125 * Makefile.in (md_file): Include common.md.
8126 * config/m32c/t-m32c (md_file): Likewise.
8127 * genpreds.c (general_mem): New array.
8128 (generic_constraint_letters): Remove constraints now defined by
8129 common.md.
8130 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
8131 Allow the first character to be '<' or '>' as well.
8132 * genoutput.c (general_mem): New array.
8133 (indep_constraints): Remove constraints now defined by common.md.
8134 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
8135 Remove special handling of 'm'.
8136 * ira-costs.c (record_reg_classes): Remove special handling of
8137 constraints now defined by common.md.
8138 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8139 * ira-lives.c (single_reg_class): Likewise.
8140 (ira_implicitly_set_insn_hard_regs): Likewise.
8141 * lra-constraints.c (reg_class_from_constraints): Likewise.
8142 (process_alt_operands, process_address, curr_insn_transform): Likewise.
8143 * postreload.c (reload_cse_simplify_operands): Likewise.
8144 * reload.c (push_secondary_reload, scratch_reload_class)
8145 (find_reloads, alternative_allows_const_pool_ref): Likewise.
8146 * reload1.c (maybe_fix_stack_asms): Likewise.
8147 * targhooks.c (default_secondary_reload): Likewise.
8148 * stmt.c (parse_output_constraint): Likewise.
8149 * recog.c (preprocess_constraints): Likewise.
8150 (constrain_operands, peep2_find_free_register): Likewise.
8151 (asm_operand_ok): Likewise, but add a comment saying why 'o'
8152 must be handled specially.
8153
8154 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8155
8156 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
8157 * genpreds.c (have_const_dbl_constraints): Delete.
8158 (add_constraint): Don't set it.
8159 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
8160 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
8161 constraints using the lookup_constraint logic.
8162 * ira-lives.c (single_reg_class): Likewise.
8163 * ira.c (ira_setup_alts): Likewise.
8164 * lra-constraints.c (process_alt_operands): Likewise.
8165 * recog.c (asm_operand_ok, constrain_operands): Likewise.
8166 * reload.c (find_reloads): Likewise.
8167
8168 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8169
8170 * genpreds.c (const_int_start, const_int_end): New variables.
8171 (choose_enum_order): Output CONST_INT constraints before memory
8172 constraints.
8173 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
8174 Add CT_CONST_INT.
8175 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
8176 * ira.c (ira_setup_alts): Likewise.
8177 * lra-constraints.c (process_alt_operands): Likewise.
8178 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
8179 * reload.c (find_reloads): Likewise.
8180
8181 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8182
8183 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
8184 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
8185 * recog.c (preprocess_constraints): Update accordingly.
8186
8187 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8188
8189 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
8190 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
8191 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
8192 * genpreds.c (print_type_tree): New function.
8193 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
8194 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
8195 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
8196 Write out enum constraint_type and get_constraint_type.
8197 * lra-constraints.c (satisfies_memory_constraint_p): Take a
8198 constraint_num rather than a constraint string.
8199 (satisfies_address_constraint_p): Likewise.
8200 (reg_class_from_constraints): Avoid old constraint macros.
8201 (process_alt_operands, process_address_1): Likewise.
8202 (curr_insn_transform): Likewise.
8203 * ira-costs.c (record_reg_classes): Likewise.
8204 (record_operand_costs): Likewise.
8205 * ira-lives.c (single_reg_class): Likewise.
8206 (ira_implicitly_set_insn_hard_regs): Likewise.
8207 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8208 * postreload.c (reload_cse_simplify_operands): Likewise.
8209 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
8210 (constrain_operands, peep2_find_free_register): Likewise.
8211 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
8212 (find_reloads, alternative_allows_const_pool_ref): Likewise.
8213 * reload1.c (maybe_fix_stack_asms): Likewise.
8214 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
8215 * targhooks.c (default_secondary_reload): Likewise.
8216 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
8217 to EXTRA_CONSTRAINT_STR.
8218 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
8219
8220 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8221
8222 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
8223 (write_constraint_satisfied_p_array): ...this new function.
8224 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
8225 an array.
8226 (write_insn_preds_c): Update accordingly.
8227
8228 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8229
8230 * genpreds.c (write_lookup_constraint): Rename to...
8231 (write_lookup_constraint_1): ...this.
8232 (write_lookup_constraint_array): New function.
8233 (write_tm_preds_h): Define lookup_constraint as an inline function
8234 that uses write_lookup_constraint_array where possible.
8235 (write_insn_preds_c): Update for the changes above.
8236
8237 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8238
8239 * doc/md.texi (regclass_for_constraint): Rename to...
8240 (reg_class_for_constraint): ...this.
8241 * genpreds.c (num_constraints, enum_order, register_start)
8242 (register_end, satisfied_start, memory_start, memory_end)
8243 (address_start, address_end): New variables.
8244 (add_constraint): Count the number of constraints.
8245 (choose_enum_order): New function.
8246 (write_enum_constraint_num): Iterate over enum_order.
8247 (write_regclass_for_constraint): Rename to...
8248 (write_reg_class_for_constraint_1): ...this and update output
8249 accordingly.
8250 (write_constraint_satisfied_p): Rename to...
8251 (write_constraint_satisfied_p_1): ...this and update output
8252 accordingly. Do nothing if all extra constraints are register
8253 constraints.
8254 (write_insn_extra_memory_constraint): Delete.
8255 (write_insn_extra_address_constraint): Delete.
8256 (write_range_function): New function.
8257 (write_tm_preds_h): Define constraint_satisfied_p and
8258 reg_class_for_constraint as inline functions that do a range check
8259 before calling the out-of-line function. Use write_range_function
8260 to implement insn_extra_{register,memory,address}_constraint,
8261 the first of which is new.
8262 (write_insn_preds_c): Update after above changes to write_* functions.
8263 (main): Call choose_enum_order.
8264
8265 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
8266
8267 PR tree-optimization/61306
8268 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
8269 expression instead of its size.
8270 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
8271 false to prevent optimization when the result is unpredictable due to
8272 arithmetic right shift of signed type with highest byte is set.
8273 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
8274 (init_symbolic_number): Likewise.
8275 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
8276 when the result is unpredictable due to sign extension.
8277
8278 2014-06-11 Terry Guo <terry.guo@arm.com>
8279
8280 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
8281 (*thumb1_addsi3): Ditto.
8282 (*thumb_subdi3): Ditto.
8283 (thumb1_subsi3_insn): Ditto.
8284 (*thumb_mulsi3): Ditto.
8285 (*thumb_mulsi3_v6): Ditto.
8286 (*thumb1_andsi3_insn): Ditto.
8287 (thumb1_bicsi3): Ditto.
8288 (*thumb1_iorsi3_insn): Ditto.
8289 (*thumb1_xorsi3_insn): Ditto.
8290 (*thumb1_ashlsi3): Ditto.
8291 (*thumb1_ashrsi3): Ditto.
8292 (*thumb1_lshrsi3): Ditto.
8293 (*thumb1_rotrsi3): Ditto.
8294 (*thumb1_negdi2): Ditto.
8295 (*thumb1_negsi2): Ditto.
8296 (*thumb1_abssi2): Ditto.
8297 (*thumb1_neg_abssi2): Ditto.
8298 (*thumb1_one_cmplsi2): Ditto.
8299 (*thumb1_zero_extendhisi2): Ditto.
8300 (*thumb1_zero_extendqisi2): Ditto.
8301 (*thumb1_zero_extendqisi2_v6): Ditto.
8302 (thumb1_extendhisi2): Ditto.
8303 (thumb1_extendqisi2): Ditto.
8304 (*thumb1_movdi_insn): Ditto.
8305 (*thumb1_movsi_insn): Ditto.
8306 (*thumb1_movhi_insn): Ditto.
8307 (thumb_movhi_clobber): Ditto.
8308 (*thumb1_movqi_insn): Ditto.
8309 (*thumb1_movhf): Ditto.
8310 (*thumb1_movsf_insn): Ditto.
8311 (*thumb_movdf_insn): Ditto.
8312 (movmem12b): Ditto.
8313 (movmem8b): Ditto.
8314 (cbranchqi4): Ditto.
8315 (cbranchsi4_insn): Ditto.
8316 (cbranchsi4_scratch): Ditto.
8317 (*negated_cbranchsi4): Ditto.
8318 (*tbit_cbranch): Ditto.
8319 (*tlobits_cbranch): Ditto.
8320 (*tstsi3_cbranch): Ditto.
8321 (*cbranchne_decr1): Ditto.
8322 (*addsi3_cbranch): Ditto.
8323 (*addsi3_cbranch_scratch): Ditto.
8324 (*thumb_cmpdi_zero): Ditto.
8325 (cstoresi_eq0_thumb1): Ditto.
8326 (cstoresi_ne0_thumb1): Ditto.
8327 (*cstoresi_eq0_thumb1_insn): Ditto.
8328 (*cstoresi_ne0_thumb1_insn): Ditto.
8329 (cstoresi_nltu_thumb1): Ditto.
8330 (cstoresi_ltu_thumb1): Ditto.
8331 (thumb1_addsi3_addgeu): Ditto.
8332 (*thumb_jump): Ditto.
8333 (*call_reg_thumb1_v5): Ditto.
8334 (*call_reg_thumb1): Ditto.
8335 (*call_value_reg_thumb1_v5): Ditto.
8336 (*call_value_reg_thumb1): Ditto.
8337 (*call_insn): Ditto.
8338 (*call_value_insn): Ditto.
8339 (thumb1_casesi_internal_pic): Ditto.
8340 (thumb1_casesi_dispatch): Ditto.
8341 (*thumb1_indirect_jump): Ditto.
8342 (prologue_thumb1_interwork): Ditto.
8343 (*epilogue_insns): Ditto.
8344 (consttable_1): Ditto.
8345 (consttable_2): Ditto.
8346 (tablejump): Ditto.
8347 (*thumb1_tablejump): Ditto.
8348 (thumb_eh_return): Ditto.
8349 (define_peephole2): Two of them are thumb1 only and got moved into
8350 new file thumb1.md.
8351 (define_split): Six of them are thumb1 only and got moved into new
8352 file thumb1.md.
8353 * config/arm/thumb1.md: New file comprised of above thumb1 only
8354 patterns.
8355
8356 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8357
8358 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
8359 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
8360 dependencies.
8361 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
8362 (aarch64_crc_builtin_datum): New struct.
8363 (aarch64_crc_builtin_data): New.
8364 (aarch64_init_crc32_builtins): New function.
8365 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
8366 (aarch64_crc32_expand_builtin): New.
8367 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
8368 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8369 __ARM_FEATURE_CRC32 when appropriate.
8370 (TARGET_CRC32): Define.
8371 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
8372 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
8373 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
8374 (aarch64_<crc_variant>): New pattern.
8375 * config/aarch64/arm_acle.h: New file.
8376 * config/aarch64/iterators.md (CRC): New int iterator.
8377 (crc_variant, crc_mode): New int attributes.
8378 * doc/aarch64-acle-intrinsics.texi: New file.
8379 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
8380 Include aarch64-acle-intrinsics.texi.
8381
8382 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
8383
8384 * tree-vect-data-refs.c (vect_grouped_store_supported): New
8385 check for stores group of length 3.
8386 (vect_permute_store_chain): New permutations for stores group of
8387 length 3.
8388 * tree-vect-stmts.c (vect_model_store_cost): Change cost
8389 of vec_perm_shuffle for the new permutations.
8390
8391 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
8392
8393 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
8394 table rewriting temporarily on targets not supporting ONE_ONLY.
8395
8396 2014-06-11 Richard Biener <rguenther@suse.de>
8397
8398 PR middle-end/61437
8399 Revert
8400 2014-06-04 Richard Biener <rguenther@suse.de>
8401
8402 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8403 TREE_PUBLIC and DECL_EXTERNAL decls.
8404
8405 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
8406
8407 * varasm.c (set_implicit_section): New function.
8408 (resolve_unique_section): Use it to set implicit section
8409 for aliases, too.
8410 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
8411 (default_function_section): Likewise.
8412 (decl_binds_to_current_def_p): Constify argument.
8413 * varasm.h (decl_binds_to_current_def_p): Update prototype.
8414 * asan.c (asan_protect_global): Use
8415 symtab_get_node (decl)->implicit_section.
8416 * symtab.c (dump_symtab_base): Dump implicit sections.
8417 (verify_symtab_base): Verify sanity of sectoins and comdats.
8418 (symtab_resolve_alias): Alias share the section of its target.
8419 (set_section_1): New function.
8420 (symtab_node::set_section): Move here, recurse to aliases.
8421 (verify_symtab): Check for duplicated symtab lists.
8422 * tree-core.h (implicit_section_name_p): Remove.
8423 * tree-vect-data-refs.c: Include varasm.h.
8424 (vect_can_force_dr_alignment_p): Fix conditional on when
8425 decl bints to current definition; use
8426 symtab_get_node (decl)->implicit_section.
8427 * cgraph.c (cgraph_make_node_local_1): Fix section set.
8428 * cgraph.h (struct symtab_node): Add implicit_section.
8429 (set_section): Rename to ...
8430 (set_section_for_node): ... this one.
8431 (set_section): Declare.
8432 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
8433 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
8434 input_overwrite_node, input_varpool_node): Stream implicit_section.
8435 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
8436 removal; it will fail in LTO.
8437
8438 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8439
8440 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
8441 Change second alternative type to f_mcr.
8442 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
8443 and 12th alternatives' types to f_mcr and f_mrc.
8444 (*movdi_aarch64): Same for 12th and 13th alternatives.
8445 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
8446 (aarch64_movtilow_tilow): Change type to fmov.
8447
8448 2014-06-10 Jiong Wang <jiong.wang@arm.com>
8449
8450 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
8451 (aarch64_save_or_restore_callee_save_registers): Fix layout.
8452
8453 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8454
8455 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
8456 New expander.
8457 (aarch64_sqrdmulh_lane<mode>): Likewise.
8458 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
8459 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
8460 (aarch64_sqdmulh_laneq<mode>): New expander.
8461 (aarch64_sqrdmulh_laneq<mode>): Likewise.
8462 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
8463 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
8464 (aarch64_sqdmulh_lane<mode>): New expander.
8465 (aarch64_sqrdmulh_lane<mode>): Likewise.
8466 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
8467 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
8468 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
8469 (aarch64_sqdmlal_laneq<mode>): Likewise.
8470 (aarch64_sqdmlsl_lane<mode>): Likewise.
8471 (aarch64_sqdmlsl_laneq<mode>): Likewise.
8472 (aarch64_sqdmlal2_lane<mode>): Likewise.
8473 (aarch64_sqdmlal2_laneq<mode>): Likewise.
8474 (aarch64_sqdmlsl2_lane<mode>): Likewise.
8475 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
8476 (aarch64_sqdmull_lane<mode>): Likewise.
8477 (aarch64_sqdmull_laneq<mode>): Likewise.
8478 (aarch64_sqdmull2_lane<mode>): Likewise.
8479 (aarch64_sqdmull2_laneq<mode>): Likewise.
8480
8481 2014-06-10 Richard Biener <rguenther@suse.de>
8482
8483 PR tree-optimization/61438
8484 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
8485 (eliminate_dom_walker::before_dom_children): Only try to inhibit
8486 insertion of IVs if running PRE.
8487 (eliminate): Adjust.
8488 (pass_pre::execute): Likewise.
8489 (pass_fre::execute): Likewise.
8490
8491 2014-06-10 Richard Biener <rguenther@suse.de>
8492
8493 PR middle-end/61456
8494 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8495 Do not use the main variant for the type comparison.
8496 (ncr_compar): Likewise.
8497 (nonoverlapping_component_refs_p): Likewise.
8498
8499 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
8500
8501 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
8502 REG_CFA_RESTORE mode.
8503
8504 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
8505
8506 * config/i386/i386.c (expand_vec_perm_pblendv): New.
8507 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
8508 expand_vec_perm_pblendv.
8509
8510 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8511
8512 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
8513 available.
8514 Simplify description of __crc32d and __crc32cd intrinsics.
8515 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
8516 availability.
8517
8518 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
8519
8520 PR lto/61334
8521 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
8522 * config.in: Regenerate.
8523 * configure: Likewise.
8524
8525 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
8526
8527 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
8528 and public vars.
8529 (intersect_static_var_sets): Remove.
8530 (propagate): Do not prune local statics.
8531
8532 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8533
8534 PR fortran/60928
8535 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
8536 Set lastprivate_firstprivate even if omp_private_outer_ref
8537 langhook returns true.
8538 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
8539 langhook, call unshare_expr on new_var and call
8540 build_outer_var_ref to get the last argument.
8541
8542 2014-06-10 Marek Polacek <polacek@redhat.com>
8543
8544 PR c/60988
8545 * doc/extend.texi: Add cindex for transparent_union.
8546
8547 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
8548
8549 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
8550 init_symbolic_number ().
8551
8552 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
8553
8554 PR middle-end/61141
8555 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
8556 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
8557 (verify_rtl_sharing): Likewise.
8558
8559 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
8560
8561 PR c++/54442
8562 * tree.c (build_qualified_type): Use a canonical type for
8563 TYPE_CANONICAL.
8564
8565 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8566
8567 * config/arm/arm-modes.def: Remove XFmode.
8568
8569 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
8570
8571 PR target/61062
8572 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
8573 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
8574 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
8575 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
8576 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
8577 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
8578 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
8579 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
8580 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
8581
8582 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
8583
8584 * tree-core.h (tree_decl_with_vis): Remove section_name.
8585
8586 2014-06-09 Kito Cheng <kito@0xlab.org>
8587
8588 * ira.c (ira): Don't call init_caller_save if LRA enabled
8589 since LRA use its own infrastructure to handle that.
8590
8591 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8592
8593 * symtab.c (dump_symtab_base): Update dumping.
8594 (symtab_make_decl_local): Clear only DECL_COMDAT.
8595 * tree-vect-data-refs.c (Check that variable is static before
8596 tampering with sections.
8597 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
8598 (cgraph_create_virtual_clone): Likewise.
8599 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
8600 (decl_section_name, set_decl_section_name): New accessors.
8601 (find_decls_types_r): Do not walk section name
8602 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
8603 (decl_comdat_group, decl_comdat_group_id): Constify.
8604 (decl_section_name, set_decl_section_name): Update.
8605 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
8606 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
8607 (cgraph_make_node_local_1): Clear section and comdat group.
8608 * cgraph.h (set_comdat_group): Sanity check.
8609 (get_section, set_section): New.
8610 * ipa-comdats.c (ipa_comdats): Use get_section.
8611 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
8612 * lto-streamer-out.c: Do not follow section names.
8613 * c-family/c-common.c (handle_section_attribute): Update.
8614 * lto-cgraph.c (lto_output_node): Output section.
8615 (lto_output_varpool_node): Likewise.
8616 (read_comdat_group): Rename to ...
8617 (read_identifier): ... this one.
8618 (read_string_cst): New function.
8619 (input_node, input_varpool_node): Input section names.
8620 * tree-emutls.c (get_emutls_init_templ_addr): Update.
8621 (new_emutls_decl): Update.
8622 (secname_for_decl): Check section names only of static vars.
8623 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
8624 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
8625 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
8626 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
8627 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
8628 * config/mcore/mcore.c (mcore_unique_section): Likewise.
8629 * config/mips/mips.c (mips16_build_function_stub): Likewise.
8630 * config/v850/v850.c (v850_insert_attributes): Likewise.
8631 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
8632 Likewise.
8633 (h8300_handle_tiny_data_attribute): Likewise.
8634 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
8635 (bfin_handle_l2_attribute): Likewise.
8636
8637 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8638
8639 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
8640 remove static initializer.
8641
8642 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8643
8644 * varasm.c (use_blocks_for_decl_p): Check symbol table
8645 instead of alias attribute.
8646 (place_block_symbol): Recurse on aliases.
8647
8648 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8649
8650 * ipa-visibility.c: Include varasm.h
8651 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
8652
8653 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8654
8655 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
8656 outputting aliases.
8657
8658 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
8659
8660 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
8661 from test_insn into GGC space escape via SET_SRC.
8662
8663 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
8664
8665 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
8666 call statement, if any.
8667 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
8668 statements, if any. Tidy up.
8669
8670 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8671
8672 PR target/61431
8673 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
8674 iterators, VSX_D that handles 64-bit types, and VSX_LE that
8675 handles swapping the two 64-bit double words on little endian
8676 systems. Include V1TImode and optionally TImode in VSX_LE so that
8677 these types are properly swapped. Change all of the insns and
8678 splits that do the 64-bit swaps to use VSX_LE.
8679 (vsx_le_perm_load_<mode>): Likewise.
8680 (vsx_le_perm_store_<mode>): Likewise.
8681 (splitters for little endian memory operations): Likewise.
8682 (vsx_xxpermdi2_le_<mode>): Likewise.
8683 (vsx_lxvd2x2_le_<mode>): Likewise.
8684 (vsx_stxvd2x2_le_<mode>): Likewise.
8685
8686 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
8687
8688 PR target/61423
8689 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
8690 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
8691 and corresponding splitters. Zero extend general register
8692 or memory input operand to XMM temporary. Enable for
8693 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
8694 (floatunssi<mode>2): Update expander predicate.
8695
8696 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
8697
8698 PR rtl-optimization/61325
8699 * lra-constraints.c (process_address_1): Check scale equal to one
8700 to prevent transformation: base + scale * index => base + new_reg.
8701
8702 2014-06-06 Richard Biener <rguenther@suse.de>
8703
8704 PR tree-optimization/59299
8705 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
8706 a def operand.
8707 (nearest_common_dominator_of_uses): Likewise.
8708 (statement_sink_location): Adjust. Support sinking loads.
8709
8710 2014-06-06 Martin Jambor <mjambor@suse.cz>
8711
8712 * ipa-prop.c (get_place_in_agg_contents_list): New function.
8713 (build_agg_jump_func_from_list): Likewise.
8714 (determine_known_aggregate_parts): Renamed to
8715 determine_locally_known_aggregate_parts. Moved some functionality
8716 to the two functions above, removed bound checks.
8717
8718 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
8719
8720 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
8721 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
8722 (aarch64_progress_pointer): Likewise.
8723 (aarch64_copy_one_part_and_move_pointers): Likewise.
8724 (aarch64_expand_movmen): Likewise.
8725 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
8726 * config/aarch64/aarch64.md (movmem<mode>): New.
8727
8728 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
8729
8730 * targhooks.c (default_add_stmt_cost): Call target specific
8731 hook instead of default one.
8732
8733 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8734
8735 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
8736 endianness instead of host endianness.
8737 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
8738 comments.
8739
8740 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8741
8742 PR debug/53927
8743 * function.c (instantiate_decls): Process the saved static chain.
8744 (expand_function_start): If not optimizing, save the static chain
8745 onto the stack.
8746 * tree-nested.c (convert_all_function_calls): Always create the static
8747 chain for nested functions if not optimizing.
8748
8749 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8750
8751 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
8752
8753 2014-06-06 Richard Biener <rguenther@suse.de>
8754
8755 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
8756 (construct_init_block): Likewise.
8757 (construct_exit_block): Likewise.
8758 (pass_expand::execute): Likewise.
8759 * graphite.c (graphite_transforms): Replace check for current_loops
8760 with a check for > 1 loops.
8761 (pass_graphite_transforms::execute): Adjust.
8762 * ipa-split.c (split_function): Remove check for current_loops.
8763 * omp-low.c (expand_parallel_call): Likewise.
8764 (expand_omp_for_init_counts): Likewise.
8765 (extract_omp_for_update_vars): Likewise.
8766 (expand_omp_for_generic): Likewise.
8767 (expand_omp_sections): Likewise.
8768 (expand_omp_target): Likewise.
8769 * tracer.c (tail_duplicate): Likewise.
8770 (pass_tracer::execute): Likewise.
8771 * trans-mem.c (expand_transaction): Likewise.
8772 * tree-complex.c (expand_complex_div_wide): Likewise.
8773 * tree-eh.c (lower_resx): Likewise.
8774 (cleanup_empty_eh_merge_phis): Likewise.
8775 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
8776 current_loops with a check for > 1 loops.
8777 (pass_predcom::execute): Adjust.
8778 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
8779 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
8780 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
8781 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
8782 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8783 * tree-switch-conversion.c (process_switch): Likewise.
8784 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
8785 * tree-vrp.c (vrp_visit_phi_node): Likewise.
8786 (execute_vrp): Likewise.
8787 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8788
8789 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8790
8791 * rtl.h (insn_location): Declare.
8792 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
8793 with UNKNOWN_LOCATION.
8794 * emit-rtl.c (insn_location): New function.
8795 * final.c (notice_source_line): Check that the instruction has a
8796 location before retrieving it and use insn_location.
8797 * modulo-sched.c (loop_single_full_bb_p): Likewise.
8798 * print-rtl.c (print_rtx): Likewise.
8799
8800 2014-06-06 Richard Biener <rguenther@suse.de>
8801
8802 * passes.def: Move 2nd VRP pass before phi-only-cprop.
8803
8804 2014-06-06 Christian Bruel <christian.bruel@st.com>
8805
8806 PR tree-optimization/43934
8807 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
8808 cost.
8809
8810 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8811
8812 * ira-lives.c (single_reg_class): Add missing break. Explicitly
8813 return NO_REGS for extra address and memory constraints. Handle
8814 operands that match (or are equivalent to something that matches)
8815 extra constant constraints. Ignore other non-register operands.
8816
8817 2014-06-06 Alan Modra <amodra@gmail.com>
8818
8819 PR target/61300
8820 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
8821 * doc/tm.texi: Regenerate.
8822 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
8823 Use throughout in place of REG_PARM_STACK_SPACE.
8824 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
8825 "incoming" param. Pass to rs6000_function_parms_need_stack.
8826 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
8827 prototype_p when incoming. Use function decl when incoming
8828 to handle K&R style functions.
8829 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
8830 (INCOMING_REG_PARM_STACK_SPACE): Define.
8831
8832 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8833
8834 PR target/52472
8835 * cfgexpand.c (expand_debug_expr): Use address space of nested
8836 TREE_TYPE for ADDR_EXPR and MEM_REF.
8837
8838 2014-06-05 Jeff Law <law@redhat.com>
8839
8840 PR tree-optimization/61289
8841 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
8842 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
8843 looking for those which match LHS. All callers changed.
8844 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
8845 parameters and code which manipulated them. All callers changed.
8846 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
8847 and DST_MAP parameters. Simplify invalidation code by just calling
8848 invalidate_equivalences. All callers changed.
8849 (thread_across_edge): Simplify now that we don't need to maintain
8850 the map of equivalences to invalidate.
8851
8852 2014-06-05 Kai Tietz <ktietz@redhat.com>
8853 Richard Henderson <rth@redhat.com>
8854
8855 PR target/46219
8856 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
8857 checking for !TARGET_X32.
8858 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
8859 (sibcall_intern): New define_insn, plus required peepholes.
8860 (sibcall_pop_intern): Likewise.
8861 (sibcall_value_intern): Likewise.
8862 (sibcall_value_pop_intern): Likewise.
8863
8864 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
8865
8866 * tree-inline.c (tree_function_versioning): Check DF info existence
8867 before accessing it.
8868
8869 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8870
8871 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
8872 frame_size.
8873 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
8874 aarch64_frame hard_fp_offset and frame_size.
8875 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
8876 frame_size; remove original_frame_size.
8877 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
8878 (aarch64_initial_elimination_offset): Remove frame_size and
8879 offset. Use aarch64_frame frame_size.
8880
8881 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8882 Jiong Wang <jiong.wang@arm.com>
8883 Renlin <renlin.li@arm.com>
8884
8885 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
8886 initialization of R30 offset. Update offset. Iterate core
8887 regisers upto X30. Remove X29, X30 specific code.
8888
8889 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8890 Jiong Wang <jiong.wang@arm.com>
8891
8892 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
8893 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
8894 (aarch64_register_saved_on_entry): Adjust test.
8895
8896 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8897
8898 * config/aarch64/aarch64.h (machine_function): Move
8899 saved_varargs_size from here...
8900 (aarch64_frame): ... to here.
8901
8902 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8903 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
8904 (aarch64_initial_elimination_offset)
8905 (aarch64_setup_incoming_varargs): Adjust location of
8906 saved_varargs_size.
8907
8908 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8909
8910 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
8911 layout comment.
8912
8913 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
8914 Prachi Godbole <Prachi.Godbole@imgtec.com>
8915
8916 * config/mips/mips-cpus.def: Add definition for p5600. Updated
8917 mips32r5 entry to use PROCESSOR_P5600.
8918 * config/mips/mips-tables.opt: Regenerate.
8919 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
8920 * config/mips/mips.c (mips_fmadd_bypass): New function.
8921 (mips_rtx_cost_data): Add costs for p5600.
8922 (mips_issue_rate): Add support for p5600.
8923 (mips_multipass_dfa_lookahead): Likewise.
8924 * config/mips/mips.h (TUNE_P5600): New define.
8925 (TUNE_MACC_CHAINS): Add TUNE_P5600.
8926 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
8927 * config/mips/mips.md: Include p5600.md.
8928 (processor): Add p5600.
8929 * config/mips/p5600.md: New file.
8930
8931 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
8932
8933 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
8934 * config/i386/predicates.md (palignr_operand): New.
8935 Indicates if permutation is suitable for palignr instruction.
8936
8937 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
8938
8939 PR tree-optimization/61319
8940 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8941 stmt belongs to loop.
8942
8943 2014-06-05 Richard Biener <rguenther@suse.de>
8944
8945 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
8946 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
8947 (lookup_tmp_var): Adjust.
8948 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
8949
8950 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8951
8952 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
8953
8954 2014-06-05 Marek Polacek <polacek@redhat.com>
8955
8956 PR c/49706
8957 * doc/invoke.texi: Document -Wlogical-not-parentheses.
8958
8959 2014-06-04 Tom de Vries <tom@codesourcery.com>
8960
8961 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
8962 CONST_INT.
8963
8964 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
8965
8966 PR tree-optimization/61385
8967 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
8968
8969 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
8970
8971 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
8972 changed to use fatal_error.
8973 (main): Ensure lto_wrapper_cleanup is run atexit.
8974
8975 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8976
8977 * lra-constraints.c (valid_address_p): Move earlier in file.
8978 (address_eliminator): New structure.
8979 (satisfies_memory_constraint_p): New function.
8980 (satisfies_address_constraint_p): Likewise.
8981 (process_alt_operands, process_address, curr_insn_transform): Use them.
8982
8983 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8984
8985 * lra-int.h (lra_static_insn_data): Make operand_alternative a
8986 const pointer.
8987 (target_lra_int, default_target_lra_int, this_target_lra_int)
8988 (op_alt_data): Delete.
8989 * lra.h (lra_init): Delete.
8990 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
8991 (init_insn_code_data_once): Remove op_alt_data handling.
8992 (finish_insn_code_data_once): Likewise.
8993 (init_op_alt_data): Delete.
8994 (get_static_insn_data): Initialize operand_alternative to null.
8995 (free_insn_recog_data): Cast operand_alternative before freeing it.
8996 (setup_operand_alternative): Take the operand_alternative as
8997 parameter and assume it isn't already cached in the static
8998 insn data.
8999 (lra_set_insn_recog_data): Update accordingly.
9000 (lra_init): Delete.
9001 * ira.c (ira_init): Don't call lra_init.
9002 * target-globals.h (this_target_lra_int): Declare.
9003 (target_globals): Remove lra_int.
9004 (restore_target_globals): Update accordingly.
9005 * target-globals.c: Don't include lra-int.h.
9006 (default_target_globals, save_target_globals): Remove lra_int.
9007
9008 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9009
9010 * recog.h (operand_alternative): Convert reg_class, reject,
9011 matched and matches into bitfields.
9012 (preprocess_constraints): New overload.
9013 (preprocess_insn_constraints): New function.
9014 (preprocess_constraints): Take the insn as parameter.
9015 (recog_op_alt): Change into a pointer.
9016 (target_recog): Add x_op_alt.
9017 * recog.c (asm_op_alt): New variable.
9018 (recog_op_alt): Change into a pointer.
9019 (preprocess_constraints): New overload, replacing the old function
9020 definition with one that doesn't use global state.
9021 (preprocess_insn_constraints): New function.
9022 (preprocess_constraints): Use them. Take the insn as parameter.
9023 Use asm_op_alt for asms.
9024 (recog_init): Free existing x_op_alt entries.
9025 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
9026 pointer const.
9027 (make_early_clobber_and_input_conflicts): Likewise.
9028 (process_bb_node_lives): Pass the insn to process_constraints.
9029 * reg-stack.c (check_asm_stack_operands): Likewise.
9030 (subst_asm_stack_regs): Likewise.
9031 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
9032 * regrename.c (build_def_use): Likewise.
9033 * sched-deps.c (sched_analyze_insn): Likewise.
9034 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
9035 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
9036 (note_invalid_constants): Likewise.
9037 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9038 (ix86_legitimate_combined_insn): Make operand_alternative pointer
9039 const.
9040
9041 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9042
9043 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
9044 * ira-lives.c (check_and_make_def_conflict): Check for disabled
9045 alternatives.
9046 (make_early_clobber_and_input_conflicts): Likewise.
9047 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9048
9049 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9050
9051 * recog.h (alternative_class): New function.
9052 (which_op_alt): Return a const recog_op_alt.
9053 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
9054 (subst_asm_stack_regs): Likewise.
9055 * config/arm/arm.c (note_invalid_constants): Likewise.
9056 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
9057 the operand_alternative; use alternative class instead.
9058 * sel-sched.c (get_reg_class): Likewise.
9059 * regrename.c (build_def_use): Likewise.
9060 (hide_operands, restore_operands, record_out_operands): Update type
9061 accordingly.
9062
9063 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9064
9065 * recog.h (recog_op_alt): Convert to a flat array.
9066 (which_op_alt): New function.
9067 * recog.c (recog_op_alt): Convert to a flat array.
9068 (preprocess_constraints): Update accordingly, grouping all
9069 operands of the same alternative together, rather than the
9070 other way around.
9071 * ira-lives.c (check_and_make_def_conflict): Likewise.
9072 (make_early_clobber_and_input_conflicts): Likewise.
9073 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9074 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
9075 (subst_asm_stack_regs): Likewise.
9076 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
9077 * regrename.c (hide_operands, record_out_operands): Likewise.
9078 (build_def_use): Likewise.
9079 * sel-sched.c (get_reg_class): Likewise.
9080 * config/arm/arm.c (note_invalid_constants): Likewise.
9081
9082 2014-06-04 Jason Merrill <jason@redhat.com>
9083
9084 PR c++/51253
9085 PR c++/61382
9086 * gimplify.c (gimplify_arg): Non-static.
9087 * gimplify.h: Declare it.
9088
9089 2014-06-04 Richard Biener <rguenther@suse.de>
9090
9091 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
9092 TREE_PUBLIC and DECL_EXTERNAL decls.
9093
9094 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
9095
9096 * regcprop.c (copyprop_hardreg_forward_1): Account for
9097 HARD_REGNO_CALL_PART_CLOBBERED.
9098
9099 2014-06-04 Richard Biener <rguenther@suse.de>
9100
9101 * configure.ac: Check whether the underlying type of int64_t
9102 is long or long long.
9103 * configure: Regenerate.
9104 * config.in: Likewise.
9105 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
9106 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9107
9108 2014-06-04 Richard Biener <rguenther@suse.de>
9109
9110 PR tree-optimization/60098
9111 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
9112 we hit a kill.
9113 (dse_optimize_stmt): Simplify, now that we found a kill
9114 earlier.
9115
9116 2014-06-04 Richard Biener <rguenther@suse.de>
9117
9118 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
9119 of accesses with non-invariant address.
9120
9121 2014-06-04 Martin Liska <mliska@suse.cz>
9122
9123 * cgraph.h (cgraph_make_wrapper): New function introduced.
9124 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
9125 * ipa-inline.h (inline_analyze_function): The function is global.
9126 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
9127
9128 2014-06-04 Martin Liska <mliska@suse.cz>
9129
9130 * tree.h (private_lookup_attribute_starting): New function.
9131 (lookup_attribute_starting): Likewise.
9132 * tree.c (private_lookup_attribute_starting): Likewise.
9133
9134 2014-06-04 Martin Liska <mliska@suse.cz>
9135
9136 * cgraph.h (expand_thunk): New argument added.
9137 (address_taken_from_non_vtable_p): New global function.
9138 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
9139 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
9140 * cgraphunit.c (analyze_function): Likewise.
9141 (assemble_thunks_and_aliases): Argument added to call.
9142 (expand_thunk): New argument forces to produce GIMPLE thunk.
9143
9144 2014-06-04 Martin Liska <mliska@suse.cz>
9145
9146 * coverage.h (coverage_compute_cfg_checksum): Argument added.
9147 * coverage.c (coverage_compute_cfg_checksum): Likewise.
9148 * profile.c (branch_prob): Likewise.
9149
9150 2014-06-04 Martin Jambor <mjambor@suse.cz>
9151
9152 PR ipa/61340
9153 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
9154 handler for switch on an ipa_ref_use enum.
9155 * ipa-reference.c (analyze_function): Likewise.
9156
9157 2014-06-04 Kai Tietz <ktietz@redhat.com>
9158
9159 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
9160 from old call-instruction.
9161
9162 2014-06-04 Bin Cheng <bin.cheng@arm.com>
9163
9164 * config/aarch64/aarch64.c (aarch64_classify_address)
9165 (aarch64_legitimize_reload_address): Support full addressing modes
9166 for vector modes.
9167 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
9168 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
9169
9170 2014-06-03 Andrew Pinski <apinski@cavium.com>
9171
9172 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
9173 for OP0.
9174
9175 2014-06-03 Andrew Pinski <apinski@cavium.com>
9176
9177 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
9178 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
9179
9180 2014-06-03 Kai Tietz <ktietz@redhat.com>
9181
9182 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
9183 for 64-bit ms-abi.
9184
9185 2014-06-03 Dehao Chen <dehao@google.com>
9186
9187 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
9188 the same loop.
9189
9190 2014-06-03 Marek Polacek <polacek@redhat.com>
9191
9192 PR c/60439
9193 * doc/invoke.texi: Document -Wswitch-bool.
9194 * function.c (stack_protect_epilogue): Cast controlling expression of
9195 the switch to int.
9196 * gengtype.c (walk_type): Generate switch expression with its
9197 controlling expression cast to int.
9198
9199 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
9200
9201 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
9202 and attiny841.
9203 * config/avr/avr-tables.opt: Regenerate.
9204 * config/avr/t-multilib: Regenerate.
9205 * doc/avr-mmcu.texi: Regenerate.
9206
9207 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
9208 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9209
9210 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
9211 (ata6617c, ata664251): Add new avr35 devices.
9212 (ata6612c): Add new avr4 device.
9213 (ata6613c, ata6614q): Add new avr5 devices.
9214 * config/avr/avr-tables.opt: Regenerate.
9215 * config/avr/t-multilib: Regenerate.
9216 * doc/avr-mmcu.texi: Regenerate.
9217
9218 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9219
9220 * gcc/config/aarch64/aarch64-builtins.c
9221 (aarch64_types_binop_ssu_qualifiers): New static data.
9222 (TYPES_BINOP_SSU): Define.
9223 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
9224 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
9225 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
9226 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
9227 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
9228 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
9229 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
9230 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
9231 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
9232 suffix to builtin function name, remove cast.
9233 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
9234 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
9235 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
9236
9237 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9238
9239 * gcc/config/aarch64/aarch64-builtins.c
9240 (aarch64_types_binop_uus_qualifiers,
9241 aarch64_types_shift_to_unsigned_qualifiers,
9242 aarch64_types_unsigned_shiftacc_qualifiers): Define.
9243 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
9244 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
9245 sqshlu_n, uqshl_n): Update qualifiers.
9246 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
9247 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
9248 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
9249 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
9250 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
9251 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
9252 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
9253 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
9254 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
9255 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
9256 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
9257 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
9258 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
9259 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
9260 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
9261 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
9262 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
9263 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
9264 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
9265 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
9266 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
9267 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
9268 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
9269 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
9270 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
9271 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
9272 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
9273
9274 2014-06-03 Teresa Johnson <tejohnson@google.com>
9275
9276 * tree-sra.c (modify_function): Record caller nodes after rebuild.
9277
9278 2014-06-02 Jason Merrill <jason@redhat.com>
9279
9280 PR c++/61020
9281 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
9282
9283 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9284
9285 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
9286 location == 0.
9287
9288 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9289
9290 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
9291 New pattern.
9292 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
9293 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
9294 * config/aarch64/iterators.md (REVERSE): New iterator.
9295 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
9296 (rev_op): New int_attribute.
9297 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
9298 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
9299 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
9300 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
9301 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
9302 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
9303 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
9304 Replace temporary __asm__ with __builtin_shuffle.
9305
9306 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
9307
9308 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
9309 mips64r5.
9310 * config/mips/mips-tables.opt: Regenerate.
9311 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
9312 to use mips_isa_rev rather than ISA_MIPS32R2.
9313 * config/mips/mips.h (ISA_MIPS32R3): New define.
9314 (ISA_MIPS32R5): New define.
9315 (ISA_MIPS64R3): New define.
9316 (ISA_MIPS64R5): New define.
9317 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
9318 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
9319 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
9320 and mips64r5.
9321 (MIPS_ISA_SYNCI_SPEC): Likewise.
9322 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
9323 (LINK_SPEC): Added mips32r3 and mips32r5.
9324 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
9325 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
9326 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
9327 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
9328 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
9329 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
9330 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
9331
9332 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
9333
9334 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
9335 options.
9336 * config/mips/mips.opt (mxpa): New option.
9337 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
9338 assembler.
9339
9340 2014-06-03 Martin Jambor <mjambor@suse.cz>
9341
9342 PR ipa/61160
9343 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
9344 thunks.
9345
9346 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
9347
9348 PR tree-optimization/61328
9349 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
9350 initialization from find_bswap_or_nop_1.
9351 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
9352 in source_expr2 before using the size value the function sets. Also
9353 make use of init_symbolic_number () in both the old place and
9354 find_bswap_or_nop_load () to avoid reading uninitialized memory when
9355 doing recursion in the GIMPLE_BINARY_RHS case.
9356
9357 2014-06-03 Richard Biener <rguenther@suse.de>
9358
9359 PR tree-optimization/61383
9360 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
9361 stmts can't trap.
9362
9363 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
9364
9365 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
9366 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
9367 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
9368 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
9369 in this file.
9370 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
9371 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
9372 * system.h: ...here and make it unconditional.
9373 * target.def (conditional_register_usage): Mention
9374 define_register_constraint instead of old-style constraint macros.
9375 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
9376 * doc/tm.texi: Regenerate.
9377 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
9378 protected by !USE_MD_CONSTRAINTS.
9379 * config/frv/frv.md: Remove quote from old version of documentation.
9380 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
9381 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
9382 CONST_DOUBLE_OK_FOR_LETTER.
9383 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
9384
9385 2014-06-02 Andrew Pinski <apinski@cavium.com>
9386
9387 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
9388 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
9389 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
9390 file whose name depends on -mabi= and -mbig-endian.
9391 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
9392 Handle LP64 better and handle ilp32 too.
9393 (MULTILIB_OPTIONS): Delete.
9394 (MULTILIB_DIRNAMES): Delete.
9395
9396 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
9397
9398 * expr.h: Remove prototypes of functions defined in builtins.c.
9399 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
9400 Remove prototypes of functions defined in builtins.c.
9401 * builtins.h: Update prototype list to include all exported functions.
9402 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
9403 no_c99_libc_has_function): Move to targhooks.c
9404 (build_string_literal, build_call_expr_loc_array,
9405 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
9406 to tree.c.
9407 (expand_builtin_object_size, fold_builtin_object_size): Make static.
9408 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
9409 no_c99_libc_has_function): Relocate from builtins.c.
9410 * tree.c: Include builtins.h.
9411 (build_call_expr_loc_array, build_call_expr_loc_vec,
9412 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
9413 from builtins.c.
9414 * fold-const.h (fold_fma): Move prototype to builtins.h.
9415 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
9416 * asan.c: Include builtins.h.
9417 * cfgexpand.c: Likewise.
9418 * convert.c: Likewise.
9419 * emit-rtl.c: Likewise.
9420 * except.c: Likewise.
9421 * expr.c: Likewise.
9422 * fold-const.c: Likewise.
9423 * gimple-fold.c: Likewise.
9424 * gimple-ssa-strength-reduction.c: Likewise.
9425 * gimplify.c: Likewise.
9426 * ipa-inline.c: Likewise.
9427 * ipa-prop.c: Likewise.
9428 * lto-streamer-out.c: Likewise.
9429 * stmt.c: Likewise.
9430 * tree-inline.c: Likewise.
9431 * tree-object-size.c: Likewise.
9432 * tree-sra.c: Likewise.
9433 * tree-ssa-ccp.c: Likewise.
9434 * tree-ssa-forwprop.c: Likewise.
9435 * tree-ssa-loop-ivcanon.c: Likewise.
9436 * tree-ssa-loop-ivopts.c: Likewise.
9437 * tree-ssa-math-opts.c: Likewise.
9438 * tree-ssa-reassoc.c: Likewise.
9439 * tree-ssa-threadedge.c: Likewise.
9440 * tree-streamer-in.c: Likewise.
9441 * tree-vect-data-refs.c: Likewise.
9442 * tree-vect-patterns.c: Likewise.
9443 * tree-vect-stmts.c: Likewise.
9444 * config/aarch64/aarch64.c: Likewise.
9445 * config/alpha/alpha.c: Likewise.
9446 * config/arc/arc.c: Likewise.
9447 * config/arm/arm.c: Likewise.
9448 * config/avr/avr.c: Likewise.
9449 * config/bfin/bfin.c: Likewise.
9450 * config/c6x/c6x.c: Likewise.
9451 * config/cr16/cr16.c: Likewise.
9452 * config/cris/cris.c: Likewise.
9453 * config/epiphany/epiphany.c: Likewise.
9454 * config/fr30/fr30.c: Likewise.
9455 * config/frv/frv.c: Likewise.
9456 * config/h8300/h8300.c: Likewise.
9457 * config/i386/i386.c: Likewise.
9458 * config/i386/winnt.c: Likewise.
9459 * config/ia64/ia64.c: Likewise.
9460 * config/iq2000/iq2000.c: Likewise.
9461 * config/lm32/lm32.c: Likewise.
9462 * config/m32c/m32c.c: Likewise.
9463 * config/m32r/m32r.c: Likewise.
9464 * config/m68k/m68k.c: Likewise.
9465 * config/mcore/mcore.c: Likewise.
9466 * config/mep/mep.c: Likewise.
9467 * config/microblaze/microblaze.c: Likewise.
9468 * config/mips/mips.c: Likewise.
9469 * config/mmix/mmix.c: Likewise.
9470 * config/mn10300/mn10300.c: Likewise.
9471 * config/moxie/moxie.c: Likewise.
9472 * config/msp430/msp430.c: Likewise.
9473 * config/nds32/nds32.c: Likewise.
9474 * config/pa/pa.c: Likewise.
9475 * config/pdp11/pdp11.c: Likewise.
9476 * config/picochip/picochip.c: Likewise.
9477 * config/rl78/rl78.c: Likewise.
9478 * config/rs6000/rs6000.c: Likewise.
9479 * config/rx/rx.c: Likewise.
9480 * config/s390/s390.c: Likewise.
9481 * config/score/score.c: Likewise.
9482 * config/sh/sh.c: Likewise.
9483 * config/sparc/sparc.c: Likewise.
9484 * config/spu/spu.c: Likewise.
9485 * config/stormy16/stormy16.c: Likewise.
9486 * config/tilegx/tilegx.c: Likewise.
9487 * config/tilepro/tilepro.c: Likewise.
9488 * config/v850/v850.c: Likewise.
9489 * config/vax/vax.c: Likewise.
9490 * config/xtensa/xtensa.c: Likewise.
9491
9492 2014-06-02 Jeff Law <law@redhat.com>
9493
9494 PR rtl-optimization/61094
9495 * ree.c (combine_reaching_defs): Do not reextend an insn if it
9496 was marked as do_no_reextend. If a copy is needed to eliminate
9497 an extension, then mark it as do_not_reextend.
9498
9499 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
9500
9501 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
9502
9503 2014-06-02 Richard Henderson <rth@redhat.com>
9504
9505 PR target/61336
9506 * config/alpha/alpha.c (print_operand_address): Allow symbolic
9507 addresses inside asms. Use output_operand_lossage instead of
9508 gcc_unreachable.
9509
9510 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
9511
9512 PR target/61239
9513 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
9514 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
9515
9516 2014-06-02 Tom de Vries <tom@codesourcery.com>
9517
9518 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
9519 case that x has VOIDmode.
9520
9521 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
9522
9523 * varasm.c (copy_constant): Delete function.
9524 (build_constant_desc): Don't call it.
9525
9526 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9527
9528 PR target/61154
9529 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
9530 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
9531 with immediate_operand.
9532
9533 2014-06-02 Andreas Schwab <schwab@suse.de>
9534
9535 * config/ia64/ia64.c
9536 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
9537 pending_data_specs first.
9538
9539 2014-06-02 Richard Biener <rguenther@suse.de>
9540
9541 PR tree-optimization/61378
9542 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
9543 valueized_anything.
9544
9545 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
9546
9547 * config/i386/constraints.md (Bw): Rename from 'w'.
9548 (Bz): Rename from 'z'.
9549 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
9550
9551 2014-06-01 Kai Tietz <ktietz@redhat.com>
9552
9553 PR target/61377
9554 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
9555 * config/i386/i386.md (sibcall_insn_operand): Use Bs
9556 instead of m constraint.
9557
9558 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
9559
9560 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
9561 a separate alternative where the scratch operand 2 is marked as
9562 early clobber.
9563
9564 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
9565
9566 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9567 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
9568 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
9569 and __builtins_arm_get_fpscr.
9570 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
9571 __builtins_arm_get_fpscr.
9572 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
9573 __builtins_arm_ldfpscr.
9574 (arm_atomic_assign_expand_fenv): New function.
9575 * config/arm/vfp.md (set_fpscr): New pattern.
9576 (get_fpscr) : Likewise.
9577 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
9578 VUNSPEC_SET_FPSCR.
9579 * doc/extend.texi (AARCH64 Built-in Functions) : Document
9580 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
9581
9582 2014-05-30 Jakub Jelinek <jakub@redhat.com>
9583
9584 * asan.c (report_error_func): Add SLOW_P argument, use
9585 BUILT_IN_ASAN_*_N if set.
9586 (build_check_stmt): Likewise.
9587 (instrument_derefs): If T has insufficient alignment,
9588 force same handling as for odd sizes.
9589
9590 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
9591 BUILT_IN_ASAN_REPORT_STORE_N): New.
9592 * asan.c (struct asan_mem_ref): Change access_size type to
9593 HOST_WIDE_INT.
9594 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
9595 update_mem_ref_hash_table): Likewise.
9596 (asan_mem_ref_hasher::hash): Hash in a HWI.
9597 (report_error_func): Change size_in_bytes argument to HWI.
9598 Use *_N builtins if size_in_bytes is larger than 16 or not power of
9599 two.
9600 (build_shadow_mem_access): New function.
9601 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
9602 Handle size_in_bytes not power of two or larger than 16.
9603 (instrument_derefs): Don't give up if size_in_bytes is not
9604 power of two or is larger than 16.
9605
9606 2014-05-30 Kai Tietz <ktietz@redhat.com>
9607
9608 PR target/60104
9609 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
9610 for sibling-tail-calls.
9611 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
9612 to its use.
9613 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
9614 (sibcall_insn_operand): Add check for sibcall_memory_operand.
9615
9616 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9617
9618 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
9619 * config/avr/avr-tables.opt: Regenerate.
9620 * config/avr/t-multilib: Regenerate.
9621 * doc/avr-mmcu.texi: Regenerate.
9622
9623 2014-05-30 Ian Lance Taylor <iant@google.com>
9624
9625 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
9626 target("sse").
9627
9628 2014-05-30 Tom de Vries <tom@codesourcery.com>
9629
9630 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
9631 Redefine as true.
9632
9633 2014-05-30 Tom de Vries <tom@codesourcery.com>
9634
9635 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9636 * lra.c (initialize_lra_reg_info_element): Add init of
9637 actual_call_used_reg_set field.
9638 (lra): Call lra_create_live_ranges before lra_inheritance for
9639 -fuse-caller-save.
9640 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9641 -fuse-caller-save.
9642 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
9643 instead of call_used_reg_set for -fuse-caller-save.
9644 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9645
9646 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9647
9648 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
9649 to mov_imm.
9650 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
9651
9652 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
9653
9654 * ira.c (ira_get_dup_out_num): Check for output operands at
9655 the start of the loop. Handle cases where an included alternative
9656 follows an excluded one.
9657
9658 2014-05-29 Mike Stump <mikestump@comcast.net>
9659
9660 PR debug/61352
9661 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
9662 post ld passes when lto is used.
9663
9664 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
9665
9666 PR rtl-optimization/61325
9667 * lra-constraints.c (process_address): Rename to process_address_1.
9668 (process_address): New function.
9669
9670 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
9671
9672 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
9673 TYPES_BINOPV): New static data.
9674 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
9675 New builtin.
9676 * config/aarch64/aarch64-simd.md (aarch64_ext,
9677 aarch64_im_lane_boundsi): New patterns.
9678 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
9679 patterns for EXT.
9680 (aarch64_evpc_ext): New function.
9681
9682 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
9683
9684 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
9685 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
9686 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
9687 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
9688 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
9689
9690 2014-05-29 Tom de Vries <tom@codesourcery.com>
9691
9692 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
9693
9694 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
9695 Richard Sandiford <rdsandiford@googlemail.com>
9696
9697 * arm/iterators.md (shiftable_ops): New code iterator.
9698 (t2_binop0, arith_shift_insn): New code attributes.
9699 * arm/predicates.md (shift_nomul_operator): New predicate.
9700 * arm/arm.md (insn_enabled): Delete.
9701 (enabled): Remove insn_enabled test.
9702 (*arith_shiftsi): Delete. Replace with ...
9703 (*<arith_shift_insn>_multsi): ... new pattern.
9704 (*<arith_shift_insn>_shiftsi): ... new pattern.
9705 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
9706
9707 2014-05-29 Radovan Obradovic <robradovic@mips.com>
9708 Tom de Vries <tom@codesourcery.com>
9709
9710 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
9711 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
9712 clobber.
9713 (mips_split_call): Use POST_CALL_TMP_REG.
9714 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
9715
9716 2014-05-29 Tom de Vries <tom@codesourcery.com>
9717
9718 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
9719 with #ifdef STACK_REGS.
9720
9721 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
9722
9723 * varasm.c (get_variable_section): Walk aliases.
9724 (place_block_symbol): Walk aliases.
9725
9726 2014-05-28 Tom de Vries <tom@codesourcery.com>
9727
9728 Revert:
9729 2014-05-28 Tom de Vries <tom@codesourcery.com>
9730
9731 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9732 * lra.c (initialize_lra_reg_info_element): Add init of
9733 actual_call_used_reg_set field.
9734 (lra): Call lra_create_live_ranges before lra_inheritance for
9735 -fuse-caller-save.
9736 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9737 -fuse-caller-save.
9738 * lra-constraints.c (need_for_call_save_p): Use
9739 actual_call_used_reg_set instead of call_used_reg_set for
9740 -fuse-caller-save.
9741 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9742
9743 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9744
9745 * doc/md.texi: Document that the % constraint character must
9746 be at the beginning of the string.
9747 * genoutput.c (validate_insn_alternatives): Check that '=',
9748 '+' and '%' only appear at the beginning of a constraint.
9749 * ira.c (commutative_constraint_p): Delete.
9750 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
9751 at the start of the string.
9752 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
9753 duplicate '='s.
9754 * config/arm/neon.md (bicdi3_neon): Likewise.
9755 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
9756 (slt_si, sltu_si): Likewise.
9757 * config/vax/vax.md (sbcdi3): Likewise.
9758 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
9759 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
9760 (mul64): Move '%' to beginning of constraint.
9761 * config/arm/arm.md (*xordi3_insn): Likewise.
9762 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
9763 (xorsi3): Likewise.
9764
9765 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9766
9767 * doc/md.texi: Document the restrictions on the "enabled" attribute.
9768
9769 2014-05-28 Jason Merrill <jason@redhat.com>
9770
9771 PR c++/47202
9772 * cgraph.h (symtab_node::get_comdat_group_id): New.
9773 * cgraphunit.c (analyze_functions): Call it.
9774 * symtab.c (dump_symtab_node): Likewise.
9775 * tree.c (decl_comdat_group_id): New.
9776 * tree.h: Declare it.
9777 * lto-streamer-out.c (write_symbol): Use it.
9778 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
9779
9780 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9781
9782 PR bootstrap/PR61146
9783 * wide-int.cc: Do not include longlong.h when compiling with clang.
9784
9785 2014-05-28 Richard Biener <rguenther@suse.de>
9786
9787 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
9788 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
9789 (vrp_visit_assignment_or_call): Print less vertical space.
9790 (vrp_visit_stmt): Likewise.
9791 (vrp_visit_phi_node): Likewise. For a PHI argument with
9792 VR_VARYING range consider recording it as copy.
9793
9794 2014-05-28 Richard Biener <rguenther@suse.de>
9795
9796 Revert
9797 2014-05-28 Richard Biener <rguenther@suse.de>
9798
9799 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9800
9801 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9802
9803 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
9804 sufficiently aligned and an offset is used at the same time.
9805 (expand_expr_real_1): Likewise.
9806
9807 2014-05-28 Richard Biener <rguenther@suse.de>
9808
9809 PR middle-end/61045
9810 * fold-const.c (fold_comparison): When folding
9811 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
9812 the sign of the remaining constant operand stays the same.
9813
9814 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
9815
9816 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9817 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
9818 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
9819 to the assembler.
9820 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
9821 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
9822 (m32bit-doubles) Likewise.
9823 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
9824 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
9825 option for RL78.
9826
9827 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9828
9829 * configure.ac ($gcc_cv_ld_clearcap): New test.
9830 * configure: Regenerate.
9831 * config.in: Regenerate.
9832 * config/sol2.opt (mclear-hwcap): New option.
9833 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
9834 * config/sol2-clearcap.map: Moved here from
9835 testsuite/gcc.target/i386/clearcap.map.
9836 * config/sol2-clearcapv2.map: Move here from
9837 gcc.target/i386/clearcapv2.map.
9838 * config/t-sol2 (install): Depend on install-clearcap-map.
9839 (install-clearcap-map): New target.
9840 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
9841 -mclear-hwcap.
9842
9843 2014-05-28 Richard Biener <rguenther@suse.de>
9844
9845 * hwint.h (*_HALF_WIDE_INT*): Move to ...
9846 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
9847 ... here and remove the rest.
9848 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9849
9850 2014-05-28 Richard Biener <rguenther@suse.de>
9851
9852 PR tree-optimization/61335
9853 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
9854 new range fails, drop to varying.
9855
9856 2014-05-28 Olivier Hainque <hainque@adacore.com>
9857
9858 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
9859 (CPP_SPEC): Add entry for -mcpu=8548.
9860 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
9861 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
9862
9863 2014-05-28 Tom de Vries <tom@codesourcery.com>
9864
9865 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9866 * lra.c (initialize_lra_reg_info_element): Add init of
9867 actual_call_used_reg_set field.
9868 (lra): Call lra_create_live_ranges before lra_inheritance for
9869 -fuse-caller-save.
9870 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9871 -fuse-caller-save.
9872 * lra-constraints.c (need_for_call_save_p): Use
9873 actual_call_used_reg_set instead of call_used_reg_set for
9874 -fuse-caller-save.
9875 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9876
9877 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9878 Tom de Vries <tom@codesourcery.com>
9879
9880 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
9881 to gccoptlist.
9882 (@item -fuse-caller-save): New item.
9883
9884 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9885 Tom de Vries <tom@codesourcery.com>
9886
9887 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
9888 OPT_fuse_caller_save.
9889
9890 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9891 Tom de Vries <tom@codesourcery.com>
9892
9893 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
9894 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
9895 get_call_reg_set_usage.
9896 * resource.c (mark_set_resources, mark_target_live_regs): Use
9897 get_call_reg_set_usage.
9898 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
9899 field.
9900 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
9901 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
9902 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9903 * ira-build.c (ira_create_allocno): Init
9904 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9905 (create_cap_allocno, propagate_allocno_info)
9906 (propagate_some_info_from_allocno)
9907 (copy_info_to_removed_store_destinations): Handle
9908 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9909 * ira-costs.c (ira_tune_allocno_costs): Use
9910 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
9911
9912 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9913 Tom de Vries <tom@codesourcery.com>
9914
9915 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
9916 and function_used_regs_valid fields.
9917 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
9918 find_all_hard_reg_sets.
9919 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
9920 (get_call_reg_set_usage): New function.
9921 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
9922 * regs.h (get_call_reg_set_usage): Declare.
9923
9924 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9925
9926 PR libgcc/61152
9927 * config/dbx.h (License): Add Runtime Library Exception.
9928 * config/newlib-stdint.h (License): Same.
9929 * config/rtems.h (License): Same
9930 * config/initfini-array.h (License): Same
9931 * config/v850/v850.h (License): Same.
9932 * config/v850/v850-opts.h (License): Same
9933 * config/v850/rtems.h (License): Same.
9934
9935 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9936
9937 PR target/61044
9938 * doc/extend.texi (Local Labels): Note that label differences are
9939 not supported for AVR.
9940
9941 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9942 Olivier Hainque <hainque@adacore.com>
9943
9944 * rtl.h (set_for_reg_notes): Declare.
9945 * emit-rtl.c (set_for_reg_notes): New function.
9946 (set_unique_reg_note): Use it.
9947 * optabs.c (add_equal_note): Likewise
9948
9949 2014-05-27 Andrew Pinski <apinski@cavium.com>
9950
9951 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
9952 Use <w> for the register in assembly template.
9953 (stack_protect_test): Use the mode of operands[0] for the result.
9954 (stack_protect_test_<mode>): Use <w> for the register
9955 in assembly template.
9956
9957 2014-05-27 DJ Delorie <dj@redhat.com>
9958
9959 * config/rx/rx.c (add_vector_labels): New.
9960 (rx_output_function_prologue): Call it.
9961 (rx_handle_func_attribute): Don't require empty arguments.
9962 (rx_handle_vector_attribute): New.
9963 (rx_attribute_table): Add "vector" attribute.
9964 * doc/extend.texi (interrupt, vector): Document new/changed
9965 RX-specific attributes.
9966
9967 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
9968
9969 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9970
9971 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
9972 predicate to detect a negative quotient.
9973
9974 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9975
9976 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
9977 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
9978 Add X - Y CMP 0 to X CMP Y transformation.
9979 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
9980
9981 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
9982
9983 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
9984 before printing.
9985
9986 2014-05-27 Steve Ellcey <sellcey@mips.com>
9987
9988 * config/mips/mips.c: Add include of cgraph.h.
9989
9990 2014-05-27 Richard Biener <rguenther@suse.de>
9991
9992 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
9993
9994 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9995
9996 PR libgcc/61152
9997 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
9998 * config/arm/arm-cores.def (License): Same.
9999 * config/arm/arm-opts.h (License): Same.
10000 * config/arm/aout.h (License): Same.
10001 * config/arm/bpabi.h (License): Same.
10002 * config/arm/elf.h (License): Same.
10003 * config/arm/linux-elf.h (License): Same.
10004 * config/arm/linux-gas.h (License): Same.
10005 * config/arm/netbsd-elf.h (License): Same.
10006 * config/arm/uclinux-eabi.h (License): Same.
10007 * config/arm/uclinux-elf.h (License): Same.
10008 * config/arm/vxworks.h (License): Same.
10009
10010 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10011
10012 * config/arm/neon.md (neon_bswap<mode>): New pattern.
10013 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
10014 (arm_init_neon_builtins): Handle NEON_BSWAP.
10015 Define required type nodes.
10016 (arm_expand_neon_builtin): Handle NEON_BSWAP.
10017 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
10018 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
10019 * config/arm/iterators.md (VDQHSD): New mode iterator.
10020
10021 2014-05-27 Richard Biener <rguenther@suse.de>
10022
10023 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
10024 Try using literal operands when comparing value-ranges failed.
10025
10026 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
10027
10028 * ira.c (commutative_operand): Adjust for change to recog_data.
10029 [Missing from previous commit.]
10030
10031 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
10032
10033 * system.h (TEST_BIT): New macro.
10034 * recog.h (alternative_mask): New type.
10035 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
10036 (recog_data_d): Replace alternative_enabled_p array with
10037 enabled_alternatives.
10038 (target_recog): New structure.
10039 (default_target_recog, this_target_recog): Declare.
10040 (get_enabled_alternatives, recog_init): Likewise.
10041 * recog.c (default_target_recog, this_target_recog): New variables.
10042 (get_enabled_alternatives): New function.
10043 (extract_insn): Use it.
10044 (recog_init): New function.
10045 (preprocess_constraints, constrain_operands): Adjust for change to
10046 recog_data.
10047 * postreload.c (reload_cse_simplify_operands): Likewise.
10048 * reload.c (find_reloads): Likewise.
10049 * ira-costs.c (record_reg_classes): Likewise.
10050 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
10051 all alternatives after a disabled one would be skipped.
10052 (ira_implicitly_set_insn_hard_regs): Likewise.
10053 * ira.c (ira_setup_alts): Adjust for change to recog_data.
10054 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
10055 with enabled_alternatives.
10056 * lra.c (free_insn_recog_data): Update accordingly.
10057 (lra_update_insn_recog_data): Likewise.
10058 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
10059 * lra-constraints.c (process_alt_operands): Likewise. Handle
10060 only_alternative as part of the enabled mask.
10061 * target-globals.h (this_target_recog): Declare.
10062 (target_globals): Add a recog field.
10063 (restore_target_globals): Restore this_target_recog.
10064 * target-globals.c: Include recog.h.
10065 (default_target_globals): Initialize recog field.
10066 (save_target_globals): Likewise.
10067 * reginfo.c (reinit_regs): Call recog_init.
10068 * toplev.c (backend_init_target): Likewise.
10069
10070 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
10071
10072 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
10073 rather than any named insn's code.
10074
10075 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
10076
10077 PR libgcc/61152
10078 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
10079 * config/arm/arm-cores.def (License): Same.
10080
10081 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
10082
10083 * tree.h (decl_comdat_group): Declare.
10084 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
10085 * tree.c (decl_comdat_group): Here.
10086
10087 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
10088
10089 PR rtl-optimization/61222
10090 * combine.c (simplify_shift_const_1): When moving a PLUS outside
10091 the shift, truncate the PLUS operand to the result mode.
10092
10093 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
10094
10095 PR target/61271
10096 * config/i386/i386.c (ix86_rtx_costs)
10097 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
10098 Fix condition.
10099
10100 2014-05-26 Martin Jambor <mjambor@suse.cz>
10101
10102 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
10103 subreg uses.
10104
10105 2014-05-26 Richard Biener <rguenther@suse.de>
10106
10107 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
10108 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
10109 Provide specializations.
10110 (wi::int_traits <HOST_WIDE_INT>,
10111 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
10112
10113 2014-05-26 Alan Modra <amodra@gmail.com>
10114
10115 PR target/61098
10116 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
10117 params and return a bool. Remove dead code. Update comment.
10118 Assert we have a const_int source. Remove bogus code from
10119 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
10120 handling of constants > 2G and reg_equal note, from..
10121 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
10122 return value. Update comment. If we can, use a new pseudo
10123 for intermediate calculations.
10124 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
10125 prototype.
10126 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
10127 call to rs6000_emit_set_const in splitter.
10128 (movdi_internal64+2, +3): Likewise.
10129
10130 2014-05-26 Richard Biener <rguenther@suse.de>
10131
10132 * system.h: Define __STDC_FORMAT_MACROS before
10133 including inttypes.h.
10134 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
10135 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
10136 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
10137 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
10138 HOST_WIDEST_INT_C): Remove.
10139 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
10140 if C99 inttypes.h is not available.
10141 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
10142 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
10143 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
10144 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
10145 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
10146 (struct output_info): Likewise.
10147 (print_statistics): Adjust.
10148 (dump_bitmap_statistics): Likewise.
10149 * bt-load.c (migrate_btr_defs): Print with PRId64.
10150 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
10151 (MAX_SAFE_MULTIPLIER): Adjust.
10152 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
10153 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
10154 dump_cgraph_node): Likewise.
10155 * final.c (dump_basic_block_info): Likewise.
10156 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
10157 * gcov.c (format_gcov): Likewise.
10158 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
10159 for calculation.
10160 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
10161 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
10162 (inline_small_functions, dump_overall_stats, dump_inline_stats):
10163 Use PRId64 for dumping.
10164 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
10165 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
10166 (add_allocno_hard_regs): Adjust.
10167 * loop-doloop.c (doloop_modify): Print using PRId64.
10168 * loop-iv.c (inverse): Compute in uint64_t.
10169 (determine_max_iter, iv_number_of_iterations): Likewise.
10170 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
10171 Print using PRId64.
10172 * lto-streamer-out.c (write_symbol): Use uint64_t.
10173 * mcf.c (CAP_INFINITY): Use int64_t maximum.
10174 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
10175 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
10176 * modulo-sched.c (const_iteration_count): Use int64_t.
10177 (sms_schedule): Dump using PRId64.
10178 * predict.c (dump_prediction): Likewise.
10179 * pretty-print.h (pp_widest_integer): Remove.
10180 * profile.c (get_working_sets, is_edge_inconsistent,
10181 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
10182 * tree-pretty-print.c (pp_double_int): Remove case handling
10183 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
10184 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
10185 and adjust users.
10186 (pass_optimize_bswap::execute): Remove restriction on hosts.
10187 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
10188 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
10189 * tree.c (widest_int_cst_value): Remove.
10190 * tree.h (widest_int_cst_value): Likewise.
10191 * value-prof.c (dump_histogram_value): Print using PRId64.
10192 * gengtype.c (main): Also inject int64_t.
10193 * ggc-page.c (struct max_alignment): Use int64_t.
10194 * alloc-pool.c (struct allocation_object_def): Likewise.
10195 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
10196 for computation.
10197 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
10198 * doc/tm.texi: Regenerated.
10199 * gengtype-lex.l (IWORD): Handle [u]int64_t.
10200 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
10201 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
10202 mmix_output_register_setting): Use [u]int64_t in prototypes.
10203 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
10204 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
10205 mmix_output_octa, mmix_output_shifted_value): Adjust.
10206 (mmix_intval): Adjust. Remove unreachable case.
10207 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
10208
10209 2014-05-26 Richard Biener <rguenther@suse.de>
10210
10211 * configure.ac: Drop __int64 type check. Insist that we
10212 found uint64_t and int64_t.
10213 * hwint.h (HOST_BITS_PER___INT64): Remove.
10214 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
10215 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
10216 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
10217 (HOST_WIDEST_FAST_INT): Remove __int64 case.
10218 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
10219 for dst_q_src_df_rms_cdt.
10220 * configure: Regenerate.
10221 * config.in: Likewise.
10222
10223 2014-05-26 Michael Tautschnig <mt@debian.org>
10224
10225 PR target/61249
10226 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
10227 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
10228
10229 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10230
10231 PR rtl-optimization/61278
10232 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
10233
10234 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10235
10236 PR rtl-optimization/61220
10237 Part of PR rtl-optimization/61225
10238 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
10239 insn; skip split_edge for a block with only one successor.
10240
10241 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10242
10243 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
10244 for variables.
10245
10246 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10247
10248 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
10249 (update_vtable_references): New function.
10250 (function_and_variable_visibility): Rewrite also vtable initializers.
10251 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
10252
10253 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10254
10255 * ggc.h (ggc_grow): New function.
10256 * ggc-none.c (ggc_grow): New function.
10257 * ggc-page.c (ggc_grow): Likewise.
10258
10259 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10260
10261 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
10262 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
10263 comdat_can_be_unshared_p, cgraph_externally_visible_p,
10264 varpool_externally_visible_p, can_replace_by_local_alias,
10265 update_visibility_by_resolution_info, function_and_variable_visibility,
10266 pass_data_ipa_function_and_variable_visibility,
10267 make_pass_ipa_function_and_variable_visibility,
10268 whole_program_function_and_variable_visibility,
10269 pass_data_ipa_whole_program_visibility,
10270 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
10271 * cgraph.h (cgraph_local_node_p): Declare.
10272 * ipa-visibility.c: New file.
10273 * Makefile.in (OBJS): Add ipa-visiblity.o
10274
10275 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10276
10277 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
10278 that var decl is available.
10279
10280 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10281
10282 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
10283 symtab_node pointer.
10284 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
10285 (find_decls_types_r): Do not walk COMDAT_GROUP.
10286 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
10287 * varasm.c (make_decl_one_only): Use set_comdat_group;
10288 create node if needed.
10289 * ipa-inline-transform.c (save_inline_function_body): Update
10290 way we decl->symtab mapping.
10291 * symtab.c (symtab_hash, hash_node, eq_node
10292 symtab_insert_node_to_hashtable): Remove.
10293 (symtab_register_node): Update.
10294 (symtab_unregister_node): Update.
10295 (symtab_get_node): Reimplement as inline function.
10296 (symtab_add_to_same_comdat_group): Update.
10297 (symtab_dissolve_same_comdat_group_list): Update.
10298 (dump_symtab_base): Update.
10299 (verify_symtab_base): Update.
10300 (symtab_make_decl_local): Update.
10301 (fixup_same_cpp_alias_visibility): Update.
10302 (symtab_nonoverwritable_alias): Update.
10303 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
10304 * ipa.c (update_visibility_by_resolution_info): UPdate.
10305 * bb-reorder.c: Include cgraph.h
10306 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
10307 with comdat groups.
10308 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
10309 * cgraph.c (cgraph_get_create_node): Update.
10310 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
10311 and comdat_group_.
10312 (symtab_get_node): Make inline.
10313 (symtab_insert_node_to_hashtable): Remove.
10314 (symtab_can_be_discarded): Update.
10315 (decl_comdat_group): New function.
10316 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
10317 Update.
10318 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
10319 comdat group name.
10320 (read_comdat_group): New function.
10321 (input_node, input_varpool_node): Use it.
10322 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
10323 comdat groups.
10324 * mips.c (mips_start_unique_function): Likewise.
10325 (ix86_code_end): Likewise.
10326 (rs6000_code_end): Likweise.
10327 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
10328
10329 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10330
10331 * gengtype-state.c (fatal_reading_state): Bring offline.
10332 * optabs.c (widening_optab_handler): Bring offline.
10333 * optabs.h (widening_optab_handler): Likewise.
10334 * final.c (get_attr_length_1): Likewise.
10335
10336 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10337
10338 * sched-int.h (sd_iterator_cond): Manually tail recurse.
10339
10340 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10341
10342 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
10343 (ppc440-compare): Include shift with dot.
10344 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
10345 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
10346 without dot.
10347 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
10348 without dot.
10349 (e6500_sfx2): Include it.
10350 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
10351 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
10352 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
10353 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
10354 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
10355 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
10356 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
10357 *lshiftrt_internal1le, *lshiftrt_internal1be,
10358 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
10359 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
10360 *rotldi3_internal10le, *rotldi3_internal10be,
10361 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
10362 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
10363 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
10364 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
10365 define_insns): Use type "shift" in the appropriate alternatives.
10366
10367 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10368
10369 * config/rs6000/rs6000.md (type): Add "logical". Delete
10370 "fast_compare".
10371 (dot): Adjust comment.
10372 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
10373 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
10374 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
10375 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
10376 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
10377 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
10378 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
10379 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
10380
10381 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10382 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
10383 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10384 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10385 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10386 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10387 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10388 * config/rs6000/8540.md (ppc8540_su): Adjust.
10389 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10390 cell-cmp-microcoded): Adjust.
10391 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
10392 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10393 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
10394 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
10395 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
10396 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10397 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
10398 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
10399 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
10400 Adjust.
10401 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
10402 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
10403 Adjust. Adjust comment.
10404 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10405 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
10406
10407 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10408
10409 * config/rs6000/rs6000.md (type): Add "add".
10410 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
10411 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
10412 define_insns): Use it.
10413 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
10414
10415 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10416 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
10417 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10418 * config/rs6000/601.md (ppc601-integer): Adjust.
10419 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10420 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10421 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10422 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10423 * config/rs6000/8540.md (ppc8540_su): Adjust.
10424 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10425 cell-cmp-microcoded): Adjust.
10426 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
10427 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10428 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
10429 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
10430 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
10431 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10432 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
10433 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
10434 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
10435 Adjust.
10436 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
10437 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
10438 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10439 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
10440
10441 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10442
10443 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
10444 "delayed_compare", "var_delayed_compare".
10445 (var_shift): New attribute.
10446 (cell_micro): Adjust.
10447 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
10448 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
10449 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
10450 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10451 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10452 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10453 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10454 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
10455 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
10456 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
10457 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
10458 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
10459 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
10460 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
10461 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
10462 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
10463 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
10464 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
10465 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
10466 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
10467 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
10468 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
10469 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
10470 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10471 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10472
10473 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10474 * config/rs6000/440.md (ppc440-integer): Adjust.
10475 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10476 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
10477 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10478 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10479 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10480 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10481 * config/rs6000/8540.md (ppc8540_su): Adjust.
10482 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10483 cell-cmp-microcoded): Adjust.
10484 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
10485 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10486 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
10487 e500mc64_delayed): Adjust.
10488 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
10489 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
10490 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10491 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
10492 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
10493 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
10494 power6-delayed-compare, power6-var-delayed-compare): Adjust.
10495 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
10496 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
10497 Adjust comment.
10498 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10499 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
10500
10501 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10502
10503 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
10504 (bits): New mode_attr.
10505 (idiv_ldiv): Delete mode_attr.
10506 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
10507 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10508 rs6000_adjust_priority, is_nonpipeline_insn,
10509 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10510
10511 * config/rs6000/40x.md (ppc403-idiv): Adjust.
10512 * config/rs6000/440.md (ppc440-idiv): Adjust.
10513 * config/rs6000/476.md (ppc476-idiv): Adjust.
10514 * config/rs6000/601.md (ppc601-idiv): Adjust.
10515 * config/rs6000/603.md (ppc603-idiv): Adjust.
10516 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
10517 ppc620-ldiv): Adjust.
10518 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
10519 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
10520 * config/rs6000/8540.md (ppc8540_divide): Adjust.
10521 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
10522 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
10523 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
10524 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
10525 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
10526 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
10527 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
10528 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
10529 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
10530 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
10531 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
10532 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
10533 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
10534 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
10535 * config/rs6000/titan.md (titan_fxu_div): Adjust.
10536
10537 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10538
10539 * config/rs6000/rs6000.md (type): Delete "insert_word",
10540 "insert_dword". Add "insert".
10541 (size): Update comment.
10542 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10543 insn_must_be_first_in_group): Adjust.
10544 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
10545 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
10546 *insvsi_internal6, insvdi_internal): Adjust.
10547
10548 * config/rs6000/40x.md (ppc403-integer): Adjust.
10549 * config/rs6000/440.md (ppc440-integer): Adjust.
10550 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
10551 * config/rs6000/601.md (ppc601-integer): Adjust.
10552 * config/rs6000/603.md (ppc603-integer): Adjust.
10553 * config/rs6000/6xx.md (ppc604-integer): Adjust.
10554 * config/rs6000/7450.md (ppc7450-integer): Adjust.
10555 * config/rs6000/7xx.md (ppc750-integer): Adjust.
10556 * config/rs6000/8540.md (ppc8540_su): Adjust.
10557 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
10558 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
10559 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10560 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
10561 * config/rs6000/e5500.md (e5500_sfx): Adjust.
10562 * config/rs6000/e6500.md (e6500_sfx): Adjust.
10563 * config/rs6000/mpc.md (mpccore-integer): Adjust.
10564 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
10565 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
10566 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
10567 * config/rs6000/power7.md (power7-integer): Adjust.
10568 * config/rs6000/power8.md (power8-1cyc): Adjust.
10569 * config/rs6000/rs64.md (rs64a-integer): Adjust.
10570 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
10571
10572 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10573
10574 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
10575 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
10576 (size): New attribute.
10577 (dot): New attribute.
10578 (cell_micro): Adjust.
10579 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
10580 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
10581 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
10582 umuldi3_highpart): Adjust.
10583 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10584 rs6000_adjust_priority, is_nonpipeline_insn,
10585 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10586
10587 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
10588 ppc405-imul3): Adjust.
10589 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
10590 * config/rs6000/476.md (ppc476-imul): Adjust.
10591 * config/rs6000/601.md (ppc601-imul): Adjust.
10592 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
10593 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
10594 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
10595 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
10596 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
10597 Adjust.
10598 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
10599 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
10600 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
10601 cell-imul): Adjust.
10602 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
10603 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
10604 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
10605 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
10606 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
10607 * config/rs6000/mpc.md (mpccore-imul): Adjust.
10608 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
10609 power4-lmul, power4-imul, power4-imul3): Adjust.
10610 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
10611 power5-lmul, power5-imul, power5-imul3): Adjust.
10612 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
10613 power6-lmul, power6-imul, power6-imul3): Adjust.
10614 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
10615 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
10616
10617 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
10618 rs64a-lmul): Adjust.
10619 * config/rs6000/titan.md (titan_imul): Adjust.
10620
10621 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10622
10623 * config/rs6000/rs6000.md (type): Add new value "halfmul".
10624 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
10625 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
10626 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
10627 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
10628 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
10629 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
10630 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
10631 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
10632 * config/rs6000/titan.md: Delete nonsensical comment.
10633 (titan_imul): Add type imul3.
10634 (titan_mulhw): Remove type imul3; add type halfmul.
10635
10636 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10637
10638 * config/rs6000/rs6000.md (type): Reorder, reformat.
10639
10640 2014-05-23 Martin Jambor <mjambor@suse.cz>
10641
10642 PR tree-optimization/53787
10643 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
10644 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
10645 analysis_done, update all uses.
10646 * ipa-prop.c: Include domwalk.h
10647 (param_analysis_info): Removed.
10648 (param_aa_status): New type.
10649 (ipa_bb_info): Likewise.
10650 (func_body_info): Likewise.
10651 (ipa_get_bb_info): New function.
10652 (aa_overwalked): Likewise.
10653 (find_dominating_aa_status): Likewise.
10654 (parm_bb_aa_status_for_bb): Likewise.
10655 (parm_preserved_before_stmt_p): Changed to use new param AA info.
10656 (load_from_unmodified_param): Accept func_body_info as a parameter
10657 instead of parms_ainfo.
10658 (parm_ref_data_preserved_p): Changed to use new param AA info.
10659 (parm_ref_data_pass_through_p): Likewise.
10660 (ipa_load_from_parm_agg_1): Likewise. Update callers.
10661 (compute_complex_assign_jump_func): Changed to use new param AA info.
10662 (compute_complex_ancestor_jump_func): Likewise.
10663 (ipa_compute_jump_functions_for_edge): Likewise.
10664 (ipa_compute_jump_functions): Removed.
10665 (ipa_compute_jump_functions_for_bb): New function.
10666 (ipa_analyze_indirect_call_uses): Likewise, moved variable
10667 declarations down.
10668 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
10669 and info, moved variable declarations down.
10670 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
10671 node and info.
10672 (ipa_analyze_stmt_uses): Likewise.
10673 (ipa_analyze_params_uses): Removed.
10674 (ipa_analyze_params_uses_in_bb): New function.
10675 (ipa_analyze_controlled_uses): Likewise.
10676 (free_ipa_bb_info): Likewise.
10677 (analysis_dom_walker): New class.
10678 (ipa_analyze_node): Handle node-specific forbidden analysis,
10679 initialize and free func_body_info, use dominator walker.
10680 (ipcp_modif_dom_walker): New class.
10681 (ipcp_transform_function): Create and free func_body_info, use
10682 ipcp_modif_dom_walker, moved a lot of functionality there.
10683
10684 2014-05-23 Marek Polacek <polacek@redhat.com>
10685 Jakub Jelinek <jakub@redhat.com>
10686
10687 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
10688 * gcc.c (sanitize_spec_function): Likewise.
10689 * convert.c (convert_to_integer): Include "ubsan.h". Add
10690 floating-point to integer instrumentation.
10691 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
10692 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
10693 SANITIZE_NONDEFAULT.
10694 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
10695 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
10696 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
10697 * ubsan.c: Include "realmpfr.h" and "dfp.h".
10698 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
10699 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
10700 float/double/long double.
10701 (ubsan_instrument_float_cast): New function.
10702 * ubsan.h (ubsan_instrument_float_cast): Declare.
10703
10704 2014-05-23 Jiong Wang <jiong.wang@arm.com>
10705
10706 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
10707 predicate.
10708 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
10709 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
10710 Adjust for tailcalling through registers.
10711 * config/aarch64/aarch64.h (enum reg_class): New caller save
10712 register class.
10713 (REG_CLASS_NAMES): Likewise.
10714 (REG_CLASS_CONTENTS): Likewise.
10715 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
10716 Allow tailcalling without decls.
10717
10718 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10719
10720 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10721 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
10722
10723 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
10724 gsi, and variables v_* to v*.
10725
10726 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
10727
10728 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
10729
10730 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10731
10732 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
10733 * omp-low.c: Update accordingly.
10734
10735 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
10736 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
10737 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
10738 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
10739 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
10740 GF_OMP_TARGET_KIND_UPDATE.
10741
10742 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10743 Explicitly enumerate the expected region types.
10744
10745 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
10746
10747 PR other/56955
10748 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
10749 documentation; the old documentation didn't clearly state the
10750 constraints on the contents of the pointed-to storage.
10751
10752 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10753
10754 Fix bootstrap error on ia64
10755 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
10756 Return default value.
10757
10758 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
10759
10760 PR tree-optimization/54733
10761 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
10762 (CMPNOP): Define.
10763 (find_bswap_or_nop_load): New.
10764 (find_bswap_1): Renamed to ...
10765 (find_bswap_or_nop_1): This. Also add support for memory source.
10766 (find_bswap): Renamed to ...
10767 (find_bswap_or_nop): This. Also add support for memory source and
10768 detection of bitwise operations equivalent to load in target
10769 endianness.
10770 (execute_optimize_bswap): Likewise. Also move its leading comment back
10771 in place and split statement transformation into ...
10772 (bswap_replace): This.
10773
10774 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10775
10776 PR rtl-optimization/61215
10777 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
10778 simplify_gen_subreg until final substitution.
10779
10780 2014-05-23 Alan Modra <amodra@gmail.com>
10781
10782 PR target/61231
10783 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
10784 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
10785 Use "Y" constraint rather than "m".
10786
10787 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10788
10789 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
10790 define.
10791 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
10792 New function declaration.
10793 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
10794 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
10795 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
10796 (aarch64_init_builtins) : Initialize builtins
10797 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10798 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10799 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
10800 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
10801 and __builtins_aarch64_set_fpsr.
10802 (aarch64_atomic_assign_expand_fenv): New function.
10803 * config/aarch64/aarch64.md (set_fpcr): New pattern.
10804 (get_fpcr) : Likewise.
10805 (set_fpsr) : Likewise.
10806 (get_fpsr) : Likewise.
10807 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
10808 and UNSPECV_SET_FPSR.
10809 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10810 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10811 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10812
10813 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10814
10815 PR rtl-optimization/60969
10816 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
10817 constraints. Set up mem cost for NO_REGS case.
10818
10819 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10820
10821 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
10822
10823 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
10824
10825 * config/darwin.c: Include "lto-section-names.h".
10826 (LTO_SEGMENT_NAME): Don't define.
10827 * config/i386/winnt.c: Include "lto-section-names.h".
10828 * lto-streamer.c: Include "lto-section-names.h".
10829 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
10830 * lto-wrapper.c: Include "lto-section-names.h".
10831 (LTO_SECTION_NAME_PREFIX): Don't define.
10832 * lto-section-names.h: New file.
10833 * cgraphunit.c: Include "lto-section-names.h".
10834
10835 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
10836
10837 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
10838
10839 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
10840
10841 PR target/61208
10842 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
10843
10844 2014-05-22 Nick Clifton <nickc@redhat.com>
10845
10846 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
10847
10848 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
10849
10850 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
10851 -> (T)A transformation to integer types.
10852
10853 2014-05-22 Teresa Johnson <tejohnson@google.com>
10854
10855 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
10856 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
10857 (gcov_rewrite): Use gcov_nonruntime_assert.
10858 (gcov_open): Ditto.
10859 (gcov_write_words): Ditto.
10860 (gcov_write_length): Ditto.
10861 (gcov_read_words): Use gcov_nonruntime_assert, and remove
10862 gcc_assert from IN_LIBGCOV code.
10863 (gcov_read_summary): Use gcov_error to flag profile corruption.
10864 (gcov_sync): Use gcov_nonruntime_assert.
10865 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
10866 (gcov_histo_index): Use gcov_nonruntime_assert.
10867 (static void gcov_histogram_merge): Ditto.
10868 (compute_working_sets): Ditto.
10869 * gcov-io.h (gcov_nonruntime_assert): Define.
10870 (gcov_error): Define for !IN_LIBGCOV
10871
10872 2014-05-22 Richard Biener <rguenther@suse.de>
10873
10874 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10875 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
10876 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
10877 and deallocation site.
10878 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10879 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
10880 passing through the incoming points-to set.
10881 (handle_lhs_call): Use flags argument instead of recomputing it.
10882 (find_func_aliases_for_call): Call handle_lhs_call with proper
10883 call return flags.
10884
10885 2014-05-22 Jakub Jelinek <jakub@redhat.com>
10886
10887 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
10888 all padding bits in REAL_VALUE_TYPE are cleared.
10889
10890 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10891
10892 Cleanup and improve multipass_dfa_lookahead_guard
10893 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
10894 (core2i7_first_cycle_multipass_begin,)
10895 (core2i7_first_cycle_multipass_issue,)
10896 (core2i7_first_cycle_multipass_backtrack): Update signature.
10897 * config/ia64/ia64.c
10898 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
10899 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
10900 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
10901 hook definition.
10902 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
10903 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
10904 values.
10905 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
10906 return values.
10907 * doc/tm.texi: Regenerate.
10908 * doc/tm.texi.in
10909 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
10910 * haifa-sched.c (ready_try): Make signed to allow negative values.
10911 (rebug_ready_list_1): Update.
10912 (choose_ready): Simplify.
10913 (sched_extend_ready_list): Update.
10914
10915 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10916
10917 Remove IA64 speculation tweaking flags
10918 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
10919 speculation tuning flags.
10920 (msched-prefer-non-data-spec-insns,)
10921 (msched-prefer-non-control-spec-insns): Obsolete options.
10922 * haifa-sched.c (choose_ready): Remove handling of
10923 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10924 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
10925 and PREFER_NON_DATA_SPEC.
10926 * sel-sched.c (process_spec_exprs): Remove handling of
10927 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10928
10929 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10930
10931 Improve scheduling debug output
10932 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
10933 (advance_one_cycle): Update.
10934 (schedule_insn, queue_to_ready): Add debug printouts.
10935 (debug_ready_list_1): New static function.
10936 (debug_ready_list): Update.
10937 (max_issue): Add debug printouts.
10938 (dump_insn_stream): New static function.
10939 (schedule_block): Use it. Also better indent printouts.
10940
10941 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10942
10943 Fix sched_insn debug counter
10944 * haifa-sched.c (schedule_insn): Update.
10945 (struct haifa_saved_data): Add nonscheduled_insns_begin.
10946 (save_backtrack_point, restore_backtrack_point): Update.
10947 (first_nonscheduled_insn): New static function.
10948 (queue_to_ready, choose_ready): Use it.
10949 (schedule_block): Init nonscheduled_insns_begin.
10950 (sched_emit_insn): Update.
10951
10952
10953 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
10954
10955 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
10956 to GENERAL_REGS.
10957 (aarch64_secondary_reload) : LikeWise.
10958 (aarch64_class_max_nregs) : Remove CORE_REGS.
10959 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
10960 (REG_CLASS_NAMES) : Likewise.
10961 (REG_CLASS_CONTENTS) : LikeWise.
10962 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
10963
10964 2014-05-21 Guozhi Wei <carrot@google.com>
10965
10966 PR target/61202
10967 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
10968 constraint.
10969 (vqdmulhq_n_s16): Likewise.
10970
10971 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10972
10973 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
10974
10975 2014-05-21 Marek Polacek <polacek@redhat.com>
10976
10977 PR sanitizer/61272
10978 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
10979
10980 2014-05-21 Martin Jambor <mjambor@suse.cz>
10981
10982 * doc/invoke.texi (Optimize Options): Document parameters
10983 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
10984 ipa-cp-array-index-hint-bonus.
10985
10986 2014-05-21 Mark Wielaard <mjw@redhat.com>
10987
10988 PR debug/16063
10989 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
10990 version >= 3 or not strict DWARF.
10991 * langhooks.h (struct lang_hooks_for_types): Add
10992 enum_underlying_base_type.
10993 * langhooks.c (lhd_enum_underlying_base_type): New function.
10994 * gcc/langhooks.h (struct lang_hooks_for_types): Add
10995 enum_underlying_base_type.
10996 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
10997 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
10998 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
10999
11000 2014-05-21 Richard Biener <rguenther@suse.de>
11001
11002 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
11003
11004 2014-05-21 John Marino <gnugcc@marino.st>
11005
11006 * config.gcc (*-*-dragonfly*): New target.
11007 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
11008 * configure: Regenerate.
11009 * config/dragonfly-stdint.h: New.
11010 * config/dragonfly.h: New.
11011 * config/dragonfly.opt: New.
11012 * config/i386/dragonfly.h: New.
11013 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
11014
11015 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
11016
11017 * tree.def (VOID_CST): New.
11018 * tree-core.h (TI_VOID): New.
11019 * tree.h (void_node): New.
11020 * tree.c (tree_node_structure_for_code, tree_code_size)
11021 (iterative_hash_expr): Handle VOID_CST.
11022 (build_common_tree_nodes): Initialize void_node.
11023
11024 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
11025
11026 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
11027 functions.
11028 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
11029
11030 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
11031 more places.
11032
11033 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
11034 flag_reorder_blocks_and_partition.
11035 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
11036
11037 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
11038
11039 PR target/54236
11040 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
11041 constraints.
11042 (*addc_r_t): Add new insn_and_split.
11043
11044 2014-05-21 Jakub Jelinek <jakub@redhat.com>
11045
11046 PR middle-end/61252
11047 * omp-low.c (handle_simd_reference): New function.
11048 (lower_rec_input_clauses): Use it. Defer adding reference
11049 initialization even for reduction without placeholder if in simd,
11050 handle it properly later on.
11051
11052 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11053
11054 PR tree-optimization/60899
11055 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
11056 assume all static symbols will have definition wile parsing and
11057 check the do have definition later in compilation; check that
11058 variable referring symbol will be output before concluding that
11059 reference is safe; be conservative for referring local statics;
11060 be more precise about when comdat is output in other partition.
11061
11062 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11063
11064 PR bootstrap/60984
11065 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
11066 parameter.
11067 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
11068 (ipa_inline): Loop inline_to_all_callers until no more aliases
11069 are removed.
11070
11071 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11072
11073 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
11074 set writeonly flag only for vars actually written to.
11075
11076 2014-05-20 Dehao Chen <dehao@google.com>
11077
11078 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
11079 and callee count to get clone count.
11080 * tree-inline.c (expand_call_inline): Use callee count instead of bb
11081 count in copy_body.
11082
11083 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
11084
11085 PR rtl-optimization/61243
11086 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
11087
11088 2014-05-20 Xinliang David Li <davidxl@google.com>
11089
11090 * cgraphunit.c (walk_polymorphic_call_targets): Add
11091 dbgcnt and fopt-info support.
11092 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
11093 * ipa-devirt.c (ipa_devirt): Ditto.
11094 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
11095 * ipa.c (walk_polymorphic_call_targets): Ditto.
11096 * gimple-fold.c (fold_gimple_assign): Ditto.
11097 (gimple_fold_call): Ditto.
11098 * dbgcnt.def: New counter.
11099
11100 2014-05-20 DJ Delorie <dj@redhat.com>
11101
11102 * config/msp430/msp430.md (split): Don't allow subregs when
11103 splitting SImode adds.
11104 (andneghi): Fix subtraction logic.
11105 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
11106
11107 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11108
11109 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
11110 symbols.
11111 * except.c (switch_to_exception_section, resolve_unique_section,
11112 get_named_text_section, default_function_rodata_section,
11113 align_variable, get_block_for_decl, default_section_type_flags):
11114 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
11115 * symtab.c (symtab_add_to_same_comdat_group,
11116 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
11117 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
11118 Likewise.
11119 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
11120 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
11121 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
11122 (c6x_function_in_section_p): Likewise.
11123 * config/darwin.c (machopic_select_section): Likewise.
11124 * config/arm/arm.c (arm_function_in_section_p): Likewise.
11125 * config/mips/mips.c (mips_function_rodata_section): Likewise.
11126 * config/mep/mep.c (mep_select_section): LIkewise.
11127 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
11128
11129 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
11130
11131 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
11132 EH region of calls to pure functions that can throw an exception.
11133 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
11134 (copy_reference_ops_from_call): Also copy the EH region of the call if
11135 it can throw an exception.
11136
11137 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11138
11139 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
11140 nested VEC_SELECTs that are inverses of each other.
11141
11142 2014-05-20 Richard Biener <rguenther@suse.de>
11143
11144 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
11145 (extract_and_process_scc_for_name): not here.
11146 (cond_dom_walker::before_dom_children): Only process
11147 stmts that end the BB in interesting ways.
11148 (run_scc_vn): Mark param uses as visited.
11149
11150 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11151
11152 * config/arm/arm.md (arith_shiftsi): Do not predicate for
11153 arm_restrict_it.
11154
11155 2014-05-20 Nick Clifton <nickc@redhat.com>
11156
11157 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
11158 (msp430_gimplify_va_arg_expr): New function.
11159 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
11160
11161 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
11162 operand 0 in order to prevent confusion about the number of
11163 registers involved.
11164
11165 2014-05-20 Richard Biener <rguenther@suse.de>
11166
11167 PR tree-optimization/61221
11168 * tree-ssa-pre.c (el_to_update): Remove.
11169 (eliminate_dom_walker::before_dom_children): Handle released
11170 VDEFs by value-numbering them to the associated VUSE. Update
11171 stmt immediately for substituted call address.
11172 (eliminate): Remove delayed stmt updating code.
11173 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
11174 possibly late re-numbered vuses.
11175 (vn_reference_lookup_2): Adjust.
11176 (vn_reference_lookup_pieces): Likewise.
11177 (vn_reference_lookup): Likewise.
11178
11179 2014-05-20 Richard Biener <rguenther@suse.de>
11180
11181 * config.gcc: Remove need_64bit_hwint.
11182 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
11183 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
11184 it to be true.
11185 * config.in: Regenerate.
11186 * configure: Likewise.
11187
11188 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
11189
11190 * doc/extend.texi: Create Label Attributes section,
11191 move all label attributes into it and reference it.
11192
11193 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
11194
11195 * arm.c (thumb1_reorg): When scanning backwards skip anything
11196 that's not a proper insn.
11197
11198 2014-05-19 Richard Biener <rguenther@suse.de>
11199
11200 PR tree-optimization/61221
11201 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11202 Do nothing for unreachable blocks.
11203 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
11204 Improve unreachability detection.
11205
11206 2014-05-19 Richard Biener <rguenther@suse.de>
11207
11208 PR tree-optimization/61209
11209 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
11210
11211 2014-05-19 Nick Clifton <nickc@redhat.com>
11212
11213 * except.c (init_eh): Fix computation of builtin setjmp buffer
11214 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
11215
11216 2014-05-19 Richard Biener <rguenther@suse.de>
11217
11218 PR tree-optimization/61184
11219 * tree-vrp.c (is_negative_overflow_infinity): Use
11220 TREE_OVERFLOW_P and do that check first.
11221 (is_positive_overflow_infinity): Likewise.
11222 (is_overflow_infinity): Likewise.
11223 (vrp_operand_equal_p): Properly treat operands with
11224 differing overflow as not equal.
11225
11226 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
11227
11228 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
11229 shift simplification where it was intended.
11230
11231 2014-05-19 Christian Bruel <christian.bruel@st.com>
11232
11233 PR target/61195
11234 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
11235
11236 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
11237
11238 PR target/61084
11239 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
11240 than wide_int.
11241
11242 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
11243
11244 * reg-notes.def (CROSSING_JUMP): Likewise.
11245 * rtl.h (rtx_def): Update comment for jump flag.
11246 (CROSSING_JUMP_P): Define.
11247 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
11248 of a REG_CROSSING_JUMP note.
11249 * cfghooks.c (tidy_fallthru_edges): Likewise.
11250 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
11251 * emit-rtl.c (try_split): Likewise.
11252 * haifa-sched.c (sched_create_recovery_edges): Likewise.
11253 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
11254 * jump.c (redirect_jump_2): Likewise.
11255 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
11256 (relax_delay_slots): Likewise.
11257 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
11258 (bbit_di): Likewise.
11259 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
11260 * config/sh/sh.md (jump_compact): Likewise.
11261 * bb-reorder.c (rotate_loop): Likewise.
11262 (pass_duplicate_computed_gotos::execute): Likewise.
11263 (add_reg_crossing_jump_notes): Rename to...
11264 (update_crossing_jump_flags): ...this.
11265 (pass_partition_blocks::execute): Update accordingly.
11266
11267 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
11268
11269 * tree.h: Remove extraneous template <>.
11270
11271 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11272
11273 * ipa.c (symtab_remove_unreachable_nodes): Remove
11274 symbol from comdat group if its body was eliminated.
11275 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
11276 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
11277 (symtab_unregister_node): ... this one.
11278 (verify_symtab_base): More strict checking of comdats.
11279 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
11280
11281 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11282
11283 * tree-pass.h (make_pass_ipa_comdats): New pass.
11284 * timevar.def (TV_IPA_COMDATS): New timevar.
11285 * passes.def (pass_ipa_comdats): Add.
11286 * Makefile.in (OBJS): Add ipa-comdats.o
11287 * ipa-comdats.c: New file.
11288
11289 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11290
11291 * ipa.c (update_visibility_by_resolution_info): New function.
11292 (function_and_variable_visibility): Use it.
11293
11294 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11295
11296 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
11297 New functions.
11298 (FOR_EACH_DEFINED_SYMBOL): New macro.
11299 (varpool_first_static_initializer, varpool_next_static_initializer,
11300 varpool_first_defined_variable, varpool_next_defined_variable):
11301 Fix comments.
11302 (symtab_in_same_comdat_p): Correctly deal with inline functions.
11303
11304 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11305
11306 * ggc-page.c (ggc_handle_finalizers): Add comment.
11307
11308 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11309
11310 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
11311 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
11312 (ggc_internal_cleared_alloc): Likewise.
11313 * ggc-page.c (finalizer): New class.
11314 (vec_finalizer): Likewise.
11315 (globals::finalizers): New member.
11316 (globals::vec_finalizers): Likewise.
11317 (ggc_internal_alloc): Record the finalizer if any for the block being
11318 allocated.
11319 (ggc_handle_finalizers): New function.
11320 (ggc_collect): Call ggc_handle_finalizers.
11321 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
11322 finalizer.
11323 (ggc_internal_cleared_alloc): Likewise.
11324 (finalize): New function.
11325 (need_finalization_p): Likewise.
11326 (ggc_alloc): Install the type's destructor as the finalizer if it
11327 might do something.
11328 (ggc_cleared_alloc): Likewise.
11329 (ggc_vec_alloc): Likewise.
11330 (ggc_cleared_vec_alloc): Likewise.
11331
11332 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11333
11334 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
11335
11336 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11337
11338 * alias.c (record_alias_subset): Adjust.
11339 * bitmap.c (bitmap_element_allocate): Likewise.
11340 (bitmap_gc_alloc_stat): Likewise.
11341 * cfg.c (init_flow): Likewise.
11342 (alloc_block): Likewise.
11343 (unchecked_make_edge): Likewise.
11344 * cfgloop.c (alloc_loop): Likewise.
11345 (flow_loops_find): Likewise.
11346 (rescan_loop_exit): Likewise.
11347 * cfgrtl.c (init_rtl_bb_info): Likewise.
11348 * cgraph.c (insert_new_cgraph_node_version): Likewise.
11349 (cgraph_allocate_node): Likewise.
11350 (cgraph_create_edge_1): Likewise.
11351 (cgraph_allocate_init_indirect_info): Likewise.
11352 * cgraphclones.c (cgraph_clone_edge): Likewise.
11353 * cgraphunit.c (add_asm_node): Likewise.
11354 (init_lowered_empty_function): Likewise.
11355 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
11356 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
11357 (alpha_use_linkage): Likewise.
11358 * config/arc/arc.c (arc_init_machine_status): Likewise.
11359 * config/arm/arm.c (arm_init_machine_status): Likewise.
11360 * config/avr/avr.c (avr_init_machine_status): Likewise.
11361 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
11362 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
11363 * config/cris/cris.c (cris_init_machine_status): Likewise.
11364 * config/darwin.c (machopic_indirection_name): Likewise.
11365 (darwin_build_constant_cfstring): Likewise.
11366 (darwin_enter_string_into_cfstring_table): Likewise.
11367 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
11368 * config/frv/frv.c (frv_init_machine_status): Likewise.
11369 * config/i386/i386.c (get_dllimport_decl): Likewise.
11370 (ix86_init_machine_status): Likewise.
11371 (assign_386_stack_local): Likewise.
11372 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
11373 (i386_pe_maybe_record_exported_symbol): Likewise.
11374 (i386_pe_record_stub): Likewise.
11375 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
11376 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
11377 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
11378 (m32c_note_pragma_address): Likewise.
11379 * config/mep/mep.c (mep_init_machine_status): Likewise.
11380 (mep_note_pragma_flag): Likewise.
11381 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
11382 (mips16_local_alias): Likewise.
11383 (mips_init_machine_status): Likewise.
11384 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
11385 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
11386 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
11387 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
11388 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
11389 * config/pa/pa.c (pa_init_machine_status): Likewise.
11390 (pa_get_deferred_plabel): Likewise.
11391 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
11392 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
11393 (rs6000_init_machine_status): Likewise.
11394 (output_toc): Likewise.
11395 * config/s390/s390.c (s390_init_machine_status): Likewise.
11396 * config/score/score.c (score_output_external): Likewise.
11397 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
11398 * config/spu/spu.c (spu_init_machine_status): Likewise.
11399 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
11400 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
11401 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11402 * coverage.c (coverage_end_function): Likewise.
11403 * dbxout.c (dbxout_init): Likewise.
11404 * doc/gty.texi: Don't mention variable_size attribute.
11405 * dwarf2cfi.c (new_cfi): Adjust.
11406 (new_cfi_row): Likewise.
11407 (copy_cfi_row): Likewise.
11408 (create_cie_data): Likewise.
11409 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
11410 (new_loc_descr): Likewise.
11411 (find_AT_string_in_table): Likewise.
11412 (add_addr_table_entry): Likewise.
11413 (new_die): Likewise.
11414 (add_var_loc_to_decl): Likewise.
11415 (clone_die): Likewise.
11416 (clone_as_declaration): Likewise.
11417 (break_out_comdat_types): Likewise.
11418 (new_loc_list): Likewise.
11419 (add_loc_descr_to_each): Likewise.
11420 (add_location_or_const_value_attribute): Likewise.
11421 (add_linkage_name): Likewise.
11422 (lookup_filename): Likewise.
11423 (dwarf2out_var_location): Likewise.
11424 (new_line_info_table): Likewise.
11425 (dwarf2out_init): Likewise.
11426 (mem_loc_descriptor): Likewise.
11427 (loc_descriptor): Likewise.
11428 (add_const_value_attribute): Likewise.
11429 (tree_add_const_value_attribute): Likewise.
11430 (comp_dir_string): Likewise.
11431 (dwarf2out_vms_debug_main_pointer): Likewise.
11432 (string_cst_pool_decl): Likewise.
11433 * emit-rtl.c (set_mem_attrs): Likewise.
11434 (get_reg_attrs): Likewise.
11435 (start_sequence): Likewise.
11436 (init_emit): Likewise.
11437 (init_emit_regs): Likewise.
11438 * except.c (init_eh_for_function): Likewise.
11439 (gen_eh_region): Likewise.
11440 (gen_eh_region_catch): Likewise.
11441 (gen_eh_landing_pad): Likewise.
11442 (add_call_site): Likewise.
11443 * function.c (add_frame_space): Likewise.
11444 (insert_temp_slot_address): Likewise.
11445 (assign_stack_temp_for_type): Likewise.
11446 (get_hard_reg_initial_val): Likewise.
11447 (allocate_struct_function): Likewise.
11448 (prepare_function_start): Likewise.
11449 (types_used_by_var_decl_insert): Likewise.
11450 * gengtype.c (variable_size_p): Remove function.
11451 (enum alloc_quantity): Remove enum.
11452 (write_typed_alloc_def): Remove function.
11453 (write_typed_struct_alloc_def): Likewise.
11454 (write_typed_typedef_alloc_def): Likewise.
11455 (write_typed_alloc_defns): Likewise.
11456 (main): Adjust.
11457 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
11458 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
11459 * ggc.h (ggc_alloc): new function.
11460 (ggc_cleared_alloc): Likewise.
11461 (ggc_vec_alloc): Template on type of vector element, and remove
11462 element size argument.
11463 (ggc_cleared_vec_alloc): Likewise.
11464 * gimple.c (gimple_build_omp_for): Adjust.
11465 (gimple_copy): Likewise.
11466 * ipa-cp.c (get_replacement_map): Likewise.
11467 (find_aggregate_values_for_callers_subset): Likewise.
11468 (known_aggs_to_agg_replacement_list): Likewise.
11469 * ipa-devirt.c (get_odr_type): Likewise.
11470 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
11471 (read_agg_replacement_chain): Likewise.
11472 * loop-iv.c (get_simple_loop_desc): Likewise.
11473 * lto-cgraph.c (input_node_opt_summary): Likewise.
11474 * lto-section-in.c (lto_new_in_decl_state): Likewise.
11475 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
11476 (input_eh_region): Likewise.
11477 (input_eh_lp): Likewise.
11478 (input_cfg): Likewise.
11479 * optabs.c (set_optab_libfunc): Likewise.
11480 (init_tree_optimization_optabs): Likewise.
11481 (set_conv_libfunc): Likewise.
11482 * passes.c (do_per_function_toporder): Likewise.
11483 * rtl.h: Don't use variable_size gty attribute.
11484 * sese.c (if_region_set_false_region): Adjust.
11485 * stringpool.c (gt_pch_save_stringpool): Likewise.
11486 * target-globals.c (save_target_globals): Likewise.
11487 * toplev.c (general_init): Likewise.
11488 * trans-mem.c (record_tm_replacement): Likewise.
11489 (split_bb_make_tm_edge): Likewise.
11490 * tree-cfg.c (move_sese_region_to_fn): Likewise.
11491 * tree-data-ref.h (lambda_vector_new): Likewise.
11492 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
11493 * tree-iterator.c (tsi_link_before): Likewise.
11494 (tsi_link_after): Likewise.
11495 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
11496 * tree-ssa-loop-niter.c (record_estimate): Likewise.
11497 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
11498 * tree-ssa-operands.h: Don't use variable_size gty attribute.
11499 * tree-ssa.c (init_tree_ssa): Adjust.
11500 * tree-ssanames.c (set_range_info): Likewise.
11501 (get_ptr_info): Likewise.
11502 (duplicate_ssa_name_ptr_info): Likewise.
11503 (duplicate_ssa_name_range_info): Likewise.
11504 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
11505 (unpack_ts_fixed_cst_value_fields): Likewise.
11506 * tree.c (build_fixed): Likewise.
11507 (build_real): Likewise.
11508 (build_string): Likewise.
11509 (decl_priority_info): Likewise.
11510 (decl_debug_expr_insert): Likewise.
11511 (decl_value_expr_insert): Likewise.
11512 (decl_debug_args_insert): Likewise.
11513 (type_hash_add): Likewise.
11514 (build_omp_clause): Likewise.
11515 * ubsan.c (decl_for_type_insert): Likewise.
11516 * varasm.c (get_unnamed_section): Likewise.
11517 (get_noswitch_section): Likewise.
11518 (get_section): Likewise.
11519 (get_block_for_section): Likewise.
11520 (create_block_symbol): Likewise.
11521 (build_constant_desc): Likewise.
11522 (create_constant_pool): Likewise.
11523 (force_const_mem): Likewise.
11524 (record_tm_clone_pair): Likewise.
11525 * varpool.c (varpool_create_empty_node): Likewise.
11526
11527 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11528
11529 * dwarf2out.c (tree_add_const_value_attribute): Call
11530 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
11531 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
11532 instead of ggc_internal_<x>alloc_stat.
11533 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
11534 (ggc_realloc): Likewise.
11535 * ggc-none.c (ggc_internal_alloc): Likewise.
11536 (ggc_internal_cleared_alloc): Likewise.
11537 * ggc-page.c: Likewise.
11538 * ggc.h (ggc_internal_alloc_stat): Likewise.
11539 (ggc_internal_alloc): Remove macro.
11540 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
11541 (ggc_internal_cleared_alloc): Remove macro.
11542 (GGC_RESIZEVEC): Adjust.
11543 (ggc_resizevar): Remove macro.
11544 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
11545 (ggc_internal_cleared_vec_alloc_stat): Likewise.
11546 (ggc_internal_vec_cleared_alloc): Remove macro.
11547 (ggc_alloc_atomic_stat): Drop _stat suffix.
11548 (ggc_alloc_atomic): Remove macro.
11549 (ggc_alloc_cleared_atomic): Remove macro.
11550 (ggc_alloc_string_stat): Drop _stat suffix.
11551 (ggc_alloc_string): Remove macro.
11552 (ggc_alloc_rtx_def_stat): Adjust.
11553 (ggc_alloc_tree_node_stat): Likewise.
11554 (ggc_alloc_cleared_tree_node_stat): Likewise.
11555 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
11556 (ggc_alloc_cleared_simd_clone_stat): Likewise.
11557 * gimple.c (gimple_build_omp_for): Likewise.
11558 (gimple_copy): Likewise.
11559 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
11560 * toplev.c (realloc_for_line_map): Adjust.
11561 * tree-data-ref.h (lambda_vector_new): Likewise.
11562 * tree-phinodes.c (allocate_phi_node): Likewise.
11563 * tree.c (grow_tree_vec_stat): Likewise.
11564 * vec.h (va_gc::reserve): Adjust.
11565
11566 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
11567
11568 * config/microblaze/microblaze.c (break_handler): New Declaration.
11569 (microblaze_break_function_p,microblaze_is_break_handler): New.
11570 (compute_frame_size): Use microblaze_break_function_p.
11571 Add the test of break_handler.
11572 (microblaze_function_prologue) : Add the test of variable
11573 break_handler. Check the fnname by BREAK_HANDLER_NAME.
11574 (microblaze_function_epilogue) : Add the test of break_handler.
11575 (microblaze_globalize_label) : Add the test of break_handler.
11576 Check the name by BREAK_HANDLER_NAME.
11577
11578 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
11579
11580 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
11581 microblaze_is_break_handler test.
11582 (call_internal1,call_value_intern): Use microblaze_break_function_p.
11583 Use SYMBOL_REF_DECL.
11584
11585 * config/microblaze/microblaze-protos.h
11586 (microblaze_break_function_p,microblaze_is_break_handler):
11587 New Declaration.
11588
11589 * doc/extend.texi (MicroBlaze break_handler Functions): Document
11590 new MicroBlaze break_handler functions.
11591
11592 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11593
11594 * doc/extend.texi (Size of an asm): Move node text according
11595 to its @menu entry position.
11596
11597 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
11598
11599 PR tree-optimization/61140
11600 PR tree-optimization/61150
11601 PR tree-optimization/61197
11602 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
11603
11604 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11605
11606 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
11607
11608 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
11609
11610 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
11611 __SIZEOF_INT128__ is defined.
11612
11613 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11614
11615 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
11616 (rs6000_delegitimize_address): Use it.
11617
11618 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11619
11620 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
11621 inplace argument. Store the new address in the original MEM when true.
11622 * emit-rtl.c (change_address_1): Likewise.
11623 (adjust_address_1, adjust_automodify_address_1, offset_address):
11624 Update accordingly.
11625 * rtl.h (plus_constant): Add an inplace argument.
11626 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
11627 when true. Avoid generating (plus X (const_int 0)).
11628 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
11629 in-place. Pass true to plus_constant.
11630 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
11631
11632 2014-05-16 Dehao Chen <dehao@google.com>
11633
11634 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
11635
11636 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11637
11638 PR target/54089
11639 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
11640 patterns.
11641 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
11642
11643 2014-05-16 Dehao Chen <dehao@google.com>
11644
11645 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
11646 optimize_function_for_size_p.
11647 * regs.h (REG_FREQ_FROM_BB): Likewise.
11648
11649 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11650
11651 PR target/51244
11652 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
11653 negt_reg_operand cases.
11654 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
11655 predicate.
11656 * config/sh/predicates.md (cbranch_treg_value): Simplify.
11657
11658 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11659
11660 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
11661 target variants.
11662
11663 2014-05-16 David Malcolm <dmalcolm@redhat.com>
11664
11665 Revert:
11666 2014-04-29 David Malcolm <dmalcolm@redhat.com>
11667
11668 * tree-cfg.c (dump_function_to_file): Dump the return type of
11669 functions, in a line to itself before the function body, mimicking
11670 the layout of a C function.
11671
11672 2014-05-16 Dehao Chen <dehao@google.com>
11673
11674 * cfghooks.c (make_forwarder_block): Use direct computation to
11675 get fall-through edge's count and frequency.
11676
11677 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
11678
11679 * config/arc/arc.c (arc_init): Fix typo in error message.
11680 * config/i386/i386.c (ix86_expand_builtin): Likewise.
11681 (split_stack_prologue_scratch_regno): Likewise.
11682 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
11683 word from error message.
11684
11685 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11686
11687 * ira-costs.c: Fix typo in comment.
11688
11689 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
11690
11691 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
11692
11693 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
11694
11695 * varpool.c (dump_varpool_node): Dump write-only flag.
11696 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
11697 write-only flag.
11698 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
11699 write-only variables.
11700 * ipa.c (process_references): New function.
11701 (set_readonly_bit): New function.
11702 (set_writeonly_bit): New function.
11703 (clear_addressable_bit): New function.
11704 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
11705 fix handling of aliases.
11706 * cgraph.h (struct varpool_node): Add writeonly flag.
11707
11708 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
11709
11710 PR rtl-optimization/60969
11711 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
11712 Calculate costs for this case.
11713
11714 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
11715
11716 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
11717 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
11718
11719 2014-05-16 Richard Biener <rguenther@suse.de>
11720
11721 PR tree-optimization/61194
11722 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
11723 bool patterns ending in a COND_EXPR.
11724
11725 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11726
11727 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
11728
11729 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11730
11731 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
11732 where we were unable to cost an RTX.
11733
11734 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11735
11736 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
11737 HIGH, LO_SUM.
11738
11739 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11740 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11741
11742 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
11743
11744 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11745 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11746
11747 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
11748 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
11749
11750 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11751 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11752
11753 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
11754 operators.
11755
11756 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11757 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11758
11759 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11760 DIV/MOD.
11761
11762 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11763 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11764
11765 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
11766 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
11767
11768 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11769 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11770
11771 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11772 rotates and shifts.
11773
11774 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11775 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11776
11777 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
11778 ZERO_EXTEND and SIGN_EXTEND better.
11779
11780 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11781 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11782
11783 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
11784 logical operations.
11785
11786 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11787 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11788
11789 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
11790 costs when costing loads and stores to memory.
11791
11792 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11793 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
11794
11795 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
11796 for SET RTX.
11797
11798 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11799
11800 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
11801
11802 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11803 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11804
11805 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
11806 to...
11807 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
11808 well formed.
11809 (aarch64_rtx_mult_cost): New.
11810 (aarch64_rtx_costs): Use it, refactor as appropriate.
11811
11812 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11813 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11814
11815 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
11816 emit instructions, return number of instructions which would
11817 be emitted.
11818 (aarch64_add_constant): Update call to aarch64_build_constant.
11819 (aarch64_output_mi_thunk): Likewise.
11820 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
11821 a CONST_DOUBLE.
11822
11823 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11824
11825 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
11826 (TARGET_RTX_COSTS): Call it.
11827
11828 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11829
11830 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
11831 (cortexa57_vector_cost): Likewise.
11832 (cortexa57_tunings): Use them.
11833
11834 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11835
11836 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
11837 (cpu_addrcost_table): Use it.
11838 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
11839 (aarch64_address_cost): Rewrite using aarch64_classify_address,
11840 move it.
11841
11842 2014-05-16 Richard Biener <rguenther@suse.de>
11843
11844 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
11845 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
11846 (visit_phi): Ignore edges marked as not executable.
11847 (class cond_dom_walker): New.
11848 (cond_dom_walker::before_dom_children): Value-number
11849 control statements and mark successor edges as not
11850 executable if possible.
11851 (run_scc_vn): First walk all control statements in
11852 dominator order, marking edges as not executable.
11853 * tree-inline.c (copy_edges_for_bb): Be not confused
11854 about random edge flags.
11855
11856 2014-05-16 Richard Biener <rguenther@suse.de>
11857
11858 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
11859
11860 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
11861
11862 PR target/61193
11863 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
11864 (__TM_simple_begin): Use it.
11865 (__TM_begin): Likewise.
11866
11867 2014-05-15 Martin Jambor <mjambor@suse.cz>
11868
11869 PR ipa/61085
11870 * ipa-prop.c (update_indirect_edges_after_inlining): Check
11871 type_preserved flag when the indirect edge is polymorphic.
11872
11873 2014-05-15 Martin Jambor <mjambor@suse.cz>
11874
11875 PR tree-optimization/61090
11876 * tree-sra.c (sra_modify_expr): Pass the current gsi to
11877 build_ref_for_model.
11878
11879 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11880
11881 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
11882 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
11883
11884 2014-05-15 Jakub Jelinek <jakub@redhat.com>
11885
11886 PR tree-optimization/61158
11887 * fold-const.c (fold_binary_loc): If X is zero-extended and
11888 shiftc >= prec, make sure zerobits is all ones instead of
11889 invoking undefined behavior.
11890
11891 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11892
11893 * regcprop.h: New file.
11894 * regcprop.c (skip_debug_insn_p): New decl.
11895 (replace_oldest_value_reg): Check skip_debug_insn_p.
11896 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
11897 * shrink-wrap.c: Include regcprop.h.
11898 (prepare_shrink_wrap): Call
11899 copyprop_hardreg_forward_bb_without_debug_insn.
11900
11901 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11902
11903 * shrink-wrap.h: Update comment.
11904 * shrink-wrap.c: Update comment.
11905 (next_block_for_reg): Rename to live_edge_for_reg.
11906 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
11907 (move_insn_for_shrink_wrap): Split live_edge.
11908 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
11909
11910 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11911
11912 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
11913 Delete.
11914 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
11915 * config/sparc/sparc.md (fptype_ut699): New attribute.
11916 (in_branch_delay): Return false if -mfix-ut699 is specified and
11917 fptype_ut699 is set to single.
11918 (truncdfsf2): Add fptype_ut699 attribute.
11919 (fix_truncdfsi2): Likewise.
11920 (floatsisf2): Change fptype attribute.
11921 (fix_truncsfsi2): Likewise.
11922 (negtf2_notv9): Delete.
11923 (negtf2_v9): Likewise.
11924 (negtf2_hq): New instruction.
11925 (negtf2): New instruction and splitter.
11926 (negdf2_notv9): Rewrite.
11927 (abstf2_notv9): Delete.
11928 (abstf2_hq_v9): Likewise.
11929 (abstf2_v9): Likewise.
11930 (abstf2_hq): New instruction.
11931 (abstf2): New instruction and splitter.
11932 (absdf2_notv9): Rewrite.
11933
11934 2014-05-14 Cary Coutant <ccoutant@google.com>
11935
11936 PR debug/61013
11937 * opts.c (common_handle_option): Don't special-case "-g".
11938 (set_debug_level): Default to at least level 2 with "-g".
11939
11940 2014-05-14 DJ Delorie <dj@redhat.com>
11941
11942 * config/msp430/msp430.c (msp430_builtin): Add
11943 MSP430_BUILTIN_DELAY_CYCLES.
11944 (msp430_init_builtins): Register void __delay_cycles(long long).
11945 (msp430_builtin_decl): Add it.
11946 (cg_magic_constant): New.
11947 (msp430_expand_delay_cycles): New.
11948 (msp430_expand_builtin): Call it.
11949 (msp430_print_operand_raw): Change integer printing from "int" to
11950 HOST_WIDE_INT.
11951 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
11952 (delay_cycles_start): New.
11953 (delay_cycles_end): New.
11954 (delay_cycles_32): New.
11955 (delay_cycles_32x): New.
11956 (delay_cycles_16): New.
11957 (delay_cycles_16x): New.
11958 (delay_cycles_2): New.
11959 (delay_cycles_1): New.
11960 * doc/extend.texi: Document __delay_cycles().
11961
11962 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
11963
11964 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
11965 length attribute computation.
11966
11967 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
11968
11969 PR debug/61188
11970 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
11971
11972 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
11973
11974 PR target/61084
11975 * config/sparc/sparc.md: Fix types of low and high in DI constant
11976 splitter. Use gen_int_mode in some other splitters.
11977
11978 2014-05-14 Martin Jambor <mjambor@suse.cz>
11979
11980 PR ipa/60897
11981 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
11982
11983 2014-05-14 James Norris <jnorris@codesourcery.com>
11984
11985 * omp-low.c (expand_parallel_call): Remove shadow variable.
11986 (expand_omp_taskreg): Likewise.
11987
11988 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
11989
11990 * common/config/i386/i386-common.c
11991 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
11992 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
11993 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
11994 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
11995 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
11996 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
11997 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
11998 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
11999 xsavecintrin.h, xsavesintrin.h.
12000 (x86_64-*-*): Ditto.
12001 * config/i386/clflushoptintrin.h: New.
12002 * config/i386/xsavecintrin.h: Ditto.
12003 * config/i386/xsavesintrin.h: Ditto.
12004 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
12005 (bit_XSAVES): Ditto.
12006 (bit_XSAVES): Ditto.
12007 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
12008 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
12009 -mno-clflushopt.
12010 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12011 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
12012 OPTION_MASK_ISA_XSAVES.
12013 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
12014 -mxsavec, -mxsaves.
12015 (PTA_CLFLUSHOPT) Define.
12016 (PTA_XSAVEC): Ditto.
12017 (PTA_XSAVES): Ditto.
12018 (ix86_option_override_internal): Handle new options.
12019 (ix86_valid_target_attribute_inner_p): Ditto.
12020 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
12021 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
12022 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
12023 (bdesc_special_args): Add __builtin_ia32_xsaves,
12024 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
12025 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
12026 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
12027 (ix86_expand_builtin): Handle new builtins.
12028 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
12029 (TARGET_CLFLUSHOPT_P): Ditto.
12030 (TARGET_XSAVEC): Ditto.
12031 (TARGET_XSAVEC_P): Ditto.
12032 (TARGET_XSAVES): Ditto.
12033 (TARGET_XSAVES_P): Ditto.
12034 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
12035 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
12036 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
12037 (ANY_XRSTOR): New.
12038 (ANY_XRSTOR64): Ditto.
12039 (xrstor): Ditto.
12040 (xrstor): Change into <xrstor>.
12041 (xrstor_rex64): Change into <xrstor>_rex64.
12042 (xrstor64): Change into <xrstor>64
12043 (clflushopt): New.
12044 * config/i386/i386.opt (mclflushopt): New.
12045 (mxsavec): Ditto.
12046 (mxsaves): Ditto.
12047 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
12048 xsavecintrin.h.
12049 * doc/invoke.texi: Document new options.
12050
12051 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
12052
12053 PR rtl-optimization/60866
12054 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
12055 Default it to -1. Pass it down to init_simplejump_data.
12056 (init_simplejump_data): New parameter old_seqno. Pass it down
12057 to get_seqno_for_a_jump.
12058 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
12059 initializing new jump seqno as a last resort. Add comment.
12060 (sel_redirect_edge_and_branch): Save old seqno of the conditional
12061 jump and pass it down to sel_init_new_insn.
12062 (sel_redirect_edge_and_branch_force): Likewise.
12063
12064 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
12065
12066 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
12067 shifted values to avoid build warning.
12068
12069 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
12070
12071 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
12072 * cfgrtl.c (rtl_merge_blocks): Fix comment.
12073 (cfg_layout_merge_blocks): Likewise.
12074 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
12075
12076 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
12077
12078 PR rtl-optimization/60901
12079 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
12080 bb predecessor belongs to the same scheduling region. Adjust comment.
12081
12082 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
12083
12084 * doc/sourcebuild.texi: (dfp_hw): Document.
12085 (p8vector_hw): Likewise.
12086 (powerpc_eabi_ok): Likewise.
12087 (powerpc_elfv2): Likewise.
12088 (powerpc_htm_ok): Likewise.
12089 (ppc_recip_hw): Likewise.
12090 (vsx_hw): Likewise.
12091
12092 2014-05-13 Cary Coutant <ccoutant@google.com>
12093
12094 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
12095
12096 2014-05-13 David Malcolm <dmalcolm@redhat.com>
12097
12098 * gengtype-parse.c (require3): Eliminate in favor of...
12099 (require4): New.
12100 (require_template_declaration): Update to support optional single *
12101 on a type.
12102
12103 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
12104 (create_user_defined_type): Handle a single level of explicit
12105 pointerness within template arguments.
12106 (struct write_types_data): Add field "kind".
12107 (filter_type_name): Handle "*" character.
12108 (write_user_func_for_structure_ptr): Require a write_types_data
12109 rather than just a prefix string, so that we can look up the kind
12110 of the wtd and use it as an index into wrote_user_func_for_ptr,
12111 ensuring that such functions are written at most once. Support
12112 subclasses by invoking the marking function of the ultimate base class.
12113 (write_user_func_for_structure_body): Require a write_types_data
12114 rather than just a prefix string, so that we can pass this to
12115 write_user_func_for_structure_ptr.
12116 (write_func_for_structure): Likewise.
12117 (ggc_wtd): Add initializer of new "kind" field.
12118 (pch_wtd): Likewise.
12119
12120 * gengtype.h (enum write_types_kinds): New.
12121 (struct type): Add field wrote_user_func_for_ptr to the "s"
12122 union member.
12123
12124 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
12125
12126 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
12127 instead of const_binop.
12128 (fold_binary_loc): Likewise.
12129
12130 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
12131
12132 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
12133 calculation to match get_ref_base_and_extent.
12134
12135 2014-05-13 Catherine Moore <clm@codesourcery.com>
12136 Sandra Loosemore <sandra@codesourcery.com>
12137
12138 * configure.ac: Fix assembly for explicit JALR relocation check.
12139 * configure: Regenerate.
12140
12141 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12142
12143 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
12144 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
12145 Remove associated type declarations and initialisations.
12146 (arm_expand_neon_builtin): Likewise.
12147 (neon_emit_pair_result_insn): Delete.
12148 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
12149 * config/arm/neon.md (neon_vtrn<mode>): Delete.
12150 (neon_vzip<mode>): Likewise.
12151 (neon_vuzp<mode>): Likewise.
12152
12153 2014-05-13 Richard Biener <rguenther@suse.de>
12154
12155 PR ipa/60973
12156 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
12157 it needs revisiting whether the call still may be tail-called.
12158
12159 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12160
12161 * rtl.def (SYMBOL_REF): Remove middle "0" field.
12162 * rtl.h (block_symbol): Reduce number of fields to 2.
12163 (rtx_def): Add u2.symbol_ref_flags.
12164 (SYMBOL_REF_FLAGS): Use it.
12165 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
12166 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
12167 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
12168 Lower index of SYMBOL_REF_DATA.
12169 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
12170 Print SYMBOL_REF_FLAGS at the same time.
12171 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
12172
12173 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12174
12175 * rtl.def (VAR_LOCATION): Remove "i" field.
12176 * rtl.h (rtx_def): Add u2.var_location_status.
12177 (PAT_VAR_LOCATION_STATUS): Use it.
12178 (gen_rtx_VAR_LOCATION): Declare.
12179 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
12180 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
12181 * var-tracking.c (emit_note_insn_var_location): Remove casts.
12182
12183 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12184
12185 * rtl.def (scratch): Fix outdated comment and remove "0" field.
12186 * gengtype.c (adjust_field_rtx_def): Update accordingly.
12187
12188 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12189
12190 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
12191 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
12192 * rtl.h (rtx_def): Add insn_uid to u2 field.
12193 (RTX_FLAG_CHECK8): Delete in favor of...
12194 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
12195 (INSN_DELETED_P): Update accordingly.
12196 (INSN_UID): Use u2.insn_uid.
12197 (INSN_CHAIN_CODE_P): Define.
12198 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
12199 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
12200 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
12201 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
12202 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
12203 indices accordingly.
12204 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
12205 Update indices for insn-chain rtxes.
12206 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
12207 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
12208 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
12209 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
12210 * combine.c (try_combine): Likewise.
12211 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12212
12213 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12214
12215 * rtl.def (REG): Remove middle field.
12216 * rtl.h (rtx_def): Add orignal_regno to u2.
12217 (ORIGINAL_REGNO): Use it instead of field 1.
12218 (REG_ATTRS): Lower field index accordingly.
12219 * gengtype.c (adjust_field_rtx_def): Remove handling of
12220 ORIGINAL_REGNO. Move REG_ATTRS index down.
12221 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
12222 code that prints the REGNO.
12223
12224 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12225
12226 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
12227 GENERATOR_FILE.
12228
12229 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12230
12231 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
12232
12233 2014-05-13 Bin Cheng <bin.cheng@arm.com>
12234
12235 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
12236 (alloc_iv): Lower base expressions containing ADDR_EXPR.
12237
12238 2014-05-13 Ian Bolton <ian.bolton@arm.com>
12239
12240 * config/aarch64/aarch64-protos.h
12241 (aarch64_hard_regno_caller_save_mode): New prototype.
12242 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
12243 New function.
12244 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
12245
12246 2014-05-13 Christian Bruel <christian.bruel@st.com>
12247
12248 * target.def (mode_switching): New hook vector.
12249 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
12250 (mode_exit, modepriority_to_mode): Likewise.
12251 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
12252 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12253 * target.h: Include tm.h and hard-reg-set.h.
12254 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
12255 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
12256 * doc/tm.texi Regenerate.
12257 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
12258 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12259 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
12260 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
12261 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
12262 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12263 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
12264 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
12265 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
12266 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
12267 (ix86_emit_mode_set): Hookify.
12268 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
12269 Delete.
12270 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12271 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
12272 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
12273 (epiphany_mode_priority_to_mode): Remove declaration.
12274 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
12275 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
12276 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
12277 Likewise.
12278 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
12279 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
12280 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
12281
12282 2014-05-13 Jakub Jelinek <jakub@redhat.com>
12283
12284 PR target/61060
12285 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
12286 is const0_rtx, return immediately. Don't test count == 0 when
12287 it is always true.
12288
12289 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12290
12291 * Makefile.in: add shrink-wrap.o.
12292 * config/i386/i386.c: include "shrink-wrap.h"
12293 * function.c: Likewise.
12294 (requires_stack_frame_p, next_block_for_reg,
12295 move_insn_for_shrink_wrap, prepare_shrink_wrap,
12296 dup_block_and_redirect): Move to shrink-wrap.c
12297 (thread_prologue_and_epilogue_insns): Extract three code segments
12298 as functions in shrink-wrap.c
12299 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
12300 shrink-wrap.h
12301 * shrink-wrap.c: New file.
12302 * shrink-wrap.h: New file.
12303
12304 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
12305
12306 * doc/extend.texi: Reflect current numbers of pragmas. Remove
12307 reference to Solaris.
12308
12309 2014-05-12 Mike Stump <mikestump@comcast.net>
12310
12311 PR other/31778
12312 * genattrtab.c (filename): Add.
12313 (convert_set_attr_alternative): Improve error message.
12314 (check_defs): Restore read_md_filename for error messages.
12315 (gen_insn): Save filename.
12316
12317 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
12318
12319 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
12320 -fno-local-ivars and -fivar-visibility.
12321 * c-family/c.opt: Make -Wshadow also implicitly enable
12322 -Wshadow-ivar.
12323
12324 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
12325
12326 * doc/tm.texi: Remove reference to deleted macro.
12327 * doc/tm.texi.in: Likewise.
12328
12329 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12330
12331 PR target/60991
12332 * config/avr/avr.c (avr_out_store_psi): Use correct constant
12333 to restore Y.
12334
12335 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
12336
12337 PR libgcc/61152
12338 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
12339 * config/arm/aout.h (License): Same.
12340 * config/arm/bpabi.h (License): Same.
12341 * config/arm/elf.h (License): Same.
12342 * config/arm/linux-elf.h (License): Same.
12343 * config/arm/linux-gas.h (License): Same.
12344 * config/arm/netbsd-elf.h (License): Same.
12345 * config/arm/uclinux-eabi.h (License): Same.
12346 * config/arm/uclinux-elf.h (License): Same.
12347 * config/arm/vxworks.h (License): Same.
12348
12349 2014-05-11 Jakub Jelinek <jakub@redhat.com>
12350
12351 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
12352 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
12353 number of operands to 3.
12354 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
12355 * tree-nested.c (convert_nonlocal_omp_clauses,
12356 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
12357 * gimplify.c (gimplify_scan_omp_clauses): Handle
12358 OMP_CLAUSE_LINEAR_STMT.
12359 * omp-low.c (lower_rec_input_clauses): Fix typo.
12360 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
12361 cast between Fortran boolean_type_node and C _Bool if
12362 needed.
12363
12364 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
12365
12366 PR tree-optimization/61136
12367 * wide-int.h (multiple_of_p): Define a version that doesn't return
12368 the quotient.
12369 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
12370 integer_zerop/const_binop pair.
12371 (multiple_of_p): Likewise, converting both operands to widest_int
12372 precision.
12373
12374 2014-05-09 Teresa Johnson <tejohnson@google.com>
12375
12376 * cgraphunit.c (analyze_functions): Use correct dump file.
12377
12378 2014-05-09 Florian Weimer <fweimer@redhat.com>
12379
12380 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
12381 expand_used_vars.
12382 (stack_protect_return_slot_p): New function.
12383 (expand_used_vars): Call stack_protect_decl_p and
12384 stack_protect_return_slot_p for -fstack-protector-strong.
12385
12386 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
12387 Andrew Haley <aph@redhat.com>
12388 Richard Sandiford <rdsandiford@googlemail.com>
12389
12390 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
12391 pages.
12392
12393 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
12394
12395 PR middle-end/61111
12396 * fold-const.c (fold_binary_loc): Changed width of mask.
12397
12398 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
12399
12400 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
12401 unsigned int initializers for regno_in, regno_out.
12402
12403 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
12404
12405 PR target/61055
12406 * config/avr/avr.md (cc): Add new attribute set_vzn.
12407 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
12408 Set cc insn attribute to set_vzn instead of set_zn for alternatives
12409 with INC, DEC or NEG.
12410 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
12411 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
12412 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
12413
12414 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12415
12416 Revert:
12417 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12418
12419 * wide-int.cc (UTItype): Define.
12420 (UDWtype): Define for appropriate W_TYPE_SIZE.
12421
12422 2014-05-09 Richard Biener <rguenther@suse.de>
12423
12424 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
12425 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
12426 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
12427 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
12428 ssa_propagate): Adjust.
12429
12430 2014-05-08 Jeff Law <law@redhat.com>
12431
12432 PR tree-optimization/61009
12433 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
12434 tri-state rather than a boolean. When a block is too big to
12435 thread through, inform caller via negative return value.
12436 (thread_across_edge): If a block was too big for normal threading,
12437 then it's too big for a joiner too, so remove temporary equivalences
12438 and return immediately.
12439
12440 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12441 Matthias Klose <doko@ubuntu.com>
12442
12443 PR driver/61106
12444 * optc-gen.awk: Fix option handling for -Wunused-parameter.
12445
12446 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
12447
12448 PR target/59952
12449 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
12450
12451 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
12452
12453 PR target/61092
12454 * config/alpha/alpha.c: Include gimple-iterator.h.
12455 (alpha_gimple_fold_builtin): New function. Move
12456 ALPHA_BUILTIN_UMULH folding from ...
12457 (alpha_fold_builtin): ... here.
12458 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
12459
12460 2014-05-08 Wei Mi <wmi@google.com>
12461
12462 PR target/58066
12463 * config/i386/i386.c (ix86_compute_frame_layout): Update
12464 preferred_stack_boundary for call, expanded from tls descriptor.
12465 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
12466 to depend on SP register.
12467 (*tls_local_dynamic_base_32_gnu): Ditto.
12468 (*tls_local_dynamic_32_once): Ditto.
12469 (tls_global_dynamic_64_<mode>): Set
12470 ix86_tls_descriptor_calls_expanded_in_cfun.
12471 (tls_local_dynamic_base_64_<mode>): Ditto.
12472 (tls_global_dynamic_32): Set
12473 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
12474 to depend on SP register.
12475 (tls_local_dynamic_base_32): Ditto.
12476
12477 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12478
12479 * config/arm/arm_neon.h: Update comment.
12480 * config/arm/neon-docgen.ml: Delete.
12481 * config/arm/neon-gen.ml: Delete.
12482 * doc/arm-neon-intrinsics.texi: Update comment.
12483
12484 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12485
12486 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
12487 and v4sf versions.
12488 (vand, vorr, veor, vorn, vbic): Remove.
12489 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
12490 iterator.
12491 (neon_vsub_unspec): Likewise.
12492 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
12493
12494 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12495
12496 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
12497 (vadd_s16): Likewise.
12498 (vadd_s32): Likewise.
12499 (vadd_f32): Likewise.
12500 (vadd_u8): Likewise.
12501 (vadd_u16): Likewise.
12502 (vadd_u32): Likewise.
12503 (vadd_s64): Likewise.
12504 (vadd_u64): Likewise.
12505 (vaddq_s8): Likewise.
12506 (vaddq_s16): Likewise.
12507 (vaddq_s32): Likewise.
12508 (vaddq_s64): Likewise.
12509 (vaddq_f32): Likewise.
12510 (vaddq_u8): Likewise.
12511 (vaddq_u16): Likewise.
12512 (vaddq_u32): Likewise.
12513 (vaddq_u64): Likewise.
12514 (vmul_s8): Likewise.
12515 (vmul_s16): Likewise.
12516 (vmul_s32): Likewise.
12517 (vmul_f32): Likewise.
12518 (vmul_u8): Likewise.
12519 (vmul_u16): Likewise.
12520 (vmul_u32): Likewise.
12521 (vmul_p8): Likewise.
12522 (vmulq_s8): Likewise.
12523 (vmulq_s16): Likewise.
12524 (vmulq_s32): Likewise.
12525 (vmulq_f32): Likewise.
12526 (vmulq_u8): Likewise.
12527 (vmulq_u16): Likewise.
12528 (vmulq_u32): Likewise.
12529 (vsub_s8): Likewise.
12530 (vsub_s16): Likewise.
12531 (vsub_s32): Likewise.
12532 (vsub_f32): Likewise.
12533 (vsub_u8): Likewise.
12534 (vsub_u16): Likewise.
12535 (vsub_u32): Likewise.
12536 (vsub_s64): Likewise.
12537 (vsub_u64): Likewise.
12538 (vsubq_s8): Likewise.
12539 (vsubq_s16): Likewise.
12540 (vsubq_s32): Likewise.
12541 (vsubq_s64): Likewise.
12542 (vsubq_f32): Likewise.
12543 (vsubq_u8): Likewise.
12544 (vsubq_u16): Likewise.
12545 (vsubq_u32): Likewise.
12546 (vsubq_u64): Likewise.
12547 (vand_s8): Likewise.
12548 (vand_s16): Likewise.
12549 (vand_s32): Likewise.
12550 (vand_u8): Likewise.
12551 (vand_u16): Likewise.
12552 (vand_u32): Likewise.
12553 (vand_s64): Likewise.
12554 (vand_u64): Likewise.
12555 (vandq_s8): Likewise.
12556 (vandq_s16): Likewise.
12557 (vandq_s32): Likewise.
12558 (vandq_s64): Likewise.
12559 (vandq_u8): Likewise.
12560 (vandq_u16): Likewise.
12561 (vandq_u32): Likewise.
12562 (vandq_u64): Likewise.
12563 (vorr_s8): Likewise.
12564 (vorr_s16): Likewise.
12565 (vorr_s32): Likewise.
12566 (vorr_u8): Likewise.
12567 (vorr_u16): Likewise.
12568 (vorr_u32): Likewise.
12569 (vorr_s64): Likewise.
12570 (vorr_u64): Likewise.
12571 (vorrq_s8): Likewise.
12572 (vorrq_s16): Likewise.
12573 (vorrq_s32): Likewise.
12574 (vorrq_s64): Likewise.
12575 (vorrq_u8): Likewise.
12576 (vorrq_u16): Likewise.
12577 (vorrq_u32): Likewise.
12578 (vorrq_u64): Likewise.
12579 (veor_s8): Likewise.
12580 (veor_s16): Likewise.
12581 (veor_s32): Likewise.
12582 (veor_u8): Likewise.
12583 (veor_u16): Likewise.
12584 (veor_u32): Likewise.
12585 (veor_s64): Likewise.
12586 (veor_u64): Likewise.
12587 (veorq_s8): Likewise.
12588 (veorq_s16): Likewise.
12589 (veorq_s32): Likewise.
12590 (veorq_s64): Likewise.
12591 (veorq_u8): Likewise.
12592 (veorq_u16): Likewise.
12593 (veorq_u32): Likewise.
12594 (veorq_u64): Likewise.
12595 (vbic_s8): Likewise.
12596 (vbic_s16): Likewise.
12597 (vbic_s32): Likewise.
12598 (vbic_u8): Likewise.
12599 (vbic_u16): Likewise.
12600 (vbic_u32): Likewise.
12601 (vbic_s64): Likewise.
12602 (vbic_u64): Likewise.
12603 (vbicq_s8): Likewise.
12604 (vbicq_s16): Likewise.
12605 (vbicq_s32): Likewise.
12606 (vbicq_s64): Likewise.
12607 (vbicq_u8): Likewise.
12608 (vbicq_u16): Likewise.
12609 (vbicq_u32): Likewise.
12610 (vbicq_u64): Likewise.
12611 (vorn_s8): Likewise.
12612 (vorn_s16): Likewise.
12613 (vorn_s32): Likewise.
12614 (vorn_u8): Likewise.
12615 (vorn_u16): Likewise.
12616 (vorn_u32): Likewise.
12617 (vorn_s64): Likewise.
12618 (vorn_u64): Likewise.
12619 (vornq_s8): Likewise.
12620 (vornq_s16): Likewise.
12621 (vornq_s32): Likewise.
12622 (vornq_s64): Likewise.
12623 (vornq_u8): Likewise.
12624 (vornq_u16): Likewise.
12625 (vornq_u32): Likewise.
12626 (vornq_u64): Likewise.
12627
12628 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12629
12630 * wide-int.cc (UTItype): Define.
12631 (UDWtype): Define for appropriate W_TYPE_SIZE.
12632
12633 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
12634
12635 PR tree-optimization/59100
12636 * tree-ssa-phiopt.c: Include tree-inline.h.
12637 (neutral_element_p, absorbing_element_p): New functions.
12638 (value_replacement): Handle conditional binary operations with a
12639 neutral or absorbing element.
12640
12641 2014-05-08 Richard Biener <rguenther@suse.de>
12642
12643 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
12644 folding the expression.
12645 (valueize_expr): Remove.
12646 (visit_reference_op_load): Do not valueize the result of
12647 vn_get_expr_for.
12648 (simplify_binary_expression): Likewise.
12649 (simplify_unary_expression): Likewise.
12650
12651 2014-05-08 Richard Biener <rguenther@suse.de>
12652
12653 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
12654 looking at TYPE_ARG_TYPES.
12655
12656 2014-05-08 Richard Biener <rguenther@suse.de>
12657
12658 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12659 pointer propagation special-case.
12660
12661 2014-05-08 Bin Cheng <bin.cheng@arm.com>
12662
12663 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
12664 core part of address expressions.
12665
12666 2014-05-08 Alan Modra <amodra@gmail.com>
12667
12668 PR target/60737
12669 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
12670 loads and stores when -mno-strict-align at any alignment.
12671 (expand_block_clear): Similarly. Also correct calculation of
12672 instruction count.
12673
12674 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12675
12676 PR middle-end/39246
12677 * tree-complex.c (expand_complex_move): Keep line info when expanding
12678 complex move.
12679 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
12680 of complex expression. Use new argument to display correct location
12681 for values coming from phi statement.
12682 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
12683 (warn_uninitialized_phi): Pass location of phi argument to
12684 warn_uninit.
12685 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
12686 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
12687
12688 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12689
12690 * config/rs6000/predicates.md (indexed_address_mem): New.
12691 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
12692 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
12693 fpstore_ux, fpstore_u.
12694 (sign_extend, indexed, update): New.
12695 (cell_micro): Adjust.
12696 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
12697 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
12698 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
12699 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
12700 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12701 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
12702 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
12703 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
12704 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
12705 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
12706 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
12707 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
12708 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
12709 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
12710 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
12711
12712 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
12713 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
12714 *vsx_extract_<mode>_store): Adjust.
12715 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
12716 is_cracked_insn, insn_must_be_first_in_group,
12717 insn_must_be_last_in_group): Adjust.
12718
12719 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
12720 Adjust.
12721 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
12722 ppc440-fpstore): Adjust.
12723 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
12724 ppc476-fpstore): Adjust.
12725 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
12726 ppc601-fpstore): Adjust.
12727 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
12728 Adjust.
12729 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
12730 Adjust.
12731 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
12732 ppc7450-fpstore): Adjust.
12733 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
12734 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
12735 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
12736 Adjust.
12737 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
12738 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
12739 cell-fpstore, cell-fpstore-update): Adjust.
12740 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
12741 ppce300c3_store, ppce300c3_fpstore): Adjust.
12742 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
12743 e500mc_fpstore): Adjust.
12744 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
12745 e500mc64_store, e500mc64_fpstore): Adjust.
12746 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
12747 e5500_fpstore): Adjust.
12748 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
12749 e6500_fpstore): Adjust.
12750 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
12751 Adjust.
12752 * config/rs6000/power4.md (power4-load, power4-load-ext,
12753 power4-load-ext-update, power4-load-ext-update-indexed,
12754 power4-load-update-indexed, power4-load-update, power4-fpload,
12755 power4-fpload-update, power4-store, power4-store-update,
12756 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
12757 Adjust.
12758 * config/rs6000/power5.md (power5-load, power5-load-ext,
12759 power5-load-ext-update, power5-load-ext-update-indexed,
12760 power5-load-update-indexed, power5-load-update, power5-fpload,
12761 power5-fpload-update, power5-store, power5-store-update,
12762 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
12763 Adjust.
12764 * config/rs6000/power6.md (power6-load, power6-load-ext,
12765 power6-load-update, power6-load-update-indexed,
12766 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
12767 power6-fpload-update, power6-store, power6-store-update,
12768 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
12769 Adjust.
12770 * config/rs6000/power7.md (power7-load, power7-load-ext,
12771 power7-load-update, power7-load-update-indexed,
12772 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
12773 power7-fpload-update, power7-store, power7-store-update,
12774 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
12775 Adjust.
12776 * config/rs6000/power8.md (power8-load, power8-load-update,
12777 power8-load-ext, power8-load-ext-update, power8-fpload,
12778 power8-fpload-update, power8-store, power8-store-update-indexed,
12779 power8-fpstore, power8-fpstore-update): Adjust.
12780 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
12781 Adjust.
12782 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
12783 titan_lsu_store, titan_lsu_fpstore): Adjust.
12784 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
12785
12786 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
12787
12788 PR target/60884
12789 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
12790 unrolled byte insns. Emit address increments after move insns.
12791
12792 2014-05-07 David Malcolm <dmalcolm@redhat.com>
12793
12794 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
12795 const_gimple, rather than a gimple.
12796 (gimple_call_builtin_p): Likewise, for the three variants.
12797
12798 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
12799 (gimple_call_builtin_p): Likewise, for the three variants.
12800
12801 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12802
12803 PR tree-optimization/61095
12804 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
12805
12806 2014-05-07 Richard Biener <rguenther@suse.de>
12807
12808 PR tree-optimization/61034
12809 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
12810 (maybe_skip_until): Use translate to take into account
12811 lattices when trying to do disambiguations.
12812 (get_continuation_for_phi_1): Likewise.
12813 (get_continuation_for_phi): Adjust for added translate arguments.
12814 (walk_non_aliased_vuses): Likewise.
12815 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
12816 (walk_non_aliased_vuses): Likewise.
12817 (call_may_clobber_ref_p_1): Declare.
12818 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
12819 calls. Stop early if we are only supposed to disambiguate.
12820 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12821
12822 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
12823
12824 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
12825 Emit an error when the function has arguments.
12826
12827 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12828
12829 * cfgloop.h (unswitch_loops): Remove.
12830 * doc/passes.texi: Remove references to loop-unswitch.c
12831 * timevar.def (TV_LOOP_UNSWITCH): Remove.
12832
12833 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
12834
12835 * tree-vect-data-refs.c (vect_grouped_load_supported): New
12836 check for loads group of length 3.
12837 (vect_permute_load_chain): New permutations for loads group of
12838 length 3.
12839 * tree-vect-stmts.c (vect_model_load_cost): Change cost
12840 of vec_perm_shuffle for the new permutations.
12841
12842 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
12843
12844 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
12845 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
12846 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
12847 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
12848 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
12849 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
12850 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
12851 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
12852
12853 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12854
12855 * loop-unswitch.c: Delete.
12856
12857 2014-05-07 Richard Biener <rguenther@suse.de>
12858
12859 * config.gcc: Always set need_64bit_hwint to yes.
12860
12861 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
12862
12863 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
12864 of using optimize_size.
12865
12866 2014-05-06 Mike Stump <mikestump@comcast.net>
12867
12868 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
12869
12870 2014-05-06 Joseph Myers <joseph@codesourcery.com>
12871
12872 * config/i386/sse.md (*mov<mode>_internal)
12873 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
12874 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
12875 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
12876 (*<code><mode>3, *andnot<mode>3<mask_name>)
12877 (<mask_codefor><code><mode>3<mask_name>): Only consider
12878 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
12879
12880 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12881
12882 Revert:
12883 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12884
12885 * lra-constraints.c (valid_address_p): Move earlier in file.
12886 Add a constraint argument to the address_info version.
12887 (satisfies_memory_constraint_p): New function.
12888 (satisfies_address_constraint_p): Likewise.
12889 (process_alt_operands, curr_insn_transform): Use them.
12890 (process_address): Pass the constraint to valid_address_p when
12891 checking address operands.
12892
12893 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
12894
12895 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
12896 to their respective blocks. Fix inadvertent use of "node".
12897
12898 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12899
12900 * emit-rtl.c (init_derived_machine_modes): New functionm, split
12901 out from...
12902 (init_emit_once): ...here.
12903 * rtl.h (init_derived_machine_modes): Declare.
12904 * toplev.c (do_compile): Call it even if no_backend.
12905
12906 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
12907 Mike Stump <mikestump@comcast.net>
12908 Richard Sandiford <rdsandiford@googlemail.com>
12909 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12910
12911 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
12912 (rtx_equal_for_memref_p): Update comment.
12913 (adjust_offset_for_component_ref): Use wide-int interfaces.
12914 * builtins.c (get_object_alignment_2): Likewise.
12915 (c_readstr): Likewise.
12916 (target_char_cast): Add comment.
12917 (determine_block_size): Use wide-int interfaces.
12918 (expand_builtin_signbit): Likewise.
12919 (fold_builtin_int_roundingfn): Likewise.
12920 (fold_builtin_bitop): Likewise.
12921 (fold_builtin_bswap): Likewise.
12922 (fold_builtin_logarithm): Use signop.
12923 (fold_builtin_pow): Likewise.
12924 (fold_builtin_memory_op): Use wide-int interfaces.
12925 (fold_builtin_object_size): Likewise.
12926 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
12927 nb_iterations_estimate.
12928 (record_niter_bound): Use wide-int interfaces.
12929 (get_estimated_loop_iterations_int): Likewise.
12930 (get_estimated_loop_iterations): Likewise.
12931 (get_max_loop_iterations): Likewise.
12932 * cfgloop.h: Include wide-int.h.
12933 (struct nb_iter_bound): Change bound to widest_int.
12934 (struct loop): Change nb_iterations_upper_bound and
12935 nb_iterations_estimate to widest_int.
12936 (record_niter_bound): Switch to use widest_int.
12937 (get_estimated_loop_iterations): Likewise.
12938 (get_max_loop_iterations): Likewise.
12939 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
12940 update for wide-int.
12941 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
12942 * combine.c (try_combine): Likewise.
12943 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
12944 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
12945 interfaces.
12946 (aarch64_float_const_representable_p): Likewise.
12947 * config/arc/arc.c: Include wide-int.h.
12948 (arc_can_use_doloop_p): Use wide-int interfaces.
12949 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
12950 (vfp3_const_double_index): Likewise.
12951 * config/avr/avr.c (avr_out_round): Likewise.
12952 (avr_fold_builtin): Likewise.
12953 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
12954 (bfin_can_use_doloop_p): Likewise.
12955 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
12956 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
12957 * config/i386/i386.c: Include wide-int.h.
12958 (ix86_data_alignment): Use wide-int interfaces.
12959 (ix86_local_alignment): Likewise.
12960 (ix86_emit_swsqrtsf): Update real_from_integer.
12961 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
12962 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12963 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
12964 (zero_constant): Likewise.
12965 (input_operand): Likewise.
12966 (splat_input_operand): Likewise.
12967 (non_logical_cint_operand): Change const_double to const_wide_int.
12968 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
12969 (easy_altivec_constant): Remove comment.
12970 (paired_expand_vector_init): Use CONSTANT_P.
12971 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
12972 (rs6000_emit_move): Update checks.
12973 (rs6000_aggregate_candidate): Use wide-int interfaces.
12974 (rs6000_expand_ternop_builtin): Likewise.
12975 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
12976 (rs6000_assemble_integer): Likewise.
12977 (rs6000_hash_constant): Likewise.
12978 (output_toc): Likewise.
12979 (rs6000_rtx_costs): Likewise.
12980 (rs6000_emit_swrsqrt); Update call to real_from_integer.
12981 * config/rs6000/rs6000-c.c: Include wide-int.h.
12982 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
12983 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
12984 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
12985 Handle CONST_WIDE_INT.
12986 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
12987 Use tree_fits_uhwi_p.
12988 * config/sparc/sparc.c: Include wide-int.h.
12989 (sparc_fold_builtin): Use wide-int interfaces.
12990 * config/vax/vax.c: Include wide-int.h.
12991 (vax_float_literal): Use real_from_integer.
12992 * coretypes.h (struct hwivec_def): New.
12993 (hwivec): New.
12994 (const_hwivec): New.
12995 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
12996 (equiv_constant): Handle CONST_WIDE_INT.
12997 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
12998 (cselib_hash_rtx): Handle CONST_WIDE_INT.
12999 * dbxout.c (stabstr_U): Use wide-int interfaces.
13000 (dbxout_type): Update to use cst_fits_shwi_p.
13001 * defaults.h (LOG2_BITS_PER_UNIT): Define.
13002 (TARGET_SUPPORTS_WIDE_INT): Add default.
13003 * dfp.c: Include wide-int.h.
13004 (decimal_real_to_integer2): Use wide-int interfaces and rename to
13005 decimal_real_to_integer.
13006 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
13007 decimal_real_to_integer.
13008 * doc/generic.texi (Constant expressions): Update for wide_int.
13009 * doc/rtl.texi (const_double): Likewise.
13010 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
13011 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
13012 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
13013 (REAL_VALUE_FROM_INT): Remove.
13014 (TARGET_SUPPORTS_WIDE_INT): New.
13015 * doc/tm.texi: Regenerate.
13016 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
13017 * double-int.h: Include wide-int.h.
13018 (struct wi::int_traits): New.
13019 * dwarf2out.c (get_full_len): New.
13020 (dw_val_equal_p): Add case dw_val_class_wide_int.
13021 (size_of_loc_descr): Likewise.
13022 (output_loc_operands): Likewise.
13023 (insert_double): Remove.
13024 (insert_wide_int): New.
13025 (add_AT_wide): New.
13026 (print_die): Add case dw_val_class_wide_int.
13027 (attr_checksum): Likewise.
13028 (attr_checksum_ordered): Likewise.
13029 (same_dw_val_p): Likewise.
13030 (size_of_die): Likewise.
13031 (value_format): Likewise.
13032 (output_die): Likewise.
13033 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
13034 Use wide-int.
13035 (clz_loc_descriptor): Use wide-int interfaces.
13036 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
13037 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
13038 (round_up_to_align): Use wide-int interfaces.
13039 (field_byte_offset): Likewise.
13040 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
13041 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
13042 CONST_DOUBLE handling. Use wide-int interfaces.
13043 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
13044 (gen_enumeration_type_die): Use add_AT_wide.
13045 (hash_loc_operands): Add case dw_val_class_wide_int.
13046 (compare_loc_operands): Likewise.
13047 * dwarf2out.h: Include wide-int.h.
13048 (wide_int_ptr): New.
13049 (enum dw_val_class): Add dw_val_class_wide_int.
13050 (struct dw_val_struct): Add val_wide.
13051 * emit-rtl.c (const_wide_int_htab): New.
13052 (const_wide_int_htab_hash): New.
13053 (const_wide_int_htab_eq): New.
13054 (lookup_const_wide_int): New.
13055 (const_double_htab_hash): Use wide-int interfaces.
13056 (const_double_htab_eq): Likewise.
13057 (rtx_to_double_int): Conditionally compile for wide-int.
13058 (immed_double_int_const): Rename to immed_wide_int_const and
13059 update for wide-int.
13060 (immed_double_const): Conditionally compile for wide-int.
13061 (init_emit_once): Use wide-int interfaces.
13062 * explow.c (plus_constant): Likewise.
13063 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
13064 (lshift_value): Use wide-int interfaces.
13065 (expand_mult): Likewise.
13066 (choose_multiplier): Likewise.
13067 (expand_smod_pow2): Likewise.
13068 (make_tree): Likewise.
13069 * expr.c (convert_modes): Consolidate handling of constants.
13070 Use wide-int interfaces.
13071 (emit_group_load_1): Add note.
13072 (store_expr): Update comment.
13073 (get_inner_reference): Use wide-int interfaces.
13074 (expand_constructor): Update comment.
13075 (expand_expr_real_2): Use wide-int interfaces.
13076 (expand_expr_real_1): Likewise.
13077 (reduce_to_bit_field_precision): Likewise.
13078 (const_vector_from_tree): Likewise.
13079 * final.c: Include wide-int-print.h.
13080 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
13081 * fixed-value.c: Include wide-int.h.
13082 (fixed_from_string): Use wide-int interfaces.
13083 (fixed_to_decimal): Likewise.
13084 (fixed_convert_from_real): Likewise.
13085 (real_convert_from_fixed): Likewise.
13086 * fold-const.h (mem_ref_offset): Return an offset_int.
13087 (div_if_zero_remainder): Remove code parameter.
13088 * fold-const.c (div_if_zero_remainder): Remove code parameter.
13089 Use wide-int interfaces.
13090 (may_negate_without_overflow_p): Use wide-int interfaces.
13091 (negate_expr_p): Likewise.
13092 (fold_negate_expr): Likewise.
13093 (int_const_binop_1): Likewise.
13094 (const_binop): Likewise.
13095 (fold_convert_const_int_from_int): Likewise.
13096 (fold_convert_const_int_from_real): Likewise.
13097 (fold_convert_const_int_from_fixed): Likewise.
13098 (fold_convert_const_fixed_from_int): Likewise.
13099 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
13100 (sign_bit_p): Use wide-int interfaces.
13101 (make_range_step): Likewise.
13102 (build_range_check): Likewise. Pass an integer of the correct type
13103 instead of using integer_one_node.
13104 (range_predecessor): Pass an integer of the correct type instead
13105 of using integer_one_node.
13106 (range_successor): Likewise.
13107 (merge_ranges): Likewise.
13108 (unextend): Use wide-int interfaces.
13109 (extract_muldiv_1): Likewise.
13110 (fold_div_compare): Likewise.
13111 (fold_single_bit_test): Likewise.
13112 (fold_sign_changed_comparison): Likewise.
13113 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
13114 (fold_plusminus_mult_expr): Use wide-int interfaces.
13115 (native_encode_int): Likewise.
13116 (native_interpret_int): Likewise.
13117 (fold_unary_loc): Likewise.
13118 (pointer_may_wrap_p): Likewise.
13119 (size_low_cst): Likewise.
13120 (mask_with_tz): Likewise.
13121 (fold_binary_loc): Likewise.
13122 (fold_ternary_loc): Likewise.
13123 (multiple_of_p): Likewise.
13124 (tree_call_nonnegative_warnv_p): Update calls to
13125 tree_int_cst_min_precision and real_from_integer.
13126 (fold_negate_const): Use wide-int interfaces.
13127 (fold_abs_const): Likewise.
13128 (fold_relational_const): Use tree_int_cst_lt.
13129 (round_up_loc): Use wide-int interfaces.
13130 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
13131 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
13132 * gengtype.c: Remove include of double-int.h.
13133 (do_typedef): Use wide-int interfaces.
13134 (open_base_files): Add wide-int.h.
13135 (main): Add offset_int and widest_int typedefs.
13136 * gengtype-lex.l: Handle "^".
13137 (CXX_KEYWORD): Add "static".
13138 * gengtype-parse.c (require3): New.
13139 (require_template_declaration): Handle constant template arguments
13140 and nested templates.
13141 * gengtype-state.c: Don't include "double-int.h".
13142 * genpreds.c (write_one_predicate_function): Update comment.
13143 (write_tm_constrs_h): Add check for hval and lval use in
13144 CONST_WIDE_INT.
13145 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
13146 (add_to_sequence): Likewise.
13147 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
13148 and const_double_operand.
13149 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
13150 interfaces.
13151 * gimple-fold.c (get_base_constructor): Likewise.
13152 (fold_array_ctor_reference): Likewise.
13153 (fold_nonarray_ctor_reference): Likewise.
13154 (fold_const_aggregate_ref_1): Likewise.
13155 (gimple_val_nonnegative_real_p): Likewise.
13156 (gimple_fold_indirect_ref): Likewise.
13157 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
13158 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
13159 (struct slsr_cand_d): Change index to be widest_int.
13160 (struct incr_info_d): Change incr to be widest_int.
13161 (alloc_cand_and_find_basis): Use wide-int interfaces.
13162 (slsr_process_phi): Likewise.
13163 (backtrace_base_for_ref): Likewise. Return a widest_int.
13164 (restructure_reference): Take a widest_int instead of a double_int.
13165 (slsr_process_ref): Use wide-int interfaces.
13166 (create_mul_ssa_cand): Likewise.
13167 (create_mul_imm_cand): Likewise.
13168 (create_add_ssa_cand): Likewise.
13169 (create_add_imm_cand): Take a widest_int instead of a double_int.
13170 (slsr_process_add): Use wide-int interfaces.
13171 (slsr_process_cast): Likewise.
13172 (slsr_process_copy): Likewise.
13173 (dump_candidate): Likewise.
13174 (dump_incr_vec): Likewise.
13175 (replace_ref): Likewise.
13176 (cand_increment): Likewise. Return a widest_int.
13177 (cand_abs_increment): Likewise.
13178 (replace_mult_candidate): Take a widest_int instead of a double_int.
13179 (replace_unconditional_candidate): Use wide-int interfaces.
13180 (incr_vec_index): Take a widest_int instead of a double_int.
13181 (create_add_on_incoming_edge): Likewise.
13182 (create_phi_basis): Use wide-int interfaces.
13183 (replace_conditional_candidate): Likewise.
13184 (record_increment): Take a widest_int instead of a double_int.
13185 (record_phi_increments): Use wide-int interfaces.
13186 (phi_incr_cost): Take a widest_int instead of a double_int.
13187 (lowest_cost_path): Likewise.
13188 (total_savings): Likewise.
13189 (analyze_increments): Use wide-int interfaces.
13190 (ncd_with_phi): Take a widest_int instead of a double_int.
13191 (ncd_of_cand_and_phis): Likewise.
13192 (nearest_common_dominator_for_cands): Likewise.
13193 (insert_initializers): Use wide-int interfaces.
13194 (all_phi_incrs_profitable): Likewise.
13195 (replace_one_candidate): Likewise.
13196 (replace_profitable_candidates): Likewise.
13197 * godump.c: Include wide-int-print.h.
13198 (go_output_typedef): Use wide-int interfaces.
13199 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
13200 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
13201 (build_loop_iteration_domains): Likewise.
13202 * hooks.h: Include wide-int.h rather than double-int.h.
13203 (hook_bool_dint_dint_uint_bool_true): Delete.
13204 (hook_bool_wint_wint_uint_bool_true): Declare.
13205 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
13206 (hook_bool_wint_wint_uint_bool_true): New.
13207 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
13208 interfaces.
13209 (ubsan_expand_si_overflow_mul_check): Likewise.
13210 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
13211 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
13212 (get_ancestor_addr_info): Likewise.
13213 (ipa_modify_call_arguments): Likewise.
13214 * loop-doloop.c (doloop_modify): Likewise.
13215 (doloop_optimize): Likewise.
13216 * loop-iv.c (iv_number_of_iterations): Likewise.
13217 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
13218 (unroll_loop_constant_iterations): Likewise.
13219 (decide_unroll_runtime_iterations): Likewise.
13220 (unroll_loop_runtime_iterations): Likewise.
13221 (decide_peel_simple): Likewise.
13222 (decide_unroll_stupid): Likewise.
13223 * lto-streamer-in.c (streamer_read_wi): Add.
13224 (input_cfg): Use wide-int interfaces.
13225 (lto_input_tree_1): Likewise.
13226 * lto-streamer-out.c (streamer_write_wi): Add.
13227 (hash_tree): Use wide-int interfaces.
13228 (output_cfg): Likewise.
13229 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
13230 (GTFILES): Add wide-int.h and signop.h.
13231 (TAGS): Look for .cc files too.
13232 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
13233 * optabs.c (expand_subword_shift): Likewise.
13234 (expand_doubleword_shift): Likewise.
13235 (expand_absneg_bit): Likewise.
13236 (expand_copysign_absneg): Likewise.
13237 (expand_copysign_bit): Likewise.
13238 * postreload.c (reload_cse_simplify_set): Likewise.
13239 * predict.c (predict_iv_comparison): Likewise.
13240 * pretty-print.h: Include wide-int-print.h.
13241 (pp_wide_int) New.
13242 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
13243 * print-tree.c: Include wide-int-print.h.
13244 (print_node_brief): Use wide-int interfaces.
13245 (print_node): Likewise.
13246 * read-rtl.c (validate_const_wide_int): New.
13247 (read_rtx_code): Add CONST_WIDE_INT case.
13248 * real.c: Include wide-int.h.
13249 (real_to_integer2): Delete.
13250 (real_to_integer): New function, returning a wide_int.
13251 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
13252 (ten_to_ptwo): Update call to real_from_integer.
13253 (real_digit): Likewise.
13254 * real.h: Include signop.h, wide-int.h and insn-modes.h.
13255 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
13256 (REAL_VALUE_TO_INT): Delete.
13257 (real_to_integer): Declare a wide-int form.
13258 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
13259 * recog.c (const_int_operand): Improve comment.
13260 (const_scalar_int_operand): New.
13261 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
13262 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
13263 (split_double): Likewise.
13264 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
13265 (rtx_size): Likewise.
13266 (rtx_alloc_stat_v): New.
13267 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
13268 (cwi_output_hex): New.
13269 (iterative_hash_rtx): Handle CONST_WIDE_INT.
13270 (cwi_check_failed_bounds): New.
13271 * rtl.def (CONST_WIDE_INT): New.
13272 * rtl.h: Include <utility> and wide-int.h.
13273 (struct hwivec_def): New.
13274 (CWI_GET_NUM_ELEM): New.
13275 (CWI_PUT_NUM_ELEM): New.
13276 (struct rtx_def): Add num_elem and hwiv.
13277 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
13278 (CASE_CONST_UNIQUE): Likewise.
13279 (CASE_CONST_ANY): Likewise.
13280 (CONST_SCALAR_INT_P): Likewise.
13281 (CONST_WIDE_INT_P): New.
13282 (CWI_ELT): New.
13283 (HWIVEC_CHECK): New.
13284 (cwi_check_failed_bounds): New.
13285 (CWI_ELT): New.
13286 (HWIVEC_CHECK): New.
13287 (CONST_WIDE_INT_VEC) New.
13288 (CONST_WIDE_INT_NUNITS) New.
13289 (CONST_WIDE_INT_ELT) New.
13290 (rtx_mode_t): New type.
13291 (wi::int_traits <rtx_mode_t>): New.
13292 (wi::shwi): New.
13293 (wi::min_value): New.
13294 (wi::max_value): New.
13295 (rtx_alloc_v) New.
13296 (const_wide_int_alloc): New.
13297 (immed_wide_int_const): New.
13298 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
13299 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
13300 * signop.h: New file.
13301 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
13302 (simplify_const_unary_operation): Use wide-int interfaces.
13303 (simplify_binary_operation_1): Likewise.
13304 (simplify_const_binary_operation): Likewise.
13305 (simplify_const_relational_operation): Likewise.
13306 (simplify_immed_subreg): Likewise.
13307 * stmt.c (expand_case): Likewise.
13308 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
13309 signop rather than a bool.
13310 * stor-layout.c (layout_type): Use wide-int interfaces.
13311 (initialize_sizetypes): Update calls to
13312 set_min_and_max_values_for_integral_type.
13313 (set_min_and_max_values_for_integral_type): Take a signop rather
13314 than a bool. Use wide-int interfaces.
13315 (fixup_signed_type): Update accordingly. Remove
13316 HOST_BITS_PER_DOUBLE_INT limit.
13317 (fixup_unsigned_type): Likewise.
13318 * system.h (STATIC_CONSTANT_P): New.
13319 (STATIC_ASSERT): New.
13320 * target.def (can_use_doloop_p): Take widest_ints rather than
13321 double_ints.
13322 * target.h: Include wide-int.h rather than double-int.h.
13323 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
13324 than double_ints.
13325 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
13326 rather than INT_CST_LT_UNSIGNED.
13327 (can_use_doloop_if_innermost): Take widest_ints rather than
13328 double_ints.
13329 * tree-affine.c: Include wide-int-print.h.
13330 (double_int_ext_for_comb): Delete.
13331 (wide_int_ext_for_comb): New.
13332 (aff_combination_zero): Use wide-int interfaces.
13333 (aff_combination_const): Take a widest_int instead of a double_int.
13334 (aff_combination_elt): Use wide-int interfaces.
13335 (aff_combination_scale): Take a widest_int instead of a double_int.
13336 (aff_combination_add_elt): Likewise.
13337 (aff_combination_add_cst): Likewise.
13338 (aff_combination_add): Use wide-int interfaces.
13339 (aff_combination_convert): Likewise.
13340 (tree_to_aff_combination): Likewise.
13341 (add_elt_to_tree): Take a widest_int instead of a double_int.
13342 (aff_combination_to_tree): Use wide-int interfaces.
13343 (aff_combination_remove_elt): Likewise.
13344 (aff_combination_add_product): Take a widest_int instead of
13345 a double_int.
13346 (aff_combination_mult): Use wide-int interfaces.
13347 (aff_combination_expand): Likewise.
13348 (double_int_constant_multiple_p): Delete.
13349 (wide_int_constant_multiple_p): New.
13350 (aff_combination_constant_multiple_p): Take a widest_int pointer
13351 instead of a double_int pointer.
13352 (print_aff): Use wide-int interfaces.
13353 (get_inner_reference_aff): Take a widest_int pointer
13354 instead of a double_int pointer.
13355 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
13356 * tree-affine.h: Include wide-int.h.
13357 (struct aff_comb_elt): Change type of coef to widest_int.
13358 (struct affine_tree_combination): Change type of offset to widest_int.
13359 (double_int_ext_for_comb): Delete.
13360 (wide_int_ext_for_comb): New.
13361 (aff_combination_const): Use widest_int instead of double_int.
13362 (aff_combination_scale): Likewise.
13363 (aff_combination_add_elt): Likewise.
13364 (aff_combination_constant_multiple_p): Likewise.
13365 (get_inner_reference_aff): Likewise.
13366 (aff_comb_cannot_overlap_p): Likewise.
13367 (aff_combination_zero_p): Use wide-int interfaces.
13368 * tree.c: Include tree.h.
13369 (init_ttree): Use make_int_cst.
13370 (tree_code_size): Removed code for INTEGER_CST case.
13371 (tree_size): Add INTEGER_CST case.
13372 (make_node_stat): Update comment.
13373 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
13374 (build_int_cst_type): Use wide-int interfaces.
13375 (double_int_to_tree): Likewise.
13376 (double_int_fits_to_tree_p): Delete.
13377 (force_fit_type_double): Delete.
13378 (force_fit_type): New.
13379 (int_cst_hash_hash): Use wide-int interfaces.
13380 (int_cst_hash_eq): Likewise.
13381 (build_int_cst_wide): Delete.
13382 (wide_int_to_tree): New.
13383 (cache_integer_cst): Use wide-int interfaces.
13384 (build_low_bits_mask): Likewise.
13385 (cst_and_fits_in_hwi): Likewise.
13386 (real_value_from_int_cst): Likewise.
13387 (make_int_cst_stat): New.
13388 (integer_zerop): Use wide_int interfaces.
13389 (integer_onep): Likewise.
13390 (integer_all_onesp): Likewise.
13391 (integer_pow2p): Likewise.
13392 (integer_nonzerop): Likewise.
13393 (tree_log2): Likewise.
13394 (tree_floor_log2): Likewise.
13395 (tree_ctz): Likewise.
13396 (int_size_in_bytes): Likewise.
13397 (mem_ref_offset): Return an offset_int rather than a double_int.
13398 (build_type_attribute_qual_variant): Use wide_int interfaces.
13399 (type_hash_eq): Likewise
13400 (tree_int_cst_equal): Likewise.
13401 (tree_int_cst_lt): Delete.
13402 (tree_int_cst_compare): Likewise.
13403 (tree_fits_shwi_p): Use wide_int interfaces.
13404 (tree_fits_uhwi_p): Likewise.
13405 (tree_int_cst_sign_bit): Likewise.
13406 (tree_int_cst_sgn): Likewise.
13407 (tree_int_cst_min_precision): Take a signop rather than a bool.
13408 (simple_cst_equal): Use wide_int interfaces.
13409 (compare_tree_int): Likewise.
13410 (iterative_hash_expr): Likewise.
13411 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
13412 INT_CST_LT.
13413 (get_type_static_bounds): Use wide_int interfaces.
13414 (tree_int_cst_elt_check_failed): New.
13415 (build_common_tree_nodes): Reordered to set prec before filling in
13416 value.
13417 (int_cst_value): Check cst_and_fits_in_hwi.
13418 (widest_int_cst_value): Use wide_int interfaces.
13419 (upper_bound_in_type): Likewise.
13420 (lower_bound_in_type): Likewise.
13421 (num_ending_zeros): Likewise.
13422 (drop_tree_overflow): Likewise.
13423 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
13424 (gen_conditions_for_pow_cst_base): Likewise.
13425 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
13426 (group_case_labels_stmt): Use wide-int interfaces.
13427 (verify_gimple_assign_binary): Likewise.
13428 (print_loop): Likewise.
13429 * tree-chrec.c (tree_fold_binomial): Likewise.
13430 * tree-core.h (struct tree_base): Add int_length.
13431 (struct tree_int_cst): Change rep of value.
13432 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
13433 (dr_may_alias_p): Likewise.
13434 (max_stmt_executions_tree): Likewise.
13435 * tree.def (INTEGER_CST): Update comment.
13436 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
13437 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
13438 * tree-dump.c: Include wide-int.h and wide-int-print.h.
13439 (dequeue_and_dump): Use wide-int interfaces.
13440 * tree.h: Include wide-int.h.
13441 (NULL_TREE): Moved to earlier loc in file.
13442 (TREE_INT_CST_ELT_CHECK): New.
13443 (tree_int_cst_elt_check_failed): New.
13444 (TYPE_SIGN): New.
13445 (TREE_INT_CST): Delete.
13446 (TREE_INT_CST_LOW): Use wide-int interfaces.
13447 (TREE_INT_CST_HIGH): Delete.
13448 (TREE_INT_CST_NUNITS): New.
13449 (TREE_INT_CST_EXT_NUNITS): Likewise.
13450 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
13451 (TREE_INT_CST_ELT): Likewise.
13452 (INT_CST_LT): Delete.
13453 (tree_int_cst_elt_check): New (two forms).
13454 (type_code_size): Update comment.
13455 (make_int_cst_stat, make_int_cst): New.
13456 (tree_to_double_int): Delete.
13457 (double_int_fits_to_tree_p): Delete.
13458 (force_fit_type_double): Delete.
13459 (build_int_cstu): Replace with out-of-line function.
13460 (build_int_cst_wide): Delete.
13461 (tree_int_cst_lt): Define inline.
13462 (tree_int_cst_le): New.
13463 (tree_int_cst_compare): Define inline.
13464 (tree_int_cst_min_precision): Take a signop rather than a bool.
13465 (wi::int_traits <const_tree>): New.
13466 (wi::int_traits <tree>): New.
13467 (wi::extended_tree): New.
13468 (wi::int_traits <wi::extended_tree>): New.
13469 (wi::to_widest): New.
13470 (wi::to_offset): New.
13471 (wi::fits_to_tree_p): New.
13472 (wi::min_value): New.
13473 (wi::max_value): New.
13474 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
13475 (copy_tree_body_r): Likewise.
13476 * tree-object-size.c (compute_object_offset): Likewise.
13477 (addr_object_size): Likewise.
13478 * tree-predcom.c: Include wide-int-print.h.
13479 (struct dref_d): Change type of offset to widest_int.
13480 (dump_dref): Call wide-int printer.
13481 (aff_combination_dr_offset): Use wide-int interfaces.
13482 (determine_offset): Take a widest_int pointer rather than a
13483 double_int pointer.
13484 (split_data_refs_to_components): Use wide-int interfaces.
13485 (suitable_component_p): Likewise.
13486 (order_drefs): Likewise.
13487 (add_ref_to_chain): Likewise.
13488 (valid_initializer_p): Likewise.
13489 (determine_roots_comp): Likewise.
13490 * tree-pretty-print.c: Include wide-int-print.h.
13491 (dump_generic_node): Use wide-int interfaces.
13492 * tree-sra.c (sra_ipa_modify_expr): Likewise.
13493 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
13494 (move_fixed_address_to_symbol): Likewise.
13495 (move_hint_to_base): Likewise.
13496 (move_pointer_to_base): Likewise.
13497 (move_variant_to_index): Likewise.
13498 (most_expensive_mult_to_index): Likewise.
13499 (addr_to_parts): Likewise.
13500 (copy_ref_info): Likewise.
13501 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
13502 (indirect_refs_may_alias_p): Likewise.
13503 (stmt_kills_ref_p_1): Likewise.
13504 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
13505 * tree-ssa-ccp.c: Update comment at top of file. Include
13506 wide-int-print.h.
13507 (struct prop_value_d): Change type of mask to widest_int.
13508 (extend_mask): New function.
13509 (dump_lattice_value): Use wide-int interfaces.
13510 (get_default_value): Likewise.
13511 (set_constant_value): Likewise.
13512 (set_value_varying): Likewise.
13513 (valid_lattice_transition): Likewise.
13514 (set_lattice_value): Likewise.
13515 (value_to_double_int): Delete.
13516 (value_to_wide_int): New.
13517 (get_value_from_alignment): Use wide-int interfaces.
13518 (get_value_for_expr): Likewise.
13519 (do_dbg_cnt): Likewise.
13520 (ccp_finalize): Likewise.
13521 (ccp_lattice_meet): Likewise.
13522 (bit_value_unop_1): Use widest_ints rather than double_ints.
13523 (bit_value_binop_1): Likewise.
13524 (bit_value_unop): Use wide-int interfaces.
13525 (bit_value_binop): Likewise.
13526 (bit_value_assume_aligned): Likewise.
13527 (evaluate_stmt): Likewise.
13528 (ccp_fold_stmt): Likewise.
13529 (visit_cond_stmt): Likewise.
13530 (ccp_visit_stmt): Likewise.
13531 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13532 (constant_pointer_difference): Likewise.
13533 (associate_pointerplus): Likewise.
13534 (combine_conversions): Likewise.
13535 * tree-ssa-loop.h: Include wide-int.h.
13536 (struct tree_niter_desc): Change type of max to widest_int.
13537 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
13538 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
13539 (remove_redundant_iv_tests): Likewise.
13540 (canonicalize_loop_induction_variables): Likewise.
13541 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
13542 (constant_multiple_of): Take a widest_int pointer instead of
13543 a double_int pointer.
13544 (get_computation_aff): Use wide-int interfaces.
13545 (ptr_difference_cost): Likewise.
13546 (difference_cost): Likewise.
13547 (get_loop_invariant_expr_id): Likewise.
13548 (get_computation_cost_at): Likewise.
13549 (iv_elimination_compare_lt): Likewise.
13550 (may_eliminate_iv): Likewise.
13551 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
13552 instead of double_int.
13553 (max_loop_iterations): Likewise.
13554 (max_stmt_executions): Likewise.
13555 (estimated_stmt_executions): Likewise.
13556 * tree-ssa-loop-niter.c: Include wide-int-print.h.
13557 (split_to_var_and_offset): Use wide-int interfaces.
13558 (determine_value_range): Likewise.
13559 (bound_difference_of_offsetted_base): Likewise.
13560 (bounds_add): Take a widest_int instead of a double_int.
13561 (number_of_iterations_ne_max): Use wide-int interfaces.
13562 (number_of_iterations_ne): Likewise.
13563 (number_of_iterations_lt_to_ne): Likewise.
13564 (assert_loop_rolls_lt): Likewise.
13565 (number_of_iterations_lt): Likewise.
13566 (number_of_iterations_le): Likewise.
13567 (number_of_iterations_cond): Likewise.
13568 (number_of_iterations_exit): Likewise.
13569 (finite_loop_p): Likewise.
13570 (derive_constant_upper_bound_assign): Likewise.
13571 (derive_constant_upper_bound): Return a widest_int.
13572 (derive_constant_upper_bound_ops): Likewise.
13573 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
13574 (record_estimate): Take a widest_int rather than a double_int.
13575 (record_nonwrapping_iv): Use wide-int interfaces.
13576 (double_int_cmp): Delete.
13577 (wide_int_cmp): New.
13578 (bound_index): Take a widest_int rather than a double_int.
13579 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
13580 (maybe_lower_iteration_bound): Likewise.
13581 (estimate_numbers_of_iterations_loop): Likewise.
13582 (estimated_loop_iterations): Take a widest_int pointer than than
13583 a double_int pointer.
13584 (estimated_loop_iterations_int): Use wide-int interfaces.
13585 (max_loop_iterations): Take a widest_int pointer than than
13586 a double_int pointer.
13587 (max_loop_iterations_int): Use wide-int interfaces.
13588 (max_stmt_executions): Take a widest_int pointer than than
13589 a double_int pointer.
13590 (estimated_stmt_executions): Likewise.
13591 (n_of_executions_at_most): Use wide-int interfaces.
13592 (scev_probably_wraps_p): Likewise.
13593 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
13594 to real_to_integer.
13595 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
13596 interfaces.
13597 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
13598 double_ints. Adjust for trailing_wide_ints <3> representation.
13599 (set_nonzero_bits): Likewise.
13600 (get_range_info): Return wide_ints rather than double_ints.
13601 Adjust for trailing_wide_ints <3> representation.
13602 (get_nonzero_bits): Likewise.
13603 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
13604 representation.
13605 * tree-ssanames.h (struct range_info_def): Replace min, max and
13606 nonzero_bits with a trailing_wide_ints <3>.
13607 (set_range_info): Use wide_int_refs rather than double_ints.
13608 (set_nonzero_bits): Likewise.
13609 (get_range_info): Return wide_ints rather than double_ints.
13610 (get_nonzero_bits): Likewise.
13611 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
13612 * tree-ssa-pre.c (phi_translate_1): Likewise.
13613 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
13614 (acceptable_pow_call): Likewise.
13615 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
13616 interfaces.
13617 (vn_reference_fold_indirect): Likewise.
13618 (vn_reference_maybe_forwprop_address): Likewise.
13619 (valueize_refs_1): Likewise.
13620 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
13621 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
13622 tree_int_cst_lt and tree_int_cst_le.
13623 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
13624 interfaces.
13625 (streamer_alloc_tree): Likewise.
13626 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
13627 (streamer_write_tree_header): Likewise.
13628 (streamer_write_integer_cst): Likewise.
13629 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13630 (build_constructors): Likewise.
13631 (array_value_type): Likewise.
13632 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
13633 (vect_check_gather): Likewise.
13634 * tree-vect-generic.c (build_replicated_const): Likewise.
13635 (expand_vector_divmod): Likewise.
13636 * tree-vect-loop.c (vect_transform_loop): Likewise.
13637 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
13638 (vect_do_peeling_for_alignment): Likewise.
13639 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
13640 * tree-vrp.c: Include wide-int.h.
13641 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
13642 (extract_range_from_assert): Use wide-int interfaces.
13643 (vrp_int_const_binop): Likewise.
13644 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
13645 double_int pointers.
13646 (ranges_from_anti_range): Use wide-int interfaces.
13647 (quad_int_cmp): Delete.
13648 (quad_int_pair_sort): Likewise.
13649 (extract_range_from_binary_expr_1): Use wide-int interfaces.
13650 (extract_range_from_unary_expr_1): Likewise.
13651 (adjust_range_with_scev): Likewise.
13652 (masked_increment): Take and return wide_ints rather than double_ints.
13653 (register_edge_assert_for_2): Use wide-int interfaces.
13654 (check_array_ref): Likewise.
13655 (search_for_addr_array): Likewise.
13656 (maybe_set_nonzero_bits): Likewise.
13657 (union_ranges): Pass an integer of the correct type instead of
13658 using integer_one_node.
13659 (intersect_ranges): Likewise.
13660 (simplify_truth_ops_using_ranges): Likewise.
13661 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
13662 (range_fits_type_p): Likewise.
13663 (simplify_cond_using_ranges): Likewise. Take a signop rather than
13664 a bool.
13665 (simplify_conversion_using_ranges): Use wide-int interfaces.
13666 (simplify_float_conversion_using_ranges): Likewise.
13667 (vrp_finalize): Likewise.
13668 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
13669 (gimple_stringops_transform): Likewise.
13670 * varasm.c (decode_addr_const): Likewise.
13671 (const_hash_1): Likewise.
13672 (const_rtx_hash_1): Likewise
13673 (output_constant): Likewise.
13674 (array_size_for_constructor): Likewise.
13675 (output_constructor_regular_field): Likewise.
13676 (output_constructor_bitfield): Likewise.
13677 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
13678 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
13679 GENERATOR_FILEs.
13680 * gencheck.c: Define BITS_PER_UNIT.
13681 * wide-int.cc: New.
13682 * wide-int.h: New.
13683 * wide-int-print.cc: New.
13684 * wide-int-print.h: New.
13685
13686 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13687
13688 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
13689
13690 2014-05-06 Richard Biener <rguenther@suse.de>
13691
13692 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
13693 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
13694 (TODO_verify_all): Adjust.
13695 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
13696 TODO_verify_stmts and TODO_verify_rtl_sharing.
13697 * bb-reorder.c: Likewise.
13698 * cfgexpand.c: Likewise.
13699 * cprop.c: Likewise.
13700 * cse.c: Likewise.
13701 * function.c: Likewise.
13702 * fwprop.c: Likewise.
13703 * gcse.c: Likewise.
13704 * gimple-ssa-isolate-paths.c: Likewise.
13705 * gimple-ssa-strength-reduction.c: Likewise.
13706 * ipa-split.c: Likewise.
13707 * loop-init.c: Likewise.
13708 * loop-unroll.c: Likewise.
13709 * lower-subreg.c: Likewise.
13710 * modulo-sched.c: Likewise.
13711 * postreload-gcse.c: Likewise.
13712 * predict.c: Likewise.
13713 * recog.c: Likewise.
13714 * sched-rgn.c: Likewise.
13715 * store-motion.c: Likewise.
13716 * tracer.c: Likewise.
13717 * trans-mem.c: Likewise.
13718 * tree-call-cdce.c: Likewise.
13719 * tree-cfg.c: Likewise.
13720 * tree-cfgcleanup.c: Likewise.
13721 * tree-complex.c: Likewise.
13722 * tree-eh.c: Likewise.
13723 * tree-emutls.c: Likewise.
13724 * tree-if-conv.c: Likewise.
13725 * tree-into-ssa.c: Likewise.
13726 * tree-loop-distribution.c: Likewise.
13727 * tree-object-size.c: Likewise.
13728 * tree-parloops.c: Likewise.
13729 * tree-pass.h: Likewise.
13730 * tree-sra.c: Likewise.
13731 * tree-ssa-ccp.c: Likewise.
13732 * tree-ssa-copy.c: Likewise.
13733 * tree-ssa-copyrename.c: Likewise.
13734 * tree-ssa-dce.c: Likewise.
13735 * tree-ssa-dom.c: Likewise.
13736 * tree-ssa-dse.c: Likewise.
13737 * tree-ssa-forwprop.c: Likewise.
13738 * tree-ssa-ifcombine.c: Likewise.
13739 * tree-ssa-loop-ch.c: Likewise.
13740 * tree-ssa-loop-ivcanon.c: Likewise.
13741 * tree-ssa-loop.c: Likewise.
13742 * tree-ssa-math-opts.c: Likewise.
13743 * tree-ssa-phiopt.c: Likewise.
13744 * tree-ssa-phiprop.c: Likewise.
13745 * tree-ssa-pre.c: Likewise.
13746 * tree-ssa-reassoc.c: Likewise.
13747 * tree-ssa-sink.c: Likewise.
13748 * tree-ssa-strlen.c: Likewise.
13749 * tree-ssa-tail-merge.c: Likewise.
13750 * tree-ssa-uncprop.c: Likewise.
13751 * tree-switch-conversion.c: Likewise.
13752 * tree-tailcall.c: Likewise.
13753 * tree-vect-generic.c: Likewise.
13754 * tree-vectorizer.c: Likewise.
13755 * tree-vrp.c: Likewise.
13756 * tsan.c: Likewise.
13757 * var-tracking.c: Likewise.
13758 * bt-load.c: Likewise.
13759 * cfgcleanup.c: Likewise.
13760 * combine-stack-adj.c: Likewise.
13761 * combine.c: Likewise.
13762 * compare-elim.c: Likewise.
13763 * config/epiphany/resolve-sw-modes.c: Likewise.
13764 * config/i386/i386.c: Likewise.
13765 * config/mips/mips.c: Likewise.
13766 * config/s390/s390.c: Likewise.
13767 * config/sh/sh_treg_combine.cc: Likewise.
13768 * config/sparc/sparc.c: Likewise.
13769 * dce.c: Likewise.
13770 * dse.c: Likewise.
13771 * final.c: Likewise.
13772 * ifcvt.c: Likewise.
13773 * mode-switching.c: Likewise.
13774 * passes.c: Likewise.
13775 * postreload.c: Likewise.
13776 * ree.c: Likewise.
13777 * reg-stack.c: Likewise.
13778 * regcprop.c: Likewise.
13779 * regrename.c: Likewise.
13780 * web.c: Likewise.
13781
13782 2014-05-06 Richard Biener <rguenther@suse.de>
13783
13784 PR middle-end/61070
13785 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
13786 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
13787
13788 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
13789
13790 PR ipa/60965
13791 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
13792
13793 2014-05-05 Radovan Obradovic <robradovic@mips.com>
13794 Tom de Vries <tom@codesourcery.com>
13795
13796 * target.def (call_fusage_contains_non_callee_clobbers): New
13797 DEFHOOKPOD.
13798 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
13799 Hooks to @menu.
13800 (@node Miscellaneous Register Hooks): New node.
13801 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
13802 * doc/tm.texi: Regenerate.
13803
13804 2014-05-05 Marek Polacek <polacek@redhat.com>
13805
13806 PR driver/61065
13807 * opts.c (common_handle_option): Call error_at instead of warning_at.
13808
13809 2014-05-05 Richard Biener <rguenther@suse.de>
13810
13811 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
13812 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
13813 under the TODO_verify_il umbrella.
13814
13815 2014-05-05 Richard Biener <rguenther@suse.de>
13816
13817 * passes.c (execute_function_todo): Move TODO_verify_flow under
13818 the TODO_verify_ul umbrella.
13819
13820 2014-05-05 Richard Biener <rguenther@suse.de>
13821
13822 PR middle-end/61010
13823 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
13824 X & CST away from a CST that is the mask of a mode.
13825
13826 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13827
13828 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
13829 int argument to enum machine_mode.
13830 (picochip_class_max_nregs): Ditto.
13831 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
13832 (picochip_class_max_nregs): Ditto.
13833
13834 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13835
13836 * target.def: Add new target hook.
13837 * doc/tm.texi: Regenerate.
13838 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
13839 * targhooks.c (default_keep_leaf_when_profiled): New function.
13840
13841 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
13842 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
13843
13844 2014-05-05 Bin Cheng <bin.cheng@arm.com>
13845
13846 PR tree-optimization/60363
13847 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
13848 (copy_phi_args): New parameters. Call get_value_locus_in_path.
13849 (update_destination_phis): New parameter.
13850 (create_edge_and_update_destination_phis): Ditto.
13851 (ssa_fix_duplicate_block_edges): Pass new arguments.
13852 (thread_single_edge): Ditto.
13853
13854 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
13855
13856 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
13857 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
13858 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
13859 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
13860 Use RS6000_BTM_HARD_FLOAT.
13861 (BU_MISC_2): Likewise.
13862 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13863 RS6000_BTM_HARD_FLOAT.
13864 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
13865 is explicitly used.
13866 (rs6000_invalid_builtin): Add hard floating builtin support.
13867 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
13868 hard float builtins.
13869 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
13870
13871 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13872
13873 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
13874 Add missing function* argument.
13875
13876 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13877
13878 * lra-constraints.c (valid_address_p): Move earlier in file.
13879 Add a constraint argument to the address_info version.
13880 (satisfies_memory_constraint_p): New function.
13881 (satisfies_address_constraint_p): Likewise.
13882 (process_alt_operands, curr_insn_transform): Use them.
13883 (process_address): Pass the constraint to valid_address_p when
13884 checking address operands.
13885
13886 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13887
13888 * config/mips/mips.c (mips_isa_rev): New variable.
13889 (mips_set_architecture): Set it.
13890 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
13891 from mips_isa_rev.
13892 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
13893 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
13894 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
13895 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
13896 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
13897 conditions in terms of mips_isa_rev.
13898 (mips_isa_rev): Declare.
13899
13900 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13901
13902 * config/sh/sh-mem.cc: Use tabs instead of spaces.
13903 (prob_unlikely, prob_likely): Make variables const.
13904
13905 2014-05-03 Denis Chertykov <chertykov@gmail.com>
13906
13907 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
13908
13909 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13910
13911 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
13912
13913 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13914
13915 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
13916 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
13917 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
13918 functions.
13919 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
13920 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
13921 sh_pass_in_reg_p.
13922 Replace usage of ROUND_REG with sh_round_reg.
13923 Use CEIL instead of ROUND_ADVANCE.
13924
13925 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13926
13927 PR target/61026
13928 * config/sh/sh.c: Include stdlib headers before everything else.
13929
13930 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13931
13932 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
13933 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
13934 (gimplify_adjust_omp_clauses): Simd region is never
13935 directly nested in combined parallel. Instead, for linear
13936 with copyin/copyout, if in combined for simd loop, make decl
13937 firstprivate/lastprivate on OMP_FOR.
13938 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13939 expand_omp_for_static_chunk): When setting endvar, also set
13940 fd->loop.v to the same value.
13941
13942 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13943
13944 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
13945
13946 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
13947
13948 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
13949 expression.
13950
13951 2014-05-02 Marek Polacek <polacek@redhat.com>
13952
13953 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
13954
13955 2014-05-02 Kito Cheng <kito@0xlab.org>
13956
13957 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
13958 to a C expression marco.
13959 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
13960 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
13961 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
13962 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
13963 HONOR_REG_ALLOC_ORDER.
13964 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
13965
13966 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13967
13968 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
13969
13970 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13971
13972 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
13973
13974 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13975
13976 * tree-if-conv.c (is_cond_scalar_reduction): New function.
13977 (convert_scalar_cond_reduction): Likewise.
13978 (predicate_scalar_phi): Add recognition and transformation
13979 of simple conditioanl reduction to be vectorizable.
13980
13981 2014-05-01 Marek Polacek <polacek@redhat.com>
13982
13983 PR c/43245
13984 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
13985
13986 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
13987
13988 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
13989 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
13990 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
13991 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
13992 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
13993 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
13994 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
13995 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
13996
13997 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
13998
13999 * config/arc/arc.opt (mlra): Move comment above option name
14000 to avoid mis-parsing as language options.
14001
14002 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14003
14004 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
14005 * config/sol2.h: ... here.
14006 * config/sol2-10.h: Remove.
14007
14008 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
14009 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
14010 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
14011 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
14012 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
14013 * config/sol2.h: ... here.
14014 (SECTION_NAME_FORMAT): Don't redefine.
14015 (STARTFILE_ARCH32_SPEC): Rename to ...
14016 (STARTFILE_ARCH_SPEC): ... this.
14017 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14018 * config/sparc/sol2.h: ... here.
14019 (SECTION_NAME_FORMAT): Don't undef.
14020 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
14021 (SUBTARGET_EXTRA_SPECS): Remove.
14022 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
14023
14024 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
14025 (MD_STARTFILE_PREFIX): Remove.
14026 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
14027 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
14028 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
14029 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
14030 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
14031 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
14032 * config/i386/sol2.h: ... here.
14033 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
14034 * config/i386/sol2-bi.h: Remove.
14035 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
14036 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
14037
14038 * config/i386/t-sol2-64: Rename to ...
14039 * config/i386/t-sol2: ... this.
14040 * config/sparc/t-sol2-64: Rename to ...
14041 * config/sparc/t-sol2: ... this.
14042
14043 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
14044 sol2_tm_file_head, sol2_tm_file_tail.
14045 Include ${cpu_type}/sol2.h before sol2.h.
14046 Remove sol2-10.h.
14047 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
14048 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
14049 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
14050 Reflect i386/t-sol2-64 renaming.
14051 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
14052 Reflect sparc/t-sol2-64 renaming.
14053
14054 2014-04-30 Richard Biener <rguenther@suse.de>
14055
14056 * passes.c (execute_function_todo): Move TODO_verify_stmts
14057 and TODO_verify_ssa under the TODO_verify_il umbrella.
14058 * tree-ssa.h (verify_ssa): Adjust prototype.
14059 * tree-ssa.c (verify_ssa): Add parameter to tell whether
14060 we should verify SSA operands.
14061 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
14062 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
14063 whether we should verify whether not throwing stmts have EH info.
14064 * graphite-scop-detection.c (create_sese_edges): Adjust.
14065 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
14066 * tree-eh.c (lower_try_finally_switch): Do not add the
14067 default case label twice.
14068
14069 2014-04-30 Marek Polacek <polacek@redhat.com>
14070
14071 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
14072 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
14073 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
14074 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
14075
14076 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
14077
14078 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
14079 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
14080 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
14081 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
14082 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
14083 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
14084 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
14085 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
14086
14087 2014-04-29 David Malcolm <dmalcolm@redhat.com>
14088
14089 * tree-cfg.c (dump_function_to_file): Dump the return type of
14090 functions, in a line to itself before the function body, mimicking
14091 the layout of a C function.
14092
14093 2014-04-29 Jakub Jelinek <jakub@redhat.com>
14094
14095 PR tree-optimization/60971
14096 * tree-tailcall.c (process_assignment): Reject conversions which
14097 reduce precision.
14098
14099 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
14100
14101 * calls.c (initialize_argument_information): Always treat
14102 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
14103 (expand_call): Likewise.
14104 (emit_library_call_calue_1): Likewise.
14105 * expr.c (PUSH_ARGS_REVERSED): Do not define.
14106 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
14107 code accordingly.
14108
14109 2014-04-29 Nick Clifton <nickc@redhat.com>
14110
14111 * config/msp430/msp430.md (umulsidi): Fix typo.
14112 (mulhisi3): Enable even inside interrupt handlers.
14113 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
14114 bigger return address pushed in large mode.
14115
14116 2014-04-29 Nick Clifton <nickc@redhat.com>
14117
14118 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
14119 (arc_init_reg_tables): Use a machine_mode enum to iterate over
14120 available modes.
14121 * config/m32r/m32r.c (init_reg_tables): Likewise.
14122 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
14123 enum to hold the modes.
14124
14125 2014-04-29 Richard Biener <rguenther@suse.de>
14126
14127 * dominance.c (free_dominance_info): Add overload with
14128 function parameter.
14129 (dom_info_state): Likewise.
14130 (dom_info_available_p): Likewise.
14131 * basic-block.h (free_dominance_info, dom_info_state,
14132 dom_info_available_p): Declare overloads.
14133 * passes.c (execute_function_todo): Verify that verifiers
14134 don't change dominator info state. Drop dominator info
14135 for IPA pass invocations.
14136 * cgraph.c (release_function_body): Restore asserts that
14137 dominator information is released.
14138
14139 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
14140
14141 * doc/invoke.texi: Fix typo.
14142 * tree-vrp.c: Fix typos.
14143 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
14144
14145 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14146
14147 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
14148
14149 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
14150
14151 * config/aarch64/aarch64-builtins.c
14152 (aarch64_types_storestruct_lane_qualifiers): New.
14153 (TYPES_STORESTRUCT_LANE): Likewise.
14154 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
14155 (st3_lane): Likewise.
14156 (st4_lane): Likewise.
14157 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
14158 (vec_store_lanesci_lane<mode>): Likewise.
14159 (vec_store_lanesxi_lane<mode>): Likewise.
14160 (aarch64_st2_lane<VQ:mode>): Likewise.
14161 (aarch64_st3_lane<VQ:mode>): Likewise.
14162 (aarch64_st4_lane<VQ:mode>): Likewise.
14163 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
14164 * config/aarch64/arm_neon.h
14165 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
14166 use new macro arguments.
14167 (__ST3_LANE_FUNC): Likewise.
14168 (__ST4_LANE_FUNC): Likewise.
14169 * config/aarch64/iterators.md (V_TWO_ELEM): New.
14170 (V_THREE_ELEM): Likewise.
14171 (V_FOUR_ELEM): Likewise.
14172
14173 2014-04-28 David Malcolm <dmalcolm@redhat.com>
14174
14175 * doc/gimple.texi: Replace the description of the now-defunct
14176 union gimple_statement_d with a diagram showing the
14177 gimple_statement_base class hierarchy and its relationships to
14178 the GSS_ and GIMPLE_ enums.
14179
14180 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
14181
14182 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
14183 * config/aarch64/aarch64.c
14184 (aarch64_cannot_change_mode_class): Weaken conditions.
14185 (aarch64_modes_tieable_p): New.
14186 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
14187
14188 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
14189
14190 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
14191 (loadsync_<mode>): Change mode.
14192 (load_quadpti, store_quadpti): New.
14193 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
14194 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
14195
14196 2014-04-28 Martin Jambor <mjambor@suse.cz>
14197
14198 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
14199 same alias type as the original statement.
14200 (subreplacement_assignment_data): New type.
14201 (handle_unscalarized_data_in_subtree): New type of parameter,
14202 generate new memory accesses with same alias type as the original
14203 statement.
14204 (load_assign_lhs_subreplacements): Likewise.
14205 (sra_modify_constructor_assign): Generate new memory accesses with
14206 same alias type as the original statement.
14207
14208 2014-04-28 Richard Biener <rguenther@suse.de>
14209
14210 * tree-pass.h (TODO_verify_il): Define.
14211 (TODO_verify_all): Complete properly.
14212 * passes.c (execute_function_todo): Move existing loop-closed
14213 SSA verification under TODO_verify_il.
14214 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
14215 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
14216 Fix tree sharing issue.
14217
14218 2014-04-28 Richard Biener <rguenther@suse.de>
14219
14220 PR middle-end/60092
14221 * builtins.def (DEF_C11_BUILTIN): Add.
14222 (BUILT_IN_ALIGNED_ALLOC): Likewise.
14223 * coretypes.h (enum function_class): Add function_c11_misc.
14224 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14225 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
14226 (call_may_clobber_ref_p_1): Likewise.
14227 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14228 (mark_all_reaching_defs_necessary_1): Likewise.
14229 (propagate_necessity): Likewise.
14230 (eliminate_unnecessary_stmts): Likewise.
14231 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
14232
14233 2014-04-28 Richard Biener <rguenther@suse.de>
14234
14235 * tree-vrp.c (vrp_var_may_overflow): Remove.
14236 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
14237 with overflow immediately bump to one before that value and
14238 let iteration figure out overflow status.
14239
14240 2014-04-28 Richard Biener <rguenther@suse.de>
14241
14242 * configure.ac: Do valgrind header checks unconditionally.
14243 Add --enable-valgrind-annotations.
14244 * system.h: Guard valgrind header inclusion with
14245 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
14246 * alloc-pool.c (pool_alloc, pool_free): Use
14247 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
14248 to guard possibly dead code.
14249 * config.in: Regenerated.
14250 * configure: Likewise.
14251
14252 2014-04-28 Jeff Law <law@redhat.com>
14253
14254 PR tree-optimization/60902
14255 * tree-ssa-threadedge.c
14256 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
14257 over real defs when invalidating outputs from statements that do not
14258 produce useful outputs for threading.
14259
14260 2014-04-28 Richard Biener <rguenther@suse.de>
14261
14262 PR tree-optimization/60979
14263 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
14264 SCOPs that end in a block with a successor with abnormal
14265 predecessors.
14266
14267 2014-04-28 Richard Biener <rguenther@suse.de>
14268
14269 * tree-pass.h (execute_pass_list): Adjust prototype.
14270 * passes.c (pass_manager::execute_early_local_passes): Adjust.
14271 (do_per_function): Change callback signature, push all actual
14272 work to the callbals.
14273 (do_per_function_toporder): Likewise.
14274 (execute_function_dump): Adjust.
14275 (execute_function_todo): Likewise.
14276 (clear_last_verified): Likewise.
14277 (verify_curr_properties): Likewise.
14278 (update_properties_after_pass): Likewise.
14279 (execute_pass_list_1): Split out from ...
14280 (execute_pass_list): ... here. Adjust.
14281 (execute_ipa_pass_list): Likewise.
14282 * cgraphunit.c (cgraph_add_new_function): Adjust.
14283 (analyze_function): Likewise.
14284 (expand_function): Likewise.
14285 * cgraph.c (release_function_body): Free dominance info
14286 here instead of asserting it was magically freed elsewhere.
14287
14288 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
14289
14290 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
14291 * configure: Regenerate.
14292 * config/sparc/sparc.opt (muser-mode): New option.
14293 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
14294 for LEON3.
14295 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
14296 * doc/invoke.texi (SPARC options): Document -muser-mode.
14297
14298 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
14299
14300 * cselib.c (find_slot_memmode): Delete.
14301 (cselib_hasher): Change compare_type to a struct.
14302 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
14303 constants.
14304 (preserve_constants_and_equivs): Adjust for new compare_type.
14305 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
14306 (wrap_constant): Delete.
14307 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
14308
14309 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
14310
14311 * doc/install.texi (Building with profile feedback): Remove
14312 outdated sentence.
14313
14314 2014-04-26 Tom de Vries <tom@codesourcery.com>
14315
14316 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
14317 array accesses.
14318
14319 2014-04-25 Cary Coutant <ccoutant@google.com>
14320
14321 PR debug/60929
14322 * dwarf2out.c (should_move_die_to_comdat): A type definition
14323 can contain a subprogram definition, but don't move it to a
14324 comdat unit.
14325 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
14326 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
14327 from original DIE.
14328 (clone_tree_hash): Rename to...
14329 (clone_tree_partial): ...this; change callers. Copy
14330 DW_TAG_subprogram DIEs as declarations.
14331 (copy_decls_walk): Don't copy children of a declaration into a
14332 type unit.
14333
14334 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
14335
14336 PR target/60969
14337 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
14338 alternative 12.
14339
14340 2014-04-25 Jiong Wang <jiong.wang@arm.com>
14341
14342 * config/arm/predicates.md (call_insn_operand): Add long_call check.
14343 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
14344 reg for long_call.
14345 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
14346 restriction.
14347
14348 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14349
14350 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
14351
14352 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14353
14354 PR tree-optimization/60930
14355 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
14356 creating a multiply candidate by folding two constant
14357 multiplicands when the result overflows.
14358
14359 2014-04-25 Jakub Jelinek <jakub@redhat.com>
14360
14361 PR tree-optimization/60960
14362 * tree-vect-generic.c (expand_vector_operation): Only call
14363 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
14364
14365 2014-04-25 Tom de Vries <tom@codesourcery.com>
14366
14367 * expr.c (clobber_reg_mode): New function.
14368 * expr.h (clobber_reg): New function.
14369
14370 2014-04-25 Tom de Vries <tom@codesourcery.com>
14371
14372 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
14373 clobbers.
14374
14375 2014-04-25 Radovan Obradovic <robradovic@mips.com>
14376 Tom de Vries <tom@codesourcery.com>
14377
14378 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
14379 handle.
14380 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
14381 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
14382 new argument to find_all_hard_reg_sets call.
14383
14384 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14385
14386 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
14387 Use HOST_WIDE_INT_C for mask literal.
14388 (aarch_rev16_shleft_mask_imm_p): Likewise.
14389
14390 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
14391
14392 PR target/60941
14393 * config/sparc/sparc.md (ashlsi3_extend): Delete.
14394
14395 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
14396
14397 PR preprocessor/56540
14398 * config/i386/i386-c.c (ix86_target_macros): Define
14399 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
14400
14401 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14402
14403 * configure.ac (tga_func): Remove.
14404 (LIB_TLS_SPEC): Remove.
14405 * configure: Regenerate.
14406 * config.in: Regenerate.
14407 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
14408
14409 2014-04-25 Richard Biener <rguenther@suse.de>
14410
14411 PR ipa/60912
14412 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
14413 call stmt use/clobber sets during stmt walk instead of
14414 walking the possibly incomplete set of caller edges.
14415
14416 2014-04-25 Richard Biener <rguenther@suse.de>
14417
14418 PR ipa/60911
14419 * passes.c (apply_ipa_transforms): Inline into only caller ...
14420 (execute_one_pass): ... here. Properly bring in function
14421 bodies for nodes we want to apply IPA transforms to.
14422
14423 2014-04-24 Cong Hou <congh@google.com>
14424
14425 PR tree-optimization/60896
14426 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
14427 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
14428 (vect_mark_pattern_stmts): Set the def type of all statements in
14429 PATTERN_DEF_SEQ as vect_internal_def.
14430
14431 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14432
14433 * doc/extend.texi (PowerPC Built-in Functions): Document new
14434 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
14435 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
14436
14437 * config/rs6000/predicates.md (const_0_to_3_operand): New
14438 predicate to match 0..3 integer constants.
14439
14440 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
14441 to support adding miscellaneous builtin functions.
14442 (BU_DFP_MISC_2): Likewise.
14443 (BU_P7_MISC_1): Likewise.
14444 (BU_P7_MISC_2): Likewise.
14445 (BU_P8V_MISC_3): Likewise.
14446 (BU_MISC_1): Likewise.
14447 (BU_MISC_2): Likewise.
14448 (DIVWE): Add extended divide builtin functions.
14449 (DIVWEO): Likewise.
14450 (DIVWEU): Likewise.
14451 (DIVWEUO): Likewise.
14452 (DIVDE): Likewise.
14453 (DIVDEO): Likewise.
14454 (DIVDEU): Likewise.
14455 (DIVDEUO): Likewise.
14456 (DXEX): Add decimal floating-point builtin functions.
14457 (DXEXQ): Likewise.
14458 (DDEDPD): Likewise.
14459 (DDEDPDQ): Likewise.
14460 (DENBCD): Likewise.
14461 (DENBCDQ): Likewise.
14462 (DIEX): Likewise.
14463 (DIEXQ): Likewise.
14464 (DSCLI): Likewise.
14465 (DSCLIQ): Likewise.
14466 (DSCRI): Likewise.
14467 (DSCRIQ): Likewise.
14468 (CDTBCD): Add new BCD builtin functions.
14469 (CBCDTD): Likewise.
14470 (ADDG6S): Likewise.
14471 (BCDADD): Likewise.
14472 (BCDADD_LT): Likewise.
14473 (BCDADD_EQ): Likewise.
14474 (BCDADD_GT): Likewise.
14475 (BCDADD_OV): Likewise.
14476 (BCDSUB): Likewise.
14477 (BCDSUB_LT): Likewise.
14478 (BCDSUB_EQ): Likewise.
14479 (BCDSUB_GT): Likewise.
14480 (BCDSUB_OV): Likewise.
14481 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
14482 (UNPACK_TD): Likewise.
14483 (PACK_TF): Likewise.
14484 (UNPACK_TF): Likewise.
14485 (UNPACK_TF_0): Likewise.
14486 (UNPACK_TF_1): Likewise.
14487 (PACK_V1TI): Likewise.
14488 (UNPACK_V1TI): Likewise.
14489
14490 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
14491 support for decimal floating point builtin functions.
14492 (rs6000_expand_ternop_builtin): Add checks for the new builtin
14493 functions that take constant arguments.
14494 (rs6000_invalid_builtin): Add decimal floating point builtin support.
14495 (rs6000_init_builtins): Setup long double, _Decimal64, and
14496 _Decimal128 types for new builtin functions.
14497 (builtin_function_type): Set the unsigned flags appropriately for
14498 the new builtin functions.
14499 (rs6000_opt_masks): Add support for decimal floating point builtin
14500 functions.
14501
14502 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
14503 floating point builtin functions.
14504 (RS6000_BTM_COMMON): Likewise.
14505 (RS6000_BTI_long_double): Likewise.
14506 (RS6000_BTI_dfloat64): Likewise.
14507 (RS6000_BTI_dfloat128): Likewise.
14508 (long_double_type_internal_node): Likewise.
14509 (dfloat64_type_internal_node): Likewise.
14510 (dfloat128_type_internal_node): Likewise.
14511
14512 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
14513 2.07 bcd arithmetic instructions.
14514 (UNSPEC_BCDSUB): Likewise.
14515 (UNSPEC_BCD_OVERFLOW): Likewise.
14516 (UNSPEC_BCD_ADD_SUB): Likewise.
14517 (bcd_add_sub): Likewise.
14518 (BCD_TEST): Likewise.
14519 (bcd<bcd_add_sub>): Likewise.
14520 (bcd<bcd_add_sub>_test): Likewise.
14521 (bcd<bcd_add_sub>_test2): Likewise.
14522 (bcd<bcd_add_sub>_<code>): Likewise.
14523 (peephole2 for combined bcd ops): Likewise.
14524
14525 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
14526 decimal floating point builtin functions.
14527 (UNSPEC_DENBCD): Likewise.
14528 (UNSPEC_DXEX): Likewise.
14529 (UNSPEC_DIEX): Likewise.
14530 (UNSPEC_DSCLI): Likewise.
14531 (UNSPEC_DSCRI): Likewise.
14532 (D64_D128): Likewise.
14533 (dfp_suffix): Likewise.
14534 (dfp_ddedpd_<mode>): Likewise.
14535 (dfp_denbcd_<mode>): Likewise.
14536 (dfp_dxex_<mode>): Likewise.
14537 (dfp_diex_<mode>): Likewise.
14538 (dfp_dscli_<mode>): Likewise.
14539 (dfp_dscri_<mode>): Likewise.
14540
14541 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
14542 builtin functions.
14543 (UNSPEC_CDTBCD): Likewise.
14544 (UNSPEC_CBCDTD): Likewise.
14545 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
14546 (UNSPEC_DIVEO): Likewise.
14547 (UNSPEC_DIVEU): Likewise.
14548 (UNSPEC_DIVEUO): Likewise.
14549 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
14550 pack/unpack 128-bit types.
14551 (UNSPEC_PACK_128BIT): Likewise.
14552 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
14553 (udiv<mode>3): Use idiv_ldiv mode attribute.
14554 (div<mode>3): Likewise.
14555 (addg6s): Add new BCD builtin functions.
14556 (cdtbcd): Likewise.
14557 (cbcdtd): Likewise.
14558 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
14559 (div_extend): Likewise.
14560 (div<div_extend>_<mode>"): Likewise.
14561 (FP128_64): Add support for new builtin functions to pack/unpack
14562 128-bit types.
14563 (unpack<mode>): Likewise.
14564 (unpacktf_0): Likewise.
14565 (unpacktf_1): Likewise.
14566 (unpack<mode>_dm): Likewise.
14567 (unpack<mode>_nodm): Likewise.
14568 (pack<mode>): Likewise.
14569 (unpackv1ti): Likewise.
14570 (packv1ti): Likewise.
14571
14572 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
14573
14574 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
14575 is disabled.
14576
14577 2014-04-24 Jakub Jelinek <jakub@redhat.com>
14578
14579 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
14580 * gimplify.c (omp_is_private): Change last argument's type to int.
14581 Only diagnose lastprivate if the simd argument is 1, only diagnose
14582 linear if the simd argument is 2.
14583 (gimplify_omp_for): Adjust omp_is_private callers. When adding
14584 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
14585 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
14586 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
14587 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
14588 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14589 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
14590 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14591 * tree-nested.c (convert_nonlocal_omp_clauses,
14592 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
14593
14594 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
14595
14596 PR target/60822
14597 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
14598 operand 1.
14599
14600 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
14601
14602 * flag-types.h (enum ivar_visibility): Add.
14603
14604 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
14605
14606 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
14607 function * argument.
14608
14609 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
14610
14611 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
14612
14613 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14614 Tom de Vries <tom@codesourcery.com>
14615
14616 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
14617 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
14618 reg-note.
14619 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
14620 * emit-rtl.c (try_split): Same.
14621
14622 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14623 Tom de Vries <tom@codesourcery.com>
14624
14625 * common.opt (fuse-caller-save): New option.
14626
14627 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
14628
14629 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
14630 elements for big-endian.
14631
14632 2014-04-24 Richard Biener <rguenther@suse.de>
14633
14634 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
14635 during TER and instead use the sepops interface for expanding
14636 non-GIMPLE_SINGLE_RHS.
14637
14638 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14639
14640 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
14641 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
14642
14643 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14644
14645 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
14646 assembler 64-bit option.
14647 * configure: Regenerate.
14648
14649 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14650
14651 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
14652 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
14653 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
14654 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
14655 (TARGET_CRYPTO): Take TARGET_SIMD into account.
14656
14657 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14658
14659 * config/aarch64/aarch64-builtins.c
14660 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
14661 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
14662 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
14663 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
14664 builtins.
14665 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
14666 (Vrevsuff): New mode attribute.
14667
14668 2014-04-24 Terry Guo <terry.guo@arm.com>
14669
14670 * config/arm/arm.h (machine_function): Define variable
14671 after_arm_reorg here.
14672 * config/arm/arm.c (after_arm_reorg): Remove the definition.
14673 (arm_split_constant): Update the way to access variable
14674 after_arm_reorg.
14675 (arm_reorg): Ditto.
14676 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
14677
14678 2014-04-23 Tom de Vries <tom@codesourcery.com>
14679
14680 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
14681
14682 2014-04-23 David Malcolm <dmalcolm@redhat.com>
14683
14684 * is-a.h: Update comments to reflect the following changes to the
14685 "pointerness" of the API, making the template parameter match the
14686 return type, allowing use of is-a.h with typedefs of pointers.
14687 (is_a_helper::cast): Return a T rather then a pointer to a T, so
14688 that the return type matches the parameter to the is_a_helper.
14689 (as_a): Likewise.
14690 (dyn_cast): Likewise.
14691
14692 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
14693 pointer from the is-a.h API.
14694
14695 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
14696 (is_a_helper <cgraph_node *>::test): ...this, matching change to
14697 is-a.h API.
14698 (is_a_helper <varpool_node>::test): Likewise, convert to...
14699 (is_a_helper <varpool_node *>::test): ...this.
14700
14701 (varpool_first_variable): Update for removal of implicit pointer
14702 from the is-a.h API.
14703 (varpool_next_variable): Likewise.
14704 (varpool_first_static_initializer): Likewise.
14705 (varpool_next_static_initializer): Likewise.
14706 (varpool_first_defined_variable): Likewise.
14707 (varpool_next_defined_variable): Likewise.
14708 (cgraph_first_defined_function): Likewise.
14709 (cgraph_next_defined_function): Likewise.
14710 (cgraph_first_function): Likewise.
14711 (cgraph_next_function): Likewise.
14712 (cgraph_first_function_with_gimple_body): Likewise.
14713 (cgraph_next_function_with_gimple_body): Likewise.
14714 (cgraph_alias_target): Likewise.
14715 (varpool_alias_target): Likewise.
14716 (cgraph_function_or_thunk_node): Likewise.
14717 (varpool_variable_node): Likewise.
14718 (symtab_real_symbol_p): Likewise.
14719 * cgraphunit.c (referred_to_p): Likewise.
14720 (analyze_functions): Likewise.
14721 (handle_alias_pairs): Likewise.
14722 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
14723 * gimple-ssa.h (gimple_vuse_op): Likewise.
14724 (gimple_vdef_op): Likewise.
14725 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
14726 * gimple.c (gimple_build_asm_1): Likewise.
14727 (gimple_build_try): Likewise.
14728 (gimple_build_resx): Likewise.
14729 (gimple_build_eh_dispatch): Likewise.
14730 (gimple_build_omp_for): Likewise.
14731 (gimple_omp_for_set_clauses): Likewise.
14732
14733 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
14734 (is_a_helper <gimple_statement_asm *>::test): ...this.
14735 (is_a_helper <gimple_statement_bind>::test): Convert to...
14736 (is_a_helper <gimple_statement_bind *>::test): ...this.
14737 (is_a_helper <gimple_statement_call>::test): Convert to...
14738 (is_a_helper <gimple_statement_call *>::test): ...this.
14739 (is_a_helper <gimple_statement_catch>::test): Convert to...
14740 (is_a_helper <gimple_statement_catch *>::test): ...this.
14741 (is_a_helper <gimple_statement_resx>::test): Convert to...
14742 (is_a_helper <gimple_statement_resx *>::test): ...this.
14743 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
14744 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
14745 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
14746 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
14747 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
14748 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
14749 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
14750 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
14751 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
14752 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
14753 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
14754 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
14755 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
14756 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
14757 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
14758 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
14759 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
14760 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
14761 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
14762 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
14763 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
14764 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
14765 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
14766 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
14767 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
14768 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
14769 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
14770 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
14771 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
14772 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
14773 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
14774 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
14775 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
14776 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
14777 (is_a_helper <gimple_statement_phi>::test): Convert to...
14778 (is_a_helper <gimple_statement_phi *>::test): ...this.
14779 (is_a_helper <gimple_statement_transaction>::test): Convert to...
14780 (is_a_helper <gimple_statement_transaction *>::test): ...this.
14781 (is_a_helper <gimple_statement_try>::test): Convert to...
14782 (is_a_helper <gimple_statement_try *>::test): ...this.
14783 (is_a_helper <gimple_statement_wce>::test): Convert to...
14784 (is_a_helper <gimple_statement_wce *>::test): ...this.
14785 (is_a_helper <const gimple_statement_asm>::test): Convert to...
14786 (is_a_helper <const gimple_statement_asm *>::test): ...this.
14787 (is_a_helper <const gimple_statement_bind>::test): Convert to...
14788 (is_a_helper <const gimple_statement_bind *>::test): ...this.
14789 (is_a_helper <const gimple_statement_call>::test): Convert to...
14790 (is_a_helper <const gimple_statement_call *>::test): ...this.
14791 (is_a_helper <const gimple_statement_catch>::test): Convert to...
14792 (is_a_helper <const gimple_statement_catch *>::test): ...this.
14793 (is_a_helper <const gimple_statement_resx>::test): Convert to...
14794 (is_a_helper <const gimple_statement_resx *>::test): ...this.
14795 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
14796 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
14797 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
14798 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
14799 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
14800 Convert to...
14801 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
14802 ...this.
14803 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
14804 Convert to...
14805 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
14806 ...this.
14807 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
14808 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
14809 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
14810 to...
14811 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
14812 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
14813 to...
14814 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
14815 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
14816 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
14817 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
14818 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
14819 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
14820 to...
14821 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
14822 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
14823 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
14824 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
14825 to...
14826 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
14827 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
14828 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
14829 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
14830 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
14831 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
14832 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
14833 (is_a_helper <const gimple_statement_phi>::test): Convert to...
14834 (is_a_helper <const gimple_statement_phi *>::test): ...this.
14835 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
14836 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
14837 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
14838 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
14839 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
14840 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
14841 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
14842 to...
14843 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
14844 ...this.
14845 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
14846 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
14847
14848 (gimple_use_ops): Update for removal of implicit pointer from the
14849 is-a.h API.
14850 (gimple_set_use_ops): Likewise.
14851 (gimple_vuse): Likewise.
14852 (gimple_vdef): Likewise.
14853 (gimple_vuse_ptr): Likewise.
14854 (gimple_vdef_ptr): Likewise.
14855 (gimple_set_vuse): Likewise.
14856 (gimple_set_vdef): Likewise.
14857 (gimple_omp_return_set_lhs): Likewise.
14858 (gimple_omp_return_lhs): Likewise.
14859 (gimple_omp_return_lhs_ptr): Likewise.
14860 (gimple_call_fntype): Likewise.
14861 (gimple_call_set_fntype): Likewise.
14862 (gimple_call_set_internal_fn): Likewise.
14863 (gimple_call_use_set): Likewise.
14864 (gimple_call_clobber_set): Likewise.
14865 (gimple_bind_vars): Likewise.
14866 (gimple_bind_set_vars): Likewise.
14867 (gimple_bind_body_ptr): Likewise.
14868 (gimple_bind_set_body): Likewise.
14869 (gimple_bind_add_stmt): Likewise.
14870 (gimple_bind_block): Likewise.
14871 (gimple_bind_set_block): Likewise.
14872 (gimple_asm_ninputs): Likewise.
14873 (gimple_asm_noutputs): Likewise.
14874 (gimple_asm_nclobbers): Likewise.
14875 (gimple_asm_nlabels): Likewise.
14876 (gimple_asm_input_op): Likewise.
14877 (gimple_asm_input_op_ptr): Likewise.
14878 (gimple_asm_output_op): Likewise.
14879 (gimple_asm_output_op_ptr): Likewise.
14880 (gimple_asm_set_output_op): Likewise.
14881 (gimple_asm_clobber_op): Likewise.
14882 (gimple_asm_set_clobber_op): Likewise.
14883 (gimple_asm_label_op): Likewise.
14884 (gimple_asm_set_label_op): Likewise.
14885 (gimple_asm_string): Likewise.
14886 (gimple_catch_types): Likewise.
14887 (gimple_catch_types_ptr): Likewise.
14888 (gimple_catch_handler_ptr): Likewise.
14889 (gimple_catch_set_types): Likewise.
14890 (gimple_catch_set_handler): Likewise.
14891 (gimple_eh_filter_types): Likewise.
14892 (gimple_eh_filter_types_ptr): Likewise.
14893 (gimple_eh_filter_failure_ptr): Likewise.
14894 (gimple_eh_filter_set_types): Likewise.
14895 (gimple_eh_filter_set_failure): Likewise.
14896 (gimple_eh_must_not_throw_fndecl): Likewise.
14897 (gimple_eh_must_not_throw_set_fndecl): Likewise.
14898 (gimple_eh_else_n_body_ptr): Likewise.
14899 (gimple_eh_else_e_body_ptr): Likewise.
14900 (gimple_eh_else_set_n_body): Likewise.
14901 (gimple_eh_else_set_e_body): Likewise.
14902 (gimple_try_eval_ptr): Likewise.
14903 (gimple_try_cleanup_ptr): Likewise.
14904 (gimple_try_set_eval): Likewise.
14905 (gimple_try_set_cleanup): Likewise.
14906 (gimple_wce_cleanup_ptr): Likewise.
14907 (gimple_wce_set_cleanup): Likewise.
14908 (gimple_phi_capacity): Likewise.
14909 (gimple_phi_num_args): Likewise.
14910 (gimple_phi_result): Likewise.
14911 (gimple_phi_result_ptr): Likewise.
14912 (gimple_phi_set_result): Likewise.
14913 (gimple_phi_arg): Likewise.
14914 (gimple_phi_set_arg): Likewise.
14915 (gimple_resx_region): Likewise.
14916 (gimple_resx_set_region): Likewise.
14917 (gimple_eh_dispatch_region): Likewise.
14918 (gimple_eh_dispatch_set_region): Likewise.
14919 (gimple_omp_critical_name): Likewise.
14920 (gimple_omp_critical_name_ptr): Likewise.
14921 (gimple_omp_critical_set_name): Likewise.
14922 (gimple_omp_for_clauses): Likewise.
14923 (gimple_omp_for_clauses_ptr): Likewise.
14924 (gimple_omp_for_set_clauses): Likewise.
14925 (gimple_omp_for_collapse): Likewise.
14926 (gimple_omp_for_index): Likewise.
14927 (gimple_omp_for_index_ptr): Likewise.
14928 (gimple_omp_for_set_index): Likewise.
14929 (gimple_omp_for_initial): Likewise.
14930 (gimple_omp_for_initial_ptr): Likewise.
14931 (gimple_omp_for_set_initial): Likewise.
14932 (gimple_omp_for_final): Likewise.
14933 (gimple_omp_for_final_ptr): Likewise.
14934 (gimple_omp_for_set_final): Likewise.
14935 (gimple_omp_for_incr): Likewise.
14936 (gimple_omp_for_incr_ptr): Likewise.
14937 (gimple_omp_for_set_incr): Likewise.
14938 (gimple_omp_for_pre_body_ptr): Likewise.
14939 (gimple_omp_for_set_pre_body): Likewise.
14940 (gimple_omp_parallel_clauses): Likewise.
14941 (gimple_omp_parallel_clauses_ptr): Likewise.
14942 (gimple_omp_parallel_set_clauses): Likewise.
14943 (gimple_omp_parallel_child_fn): Likewise.
14944 (gimple_omp_parallel_child_fn_ptr): Likewise.
14945 (gimple_omp_parallel_set_child_fn): Likewise.
14946 (gimple_omp_parallel_data_arg): Likewise.
14947 (gimple_omp_parallel_data_arg_ptr): Likewise.
14948 (gimple_omp_parallel_set_data_arg): Likewise.
14949 (gimple_omp_task_clauses): Likewise.
14950 (gimple_omp_task_clauses_ptr): Likewise.
14951 (gimple_omp_task_set_clauses): Likewise.
14952 (gimple_omp_task_child_fn): Likewise.
14953 (gimple_omp_task_child_fn_ptr): Likewise.
14954 (gimple_omp_task_set_child_fn): Likewise.
14955 (gimple_omp_task_data_arg): Likewise.
14956 (gimple_omp_task_data_arg_ptr): Likewise.
14957 (gimple_omp_task_set_data_arg): Likewise.
14958 (gimple_omp_taskreg_clauses): Likewise.
14959 (gimple_omp_taskreg_clauses_ptr): Likewise.
14960 (gimple_omp_taskreg_set_clauses): Likewise.
14961 (gimple_omp_taskreg_child_fn): Likewise.
14962 (gimple_omp_taskreg_child_fn_ptr): Likewise.
14963 (gimple_omp_taskreg_set_child_fn): Likewise.
14964 (gimple_omp_taskreg_data_arg): Likewise.
14965 (gimple_omp_taskreg_data_arg_ptr): Likewise.
14966 (gimple_omp_taskreg_set_data_arg): Likewise.
14967 (gimple_omp_task_copy_fn): Likewise.
14968 (gimple_omp_task_copy_fn_ptr): Likewise.
14969 (gimple_omp_task_set_copy_fn): Likewise.
14970 (gimple_omp_task_arg_size): Likewise.
14971 (gimple_omp_task_arg_size_ptr): Likewise.
14972 (gimple_omp_task_set_arg_size): Likewise.
14973 (gimple_omp_task_arg_align): Likewise.
14974 (gimple_omp_task_arg_align_ptr): Likewise.
14975 (gimple_omp_task_set_arg_align): Likewise.
14976 (gimple_omp_single_clauses): Likewise.
14977 (gimple_omp_single_clauses_ptr): Likewise.
14978 (gimple_omp_single_set_clauses): Likewise.
14979 (gimple_omp_target_clauses): Likewise.
14980 (gimple_omp_target_clauses_ptr): Likewise.
14981 (gimple_omp_target_set_clauses): Likewise.
14982 (gimple_omp_target_child_fn): Likewise.
14983 (gimple_omp_target_child_fn_ptr): Likewise.
14984 (gimple_omp_target_set_child_fn): Likewise.
14985 (gimple_omp_target_data_arg): Likewise.
14986 (gimple_omp_target_data_arg_ptr): Likewise.
14987 (gimple_omp_target_set_data_arg): Likewise.
14988 (gimple_omp_teams_clauses): Likewise.
14989 (gimple_omp_teams_clauses_ptr): Likewise.
14990 (gimple_omp_teams_set_clauses): Likewise.
14991 (gimple_omp_sections_clauses): Likewise.
14992 (gimple_omp_sections_clauses_ptr): Likewise.
14993 (gimple_omp_sections_set_clauses): Likewise.
14994 (gimple_omp_sections_control): Likewise.
14995 (gimple_omp_sections_control_ptr): Likewise.
14996 (gimple_omp_sections_set_control): Likewise.
14997 (gimple_omp_for_set_cond): Likewise.
14998 (gimple_omp_for_cond): Likewise.
14999 (gimple_omp_atomic_store_set_val): Likewise.
15000 (gimple_omp_atomic_store_val): Likewise.
15001 (gimple_omp_atomic_store_val_ptr): Likewise.
15002 (gimple_omp_atomic_load_set_lhs): Likewise.
15003 (gimple_omp_atomic_load_lhs): Likewise.
15004 (gimple_omp_atomic_load_lhs_ptr): Likewise.
15005 (gimple_omp_atomic_load_set_rhs): Likewise.
15006 (gimple_omp_atomic_load_rhs): Likewise.
15007 (gimple_omp_atomic_load_rhs_ptr): Likewise.
15008 (gimple_omp_continue_control_def): Likewise.
15009 (gimple_omp_continue_control_def_ptr): Likewise.
15010 (gimple_omp_continue_set_control_def): Likewise.
15011 (gimple_omp_continue_control_use): Likewise.
15012 (gimple_omp_continue_control_use_ptr): Likewise.
15013 (gimple_omp_continue_set_control_use): Likewise.
15014 (gimple_transaction_body_ptr): Likewise.
15015 (gimple_transaction_label): Likewise.
15016 (gimple_transaction_label_ptr): Likewise.
15017 (gimple_transaction_set_body): Likewise.
15018 (gimple_transaction_set_label): Likewise.
15019
15020 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
15021 * ipa-inline-analysis.c (inline_write_summary): Likewise.
15022 * ipa-ref.c (ipa_record_reference): Likewise.
15023 * ipa-reference.c (analyze_function): Likewise.
15024 (ipa_reference_write_optimization_summary): Likewise.
15025 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
15026 (address_taken_from_non_vtable_p): Likewise.
15027 (comdat_can_be_unshared_p_1): Likewise.
15028 * lto-cgraph.c (lto_output_ref): Likewise.
15029 (add_references): Likewise.
15030 (compute_ltrans_boundary): Likewise.
15031 (output_symtab): Likewise.
15032 (input_ref): Likewise.
15033 (input_cgraph_1): Likewise.
15034 (output_cgraph_opt_summary): Likewise.
15035 * lto-streamer-out.c (lto_output): Likewise.
15036 (output_symbol_p): Likewise.
15037 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
15038 (lsei_start_function_in_partition): Likewise.
15039 (lsei_next_variable_in_partition): Likewise.
15040 (lsei_start_variable_in_partition): Likewise.
15041 * symtab.c (insert_to_assembler_name_hash): Likewise.
15042 (unlink_from_assembler_name_hash): Likewise.
15043 (symtab_unregister_node): Likewise.
15044 (symtab_remove_node): Likewise.
15045 (dump_symtab_node): Likewise.
15046 (verify_symtab_base): Likewise.
15047 (verify_symtab_node): Likewise.
15048 (symtab_make_decl_local): Likewise.
15049 (symtab_alias_ultimate_target): Likewise.
15050 (symtab_resolve_alias): Likewise.
15051 (symtab_get_symbol_partitioning_class): Likewise.
15052 * tree-phinodes.c (allocate_phi_node): Likewise.
15053 (reserve_phi_args_for_new_edge): Likewise.
15054 (remove_phi_args): Likewise.
15055 * varpool.c (varpool_node_for_asm): Likewise.
15056 (varpool_remove_unreferenced_decls): Likewise.
15057
15058 2014-04-23 Jeff Law <law@redhat.com>
15059
15060 PR tree-optimization/60902
15061 * tree-ssa-threadedge.c
15062 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
15063 invalidate outputs from statements that do not produce useful
15064 outputs for threading.
15065
15066 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
15067
15068 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
15069 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
15070 machine descriptions for Stack Smashing Protector.
15071
15072 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
15073
15074 * aarch64.md (<optab>_rol<mode>3): New pattern.
15075 (<optab>_rolsi3_uxtw): Likewise.
15076 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
15077
15078 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
15079
15080 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
15081 (arm_cortex_a12_tune): Likewise.
15082
15083 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15084
15085 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
15086
15087 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15088
15089 * config/arm/arm.md (arm_rev16si2): New pattern.
15090 (arm_rev16si2_alt): Likewise.
15091 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
15092
15093 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15094
15095 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
15096 (rev16<mode>2_alt): Likewise.
15097 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
15098 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
15099 (aarch_rev16_shleft_mask_imm_p): Likewise.
15100 (aarch_rev16_p_1): Likewise.
15101 (aarch_rev16_p): Likewise.
15102 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
15103 (aarch_rev16_shright_mask_imm_p): Likewise.
15104 (aarch_rev16_shleft_mask_imm_p): Likewise.
15105
15106 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15107
15108 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
15109 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
15110 rev cost.
15111 (cortex_a53_extra_costs): Likewise.
15112 (cortex_a57_extra_costs): Likewise.
15113 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
15114 (cortexa7_extra_costs): Likewise.
15115 (cortexa8_extra_costs): Likewise.
15116 (cortexa12_extra_costs): Likewise.
15117 (cortexa15_extra_costs): Likewise.
15118 (v7m_extra_costs): Likewise.
15119 (arm_new_rtx_costs): Handle BSWAP.
15120
15121 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15122
15123 * config/arm/arm.c (cortexa8_extra_costs): New table.
15124 (arm_cortex_a8_tune): New tuning struct.
15125 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
15126
15127 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15128
15129 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
15130
15131 2014-04-23 Richard Biener <rguenther@suse.de>
15132
15133 * Makefile.in (OBJS): Remove loop-unswitch.o.
15134 * tree-pass.h (make_pass_rtl_unswitch): Remove.
15135 * passes.def (pass_rtl_unswitch): Likewise.
15136 * loop-init.c (gate_rtl_unswitch): Likewise.
15137 (rtl_unswitch): Likewise.
15138 (pass_data_rtl_unswitch): Likewise.
15139 (pass_rtl_unswitch): Likewise.
15140 (make_pass_rtl_unswitch): Likewise.
15141 * rtl.h (reversed_condition): Likewise.
15142 (compare_and_jump_seq): Likewise.
15143 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
15144 and make static.
15145 * loop-unroll.c (compare_and_jump_seq): Likewise.
15146
15147 2014-04-23 Richard Biener <rguenther@suse.de>
15148
15149 PR tree-optimization/60903
15150 * tree-ssa-loop-im.c (analyze_memory_references): Remove
15151 commented code block.
15152 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
15153 loop flags to newly created BBs and edges.
15154
15155 2014-04-23 Nick Clifton <nickc@redhat.com>
15156
15157 * config/msp430/msp430.c (msp430_handle_option): Move function
15158 to msp430-common.c
15159 (msp430_option_override): Simplify mcu and mcpu option handling.
15160 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
15161 support for -mhwmult command line option.
15162 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
15163 -mhwmult command line option.
15164 (msp430_hwmult_enabled): Delete.
15165 (msp43o_output_labelref): Add support for -mhwmult command line option.
15166 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
15167 (umulsidi3): Likewise.
15168 * config/msp430/msp430.opt (mmcu): Add Report attribute.
15169 (mcpu, mlarge, msmall): Likewise.
15170 (mhwmult): New option.
15171 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
15172 prototype.
15173 (msp430_is_f5_mcu): Remove prototype.
15174 (msp430_use_f5_series_hwmult): Add prototype.
15175 * config/msp430/msp430-opts.h: New file.
15176 * common/config/msp430: New directory.
15177 * common/config/msp430/msp430-common.c: New file.
15178 * config.gcc (msp430): Remove target_has_targetm_common.
15179 * doc/invoke.texi: Document -mhwmult command line option.
15180
15181 2014-04-23 Nick Clifton <nickc@redhat.com>
15182
15183 * config/i386/cygwin.h (ENDFILE_SPEC): Include
15184 default-manifest.o if it can be found in the search path.
15185 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
15186
15187 2014-04-23 Terry Guo <terry.guo@arm.com>
15188
15189 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
15190
15191 2014-04-23 Richard Biener <rguenther@suse.de>
15192
15193 PR middle-end/60895
15194 * tree-inline.c (declare_return_variable): Use mark_addressable.
15195
15196 2014-04-23 Richard Biener <rguenther@suse.de>
15197
15198 PR middle-end/60891
15199 * loop-init.c (loop_optimizer_init): Make sure to apply
15200 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
15201
15202 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15203
15204 PR sanitizer/60275
15205 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
15206 New options.
15207 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
15208 if flag_sanitize_undefined_trap_on_error.
15209 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
15210 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
15211 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
15212 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
15213 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
15214 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
15215 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
15216 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
15217 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
15218 * ubsan.c (ubsan_instrument_unreachable): Return
15219 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
15220 (ubsan_expand_null_ifn): Emit __builtin_trap ()
15221 if flag_sanitize_undefined_trap_on_error and
15222 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
15223 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
15224 instrument_bool_enum_load): Emit __builtin_trap () if
15225 flag_sanitize_undefined_trap_on_error and
15226 __builtin_handle_*_abort () if !flag_sanitize_recover.
15227 * doc/invoke.texi (-fsanitize-recover,
15228 -fsanitize-undefined-trap-on-error): Document.
15229
15230 2014-04-22 Christian Bruel <christian.bruel@st.com>
15231
15232 * config/sh/sh.md (mov<mode>): Replace movQIHI.
15233 Force immediates to SImode.
15234
15235 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
15236
15237 * config/nios2/nios2.md (UNSPEC_ROUND): New.
15238 (lroundsfsi2): New.
15239 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
15240 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
15241 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
15242 (nios2_fpu_insn): Add entry for round.
15243 (N2FPU_NO_ERRNO_P): Define.
15244 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
15245 flag_errno_math.
15246 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
15247
15248 2014-04-22 Richard Henderson <rth@redhat.com>
15249
15250 * config/aarch64/aarch64 (addti3, subti3): New expanders.
15251 (add<GPI>3_compare0): Remove leading * from name.
15252 (add<GPI>3_carryin): Likewise.
15253 (sub<GPI>3_compare0): Likewise.
15254 (sub<GPI>3_carryin): Likewise.
15255 (<su_optab>mulditi3): New expander.
15256 (multi3): New expander.
15257 (madd<GPI>): Remove leading * from name.
15258
15259 2014-04-22 Martin Jambor <mjambor@suse.cz>
15260
15261 * cgraphclones.c (cgraph_function_versioning): Copy
15262 ipa_transforms_to_apply instead of asserting it is empty.
15263
15264 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
15265
15266 PR target/60868
15267 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
15268 on count_exp to get mode.
15269
15270 2014-04-22 Andrew Pinski <apinski@cavium.com>
15271
15272 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15273 Handle TLS for ILP32.
15274 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
15275 (tlsie_small_<mode>): this and handle PTR.
15276 (tlsie_small_sidi): New pattern.
15277 (tlsle_small): Change to an expand to handle ILP32.
15278 (tlsle_small_<mode>): New pattern.
15279 (tlsdesc_small): Rename to ...
15280 (tlsdesc_small_<mode>): this and handle PTR.
15281
15282 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15283
15284 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
15285
15286 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15287
15288 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
15289 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
15290 (aarch64_types_signed_poly_qualifiers): Likewise.
15291 (aarch64_types_unsigned_signed_qualifiers): Likewise.
15292 (aarch64_types_poly_signed_qualifiers): Likewise.
15293 (TYPES_REINTERP_SS): Type macro added.
15294 (TYPES_REINTERP_SU): Likewise.
15295 (TYPES_REINTERP_SP): Likewise.
15296 (TYPES_REINTERP_US): Likewise.
15297 (TYPES_REINTERP_PS): Likewise.
15298 (aarch64_fold_builtin): New expression folding added.
15299 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
15300 Declarations removed.
15301 (REINTERP_SS): Declarations added.
15302 (REINTERP_US): Likewise.
15303 (REINTERP_PS): Likewise.
15304 (REINTERP_SU): Likewise.
15305 (REINTERP_SP): Likewise.
15306 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
15307 (vreinterpretq_p8_f64): Likewise.
15308 (vreinterpret_p16_f64): Likewise.
15309 (vreinterpretq_p16_f64): Likewise.
15310 (vreinterpret_f32_f64): Likewise.
15311 (vreinterpretq_f32_f64): Likewise.
15312 (vreinterpret_f64_f32): Likewise.
15313 (vreinterpret_f64_p8): Likewise.
15314 (vreinterpret_f64_p16): Likewise.
15315 (vreinterpret_f64_s8): Likewise.
15316 (vreinterpret_f64_s16): Likewise.
15317 (vreinterpret_f64_s32): Likewise.
15318 (vreinterpret_f64_s64): Likewise.
15319 (vreinterpret_f64_u8): Likewise.
15320 (vreinterpret_f64_u16): Likewise.
15321 (vreinterpret_f64_u32): Likewise.
15322 (vreinterpret_f64_u64): Likewise.
15323 (vreinterpretq_f64_f32): Likewise.
15324 (vreinterpretq_f64_p8): Likewise.
15325 (vreinterpretq_f64_p16): Likewise.
15326 (vreinterpretq_f64_s8): Likewise.
15327 (vreinterpretq_f64_s16): Likewise.
15328 (vreinterpretq_f64_s32): Likewise.
15329 (vreinterpretq_f64_s64): Likewise.
15330 (vreinterpretq_f64_u8): Likewise.
15331 (vreinterpretq_f64_u16): Likewise.
15332 (vreinterpretq_f64_u32): Likewise.
15333 (vreinterpretq_f64_u64): Likewise.
15334 (vreinterpret_s64_f64): Likewise.
15335 (vreinterpretq_s64_f64): Likewise.
15336 (vreinterpret_u64_f64): Likewise.
15337 (vreinterpretq_u64_f64): Likewise.
15338 (vreinterpret_s8_f64): Likewise.
15339 (vreinterpretq_s8_f64): Likewise.
15340 (vreinterpret_s16_f64): Likewise.
15341 (vreinterpretq_s16_f64): Likewise.
15342 (vreinterpret_s32_f64): Likewise.
15343 (vreinterpretq_s32_f64): Likewise.
15344 (vreinterpret_u8_f64): Likewise.
15345 (vreinterpretq_u8_f64): Likewise.
15346 (vreinterpret_u16_f64): Likewise.
15347 (vreinterpretq_u16_f64): Likewise.
15348 (vreinterpret_u32_f64): Likewise.
15349 (vreinterpretq_u32_f64): Likewise.
15350
15351 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15352
15353 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
15354 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
15355 (vreinterpret_p8_s8): Likewise.
15356 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
15357 (vreinterpret_p8_s16): Likewise.
15358 (vreinterpret_p8_s32): Likewise.
15359 (vreinterpret_p8_s64): Likewise.
15360 (vreinterpret_p8_f32): Likewise.
15361 (vreinterpret_p8_u8): Likewise.
15362 (vreinterpret_p8_u16): Likewise.
15363 (vreinterpret_p8_u32): Likewise.
15364 (vreinterpret_p8_u64): Likewise.
15365 (vreinterpret_p8_p16): Likewise.
15366 (vreinterpretq_p8_s8): Likewise.
15367 (vreinterpretq_p8_s16): Likewise.
15368 (vreinterpretq_p8_s32): Likewise.
15369 (vreinterpretq_p8_s64): Likewise.
15370 (vreinterpretq_p8_f32): Likewise.
15371 (vreinterpretq_p8_u8): Likewise.
15372 (vreinterpretq_p8_u16): Likewise.
15373 (vreinterpretq_p8_u32): Likewise.
15374 (vreinterpretq_p8_u64): Likewise.
15375 (vreinterpretq_p8_p16): Likewise.
15376 (vreinterpret_p16_s8): Likewise.
15377 (vreinterpret_p16_s16): Likewise.
15378 (vreinterpret_p16_s32): Likewise.
15379 (vreinterpret_p16_s64): Likewise.
15380 (vreinterpret_p16_f32): Likewise.
15381 (vreinterpret_p16_u8): Likewise.
15382 (vreinterpret_p16_u16): Likewise.
15383 (vreinterpret_p16_u32): Likewise.
15384 (vreinterpret_p16_u64): Likewise.
15385 (vreinterpret_p16_p8): Likewise.
15386 (vreinterpretq_p16_s8): Likewise.
15387 (vreinterpretq_p16_s16): Likewise.
15388 (vreinterpretq_p16_s32): Likewise.
15389 (vreinterpretq_p16_s64): Likewise.
15390 (vreinterpretq_p16_f32): Likewise.
15391 (vreinterpretq_p16_u8): Likewise.
15392 (vreinterpretq_p16_u16): Likewise.
15393 (vreinterpretq_p16_u32): Likewise.
15394 (vreinterpretq_p16_u64): Likewise.
15395 (vreinterpretq_p16_p8): Likewise.
15396 (vreinterpret_f32_s8): Likewise.
15397 (vreinterpret_f32_s16): Likewise.
15398 (vreinterpret_f32_s32): Likewise.
15399 (vreinterpret_f32_s64): Likewise.
15400 (vreinterpret_f32_u8): Likewise.
15401 (vreinterpret_f32_u16): Likewise.
15402 (vreinterpret_f32_u32): Likewise.
15403 (vreinterpret_f32_u64): Likewise.
15404 (vreinterpret_f32_p8): Likewise.
15405 (vreinterpret_f32_p16): Likewise.
15406 (vreinterpretq_f32_s8): Likewise.
15407 (vreinterpretq_f32_s16): Likewise.
15408 (vreinterpretq_f32_s32): Likewise.
15409 (vreinterpretq_f32_s64): Likewise.
15410 (vreinterpretq_f32_u8): Likewise.
15411 (vreinterpretq_f32_u16): Likewise.
15412 (vreinterpretq_f32_u32): Likewise.
15413 (vreinterpretq_f32_u64): Likewise.
15414 (vreinterpretq_f32_p8): Likewise.
15415 (vreinterpretq_f32_p16): Likewise.
15416 (vreinterpret_s64_s8): Likewise.
15417 (vreinterpret_s64_s16): Likewise.
15418 (vreinterpret_s64_s32): Likewise.
15419 (vreinterpret_s64_f32): Likewise.
15420 (vreinterpret_s64_u8): Likewise.
15421 (vreinterpret_s64_u16): Likewise.
15422 (vreinterpret_s64_u32): Likewise.
15423 (vreinterpret_s64_u64): Likewise.
15424 (vreinterpret_s64_p8): Likewise.
15425 (vreinterpret_s64_p16): Likewise.
15426 (vreinterpretq_s64_s8): Likewise.
15427 (vreinterpretq_s64_s16): Likewise.
15428 (vreinterpretq_s64_s32): Likewise.
15429 (vreinterpretq_s64_f32): Likewise.
15430 (vreinterpretq_s64_u8): Likewise.
15431 (vreinterpretq_s64_u16): Likewise.
15432 (vreinterpretq_s64_u32): Likewise.
15433 (vreinterpretq_s64_u64): Likewise.
15434 (vreinterpretq_s64_p8): Likewise.
15435 (vreinterpretq_s64_p16): Likewise.
15436 (vreinterpret_u64_s8): Likewise.
15437 (vreinterpret_u64_s16): Likewise.
15438 (vreinterpret_u64_s32): Likewise.
15439 (vreinterpret_u64_s64): Likewise.
15440 (vreinterpret_u64_f32): Likewise.
15441 (vreinterpret_u64_u8): Likewise.
15442 (vreinterpret_u64_u16): Likewise.
15443 (vreinterpret_u64_u32): Likewise.
15444 (vreinterpret_u64_p8): Likewise.
15445 (vreinterpret_u64_p16): Likewise.
15446 (vreinterpretq_u64_s8): Likewise.
15447 (vreinterpretq_u64_s16): Likewise.
15448 (vreinterpretq_u64_s32): Likewise.
15449 (vreinterpretq_u64_s64): Likewise.
15450 (vreinterpretq_u64_f32): Likewise.
15451 (vreinterpretq_u64_u8): Likewise.
15452 (vreinterpretq_u64_u16): Likewise.
15453 (vreinterpretq_u64_u32): Likewise.
15454 (vreinterpretq_u64_p8): Likewise.
15455 (vreinterpretq_u64_p16): Likewise.
15456 (vreinterpret_s8_s16): Likewise.
15457 (vreinterpret_s8_s32): Likewise.
15458 (vreinterpret_s8_s64): Likewise.
15459 (vreinterpret_s8_f32): Likewise.
15460 (vreinterpret_s8_u8): Likewise.
15461 (vreinterpret_s8_u16): Likewise.
15462 (vreinterpret_s8_u32): Likewise.
15463 (vreinterpret_s8_u64): Likewise.
15464 (vreinterpret_s8_p8): Likewise.
15465 (vreinterpret_s8_p16): Likewise.
15466 (vreinterpretq_s8_s16): Likewise.
15467 (vreinterpretq_s8_s32): Likewise.
15468 (vreinterpretq_s8_s64): Likewise.
15469 (vreinterpretq_s8_f32): Likewise.
15470 (vreinterpretq_s8_u8): Likewise.
15471 (vreinterpretq_s8_u16): Likewise.
15472 (vreinterpretq_s8_u32): Likewise.
15473 (vreinterpretq_s8_u64): Likewise.
15474 (vreinterpretq_s8_p8): Likewise.
15475 (vreinterpretq_s8_p16): Likewise.
15476 (vreinterpret_s16_s8): Likewise.
15477 (vreinterpret_s16_s32): Likewise.
15478 (vreinterpret_s16_s64): Likewise.
15479 (vreinterpret_s16_f32): Likewise.
15480 (vreinterpret_s16_u8): Likewise.
15481 (vreinterpret_s16_u16): Likewise.
15482 (vreinterpret_s16_u32): Likewise.
15483 (vreinterpret_s16_u64): Likewise.
15484 (vreinterpret_s16_p8): Likewise.
15485 (vreinterpret_s16_p16): Likewise.
15486 (vreinterpretq_s16_s8): Likewise.
15487 (vreinterpretq_s16_s32): Likewise.
15488 (vreinterpretq_s16_s64): Likewise.
15489 (vreinterpretq_s16_f32): Likewise.
15490 (vreinterpretq_s16_u8): Likewise.
15491 (vreinterpretq_s16_u16): Likewise.
15492 (vreinterpretq_s16_u32): Likewise.
15493 (vreinterpretq_s16_u64): Likewise.
15494 (vreinterpretq_s16_p8): Likewise.
15495 (vreinterpretq_s16_p16): Likewise.
15496 (vreinterpret_s32_s8): Likewise.
15497 (vreinterpret_s32_s16): Likewise.
15498 (vreinterpret_s32_s64): Likewise.
15499 (vreinterpret_s32_f32): Likewise.
15500 (vreinterpret_s32_u8): Likewise.
15501 (vreinterpret_s32_u16): Likewise.
15502 (vreinterpret_s32_u32): Likewise.
15503 (vreinterpret_s32_u64): Likewise.
15504 (vreinterpret_s32_p8): Likewise.
15505 (vreinterpret_s32_p16): Likewise.
15506 (vreinterpretq_s32_s8): Likewise.
15507 (vreinterpretq_s32_s16): Likewise.
15508 (vreinterpretq_s32_s64): Likewise.
15509 (vreinterpretq_s32_f32): Likewise.
15510 (vreinterpretq_s32_u8): Likewise.
15511 (vreinterpretq_s32_u16): Likewise.
15512 (vreinterpretq_s32_u32): Likewise.
15513 (vreinterpretq_s32_u64): Likewise.
15514 (vreinterpretq_s32_p8): Likewise.
15515 (vreinterpretq_s32_p16): Likewise.
15516 (vreinterpret_u8_s8): Likewise.
15517 (vreinterpret_u8_s16): Likewise.
15518 (vreinterpret_u8_s32): Likewise.
15519 (vreinterpret_u8_s64): Likewise.
15520 (vreinterpret_u8_f32): Likewise.
15521 (vreinterpret_u8_u16): Likewise.
15522 (vreinterpret_u8_u32): Likewise.
15523 (vreinterpret_u8_u64): Likewise.
15524 (vreinterpret_u8_p8): Likewise.
15525 (vreinterpret_u8_p16): Likewise.
15526 (vreinterpretq_u8_s8): Likewise.
15527 (vreinterpretq_u8_s16): Likewise.
15528 (vreinterpretq_u8_s32): Likewise.
15529 (vreinterpretq_u8_s64): Likewise.
15530 (vreinterpretq_u8_f32): Likewise.
15531 (vreinterpretq_u8_u16): Likewise.
15532 (vreinterpretq_u8_u32): Likewise.
15533 (vreinterpretq_u8_u64): Likewise.
15534 (vreinterpretq_u8_p8): Likewise.
15535 (vreinterpretq_u8_p16): Likewise.
15536 (vreinterpret_u16_s8): Likewise.
15537 (vreinterpret_u16_s16): Likewise.
15538 (vreinterpret_u16_s32): Likewise.
15539 (vreinterpret_u16_s64): Likewise.
15540 (vreinterpret_u16_f32): Likewise.
15541 (vreinterpret_u16_u8): Likewise.
15542 (vreinterpret_u16_u32): Likewise.
15543 (vreinterpret_u16_u64): Likewise.
15544 (vreinterpret_u16_p8): Likewise.
15545 (vreinterpret_u16_p16): Likewise.
15546 (vreinterpretq_u16_s8): Likewise.
15547 (vreinterpretq_u16_s16): Likewise.
15548 (vreinterpretq_u16_s32): Likewise.
15549 (vreinterpretq_u16_s64): Likewise.
15550 (vreinterpretq_u16_f32): Likewise.
15551 (vreinterpretq_u16_u8): Likewise.
15552 (vreinterpretq_u16_u32): Likewise.
15553 (vreinterpretq_u16_u64): Likewise.
15554 (vreinterpretq_u16_p8): Likewise.
15555 (vreinterpretq_u16_p16): Likewise.
15556 (vreinterpret_u32_s8): Likewise.
15557 (vreinterpret_u32_s16): Likewise.
15558 (vreinterpret_u32_s32): Likewise.
15559 (vreinterpret_u32_s64): Likewise.
15560 (vreinterpret_u32_f32): Likewise.
15561 (vreinterpret_u32_u8): Likewise.
15562 (vreinterpret_u32_u16): Likewise.
15563 (vreinterpret_u32_u64): Likewise.
15564 (vreinterpret_u32_p8): Likewise.
15565 (vreinterpret_u32_p16): Likewise.
15566 (vreinterpretq_u32_s8): Likewise.
15567 (vreinterpretq_u32_s16): Likewise.
15568 (vreinterpretq_u32_s32): Likewise.
15569 (vreinterpretq_u32_s64): Likewise.
15570 (vreinterpretq_u32_f32): Likewise.
15571 (vreinterpretq_u32_u8): Likewise.
15572 (vreinterpretq_u32_u16): Likewise.
15573 (vreinterpretq_u32_u64): Likewise.
15574 (vreinterpretq_u32_p8): Likewise.
15575 (vreinterpretq_u32_p16): Likewise.
15576
15577 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15578
15579 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
15580 Pattern extended.
15581 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
15582 (sqabs): Likewise.
15583 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
15584 (vqnegd_s64): Likewise.
15585 (vqabs_s64): Likewise.
15586 (vqabsd_s64): Likewise.
15587
15588 2014-04-22 Richard Henderson <rth@redhat.com>
15589
15590 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
15591 computation to the top of the loop.
15592
15593 2014-04-22 Renlin <renlin.li@arm.com>
15594 Jiong Wang <jiong.wang@arm.com>
15595
15596 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
15597 * config/aarch64/aarch64.c (aarch64_layout_frame)
15598 (aarch64_initial_elimination_offset): Likewise.
15599
15600 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
15601
15602 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
15603 Fix indentation.
15604
15605 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
15606
15607 * machmode.h (bitwise_mode_for_mode): Declare.
15608 * stor-layout.h (bitwise_type_for_mode): Likewise.
15609 * stor-layout.c (bitwise_mode_for_mode): New function.
15610 (bitwise_type_for_mode): Likewise.
15611 * builtins.c (fold_builtin_memory_op): Use it instead of
15612 int_mode_for_mode and build_nonstandard_integer_type.
15613
15614 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15615
15616 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
15617 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
15618 (*-*-solaris2*): Simplify.
15619 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
15620 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
15621 *-*-solaris2.9* handling.
15622
15623 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
15624 as bug.
15625 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
15626 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
15627 handling, simplify.
15628 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
15629 * configure: Regenerate.
15630
15631 * config/i386/sol2-9.h: Remove.
15632
15633 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
15634 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
15635 Remove Solaris 9 references.
15636
15637 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
15638
15639 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
15640 (floatuns<GPI:mode><GPF:mode>2): Remove.
15641 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
15642 and floatuns conversions.
15643 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
15644 and floatuns conversions.
15645 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
15646 (w1,w2): New mode attributes for inequal width conversions.
15647
15648 2014-04-22 Renlin Li <Renlin.Li@arm.com>
15649
15650 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
15651 the output asm format.
15652
15653 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
15654
15655 * config/aarch64/aarch64-simd.md
15656 (aarch64_cm<optab>di): Always split.
15657 (*aarch64_cm<optab>di): New.
15658 (aarch64_cmtstdi): Always split.
15659 (*aarch64_cmtstdi): New.
15660
15661 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15662
15663 PR tree-optimization/60823
15664 * omp-low.c (ipa_simd_modify_function_body): Go through
15665 all SSA_NAMEs and for those refering to vector arguments
15666 which are going to be replaced adjust SSA_NAME_VAR and,
15667 if it is a default definition, change it into a non-default
15668 definition assigned at the beginning of function from new_decl.
15669 (ipa_simd_modify_stmt_ops): Rewritten.
15670 * tree-dfa.c (set_ssa_default_def): When removing default def,
15671 check for NULL loc instead of NULL *loc.
15672
15673 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15674
15675 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
15676 restrictions on core registers for DImode values in Thumb2.
15677
15678 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15679
15680 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
15681 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
15682
15683 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15684
15685 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
15686 (*iordi_notzesidi_di): Likewise.
15687 (*iordi_notsesidi_di): Likewise.
15688
15689 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15690
15691 * config/arm/arm-protos.h (tune_params): New struct members.
15692 * config/arm/arm.c: Initialise tune_params per processor.
15693 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
15694 for speed, based on new tune_params.
15695
15696 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15697
15698 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
15699 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
15700 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
15701 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
15702 * config/aarch64/arm_neon.h (vrnd_f64): Added.
15703 (vrnda_f64): Likewise.
15704 (vrndi_f64): Likewise.
15705 (vrndm_f64): Likewise.
15706 (vrndn_f64): Likewise.
15707 (vrndp_f64): Likewise.
15708 (vrndx_f64): Likewise.
15709
15710 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15711
15712 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
15713 GET_MODE_SIZE argument is enum machine_mode.
15714
15715 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15716
15717 PR target/60910
15718 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
15719 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
15720
15721 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
15722
15723 PR middle-end/60281
15724 * asan.c (asan_emit_stack_protection): Force the base to align to
15725 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
15726 appropriate bits if STRICT_ALIGNMENT.
15727 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
15728 when asan is on.
15729 (expand_used_vars): Leave a space in the stack frame for alignment
15730 if STRICT_ALIGNMENT.
15731
15732 2014-04-21 David Malcolm <dmalcolm@redhat.com>
15733
15734 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
15735 than a gimple.
15736 (gimple_store_p): Likewise.
15737 (gimple_assign_load_p): Likewise.
15738 (gimple_assign_cast_p): Likewise.
15739 (gimple_clobber_p): Likewise.
15740
15741 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
15742 rather than a gimple.
15743 (gimple_assign_cast_p): Likewise.
15744
15745 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15746
15747 PR target/60735
15748 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
15749 If mode is DDmode and TARGET_E500_DOUBLE allow move.
15750
15751 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
15752 more debug information for E500 if -mdebug=reg.
15753
15754 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
15755
15756 PR target/60909
15757 * config/i386/i386.c (ix86_expand_builtin)
15758 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
15759 register for target RTX.
15760 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
15761
15762 2014-04-18 Cong Hou <congh@google.com>
15763
15764 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
15765 the widen-mult pattern by handling two operands with different sizes,
15766 and operands whose size is smaller than half of the result type.
15767
15768 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15769
15770 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
15771 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
15772 (do_estimate_edge_time): Compute it.
15773 * ipa-inline.c (want_inline_small_function_p): Bypass
15774 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
15775
15776 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15777
15778 * ipa-inline.c (spec_rem): New static variable.
15779 (dump_overall_stats): New function.
15780 (dump_inline_stats): New function.
15781
15782 2014-04-18 Richard Henderson <rth@redhat.com>
15783
15784 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
15785 to GET_MODE_SIZE, not a reg_class_t.
15786
15787 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15788
15789 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
15790 (vsx_xxmrglw_<mode>): Likewise.
15791
15792 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
15793
15794 PR target/60876
15795 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
15796 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
15797 (rs6000_init_hard_regno_mode_ok): Likewise.
15798
15799 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
15800
15801 * ipa-inline.c (inline_small_functions): Account only non-cold
15802 functions.
15803 * doc/invoke.texi (inline-unit-growth): Update documentation.
15804
15805 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
15806
15807 * config/rs6000/rs6000.md (addti3, subti3): New.
15808
15809 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
15810
15811 PR target/60863
15812 * config/i386/i386.c (ix86_expand_clear): Remove outdated
15813 comment. Check optimize_insn_for_size_p instead of
15814 optimize_insn_for_speed_p.
15815
15816 2014-04-17 Martin Jambor <mjambor@suse.cz>
15817
15818 * gimple-iterator.c (gsi_start_edge): New function.
15819 * gimple-iterator.h (gsi_start_edge): Declare.
15820 * tree-sra.c (single_non_eh_succ): New function.
15821 (disqualify_ops_if_throwing_stmt): Renamed to
15822 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
15823 having one non-EH successor BB.
15824 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
15825 generate loads into replacements.
15826 (sra_modify_assign): Likewise and and also use the simple path for
15827 such statements.
15828 (sra_modify_function_body): Commit statements on edges.
15829
15830 2014-04-17 Richard Biener <rguenther@suse.de>
15831
15832 PR middle-end/60849
15833 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
15834 comparison results and add clarifying comment.
15835
15836 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15837
15838 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
15839 (blank_mode): Initialize it.
15840 (emit_mode_size_inline, emit_mode_nunits_inline,
15841 emit_mode_inner_inline): New functions.
15842 (emit_insn_modes_h): Call them and surround their output with
15843 #if GCC_VERSION >= 4001 ... #endif.
15844 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
15845 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
15846 mode_* arrays if the argument is __builtin_constant_p.
15847 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
15848 is enum machine_mode.
15849
15850 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15851
15852 * passes.c (opt_pass::execute): Adjust.
15853 (pass_manager::execute_pass_mode_switching): Likewise.
15854 (early_local_passes::execute): Likewise.
15855 (execute_one_pass): Pass cfun to the pass's execute method.
15856 * tree-pass.h (opt_pass::execute): Add function * argument.
15857 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15858 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15859 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15860 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15861 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15862 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
15863 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
15864 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15865 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15866 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
15867 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
15868 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
15869 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
15870 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
15871 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15872 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15873 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15874 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
15875 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15876 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15877 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15878 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15879 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15880 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15881 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15882 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15883 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15884 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15885 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15886 Adjust.
15887
15888 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15889
15890 * passes.c (opt_pass::gate): Take function * argument.
15891 (gate_all_early_local_passes): Merge into
15892 (early_local_passes::gate): this.
15893 (gate_all_early_optimizations): Merge into
15894 (all_early_optimizations::gate): this.
15895 (gate_all_optimizations): Mege into
15896 (all_optimizations::gate): this.
15897 (gate_all_optimizations_g): Merge into
15898 (all_optimizations_g::gate): this.
15899 (gate_rest_of_compilation): Mege into
15900 (rest_of_compilation::gate): this.
15901 (gate_postreload): Merge into
15902 (postreload::gate): this.
15903 (dump_one_pass): Pass cfun to the pass's gate method.
15904 (execute_ipa_summary_passes): Likewise.
15905 (execute_one_pass): Likewise.
15906 (ipa_write_summaries_2): Likewise.
15907 (ipa_write_optimization_summaries_1): Likewise.
15908 (ipa_read_summaries_1): Likewise.
15909 (ipa_read_optimization_summaries_1): Likewise.
15910 (execute_ipa_stmt_fixups): Likewise.
15911 * tree-pass.h (opt_pass::gate): Add function * argument.
15912 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
15913 combine-stack-adj.c, combine.c, compare-elim.c,
15914 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15915 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
15916 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
15917 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
15918 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15919 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15920 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15921 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
15922 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15923 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
15924 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15925 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15926 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
15927 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15928 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15929 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15930 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15931 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15932 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15933 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15934 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15935 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15936 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15937 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
15938 var-tracking.c, vtable-verify.c, web.c: Adjust.
15939
15940 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15941
15942 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
15943 * configure: Regenerate.
15944
15945 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15946
15947 * passes.c (dump_one_pass): don't check pass->has_gate.
15948 (execute_ipa_summary_passes): Likewise.
15949 (execute_one_pass): Likewise.
15950 (ipa_write_summaries_2): Likewise.
15951 (ipa_write_optimization_summaries_1): Likewise.
15952 (ipa_read_optimization_summaries_1): Likewise.
15953 (execute_ipa_stmt_fixups): Likewise.
15954 * tree-pass.h (pass_data::has_gate): Remove.
15955 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15956 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15957 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15958 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15959 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15960 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15961 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15962 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15963 gimple-low.c, gimple-ssa-isolate-paths.c,
15964 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15965 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15966 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15967 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
15968 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
15969 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
15970 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
15971 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15972 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
15973 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15974 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15975 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15976 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15977 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15978 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15979 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15980 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15981 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15982 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15983 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15984 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15985 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15986 Adjust.
15987
15988 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15989
15990 * pass_manager.h (pass_manager::register_dump_files_1): Remove
15991 declaration.
15992 * passes.c (pass_manager::register_dump_files_1): Merge into
15993 (pass_manager::register_dump_files): this, and remove its handling of
15994 properties since the pass always has the properties anyway.
15995 (pass_manager::pass_manager): Adjust.
15996
15997 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15998
15999 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
16000 * passes.c (pass_manager::register_dump_files_1): Remove dead code
16001 dealing with properties.
16002 (pass_manager::register_dump_files): Adjust.
16003
16004 2014-03-20 Mark Wielaard <mjw@redhat.com>
16005
16006 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
16007 then represent the bound as normal constant value.
16008
16009 2014-04-17 Jakub Jelinek <jakub@redhat.com>
16010
16011 PR target/60847
16012 Forward port from 4.8 branch
16013 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
16014
16015 * config/i386/bmiintrin.h (_blsi_u32): New.
16016 (_blsi_u64): Ditto.
16017 (_blsr_u32): Ditto.
16018 (_blsr_u64): Ditto.
16019 (_blsmsk_u32): Ditto.
16020 (_blsmsk_u64): Ditto.
16021 (_tzcnt_u32): Ditto.
16022 (_tzcnt_u64): Ditto.
16023
16024 2014-04-17 Kito Cheng <kito@0xlab.org>
16025
16026 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
16027
16028 2014-04-17 Richard Biener <rguenther@suse.de>
16029
16030 PR middle-end/60849
16031 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
16032 boolean results for comparisons.
16033
16034 2014-04-17 Richard Biener <rguenther@suse.de>
16035
16036 PR tree-optimization/60836
16037 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
16038 initial PHI args to be gimple values.
16039
16040 2014-04-17 Richard Biener <rguenther@suse.de>
16041
16042 PR tree-optimization/60841
16043 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
16044 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
16045 of stmts to SLP build.
16046 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
16047 (vect_analyze_slp): Likewise.
16048 (vect_analyze_slp_instance): Likewise.
16049 (vect_build_slp_tree): Limit overall SLP tree growth.
16050 * tree-vectorizer.h (vect_analyze_data_refs,
16051 vect_analyze_slp): Adjust prototypes.
16052
16053 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
16054
16055 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
16056 Silvermont.
16057
16058 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
16059
16060 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
16061 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
16062 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
16063 for TARGET_SLOW_PSHUFB
16064
16065 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
16066
16067 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
16068 * config/i386/i386.c (intel_cost): Ditto.
16069
16070 2014-04-17 Joey Ye <joey.ye@arm.com>
16071
16072 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
16073
16074 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
16075
16076 * opts.c (common_handle_option): Disable -fipa-reference coorectly
16077 with -fuse-profile.
16078
16079 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
16080
16081 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
16082 (type_all_derivations_known_p): New predicate.
16083 (type_all_ctors_visible_p): New predicate.
16084 (type_possibly_instantiated_p): New predicate.
16085 (get_odr_type): Compute all_derivations_known.
16086 (dump_odr_type): Dump the flag.
16087 (maybe_record_type): Cleanup.
16088 (record_target_from_binfo): Add bases_to_consider array;
16089 record bases for types w/o instances and skip CXX destructor.
16090 (possible_polymorphic_call_targets_1): Add bases_to_consider
16091 and consider_construction parameters; check if type may have instance.
16092 (get_polymorphic_call_info): Set maybe_in_construction to true
16093 when we know nothing.
16094 (record_targets_from_bases): Skip CXX destructors; they are
16095 never called for types in construction.
16096 (possible_polymorphic_call_targets): Do not record target when
16097 type may not have instance.
16098
16099 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
16100
16101 PR ipa/60854
16102 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
16103 external aliases alive, too.
16104
16105 2014-04-16 Andrew Pinski <apinski@cavium.com>
16106
16107 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
16108 definition.
16109
16110 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
16111
16112 * final.c (compute_alignments): Do not apply loop alignment to a block
16113 falling through to the exit.
16114
16115 2014-04-16 Catherine Moore <clm@codesourcery.com>
16116
16117 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
16118 Adjust constraints for microMIPS store patterns.
16119
16120 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
16121
16122 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
16123
16124 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
16125
16126 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
16127 (append_use): Run at -O0.
16128 (append_vdef): Likewise.
16129 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
16130 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
16131
16132 2014-04-16 Jakub Jelinek <jakub@redhat.com>
16133
16134 PR tree-optimization/60844
16135 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
16136 (propagate_op_to_single_use, remove_visited_stmt_chain,
16137 linearize_expr, repropagate_negates, reassociate_bb): Use it
16138 instead of gsi_remove.
16139
16140 2014-04-16 Martin Jambor <mjambor@suse.cz>
16141
16142 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
16143 ipa_transforms_to_apply.
16144 (cgraph_function_versioning): Assert that old_node has empty
16145 ipa_transforms_to_apply.
16146 * trans-mem.c (ipa_tm_create_version): Likewise.
16147 * tree-inline.c (tree_function_versioning): Do not duplicate
16148 ipa_transforms_to_apply.
16149
16150 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16151
16152 PR target/60817
16153 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
16154 x86_64-*-* cases.
16155 Pass necessary as flags on 64-bit Solaris/x86.
16156 Use lowercase relocs for x86_64-*-*.
16157 * configure: Regenerate.
16158
16159 2014-04-15 Jan Hubicka <jh@suse.cz>
16160
16161 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
16162 (maybe_record_node, likely_target_p): Use it.
16163
16164 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16165
16166 PR target/60839
16167 Revert following patch
16168
16169 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16170
16171 PR target/60735
16172 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16173 software floating point or no floating point registers, do not
16174 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16175 in GPRs that occurs after we tested for GPRs that would never be
16176 true.
16177
16178 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16179 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16180 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16181 specifically allow DDmode, since that does not use the SPE SIMD
16182 instructions.
16183
16184 2014-03-21 Mark Wielaard <mjw@redhat.com>
16185
16186 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
16187 as unsigned or int depending on type and value used.
16188
16189 2014-04-15 Richard Biener <rguenther@suse.de>
16190
16191 PR rtl-optimization/56965
16192 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
16193 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
16194 ... here.
16195 * alias.c (true_dependence_1): Do not call
16196 nonoverlapping_component_refs_p.
16197 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
16198 nonoverlapping_component_refs_p.
16199 (indirect_refs_may_alias_p): Likewise.
16200
16201 2014-04-15 Teresa Johnson <tejohnson@google.com>
16202
16203 * cfg.c (dump_bb_info): Fix flags check.
16204 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
16205
16206 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16207
16208 PR rtl-optimization/60663
16209 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
16210 avoid 0 cost.
16211
16212 2014-04-15 Richard Biener <rguenther@suse.de>
16213
16214 * lto-streamer.h (LTO_major_version): Bump to 4.
16215
16216 2014-04-15 Richard Biener <rguenther@suse.de>
16217
16218 * common.opt (lto_partition_model): New enum.
16219 (flto-partition=): Merge separate options with a single with argument,
16220 add -flto-partition=one support.
16221 * flag-types.h (enum lto_partition_model): Declare.
16222 * opts.c (finish_options): Remove duplicate -flto-partition=
16223 option check.
16224 * lto-wrapper.c (run_gcc): Adjust.
16225
16226 2014-04-15 Richard Biener <rguenther@suse.de>
16227
16228 * alias.c (ncr_compar): New function.
16229 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
16230
16231 2014-04-15 Richard Biener <rguenther@suse.de>
16232
16233 * alias.c (record_component_aliases): Do not walk BINFOs.
16234
16235 2014-04-15 Richard Biener <rguenther@suse.de>
16236
16237 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16238 Add struct function argument and adjust.
16239 (find_func_aliases_for_call): Likewise.
16240 (find_func_aliases): Likewise.
16241 (find_func_clobbers): Likewise.
16242 (intra_create_variable_infos): Likewise.
16243 (compute_points_to_sets): Likewise.
16244 (ipa_pta_execute): Adjust. Do not push/pop cfun.
16245
16246 2014-04-15 Richard Biener <rguenther@suse.de>
16247
16248 * tree.c (iterative_hash_expr): Use enum tree_code_class
16249 to store TREE_CODE_CLASS.
16250 (tree_block): Likewise.
16251 (tree_set_block): Likewise.
16252 * tree.h (fold_build_pointer_plus_loc): Use
16253 convert_to_ptrofftype_loc.
16254
16255 2014-04-15 Jakub Jelinek <jakub@redhat.com>
16256
16257 PR plugins/59335
16258 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
16259 added in 4.9.
16260
16261 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
16262
16263 * cfgloop.h (struct loop): Move force_vectorize down.
16264 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
16265 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
16266 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
16267 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
16268 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
16269 * tree-core.h (enum annot_expr_kind): Add new kind values.
16270 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
16271 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
16272 kinds.
16273 * tree.def (ANNOTATE_EXPR): Tweak comment.
16274
16275 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16276
16277 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
16278 cxa_pure_virtual).
16279
16280 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
16281
16282 * tree.h (TYPE_IDENTIFIER): Declare.
16283 * tree.c (subrange_type_for_debug_p): Use it.
16284 * godump.c (go_format_type): Likewise.
16285 * dwarf2out.c (is_cxx_auto, modified_type_die,
16286 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
16287 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
16288
16289 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16290
16291 PR lto/60820
16292 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
16293
16294 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
16295
16296 * config/i386/i386.c (examine_argument): Return bool. Return true if
16297 parameter should be passed in memory.
16298 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
16299 (construct_container): Update calls to examine_argument.
16300 (function_arg_advance_64): Ditto.
16301 (return_in_memory_32): Merge with ix86_return_in_memory.
16302 (return_in_memory_64): Ditto.
16303 (return_in_memory_ms_64): Ditto.
16304
16305 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16306
16307 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
16308 * coverage.c (coverage_compute_profile_id): Handle externally visible
16309 symbols.
16310
16311 2014-04-14 Martin Jambor <mjambor@suse.cz>
16312
16313 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
16314 DECL_DISREGARD_INLINE_LIMITS functions.
16315
16316 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
16317
16318 PR target/60827
16319 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
16320
16321 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
16322
16323 PR target/60827
16324 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
16325 optimize_insn_for_speed_p instead of
16326 optimize_function_for_speed_p.
16327
16328 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
16329
16330 * doc/invoke.texi (free): Document AArch64.
16331
16332 2014-04-14 Richard Biener <rguenther@suse.de>
16333
16334 PR tree-optimization/60042
16335 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
16336 (insert_into_preds_of_block): Do not prevent PHI insertion
16337 for REFERENCE exprs here ...
16338 (eliminate_dom_walker::before_dom_children): ... but prevent
16339 their use here under similar conditions when applied to the
16340 IL after PRE optimizations.
16341
16342 2014-04-14 Richard Biener <rguenther@suse.de>
16343
16344 * passes.def: Move early points-to after early SRA.
16345
16346 2014-04-14 Richard Biener <rguenther@suse.de>
16347
16348 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
16349 check for which sign-changes we allow when forwarding
16350 a converted value into a switch.
16351
16352 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
16353
16354 * stor-layout.c (place_field): Finalize non-constant offset for the
16355 field, if any.
16356
16357 2014-04-14 Richard Biener <rguenther@suse.de>
16358
16359 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
16360 as argument.
16361 (expand_switch_using_bit_tests_p): Likewise.
16362 (process_switch): Compute and pass on speed_p based on the
16363 switch stmt.
16364 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
16365 optimize_bb_for_speed_p.
16366
16367 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
16368
16369 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
16370 * function.h (struct function): Rename has_force_vect_loops into
16371 has_force_vectorize_loops.
16372 * lto-streamer-in.c (input_cfg): Adjust for renaming.
16373 (input_struct_function_base): Likewise.
16374 * lto-streamer-out.c (output_cfg): Likewise.
16375 (output_struct_function_base): Likewise.
16376 * omp-low.c (expand_omp_simd): Likewise.
16377 * tree-cfg.c (move_sese_region_to_fn): Likewise.
16378 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
16379 (version_loop_for_if_conversion): Likewise.
16380 (tree_if_conversion): Likewise.
16381 (main_tree_if_conversion): Likewise.
16382 (gate_tree_if_conversion): Likewise.
16383 * tree-inline.c (copy_loops): Likewise.
16384 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
16385 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
16386 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
16387 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
16388 * tree-vectorizer.c (vectorize_loops): Likewise.
16389 * tree-vectorizer.h (unlimited_cost_model): Likewise.
16390
16391 2014-04-14 Richard Biener <rguenther@suse.de>
16392
16393 PR lto/60720
16394 * lto-streamer-out.c (wrap_refs): New function.
16395 (lto_output): Wrap symbol references in global initializes in
16396 type-preserving MEM_REFs.
16397
16398 2014-04-14 Christian Bruel <christian.bruel@st.com>
16399
16400 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
16401
16402 2014-04-14 Christian Bruel <christian.bruel@st.com>
16403
16404 * config/sh/sh.md (setmemqi): New expand pattern.
16405 * config/sh/sh.h (CLEAR_RATIO): Define.
16406 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
16407 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
16408
16409 2014-04-14 Richard Biener <rguenther@suse.de>
16410
16411 PR middle-end/55022
16412 * fold-const.c (negate_expr_p): Don't negate directional rounding
16413 division.
16414 (fold_negate_expr): Likewise.
16415
16416 2014-04-14 Richard Biener <rguenther@suse.de>
16417
16418 PR tree-optimization/59817
16419 PR tree-optimization/60453
16420 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
16421 recursion to catch all CHRECs in the scalar evolution and restrict
16422 the predicate for the remains appropriately.
16423
16424 2014-04-12 Catherine Moore <clm@codesourcery.com>
16425
16426 * config/mips/constraints.md: Add new register constraint "kb".
16427 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
16428 (*movhi_internal): Likewise.
16429 (*movqi_internal): Likewise.
16430 * config/mips/mips.h (M16_STORE_REGS): New register class.
16431 (REG_CLASS_NAMES): Add M16_STORE_REGS.
16432 (REG_CLASS_CONTENTS): Likewise.
16433 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
16434
16435 2014-04-11 Tobias Burnus <burnus@net-b.de>
16436
16437 PR c/60194
16438 * doc/invoke.texi (-Wformat-signedness): Document it.
16439 (Wformat=2): Mention that this enables -Wformat-signedness.
16440
16441 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16442
16443 * common/config/epiphany/epiphany-common.c
16444 (epiphany_option_optimization_table): Enable section anchors by
16445 default at -O1 or higher.
16446 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
16447 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
16448 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
16449 carries no extra cost.
16450 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
16451 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
16452 * config/epiphany/predicates.md (memclob_operand): New predicate.
16453 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
16454 Use memclob_operand predicate and X constraint for operand 3.
16455
16456 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16457
16458 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
16459 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
16460 its operands.
16461
16462 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16463
16464 PR rtl-optimization/60651
16465 * mode-switching.c (optimize_mode_switching): Make sure to emit
16466 sets of a lower numbered entity before sets of a higher numbered
16467 entity to a mode of the same or lower priority.
16468 When creating a seginfo for a basic block that starts with a code
16469 label, move the insertion point past the code label.
16470 (new_seginfo): Document and enforce requirement that
16471 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
16472 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
16473 * doc/tm.texi: Regenerate.
16474
16475 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
16476
16477 PR target/60811
16478 * config/arc/arc.c (arc_save_restore): Fix assert typo.
16479
16480 2013-04-11 Jakub Jelinek <jakub@redhat.com>
16481
16482 * BASE-VER: Set to 4.10.0.
16483
16484 2014-04-11 Tobias Burnus <burnus@net-b.de>
16485
16486 PR other/59055
16487 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
16488 * doc/gcc.texi (Service): Update description in the @menu
16489 * doc/invoke.texi (Option Summary): Remove misplaced and
16490 duplicated @menu.
16491
16492 2014-04-11 Steve Ellcey <sellcey@mips.com>
16493 Jakub Jelinek <jakub@redhat.com>
16494
16495 PR middle-end/60556
16496 * expr.c (convert_move): Use emit_store_flag_force instead of
16497 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
16498 argument to it.
16499
16500 2014-04-11 Richard Biener <rguenther@suse.de>
16501
16502 PR middle-end/60797
16503 * varasm.c (assemble_alias): Avoid endless error reporting
16504 recursion by setting TREE_ASM_WRITTEN.
16505
16506 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16507
16508 * config/s390/s390.md: Add a splitter for NOT rtx.
16509
16510 2014-04-11 Jakub Jelinek <jakub@redhat.com>
16511
16512 PR rtl-optimization/60663
16513 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
16514
16515 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
16516 Jakub Jelinek <jakub@redhat.com>
16517
16518 PR lto/60567
16519 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
16520 flag from decl_node to node.
16521
16522 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16523
16524 PR debug/60655
16525 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
16526 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
16527 ameliorating the cases where it can be.
16528
16529 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
16530
16531 Revert
16532 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
16533
16534 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
16535 (loadsync_<mode>): Change mode.
16536 (load_quadpti, store_quadpti): New.
16537 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
16538 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
16539 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
16540
16541 2014-04-09 Cong Hou <congh@google.com>
16542
16543 PR testsuite/60773
16544 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
16545 documentation.
16546
16547 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16548
16549 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
16550 instead of vnor to exploit possible fusion opportunity in the
16551 future.
16552 (altivec_expand_vec_perm_const_le): Likewise.
16553
16554 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
16555
16556 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
16557 (loadsync_<mode>): Change mode.
16558 (load_quadpti, store_quadpti): New.
16559 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
16560 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
16561
16562 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
16563
16564 PR target/60763
16565 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
16566 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
16567 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
16568
16569 2014-04-08 Richard Biener <rguenther@suse.de>
16570
16571 PR middle-end/60706
16572 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
16573 a 64bit widest int print double-int similar to on HWI64 hosts.
16574
16575 2014-04-08 Richard Biener <rguenther@suse.de>
16576
16577 PR tree-optimization/60785
16578 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
16579 default defs properly.
16580
16581 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
16582
16583 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
16584 (Weffc++): Likewise.
16585
16586 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
16587
16588 * ipa-devirt.c (maybe_record_node): When node is not recorded,
16589 set completep to false rather than true.
16590
16591 2014-04-07 Douglas B Rupp <rupp@adacore.com>
16592
16593 PR target/60504
16594 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
16595 ARM_TARGET2_DWARF_FORMAT.
16596
16597 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
16598
16599 PR target/60609
16600 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
16601 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
16602 ADDR_DIFF_VEC.
16603
16604 2014-04-07 Richard Biener <rguenther@suse.de>
16605
16606 PR tree-optimization/60766
16607 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
16608 (may_eliminate_iv): Convert cand_value_at result to desired type.
16609
16610 2014-04-07 Jason Merrill <jason@redhat.com>
16611
16612 PR c++/60731
16613 * common.opt (-fno-gnu-unique): Add.
16614 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
16615
16616 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16617
16618 * haifa-sched.c: Fix outdated function reference and minor
16619 grammar errors in introductory comment.
16620
16621 2014-04-07 Richard Biener <rguenther@suse.de>
16622
16623 PR middle-end/60750
16624 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
16625 for noreturn calls.
16626 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
16627
16628 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
16629
16630 PR debug/55794
16631 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
16632 size accounting for thunks.
16633 (pa_asm_output_mi_thunk): Use final_start_function() and
16634 final_end_function() to output function start and end directives.
16635
16636 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
16637
16638 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
16639 device specific ISA/ feature information. Remove short_sp and
16640 errata_skip ds. Add avr_device_specific_features enum to have device
16641 specific info.
16642 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
16643 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
16644 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
16645 updated device specific info.
16646 * config/avr/avr-mcus.def: Merge device specific details to
16647 dev_attribute field.
16648 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
16649 errata_skip.
16650 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
16651 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
16652 assembler if RMW isa supported by current device.
16653 * config/avr/genmultilib.awk: Update as device info structure changed.
16654 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
16655
16656 2014-04-04 Cong Hou <congh@google.com>
16657
16658 PR tree-optimization/60656
16659 * tree-vect-stmts.c (supportable_widening_operation):
16660 Fix a bug that elements in a vector with vect_used_by_reduction
16661 property are incorrectly reordered when the operation on it is not
16662 consistant with the one in reduction operation.
16663
16664 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
16665
16666 PR rtl-optimization/60155
16667 * gcse.c (record_set_data): New function.
16668 (single_set_gcse): New function.
16669 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
16670 (hoist_code): Likewise.
16671 (get_pressure_class_and_nregs): Likewise.
16672
16673 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
16674
16675 * explow.c (probe_stack_range): Emit a final optimization blockage.
16676
16677 2014-04-04 Anthony Green <green@moxielogic.com>
16678
16679 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
16680 typos.
16681
16682 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
16683
16684 PR ipa/59626
16685 * lto-cgraph.c (input_overwrite_node): Check that partitioning
16686 flags are set only during streaming.
16687 * ipa.c (process_references, walk_polymorphic_call_targets,
16688 symtab_remove_unreachable_nodes): Drop bodies of always inline
16689 after early inlining.
16690 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
16691
16692 2014-04-04 Jakub Jelinek <jakub@redhat.com>
16693 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16694
16695 PR debug/60655
16696 * dwarf2out.c (const_ok_for_output_1): Reject expressions
16697 containing a NOT.
16698
16699 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16700
16701 PR bootstrap/60743
16702 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
16703 duration.
16704 (cortex_a53_fdivd): Likewise.
16705
16706 2014-04-04 Martin Jambor <mjambor@suse.cz>
16707
16708 PR ipa/60640
16709 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
16710 Adjust all callers.
16711 * cgraph.c (clone_of_p): Also return true if thunks match.
16712 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
16713 cgraph_function_or_thunk_node and an obsolete comment.
16714 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
16715 file.
16716 (build_function_decl_skip_args): Likewise.
16717 (set_new_clone_decl_and_node_flags): New function.
16718 (duplicate_thunk_for_node): Likewise.
16719 (redirect_edge_duplicating_thunks): Likewise.
16720 (cgraph_clone_node): New parameter args_to_skip, pass it to
16721 redirect_edge_duplicating_thunks which is called instead of
16722 cgraph_redirect_edge_callee.
16723 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
16724 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
16725
16726 2014-04-04 Jeff Law <law@redhat.com>
16727
16728 PR target/60657
16729 * config/arm/predicates.md (const_int_I_operand): New predicate.
16730 (const_int_M_operand): Similarly.
16731 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
16732 const_int_operand.
16733 (insv_t2, extv_reg, extzv_t2): Likewise.
16734 (load_multiple_with_writeback): Similarly for const_int_I_operand.
16735 (pop_multiple_with_writeback_and_return): Likewise.
16736 (vfp_pop_multiple_with_writeback): Likewise
16737
16738 2014-04-04 Richard Biener <rguenther@suse.de>
16739
16740 PR ipa/60746
16741 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
16742 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
16743 non-GIMPLE_LABELs.
16744 * gimplify.h (gimple_add_tmp_var_fn): Declare.
16745 * gimplify.c (gimple_add_tmp_var_fn): New function.
16746 * gimple-expr.h (create_tmp_reg_fn): Declare.
16747 * gimple-expr.c (create_tmp_reg_fn): New function.
16748 * gimple-low.c (record_vars_into): Don't change cfun.
16749 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
16750 code generation without cfun.
16751
16752 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
16753
16754 PR bootstrap/60719
16755 * Makefile.in (install-driver): Fix shell scripting.
16756
16757 2014-04-03 Cong Hou <congh@google.com>
16758
16759 PR tree-optimization/60505
16760 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
16761 threshold of number of iterations below which no vectorization
16762 will be done.
16763 * tree-vect-loop.c (new_loop_vec_info):
16764 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
16765 * tree-vect-loop.c (vect_analyze_loop_operations):
16766 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
16767 * tree-vect-loop.c (vect_transform_loop):
16768 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
16769 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
16770 of iterations of the loop and see if we should build the epilogue.
16771
16772 2014-04-03 Richard Biener <rguenther@suse.de>
16773
16774 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
16775 (streamer_tree_cache_create): Adjust.
16776 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
16777 to allow optional nodes array.
16778 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
16779 (streamer_tree_cache_append): Likewise.
16780 (streamer_tree_cache_create): Create nodes array optionally
16781 as specified by parameter.
16782 * lto-streamer-out.c (create_output_block): Avoid maintaining
16783 the node array in the writer cache.
16784 (DFS_write_tree): Remove assertion.
16785 (produce_asm_for_decls): Free the out decl state hash table early.
16786 * lto-streamer-in.c (lto_data_in_create): Adjust for
16787 streamer_tree_cache_create prototype change.
16788
16789 2014-04-03 Richard Biener <rguenther@suse.de>
16790
16791 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
16792 set TREE_CHAIN to NULL_TREE.
16793
16794 2014-04-03 Richard Biener <rguenther@suse.de>
16795
16796 PR tree-optimization/60740
16797 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
16798 over all GIMPLE_COND operands.
16799
16800 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
16801
16802 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
16803 (Weffc++): Remove Scott's numbering, merge lists and reference
16804 Wnon-virtual-dtor.
16805
16806 2014-04-03 Nick Clifton <nickc@redhat.com>
16807
16808 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
16809 properly.
16810
16811 2014-04-03 Martin Jambor <mjambor@suse.cz>
16812
16813 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
16814 mention gcc_unreachable before failing.
16815 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
16816 removed symbols.
16817
16818 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
16819
16820 PR ipa/60659
16821 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
16822 inconsistent code and instead mark the context inconsistent.
16823 (possible_polymorphic_call_targets): For inconsistent contexts
16824 return empty complete list.
16825
16826 2014-04-02 Anthony Green <green@moxielogic.com>
16827
16828 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
16829 (extendqisi2, extendhisi2): Define.
16830 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
16831 (WCHAR_TYPE): Change to unsigned int.
16832
16833 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16834
16835 PR tree-optimization/60733
16836 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
16837 insertion point for PHI candidates to be the end of the feeding
16838 block for the PHI argument.
16839
16840 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
16841
16842 PR rtl-optimization/60650
16843 * lra-constraints.c (process_alt_operands): Decrease reject for
16844 earlyclobber matching.
16845
16846 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16847
16848 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
16849
16850 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16851
16852 * config/spu/spu.c (pad_bb): Do not crash when the last
16853 insn is CODE_FOR_blockage.
16854
16855 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16856
16857 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
16858 lies outside the target mode.
16859
16860 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16861
16862 PR target/60735
16863 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16864 software floating point or no floating point registers, do not
16865 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16866 in GPRs that occurs after we tested for GPRs that would never be
16867 true.
16868
16869 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16870 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16871 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16872 specifically allow DDmode, since that does not use the SPE SIMD
16873 instructions.
16874
16875 2014-04-02 Richard Biener <rguenther@suse.de>
16876
16877 PR middle-end/60729
16878 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
16879 MODE_INTs. Properly use negv_optab.
16880 (expand_abs): Likewise.
16881
16882 2014-04-02 Richard Biener <rguenther@suse.de>
16883
16884 PR bootstrap/60719
16885 * Makefile.in (install-driver): Guard extra installs with special
16886 names properly.
16887
16888 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16889
16890 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16891 Document vec_vgbbd.
16892
16893 2014-04-01 Richard Henderson <rth@redhat.com>
16894
16895 PR target/60704
16896 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
16897 alternative enabled before register allocation.
16898
16899 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
16900
16901 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
16902 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
16903 typo.
16904 (nios2_large_got_address): Remove unneeded 'sym' parameter.
16905 (nios2_got_address): Update nios2_large_got_address call site.
16906 (nios2_delegitimize_address): New function.
16907 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
16908 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
16909 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
16910
16911 2014-04-01 Martin Husemann <martin@duskware.de>
16912
16913 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
16914 for -mabi=32.
16915
16916 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
16917
16918 PR rtl-optimization/60604
16919 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
16920 check from register_operand.
16921 (register_operand): Redefine in terms of general_operand.
16922 (nonmemory_operand): Use register_operand for the non-constant cases.
16923
16924 2014-04-01 Richard Biener <rguenther@suse.de>
16925
16926 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
16927
16928 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
16929
16930 * doc/invoke.texi (mapp-regs): Clarify.
16931
16932 2014-03-31 Ulrich Drepper <drepper@gmail.com>
16933
16934 * config/i386/avx512fintrin.h (__v32hi): Define type.
16935 (__v64qi): Likewise.
16936 (_mm512_set1_epi8): Define.
16937 (_mm512_set1_epi16): Define.
16938 (_mm512_set4_epi32): Define.
16939 (_mm512_set4_epi64): Define.
16940 (_mm512_set4_pd): Define.
16941 (_mm512_set4_ps): Define.
16942 (_mm512_setr4_epi64): Define.
16943 (_mm512_setr4_epi32): Define.
16944 (_mm512_setr4_pd): Define.
16945 (_mm512_setr4_ps): Define.
16946 (_mm512_setzero_epi32): Define.
16947
16948 2014-03-31 Martin Jambor <mjambor@suse.cz>
16949
16950 PR middle-end/60647
16951 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
16952 callsite_arguments_match_p. Updated all callers. Also check types of
16953 corresponding formal parameters and actual arguments.
16954 (not_all_callers_have_enough_arguments_p) Renamed to
16955 some_callers_have_mismatched_arguments_p.
16956
16957 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
16958
16959 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
16960
16961 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16962
16963 PR target/60034
16964 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
16965 section anchor.
16966
16967 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
16968
16969 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
16970 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
16971 Split out
16972 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
16973 Use FMAMODE_NOVF512 mode iterator.
16974 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
16975 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
16976 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
16977 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
16978 Split out
16979 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
16980 Use VF_128_256 mode iterator.
16981 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
16982 Ditto.
16983
16984 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16985
16986 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
16987 static chain if needed.
16988
16989 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16990
16991 PR target/60697
16992 * lra-constraints.c (index_part_to_reg): New.
16993 (process_address): Use it.
16994
16995 2014-03-27 Jeff Law <law@redhat.com>
16996 Jakub Jelinek <jakub@redhat.com>
16997
16998 PR target/60648
16999 * expr.c (do_tablejump): Use simplify_gen_binary rather than
17000 gen_rtx_{PLUS,MULT} to build up the address expression.
17001
17002 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
17003 creating non-canonical RTL.
17004
17005 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
17006
17007 PR ipa/60243
17008 * ipa-inline.c (want_inline_small_function_p): Short circuit large
17009 functions; reorganize to make cheap checks first.
17010 (inline_small_functions): Do not estimate growth when dumping;
17011 it is expensive.
17012 * ipa-inline.h (inline_summary): Add min_size.
17013 (growth_likely_positive): New function.
17014 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
17015 (set_cond_stmt_execution_predicate): Cleanup.
17016 (estimate_edge_size_and_time): Compute min_size.
17017 (estimate_calls_size_and_time): Likewise.
17018 (estimate_node_size_and_time): Likewise.
17019 (inline_update_overall_summary): Update min_size.
17020 (do_estimate_edge_time): Likewise.
17021 (do_estimate_edge_size): Update.
17022 (do_estimate_edge_hints): Update.
17023 (growth_likely_positive): New function.
17024
17025 2014-03-28 Jakub Jelinek <jakub@redhat.com>
17026
17027 PR target/60693
17028 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
17029 also if addr has VOIDmode.
17030
17031 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17032
17033 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
17034 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
17035 Declare extern.
17036 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
17037 instructions as well as AdvancedSIMD loads.
17038
17039 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17040
17041 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
17042 Use crypto_aese type.
17043 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
17044 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
17045 crypto_aese, crypto_aesmc. Move to types.md.
17046 * config/arm/types.md (crypto_aes): Split into crypto_aese,
17047 crypto_aesmc.
17048 * config/arm/iterators.md (crypto_type): Likewise.
17049
17050 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
17051
17052 * cgraph.c: Include expr.h and tree-dfa.h.
17053 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
17054 remove LHS.
17055
17056 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
17057
17058 PR target/60675
17059 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
17060 regs from checking multi-reg pseudos.
17061
17062 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17063
17064 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
17065
17066 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17067
17068 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
17069 if it would clobber the stack pointer, even temporarily.
17070
17071 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
17072
17073 * mode-switching.c: Make small adjustments to the top comment.
17074
17075 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
17076
17077 * config/rs6000/constraints.md (wD constraint): New constraint to
17078 match the constant integer to get the top DImode/DFmode out of a
17079 vector in a VSX register.
17080
17081 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
17082 match the constant integer to get the top DImode/DFmode out of a
17083 vector in a VSX register.
17084
17085 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
17086 for ISA 2.07.
17087
17088 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17089 vbpermq builtins.
17090
17091 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
17092 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
17093
17094 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
17095 Optimize vec_extract of 64-bit values, where the value being
17096 extracted is in the top word, where we can use scalar
17097 instructions. Add direct move and store support. Combine the big
17098 endian/little endian vector select load support into a single insn.
17099 (vsx_extract_<mode>_internal1): Likewise.
17100 (vsx_extract_<mode>_internal2): Likewise.
17101 (vsx_extract_<mode>_load): Likewise.
17102 (vsx_extract_<mode>_store): Likewise.
17103 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
17104 combined into vsx_extract_<mode>_load.
17105 (vsx_extract_<mode>_one_le): Likewise.
17106
17107 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
17108 define the top 64-bit vector element.
17109
17110 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
17111 constraint.
17112
17113 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17114 Document vec_vbpermq builtin.
17115
17116 PR target/60672
17117 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
17118 enable use of xxsldwi and xxpermdi builtin functions.
17119 (vec_xxpermdi): Likewise.
17120
17121 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17122 Document use of vec_xxsldwi and vec_xxpermdi builtins.
17123
17124 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
17125
17126 PR rtl-optimization/60650
17127 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
17128 first_p. Use it.
17129 (find_spills_for): New.
17130 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
17131 Spill all pseudos on the second iteration.
17132
17133 2014-03-27 Marek Polacek <polacek@redhat.com>
17134
17135 PR c/50347
17136 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
17137 types.
17138
17139 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17140
17141 * config/s390/s390.c (s390_can_use_return_insn): Check for
17142 call-saved FPRs on 31 bit.
17143
17144 2014-03-27 Jakub Jelinek <jakub@redhat.com>
17145
17146 PR middle-end/60682
17147 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
17148 if they need regimplification, just drop them instead of
17149 calling gimple_regimplify_operands on them.
17150
17151 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
17152
17153 PR target/60580
17154 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
17155 (aarch64_frame_pointer_required): Adjust logic.
17156 (aarch64_can_eliminate): Adjust logic.
17157 (aarch64_override_options_after_change): Adjust logic.
17158
17159 2014-03-27 Dehao Chen <dehao@google.com>
17160
17161 * ipa-inline.c (early_inliner): Update node's inline info.
17162
17163 2014-03-26 Dehao Chen <dehao@google.com>
17164
17165 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
17166 compiler inserted conditional jumps for NAN float check.
17167
17168 2014-03-26 Jakub Jelinek <jakub@redhat.com>
17169
17170 * ubsan.h (ubsan_create_data): Change second argument's type
17171 to const location_t *.
17172 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
17173 _("<unknown>").
17174 (ubsan_create_data): Change second argument to const location_t *PLOC.
17175 Create Loc field whenever PLOC is non-NULL.
17176 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
17177 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
17178 callers.
17179
17180 PR other/59545
17181 * real.c (real_to_integer2): Change type of low to UHWI.
17182
17183 2014-03-26 Tobias Burnus <burnus@net-b.de>
17184
17185 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
17186 (CILK_SELF_SPECS): New define.
17187 (driver_self_specs): Use it.
17188
17189 2014-03-26 Richard Biener <rguenther@suse.de>
17190
17191 * tree-pretty-print.c (percent_K_format): Implement special
17192 case for LTO and its stripped down BLOCK tree.
17193
17194 2014-03-26 Jakub Jelinek <jakub@redhat.com>
17195
17196 PR sanitizer/60636
17197 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
17198
17199 * tree-vrp.c (simplify_internal_call_using_ranges): If only
17200 one range is range_int_cst_p, but not both, at least optimize
17201 addition/subtraction of 0 and multiplication by 0 or 1.
17202 * gimple-fold.c (gimple_fold_call): Fold
17203 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
17204 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
17205 INTEGER_CSTs, try to fold at least x * 0 and y - y.
17206
17207 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
17208
17209 PR rtl-optimization/60452
17210 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
17211 <case REG>: Return 1 for invalid offsets from the frame pointer.
17212
17213 2014-03-26 Marek Polacek <polacek@redhat.com>
17214
17215 PR c/37428
17216 * doc/extend.texi (C Extensions): Mention variable-length arrays in
17217 a structure/union.
17218
17219 2014-03-26 Marek Polacek <polacek@redhat.com>
17220
17221 PR c/39525
17222 * doc/extend.texi (Designated Inits): Describe what happens to omitted
17223 field members.
17224
17225 2014-03-26 Marek Polacek <polacek@redhat.com>
17226
17227 PR other/59545
17228 * ira-color.c (update_conflict_hard_regno_costs): Perform the
17229 multiplication in unsigned type.
17230
17231 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
17232
17233 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
17234
17235 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
17236
17237 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
17238
17239 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
17240
17241 PR ipa/60315
17242 * cif-code.def (UNREACHABLE) New code.
17243 * ipa-inline.c (inline_small_functions): Skip edges to
17244 __builtlin_unreachable.
17245 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
17246 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
17247 predicate to __bulitin_unreachable.
17248 (set_cond_stmt_execution_predicate): Fix issue when
17249 invert_tree_comparison returns ERROR_MARK.
17250 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
17251 propagate to inline clones.
17252 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
17253 to unreachable.
17254 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
17255 * cgraphclones.c (cgraph_clone_node): If call destination is already
17256 ureachable, do not redirect it back.
17257 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
17258 unreachable.
17259
17260 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
17261
17262 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
17263 Do not modify inline clones.
17264
17265 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17266
17267 * config/i386/i386.md (general_sext_operand): New mode attr.
17268 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
17269 don't generate (sign_extend (const_int)).
17270 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
17271 operands[2]. Use We constraint instead of <i> and
17272 <general_sext_operand> predicate instead of <general_operand>.
17273 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
17274 * config/i386/constraints.md (We): New constraint.
17275 * config/i386/predicates.md (x86_64_sext_operand,
17276 sext_operand): New predicates.
17277
17278 2014-03-25 Martin Jambor <mjambor@suse.cz>
17279
17280 PR ipa/60600
17281 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
17282 inconsistent devirtualizations to __builtin_unreachable.
17283
17284 2014-03-25 Marek Polacek <polacek@redhat.com>
17285
17286 PR c/35449
17287 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
17288
17289 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
17290
17291 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
17292 order of elements for big-endian.
17293
17294 2014-03-25 Richard Biener <rguenther@suse.de>
17295
17296 PR middle-end/60635
17297 * gimplify-me.c (gimple_regimplify_operands): Update the
17298 re-gimplifed stmt.
17299
17300 2014-03-25 Martin Jambor <mjambor@suse.cz>
17301
17302 PR ipa/59176
17303 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
17304 (lto_output_varpool_node): Likewise.
17305 (input_overwrite_node): Likewise.
17306 (input_varpool_node): Likewise.
17307
17308 2014-03-25 Richard Biener <rguenther@suse.de>
17309
17310 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
17311 (run_gcc): Likewise.
17312
17313 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17314
17315 * combine.c (simplify_compare_const): Add MODE argument.
17316 Handle mode_width 0 as very large mode_width.
17317 (try_combine, simplify_comparison): Adjust callers.
17318
17319 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
17320 type to avoid signed integer overflow.
17321 * explow.c (plus_constant): Likewise.
17322
17323 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
17324
17325 * doc/generic.texi: Correct typos.
17326
17327 2014-03-24 Tobias Burnus <burnus@net-b.de>
17328
17329 * doc/invoke.texi (-flto): Expand section about
17330 using static libraries with LTO.
17331
17332 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17333
17334 PR rtl-optimization/60501
17335 * optabs.def (addptr3_optab): New optab.
17336 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
17337 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
17338 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
17339
17340 * lra.c (emit_add3_insn): Use the addptr pattern if available.
17341
17342 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
17343
17344 2014-03-24 Ulrich Drepper <drepper@gmail.com>
17345
17346 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
17347 _mm512_set1_pd.
17348
17349 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
17350 (_mm256_undefined_ps): Define.
17351 (_mm256_undefined_pd): Define.
17352 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
17353 (_mm_undefined_pd): Define.
17354 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
17355 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
17356 (_mm512_undefined_ps): Define.
17357 (_mm512_undefined_pd): Define.
17358 Use _mm*_undefined_*.
17359 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
17360
17361 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
17362
17363 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
17364 (lshr_simd): DI mode added.
17365 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
17366 (aarch64_ushr_simddi): Likewise.
17367 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
17368 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
17369 (vshrd_n_u64): Likewise.
17370
17371 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17372
17373 * Makefile.in (s-macro_list): Depend on cc1.
17374
17375 2014-03-23 Teresa Johnson <tejohnson@google.com>
17376
17377 * ipa-utils.c (ipa_print_order): Use specified dump file.
17378
17379 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
17380
17381 PR rtl-optimization/60601
17382 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
17383
17384 * gcc.c (eval_spec_function): Initialize save_growing_value.
17385
17386 2014-03-22 Jakub Jelinek <jakub@redhat.com>
17387
17388 PR sanitizer/60613
17389 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
17390 code == MINUS_EXPR, never swap op0 with op1.
17391
17392 * toplev.c (init_local_tick): Avoid signed integer multiplication
17393 overflow.
17394 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
17395 shift by first operand's bitsize.
17396
17397 2014-03-21 Jakub Jelinek <jakub@redhat.com>
17398
17399 PR target/60610
17400 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
17401 redefine to 1 or 0.
17402 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
17403 TARGET_ISA_64BIT_P(x).
17404
17405 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17406
17407 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
17408 pattern for vector nor instead of subtract from splat(-1).
17409 (altivec_expand_vec_perm_const_le): Likewise.
17410
17411 2014-03-21 Richard Henderson <rth@twiddle.net>
17412
17413 PR target/60598
17414 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
17415 related insns after epilogue_completed.
17416
17417 2014-03-21 Martin Jambor <mjambor@suse.cz>
17418
17419 PR ipa/59176
17420 * cgraph.h (symtab_node): New flag body_removed.
17421 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
17422 when removing bodies.
17423 * symtab.c (dump_symtab_base): Dump body_removed flag.
17424 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
17425 had their bodies removed.
17426
17427 2014-03-21 Martin Jambor <mjambor@suse.cz>
17428
17429 PR ipa/60419
17430 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
17431 in the border.
17432
17433 2014-03-21 Richard Biener <rguenther@suse.de>
17434
17435 PR tree-optimization/60577
17436 * tree-core.h (struct tree_base): Document nothrow_flag use
17437 in DECL_NONALIASED.
17438 * tree.h (DECL_NONALIASED): New.
17439 (may_be_aliased): Adjust.
17440 * coverage.c (build_var): Set DECL_NONALIASED.
17441
17442 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17443
17444 * expr.c (expand_expr_real_1): Remove outdated comment.
17445
17446 2014-03-20 Jakub Jelinek <jakub@redhat.com>
17447
17448 PR middle-end/60597
17449 * ira.c (adjust_cleared_regs): Call copy_rtx on
17450 *reg_equiv[REGNO (loc)].src_p before passing it to
17451 simplify_replace_fn_rtx.
17452
17453 PR target/60568
17454 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
17455 into CONST, put pic register as first operand of PLUS. Use
17456 gen_const_mem for both 32-bit and 64-bit PIC got loads.
17457
17458 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17459
17460 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
17461
17462 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17463
17464 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
17465 around for store forwarding issue in the FPU on the UT699.
17466 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
17467 loads and operations if -mfix-ut699 is specified.
17468 (divtf3_hq): Tweak attribute.
17469 (sqrttf2_hq): Likewise.
17470
17471 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17472
17473 * calls.c (store_one_arg): Remove incorrect const qualification on the
17474 type of the temporary.
17475 * cfgexpand.c (expand_return): Likewise.
17476 * expr.c (expand_constructor): Likewise.
17477 (expand_expr_real_1): Likewise.
17478
17479 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17480
17481 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
17482 of parts.
17483
17484 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
17485
17486 PR target/60039
17487 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
17488
17489 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
17490
17491 * config/arm/aarch-common-protos.h
17492 (alu_cost_table): Fix spelling of "extend".
17493 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
17494
17495 2014-03-19 Richard Biener <rguenther@suse.de>
17496
17497 PR middle-end/60553
17498 * tree-core.h (tree_type_common): Re-order pointer members
17499 to reduce recursion depth during GC walks.
17500
17501 2014-03-19 Marek Polacek <polacek@redhat.com>
17502
17503 PR sanitizer/60569
17504 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
17505 before accessing it.
17506
17507 2014-03-19 Richard Biener <rguenther@suse.de>
17508
17509 PR lto/59543
17510 * lto-streamer-in.c (input_function): In WPA stage do not drop
17511 debug stmts.
17512
17513 2014-03-19 Jakub Jelinek <jakub@redhat.com>
17514
17515 PR tree-optimization/60559
17516 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
17517 with build_zero_cst assignment.
17518
17519 2014-03-18 Kai Tietz <ktietz@redhat.com>
17520
17521 PR rtl-optimization/56356
17522 * sdbout.c (sdbout_parms): Verify that parms'
17523 incoming argument is valid.
17524 (sdbout_reg_parms): Likewise.
17525
17526 2014-03-18 Richard Henderson <rth@redhat.com>
17527
17528 PR target/60562
17529 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
17530 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
17531 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
17532
17533 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
17534
17535 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
17536 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
17537 Italicize plugin event names in description. Explain that
17538 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
17539 Remind that no GCC functions should be called after PLUGIN_FINISH.
17540 Explain what pragmas with expansion are.
17541
17542 2014-03-18 Martin Liska <mliska@suse.cz>
17543
17544 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
17545 gimple call statement is update.
17546 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
17547 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
17548
17549 2014-03-18 Jakub Jelinek <jakub@redhat.com>
17550
17551 PR sanitizer/60557
17552 * ubsan.c (ubsan_instrument_unreachable): Call
17553 initialize_sanitizer_builtins.
17554 (ubsan_pass): Likewise.
17555
17556 PR sanitizer/60535
17557 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
17558 varpool_finalize_decl instead of rest_of_decl_compilation.
17559
17560 2014-03-18 Richard Biener <rguenther@suse.de>
17561
17562 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
17563 by using bitmap_and_compl instead of bitmap_and_compl_into.
17564 (df_rd_transfer_function): Likewise.
17565
17566 2014-03-18 Richard Biener <rguenther@suse.de>
17567
17568 * doc/lto.texi (fresolution): Fix typo.
17569
17570 2014-03-18 Richard Biener <rguenther@suse.de>
17571
17572 * doc/invoke.texi (flto): Update for changes in 4.9.
17573
17574 2014-03-18 Richard Biener <rguenther@suse.de>
17575
17576 * doc/loop.texi: Remove section on the removed lambda framework.
17577 Update loop docs with recent changes in preserving loop structure.
17578
17579 2014-03-18 Richard Biener <rguenther@suse.de>
17580
17581 * doc/lto.texi (-fresolution): Document.
17582
17583 2014-03-18 Richard Biener <rguenther@suse.de>
17584
17585 * doc/contrib.texi: Adjust my name.
17586
17587 2014-03-18 Jakub Jelinek <jakub@redhat.com>
17588
17589 PR ipa/58721
17590 * internal-fn.c: Include diagnostic-core.h.
17591 (expand_BUILTIN_EXPECT): New function.
17592 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
17593 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
17594 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
17595 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
17596 IFN_BUILTIN_EXPECT.
17597 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
17598 Revert 3 argument __builtin_expect code.
17599 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
17600 * gimple-fold.c (gimple_fold_call): Likewise.
17601 * tree.h (fold_builtin_expect): New prototype.
17602 * builtins.c (build_builtin_expect_predicate): Add predictor
17603 argument, if non-NULL, create 3 argument __builtin_expect.
17604 (fold_builtin_expect): No longer static. Add ARG2 argument,
17605 pass it through to build_builtin_expect_predicate.
17606 (fold_builtin_2): Adjust caller.
17607 (fold_builtin_3): Handle BUILT_IN_EXPECT.
17608 * internal-fn.def (BUILTIN_EXPECT): New.
17609
17610 2014-03-18 Tobias Burnus <burnus@net-b.de>
17611
17612 PR ipa/58721
17613 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
17614 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
17615 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
17616
17617 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
17618
17619 PR ipa/58721
17620 * predict.c (combine_predictions_for_bb): Fix up formatting.
17621 (expr_expected_value_1, expr_expected_value): Add predictor argument,
17622 fill what it points to if non-NULL.
17623 (tree_predict_by_opcode): Adjust caller, use the predictor.
17624 * predict.def (PRED_COMPARE_AND_SWAP): Add.
17625
17626 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
17627
17628 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
17629 proper constant for the store mode.
17630
17631 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
17632
17633 * symtab.c (change_decl_assembler_name): Fix transparent alias
17634 chain construction.
17635
17636 2014-03-16 Renlin Li <Renlin.Li@arm.com>
17637
17638 * config/aarch64/aarch64.c: Correct the comments about the
17639 aarch64 stack layout.
17640
17641 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
17642
17643 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
17644 check for GF_OMP_FOR_KIND_FOR.
17645
17646 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
17647
17648 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
17649 ymm and zmm register names.
17650
17651 2014-03-17 Jakub Jelinek <jakub@redhat.com>
17652
17653 PR target/60516
17654 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
17655 note creation for the 2010-08-31 changes.
17656
17657 2014-03-17 Marek Polacek <polacek@redhat.com>
17658
17659 PR middle-end/60534
17660 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
17661 as -fno-tree-loop-vectorize.
17662 (expand_omp_simd): Likewise.
17663
17664 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
17665
17666 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
17667 (eligible_for_call_delay): New prototype.
17668 * config/sparc/sparc.c (tls_call_delay): Rename into...
17669 (eligible_for_call_delay): ...this. Return false if the instruction
17670 cannot be put in the delay slot of a branch.
17671 (eligible_for_restore_insn): Simplify.
17672 (eligible_for_return_delay): Return false if the instruction cannot be
17673 put in the delay slot of a branch and simplify.
17674 (eligible_for_sibcall_delay): Return false if the instruction cannot be
17675 put in the delay slot of a branch.
17676 * config/sparc/sparc.md (fix_ut699): New attribute.
17677 (tls_call_delay): Delete.
17678 (in_call_delay): Reimplement.
17679 (eligible_for_sibcall_delay): Rename into...
17680 (in_sibcall_delay): ...this.
17681 (eligible_for_return_delay): Rename into...
17682 (in_return_delay): ...this.
17683 (in_branch_delay): Reimplement.
17684 (in_uncond_branch_delay): Delete.
17685 (in_annul_branch_delay): Delete.
17686
17687 2014-03-14 Richard Henderson <rth@redhat.com>
17688
17689 PR target/60525
17690 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
17691 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
17692 (*floathi<X87MODEF>2_i387_with_temp): Remove.
17693 (floathi splitters): Remove.
17694 (float<SWI48x>xf2): New pattern.
17695 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
17696 code that tried to handle DImode for 32-bit, but which was excluded
17697 by the pattern's condition. Drop allocation of stack temporary.
17698 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
17699 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
17700 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
17701 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
17702 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
17703 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
17704 (*float<SWI48><MODEF>2_sse_interunit): Remove.
17705 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
17706 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
17707 (*float<SWI48x><X87MODEF>2_i387): Remove.
17708 (all float _with_temp splitters): Remove.
17709 (*float<SWI48x><MODEF>2_i387): New pattern.
17710 (*float<SWI48><MODEF>2_sse): New pattern.
17711 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
17712 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
17713
17714 2014-03-14 Jakub Jelinek <jakub@redhat.com>
17715 Marek Polacek <polacek@redhat.com>
17716
17717 PR middle-end/60484
17718 * common.opt (dump_base_name_prefixed): New Variable.
17719 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
17720 if x_dump_base_name_prefixed is already set, set it at the end.
17721
17722 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
17723
17724 PR rtl-optimization/60508
17725 * lra-constraints.c (get_reload_reg): Add new parameter
17726 in_subreg_p.
17727 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
17728 Pass the new parameter values.
17729
17730 2014-03-14 Richard Biener <rguenther@suse.de>
17731
17732 * common.opt: Revert unintented changes from r205065.
17733 * opts.c: Likewise.
17734
17735 2014-03-14 Richard Biener <rguenther@suse.de>
17736
17737 PR middle-end/60518
17738 * cfghooks.c (split_block): Properly adjust all loops the
17739 block was a latch of.
17740
17741 2014-03-14 Martin Jambor <mjambor@suse.cz>
17742
17743 PR lto/60461
17744 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
17745 and simplify it.
17746
17747 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
17748
17749 PR target/59396
17750 * config/avr/avr.c (avr_set_current_function): Pass function name
17751 through default_strip_name_encoding before sanity checking instead
17752 of skipping the first char of the assembler name.
17753
17754 2014-03-13 Richard Henderson <rth@redhat.com>
17755
17756 PR debug/60438
17757 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
17758 (ix86_force_to_memory, ix86_free_from_memory): Remove.
17759 * config/i386/i386-protos.h: Likewise.
17760 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
17761 in the expander instead of a splitter.
17762 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
17763 any possibility of requiring a memory.
17764 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
17765 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
17766 (fp branch splitters): Update for ix86_split_fp_branch.
17767 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
17768 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
17769 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
17770 (*fop_<MODEF>_2_i387): Remove f/r alternative.
17771 (*fop_<MODEF>_3_i387): Likewise.
17772 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
17773 (splitters for the fop_* register patterns): Remove.
17774 (fscalexf4_i387): Rename from *fscalexf4_i387.
17775 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
17776
17777 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17778
17779 PR tree-optimization/59779
17780 * tree-dfa.c (get_ref_base_and_extent): Use double_int
17781 type for bitsize and maxsize instead of HOST_WIDE_INT.
17782
17783 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
17784
17785 PR rtl-optimization/57320
17786 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
17787 the CFG after thread_prologue_and_epilogue_insns.
17788
17789 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
17790
17791 PR rtl-optimization/57189
17792 * lra-constraints.c (process_alt_operands): Disfavor spilling
17793 vector pseudos.
17794
17795 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
17796
17797 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
17798
17799 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17800
17801 PR tree-optimization/59025
17802 PR middle-end/60418
17803 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
17804 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
17805
17806 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
17807
17808 PR target/60486
17809 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
17810 calls of avr_out_plus_1.
17811
17812 2014-03-13 Bin Cheng <bin.cheng@arm.com>
17813
17814 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
17815 BB's single pred and update the father loop's latch info later.
17816
17817 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17818
17819 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
17820 (VEC_M): Likewise.
17821 (VEC_N): Likewise.
17822 (VEC_R): Likewise.
17823 (VEC_base): Likewise.
17824 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
17825 registers, we need to swap double words in little endian mode.
17826
17827 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
17828 to be a container mode for 128-bit integer operations added in ISA
17829 2.07. Unlike TImode and PTImode, the preferred register set is
17830 the Altivec/VMX registers for the 128-bit operations.
17831
17832 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
17833 declarations.
17834 (rs6000_split_128bit_ok_p): Likewise.
17835
17836 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
17837 macros for creating ISA 2.07 normal and overloaded builtin
17838 functions with 3 arguments.
17839 (BU_P8V_OVERLOAD_3): Likewise.
17840 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
17841 for use as overloaded functions.
17842 (VPERM_1TI_UNS): Likewise.
17843 (VSEL_1TI): Likewise.
17844 (VSEL_1TI_UNS): Likewise.
17845 (ST_INTERNAL_1ti): Likewise.
17846 (LD_INTERNAL_1ti): Likewise.
17847 (XXSEL_1TI): Likewise.
17848 (XXSEL_1TI_UNS): Likewise.
17849 (VPERM_1TI): Likewise.
17850 (VPERM_1TI_UNS): Likewise.
17851 (XXPERMDI_1TI): Likewise.
17852 (SET_1TI): Likewise.
17853 (LXVD2X_V1TI): Likewise.
17854 (STXVD2X_V1TI): Likewise.
17855 (VEC_INIT_V1TI): Likewise.
17856 (VEC_SET_V1TI): Likewise.
17857 (VEC_EXT_V1TI): Likewise.
17858 (EQV_V1TI): Likewise.
17859 (NAND_V1TI): Likewise.
17860 (ORC_V1TI): Likewise.
17861 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
17862 added in ISA 2.07. Add both normal 'altivec' builtins, and the
17863 overloaded builtin.
17864 (VADDUQM): Likewise.
17865 (VSUBCUQ): Likewise.
17866 (VADDEUQM): Likewise.
17867 (VADDECUQ): Likewise.
17868 (VSUBEUQM): Likewise.
17869 (VSUBECUQ): Likewise.
17870
17871 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
17872 __int128_t and __uint128_t types.
17873 (__uint128_type): Likewise.
17874 (altivec_categorize_keyword): Add support for vector __int128_t,
17875 vector __uint128_t, vector __int128, and vector unsigned __int128
17876 as a container type for TImode operations that need to be done in
17877 VSX/Altivec registers.
17878 (rs6000_macro_to_expand): Likewise.
17879 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
17880 to support 128-bit integer instructions vaddcuq, vadduqm,
17881 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
17882 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
17883
17884 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
17885 for V1TImode, and set up preferences to use VSX/Altivec registers.
17886 Setup VSX reload handlers.
17887 (rs6000_debug_reg_global): Likewise.
17888 (rs6000_init_hard_regno_mode_ok): Likewise.
17889 (rs6000_preferred_simd_mode): Likewise.
17890 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
17891 (easy_altivec_constant): Likewise.
17892 (output_vec_const_move): Likewise.
17893 (rs6000_expand_vector_set): Convert V1TImode set and extract to
17894 simple move.
17895 (rs6000_expand_vector_extract): Likewise.
17896 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
17897 addressing.
17898 (rs6000_const_vec): Add support for V1TImode.
17899 (rs6000_emit_le_vsx_load): Swap double words when loading or
17900 storing TImode/V1TImode.
17901 (rs6000_emit_le_vsx_store): Likewise.
17902 (rs6000_emit_le_vsx_move): Likewise.
17903 (rs6000_emit_move): Add support for V1TImode.
17904 (altivec_expand_ld_builtin): Likewise.
17905 (altivec_expand_st_builtin): Likewise.
17906 (altivec_expand_vec_init_builtin): Likewise.
17907 (altivec_expand_builtin): Likewise.
17908 (rs6000_init_builtins): Add support for V1TImode type. Add
17909 support for ISA 2.07 128-bit integer builtins. Define type names
17910 for the VSX/Altivec vector types.
17911 (altivec_init_builtins): Add support for overloaded vector
17912 functions with V1TImode type.
17913 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
17914 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
17915 external function.
17916 (rs6000_split_128bit_ok_p): Likewise.
17917 (rs6000_handle_altivec_attribute): Create V1TImode from vector
17918 __int128_t and vector __uint128_t.
17919
17920 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
17921 and mode attributes.
17922 (VSX_M): Likewise.
17923 (VSX_M2): Likewise.
17924 (VSm): Likewise.
17925 (VSs): Likewise.
17926 (VSr): Likewise.
17927 (VSv): Likewise.
17928 (VS_scalar): Likewise.
17929 (VS_double): Likewise.
17930 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
17931
17932 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
17933 we support the ISA 2.07 128-bit integer arithmetic instructions.
17934 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
17935 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
17936 and TImode types for use with the builtin functions.
17937 (V1TI_type_node): Likewise.
17938 (unsigned_V1TI_type_node): Likewise.
17939 (intTI_type_internal_node): Likewise.
17940 (uintTI_type_internal_node): Likewise.
17941
17942 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
17943 128-bit builtin functions.
17944 (UNSPEC_VADDEUQM): Likewise.
17945 (UNSPEC_VADDECUQ): Likewise.
17946 (UNSPEC_VSUBCUQ): Likewise.
17947 (UNSPEC_VSUBEUQM): Likewise.
17948 (UNSPEC_VSUBECUQ): Likewise.
17949 (VM): Add V1TImode to vector mode iterators.
17950 (VM2): Likewise.
17951 (VI_unit): Likewise.
17952 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
17953 (altivec_vaddcuq): Likewise.
17954 (altivec_vsubuqm): Likewise.
17955 (altivec_vsubcuq): Likewise.
17956 (altivec_vaddeuqm): Likewise.
17957 (altivec_vaddecuq): Likewise.
17958 (altivec_vsubeuqm): Likewise.
17959 (altivec_vsubecuq): Likewise.
17960
17961 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
17962 mode iterators.
17963 (BOOL_128): Likewise.
17964 (BOOL_REGS_OUTPUT): Likewise.
17965 (BOOL_REGS_OP1): Likewise.
17966 (BOOL_REGS_OP2): Likewise.
17967 (BOOL_REGS_UNARY): Likewise.
17968 (BOOL_REGS_AND_CR0): Likewise.
17969
17970 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
17971 128-bit integer builtin support.
17972 (vec_vadduqm): Likewise.
17973 (vec_vaddecuq): Likewise.
17974 (vec_vaddeuqm): Likewise.
17975 (vec_vsubecuq): Likewise.
17976 (vec_vsubeuqm): Likewise.
17977 (vec_vsubcuq): Likewise.
17978 (vec_vsubuqm): Likewise.
17979
17980 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17981 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
17982 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
17983 128-bit integer add/subtract to ISA 2.07.
17984
17985 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
17986
17987 * config/arc/arc.c (arc_predicate_delay_insns):
17988 Fix third argument passed to conditionalize_nonjump.
17989
17990 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
17991
17992 * config/aarch64/aarch64-builtins.c
17993 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
17994 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
17995 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
17996 instead of __builtin_lfloor.
17997 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
17998
17999 2014-03-12 Jakub Jelinek <jakub@redhat.com>
18000
18001 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
18002 (tree_ssa_ifcombine_bb_1): New function.
18003 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
18004 is an empty forwarder block to then_bb or vice versa and then_bb
18005 and else_bb are effectively swapped.
18006
18007 2014-03-12 Christian Bruel <christian.bruel@st.com>
18008
18009 PR target/60264
18010 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
18011 REG_CFA_DEF_CFA note.
18012 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
18013 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
18014
18015 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
18016
18017 PR tree-optimization/60454
18018 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
18019
18020 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18021
18022 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
18023 Do not define target_cpu_default2 to generic.
18024 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
18025 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
18026 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
18027
18028 2014-03-12 Jakub Jelinek <jakub@redhat.com>
18029 Marc Glisse <marc.glisse@inria.fr>
18030
18031 PR tree-optimization/60502
18032 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
18033 instead of build_low_bits_mask.
18034
18035 2014-03-12 Jakub Jelinek <jakub@redhat.com>
18036
18037 PR middle-end/60482
18038 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
18039 if there are multiple uses, but op doesn't live on E edge.
18040 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
18041 clobber stmts before __builtin_unreachable.
18042
18043 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
18044
18045 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
18046 hard_frame_pointer_rtx.
18047 * cse.c (cse_insn): Remove volatile check.
18048 * cselib.c (cselib_process_insn): Likewise.
18049 * dse.c (scan_insn): Likewise.
18050
18051 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
18052
18053 * config/arc/arc.c (conditionalize_nonjump): New function,
18054 broken out of ...
18055 (arc_ifcvt): ... this.
18056 (arc_predicate_delay_insns): Use it.
18057
18058 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
18059
18060 * config/arc/predicates.md (extend_operand): During/after reload,
18061 allow const_int_operand.
18062 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
18063 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
18064 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
18065 to "i".
18066 (umulsi3_highpart_i): Likewise.
18067
18068 2014-03-11 Richard Biener <rguenther@suse.de>
18069
18070 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
18071 Add asserts to guard possible wrong-code bugs.
18072
18073 2014-03-11 Richard Biener <rguenther@suse.de>
18074
18075 PR tree-optimization/60429
18076 PR tree-optimization/60485
18077 * tree-ssa-structalias.c (set_union_with_increment): Properly
18078 take into account all fields that overlap the shifted vars.
18079 (do_sd_constraint): Likewise.
18080 (do_ds_constraint): Likewise.
18081 (get_constraint_for_ptr_offset): Likewise.
18082
18083 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
18084
18085 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
18086 (nios2_compute_frame_layout):
18087 Add calculation of cfun->machine->fp_save_offset.
18088 (nios2_expand_prologue): Correct setting of frame pointer register
18089 in prologue.
18090 (nios2_expand_epilogue): Update recovery of stack pointer from
18091 frame pointer accordingly.
18092 (nios2_initial_elimination_offset): Update calculation of offset
18093 for eliminating to HARD_FRAME_POINTER_REGNUM.
18094
18095 2014-03-10 Jakub Jelinek <jakub@redhat.com>
18096
18097 PR ipa/60457
18098 * ipa.c (symtab_remove_unreachable_nodes): Don't call
18099 cgraph_get_create_node on VAR_DECLs.
18100
18101 2014-03-10 Richard Biener <rguenther@suse.de>
18102
18103 PR middle-end/60474
18104 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
18105
18106 2014-03-08 Douglas B Rupp <rupp@gnat.com>
18107
18108 * config/vms/vms.opt (vms_float_format): New variable.
18109
18110 2014-03-08 Tobias Burnus <burnus@net-b.de>
18111
18112 * doc/invoke.texi (-fcilkplus): Update implementation status.
18113
18114 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
18115 Richard Biener <rguenther@suse.de>
18116
18117 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
18118 consistently accross all TUs.
18119 (run_gcc): Enable -fshort-double automatically at link at link-time
18120 and disallow override.
18121
18122 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
18123
18124 PR target/58271
18125 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
18126 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
18127 if they can't be used.
18128
18129 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18130
18131 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
18132 for Solaris 11/x86 ld.
18133 * configure: Regenerate.
18134
18135 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18136
18137 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
18138 (LIB_TLS_SPEC): Save as ld_tls_libs.
18139 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
18140 (HAVE_AS_IX86_TLSLDM): New test.
18141 * configure, config.in: Regenerate.
18142 * config/i386/i386.c (legitimize_tls_address): Fall back to
18143 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
18144 cannot support TLS_MODEL_LOCAL_DYNAMIC.
18145 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
18146 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
18147
18148 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
18149
18150 * common.opt (fira-loop-pressure): Mark as optimization.
18151
18152 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
18153
18154 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
18155 an OpenMP mappable type.
18156
18157 2014-03-06 Matthias Klose <doko@ubuntu.com>
18158
18159 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
18160 MULTILIB_OSDIRNAMES is not defined.
18161
18162 2014-03-06 Jakub Jelinek <jakub@redhat.com>
18163 Meador Inge <meadori@codesourcery.com>
18164
18165 PR target/58595
18166 * config/arm/arm.c (arm_tls_symbol_p): Remove.
18167 (arm_legitimize_address): Call legitimize_tls_address for any
18168 arm_tls_referenced_p expression, handle constant addend. Call it
18169 before testing for !TARGET_ARM.
18170 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
18171
18172 2014-03-06 Richard Biener <rguenther@suse.de>
18173
18174 PR middle-end/60445
18175 PR lto/60424
18176 PR lto/60427
18177 Revert
18178 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
18179
18180 * tree-streamer.c (record_common_node): Assert we don't record
18181 nodes with type double.
18182 (preload_common_node): Skip type double, complex double and double
18183 pointer since it is now frontend dependent due to fshort-double option.
18184
18185 2014-03-06 Richard Biener <rguenther@suse.de>
18186
18187 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
18188 or -fno-lto is specified and the linker has full plugin support.
18189 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
18190 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
18191 * lto-wrapper.c (merge_and_complain): Merge compile-time
18192 optimization levels.
18193 (run_gcc): And pass it through to the link options.
18194
18195 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
18196
18197 PR debug/60381
18198 Revert:
18199 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18200 PR debug/59992
18201 * cselib.c (remove_useless_values): Skip to avoid quadratic
18202 behavior if the condition moved from...
18203 (cselib_process_insn): ... here holds.
18204
18205 2014-03-05 Jakub Jelinek <jakub@redhat.com>
18206
18207 PR plugins/59335
18208 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
18209 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
18210
18211 PR plugins/59335
18212 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
18213 (TM_H): Add x86-tune.def.
18214
18215 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18216
18217 * config/aarch64/aarch64.c (generic_tunings):
18218 Use cortexa57_extra_costs.
18219
18220 2014-03-05 Jakub Jelinek <jakub@redhat.com>
18221
18222 PR lto/60404
18223 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
18224 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
18225 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
18226 cost for in_lto_p.
18227
18228 2014-03-04 Heiher <r@hev.cc>
18229
18230 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
18231 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
18232
18233 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
18234
18235 * config/i386/predicates.md (const2356_operand): Change to ...
18236 (const2367_operand): ... this.
18237 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
18238 const2367_operand.
18239 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18240 (*avx512pf_scatterpf<mode>sf): Ditto.
18241 (avx512pf_scatterpf<mode>df): Ditto.
18242 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18243 (*avx512pf_scatterpf<mode>df): Ditto.
18244 * config/i386/i386.c (ix86_expand_builtin): Update
18245 incorrect hint operand error message.
18246
18247 2014-03-04 Richard Biener <rguenther@suse.de>
18248
18249 * lto-section-in.c (lto_get_section_data): Fix const cast.
18250
18251 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
18252
18253 * tree-streamer.c (record_common_node): Assert we don't record
18254 nodes with type double.
18255 (preload_common_node): Skip type double, complex double and double
18256 pointer since it is now frontend dependent due to fshort-double option.
18257
18258 2014-03-04 Richard Biener <rguenther@suse.de>
18259
18260 PR lto/60405
18261 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
18262 (lto_input_toplevel_asms): Likewise.
18263 * lto-section-in.c (lto_get_section_data): Instead do it here
18264 for every section.
18265
18266 2014-03-04 Richard Biener <rguenther@suse.de>
18267
18268 PR tree-optimization/60382
18269 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
18270 dead PHIs a reduction.
18271
18272 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
18273
18274 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
18275 hint value.
18276 (_mm_prefetch): Move out of GCC target("sse") pragma.
18277 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
18278 GCC target("prfchw") pragma.
18279 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
18280 for locality <= 2.
18281 * config/i386/i386.c (ix86_option_override_internal): Enable
18282 -mprfchw with -mprefetchwt1.
18283
18284 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
18285
18286 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
18287 Mark as varying.
18288
18289 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
18290
18291 * opts.h (CL_PCH_IGNORE): Define.
18292 * targhooks.c (option_affects_pch_p):
18293 Return false for options that have CL_PCH_IGNORE set.
18294 * opt-functions.awk: Process PchIgnore.
18295 * doc/options.texi: Document PchIgnore.
18296
18297 * config/arc/arc.opt (misize): Add PchIgnore property.
18298
18299 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18300
18301 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
18302 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
18303 constraint on constants to permit them being loaded into
18304 GENERAL_REGS or BASE_REGS.
18305
18306 2014-03-03 Nick Clifton <nickc@redhat.com>
18307
18308 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
18309 anti-cacnonical alternatives.
18310 (negandhi3_real): New pattern.
18311 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
18312
18313 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18314
18315 * config/avr/avr-mcus.def: Remove atxmega16x1.
18316 * config/avr/avr-tables.opt: Regenerate.
18317 * config/avr/t-multilib: Regenerate.
18318 * doc/avr-mmcu.texi: Regenerate.
18319
18320 2014-03-03 Tobias Grosser <tobias@grosser.es>
18321 Mircea Namolaru <mircea.namolaru@inria.fr>
18322
18323 PR tree-optimization/58028
18324 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
18325 scalar dimensions.
18326
18327 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18328
18329 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
18330 not handled by recognizers.
18331
18332 2014-03-03 Jakub Jelinek <jakub@redhat.com>
18333
18334 PR middle-end/60175
18335 * function.c (expand_function_end): Don't emit
18336 clobber_return_register sequence if clobber_after is a BARRIER.
18337 * cfgexpand.c (construct_exit_block): Append instructions before
18338 return_label to prev_bb.
18339
18340 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18341
18342 * config/rs6000/constraints.md: Document reserved use of "wc".
18343
18344 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
18345
18346 PR ipa/60150
18347 * ipa.c (function_and_variable_visibility): When dissolving comdat
18348 group, also set all symbols to local.
18349
18350 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
18351
18352 PR ipa/60306
18353
18354 Revert:
18355 2013-12-14 Jan Hubicka <jh@suse.cz>
18356 PR middle-end/58477
18357 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
18358
18359 2014-03-02 Jon Beniston <jon@beniston.com>
18360
18361 PR bootstrap/48230
18362 PR bootstrap/50927
18363 PR bootstrap/52466
18364 PR target/46898
18365 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
18366 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
18367 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
18368 (simple_return, *simple_return): New patterns
18369 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
18370 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
18371
18372 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
18373
18374 * dwarf2out.c (gen_subprogram_die): Tidy.
18375
18376 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
18377
18378 PR target/60071
18379 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
18380 (*mov_t_msb_neg_negc): ... this new insn.
18381
18382 2014-02-28 Jason Merrill <jason@redhat.com>
18383
18384 PR c++/58678
18385 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
18386 function.
18387
18388 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
18389
18390 PR c++/60314
18391 * dwarf2out.c (decltype_auto_die): New static.
18392 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
18393 (gen_type_die_with_usage): Handle 'decltype(auto)'.
18394 (is_cxx_auto): Likewise.
18395
18396 2014-02-28 Ian Bolton <ian.bolton@arm.com>
18397
18398 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
18399 we are not using general regs only.
18400
18401 2014-02-28 Richard Biener <rguenther@suse.de>
18402
18403 PR target/60280
18404 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
18405 previous fix and only allow to remove trivial pre-headers
18406 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
18407 (remove_forwarder_block): Properly update the latch of a loop.
18408
18409 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18410
18411 PR debug/59992
18412 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
18413 (cselib_preserved_hash_table): New.
18414 (preserve_constants_and_equivs): Move preserved vals to it.
18415 (cselib_find_slot): Look it up first.
18416 (cselib_init): Initialize it.
18417 (cselib_finish): Release it.
18418 (dump_cselib_table): Dump it.
18419
18420 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18421
18422 PR debug/59992
18423 * cselib.c (remove_useless_values): Skip to avoid quadratic
18424 behavior if the condition moved from...
18425 (cselib_process_insn): ... here holds.
18426
18427 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18428
18429 PR debug/57232
18430 * var-tracking.c (vt_initialize): Apply the same condition to
18431 preserve the CFA base value.
18432
18433 2014-02-28 Joey Ye <joey.ye@arm.com>
18434
18435 PR target/PR60169
18436 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
18437 if reload in progress or completed.
18438
18439 2014-02-28 Tobias Burnus <burnus@net-b.de>
18440
18441 PR middle-end/60147
18442 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
18443 NAMELIST_DECL.
18444
18445 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
18446
18447 * doc/tm.texi.in (Condition Code Status): Update documention for
18448 relative locations of cc0-setter and cc0-user.
18449
18450 2014-02-27 Jeff Law <law@redhat.com>
18451
18452 PR rtl-optimization/52714
18453 * combine.c (try_combine): When splitting an unrecognized PARALLEL
18454 into two independent simple sets, if I3 is a jump, ensure the
18455 pattern we place into I3 is a (set (pc) ...).
18456
18457 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
18458 Jeff Law <law@redhat.com>
18459
18460 PR rtl-optimization/49847
18461 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
18462 are in different blocks.
18463 * doc/tm.texi (Condition Code Status): Update documention for
18464 relative locations of cc0-setter and cc0-user.
18465
18466 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
18467
18468 PR target/59222
18469 * lra.c (lra_emit_add): Check SUBREG too.
18470
18471 2014-02-27 Andreas Schwab <schwab@suse.de>
18472
18473 * config/m68k/m68k.c (m68k_option_override): Disable
18474 -flive-range-shrinkage for classic m68k.
18475 (m68k_override_options_after_change): Likewise.
18476
18477 2014-02-27 Marek Polacek <polacek@redhat.com>
18478
18479 PR middle-end/59223
18480 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
18481 -Wmaybe-uninitialized.
18482
18483 2014-02-27 Alan Modra <amodra@gmail.com>
18484
18485 PR target/57936
18486 * reload1.c (emit_input_reload_insns): When reload_override_in,
18487 set old to rl->in_reg when rl->in_reg is a subreg.
18488
18489 2014-02-26 Richard Biener <rguenther@suse.de>
18490
18491 PR bootstrap/60343
18492 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
18493
18494 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
18495
18496 * common/config/i386/predicates.md (const1256_operand): Remove.
18497 (const2356_operand): New.
18498 (const_1_to_2_operand): Remove.
18499 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18500 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18501 (*avx512pf_gatherpf<mode>sf): Ditto.
18502 (avx512pf_gatherpf<mode>df): Ditto.
18503 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18504 (*avx512pf_gatherpf<mode>df): Ditto.
18505 (avx512pf_scatterpf<mode>sf): Ditto.
18506 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18507 (*avx512pf_scatterpf<mode>sf): Ditto.
18508 (avx512pf_scatterpf<mode>df): Ditto.
18509 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18510 (*avx512pf_scatterpf<mode>df): Ditto.
18511 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
18512
18513 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
18514
18515 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
18516 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
18517 (_mm512_mask_testn_epi64_mask): Move to ...
18518 * config/i386/avx512cdintrin.h: Here.
18519 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
18520 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
18521 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
18522 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
18523 TARGET_AVX512F from TARGET_AVX512CD.
18524
18525 2014-02-26 Richard Biener <rguenther@suse.de>
18526
18527 PR ipa/60327
18528 * ipa.c (walk_polymorphic_call_targets): Properly guard
18529 call to inline_update_overall_summary.
18530
18531 2014-02-26 Bin Cheng <bin.cheng@arm.com>
18532
18533 PR target/60280
18534 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
18535 and latches only if requested. Fix latch if it is removed.
18536 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
18537 LOOPS_HAVE_PREHEADERS.
18538
18539 2014-02-25 Andrew Pinski <apinski@cavium.com>
18540
18541 * builtins.c (expand_builtin_thread_pointer): Create a new target
18542 when the target is NULL.
18543
18544 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
18545
18546 PR rtl-optimization/60317
18547 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
18548 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
18549 * lra-assigns.c: Include params.h.
18550 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
18551 other reload pseudos considerations.
18552
18553 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18554
18555 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
18556 to use canonical form for nor<mode>3.
18557
18558 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18559
18560 PR target/55426
18561 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
18562 conversions.
18563
18564 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
18565
18566 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
18567 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
18568 (ix86_handle_option): Handle OPT_mprefetchwt1.
18569 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
18570 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18571 PREFETCHWT1 CPUID.
18572 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18573 OPTION_MASK_ISA_PREFETCHWT1.
18574 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
18575 (PTA_PREFETCHWT1): New.
18576 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
18577 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
18578 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
18579 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
18580 (*prefetch_avx512pf_<mode>_: Change into ...
18581 (*prefetch_prefetchwt1_<mode>: This.
18582 * config/i386/i386.opt (mprefetchwt1): New.
18583 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
18584 (_mm_prefetch): Handle intent to write.
18585 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
18586
18587 2014-02-25 Richard Biener <rguenther@suse.de>
18588
18589 PR middle-end/60291
18590 * emit-rtl.c (mem_attrs_htab): Remove.
18591 (mem_attrs_htab_hash): Likewise.
18592 (mem_attrs_htab_eq): Likewise.
18593 (set_mem_attrs): Always allocate new mem-attrs when something changed.
18594 (init_emit_once): Do not allocate mem_attrs_htab.
18595
18596 2014-02-25 Richard Biener <rguenther@suse.de>
18597
18598 PR lto/60319
18599 * lto-opts.c (lto_write_options): Output non-explicit conservative
18600 -fwrapv, -fno-trapv and -fno-strict-overflow.
18601 * lto-wrapper.c (merge_and_complain): Handle merging those options.
18602 (run_gcc): And pass them through.
18603
18604 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18605
18606 * sel-sched.c (calculate_new_fences): New parameter ptime.
18607 Calculate it as a maximum over all fence cycles.
18608 (sel_sched_region_2): Adjust the call to calculate_new_fences.
18609 Print the final schedule timing when sched_verbose.
18610
18611 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18612
18613 PR rtl-optimization/60292
18614 * sel-sched.c (fill_vec_av_set): Do not reset target availability
18615 bit fot the fence instruction.
18616
18617 2014-02-24 Alangi Derick <alangiderick@gmail.com>
18618
18619 * calls.h: Fix typo in comment.
18620
18621 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
18622
18623 * config/pa/pa.c (pa_output_move_double): Don't valididate when
18624 adjusting offsetable addresses.
18625
18626 2014-02-24 Guozhi Wei <carrot@google.com>
18627
18628 * sparseset.h (sparseset_pop): Fix the wrong index.
18629
18630 2014-02-24 Walter Lee <walt@tilera.com>
18631
18632 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
18633 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
18634 triplet.
18635 * common/config/tilegx/tilegx-common.c
18636 (TARGET_DEFAULT_TARGET_FLAGS): Define.
18637 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
18638 (LINK_SPEC): Ditto.
18639 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
18640 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
18641 (tilegx_gimplify_va_arg_expr): Handle big endian.
18642 (tilegx_expand_unaligned_load): Ditto.
18643 (tilegx_expand_unaligned_store): Ditto.
18644 (TARGET_RETURN_IN_MSB): New.
18645 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
18646 (TARGET_ENDIAN_DEFAULT): New.
18647 (TARGET_BIG_ENDIAN): Handle big endian.
18648 (BYTES_BIG_ENDIAN): Ditto.
18649 (WORDS_BIG_ENDIAN): Ditto.
18650 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
18651 (ENDIAN_SPEC): New.
18652 (EXTRA_SPECS): New.
18653 * config/tilegx/tilegx.md (extv): Handle big endian.
18654 (extzv): Ditto.
18655 (insn_st<n>): Ditto.
18656 (insn_st<n>_add<bitsuffix>): Ditto.
18657 (insn_stnt<n>): Ditto.
18658 (insn_stnt<n>_add<bitsuffix>):Ditto.
18659 (vec_interleave_highv8qi): Handle big endian.
18660 (vec_interleave_highv8qi_be): New.
18661 (vec_interleave_highv8qi_le): New.
18662 (insn_v1int_h): Handle big endian.
18663 (vec_interleave_lowv8qi): Handle big endian.
18664 (vec_interleave_lowv8qi_be): New.
18665 (vec_interleave_lowv8qi_le): New.
18666 (insn_v1int_l): Handle big endian.
18667 (vec_interleave_highv4hi): Handle big endian.
18668 (vec_interleave_highv4hi_be): New.
18669 (vec_interleave_highv4hi_le): New.
18670 (insn_v2int_h): Handle big endian.
18671 (vec_interleave_lowv4hi): Handle big endian.
18672 (vec_interleave_lowv4hi_be): New.
18673 (vec_interleave_lowv4hi_le): New.
18674 (insn_v2int_l): Handle big endian.
18675 (vec_interleave_highv2si): Handle big endian.
18676 (vec_interleave_highv2si_be): New.
18677 (vec_interleave_highv2si_le): New.
18678 (insn_v4int_h): Handle big endian.
18679 (vec_interleave_lowv2si): Handle big endian.
18680 (vec_interleave_lowv2si_be): New.
18681 (vec_interleave_lowv2si_le): New.
18682 (insn_v4int_l): Handle big endian.
18683 * config/tilegx/tilegx.opt (mbig-endian): New option.
18684 (mlittle-endian): New option.
18685 * doc/install.texi: Document tilegxbe-linux.
18686 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
18687
18688 2014-02-24 Martin Jambor <mjambor@suse.cz>
18689
18690 PR ipa/60266
18691 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
18692 there are no parameter descriptors.
18693
18694 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
18695
18696 PR rtl-optimization/60268
18697 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
18698 initialization to ...
18699 (sched_rgn_init): ... here.
18700 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
18701
18702 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18703
18704 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
18705 names.
18706
18707 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18708
18709 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
18710 definition.
18711
18712 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18713
18714 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
18715 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
18716
18717 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18718
18719 * config/microblaze/predicates.md: Add cmp_op predicate.
18720 * config/microblaze/microblaze.md: Add branch_compare instruction
18721 which uses cmp_op predicate and emits cmp insn before branch.
18722 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
18723 to microblaze_expand_conditional_branch and consolidate logic.
18724 (microblaze_expand_conditional_branch): emit branch_compare
18725 insn instead of handling cmp op separate from branch insn.
18726
18727 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18728
18729 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
18730 to permit subregs.
18731
18732 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18733
18734 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
18735 define_insn with define_expand and new define_insn
18736 *altivec_lve<VI_char>x_internal.
18737 (altivec_stve<VI_char>x): Replace define_insn with define_expand
18738 and new define_insn *altivec_stve<VI_char>x_internal.
18739 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
18740 prototype.
18741 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
18742 lve*x built-ins.
18743 (altivec_expand_stvex_be): New function.
18744
18745 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
18746
18747 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
18748 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
18749 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
18750 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
18751
18752 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
18753
18754 PR target/60298
18755 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
18756 instead of emit_move_insn.
18757
18758 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18759
18760 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
18761 vspltw with vsldoi.
18762 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
18763 gen_altivec_vsumsws.
18764
18765 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18766
18767 * config/rs6000/altivec.md (altivec_lvxl): Rename as
18768 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
18769 (altivec_lvxl_<mode>): New define_expand incorporating
18770 -maltivec=be semantics where needed.
18771 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
18772 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
18773 semantics where needed.
18774 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
18775 (altivec_stvx_<mode>): New define_expand incorporating
18776 -maltivec=be semantics where needed.
18777 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
18778 VM2 iterator instead of V4SI.
18779 (altivec_stvxl_<mode>): New define_expand incorporating
18780 -maltivec=be semantics where needed.
18781 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
18782 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
18783 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
18784 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
18785 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
18786 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
18787 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
18788 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
18789 ALTIVEC_BUILTIN_STVXL.
18790 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
18791 (altivec_expand_stvx_be): Likewise.
18792 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
18793 (altivec_expand_lvx_be): Likewise.
18794 (altivec_expand_stvx_be): Likewise.
18795 (altivec_expand_builtin): Add cases for
18796 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
18797 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
18798 (altivec_init_builtins): Add definitions for
18799 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
18800 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
18801
18802 2014-02-21 Catherine Moore <clm@codesourcery.com>
18803
18804 * doc/invoke.texi (mvirt, mno-virt): Document.
18805 * config/mips/mips.opt (mvirt): New option.
18806 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
18807
18808 2014-02-21 Richard Biener <rguenther@suse.de>
18809
18810 PR tree-optimization/60276
18811 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
18812 (STMT_VINFO_MIN_NEG_DIST): New macro.
18813 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
18814 STMT_VINFO_MIN_NEG_DIST.
18815 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
18816 made for negative dependence distances still hold.
18817
18818 2014-02-21 Richard Biener <rguenther@suse.de>
18819
18820 PR middle-end/60291
18821 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
18822 DECL_INITIAL for globals not in the current function context.
18823
18824 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18825
18826 PR tree-optimization/56490
18827 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
18828 * tree-ssa-uninit.c: Include params.h.
18829 (compute_control_dep_chain): Add num_calls argument, return false
18830 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
18831 num_calls to recursive call.
18832 (find_predicates): Change dep_chain into normal array,
18833 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
18834 variable and adjust compute_control_dep_chain caller.
18835 (find_def_preds): Likewise.
18836
18837 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
18838
18839 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
18840 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
18841
18842 2014-02-21 Nick Clifton <nickc@redhat.com>
18843
18844 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
18845 (pushhi1): Likewise.
18846 (popqi1): Add mode to pre_dec.
18847 (pophi1): Likewise.
18848
18849 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18850
18851 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
18852 mode for mask of V8SFmode permutation.
18853
18854 2014-02-20 Richard Henderson <rth@redhat.com>
18855
18856 PR c++/60272
18857 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
18858 a new pseudo for OLDVAL.
18859
18860 2014-02-20 Jakub Jelinek <jakub@redhat.com>
18861
18862 PR target/57896
18863 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
18864 gen_reg_rtx if d->testing_p.
18865 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
18866 if d->testing_p and we will certainly return true.
18867 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
18868 if d->testing_p.
18869
18870 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
18871
18872 * emit-rtl.c (gen_reg_rtx): Assert that
18873 crtl->emit.regno_pointer_align_length is non-zero.
18874
18875 2014-02-20 Richard Henderson <rth@redhat.com>
18876
18877 PR c++/60272
18878 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
18879 on failure the store back into EXPECT.
18880
18881 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
18882 Sandra Loosemore <sandra@codesourcery.com>
18883
18884 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
18885 * config/nios2/nios2.c (nios2_function_profiler): Add
18886 -fPIC (flag_pic == 2) support.
18887 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
18888 (nios2_large_offset_p): New function.
18889 (nios2_unspec_reloc_p): Move up position, update to use
18890 nios2_large_offset_p.
18891 (nios2_unspec_address): Remove function.
18892 (nios2_unspec_offset): New function.
18893 (nios2_large_got_address): New function.
18894 (nios2_got_address): Add large offset support.
18895 (nios2_legitimize_tls_address): Update usage of removed and new
18896 functions.
18897 (nios2_symbol_binds_local_p): New function.
18898 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
18899 (nios2_legitimize_address): Update to use nios2_large_offset_p.
18900 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
18901 (nios2_print_operand): Merge H/L processing, add hiadj/lo
18902 processing for (const (unspec ...)).
18903 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
18904
18905 2014-02-20 Richard Biener <rguenther@suse.de>
18906
18907 * tree-cfg.c (replace_uses_by): Mark altered BBs before
18908 doing the substitution.
18909 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
18910
18911 2014-02-20 Martin Jambor <mjambor@suse.cz>
18912
18913 PR ipa/55260
18914 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
18915 info when checking whether lattices are bottom.
18916
18917 2014-02-20 Richard Biener <rguenther@suse.de>
18918
18919 PR middle-end/60221
18920 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
18921 regions at -O0.
18922
18923 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
18924
18925 PR ipa/58555
18926 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
18927 parameter specifying the scaling.
18928 (inline_call): Update.
18929 (want_inline_recursively): Guard division by zero.
18930 (recursive_inlining): Update.
18931 * ipa-inline.h (clone_inlined_nodes): Update.
18932
18933 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18934
18935 PR target/60204
18936 * config/i386/i386.c (classify_argument): Pass structures of size
18937 64 bytes or less in register.
18938
18939 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18940 Kirill Yukhin <kirill.yukhin@intel.com>
18941
18942 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
18943 (_mm_rcp28_round_ss): Ditto.
18944 (_mm_rsqrt28_round_sd): Ditto.
18945 (_mm_rsqrt28_round_ss): Ditto.
18946 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
18947 (_mm_rcp14_round_ss): Ditto.
18948 (_mm_rsqrt14_round_sd): Ditto.
18949 (_mm_rsqrt14_round_ss): Ditto.
18950 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
18951 the first input operand, get rid of match_dup.
18952 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
18953 attribute to sse.
18954 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
18955 Ditto.
18956 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
18957 operand as the first input operand, set type attribute.
18958 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
18959 Set type attribute.
18960 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
18961 operand as the first input operand, set type attribute.
18962
18963 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18964
18965 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
18966 bit of zero.
18967
18968 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
18969
18970 PR target/60207
18971 * config/i386/i386.c (construct_container): Remove TFmode check
18972 for X86_64_INTEGER_CLASS.
18973
18974 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
18975
18976 PR target/59794
18977 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
18978 only when -Wpsabi is enabled.
18979
18980 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
18981
18982 PR target/59799
18983 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
18984 passing arrays in registers are the same as for structs, so remove the
18985 special case for them.
18986
18987 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
18988
18989 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
18990 destination type, extract only the valid bits if the source type is not
18991 integral and has a different mode.
18992
18993 2014-02-19 Richard Biener <rguenther@suse.de>
18994
18995 PR ipa/60243
18996 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
18997 for all calls.
18998
18999 2014-02-19 Richard Biener <rguenther@suse.de>
19000
19001 PR ipa/60243
19002 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
19003 (ipa_modify_call_arguments): Emit an argument load explicitely and
19004 preserve virtual SSA form there and for the replacement call.
19005 Do not update SSA form nor free dominance info.
19006
19007 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
19008
19009 * ipa.c (function_and_variable_visibility): Also clear WEAK
19010 flag when disolving COMDAT_GROUP.
19011
19012 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
19013
19014 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
19015 * ipa-prop.c (ipa_set_jf_known_type): Return early when
19016 not devirtualizing.
19017 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
19018 do more sanity checks.
19019 (detect_type_change): Return true when giving up early.
19020 (compute_complex_assign_jump_func): Fix type parameter of
19021 ipa_set_ancestor_jf.
19022 (compute_complex_ancestor_jump_func): Likewise.
19023 (update_jump_functions_after_inlining): Fix updating of
19024 ancestor function.
19025 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
19026
19027 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
19028
19029 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
19030 inline clones when edge disappears.
19031
19032 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
19033
19034 PR target/60203
19035 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
19036 Split 64-bit moves into 2 patterns. Do not allow the use of
19037 direct move for TDmode in little endian, since the decimal value
19038 has little endian bytes within a word, but the 64-bit pieces are
19039 ordered in a big endian fashion, and normal subreg's of TDmode are
19040 not allowed.
19041 (mov<mode>_64bit_dm): Likewise.
19042 (movtd_64bit_nodm): Likewise.
19043
19044 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
19045
19046 PR tree-optimization/60174
19047 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
19048 statement of an SSA_NAME that occurs in an abnormal PHI node.
19049
19050 2014-02-18 Jakub Jelinek <jakub@redhat.com>
19051
19052 PR sanitizer/60142
19053 * final.c (SEEN_BB): Remove.
19054 (SEEN_NOTE, SEEN_EMITTED): Renumber.
19055 (final_scan_insn): Don't force_source_line on second
19056 NOTE_INSN_BASIC_BLOCK.
19057
19058 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
19059
19060 PR target/60205
19061 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
19062 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
19063 (type_natural_mode): Warn ABI change when %zmm register is not
19064 available for AVX512F vector value passing.
19065
19066 2014-02-18 Kai Tietz <ktietz@redhat.com>
19067
19068 PR target/60193
19069 * config/i386/i386.c (ix86_expand_prologue): Use value in
19070 rax register as displacement when restoring %r10 or %rax.
19071 Fix wrong offset when restoring both registers.
19072
19073 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
19074
19075 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
19076 assertion with conditional return.
19077
19078 2014-02-18 Jakub Jelinek <jakub@redhat.com>
19079 Uros Bizjak <ubizjak@gmail.com>
19080
19081 PR driver/60233
19082 * config/i386/driver-i386.c (host_detect_local_cpu): If
19083 YMM state is not saved by the OS, also clear has_f16c. Move
19084 CPUID 0x80000001 handling before YMM state saving checking.
19085
19086 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
19087
19088 PR rtl-optimization/58960
19089 * haifa-sched.c (alloc_global_sched_pressure_data): New,
19090 factored out from ...
19091 (sched_init): ... here.
19092 (free_global_sched_pressure_data): New, factored out from ...
19093 (sched_finish): ... here.
19094 * sched-int.h (free_global_sched_pressure_data): Declare.
19095 * sched-rgn.c (nr_regions_initial): New static global.
19096 (haifa_find_rgns): Initialize it.
19097 (schedule_region): Disable sched-pressure for the newly
19098 generated regions.
19099
19100 2014-02-17 Richard Biener <rguenther@suse.de>
19101
19102 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
19103 release SSA defs of pattern stmts.
19104
19105 2014-02-17 Richard Biener <rguenther@suse.de>
19106
19107 * tree-inline.c (expand_call_inline): Release the virtual
19108 operand defined by the call we are about to inline.
19109
19110 2014-02-17 Richard Biener <rguenther@suse.de>
19111
19112 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
19113
19114 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
19115 Ilya Tocar <ilya.tocar@intel.com>
19116
19117 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
19118 arguments order in builtin.
19119 (_mm512_permutexvar_epi64): Ditto.
19120 (_mm512_mask_permutexvar_epi64): Ditto
19121 (_mm512_maskz_permutexvar_epi32): Ditto
19122 (_mm512_permutexvar_epi32): Ditto
19123 (_mm512_mask_permutexvar_epi32): Ditto
19124
19125 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19126
19127 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
19128 (p8_vmrgow): Likewise.
19129
19130 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19131
19132 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
19133 endian targets.
19134
19135 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
19136
19137 PR target/60203
19138 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
19139 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
19140 into 64-bit and 32-bit moves. On 64-bit moves, add support for
19141 using direct move instructions on ISA 2.07. Also adjust
19142 instruction length for 64-bit.
19143 (mov<mode>_64bit, TFmode/TDmode): Likewise.
19144 (mov<mode>_32bit, TFmode/TDmode): Likewise.
19145
19146 2014-02-15 Alan Modra <amodra@gmail.com>
19147
19148 PR target/58675
19149 PR target/57935
19150 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
19151 find_replacement on parts of insn rtl that might be reloaded.
19152
19153 2014-02-15 Richard Biener <rguenther@suse.de>
19154
19155 PR tree-optimization/60183
19156 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
19157 (tree_ssa_phiprop): Calculate and free post-dominators.
19158
19159 2014-02-14 Jeff Law <law@redhat.com>
19160
19161 PR rtl-optimization/60131
19162 * ree.c (get_extended_src_reg): New function.
19163 (combine_reaching_defs): Use it rather than assuming location of REG.
19164 (find_and_remove_re): Verify first operand of extension is
19165 a REG before adding the insns to the copy list.
19166
19167 2014-02-14 Roland McGrath <mcgrathr@google.com>
19168
19169 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
19170 * configure: Regenerated.
19171 * config.in: Regenerated.
19172 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
19173 instead of ASM_SHORT.
19174
19175 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
19176 Richard Earnshaw <rearnsha@arm.com>
19177
19178 PR rtl-optimization/59535
19179 * lra-constraints.c (process_alt_operands): Encourage alternative
19180 when unassigned pseudo class is superset of the alternative class.
19181 (inherit_reload_reg): Don't inherit when optimizing for code size.
19182 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
19183 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
19184 modes not less than 4 for Thumb1.
19185
19186 2014-02-14 Kyle McMartin <kyle@redhat.com>
19187
19188 PR pch/60010
19189 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
19190
19191 2014-02-14 Richard Biener <rguenther@suse.de>
19192
19193 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
19194 (get_frame_arg): Drop the assert with langhook types_compatible_p.
19195 Do not strip INDIRECT_REFs.
19196
19197 2014-02-14 Richard Biener <rguenther@suse.de>
19198
19199 PR lto/60179
19200 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
19201 DECL_FUNCTION_SPECIFIC_TARGET.
19202 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
19203 * tree-streamer-out.c (pack_ts_target_option): Remove.
19204 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
19205 (write_ts_function_decl_tree_pointers): Do not stream
19206 DECL_FUNCTION_SPECIFIC_TARGET.
19207 * tree-streamer-in.c (unpack_ts_target_option): Remove.
19208 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
19209 (lto_input_ts_function_decl_tree_pointers): Do not stream
19210 DECL_FUNCTION_SPECIFIC_TARGET.
19211
19212 2014-02-14 Jakub Jelinek <jakub@redhat.com>
19213
19214 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
19215 (get_initial_def_for_induction, vectorizable_induction): Ignore
19216 debug stmts when looking for exit_phi.
19217 (vectorizable_live_operation): Fix up condition.
19218
19219 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19220
19221 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
19222 nreverse() because it changes the content of original tree list.
19223
19224 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19225
19226 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
19227 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
19228
19229 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19230
19231 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
19232 GNU coding standards.
19233
19234 2014-02-13 Jakub Jelinek <jakub@redhat.com>
19235
19236 PR debug/60152
19237 * dwarf2out.c (gen_subprogram_die): Don't call
19238 add_calling_convention_attribute if subr_die is old_die.
19239
19240 2014-02-13 Sharad Singhai <singhai@google.com>
19241
19242 * doc/optinfo.texi: Fix order of nodes.
19243
19244 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
19245
19246 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
19247 operands[2], not operands[3].
19248
19249 2014-02-13 Richard Biener <rguenther@suse.de>
19250
19251 PR bootstrap/59878
19252 * doc/install.texi (ISL): Update recommended version to 0.12.2,
19253 mention the possibility of an in-tree build.
19254 (CLooG): Update recommended version to 0.18.1, mention the
19255 possibility of an in-tree build and clarify that the ISL
19256 bundled with CLooG does not work.
19257
19258 2014-02-13 Jakub Jelinek <jakub@redhat.com>
19259
19260 PR target/43546
19261 * expr.c (compress_float_constant): If x is a hard register,
19262 extend into a pseudo and then move to x.
19263
19264 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
19265
19266 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
19267 caused by bad second argument to warning_at() with -mhotpatch and
19268 nested functions (e.g. with gfortran).
19269
19270 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
19271
19272 * opts.c (option_name): Remove "enabled by default" rider.
19273
19274 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
19275
19276 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
19277
19278 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
19279 Uros Bizjak <ubizjak@gmail.com>
19280
19281 PR target/60151
19282 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
19283 * configure: Regenerated.
19284
19285 2014-02-12 Richard Biener <rguenther@suse.de>
19286
19287 * vec.c (vec_prefix::calculate_allocation): Move as
19288 inline variant to vec.h.
19289 (vec_prefix::calculate_allocation_1): New out-of-line version.
19290 * vec.h (vec_prefix::calculate_allocation_1): Declare.
19291 (vec_prefix::m_has_auto_buf): Rename to ...
19292 (vec_prefix::m_using_auto_storage): ... this.
19293 (vec_prefix::calculate_allocation): Inline the easy cases
19294 and dispatch to calculate_allocation_1 which doesn't need the
19295 prefix address.
19296 (va_heap::reserve): Use gcc_checking_assert.
19297 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
19298 m_using_auto_storage.
19299 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
19300 member and adjust.
19301 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
19302 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
19303 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
19304
19305 2014-02-12 Richard Biener <rguenther@suse.de>
19306
19307 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
19308 when we found a dependence.
19309
19310 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
19311
19312 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
19313 common code...
19314 (maybe_fold_stmt): ... into this new function.
19315 * omp-low.c (lower_omp): Update comment.
19316
19317 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
19318 last use.
19319
19320 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
19321 dereference.
19322
19323 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
19324
19325 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
19326 identifiers in comments.
19327 (cortexa53_extra_costs): Likewise.
19328 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
19329 (cortexa7_extra_costs): Likewise.
19330 (cortexa12_extra_costs): Likewise.
19331 (cortexa15_extra_costs): Likewise.
19332 (v7m_extra_costs): Likewise.
19333
19334 2014-02-12 Richard Biener <rguenther@suse.de>
19335
19336 PR middle-end/60092
19337 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
19338 of posix_memalign being successful.
19339 (lower_stmt): Restrict lowering of posix_memalign to when
19340 -ftree-bit-ccp is enabled.
19341
19342 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19343
19344 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
19345 arg_loc.
19346 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
19347
19348 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
19349
19350 PR rtl-optimization/60116
19351 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
19352 other_insn once the combination has been validated.
19353
19354 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
19355
19356 PR lto/59468
19357 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
19358 and wrapper.
19359 * ipa-devirt.c: Include demangle.h
19360 (odr_violation_reported): New static variable.
19361 (add_type_duplicate): Update odr_violations.
19362 (maybe_record_node): Add completep parameter; update it.
19363 (record_target_from_binfo): Add COMPLETEP parameter;
19364 update it as needed.
19365 (possible_polymorphic_call_targets_1): Likewise.
19366 (struct polymorphic_call_target_d): Add nonconstruction_targets;
19367 rename FINAL to COMPLETE.
19368 (record_targets_from_bases): Sanity check we found the binfo;
19369 fix COMPLETEP updating.
19370 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
19371 parameter, fix computing of COMPLETEP.
19372 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
19373 at LTO time do demangling.
19374 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
19375 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
19376 parameter.
19377 (gimple_get_virt_method_for_binfo): Likewise.
19378 * gimple-fold.h (gimple_get_virt_method_for_binfo,
19379 gimple_get_virt_method_for_vtable): Update prototypes.
19380
19381 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
19382
19383 PR target/49008
19384 * genautomata.c (add_presence_absence): Fix typo with
19385 {final_}presence_list.
19386
19387 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19388
19389 PR target/60137
19390 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
19391 for VSX/Altivec vectors that land in GPR registers.
19392
19393 2014-02-11 Richard Henderson <rth@redhat.com>
19394 Jakub Jelinek <jakub@redhat.com>
19395
19396 PR debug/59776
19397 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
19398 around drhs if type conversion to lacc->type is not useless.
19399
19400 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19401
19402 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
19403 tuning struct.
19404 (cortex-a57.cortex-a53): Likewise.
19405 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
19406
19407 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19408
19409 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
19410 arm_restrict_it.
19411
19412 2014-02-11 Renlin Li <Renlin.Li@arm.com>
19413
19414 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
19415 add_options_for_arm_vfp3.
19416
19417 2014-02-11 Jeff Law <law@redhat.com>
19418
19419 PR middle-end/54041
19420 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
19421 object with an undesirable mode.
19422
19423 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19424
19425 PR libgomp/60107
19426 * config/i386/sol2-9.h: New file.
19427 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
19428 *-*-solaris2.9*): Use it.
19429
19430 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
19431
19432 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
19433 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
19434
19435 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
19436
19437 * config/microblaze/microblaze.c: Extend mcpu version format
19438
19439 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
19440
19441 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
19442
19443 2014-02-10 Richard Henderson <rth@redhat.com>
19444
19445 PR target/59927
19446 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
19447 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
19448 ms-abi vs -mno-accumulate-outgoing-args.
19449 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
19450 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
19451 respect to ms-abi.
19452
19453 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19454
19455 PR middle-end/60080
19456 * cfgexpand.c (expand_asm_operands): Attach source location to
19457 ASM_INPUT rtx objects.
19458 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
19459
19460 2014-02-10 Nick Clifton <nickc@redhat.com>
19461
19462 * config/mn10300/mn10300.c (popcount): New function.
19463 (mn10300_expand_prologue): Include saved registers in stack usage
19464 count.
19465
19466 2014-02-10 Jeff Law <law@redhat.com>
19467
19468 PR middle-end/52306
19469 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
19470 when changing the SET_DEST of a prior insn to avoid an input reload.
19471
19472 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19473
19474 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
19475 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
19476 -mcall-openbsd, or -mcall-linux.
19477 (CC1_ENDIAN_BIG_SPEC): Remove.
19478 (CC1_ENDIAN_LITTLE_SPEC): Remove.
19479 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
19480 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
19481 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
19482 and %cc1_endian_default.
19483 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
19484
19485 2014-02-10 Richard Biener <rguenther@suse.de>
19486
19487 PR tree-optimization/60115
19488 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
19489 MEM_REF handling. Properly verify that the accesses are not
19490 out of the objects bound.
19491
19492 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19493
19494 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
19495 coretex to cortex.
19496
19497 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
19498
19499 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
19500 proper constants and fix formatting.
19501 (possible_polymorphic_call_targets): Fix formatting.
19502
19503 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
19504 Ilya Tocar <ilya.tocar@intel.com>
19505
19506 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
19507 (_mm512_loadu_epi32): Renamed into...
19508 (_mm512_loadu_si512): This.
19509 (_mm512_storeu_epi32): Renamed into...
19510 (_mm512_storeu_si512): This.
19511 (_mm512_maskz_ceil_ps): Removed.
19512 (_mm512_maskz_ceil_pd): Ditto.
19513 (_mm512_maskz_floor_ps): Ditto.
19514 (_mm512_maskz_floor_pd): Ditto.
19515 (_mm512_floor_round_ps): Ditto.
19516 (_mm512_floor_round_pd): Ditto.
19517 (_mm512_ceil_round_ps): Ditto.
19518 (_mm512_ceil_round_pd): Ditto.
19519 (_mm512_mask_floor_round_ps): Ditto.
19520 (_mm512_mask_floor_round_pd): Ditto.
19521 (_mm512_mask_ceil_round_ps): Ditto.
19522 (_mm512_mask_ceil_round_pd): Ditto.
19523 (_mm512_maskz_floor_round_ps): Ditto.
19524 (_mm512_maskz_floor_round_pd): Ditto.
19525 (_mm512_maskz_ceil_round_ps): Ditto.
19526 (_mm512_maskz_ceil_round_pd): Ditto.
19527 (_mm512_expand_pd): Ditto.
19528 (_mm512_expand_ps): Ditto.
19529 * config/i386/i386.c (ix86_builtins): Remove
19530 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
19531 (bdesc_args): Ditto.
19532 * config/i386/predicates.md (const1256_operand): New.
19533 (const_1_to_2_operand): Ditto.
19534 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
19535 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19536 (*avx512pf_gatherpf<mode>sf): Ditto.
19537 (avx512pf_gatherpf<mode>df): Ditto.
19538 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19539 (*avx512pf_gatherpf<mode>df): Ditto.
19540 (avx512pf_scatterpf<mode>sf): Ditto.
19541 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19542 (*avx512pf_scatterpf<mode>sf): Ditto.
19543 (avx512pf_scatterpf<mode>df): Ditto.
19544 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19545 (*avx512pf_scatterpf<mode>df): Ditto.
19546 (avx512f_expand<mode>): Removed.
19547 (<shift_insn><mode>3<mask_name>): Change predicate type.
19548
19549 2014-02-08 Jakub Jelinek <jakub@redhat.com>
19550
19551 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
19552 not at the end of datarefs vector use ordered_remove to avoid
19553 reordering datarefs vector.
19554
19555 PR c/59984
19556 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
19557 mark local addressable non-static vars as GOVD_PRIVATE
19558 instead of GOVD_LOCAL.
19559 * omp-low.c (lower_omp_for): Move gimple_bind_vars
19560 and BLOCK_VARS of gimple_bind_block to new_stmt rather
19561 than copying them.
19562
19563 PR middle-end/60092
19564 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
19565 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
19566 assume_aligned or alloc_align attributes.
19567 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
19568 arguments. Handle also assume_aligned and alloc_align attributes.
19569 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
19570 calls to functions with assume_aligned or alloc_align attributes.
19571 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
19572
19573 2014-02-08 Terry Guo <terry.guo@arm.com>
19574
19575 * doc/invoke.texi: Document ARM -march=armv7e-m.
19576
19577 2014-02-08 Jakub Jelinek <jakub@redhat.com>
19578
19579 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
19580 flag on __cilkrts_rethrow builtin.
19581
19582 PR ipa/60026
19583 * ipa-cp.c (determine_versionability): Fail at -O0
19584 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
19585 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
19586
19587 Revert:
19588 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19589
19590 PR ipa/60026
19591 * tree-inline.c (copy_forbidden): Fail for
19592 __attribute__((optimize (0))) functions.
19593
19594 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19595
19596 * varpool.c: Include pointer-set.h.
19597 (varpool_remove_unreferenced_decls): Variables in other partitions
19598 will not be output; be however careful to not lose information
19599 about partitioning.
19600
19601 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19602
19603 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
19604 lookup in the vtable constructor.
19605
19606 2014-02-07 Jeff Law <law@redhat.com>
19607
19608 PR target/40977
19609 * config/m68k/m68k.md (ashldi_extsi): Turn into a
19610 define_insn_and_split.
19611
19612 * ipa-inline.c (inline_small_functions): Fix typos.
19613
19614 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19615
19616 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
19617 (s390_can_use_return_insn): Declare.
19618 * config/s390/s390.h (EPILOGUE_USES): Define.
19619 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
19620 instructions.
19621 (s390_chunkify_start): Handle return JUMP_LABELs.
19622 (s390_early_mach): Emit a main_pool instruction on the entry edge.
19623 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
19624 (s390_can_use_return_insn): New functions.
19625 (s390_fix_long_loop_prediction): Handle conditional returns.
19626 (TARGET_SET_UP_BY_PROLOGUE): Define.
19627 * config/s390/s390.md (ANY_RETURN): New code iterator.
19628 (*creturn, *csimple_return, return, simple_return): New patterns.
19629
19630 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19631
19632 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
19633 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
19634 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
19635 REG_CFA_RESTORE list when deciding not to restore a register.
19636
19637 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19638
19639 * config/s390/s390.c: Include tree-pass.h and context.h.
19640 (s390_early_mach): New function, split out from...
19641 (s390_emit_prologue): ...here.
19642 (pass_data_s390_early_mach): New pass structure.
19643 (pass_s390_early_mach): New class.
19644 (s390_option_override): Create and register early_mach pass.
19645 Move to end of file.
19646
19647 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19648
19649 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
19650 to match for the exit block.
19651
19652 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19653
19654 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
19655 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
19656 Reject misaligned operands.
19657
19658 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19659
19660 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
19661
19662 2014-02-07 Richard Biener <rguenther@suse.de>
19663
19664 PR middle-end/60092
19665 * gimple-low.c (lower_builtin_posix_memalign): New function.
19666 (lower_stmt): Call it to lower posix_memalign in a way
19667 to make alignment info accessible.
19668
19669 2014-02-07 Jakub Jelinek <jakub@redhat.com>
19670
19671 PR c++/60082
19672 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
19673 __builtin_setjmp_receiver.
19674
19675 2014-02-07 Richard Biener <rguenther@suse.de>
19676
19677 PR middle-end/60092
19678 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
19679 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
19680 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19681 Handle BUILT_IN_POSIX_MEMALIGN.
19682 (find_func_clobbers): Likewise.
19683 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19684 (call_may_clobber_ref_p_1): Likewise.
19685
19686 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19687
19688 PR ipa/59918
19689 * ipa-devirt.c (record_target_from_binfo): Remove overactive
19690 sanity check.
19691
19692 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19693
19694 PR ipa/59469
19695 * lto-cgraph.c (lto_output_node): Use
19696 symtab_get_symbol_partitioning_class.
19697 (lto_output_varpool_node): likewise.
19698 (symtab_get_symbol_partitioning_class): Move here from
19699 lto/lto-partition.c
19700 * cgraph.h (symbol_partitioning_class): Likewise.
19701 (symtab_get_symbol_partitioning_class): Declare.
19702
19703 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19704
19705 * ggc.h (ggc_internal_cleared_alloc): New macro.
19706 * vec.h (vec_safe_copy): Handle memory stats.
19707 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
19708 * target-globals.c (save_target_globals): Likewise.
19709
19710 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19711
19712 PR target/60077
19713 * expr.c (emit_move_resolve_push): Export; be bit more selective
19714 on when to clear alias set.
19715 * expr.h (emit_move_resolve_push): Declare.
19716 * function.h (struct function): Add tail_call_marked.
19717 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
19718 * config/i386/i386-protos.h (ix86_expand_push): Remove.
19719 * config/i386/i386.md (TImode move expander): De not call
19720 ix86_expand_push.
19721 (FP push expanders): Preserve memory attributes.
19722 * config/i386/sse.md (push<mode>1): Remove.
19723 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
19724 (ix86_expand_push): Remove.
19725 * config/i386/mmx.md (push<mode>1): Remove.
19726
19727 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19728
19729 PR rtl-optimization/60030
19730 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
19731 lopart with paradoxical subreg before shifting it up by hprec.
19732
19733 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19734
19735 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
19736 Remove extra newline at end of file.
19737 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
19738 (arm_issue_rate): Handle cortexa57.
19739 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
19740 (cortex-a57.cortex-a53): Likewise.
19741
19742 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19743
19744 PR target/59575
19745 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
19746 don't record in REG_FRAME_RELATED_EXPR registers not set in that
19747 bitmask.
19748 (arm_expand_prologue): Adjust all callers.
19749 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
19750 info, registers also at the lowest numbered registers side. Use
19751 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
19752 XEXP.
19753
19754 PR debug/59992
19755 * var-tracking.c (adjust_mems): Before adding a SET to
19756 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
19757
19758 2014-02-06 Alan Modra <amodra@gmail.com>
19759
19760 PR target/60032
19761 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
19762 change SDmode to DDmode when lra_in_progress.
19763
19764 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19765
19766 PR middle-end/59150
19767 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
19768 free_data_ref on the dr first, and before goto again also set dr
19769 to the next dr. For simd_lane_access, free old datarefs[i] before
19770 overwriting it. For get_vectype_for_scalar_type failure, don't
19771 free_data_ref if simd_lane_access.
19772
19773 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
19774
19775 PR target/60062
19776 * tree.h (opts_for_fn): New inline function.
19777 (opt_for_fn): Define.
19778 * config/i386/i386.c (ix86_function_regparm): Use
19779 opt_for_fn (decl, optimize) instead of optimize.
19780
19781 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
19782
19783 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
19784 for SYMBOL_REF in large memory model.
19785
19786 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19787
19788 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
19789 and crypto support.
19790 (cortex-a57): Likewise.
19791 (cortex-a57.cortex-a53): Likewise.
19792
19793 2014-02-06 Yury Gribov <y.gribov@samsung.com>
19794 Kugan Vivekanandarajah <kuganv@linaro.org>
19795
19796 * config/arm/arm.c (arm_vector_alignment_reachable): Check
19797 unaligned_access.
19798 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
19799
19800 2014-02-06 Richard Biener <rguenther@suse.de>
19801
19802 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
19803 set_loop_copy and initialize_original_copy_tables.
19804
19805 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
19806
19807 * config/aarch64/aarch64-simd.md
19808 (aarch64_ashr_simddi): Change QI to SI.
19809
19810 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19811 Jakub Jelinek <jakub@redhat.com>
19812
19813 PR middle-end/60013
19814 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
19815 of the dataflow.
19816
19817 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19818
19819 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
19820 CODE_FOR_altivec_vpku[hw]um to
19821 CODE_FOR_altivec_vpku[hw]um_direct.
19822 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
19823 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
19824 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
19825 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
19826
19827 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19828
19829 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
19830 generation for -maltivec=be.
19831 (altivec_vsumsws): Simplify redundant test.
19832
19833 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19834
19835 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
19836 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
19837 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
19838 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
19839 gen_altivec_vpkuwum.
19840 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
19841 BYTES_BIG_ENDIAN.
19842 (altivec_vpks<VI_char>ss): Likewise.
19843 (altivec_vpks<VI_char>us): Likewise.
19844 (altivec_vpku<VI_char>us): Likewise.
19845 (altivec_vpku<VI_char>um): Likewise.
19846 (altivec_vpku<VI_char>um_direct): New (copy of
19847 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
19848 internal use).
19849 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
19850 target is little endian and -maltivec=be is not specified.
19851 (*altivec_vupkhs<VU_char>_direct): New (copy of
19852 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
19853 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
19854 target is little endian and -maltivec=be is not specified.
19855 (*altivec_vupkls<VU_char>_direct): New (copy of
19856 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
19857 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
19858 little endian and -maltivec=be is not specified.
19859 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
19860 little endian and -maltivec=be is not specified.
19861
19862 2014-02-05 Richard Henderson <rth@redhat.com>
19863
19864 PR debug/52727
19865 * combine-stack-adj.c: Revert r206943.
19866 * sched-int.h (struct deps_desc): Add last_args_size.
19867 * sched-deps.c (init_deps): Initialize it.
19868 (sched_analyze_insn): Add OUTPUT dependencies between insns that
19869 contain REG_ARGS_SIZE notes.
19870
19871 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19872
19873 * lto-cgraph.c (asm_nodes_output): Make global.
19874 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
19875 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
19876 (driver_handle_option): Handle OPT_fwpa.
19877
19878 2014-02-05 Jakub Jelinek <jakub@redhat.com>
19879
19880 PR ipa/59947
19881 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
19882 a comment typo and formatting issue. If odr_hash hasn't been
19883 created, return vNULL and set *completep to false.
19884
19885 PR middle-end/57499
19886 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
19887 bb with no successors.
19888
19889 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
19890
19891 PR target/59718
19892 * doc/invoke.texi (-march): Clarify documentation for ARM.
19893 (-mtune): Likewise.
19894 (-mcpu): Likewise.
19895
19896 2014-02-05 Richard Biener <rguenther@suse.de>
19897
19898 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
19899 when not vectorizing because of too many alias checks.
19900 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
19901 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
19902
19903 2014-02-05 Nick Clifton <nickc@redhat.com>
19904
19905 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
19906 accept extended registers in any mode when compiling for the MN10300.
19907
19908 2014-02-05 Yury Gribov <y.gribov@samsung.com>
19909
19910 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
19911 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
19912 sanitization attributes.
19913 (can_inline_edge_p): Likewise.
19914 (sanitize_attrs_match_for_inline_p): New function.
19915
19916 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19917
19918 * ipa-prop.c (detect_type_change): Shor circuit testing of
19919 type changes on THIS pointer.
19920
19921 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
19922
19923 PR target/59777
19924 * config/pa/pa.c (legitimize_tls_address): Return original address
19925 if not passed a SYMBOL_REF rtx.
19926 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
19927 addresses.
19928 (pa_emit_move_sequence): Simplify TLS source operands.
19929 (pa_legitimate_constant_p): Reject all TLS constants.
19930 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
19931 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
19932
19933 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19934
19935 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
19936 groups when we know they are controlled by LTO.
19937 * varasm.c (default_binds_local_p_1): If object is in other partition,
19938 it will be resolved locally.
19939
19940 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19941
19942 * config/host-linux.c (linux_gt_pch_use_address): Don't
19943 use SSIZE_MAX because it is not always defined.
19944
19945 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
19946
19947 PR bootstrap/59913
19948 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
19949 threshold for pseudo splitting.
19950 (update_ebb_live_info): Process call argument hard registers and
19951 hard registers from insn definition too.
19952 (max_small_class_regs_num): New constant.
19953 (inherit_in_ebb): Update live hard regs through EBBs. Update
19954 reloads_num only for small register classes. Don't split for
19955 outputs of jumps.
19956
19957 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
19958
19959 PR ipa/60058
19960 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
19961 is non-null.
19962
19963 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19964
19965 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
19966 visibility is safe.
19967
19968 2014-02-04 Marek Polacek <polacek@redhat.com>
19969
19970 * gdbinit.in (pel): Define.
19971
19972 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19973
19974 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
19975 behavior.
19976
19977 2014-02-04 Richard Biener <rguenther@suse.de>
19978
19979 PR lto/59723
19980 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
19981 in function context local.
19982 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
19983 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
19984 similar to LTO_imported_decl_ref.
19985
19986 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19987
19988 PR tree-optimization/60002
19989 * cgraphclones.c (build_function_decl_skip_args): Clear
19990 DECL_LANG_SPECIFIC.
19991
19992 PR tree-optimization/60023
19993 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
19994 false to gsi_replace.
19995 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
19996 has been in some EH region and vec_stmt could throw, add
19997 vec_stmt into the same EH region.
19998 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
19999 has no lhs, ignore it.
20000 * internal-fn.c (expand_MASK_LOAD): Likewise.
20001
20002 PR ipa/60026
20003 * tree-inline.c (copy_forbidden): Fail for
20004 __attribute__((optimize (0))) functions.
20005
20006 PR other/58712
20007 * omp-low.c (simd_clone_struct_copy): If from->inbranch
20008 is set, copy one less argument.
20009 (expand_simd_clones): Don't subtract clone_info->inbranch
20010 from simd_clone_struct_alloc argument.
20011
20012 PR rtl-optimization/57915
20013 * recog.c (simplify_while_replacing): If all unary/binary/relational
20014 operation arguments are constant, attempt to simplify those.
20015
20016 PR middle-end/59261
20017 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
20018 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
20019
20020 2014-02-04 Richard Biener <rguenther@suse.de>
20021
20022 PR tree-optimization/60012
20023 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
20024 TBAA disambiguation to all DDRs.
20025
20026 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20027
20028 PR target/59788
20029 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
20030 (LINK_SPEC): Use it for -shared, -shared-libgcc.
20031
20032 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20033
20034 PR ipa/59882
20035 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
20036
20037 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20038
20039 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
20040 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
20041
20042 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20043
20044 PR ipa/59831
20045 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
20046 to figure out targets of polymorphic calls with known decl.
20047 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20048 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
20049 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
20050 (get_polymorphic_call_info): ... here.
20051 (get_polymorphic_call_info_from_invariant): New function.
20052
20053 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20054
20055 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
20056 lookup via vtable pointer; check for type consistency
20057 and turn inconsitent facts into UNREACHABLE.
20058 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20059 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
20060 type inconsistent querries; return UNREACHABLE instead.
20061
20062 2014-02-03 Richard Henderson <rth@twiddle.net>
20063
20064 PR tree-opt/59924
20065 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
20066 already processed this node.
20067 (normalize_one_pred_1): Pass along mark_set.
20068 (normalize_one_pred): Create and destroy a pointer_set_t.
20069 (normalize_one_pred_chain): Likewise.
20070
20071 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
20072
20073 PR gcov-profile/58602
20074 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
20075
20076 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20077
20078 PR ipa/59831
20079 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
20080 -fno-devirtualize; try to devirtualize by the knowledge of
20081 virtual table pointer given by aggregate propagation.
20082 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20083 (ipa_print_node_jump_functions): Dump also offset that
20084 is relevant for polymorphic calls.
20085 (determine_known_aggregate_parts): Add arg_type parameter; use it
20086 instead of determining the type from pointer type.
20087 (ipa_compute_jump_functions_for_edge): Update call of
20088 determine_known_aggregate_parts.
20089 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
20090 (gimple_get_virt_method_for_binfo): ... here; simplify using
20091 vtable_pointer_value_to_vtable.
20092 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
20093 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
20094 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
20095 (vtable_pointer_value_to_vtable): Break out from ...; handle also
20096 POINTER_PLUS_EXPR.
20097 (vtable_pointer_value_to_binfo): ... here.
20098 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
20099
20100 2014-02-03 Teresa Johnson <tejohnson@google.com>
20101
20102 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
20103 redef of outer loop index variable.
20104
20105 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
20106
20107 PR c++/53017
20108 PR c++/59211
20109 * doc/extend.texi (Function Attributes): Typo.
20110
20111 2014-02-03 Cong Hou <congh@google.com>
20112
20113 PR tree-optimization/60000
20114 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
20115 if the vectorized statement is a store. A store statement can only
20116 appear at the end of pattern statements.
20117
20118 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
20119
20120 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
20121 (ix86_option_override_internal): Default long double to 64-bit for
20122 32-bit Bionic and to 128-bit for 64-bit Bionic.
20123
20124 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
20125 TARGET_LONG_DOUBLE_128 is true.
20126 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
20127
20128 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
20129 (mlong-double-64): Negate -mlong-double-128.
20130 (mlong-double-128): New option.
20131
20132 * config/i386/i386-c.c (ix86_target_macros): Define
20133 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
20134
20135 * doc/invoke.texi: Document -mlong-double-128.
20136
20137 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
20138
20139 PR rtl-optimization/60024
20140 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
20141
20142 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
20143
20144 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
20145
20146 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
20147
20148 PR rtl-optimization/57662
20149 * sel-sched.c (code_motion_path_driver): Do not mark already not
20150 existing blocks in the visiting bitmap.
20151
20152 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
20153
20154 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
20155 on the insn being emitted.
20156
20157 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
20158 Will Deacon <will.deacon@arm.com>
20159
20160 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
20161
20162 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20163
20164 * config/arm/arm-tables.opt: Regenerate.
20165
20166 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20167
20168 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
20169 for vector types other than V16QImode.
20170 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
20171 define_expand, and call altivec_expand_vec_perm_le when producing
20172 code with little endian element order.
20173 (*altivec_vperm_<mode>_internal): New insn having previous
20174 behavior of altivec_vperm_<mode>.
20175 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
20176 altivec_expand_vec_perm_le when producing code with little endian
20177 element order.
20178 (*altivec_vperm_<mode>_uns_internal): New insn having previous
20179 behavior of altivec_vperm_<mode>_uns.
20180
20181 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20182
20183 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
20184 (altivec_vsumsws): Add handling for -maltivec=be with a little
20185 endian target.
20186 (altivec_vsumsws_direct): New.
20187 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
20188 gen_altivec_vsumsws.
20189
20190 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
20191
20192 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
20193 vtable_pointer_value_to_binfo): New functions.
20194 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
20195 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
20196
20197 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
20198
20199 * config/nios2/nios2.md (load_got_register): Initialize GOT
20200 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
20201 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
20202
20203 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
20204
20205 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
20206 preserverd by passthrough, do not propagate the type.
20207
20208 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
20209
20210 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
20211 (mips_atomic_assign_expand_fenv): New function.
20212 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
20213
20214 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
20215
20216 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
20217 (__builtin_mips_set_fcsr): Likewise.
20218 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
20219 MIPS_USI_FTYPE_VOID.
20220 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
20221 (mips16_expand_set_fcsr): Likewise.
20222 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
20223 (mips16_set_fcsr_stub): Likewise.
20224 (mips16_get_fcsr_one_only_stub): New class.
20225 (mips16_set_fcsr_one_only_stub): Likewise.
20226 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
20227 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
20228 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
20229 (hard_float): New availability predicate.
20230 (mips_builtins): Add get_fcsr and set_fcsr.
20231 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
20232 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
20233 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
20234 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
20235 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
20236 patterns.
20237
20238 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
20239
20240 * config/mips/mips.c (mips_one_only_stub): New class.
20241 (mips_need_mips16_rdhwr_p): Replace with...
20242 (mips16_rdhwr_stub): ...this new variable.
20243 (mips16_stub_call_address): New function.
20244 (mips16_rdhwr_one_only_stub): New class.
20245 (mips_expand_thread_pointer): Use mips16_stub_call_address.
20246 (mips_output_mips16_rdhwr): Delete.
20247 (mips_finish_stub): New function.
20248 (mips_code_end): Use it to handle rdhwr stubs.
20249
20250 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
20251
20252 PR target/60017
20253 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
20254 when calculating size of integer atomic types.
20255
20256 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
20257
20258 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
20259
20260 2014-02-01 Jakub Jelinek <jakub@redhat.com>
20261
20262 PR tree-optimization/60003
20263 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
20264 * profile.c (branch_prob): Use gimple_call_builtin_p
20265 to check for BUILT_IN_SETJMP_RECEIVER.
20266 * tree-inline.c (copy_bb): Call notice_special_calls.
20267
20268 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
20269
20270 PR bootstrap/59985
20271 * lra-constraints.c (process_alt_operands): Update reload_sum only
20272 on the first pass.
20273
20274 2014-01-31 Richard Henderson <rth@redhat.com>
20275
20276 PR middle-end/60004
20277 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
20278 until after else_eh is processed.
20279
20280 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
20281
20282 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
20283 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
20284 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
20285 in smmintrin.h, remove them.
20286 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
20287 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
20288 * config/i386/i386.md (ROUND_SAE): Fix value.
20289 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
20290 (const48_operand): New.
20291 * config/i386/subst.md (round), (round_expand): Use
20292 const_4_or_8_to_11_operand.
20293 (round_saeonly), (round_saeonly_expand): Use const48_operand.
20294
20295 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
20296
20297 * config/i386/constraints.md (Yk): Swap meaning with k.
20298 * config/i386/i386.md (movhi_internal): Change Yk to k.
20299 (movqi_internal): Ditto.
20300 (*k<logic><mode>): Ditto.
20301 (*andhi_1): Ditto.
20302 (*andqi_1): Ditto.
20303 (kandn<mode>): Ditto.
20304 (*<code>hi_1): Ditto.
20305 (*<code>qi_1): Ditto.
20306 (kxnor<mode>): Ditto.
20307 (kortestzhi): Ditto.
20308 (kortestchi): Ditto.
20309 (kunpckhi): Ditto.
20310 (*one_cmplhi2_1): Ditto.
20311 (*one_cmplqi2_1): Ditto.
20312 * config/i386/sse.md (): Change k to Yk.
20313 (avx512f_load<mode>_mask): Ditto.
20314 (avx512f_blendm<mode>): Ditto.
20315 (avx512f_store<mode>_mask): Ditto.
20316 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
20317 (avx512f_storedqu<mode>_mask): Ditto.
20318 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
20319 Ditto.
20320 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
20321 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
20322 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
20323 (avx512f_maskcmp<mode>3): Ditto.
20324 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
20325 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
20326 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
20327 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
20328 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
20329 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
20330 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
20331 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
20332 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
20333 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
20334 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
20335 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
20336 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
20337 (vec_extract_lo_<mode>_maskm): Ditto.
20338 (vec_extract_hi_<mode>_maskm): Ditto.
20339 (avx512f_vternlog<mode>_mask): Ditto.
20340 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
20341 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
20342 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
20343 (avx512f_<code>v8div16qi2_mask): Ditto.
20344 (avx512f_<code>v8div16qi2_mask_store): Ditto.
20345 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
20346 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
20347 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
20348 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
20349 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
20350 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20351 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
20352 (*avx512pf_scatterpf<mode>df_mask): Ditto.
20353 (avx512cd_maskb_vec_dupv8di): Ditto.
20354 (avx512cd_maskw_vec_dupv16si): Ditto.
20355 (avx512f_vpermi2var<mode>3_maskz): Ditto.
20356 (avx512f_vpermi2var<mode>3_mask): Ditto.
20357 (avx512f_vpermi2var<mode>3_mask): Ditto.
20358 (avx512f_vpermt2var<mode>3_maskz): Ditto.
20359 (*avx512f_gathersi<mode>): Ditto.
20360 (*avx512f_gathersi<mode>_2): Ditto.
20361 (*avx512f_gatherdi<mode>): Ditto.
20362 (*avx512f_gatherdi<mode>_2): Ditto.
20363 (*avx512f_scattersi<mode>): Ditto.
20364 (*avx512f_scatterdi<mode>): Ditto.
20365 (avx512f_compress<mode>_mask): Ditto.
20366 (avx512f_compressstore<mode>_mask): Ditto.
20367 (avx512f_expand<mode>_mask): Ditto.
20368 * config/i386/subst.md (mask): Change k to Yk.
20369 (mask_scalar_merge): Ditto.
20370 (sd): Ditto.
20371
20372 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
20373
20374 * doc/extend.texi (Vector Extensions): Document ?: in C++.
20375
20376 2014-01-31 Richard Biener <rguenther@suse.de>
20377
20378 PR middle-end/59990
20379 * builtins.c (fold_builtin_memory_op): Make sure to not
20380 use a floating-point mode or a boolean or enumeral type for
20381 the copy operation.
20382
20383 2014-01-30 DJ Delorie <dj@redhat.com>
20384
20385 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
20386 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
20387 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
20388 whenever main() has an epilogue.
20389
20390 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20391
20392 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
20393 unused variable "field".
20394 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
20395 (vsx_mergeh_<mode>): Likewise.
20396 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
20397 (altivec_vmrghh): Likewise.
20398 (altivec_vmrghw): Likewise.
20399 (altivec_vmrglb): Likewise.
20400 (altivec_vmrglh): Likewise.
20401 (altivec_vmrglw): Likewise.
20402 (altivec_vspltb): Add missing uses.
20403 (altivec_vsplth): Likewise.
20404 (altivec_vspltw): Likewise.
20405 (altivec_vspltsf): Likewise.
20406
20407 2014-01-30 Jakub Jelinek <jakub@redhat.com>
20408
20409 PR target/59923
20410 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
20411 frame related instructions.
20412
20413 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
20414
20415 PR rtl-optimization/59959
20416 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
20417 any reload of register whose subreg is invalid.
20418
20419 2014-01-30 Jakub Jelinek <jakub@redhat.com>
20420
20421 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
20422 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
20423 Add missing return type - void.
20424
20425 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20426
20427 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
20428 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
20429 remove element index adjustment for endian (now handled in vsx.md
20430 and altivec.md).
20431 (altivec_expand_vec_perm_const): Use
20432 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
20433 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
20434 (vsx_xxspltw_<mode>): Adjust element index for little endian.
20435 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
20436 define_expand and a new define_insn *altivec_vspltb_internal;
20437 adjust for -maltivec=be on a little endian target.
20438 (altivec_vspltb_direct): New.
20439 (altivec_vsplth): Divide into a define_expand and a new
20440 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
20441 little endian target.
20442 (altivec_vsplth_direct): New.
20443 (altivec_vspltw): Divide into a define_expand and a new
20444 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
20445 little endian target.
20446 (altivec_vspltw_direct): New.
20447 (altivec_vspltsf): Divide into a define_expand and a new
20448 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
20449 a little endian target.
20450
20451 2014-01-30 Richard Biener <rguenther@suse.de>
20452
20453 PR tree-optimization/59993
20454 * tree-ssa-forwprop.c (associate_pointerplus): Check we
20455 can propagate form the earlier stmt and avoid the transform
20456 when the intermediate result is needed.
20457
20458 2014-01-30 Alangi Derick <alangiderick@gmail.com>
20459
20460 * README.Portability: Fix typo.
20461
20462 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
20463
20464 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
20465 comparison_operator with ordered_comparison_operator.
20466
20467 2014-01-30 Nick Clifton <nickc@redhat.com>
20468
20469 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
20470 Rename to mn10300_store_multiple_regs.
20471 * config/mn10300/mn10300.c: Likewise.
20472 * config/mn10300/mn10300.md (store_movm): Fix typo: call
20473 store_multiple_regs.
20474 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
20475 Call mn10300_store_multiple_regs.
20476
20477 2014-01-30 Nick Clifton <nickc@redhat.com>
20478 DJ Delorie <dj@redhat.com>
20479
20480 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
20481 %fp 2 to keep registers after it properly word-aligned.
20482 (rl78_alloc_physical_registers_umul): Handle the case where both
20483 input operands are the same.
20484
20485 2014-01-30 Richard Biener <rguenther@suse.de>
20486
20487 PR tree-optimization/59903
20488 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
20489 check properly.
20490
20491 2014-01-30 Jason Merrill <jason@redhat.com>
20492
20493 PR c++/59633
20494 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
20495
20496 PR c++/59645
20497 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
20498
20499 2014-01-30 Richard Biener <rguenther@suse.de>
20500
20501 PR tree-optimization/59951
20502 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
20503
20504 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
20505
20506 PR target/59784
20507 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
20508 SFmode to DFmode case.
20509
20510 2014-01-29 DJ Delorie <dj@redhat.com>
20511
20512 * config/msp430/msp430.opt (-minrt): New.
20513 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
20514 if -minrt given.
20515 (ENDFILE_SPEC): Likewise.
20516
20517 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
20518
20519 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
20520 (estimate_function_body_sizes): Use it.
20521
20522 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
20523
20524 PR c++/58561
20525 * dwarf2out.c (is_cxx_auto): New.
20526 (is_base_type): Use it.
20527 (gen_type_die_with_usage): Likewise.
20528
20529 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20530
20531 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
20532 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
20533 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
20534 -maltivec=be with LE targets.
20535 (vsx_mergeh_<mode>): Likewise.
20536 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
20537 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
20538 (altivec_vmrghb): Replace with define_expand and new
20539 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
20540 (altivec_vmrghb_direct): New define_insn.
20541 (altivec_vmrghh): Replace with define_expand and new
20542 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
20543 (altivec_vmrghh_direct): New define_insn.
20544 (altivec_vmrghw): Replace with define_expand and new
20545 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
20546 (altivec_vmrghw_direct): New define_insn.
20547 (*altivec_vmrghsf): Adjust for endianness.
20548 (altivec_vmrglb): Replace with define_expand and new
20549 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
20550 (altivec_vmrglb_direct): New define_insn.
20551 (altivec_vmrglh): Replace with define_expand and new
20552 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
20553 (altivec_vmrglh_direct): New define_insn.
20554 (altivec_vmrglw): Replace with define_expand and new
20555 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
20556 (altivec_vmrglw_direct): New define_insn.
20557 (*altivec_vmrglsf): Adjust for endianness.
20558 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
20559 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
20560 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
20561 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
20562 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
20563 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
20564 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
20565 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
20566
20567 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
20568
20569 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
20570 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
20571 whitespace.
20572
20573 2014-01-29 Richard Biener <rguenther@suse.de>
20574
20575 PR tree-optimization/58742
20576 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
20577 associate_pointerplus_align.
20578 (associate_pointerplus_diff): New function.
20579 (associate_pointerplus): Likewise. Call associate_pointerplus_align
20580 and associate_pointerplus_diff.
20581
20582 2014-01-29 Richard Biener <rguenther@suse.de>
20583
20584 * lto-streamer.h (LTO_major_version): Bump to 3.
20585 (LTO_minor_version): Reset to 0.
20586
20587 2014-01-29 Renlin Li <Renlin.Li@arm.com>
20588
20589 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
20590 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
20591 (arm_file_start): Generate correct asm header for armv7ve.
20592 * config/arm/bpabi.h: Add multilib support for armv7ve.
20593 * config/arm/driver-arm.c: Change the architectures of cortex-a7
20594 and cortex-a15 to armv7ve.
20595 * config/arm/t-aprofile: Add multilib support for armv7ve.
20596 * doc/invoke.texi: Document -march=armv7ve.
20597
20598 2014-01-29 Richard Biener <rguenther@suse.de>
20599
20600 PR tree-optimization/58742
20601 * tree-ssa-forwprop.c (associate_plusminus): Return true
20602 if we changed sth, defer EH cleanup to ...
20603 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
20604 (simplify_mult): New function.
20605
20606 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20607
20608 PR middle-end/59917
20609 PR tree-optimization/59920
20610 * tree.c (build_common_builtin_nodes): Remove
20611 __builtin_setjmp_dispatcher initialization.
20612 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
20613 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
20614 instead of gsi_after_labels + manually skipping debug stmts.
20615 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
20616 ignore bbs with IFN_ABNORMAL_DISPATCHER.
20617 * tree-inline.c (copy_edges_for_bb): Remove
20618 can_make_abnormal_goto argument, instead add abnormal_goto_dest
20619 argument. Ignore computed_goto_p stmts. Don't call
20620 make_abnormal_goto_edges. If a call might need abnormal edges
20621 for non-local gotos, see if it already has an edge to
20622 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
20623 with true argument, don't do anything then, otherwise add
20624 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
20625 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
20626 caller.
20627 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
20628 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
20629 (lower_stmt): Don't set data->calls_builtin_setjmp.
20630 (lower_builtin_setjmp): Adjust comment.
20631 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
20632 * tree-cfg.c (found_computed_goto): Remove.
20633 (factor_computed_gotos): Remove.
20634 (make_goto_expr_edges): Return bool, true for computed gotos.
20635 Don't call make_abnormal_goto_edges.
20636 (build_gimple_cfg): Don't set found_computed_goto, don't call
20637 factor_computed_gotos.
20638 (computed_goto_p): No longer static.
20639 (make_blocks): Don't set found_computed_goto.
20640 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
20641 (make_edges): If make_goto_expr_edges returns true, push bb
20642 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
20643 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
20644 vector. Record mapping between bbs and OpenMP regions if there
20645 are any, adjust make_gimple_omp_edges caller. Call
20646 handle_abnormal_edges.
20647 (make_abnormal_goto_edges): Remove.
20648 * tree-cfg.h (make_abnormal_goto_edges): Remove.
20649 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
20650 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
20651 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
20652 * internal-fn.def (ABNORMAL_DISPATCHER): New.
20653 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
20654 filling *region also set *region_idx to (*region)->entry->index.
20655
20656 PR other/58712
20657 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
20658 For REGs set ORIGINAL_REGNO.
20659
20660 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
20661
20662 * doc/md.texi: Mention that a target shouldn't implement
20663 vec_widen_(s|u)mul_even/odd pair if it is less efficient
20664 than hi/lo pair.
20665
20666 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20667
20668 PR tree-optimization/59594
20669 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
20670 a copy of the datarefs vector rather than the vector itself.
20671
20672 2014-01-28 Jason Merrill <jason@redhat.com>
20673
20674 PR c++/53756
20675 * dwarf2out.c (auto_die): New static.
20676 (gen_type_die_with_usage): Handle C++1y 'auto'.
20677 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
20678 on definition.
20679
20680 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
20681
20682 PR target/59672
20683 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
20684 (SPEC_X32): Likewise.
20685 (SPEC_64): Likewise.
20686 * config/i386/i386.c (ix86_option_override_internal): Turn off
20687 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
20688 for TARGET_16BIT.
20689 (x86_file_start): Output .code16gcc for TARGET_16BIT.
20690 * config/i386/i386.h (TARGET_16BIT): New macro.
20691 (TARGET_16BIT_P): Likewise.
20692 * config/i386/i386.opt: Add m16.
20693 * doc/invoke.texi: Document -m16.
20694
20695 2014-01-28 Jakub Jelinek <jakub@redhat.com>
20696
20697 PR preprocessor/59935
20698 * input.c (location_get_source_line): Bail out on when line number
20699 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
20700
20701 2014-01-28 Richard Biener <rguenther@suse.de>
20702
20703 PR tree-optimization/58742
20704 * tree-ssa-forwprop.c (associate_plusminus): Handle
20705 pointer subtraction of the form (T)(P + A) - (T)P.
20706
20707 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20708
20709 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
20710 at const_int_cost.
20711
20712 2014-01-28 Richard Biener <rguenther@suse.de>
20713
20714 Revert
20715 2014-01-28 Richard Biener <rguenther@suse.de>
20716
20717 PR rtl-optimization/45364
20718 PR rtl-optimization/59890
20719 * var-tracking.c (local_get_addr_clear_given_value): Handle
20720 already cleared slot.
20721 (val_reset): Handle not allocated local_get_addr_cache.
20722 (vt_find_locations): Use post-order on the inverted CFG.
20723
20724 2014-01-28 Richard Biener <rguenther@suse.de>
20725
20726 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
20727
20728 2014-01-28 Richard Biener <rguenther@suse.de>
20729
20730 PR rtl-optimization/45364
20731 PR rtl-optimization/59890
20732 * var-tracking.c (local_get_addr_clear_given_value): Handle
20733 already cleared slot.
20734 (val_reset): Handle not allocated local_get_addr_cache.
20735 (vt_find_locations): Use post-order on the inverted CFG.
20736
20737 2014-01-28 Alan Modra <amodra@gmail.com>
20738
20739 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
20740 * configure.ac <recursive call for build != host>: Define
20741 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
20742 and LD_FOR_BUILD too.
20743 * configure: Regenerate.
20744
20745 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
20746
20747 * config/i386/i386.c (get_builtin_code_for_version): Separate
20748 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
20749 Broadwell from Haswell.
20750
20751 2014-01-27 Steve Ellcey <sellcey@mips.com>
20752
20753 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
20754 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
20755 * config/mips/mips.c (mips_option_override): Change setting
20756 of TARGET_DSP.
20757 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
20758 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
20759 Change from Mask to Var.
20760
20761 2014-01-27 Jeff Law <law@redhat.com>
20762
20763 * ipa-inline.c (inline_small_functions): Fix typo.
20764
20765 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
20766
20767 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
20768 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
20769 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
20770 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
20771 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
20772 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
20773 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
20774 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
20775 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
20776 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
20777 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
20778 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
20779 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
20780 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
20781 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
20782 (_mm512_storeu_epi64): Ditto.
20783 (_mm512_cmpge_epi32_mask): Ditto.
20784 (_mm512_cmpge_epu32_mask): Ditto.
20785 (_mm512_cmpge_epi64_mask): Ditto.
20786 (_mm512_cmpge_epu64_mask): Ditto.
20787 (_mm512_cmple_epi32_mask): Ditto.
20788 (_mm512_cmple_epu32_mask): Ditto.
20789 (_mm512_cmple_epi64_mask): Ditto.
20790 (_mm512_cmple_epu64_mask): Ditto.
20791 (_mm512_cmplt_epi32_mask): Ditto.
20792 (_mm512_cmplt_epu32_mask): Ditto.
20793 (_mm512_cmplt_epi64_mask): Ditto.
20794 (_mm512_cmplt_epu64_mask): Ditto.
20795 (_mm512_cmpneq_epi32_mask): Ditto.
20796 (_mm512_cmpneq_epu32_mask): Ditto.
20797 (_mm512_cmpneq_epi64_mask): Ditto.
20798 (_mm512_cmpneq_epu64_mask): Ditto.
20799 (_mm512_expand_pd): Ditto.
20800 (_mm512_expand_ps): Ditto.
20801 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
20802 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
20803 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
20804 * config/i386/i386.c (ix86_builtins): Add
20805 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
20806 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
20807 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
20808 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
20809 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
20810 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
20811 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
20812 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
20813 IX86_BUILTIN_PMOVUSQW512_MEM.
20814 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
20815 __builtin_ia32_pmovsqd512mem_mask,
20816 __builtin_ia32_pmovqd512mem_mask,
20817 __builtin_ia32_pmovusqw512mem_mask,
20818 __builtin_ia32_pmovsqw512mem_mask,
20819 __builtin_ia32_pmovqw512mem_mask,
20820 __builtin_ia32_pmovusdw512mem_mask,
20821 __builtin_ia32_pmovsdw512mem_mask,
20822 __builtin_ia32_pmovdw512mem_mask,
20823 __builtin_ia32_pmovqb512mem_mask,
20824 __builtin_ia32_pmovusqb512mem_mask,
20825 __builtin_ia32_pmovsqb512mem_mask,
20826 __builtin_ia32_pmovusdb512mem_mask,
20827 __builtin_ia32_pmovsdb512mem_mask,
20828 __builtin_ia32_pmovdb512mem_mask.
20829 (bdesc_args): Add __builtin_ia32_expanddf512,
20830 __builtin_ia32_expandsf512.
20831 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
20832 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
20833 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
20834 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
20835 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
20836 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
20837 (avx512f_<code>v8div16qi2_mask_store): This.
20838 (avx512f_expand<mode>): New.
20839
20840 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
20841
20842 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
20843 New.
20844 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20845 (_mm512_prefetch_i32scatter_pd): Ditto.
20846 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20847 (_mm512_prefetch_i64scatter_pd): Ditto.
20848 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20849 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
20850 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20851 (_mm512_prefetch_i32scatter_ps): Ditto.
20852 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20853 (_mm512_prefetch_i64scatter_ps): Ditto.
20854 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20855 * config/i386/i386-builtin-types.def: Define
20856 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
20857 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
20858 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
20859 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
20860 IX86_BUILTIN_SCATTERPFQPD.
20861 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
20862 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
20863 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
20864 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
20865 __builtin_ia32_scatterpfqps.
20866 (ix86_expand_builtin): Expand new built-ins.
20867 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
20868 fix memory access data type.
20869 (*avx512pf_gatherpf<mode>_mask): Ditto.
20870 (*avx512pf_gatherpf<mode>): Ditto.
20871 (avx512pf_scatterpf<mode>): Ditto.
20872 (*avx512pf_scatterpf<mode>_mask): Ditto.
20873 (*avx512pf_scatterpf<mode>): Ditto.
20874 (GATHER_SCATTER_SF_MEM_MODE): New.
20875 (avx512pf_gatherpf<mode>df): Ditto.
20876 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20877 (*avx512pf_scatterpf<mode>df): Ditto.
20878
20879 2014-01-27 Jakub Jelinek <jakub@redhat.com>
20880
20881 PR bootstrap/59934
20882 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
20883 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
20884 reached.
20885
20886 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20887
20888 * common/config/arm/arm-common.c
20889 (arm_rewrite_mcpu): Handle multiple names.
20890 * config/arm/arm.h
20891 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20892
20893 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20894
20895 * gimple-builder.h (create_gimple_tmp): Delete.
20896
20897 2014-01-27 Christian Bruel <christian.bruel@st.com>
20898
20899 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
20900 words comparisons.
20901
20902 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
20903
20904 * config/pa/pa.md (call): Generate indirect long calls to non-local
20905 functions when outputing 32-bit code.
20906 (call_value): Likewise except for special call to buggy powf function.
20907
20908 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
20909 portable runtime and PIC indirect calls.
20910 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
20911 and PIC call sequences. Use ldo instead of blr to set return register
20912 in PIC call sequence.
20913
20914 2014-01-25 Walter Lee <walt@tilera.com>
20915
20916 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
20917 avoid clobbering a live register.
20918
20919 2014-01-25 Walter Lee <walt@tilera.com>
20920
20921 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
20922 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
20923 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
20924 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
20925
20926 2014-01-25 Walter Lee <walt@tilera.com>
20927
20928 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
20929 arguments on even registers.
20930 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
20931 STACK_BOUNDARY.
20932 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
20933 (BIGGEST_ALIGNMENT): Ditto.
20934 (BIGGEST_FIELD_ALIGNMENT): Ditto.
20935
20936 2014-01-25 Walter Lee <walt@tilera.com>
20937
20938 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
20939 insns before bundling.
20940 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
20941
20942 2014-01-25 Walter Lee <walt@tilera.com>
20943
20944 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
20945 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
20946 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
20947
20948 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20949
20950 * config/mips/constraints.md (kl): Delete.
20951 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
20952 define expands, using...
20953 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
20954 instructions for MIPS16.
20955 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
20956 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
20957
20958 2014-01-25 Walter Lee <walt@tilera.com>
20959
20960 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
20961 (clzdi2): Ditto.
20962 (ffsdi2): Ditto.
20963
20964 2014-01-25 Walter Lee <walt@tilera.com>
20965
20966 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
20967 (TARGET_EXPAND_TO_RTL_HOOK): Define.
20968
20969 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20970
20971 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
20972 Handle XOR.
20973
20974 2014-01-25 Jakub Jelinek <jakub@redhat.com>
20975
20976 * print-rtl.c (in_call_function_usage): New var.
20977 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
20978 EXPR_LIST mode as mode and not as reg note name.
20979
20980 PR middle-end/59561
20981 * cfgloopmanip.c (copy_loop_info): If
20982 loop->warned_aggressive_loop_optimizations, make sure
20983 the flag is set in target loop too.
20984
20985 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
20986
20987 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
20988 flag_cilkplus.
20989 * builtins.def: Likewise.
20990 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
20991 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
20992 * ira.c (ira_setup_eliminable_regset): Likewise.
20993 * omp-low.c (gate_expand_omp): Likewise.
20994 (execute_lower_omp): Likewise.
20995 (diagnose_sb_0): Likewise.
20996 (gate_diagnose_omp_blocks): Likewise.
20997 (simd_clone_clauses_extract): Likewise.
20998 (gate): Likewise.
20999
21000 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21001
21002 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
21003 correction for little endian...
21004 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
21005 here.
21006
21007 2014-01-24 Jeff Law <law@redhat.com>
21008
21009 PR tree-optimization/59919
21010 * tree-vrp.c (find_assert_locations_1): Do not register asserts
21011 for non-returning calls.
21012
21013 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
21014
21015 * common/config/aarch64/aarch64-common.c
21016 (aarch64_rewrite_mcpu): Handle multiple names.
21017 * config/aarch64/aarch64.h
21018 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
21019
21020 2014-01-24 Dodji Seketeli <dodji@redhat.com>
21021
21022 * input.c (add_file_to_cache_tab): Handle the case where fopen
21023 returns NULL.
21024
21025 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
21026
21027 PR target/59929
21028 * config/i386/i386.md (pushsf splitter): Get stack adjustment
21029 from push operand if code of push isn't PRE_DEC.
21030
21031 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21032
21033 PR target/59909
21034 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
21035 -mquad-memory-atomic. Update -mquad-memory documentation to say
21036 it is only used for non-atomic loads/stores.
21037
21038 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
21039 -mquad-memory or -mquad-memory-atomic switches.
21040
21041 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
21042 -mquad-memory-atomic to ISA 2.07 support.
21043
21044 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
21045 to separate support of normal quad word memory operations (ldq, stq)
21046 from the atomic quad word memory operations.
21047
21048 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
21049 support to separate non-atomic quad word operations from atomic
21050 quad word operations. Disable non-atomic quad word operations in
21051 little endian mode so that we don't have to swap words after the
21052 load and before the store.
21053 (quad_load_store_p): Add comment about atomic quad word support.
21054 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
21055 options printed with -mdebug=reg.
21056
21057 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
21058 -mquad-memory-atomic as the test for whether we have quad word
21059 atomic instructions.
21060 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
21061 or -mp8-vector are used, allow byte/half-word atomic operations.
21062
21063 * config/rs6000/sync.md (load_lockedti): Insure that the address
21064 is a proper indexed or indirect address for the lqarx instruction.
21065 On little endian systems, swap the hi/lo registers after the lqarx
21066 instruction.
21067 (load_lockedpti): Use indexed_or_indirect_operand predicate to
21068 insure the address is valid for the lqarx instruction.
21069 (store_conditionalti): Insure that the address is a proper indexed
21070 or indirect address for the stqcrx. instruction. On little endian
21071 systems, swap the hi/lo registers before doing the stqcrx.
21072 instruction.
21073 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
21074 insure the address is valid for the stqcrx. instruction.
21075
21076 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
21077 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
21078 type of quad memory support is available.
21079
21080 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
21081
21082 PR regression/59915
21083 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
21084 there is a danger of looping.
21085
21086 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
21087
21088 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
21089 force flag_ira_loop_pressure if set via command line.
21090
21091 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
21092
21093 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
21094 (ashr_simd): New builtin handling DI mode.
21095 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
21096 (aarch64_sshr_simddi): New match pattern.
21097 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
21098 (vshrd_n_s64): Likewise.
21099 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
21100
21101 2014-01-23 Nick Clifton <nickc@redhat.com>
21102
21103 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
21104 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
21105 favour of mcu specific scripts.
21106 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
21107 430x multilibs.
21108
21109 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
21110 Alex Velenko <Alex.Velenko@arm.com>
21111
21112 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
21113 (vaddv_s16): Likewise.
21114 (vaddv_s32): Likewise.
21115 (vaddv_u8): Likewise.
21116 (vaddv_u16): Likewise.
21117 (vaddv_u32): Likewise.
21118 (vaddvq_s8): Likewise.
21119 (vaddvq_s16): Likewise.
21120 (vaddvq_s32): Likewise.
21121 (vaddvq_s64): Likewise.
21122 (vaddvq_u8): Likewise.
21123 (vaddvq_u16): Likewise.
21124 (vaddvq_u32): Likewise.
21125 (vaddvq_u64): Likewise.
21126 (vaddv_f32): Likewise.
21127 (vaddvq_f32): Likewise.
21128 (vaddvq_f64): Likewise.
21129 (vmaxv_f32): Likewise.
21130 (vmaxv_s8): Likewise.
21131 (vmaxv_s16): Likewise.
21132 (vmaxv_s32): Likewise.
21133 (vmaxv_u8): Likewise.
21134 (vmaxv_u16): Likewise.
21135 (vmaxv_u32): Likewise.
21136 (vmaxvq_f32): Likewise.
21137 (vmaxvq_f64): Likewise.
21138 (vmaxvq_s8): Likewise.
21139 (vmaxvq_s16): Likewise.
21140 (vmaxvq_s32): Likewise.
21141 (vmaxvq_u8): Likewise.
21142 (vmaxvq_u16): Likewise.
21143 (vmaxvq_u32): Likewise.
21144 (vmaxnmv_f32): Likewise.
21145 (vmaxnmvq_f32): Likewise.
21146 (vmaxnmvq_f64): Likewise.
21147 (vminv_f32): Likewise.
21148 (vminv_s8): Likewise.
21149 (vminv_s16): Likewise.
21150 (vminv_s32): Likewise.
21151 (vminv_u8): Likewise.
21152 (vminv_u16): Likewise.
21153 (vminv_u32): Likewise.
21154 (vminvq_f32): Likewise.
21155 (vminvq_f64): Likewise.
21156 (vminvq_s8): Likewise.
21157 (vminvq_s16): Likewise.
21158 (vminvq_s32): Likewise.
21159 (vminvq_u8): Likewise.
21160 (vminvq_u16): Likewise.
21161 (vminvq_u32): Likewise.
21162 (vminnmv_f32): Likewise.
21163 (vminnmvq_f32): Likewise.
21164 (vminnmvq_f64): Likewise.
21165
21166 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
21167
21168 * config/aarch64/aarch64-simd.md
21169 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
21170 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
21171 (*aarch64_mul3_elt<mode>): Likewise.
21172 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
21173 (*aarch64_mul3_elt_to_64v2df): Likewise.
21174 (*aarch64_mla_elt<mode>): Likewise.
21175 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
21176 (*aarch64_mls_elt<mode>): Likewise.
21177 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
21178 (*aarch64_fma4_elt<mode>): Likewise.
21179 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
21180 (*aarch64_fma4_elt_to_64v2df): Likewise.
21181 (*aarch64_fnma4_elt<mode>): Likewise.
21182 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
21183 (*aarch64_fnma4_elt_to_64v2df): Likewise.
21184 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
21185 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
21186 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
21187 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
21188 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
21189 (aarch64_sqdmull_lane<mode>_internal): Likewise.
21190 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
21191
21192 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
21193
21194 * config/aarch64/aarch64-simd.md
21195 (aarch64_be_checked_get_lane<mode>): New define_expand.
21196 * config/aarch64/aarch64-simd-builtins.def
21197 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
21198 New builtin definition.
21199 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
21200 Use new safe be builtin.
21201
21202 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
21203
21204 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
21205 New define_insn.
21206 (aarch64_be_st1<mode>): Likewise.
21207 (aarch_ld1<VALL:mode>): Define_expand modified.
21208 (aarch_st1<VALL:mode>): Likewise.
21209 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
21210 (UNSPEC_ST1): Likewise.
21211
21212 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
21213
21214 * config/microblaze/microblaze.md: Add trap insn and attribute
21215
21216 2014-01-23 Dodji Seketeli <dodji@redhat.com>
21217
21218 PR preprocessor/58580
21219 * input.h (location_get_source_line): Take an additional line_size
21220 parameter.
21221 (void diagnostics_file_cache_fini): Declare new function.
21222 * input.c (struct fcache): New type.
21223 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
21224 New static constants.
21225 (diagnostic_file_cache_init, total_lines_num)
21226 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
21227 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
21228 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
21229 (get_next_line, read_next_line, goto_next_line, read_line_num):
21230 New static function definitions.
21231 (diagnostic_file_cache_fini): New function.
21232 (location_get_source_line): Take an additional output line_len
21233 parameter. Re-write using lookup_or_add_file_to_cache_tab and
21234 read_line_num.
21235 * diagnostic.c (diagnostic_finish): Call
21236 diagnostic_file_cache_fini.
21237 (adjust_line): Take an additional input parameter for the length
21238 of the line, rather than calculating it with strlen.
21239 (diagnostic_show_locus): Adjust the use of
21240 location_get_source_line and adjust_line with respect to their new
21241 signature. While displaying a line now, do not stop at the first
21242 null byte. Rather, display the zero byte as a space and keep
21243 going until we reach the size of the line.
21244 * Makefile.in: Add vec.o to OBJS-libcommon
21245
21246 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
21247 Ilya Tocar <ilya.tocar@intel.com>
21248
21249 * config/i386/avx512fintrin.h (_mm512_kmov): New.
21250 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
21251 (__builtin_ia32_kmov16): Ditto.
21252 * config/i386/i386.md (UNSPEC_KMOV): New.
21253 (kmovw): Ditto.
21254
21255 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
21256
21257 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
21258 (_mm512_storeu_si512): Ditto.
21259
21260 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
21261
21262 PR target/52125
21263 * rtl.h (get_referenced_operands): Declare.
21264 * recog.c (get_referenced_operands): New function.
21265 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
21266 operands have been referenced when recording LO_SUM references.
21267
21268 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
21269
21270 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
21271
21272 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
21273
21274 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
21275 Enable for generic and recent AMD targets.
21276
21277 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
21278
21279 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
21280 ARG_SIZE note when adjustment was eliminated.
21281
21282 2014-01-22 Jeff Law <law@redhat.com>
21283
21284 PR tree-optimization/59597
21285 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
21286 in file. Accept new argument REGISTERING and use it to modify
21287 dump output appropriately.
21288 (register_jump_thread): Corresponding changes.
21289 (mark_threaded_blocks): Reinstate code to cancel unprofitable
21290 thread paths involving joiner blocks. Add code to dump cancelled
21291 jump threading paths.
21292
21293 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
21294
21295 PR rtl-optimization/59477
21296 * lra-constraints.c (inherit_in_ebb): Process call for living hard
21297 regs. Update reloads_num and potential_reload_hard_regs for all insns.
21298
21299 2014-01-22 Tom Tromey <tromey@redhat.com>
21300
21301 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
21302 PARAMS.
21303 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
21304
21305 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
21306
21307 PR rtl-optimization/59896
21308 * lra-constraints.c (process_alt_operands): Check unused note for
21309 matched operands of insn with no output reloads.
21310
21311 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
21312
21313 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
21314 (mips_move_from_gpr_cost): Likewise.
21315
21316 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
21317
21318 PR rtl-optimization/59858
21319 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
21320 ira_class_hard_regs_num.
21321 (process_alt_operands): Increase reject for dying matched operand.
21322
21323 2014-01-21 Jakub Jelinek <jakub@redhat.com>
21324
21325 PR target/59003
21326 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
21327 smaller than size, perform several stores or loads and stores
21328 at dst + count - size to store or copy all of size bytes, rather
21329 than just last modesize bytes.
21330
21331 2014-01-20 DJ Delorie <dj@redhat.com>
21332
21333 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
21334 that CLOBBERs are REGs before propogating their values.
21335
21336 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
21337
21338 PR middle-end/59789
21339 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
21340 (cgraph_inline_failed_type): New function.
21341 * cgraph.h (DEFCIFCODE): Add type.
21342 (cgraph_inline_failed_type_t): New enum.
21343 (cgraph_inline_failed_type): New prototype.
21344 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
21345 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
21346 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
21347 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
21348 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
21349 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
21350 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
21351 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
21352 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
21353 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
21354 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
21355 OPTIMIZATION_MISMATCH.
21356 * tree-inline.c (expand_call_inline): Emit errors during
21357 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
21358
21359 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
21360
21361 PR target/59685
21362 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
21363 mode attribute in insn output.
21364
21365 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
21366
21367 * output.h (output_constant): Delete.
21368 * varasm.c (output_constant): Make private.
21369
21370 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
21371
21372 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
21373
21374 2014-01-20 Jakub Jelinek <jakub@redhat.com>
21375
21376 PR middle-end/59860
21377 * tree.h (fold_builtin_strcat): New prototype.
21378 * builtins.c (fold_builtin_strcat): No longer static. Add len
21379 argument, if non-NULL, don't call c_strlen. Optimize
21380 directly into __builtin_memcpy instead of __builtin_strcpy.
21381 (fold_builtin_2): Adjust fold_builtin_strcat caller.
21382 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
21383
21384 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
21385
21386 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
21387 for SImode_address_operand operands, having only a REG argument.
21388
21389 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
21390
21391 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
21392 loader name using mbig-endian.
21393 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
21394
21395 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
21396
21397 * doc/invoke.texi (-march): Clarify documentation for AArch64.
21398 (-mtune): Likewise.
21399 (-mcpu): Likewise.
21400
21401 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
21402
21403 * config/aarch64/aarch64-protos.h
21404 (aarch64_cannot_change_mode_class_ptr): Declare.
21405 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
21406 aarch64_cannot_change_mode_class_ptr): New.
21407 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
21408 backend hook aarch64_cannot_change_mode_class.
21409
21410 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
21411
21412 * common/config/aarch64/aarch64-common.c
21413 (aarch64_handle_option): Don't handle any option order logic here.
21414 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
21415 selected_cpu, warn on architecture version mismatch.
21416 (aarch64_override_options): Fix parsing order for option strings.
21417
21418 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21419 Iain Sandoe <iain@codesourcery.com>
21420
21421 PR bootstrap/59496
21422 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
21423 warning. Amend comment to reflect current functionality.
21424
21425 2014-01-20 Richard Biener <rguenther@suse.de>
21426
21427 PR middle-end/59860
21428 * builtins.c (fold_builtin_strcat): Remove case better handled
21429 by tree-ssa-strlen.c.
21430
21431 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
21432
21433 * config/aarch64/aarch64.opt
21434 (mcpu, march, mtune): Make case-insensitive.
21435
21436 2014-01-20 Jakub Jelinek <jakub@redhat.com>
21437
21438 PR target/59880
21439 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
21440 if operands[1] is a REG or ZERO_EXTEND of a REG.
21441
21442 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
21443
21444 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
21445
21446 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
21447
21448 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
21449 long non-pic millicode calls.
21450
21451 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21452
21453 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
21454
21455 2014-01-19 Kito Cheng <kito@0xlab.org>
21456
21457 * builtins.c (expand_movstr): Check movstr expand done or fail.
21458
21459 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21460 H.J. Lu <hongjiu.lu@intel.com>
21461
21462 PR target/59379
21463 * config/i386/i386.md (*lea<mode>): Zero-extend return register
21464 to DImode for zero-extended addresses.
21465
21466 2014-01-19 Jakub Jelinek <jakub@redhat.com>
21467
21468 PR rtl-optimization/57763
21469 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
21470 on the new indirect jump_insn and increment LABEL_NUSES (label).
21471
21472 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
21473
21474 PR bootstrap/59580
21475 PR bootstrap/59583
21476 * config.gcc (x86_archs): New variable.
21477 (x86_64_archs): Likewise.
21478 (x86_cpus): Likewise.
21479 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
21480 --with-arch/--with-cpu= options.
21481 Support --with-arch=/--with-cpu={nehalem,westmere,
21482 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
21483
21484 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21485
21486 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
21487 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
21488
21489 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21490
21491 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
21492
21493 2014-01-18 Jakub Jelinek <jakub@redhat.com>
21494
21495 PR target/58944
21496 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
21497 clear cpp_get_options (parse_in)->warn_unused_macros for
21498 ix86_target_macros_internal with cpp_define.
21499
21500 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
21501
21502 * jump.c (delete_related_insns): Keep (use (insn))s.
21503 * reorg.c (redundant_insn): Check for barriers too.
21504
21505 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21506
21507 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
21508
21509 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
21510
21511 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
21512 call to $$dyncall when TARGET_LONG_CALLS is true.
21513
21514 2014-01-17 Jeff Law <law@redhat.com>
21515
21516 * ree.c (combine_set_extension): Temporarily disable test for
21517 changing number of hard registers.
21518
21519 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21520
21521 PR middle-end/58125
21522 * ipa-inline-analysis.c (inline_free_summary):
21523 Do not free summary of aliases.
21524
21525 2014-01-17 Jakub Jelinek <jakub@redhat.com>
21526
21527 PR middle-end/59706
21528 * gimplify.c (gimplify_expr): Use create_tmp_var
21529 instead of create_tmp_var_raw. If cond doesn't have
21530 integral type, don't add the IFN_ANNOTATE builtin at all.
21531
21532 2014-01-17 Martin Jambor <mjambor@suse.cz>
21533
21534 PR ipa/59736
21535 * ipa-cp.c (prev_edge_clone): New variable.
21536 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
21537 Also resize prev_edge_clone vector.
21538 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
21539 (ipcp_edge_removal_hook): New function.
21540 (ipcp_driver): Register ipcp_edge_removal_hook.
21541
21542 2014-01-17 Andrew Pinski <apinski@cavium.com>
21543 Steve Ellcey <sellcey@mips.com>
21544
21545 PR target/59462
21546 * config/mips/mips.c (mips_print_operand): Check operand mode instead
21547 of operator mode.
21548
21549 2014-01-17 Jeff Law <law@redhat.com>
21550
21551 PR middle-end/57904
21552 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
21553 so that pass_ccp runs first.
21554
21555 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21556
21557 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
21558 (ix86_adjust_cost): Use !TARGET_XXX.
21559 (do_reorder_for_imul): Likewise.
21560 (swap_top_of_ready_list): Likewise.
21561 (ix86_sched_reorder): Likewise.
21562
21563 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21564
21565 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21566 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
21567 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
21568 (intel_memset): New. Duplicate slm_memset.
21569 (intel_cost): New. Duplicate slm_cost.
21570 (m_INTEL): New macro.
21571 (processor_target_table): Add "intel".
21572 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
21573 with PROCESSOR_INTEL for "intel".
21574 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
21575 PROCESSOR_SILVERMONT.
21576 (ix86_issue_rate): Likewise.
21577 (ix86_adjust_cost): Likewise.
21578 (ia32_multipass_dfa_lookahead): Likewise.
21579 (swap_top_of_ready_list): Likewise.
21580 (ix86_sched_reorder): Likewise.
21581 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
21582 instead of TARGET_OPT_AGU.
21583 * config/i386/i386.h (TARGET_INTEL): New.
21584 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
21585 (processor_type): Add PROCESSOR_INTEL.
21586 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
21587 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
21588
21589 2014-01-17 Marek Polacek <polacek@redhat.com>
21590
21591 PR c/58346
21592 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
21593 size is zero.
21594
21595 2014-01-17 Richard Biener <rguenther@suse.de>
21596
21597 PR tree-optimization/46590
21598 * opts.c (default_options_table): Add entries for
21599 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
21600 all enabled at -O1 but not for -Og.
21601 * common.opt (fbranch-count-reg): Remove Init(1).
21602 (fmove-loop-invariants): Likewise.
21603 (ftree-pta): Likewise.
21604
21605 2014-01-17 Jakub Jelinek <jakub@redhat.com>
21606
21607 * config/i386/i386.c (ix86_data_alignment): For compatibility with
21608 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
21609 decls to at least the GCC 4.8 used alignments.
21610
21611 PR fortran/59440
21612 * tree-nested.c (convert_nonlocal_reference_stmt,
21613 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
21614 of GIMPLE_BIND stmts, adjust associated decls.
21615
21616 2014-01-17 Richard Biener <rguenther@suse.de>
21617
21618 PR tree-optimization/46590
21619 * vec.h (vec<>::bseach): New member function implementing
21620 binary search according to C89 bsearch.
21621 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
21622 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
21623 bitmap pointer again. Make accesses_in_loop a flat array.
21624 (mem_ref_obstack): New global.
21625 (outermost_indep_loop): Adjust for mem_ref->stored changes.
21626 (mark_ref_stored): Likewise.
21627 (ref_indep_loop_p_2): Likewise.
21628 (set_ref_stored_in_loop): New helper function.
21629 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
21630 (memref_free): Adjust.
21631 (record_mem_ref_loc): Simplify.
21632 (gather_mem_refs_stmt): Adjust.
21633 (sort_locs_in_loop_postorder_cmp): New function.
21634 (analyze_memory_references): Sort accesses_in_loop after
21635 loop postorder number.
21636 (find_ref_loc_in_loop_cmp): New function.
21637 (for_all_locs_in_loop): Find relevant cluster of locs in
21638 accesses_in_loop and iterate without recursion.
21639 (execute_sm): Avoid uninit warning.
21640 (struct ref_always_accessed): Simplify.
21641 (ref_always_accessed::operator ()): Likewise.
21642 (ref_always_accessed_p): Likewise.
21643 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
21644 loop postorder numbers here.
21645 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
21646 numbers.
21647
21648 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21649
21650 PR c++/57945
21651 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
21652 on decls for which assemble_alias has been called.
21653
21654 2014-01-17 Nick Clifton <nickc@redhat.com>
21655
21656 * config/msp430/msp430.opt: (mcpu): New option.
21657 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
21658 (msp430_option_override): Parse target_cpu. If the MCU name
21659 matches a generic string, clear target_mcu.
21660 (msp430_attr): Allow numeric interrupt values up to 63.
21661 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
21662 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
21663 option.
21664 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
21665 Add mcpu matches.
21666 * config/msp430/msp430.md (popm): Use %J rather than %I.
21667 (addsi3): Use msp430_nonimmediate_operand for operand 2.
21668 (addhi_cy_i): Use immediate_operand for operand 2.
21669 * doc/invoke.texi: Document -mcpu option.
21670
21671 2014-01-17 Richard Biener <rguenther@suse.de>
21672
21673 PR rtl-optimization/38518
21674 * df.h (df_analyze_loop): Declare.
21675 * df-core.c: Include cfgloop.h.
21676 (df_analyze_1): Split out main part of df_analyze.
21677 (df_analyze): Adjust.
21678 (loop_inverted_post_order_compute): New function.
21679 (loop_post_order_compute): Likewise.
21680 (df_analyze_loop): New function avoiding whole-function
21681 postorder computes.
21682 * loop-invariant.c (find_defs): Use df_analyze_loop.
21683 (find_invariants): Adjust.
21684 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
21685
21686 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
21687
21688 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
21689 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
21690
21691 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
21692
21693 * ipa-ref.c (ipa_remove_stmt_references): Fix references
21694 traversal when removing references.
21695
21696 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
21697
21698 PR ipa/59775
21699 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
21700
21701 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
21702
21703 PR middle-end/56791
21704 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
21705 pushing a reload for an autoinc when we had previously reloaded an
21706 inner part of the address.
21707
21708 2014-01-16 Jakub Jelinek <jakub@redhat.com>
21709
21710 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
21711 field.
21712 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
21713 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
21714 when not giving up or versioning for alias only because of
21715 loop->safelen.
21716 (vect_analyze_data_ref_dependences): Set to true.
21717 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
21718 is a GIMPLE_PHI.
21719 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
21720 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
21721 to the condition.
21722
21723 PR middle-end/58344
21724 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
21725
21726 PR target/59839
21727 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
21728 operand 0 predicate for gathers, use a new pseudo as subtarget.
21729
21730 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21731
21732 PR middle-end/59609
21733 * lra-constraints.c (process_alt_operands): Add printing debug info.
21734 Check absence of input/output reloads for matched operands too.
21735
21736 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21737
21738 PR rtl-optimization/59835
21739 * ira.c (ira_init_register_move_cost): Increase cost for
21740 impossible modes.
21741
21742 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
21743
21744 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
21745
21746 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
21747
21748 PR target/59780
21749 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
21750 non-register objects. Use gen_(high/low)part more consistently.
21751 Fix assertions.
21752
21753 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21754
21755 PR target/59844
21756 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
21757 endian support, remove tests for WORDS_BIG_ENDIAN.
21758 (p8_mfvsrd_3_<mode>): Likewise.
21759 (reload_gpr_from_vsx<mode>): Likewise.
21760 (reload_gpr_from_vsxsf): Likewise.
21761 (p8_mfvsrd_4_disf): Likewise.
21762
21763 2014-01-16 Richard Biener <rguenther@suse.de>
21764
21765 PR rtl-optimization/46590
21766 * lcm.c (compute_antinout_edge): Use postorder iteration.
21767 (compute_laterin): Use inverted postorder iteration.
21768
21769 2014-01-16 Nick Clifton <nickc@redhat.com>
21770
21771 PR middle-end/28865
21772 * varasm.c (output_constant): Return the number of bytes actually
21773 emitted.
21774 (output_constructor_array_range): Update the field size with the
21775 number of bytes emitted by output_constant.
21776 (output_constructor_regular_field): Likewise. Also do not
21777 complain if the total number of bytes emitted is now greater
21778 than the expected fieldpos.
21779 * output.h (output_constant): Update prototype and descriptive comment.
21780
21781 2014-01-16 Marek Polacek <polacek@redhat.com>
21782
21783 PR middle-end/59827
21784 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
21785 it is error_mark_node.
21786
21787 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
21788
21789 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
21790 VALID_AVX256_REG_OR_OI_MODE.
21791
21792 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
21793
21794 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
21795 current procedure should be profiled.
21796
21797 2014-01-15 Andrew Pinski <apinski@cavium.com>
21798
21799 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
21800 of moving from/to the STACK_REG register class.
21801
21802 2014-01-15 Richard Henderson <rth@redhat.com>
21803
21804 PR debug/54694
21805 * reginfo.c (global_regs_decl): Globalize.
21806 * rtl.h (global_regs_decl): Declare.
21807 * ira.c (do_reload): Diagnose frame_pointer_needed and it
21808 reserved via global_regs.
21809
21810 2014-01-15 Teresa Johnson <tejohnson@google.com>
21811
21812 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
21813
21814 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21815
21816 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
21817 and vmulosh rather than call gen_vec_widen_smult_*.
21818 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
21819 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
21820 (vec_widen_smult_even_v16qi): Likewise.
21821 (vec_widen_umult_even_v8hi): Likewise.
21822 (vec_widen_smult_even_v8hi): Likewise.
21823 (vec_widen_umult_odd_v16qi): Likewise.
21824 (vec_widen_smult_odd_v16qi): Likewise.
21825 (vec_widen_umult_odd_v8hi): Likewise.
21826 (vec_widen_smult_odd_v8hi): Likewise.
21827 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
21828 vmuloub rather than call gen_vec_widen_umult_*.
21829 (vec_widen_umult_lo_v16qi): Likewise.
21830 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
21831 vmulosb rather than call gen_vec_widen_smult_*.
21832 (vec_widen_smult_lo_v16qi): Likewise.
21833 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
21834 rather than call gen_vec_widen_umult_*.
21835 (vec_widen_umult_lo_v8hi): Likewise.
21836 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
21837 rather than call gen_vec_widen_smult_*.
21838 (vec_widen_smult_lo_v8hi): Likewise.
21839
21840 2014-01-15 Jeff Law <law@redhat.com>
21841
21842 PR tree-optimization/59747
21843 * ree.c (find_and_remove_re): Properly handle case where a second
21844 eliminated extension requires widening a copy created for elimination
21845 of a prior extension.
21846 (combine_set_extension): Ensure that the number of hard regs needed
21847 for a destination register does not change when we widen it.
21848
21849 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
21850
21851 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
21852 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
21853 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
21854 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
21855 (avr-*-rtems*): Likewise.
21856 (bfin*-rtems*): Likewise.
21857 (moxie-*-rtems*): Likewise.
21858 (h8300-*-rtems*): Likewise.
21859 (i[34567]86-*-rtems*): Likewise.
21860 (lm32-*-rtems*): Likewise.
21861 (m32r-*-rtems*): Likewise.
21862 (m68k-*-rtems*): Likewise.
21863 (microblaze*-*-rtems*): Likewise.
21864 (mips*-*-rtems*): Likewise.
21865 (powerpc-*-rtems*): Likewise.
21866 (sh-*-rtems*): Likewise.
21867 (sparc-*-rtems*): Likewise.
21868 (sparc64-*-rtems*): Likewise.
21869 (v850-*-rtems*): Likewise.
21870 (m32c-*-rtems*): Likewise.
21871
21872 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
21873
21874 PR rtl-optimization/59511
21875 * ira.c (ira_init_register_move_cost): Use memory costs for some
21876 cases of register move cost calculations.
21877 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
21878 instead of BB frequency.
21879 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
21880 * lra-assigns.c (find_hard_regno_for): Ditto.
21881
21882 2014-01-15 Richard Biener <rguenther@suse.de>
21883
21884 PR tree-optimization/59822
21885 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
21886 (vectorizable_load): Use it to hoist defs of uses of invariant
21887 loads out of the loop.
21888
21889 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21890 Kugan Vivekanandarajah <kuganv@linaro.org>
21891
21892 PR target/59695
21893 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
21894 truncation.
21895
21896 2014-01-15 Richard Biener <rguenther@suse.de>
21897
21898 PR rtl-optimization/59802
21899 * lcm.c (compute_available): Use inverted postorder to seed
21900 the initial worklist.
21901
21902 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21903
21904 PR target/59803
21905 * config/s390/s390.c (s390_preferred_reload_class): Don't return
21906 ADDR_REGS for invalid symrefs in non-PIC code.
21907
21908 2014-01-15 Jakub Jelinek <jakub@redhat.com>
21909
21910 PR other/58712
21911 * builtins.c (determine_block_size): Initialize *probable_max_size
21912 even if len_rtx is CONST_INT.
21913
21914 2014-01-14 Andrew Pinski <apinski@cavium.com>
21915
21916 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
21917 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
21918 (cortexa53_tunings): Likewise.
21919 (aarch64_sched_issue_rate): New function.
21920 (TARGET_SCHED_ISSUE_RATE): Define.
21921
21922 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21923
21924 * ira-costs.c (find_costs_and_classes): Add missed
21925 ira_init_register_move_cost_if_necessary.
21926
21927 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21928
21929 PR target/59787
21930 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
21931
21932 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
21933
21934 PR target/59794
21935 * config/i386/i386.c (type_natural_mode): Add a bool parameter
21936 to indicate if type is used for function return value. Warn ABI
21937 change if the vector mode isn't available for function return value.
21938 (ix86_function_arg_advance): Pass false to type_natural_mode.
21939 (ix86_function_arg): Likewise.
21940 (ix86_gimplify_va_arg): Likewise.
21941 (function_arg_32): Don't warn ABI change.
21942 (ix86_function_value): Pass true to type_natural_mode.
21943 (ix86_return_in_memory): Likewise.
21944 (ix86_struct_value_rtx): Removed.
21945 (TARGET_STRUCT_VALUE_RTX): Likewise.
21946
21947 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21948
21949 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
21950 converting a conditional jump into a conditional return.
21951
21952 2014-01-14 Richard Biener <rguenther@suse.de>
21953
21954 PR tree-optimization/58921
21955 PR tree-optimization/59006
21956 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
21957 hoisting invariant stmts.
21958 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
21959 invariant loads on the preheader edge if possible.
21960
21961 2014-01-14 Joey Ye <joey.ye@arm.com>
21962
21963 * doc/plugin.texi (Building GCC plugins): Update to C++.
21964
21965 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
21966
21967 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
21968 (_mm_rcp28_round_ss): Ditto.
21969 (_mm_rsqrt28_round_sd): Ditto.
21970 (_mm_rsqrt28_round_ss): Ditto.
21971 (_mm_rcp28_sd): Ditto.
21972 (_mm_rcp28_ss): Ditto.
21973 (_mm_rsqrt28_sd): Ditto.
21974 (_mm_rsqrt28_ss): Ditto.
21975 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
21976 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
21977 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
21978 (IX86_BUILTIN_RCP28SD): Ditto.
21979 (IX86_BUILTIN_RCP28SS): Ditto.
21980 (IX86_BUILTIN_RSQRT28SD): Ditto.
21981 (IX86_BUILTIN_RSQRT28SS): Ditto.
21982 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
21983 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
21984 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
21985 (ix86_expand_special_args_builtin): Expand new FTYPE.
21986 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
21987 (srcp14<mode>): Make insn unary.
21988 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
21989 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
21990 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
21991 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
21992 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
21993 Fix rounding: make it SAE only.
21994 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21995 Ditto.
21996 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21997 Ditto.
21998 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
21999 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
22000 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
22001 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
22002 (round_saeonly_mask_scalar_operand4): Ditto.
22003 (round_saeonly_mask_scalar_op3): Ditto.
22004 (round_saeonly_mask_scalar_op4): Ditto.
22005
22006 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22007
22008 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22009 Implement -maltivec=be for vec_insert and vec_extract.
22010
22011 2014-01-10 DJ Delorie <dj@redhat.com>
22012
22013 * config/msp430/msp430.md (call_internal): Don't allow memory
22014 references with SP as the base register.
22015 (call_value_internal): Likewise.
22016 * config/msp430/constraints.md (Yc): New. For memory references
22017 that don't use SP as a base register.
22018
22019 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
22020 "an integer without a # prefix"
22021 * config/msp430/msp430.md (epilogue_helper): Use it.
22022
22023 2014-01-13 Jakub Jelinek <jakub@redhat.com>
22024
22025 PR target/59617
22026 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
22027 AVX512F gather builtins.
22028 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
22029 on gather decls with INTEGER_TYPE masktype.
22030 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
22031 directly into the builtin rather than hoisting it before loop.
22032
22033 PR tree-optimization/59387
22034 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
22035 (scev_const_prop): If folded_casts and type has undefined overflow,
22036 use force_gimple_operand instead of force_gimple_operand_gsi and
22037 for each added stmt if it is assign with
22038 arith_code_with_undefined_signed_overflow, call
22039 rewrite_to_defined_overflow.
22040 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
22041 gimple-fold.h instead.
22042 (arith_code_with_undefined_signed_overflow,
22043 rewrite_to_defined_overflow): Moved to ...
22044 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
22045 rewrite_to_defined_overflow): ... here. No longer static.
22046 Include gimplify-me.h.
22047 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
22048 rewrite_to_defined_overflow): New prototypes.
22049
22050 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22051
22052 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
22053
22054 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
22055
22056 * builtins.c (get_object_alignment_2): Minor tweak.
22057 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
22058
22059 2014-01-13 Christian Bruel <christian.bruel@st.com>
22060
22061 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
22062 optimized non constant lengths.
22063
22064 2014-01-13 Jakub Jelinek <jakub@redhat.com>
22065
22066 PR libgomp/59194
22067 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
22068 load as __atomic_load_N if possible.
22069
22070 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
22071
22072 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
22073 target parameter.
22074 (rs6000_expand_builtin): Adjust call.
22075
22076 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
22077
22078 PR target/58115
22079 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
22080 * config/rs6000/rs6000.c: Include target-globals.h.
22081 (rs6000_set_current_function): Instead of doing target_reinit
22082 unconditionally, use save_target_globals_default_opts and
22083 restore_target_globals.
22084
22085 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
22086 FPSCR.
22087 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
22088 (rs6000_expand_builtin): Handle mffs and mtfsf.
22089 (rs6000_init_builtins): Define mffs and mtfsf.
22090 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
22091 (rs6000_mffs): New pattern.
22092 (rs6000_mtfsf): New pattern.
22093
22094 2014-01-11 Bin Cheng <bin.cheng@arm.com>
22095
22096 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
22097 Start narrowing with START. Apply candidate-use pair
22098 and check overall cost in narrowing.
22099 (iv_ca_prune): Pass new argument.
22100
22101 2014-01-10 Jeff Law <law@redhat.com>
22102
22103 PR middle-end/59743
22104 * ree.c (combine_reaching_defs): Ensure the defining statement
22105 occurs before the extension when optimizing extensions with
22106 different source and destination hard registers.
22107
22108 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
22109
22110 PR ipa/58585
22111 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
22112 vtables into the type inheritance graph.
22113
22114 2014-01-10 Jakub Jelinek <jakub@redhat.com>
22115
22116 PR rtl-optimization/59754
22117 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
22118 modes in the REGNO != REGNO case.
22119
22120 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22121
22122 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
22123
22124 2014-01-10 Jakub Jelinek <jakub@redhat.com>
22125
22126 PR tree-optimization/59745
22127 * tree-predcom.c (tree_predictive_commoning_loop): Call
22128 free_affine_expand_cache if giving up because components is NULL.
22129
22130 * target-globals.c (save_target_globals): Allocate < 4KB structs using
22131 GC in payload of target_globals struct instead of allocating them on
22132 the heap and the larger structs separately using GC.
22133 * target-globals.h (struct target_globals): Make regs, hard_regs,
22134 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
22135 of GTY((skip)) and change type to void *.
22136 (reset_target_globals): Cast loads from those fields to corresponding
22137 types.
22138
22139 2014-01-10 Steve Ellcey <sellcey@mips.com>
22140
22141 PR plugins/59335
22142 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
22143 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
22144 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
22145
22146 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
22147
22148 PR target/59744
22149 * aarch64-modes.def (CC_Zmode): New flags mode.
22150 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
22151 represents an equality.
22152 (aarch64_get_condition_code): Handle CC_Zmode.
22153 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
22154
22155 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22156
22157 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
22158 extraction in good case.
22159
22160 2014-01-10 Richard Biener <rguenther@suse.de>
22161
22162 PR tree-optimization/59374
22163 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
22164 checking after SLP discovery. Mark stmts not participating
22165 in any SLP instance properly.
22166
22167 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22168
22169 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
22170 when handling a SET rtx.
22171
22172 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22173
22174 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
22175 (cortex-a57): Likewise.
22176 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
22177
22178 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22179
22180 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
22181 non-iwmmxt builtins.
22182
22183 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
22184
22185 PR ipa/58252
22186 PR ipa/59226
22187 * ipa-devirt.c record_target_from_binfo): Take as argument
22188 stack of binfos and lookup matching one for virtual inheritance.
22189 (possible_polymorphic_call_targets_1): Update.
22190
22191 2014-01-10 Huacai Chen <chenhc@lemote.com>
22192
22193 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
22194 kernel strings for Loongson-2E/2F/3A.
22195
22196 2014-01-10 Jakub Jelinek <jakub@redhat.com>
22197
22198 PR middle-end/59670
22199 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
22200 is_gimple_call before calling gimple_call_internal_p.
22201
22202 2014-01-09 Steve Ellcey <sellcey@mips.com>
22203
22204 * Makefile.in (TREE_FLOW_H): Remove.
22205 (TREE_SSA_H): Add file names from tree-flow.h.
22206 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
22207 * tree.h: Remove tree-flow.h reference.
22208 * hash-table.h: Remove tree-flow.h reference.
22209 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
22210 reference with tree-ssa-loop.h.
22211
22212 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22213
22214 * doc/invoke.texi: Add -maltivec={be,le} options, and document
22215 default element-order behavior for -maltivec.
22216 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
22217 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
22218 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
22219 when targeting big endian, at least for now.
22220 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
22221
22222 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22223
22224 PR middle-end/47735
22225 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
22226 var satisfies use_register_for_decl, just take into account type
22227 alignment, rather than decl alignment.
22228
22229 PR tree-optimization/59622
22230 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
22231 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
22232 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
22233 Don't devirtualize for inplace at all. For targets.length () == 1,
22234 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
22235
22236 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
22237
22238 * config/i386/i386.md (cpu): Remove the unused btver1.
22239
22240 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
22241
22242 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
22243
22244 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22245
22246 PR target/58115
22247 * tree-core.h (struct target_globals): New forward declaration.
22248 (struct tree_target_option): Add globals field.
22249 * tree.h (TREE_TARGET_GLOBALS): Define.
22250 (prepare_target_option_nodes_for_pch): New prototype.
22251 * target-globals.h (struct target_globals): Define even if
22252 !SWITCHABLE_TARGET.
22253 * tree.c (prepare_target_option_node_for_pch,
22254 prepare_target_option_nodes_for_pch): New functions.
22255 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
22256 * config/i386/i386.c: Include target-globals.h.
22257 (ix86_set_current_function): Instead of doing target_reinit
22258 unconditionally, use save_target_globals_default_opts and
22259 restore_target_globals.
22260
22261 2014-01-09 Richard Biener <rguenther@suse.de>
22262
22263 PR tree-optimization/59715
22264 * tree-cfg.h (split_critical_edges): Declare.
22265 * tree-cfg.c (split_critical_edges): Export.
22266 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
22267
22268 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
22269
22270 * cfgexpand.c (expand_stack_vars): Optionally disable
22271 asan stack protection.
22272 (expand_used_vars): Likewise.
22273 (partition_stack_vars): Likewise.
22274 * asan.c (asan_emit_stack_protection): Optionally disable
22275 after return stack usage.
22276 (instrument_derefs): Optionally disable memory access instrumentation.
22277 (instrument_builtin_call): Likewise.
22278 (instrument_strlen_call): Likewise.
22279 (asan_protect_global): Optionally disable global variables protection.
22280 * doc/invoke.texi: Added doc for new options.
22281 * params.def: Added new options.
22282 * params.h: Likewise.
22283
22284 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22285
22286 PR rtl-optimization/59724
22287 * ifcvt.c (cond_exec_process_if_block): Don't call
22288 flow_find_head_matching_sequence with 0 longest_match.
22289 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
22290 non-active insns if !stop_after.
22291 (try_head_merge_bb): Revert 2014-01-07 changes.
22292
22293 2014-01-08 Jeff Law <law@redhat.com>
22294
22295 * ree.c (get_sub_rtx): New function, extracted from...
22296 (merge_def_and_ext): Here.
22297 (combine_reaching_defs): Use get_sub_rtx.
22298
22299 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
22300
22301 * cgraph.h (varpool_variable_node): Do not choke on null node.
22302
22303 2014-01-08 Catherine Moore <clm@codesourcery.com>
22304
22305 * config/mips/mips.md (simple_return): Attempt to use JRC
22306 for microMIPS.
22307 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
22308
22309 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
22310
22311 PR rtl-optimization/59137
22312 * reorg.c (steal_delay_list_from_target): Call update_block for
22313 elided insns.
22314 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
22315
22316 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22317
22318 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
22319 two duplicate entries.
22320
22321 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
22322
22323 Revert:
22324 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
22325
22326 * config/mips/mips.c (mips_truncated_op_cost): New function.
22327 (mips_rtx_costs): Adjust test for BADDU.
22328 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
22329
22330 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
22331
22332 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
22333 (*baddu_si): ...this new pattern.
22334
22335 2014-01-08 Jakub Jelinek <jakub@redhat.com>
22336
22337 PR ipa/59722
22338 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
22339
22340 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
22341
22342 PR middle-end/57748
22343 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
22344 inner_reference_p.
22345 (expand_expr, expand_normal): Adjust.
22346 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
22347 inner_reference_p. Use inner_reference_p to expand inner references.
22348 (store_expr): Adjust.
22349 * cfgexpand.c (expand_call_stmt): Adjust.
22350
22351 2014-01-08 Rong Xu <xur@google.com>
22352
22353 * gcov-io.c (gcov_var): Move from gcov-io.h.
22354 (gcov_position): Ditto.
22355 (gcov_is_error): Ditto.
22356 (gcov_rewrite): Ditto.
22357 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
22358 only part to libgcc/libgcov.h.
22359
22360 2014-01-08 Marek Polacek <polacek@redhat.com>
22361
22362 PR middle-end/59669
22363 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
22364
22365 2014-01-08 Marek Polacek <polacek@redhat.com>
22366
22367 PR sanitizer/59667
22368 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
22369
22370 2014-01-08 Jakub Jelinek <jakub@redhat.com>
22371
22372 PR rtl-optimization/59649
22373 * stor-layout.c (get_mode_bounds): For BImode return
22374 0 and STORE_FLAG_VALUE.
22375
22376 2014-01-08 Richard Biener <rguenther@suse.de>
22377
22378 PR middle-end/59630
22379 * gimple.h (is_gimple_builtin_call): Remove.
22380 (gimple_builtin_call_types_compatible_p): New.
22381 (gimple_call_builtin_p): New overload.
22382 * gimple.c (is_gimple_builtin_call): Remove.
22383 (validate_call): Rename to ...
22384 (gimple_builtin_call_types_compatible_p): ... this and export. Also
22385 check return types.
22386 (validate_type): New static function.
22387 (gimple_call_builtin_p): New overload and adjust.
22388 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
22389 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
22390 (gimple_fold_stmt_to_constant_1): Likewise.
22391 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
22392
22393 2014-01-08 Richard Biener <rguenther@suse.de>
22394
22395 PR middle-end/59471
22396 * gimplify.c (gimplify_expr): Gimplify register-register type
22397 VIEW_CONVERT_EXPRs to separate stmts.
22398
22399 2014-01-07 Jeff Law <law@redhat.com>
22400
22401 PR middle-end/53623
22402 * ree.c (combine_set_extension): Handle case where source
22403 and destination registers in an extension insn are different.
22404 (combine_reaching_defs): Allow source and destination registers
22405 in extension to be different under limited circumstances.
22406 (add_removable_extension): Remove restriction that the
22407 source and destination registers in the extension are the same.
22408 (find_and_remove_re): Emit a copy from the extension's
22409 destination to its source after the defining insn if
22410 the source and destination registers are different.
22411
22412 PR middle-end/59285
22413 * ifcvt.c (merge_if_block): If we are merging a block with more than
22414 one successor with a block with no successors, remove any BARRIER
22415 after the second block.
22416
22417 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
22418
22419 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
22420
22421 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
22422
22423 PR target/59652
22424 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
22425 for 14-bit register offsets when INT14_OK_STRICT is false.
22426
22427 2014-01-07 Roland Stigge <stigge@antcom.de>
22428 Michael Meissner <meissner@linux.vnet.ibm.com>
22429
22430 PR 57386/target
22431 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
22432 Only check TFmode for SPE constants. Don't check TImode or TDmode.
22433
22434 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
22435
22436 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
22437 -mcpu.
22438
22439 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
22440
22441 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
22442 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
22443 rtx is const0_rtx or not.
22444
22445 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
22446
22447 PR target/58115
22448 * target-globals.c (save_target_globals): Remove this_fn_optab
22449 handling.
22450 * toplev.c: Include optabs.h.
22451 (target_reinit): Temporarily restore the global options if another
22452 set of options are in force.
22453
22454 2014-01-07 Jakub Jelinek <jakub@redhat.com>
22455
22456 PR rtl-optimization/58668
22457 * cfgcleanup.c (flow_find_cross_jump): Don't count
22458 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
22459 to determine what is counted.
22460 (flow_find_head_matching_sequence): Use active_insn_p to determine
22461 what is counted.
22462 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
22463 counting change.
22464 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
22465 determine what is counted.
22466
22467 PR tree-optimization/59643
22468 * tree-predcom.c (split_data_refs_to_components): If one dr is
22469 read and one write, determine_offset fails and the write isn't
22470 in the bad component, just put the read into the bad component.
22471
22472 2014-01-07 Mike Stump <mikestump@comcast.net>
22473 Jakub Jelinek <jakub@redhat.com>
22474
22475 PR pch/59436
22476 * tree-core.h (struct tree_optimization_option): Change optabs
22477 type from unsigned char * to void *.
22478 * optabs.c (init_tree_optimization_optabs): Adjust
22479 TREE_OPTIMIZATION_OPTABS initialization.
22480
22481 2014-01-06 Jakub Jelinek <jakub@redhat.com>
22482
22483 PR target/59644
22484 * config/i386/i386.h (struct machine_function): Add
22485 no_drap_save_restore field.
22486 * config/i386/i386.c (ix86_save_reg): Use
22487 !cfun->machine->no_drap_save_restore instead of
22488 crtl->stack_realign_needed.
22489 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
22490 this function clears frame_pointer_needed. Set
22491 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
22492 and DRAP reg is needed.
22493
22494 2014-01-06 Marek Polacek <polacek@redhat.com>
22495
22496 PR c/57773
22497 * doc/implement-c.texi: Mention that other integer types are
22498 permitted as bit-field types in strictly conforming mode.
22499
22500 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
22501
22502 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
22503 is newly allocated.
22504
22505 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
22506
22507 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
22508
22509 2014-01-06 Martin Jambor <mjambor@suse.cz>
22510
22511 PR ipa/59008
22512 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
22513 to int.
22514 * ipa-prop.c (ipa_print_node_params): Fix indentation.
22515
22516 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
22517
22518 PR debug/59350
22519 PR debug/59510
22520 * var-tracking.c (add_stores): Preserve the value of the source even if
22521 we don't record the store.
22522
22523 2014-01-06 Terry Guo <terry.guo@arm.com>
22524
22525 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
22526
22527 2014-01-05 Iain Sandoe <iain@codesourcery.com>
22528
22529 PR bootstrap/59541
22530 * config/darwin.c (darwin_function_section): Adjust return values to
22531 correspond to optimisation changes made in r206070.
22532
22533 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
22534
22535 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
22536 from prefetch_block tune setting.
22537 (nocona_cost): Correct size of prefetch block to 64.
22538
22539 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
22540
22541 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
22542 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
22543 used to save the static chain register in the computation of the offset
22544 from which the FP registers need to be restored.
22545
22546 2014-01-04 Jakub Jelinek <jakub@redhat.com>
22547
22548 PR tree-optimization/59519
22549 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
22550 ICE if get_current_def (current_new_name) is already non-NULL, as long
22551 as it is a phi result of some other phi in *new_exit_bb that has
22552 the same argument.
22553
22554 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
22555 or vmovdqu* for misaligned_operand.
22556 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
22557 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
22558 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
22559 aligned_mem for AVX512F masked aligned load and store builtins and for
22560 non-temporal moves.
22561
22562 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
22563
22564 PR tree-optimization/59651
22565 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
22566 Address range for negative step should be added by TYPE_SIZE_UNIT.
22567
22568 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
22569
22570 * config/m68k/m68k.c (handle_move_double): Handle pushes with
22571 overlapping registers also for registers other than the stack pointer.
22572
22573 2014-01-03 Marek Polacek <polacek@redhat.com>
22574
22575 PR other/59661
22576 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
22577 __builtin_FILE.
22578
22579 2014-01-03 Jakub Jelinek <jakub@redhat.com>
22580
22581 PR target/59625
22582 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
22583 asm goto as jump.
22584
22585 * config/i386/i386.md (MODE_SIZE): New mode attribute.
22586 (push splitter): Use <P:MODE_SIZE> instead of
22587 GET_MODE_SIZE (<P:MODE>mode).
22588 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
22589 (mov -1, reg peephole2): Likewise.
22590 * config/i386/sse.md (*mov<mode>_internal,
22591 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
22592 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
22593 *<code><mode>3, *andnot<mode>3<mask_name>,
22594 <mask_codefor><code><mode>3<mask_name>): Likewise.
22595 * config/i386/subst.md (mask_mode512bit_condition,
22596 sd_mask_mode512bit_condition): Likewise.
22597
22598 2014-01-02 Xinliang David Li <davidxl@google.com>
22599
22600 PR tree-optimization/59303
22601 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
22602 (dump_predicates): Better output format.
22603 (pred_equal_p): New function.
22604 (is_neq_relop_p): Ditto.
22605 (is_neq_zero_form_p): Ditto.
22606 (pred_expr_equal_p): Ditto.
22607 (pred_neg_p): Ditto.
22608 (simplify_pred): Ditto.
22609 (simplify_preds_2): Ditto.
22610 (simplify_preds_3): Ditto.
22611 (simplify_preds_4): Ditto.
22612 (simplify_preds): Ditto.
22613 (push_pred): Ditto.
22614 (push_to_worklist): Ditto.
22615 (get_pred_info_from_cmp): Ditto.
22616 (is_degenerated_phi): Ditto.
22617 (normalize_one_pred_1): Ditto.
22618 (normalize_one_pred): Ditto.
22619 (normalize_one_pred_chain): Ditto.
22620 (normalize_preds): Ditto.
22621 (normalize_cond_1): Remove function.
22622 (normalize_cond): Ditto.
22623 (is_gcond_subset_of): Ditto.
22624 (is_subset_of_any): Ditto.
22625 (is_or_set_subset_of): Ditto.
22626 (is_and_set_subset_of): Ditto.
22627 (is_norm_cond_subset_of): Ditto.
22628 (pred_chain_length_cmp): Ditto.
22629 (convert_control_dep_chain_into_preds): Type change.
22630 (find_predicates): Ditto.
22631 (find_def_preds): Ditto.
22632 (destroy_predicates_vecs): Ditto.
22633 (find_matching_predicates_in_rest_chains): Ditto.
22634 (use_pred_not_overlap_with_undef_path_pred): Ditto.
22635 (is_pred_expr_subset): Ditto.
22636 (is_pred_chain_subset_of): Ditto.
22637 (is_included_in): Ditto.
22638 (is_superset_of): Ditto.
22639
22640 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22641
22642 Update copyright years.
22643
22644 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22645
22646 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
22647 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
22648 config/arc/arc.md, config/arc/arc.opt,
22649 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
22650 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
22651 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
22652 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
22653 config/linux-protos.h, config/linux.c, config/winnt-c.c,
22654 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
22655 vtable-verify.c, vtable-verify.h: Use the standard form for the
22656 copyright notice.
22657
22658 2014-01-02 Tobias Burnus <burnus@net-b.de>
22659
22660 * gcc.c (process_command): Update copyright notice dates.
22661 * gcov-dump.c: Ditto.
22662 * gcov.c: Ditto.
22663 * doc/cpp.texi: Bump @copying's copyright year.
22664 * doc/cppinternals.texi: Ditto.
22665 * doc/gcc.texi: Ditto.
22666 * doc/gccint.texi: Ditto.
22667 * doc/gcov.texi: Ditto.
22668 * doc/install.texi: Ditto.
22669 * doc/invoke.texi: Ditto.
22670
22671 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22672
22673 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
22674
22675 2014-01-01 Jakub Jelinek <jakub@redhat.com>
22676
22677 * config/i386/sse.md (*mov<mode>_internal): Guard
22678 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
22679
22680 PR rtl-optimization/59647
22681 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
22682 new_rtx into UNSIGNED_FLOAT rtxes.
22683 \f
22684 Copyright (C) 2014 Free Software Foundation, Inc.
22685
22686 Copying and distribution of this file, with or without modification,
22687 are permitted in any medium without royalty provided the copyright
22688 notice and this notice are preserved.