explow.c: Use rtx_insn and rtx_code_label
[gcc.git] / gcc / ChangeLog
1 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2
3 * explow.c (force_reg): Strengthen local "insn" from rtx to
4 rtx_insn *.
5 (adjust_stack_1): Likewise.
6 (allocate_dynamic_stack_space): Likewise. Strengthen locals
7 "final_label", "available_label", "space_available" from rtx to
8 rtx_code_label *.
9 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
10 (anti_adjust_stack_and_probe): Likewise.
11
12 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13
14 * except.h (sjlj_emit_function_exit_after): Strengthen param
15 "after" from rtx to rtx_insn *. This is only called with
16 result of get_last_insn (in function.c) so type-change should be
17 self-contained.
18
19 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
20 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
21 to rtx_insn *. These fields are only used from except.c so this
22 type-change should be self-contained to this patch.
23
24 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
25 local "last" from rtx to rtx_insn *.
26 (dw2_build_landing_pads): Likewise for local "seq".
27 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
28 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
29 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
30 rtx to rtx_insn *.
31 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
32 to rtx_insn *.
33 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
34 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
35 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
36 referring to an insn. Strengthen local "dispatch_label" from
37 rtx to rtx_code_label *.
38 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
39 rtx_insn *.
40 (expand_eh_return): Strengthen local "around_label" from
41 rtx to rtx_code_label *.
42 (convert_to_eh_region_ranges): Strengthen locals "iter",
43 "last_action_insn", "first_no_action_insn",
44 "first_no_action_insn_before_switch",
45 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
46
47 2014-08-22 David Malcolm <dmalcolm@redhat.com>
48
49 * dwarf2out.c (last_var_location_insn): Strengthen this variable
50 from rtx to rtx_insn *.
51 (cached_next_real_insn): Likewise.
52 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
53 working with insns.
54 (dwarf2out_var_location): Strengthen locals "next_real",
55 "next_note", "expected_next_loc_note", "last_start", "insn" from
56 rtx to rtx_insn *.
57
58 2014-08-22 David Malcolm <dmalcolm@redhat.com>
59
60 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
61 from rtx to rtx_insn *.
62 (create_pseudo_cfg): Likewise for local "insn".
63
64 2014-08-22 David Malcolm <dmalcolm@redhat.com>
65
66 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
67 from rtx to rtx_insn *.
68 (df_bb_regno_last_def_find): Likewise.
69
70 * df-problems.c (df_rd_bb_local_compute): Likewise.
71 (df_lr_bb_local_compute): Likewise.
72 (df_live_bb_local_compute): Likewise.
73 (df_chain_remove_problem): Likewise.
74 (df_chain_create_bb): Likewise.
75 (df_word_lr_bb_local_compute): Likewise.
76 (df_remove_dead_eq_notes): Likewise for param "insn".
77 (df_note_bb_compute): Likewise for local "insn".
78 (simulate_backwards_to_point): Likewise.
79 (df_md_bb_local_compute): Likewise.
80
81 * df-scan.c (df_scan_free_bb_info): Likewise.
82 (df_scan_start_dump): Likewise.
83 (df_scan_start_block): Likewise.
84 (df_install_ref_incremental): Likewise for local "insn".
85 (df_insn_rescan_all): Likewise.
86 (df_reorganize_refs_by_reg_by_insn): Likewise.
87 (df_reorganize_refs_by_insn_bb): Likewise.
88 (df_recompute_luids): Likewise.
89 (df_bb_refs_record): Likewise.
90 (df_update_entry_exit_and_calls): Likewise.
91 (df_bb_verify): Likewise.
92
93 2014-08-22 David Malcolm <dmalcolm@redhat.com>
94
95 * ddg.h (struct ddg_node): Strengthen fields "insn" and
96 "first_note" from rtx to rtx_insn *.
97 (get_node_of_insn): Likewise for param 2 "insn".
98 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
99
100 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
101 rtx_insn *.
102 (mem_write_insn_p): Likewise.
103 (mem_access_insn_p): Likewise.
104 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
105 (def_has_ccmode_p): Likewise for param "insn".
106 (add_cross_iteration_register_deps): Likewise for locals
107 "def_insn" and "use_insn".
108 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
109 (build_intra_loop_deps): Likewise for local "src_insn".
110 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
111 to rtx_insn *.
112 (get_node_of_insn): Likewise for param "insn".
113
114 2014-08-22 David Malcolm <dmalcolm@redhat.com>
115
116 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
117 (deletable_insn_p): Strengthen param "insn" from rtx to
118 rtx_insn *. Add checked cast to rtx_call_insn when invoking
119 find_call_stack_args, since this is guarded by CALL_P (insn).
120 (marked_insn_p): Strengthen param "insn" from rtx to
121 rtx_insn *.
122 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
123 invoking find_call_stack_args, since this is guarded by
124 CALL_P (insn).
125 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
126 rtx_insn *; we know this is an insn since this was called by
127 mark_nonreg_stores.
128 (mark_nonreg_stores_2): Likewise.
129 (mark_nonreg_stores): Strengthen param "insn" from rtx to
130 rtx_insn *.
131 (find_call_stack_args): Strengthen param "call_insn" from rtx to
132 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
133 to rtx_insn *.
134 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
135 from rtx to rtx_insn *.
136 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
137 "next", "ref_insn".
138 (delete_unmarked_insns): Likewise for locals "insn", "next".
139 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
140 (mark_reg_dependencies): Likewise for param "insn".
141 (rest_of_handle_ud_dce): Likewise for local "insn".
142 (word_dce_process_block): Likewise.
143 (dce_process_block): Likewise.
144
145 2014-08-22 David Malcolm <dmalcolm@redhat.com>
146
147 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
148 from rtx to rtx_insn *.
149 (struct change_cc_mode_args): Likewise for field "insn".
150 (this_insn): Strengthen from rtx to rtx_insn *.
151 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
152 with insn.
153 (validate_canon_reg): Strengthen param "insn" from rtx to
154 rtx_insn *.
155 (canon_reg): Likewise.
156 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
157 dealing with insn.
158 (record_jump_equiv): Strengthen param "insn" from rtx to
159 rtx_insn *.
160 (try_back_substitute_reg): Likewise, also for locals "prev",
161 "bb_head".
162 (find_sets_in_insn): Likewise for param "insn".
163 (canonicalize_insn): Likewise.
164 (cse_insn): Likewise. Add a checked cast.
165 (invalidate_from_clobbers): Likewise for param "insn".
166 (invalidate_from_sets_and_clobbers): Likewise.
167 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
168 dealing with insn.
169 (cse_prescan_path): Strengthen local "insn" from rtx to
170 rtx_insn *.
171 (cse_extended_basic_block): Likewise for locals "insn" and
172 "prev_insn".
173 (cse_main): Likewise for param "f".
174 (check_for_label_ref): Likewise for local "insn".
175 (set_live_p): Likewise for second param ("insn").
176 (insn_live_p): Likewise for first param ("insn") and for local
177 "next".
178 (cse_change_cc_mode_insn): Likewise for first param "insn".
179 (cse_change_cc_mode_insns): Likewise for first and second params
180 "start" and "end".
181 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
182 and "end".
183 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
184 "cc_src_insn".
185
186 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
187 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
188 Anna Tikhonova <anna.tikhonova@intel.com>
189 Ilya Tocar <ilya.tocar@intel.com>
190 Andrey Turetskiy <andrey.turetskiy@intel.com>
191 Ilya Verbin <ilya.verbin@intel.com>
192 Kirill Yukhin <kirill.yukhin@intel.com>
193 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
194
195 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
196 New.
197 * config/i386/sse.md
198 (define_mode_iterator VI248_AVX2): Delete.
199 (define_mode_iterator VI2_AVX2_AVX512BW): New.
200 (define_mode_iterator VI48_AVX2): Ditto.
201 (define_insn <shift_insn><mode>3): Delete.
202 (define_insn "<shift_insn><mode>3<mask_name>" with
203 VI2_AVX2_AVX512BW): New.
204 (define_insn "<shift_insn><mode>3<mask_name>" with
205 VI48_AVX2): Ditto.
206
207 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
208 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
209 Anna Tikhonova <anna.tikhonova@intel.com>
210 Ilya Tocar <ilya.tocar@intel.com>
211 Andrey Turetskiy <andrey.turetskiy@intel.com>
212 Ilya Verbin <ilya.verbin@intel.com>
213 Kirill Yukhin <kirill.yukhin@intel.com>
214 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
215
216 * config/i386/sse.md
217 (define_mode_iterator VI4F_BRCST32x2): New.
218 (define_mode_attr 64x2_mode): Ditto.
219 (define_mode_attr 32x2mode): Ditto.
220 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
221 with VI4F_BRCST32x2): Ditto.
222 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
223 with V16FI mode iterator): Ditto.
224 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
225 with V16FI): Ditto.
226 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
227 with VI8F_BRCST64x2): Ditto.
228
229 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
230 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
231 Anna Tikhonova <anna.tikhonova@intel.com>
232 Ilya Tocar <ilya.tocar@intel.com>
233 Andrey Turetskiy <andrey.turetskiy@intel.com>
234 Ilya Verbin <ilya.verbin@intel.com>
235 Kirill Yukhin <kirill.yukhin@intel.com>
236 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
237
238 * config/i386/sse.md
239 (define_mode_iterator VI8_AVX512VL): New.
240 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
241
242 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
243
244 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
245 (define_mode_iterator V48_AVX512VL): New.
246 (define_mode_iterator V12_AVX512VL): Ditto.
247 (define_insn <avx512>_load<mode>_mask): Split into two similar
248 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
249 Refactor output template.
250 (define_insn "<avx512>_store<mode>_mask"): Ditto.
251
252 2014-08-22 David Malcolm <dmalcolm@redhat.com>
253
254 * cprop.c (struct occr): Strengthen field "insn" from rtx to
255 rtx_insn *.
256 (reg_available_p): Likewise for param "insn".
257 (insert_set_in_table): Likewise.
258 (hash_scan_set): Likewise.
259 (hash_scan_insn): Likewise.
260 (make_set_regs_unavailable): Likewise.
261 (compute_hash_table_work): Likewise for local "insn".
262 (reg_not_set_p): Strengthen param "insn" from const_rtx to
263 const rtx_insn *.
264 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
265 (try_replace_reg): Likewise.
266 (find_avail_set): Likewise.
267 (cprop_jump): Likewise for params "setcc", "jump".
268 (constprop_register): Likewise for param "insn".
269 (cprop_insn): Likewise.
270 (do_local_cprop): Likewise.
271 (local_cprop_pass): Likewise for local "insn".
272 (bypass_block): Likewise for params "setcc" and "jump".
273 (bypass_conditional_jumps): Likewise for locals "setcc" and
274 "insn".
275 (one_cprop_pass): Likewise for local "insn".
276
277 2014-08-22 David Malcolm <dmalcolm@redhat.com>
278
279 * compare-elim.c (struct comparison_use): Strengthen field "insn"
280 from rtx to rtx_insn *.
281 (struct comparison): Likewise, also for field "prev_clobber".
282 (conforming_compare): Likewise for param "insn".
283 (arithmetic_flags_clobber_p): Likewise.
284 (find_flags_uses_in_insn): Likewise.
285 (find_comparison_dom_walker::before_dom_children): Likewise for
286 locals "insn", "next", "last_clobber".
287 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
288
289 2014-08-22 David Malcolm <dmalcolm@redhat.com>
290
291 * combine-stack-adj.c (struct csa_reflist): Strengthen field
292 "insn" from rtx to rtx_insn *.
293 (single_set_for_csa): Likewise for param "insn".
294 (record_one_stack_ref): Likewise.
295 (try_apply_stack_adjustment): Likewise.
296 (struct record_stack_refs_data): Likewise for field "insn".
297 (maybe_move_args_size_note): Likewise for params "last" and "insn".
298 (prev_active_insn_bb): Likewise for return type and param "insn".
299 (next_active_insn_bb): Likewise.
300 (force_move_args_size_note): Likewise for params "prev" and "last"
301 and locals "test", "next_candidate", "prev_candidate".
302 (combine_stack_adjustments_for_block): Strengthen locals
303 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
304 rtx_insn *.
305
306 2014-08-21 David Malcolm <dmalcolm@redhat.com>
307
308 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
309 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
310 (subst_insn): Likewise for this variable.
311 (added_links_insn): Likewise.
312 (struct insn_link): Likewise for field "insn".
313 (alloc_insn_link): Likewise for param "insn".
314 (struct undobuf): Likewise for field "other_insn".
315 (find_single_use): Likewise for param "insn" and local "next".
316 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
317 (delete_noop_moves): Likewise for locals "insn", "next".
318 (create_log_links): Likewise for locals "insn", "use_insn".
319 Strengthen local "next_use" from rtx * to rtx_insn **.
320 (insn_a_feeds_b): Likewise for params "a", "b".
321 (combine_instructions): Likewise for param "f" and locals "insn",
322 "next", "prev", "first", "last_combined_insn", "link", "link1",
323 "temp". Replace use of NULL_RTX with NULL when referring to
324 insns.
325 (setup_incoming_promotions): Likewise for param "first"
326 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
327 (can_combine_p): Likewise for params "insn", "i3", "pred",
328 "pred2", "succ", "succ2" and for local "p".
329 (combinable_i3pat): Likewise for param "i3".
330 (cant_combine_insn_p): Likewise for param "insn".
331 (likely_spilled_retval_p): Likewise.
332 (adjust_for_new_dest): Likewise.
333 (update_cfg_for_uncondjump): Likewise, also for local "insn".
334 (try_combine): Likewise for return type and for params "i3", "i2",
335 "i1", "i0", "last_combined_insn", and for locals "insn",
336 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
337 "i0_insn". Eliminate local "tem" in favor of new locals
338 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
339 checked cast for now to rtx_insn * on the return type of
340 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
341 insns.
342 (find_split_point): Strengthen param "insn" from rtx to
343 rtx_insn *.
344 (simplify_set): Likewise for local "other_insn".
345 (recog_for_combine): Likewise for param "insn".
346 (record_value_for_reg): Likewise.
347 (record_dead_and_set_regs_1): Likewise for local
348 "record_dead_insn".
349 (record_dead_and_set_regs): Likewise for param "insn".
350 (record_promoted_value): Likewise.
351 (check_promoted_subreg): Likewise.
352 (get_last_value_validate): Likewise.
353 (reg_dead_at_p): Likewise.
354 (move_deaths): Likewise for param "to_insn".
355 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
356 and locals "place", "place2", "cc0_setter". Eliminate local "tem
357 in favor of new locals "tem_note" and "tem_insn", the latter being
358 an rtx_insn *.
359 (distribute_links): Strengthen locals "place", "insn" from rtx to
360 rtx_insn *.
361
362 2014-08-21 David Malcolm <dmalcolm@redhat.com>
363
364 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
365 than a const_rtx.
366 (can_delete_label_p): Require a const rtx_code_label * rather than
367 a const_rtx.
368 (delete_insn): Add checked cast to rtx_code_label * when we know
369 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
370 rtx to rtx_insn *.
371 (delete_insn_chain): Strengthen locals "prev" and "current" from
372 rtx to rtx_insn *. Add a checked cast when assigning from
373 "finish" (strengthening the params will come later). Add a
374 checked cast to rtx_note * in region where we know
375 NOTE_P (current).
376 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
377 rtx_insn *.
378 (compute_bb_for_insn): Likewise.
379 (free_bb_for_insn): Likewise for local "insn".
380 (compute_bb_for_insn): Likewise.
381 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
382 local "insn" from rtx to rtx_insn *
383 (flow_active_insn_p): Require a const rtx_insn * rather than a
384 const_rtx.
385 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
386 rtx_insn *.
387 (can_fallthru): Likewise for locals "insn" and "insn2".
388 (bb_note): Likewise for local "note".
389 (first_insn_after_basic_block_note): Likewise for local "note" and
390 for return type.
391 (rtl_split_block): Likewise for locals "insn" and "next".
392 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
393 "end".
394 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
395 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
396 "prev", "tmp".
397 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
398 them), "kill_from", "barrier", "new_insn".
399 (patch_jump_insn): Likewise for params "insn", "old_label".
400 (redirect_branch_edge): Likewise for locals "old_label", "insn".
401 (force_nonfallthru_and_redirect): Likewise for locals "insn",
402 "old_label", "new_label".
403 (rtl_tidy_fallthru_edge): Likewise for local "q".
404 (rtl_split_edge): Likewise for locals "before", "last".
405 (commit_one_edge_insertion): Likewise for locals "before",
406 "after", "insns", "tmp", "last", adding a checked cast where
407 currently necessary.
408 (commit_edge_insertions): Likewise.
409 (rtl_dump_bb): Likewise for locals "insn", "last".
410 (print_rtl_with_bb): Likewise for local "x".
411 (rtl_verify_bb_insns): Likewise for local "x".
412 (rtl_verify_bb_pointers): Likewise for local "insn".
413 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
414 "head", "end".
415 (rtl_verify_fallthru): Likewise for local "insn".
416 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
417 (purge_dead_edges): Likewise for local "insn".
418 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
419 (skip_insns_after_block): Likewise for return type and for locals
420 "insn", "last_insn", "next_head", "prev".
421 (record_effective_endpoints): Likewise for locals "next_insn",
422 "insn", "end".
423 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
424 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
425 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
426 (duplicate_insn_chain): For now, add checked cast from rtx to
427 rtx_insn * when returning insn.
428 (cfg_layout_duplicate_bb): Likewise for local "insn".
429 (cfg_layout_delete_block): Likewise for locals "insn", "next",
430 "prev", "remaints".
431 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
432 (rtl_block_empty_p): Likewise.
433 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
434 "split_point", "last".
435 (rtl_block_ends_with_call_p): Likewise for local "insn".
436 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
437 const rtx_insn *.
438 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
439 "split_at_insn" from rtx to rtx_insn *.
440 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
441 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
442 to const rtx_insn *.
443 (rtl_account_profile_record): Likewise.
444
445 2014-08-21 David Malcolm <dmalcolm@redhat.com>
446
447 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
448 rtx to rtx_insn *.
449 (average_num_loop_insns): Likewise.
450 (init_set_costs): Likewise for local "seq".
451 (seq_cost): Likewise for param "seq", from const_rtx to const
452 rtx_insn *.
453
454 2014-08-21 David Malcolm <dmalcolm@redhat.com>
455
456 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
457 rtx to rtx_insn *.
458
459 2014-08-21 David Malcolm <dmalcolm@redhat.com>
460
461 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
462 "f1" and "f2" from rtx * to rtx_insn **.
463 (flow_find_head_matching_sequence): Likewise.
464
465 * cfgcleanup.c (try_simplify_condjump): Strengthen local
466 "cbranch_insn" from rtx to rtx_insn *.
467 (thread_jump): Likewise for local "insn".
468 (try_forward_edges): Likewise for local "last".
469 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
470 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
471 "real_b_end".
472 (can_replace_by): Likewise for params "i1", "i2".
473 (old_insns_match_p): Likewise.
474 (merge_notes): Likewise.
475 (walk_to_nondebug_insn): Likewise for param "i1".
476 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
477 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
478 "afterlast1", "afterlast2" from rtx to rtx_insn *.
479 (flow_find_head_matching_sequence): Strengthen params "f1" and
480 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
481 "last1", "last2", "beforelast1", "beforelast2" from rtx to
482 rtx_insn *.
483 (outgoing_edges_match): Likewise for locals "last1", "last2".
484 (try_crossjump_to_edge): Likewise for local "insn".
485 Replace call to for_each_rtx with for_each_rtx_in_insn.
486
487 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
488 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
489 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
490 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
491 (try_optimize_cfg): Strengthen local "last" from rtx to
492 rtx_insn *.
493 (delete_dead_jumptables): Likewise for locals "insn", "next",
494 "label".
495
496 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
497 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
498 "rtx else_first_tail", to reflect the basic-block.h changes above.
499
500 2014-08-21 David Malcolm <dmalcolm@redhat.com>
501
502 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
503 rtx_insn *.
504 (purge_dead_tablejump_edges): Likewise.
505 (find_bb_boundaries): Likewise for locals "insn", "end",
506 "flow_transfer_insn".
507
508 2014-08-21 David Malcolm <dmalcolm@redhat.com>
509
510 * caller-save.c (save_call_clobbered_regs): Strengthen locals
511 "ins" and "prev" from rtx to rtx_insn *.
512
513 2014-08-21 David Malcolm <dmalcolm@redhat.com>
514
515 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
516 rtx_insn *.
517 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
518 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
519 "scan_start".
520 (load_register_parameters): Likewise for local "before_arg".
521 (check_sibcall_argument_overlap): Likewise for param "insn".
522 (expand_call): Likewise for locals "normal_call_insns",
523 "tail_call_insns", "insns", "before_call", "after_args",
524 "before_arg", "last", "prev". Strengthen one of the "last" from
525 rtx to rtx_call_insn *.
526 (fixup_tail_calls): Strengthen local "insn" from rtx to
527 rtx_insn *.
528 (emit_library_call_value_1): Likewise for locals "before_call" and
529 "last".
530
531 2014-08-21 David Malcolm <dmalcolm@redhat.com>
532
533 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
534 and "last" from rtx to rtx_insn *.
535 (expand_builtin_nonlocal_goto): Likewise for local "insn".
536 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
537 rtx_call_insn *.
538 (expand_errno_check): Strengthen local "lab" from rtx to
539 rtx_code_label *.
540 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
541 rtx_insn *.
542 (expand_builtin_mathfn_2): Likewise.
543 (expand_builtin_mathfn_ternary): Likewise.
544 (expand_builtin_mathfn_3): Likewise.
545 (expand_builtin_interclass_mathfn): Likewise for local "last".
546 (expand_builtin_int_roundingfn): Likewise for local "insns".
547 (expand_builtin_int_roundingfn_2): Likewise.
548 (expand_builtin_strlen): Likewise for local "before_strlen".
549 (expand_builtin_strncmp): Likewise for local "seq".
550 (expand_builtin_signbit): Likewise for local "last".
551 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
552 from rtx to rtx_code_label *.
553 (expand_stack_restore): Strengthen local "prev" from rtx to
554 rtx_insn *.
555
556 2014-08-21 David Malcolm <dmalcolm@redhat.com>
557
558 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
559 to rtx_insn *.
560 (struct btr_def_s): Likewise.
561 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
562 const rtx_insn *.
563 (add_btr_def): Likewise.
564 (new_btr_user): Likewise.
565 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
566 rtx to rtx_insn *.
567 (link_btr_uses): Likewise.
568 (move_btr_def): Likewise for locals "insp", "old_insn",
569 "new_insn". Add checked cast to rtx_insn * for now on result of
570 gen_move_insn.
571 (can_move_up): Strengthen param "insn" from const_rtx to
572 const rtx_insn *.
573
574 2014-08-21 David Malcolm <dmalcolm@redhat.com>
575
576 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
577 rtx_insn *.
578 (get_uncond_jump_length): Likewise for locals "label", "jump".
579 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
580 "jump", "insn".
581 (add_labels_and_missing_jumps): Likewise for local "new_jump".
582 (fix_up_fall_thru_edges): Likewise for local "old_jump".
583 (find_jump_block): Likewise for local "insn".
584 (fix_crossing_conditional_branches): Likewise for locals
585 "old_jump", "new_jump".
586 (fix_crossing_unconditional_branches): Likewise for locals
587 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
588 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
589
590 2014-08-21 David Malcolm <dmalcolm@redhat.com>
591
592 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
593 rtx to rtx_insn *.
594 (struct mem_insn): Likewise for field "insn".
595 (reg_next_use): Strengthen from rtx * to rtx_insn **.
596 (reg_next_inc_use): Likewise.
597 (reg_next_def): Likewise.
598 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
599 from rtx to rtx_insn *.
600 (move_insn_before): Likewise for param "next_insn" and local "insns".
601 (attempt_change): Likewise for local "mov_insn".
602 (try_merge): Likewise for param "last_insn".
603 (get_next_ref): Likewise for return type and local "insn".
604 Strengthen param "next_array" from rtx * to rtx_insn **.
605 (parse_add_or_inc): Strengthen param "insn" from rtx to
606 rtx_insn *.
607 (find_inc): Likewise for locals "insn" and "other_insn" (three of
608 the latter).
609 (merge_in_block): Likewise for locals "insn", "curr",
610 "other_insn".
611 (pass_inc_dec::execute): Update allocations of the arrays to
612 reflect the stronger types.
613
614 2014-08-21 David Malcolm <dmalcolm@redhat.com>
615
616 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
617 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
618 from rtx to rtx_code_label *.
619
620 2014-08-21 David Malcolm <dmalcolm@redhat.com>
621
622 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
623 to rtx_insn *.
624
625 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
626
627 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
628 generated a warning and prevented bootstrapping the compiler.
629
630 2014-08-21 David Malcolm <dmalcolm@redhat.com>
631
632 * rtl.h (delete_related_insns): Strengthen return type from rtx to
633 rtx_insn *.
634
635 * jump.c (delete_related_insns): Likewise, also for locals "next"
636 and "prev".
637
638 2014-08-21 David Malcolm <dmalcolm@redhat.com>
639
640 * genautomata.c (output_internal_insn_latency_func): When writing
641 the function "internal_insn_latency" to insn-automata.c,
642 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
643 allowing the optional guard function of (define_bypass) clauses to
644 expect a pair of rtx_insn *, rather than a pair of rtx.
645 (output_insn_latency_func): When writing the function
646 "insn_latency", add an "uncast_" prefix to params "insn" and
647 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
648 using checked casts from the params, thus enabling the above
649 change to the generated "internal_insn_latency" function.
650
651 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
652
653 PR tree-optimization/62091
654 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
655 handle correctly arrays.
656 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
657 inheritance binfos.
658 (record_known_type): Walk into inner type.
659 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
660 condition on no type changes.
661
662 2014-08-21 David Malcolm <dmalcolm@redhat.com>
663
664 * genattrtab.c (write_attr_get): Within the generated get_attr_
665 functions, rename param "insn" to "uncast_insn" and reintroduce
666 "insn" as an local rtx_insn * using a checked cast, so that "insn"
667 is an rtx_insn * within insn-attrtab.c
668
669 2014-08-21 David Malcolm <dmalcolm@redhat.com>
670
671 * output.h (peephole): Strengthen return type from rtx to
672 rtx_insn *.
673 * rtl.h (delete_for_peephole): Likewise for both params.
674 * genpeep.c (main): In generated "peephole" function, strengthen
675 return type and local "insn" from rtx to rtx_insn *. For now,
676 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
677 rtx_insn *, with a checked cast.
678 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
679 locals "insn", "next", "prev" from rtx to rtx_insn *.
680
681 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
682
683 PR tree-optimization/62112
684 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
685 * gimple-iterator.h (gsi_replace): Return bool.
686 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
687 moved from ref_may_alias_global_p.
688 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
689 New overloads.
690 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
691 (stmt_kills_ref_p_1): Rename...
692 (stmt_kills_ref_p): ... to this.
693 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
694 stmt_kills_ref_p): Declare.
695 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
696 Move the self-assignment case...
697 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
698
699 2014-08-21 David Malcolm <dmalcolm@redhat.com>
700
701 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
702
703 * emit-rtl.c (try_split): Likewise, also for locals "before" and
704 "after". For now, don't strengthen param "trial", which requires
705 adding checked casts when returning it.
706
707 2014-08-21 David Malcolm <dmalcolm@redhat.com>
708
709 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
710 "label" from rtx to rtx_code_label *. Strengthen param 1 of
711 "var_location" hook from rtx to rtx_insn *.
712 (debug_nothing_rtx): Delete in favor of...
713 (debug_nothing_rtx_code_label): New prototype.
714 (debug_nothing_rtx_rtx): Delete unused prototype.
715 (debug_nothing_rtx_insn): New prototype.
716
717 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
718 invoking debug_hooks->var_location (in two places, one in a NOTE
719 case of a switch statement, the other guarded by a CALL_P
720 conditional. Add checked cast to rtx_code_label * when invoking
721 debug_hooks->label (within CODE_LABEL case of switch statement).
722
723 * dbxout.c (dbx_debug_hooks): Update "label" hook from
724 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
725 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
726 (xcoff_debug_hooks): Likewise.
727 * debug.c (do_nothing_debug_hooks): Likewise.
728 (debug_nothing_rtx): Delete in favor of...
729 (debug_nothing_rtx_insn): New function.
730 (debug_nothing_rtx_rtx): Delete unused function.
731 (debug_nothing_rtx_code_label): New function.
732 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
733 debug_nothing_rtx to debug_nothing_rtx_code_label.
734 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
735 to rtx_insn *.
736 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
737 debug_nothing_rtx to debug_nothing_rtx_insn.
738 (sdbout_label): Strengthen param "insn" from rtx to
739 rtx_code_label *.
740 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
741 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
742 "var_location" hook from debug_nothing_rtx to
743 debug_nothing_rtx_insn.
744
745 2014-08-21 David Malcolm <dmalcolm@redhat.com>
746
747 * recog.h (insn_output_fn): Update this function typedef to match
748 the changes below to the generated output functions, strengthening
749 the 2nd param from rtx to rtx_insn *.
750
751 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
752 insn when invoking an output function, to match the new signature
753 of insn_output_fn with a stronger second param.
754
755 * genconditions.c (write_header): In the generated code for
756 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
757 to match the other changes in this patch.
758
759 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
760 the generated "gen_" functions from rtx to rtx_insn * within their
761 implementations.
762
763 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
764 the subfunctions within the generated "recog_", "split", "peephole2"
765 function trees from rtx to rtx_insn *. For now, the top-level
766 generated functions ("recog", "split", "peephole2") continue to
767 take a plain rtx for "insn", to avoid introducing dependencies on
768 other patches. Rename this 2nd param from "insn" to
769 "uncast_insn", and reintroduce "insn" as a local variable of type
770 rtx_insn *, initialized at the top of the generated function with
771 a checked cast on "uncast_insn".
772 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
773 the generated "gen_" functions from rtx to rtx_insn * within their
774 prototypes.
775
776 * genoutput.c (process_template): Strengthen the 2nd param within
777 the generated "output_" functions "insn" from rtx to rtx_insn *.
778
779 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
780
781 * tree-profile.c (tree_profiling): Skip external functions
782 when doing coverage instrumentation.
783 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
784
785 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
786
787 * config/rs6000/altivec.h (vec_cpsgn): New #define.
788 (vec_mergee): Likewise.
789 (vec_mergeo): Likewise.
790 (vec_cntlz): Likewise.
791 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
792 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
793 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
794 VMRGEW, and VMRGOW.
795 * doc/extend.texi: Document various forms of vec_cpsgn,
796 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
797 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
798 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
799 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
800 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
801
802 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
803
804 * config/rs6000/rs6000.c (context.h): New include.
805 (tree-pass.h): Likewise.
806 (make_pass_analyze_swaps): New decl.
807 (rs6000_option_override): Register pass_analyze_swaps.
808 (swap_web_entry): New subsclass of web_entry_base (df.h).
809 (special_handling_values): New enum.
810 (union_defs): New function.
811 (union_uses): Likewise.
812 (insn_is_load_p): Likewise.
813 (insn_is_store_p): Likewise.
814 (insn_is_swap_p): Likewise.
815 (rtx_is_swappable_p): Likewise.
816 (insn_is_swappable_p): Likewise.
817 (chain_purpose): New enum.
818 (chain_contains_only_swaps): New function.
819 (mark_swaps_for_removal): Likewise.
820 (swap_const_vector_halves): Likewise.
821 (adjust_subreg_index): Likewise.
822 (permute_load): Likewise.
823 (permute_store): Likewise.
824 (handle_special_swappables): Likewise.
825 (replace_swap_with_copy): Likewise.
826 (dump_swap_insn_table): Likewise.
827 (rs6000_analyze_swaps): Likewise.
828 (pass_data_analyze_swaps): New pass_data.
829 (pass_analyze_swaps): New rtl_opt_pass.
830 (make_pass_analyze_swaps): New function.
831 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
832
833 2014-08-21 David Malcolm <dmalcolm@redhat.com>
834
835 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
836 type from rtx to rtx_insn *.
837 (create_copy_of_insn_rtx): Likewise.
838 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
839 (create_copy_of_insn_rtx): Likewise, also for local "res".
840
841 2014-08-21 David Malcolm <dmalcolm@redhat.com>
842
843 * rtl.h (find_first_parameter_load): Strengthen return type from
844 rtx to rtx_insn *.
845 * rtlanal.c (find_first_parameter_load): Strengthen return type
846 from rtx to rtx_insn *. Add checked cast for now, to postpone
847 strengthening the params.
848
849 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
850
851 PR fortran/44054
852 * diagnostic.c: Set default caret.
853 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
854 line is needed.
855 * diagnostic.h (struct diagnostic_context):
856
857 2014-08-21 David Malcolm <dmalcolm@redhat.com>
858
859 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
860 (sel_bb_head): Strengthen return type insn_t (currently just an
861 rtx) to rtx_insn *.
862 (sel_bb_end): Likewise.
863
864 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
865 (sel_bb_head): Strengthen return type and local "head" from
866 insn_t (currently just an rtx) to rtx_insn *.
867 (sel_bb_end): Likewise for return type.
868 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
869 working with insn.
870
871 2014-08-21 David Malcolm <dmalcolm@redhat.com>
872
873 * basic-block.h (get_last_bb_insn): Strengthen return type from
874 rtx to rtx_insn *.
875 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
876 end".
877
878 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
879
880 PR fortran/44054
881 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
882 to here ...
883 (diagnostic_report_diagnostic): ... from here.
884 * toplev.c (general_init): Move code to c-family.
885
886 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
887
888 * df.h (web_entry_base): Replace existing struct web_entry with a
889 new class web_entry_base with only the predecessor member.
890 (unionfind_root): Remove declaration and move to class member.
891 (unionfind_union): Remove declaration and move to friend
892 function.
893 (union_defs): Remove declaration.
894 * web.c (web_entry_base::unionfind_root): Modify to be member
895 function and adjust accessors.
896 (unionfind_union): Modify to be friend function and adjust
897 accessors.
898 (web_entry): New subclass of web_entry_base containing the reg
899 member.
900 (union_match_dups): Modify for struct -> class changes.
901 (union_defs): Likewise.
902 (entry_register): Likewise.
903 (pass_web::execute): Likewise.
904
905 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
906
907 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
908 builtin define __VEC_ELEMENT_REG_ORDER__.
909
910 2014-08-20 Martin Jambor <mjambor@suse.cz>
911 Wei Mi <wmi@google.com>
912
913 PR ipa/60449
914 PR middle-end/61776
915 * tree-ssa-operands.c (update_stmt_operands): Remove
916 MODIFIED_NORETURN_CALLS.
917 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
918 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
919 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
920 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
921 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
922 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
923 (gimple_call_set_ctrl_altering): New func.
924 (gimple_call_ctrl_altering_p): Ditto.
925 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
926 (make_blocks): Use gimple_call_initialize_ctrl_altering.
927 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
928 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
929 remove MODIFIED_NORETURN_CALLS.
930
931 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
932
933 * coverage.c (coverage_compute_profile_id): Return non-0;
934 also handle symbols with unique name.
935 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
936
937 2014-08-20 Steve Ellcey <sellcey@mips.com>
938
939 PR middle-end/49191
940 * doc/sourcebuild.texi (non_strict_align): New.
941
942 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
943
944 * cgraphunit.c (ipa_passes, compile): Reshedule
945 symtab_remove_unreachable_nodes passes; update comments.
946 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
947 TODO_remove_functions before the pass; the functions ought to be
948 already removed.
949 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
950 TODO_remove_functions.
951 * passes.c (pass_data_early_local_passes): Do not schedule function
952 removal.
953 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
954
955 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
956
957 PR c/59304
958 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
959 before setting the option.
960 * diagnostic.c (diagnostic_classify_diagnostic): Record
961 command-line status.
962
963 2014-08-20 Richard Biener <rguenther@suse.de>
964
965 PR lto/62190
966 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
967 to build uint{16,32,64}_type_node.
968
969 2014-08-20 Terry Guo <terry.guo@arm.com>
970
971 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
972 with immediate_operand.
973
974 2014-08-20 David Malcolm <dmalcolm@redhat.com>
975
976 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
977 "insn" from an as_a to a safe_as_a, for the case when "insn" is
978 NULL.
979
980 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
981
982 PR preprocessor/51303
983 * incpath.c (remove_duplicates): Use cpp_warning.
984
985 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
986
987 PR c/60975
988 PR c/53063
989 * doc/options.texi (CPP): Document it.
990 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
991 * optc-gen.awk: Handle CPP.
992 * opth-gen.awk: Likewise.
993
994 2014-08-19 David Malcolm <dmalcolm@redhat.com>
995
996 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
997 rtx_insn *.
998 (duplicate_insn_chain): Likewise.
999 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
1000 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
1001 checked cast for now (until we can strengthen the params in the
1002 same way).
1003 (duplicate_insn_chain): Likewise.
1004
1005 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1006
1007 * rtl.h (next_cc0_user): Strengthen return type from rtx to
1008 rtx_insn *.
1009 (prev_cc0_setter): Likewise.
1010
1011 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
1012 rtx_insn *, adding checked casts for now as necessary.
1013 (prev_cc0_setter): Likewise.
1014
1015 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1016
1017 * expr.h (emit_move_insn): Strengthen return type from rtx to
1018 rtx_insn *.
1019 (emit_move_insn_1): Likewise.
1020 (emit_move_complex_push): Likewise.
1021 (emit_move_complex_parts): Likewise.
1022
1023 * expr.c (emit_move_via_integer): Strengthen return type from rtx
1024 to rtx_insn *. Replace use of NULL_RTX with NULL when working
1025 with insns.
1026 (emit_move_complex_push): Strengthen return type from rtx to
1027 rtx_insn *.
1028 (emit_move_complex): Likewise, also for local "ret".
1029 (emit_move_ccmode): Likewise.
1030 (emit_move_multi_word): Likewise for return type and locals
1031 "last_insn", "seq".
1032 (emit_move_insn_1): Likewise for return type and locals "result",
1033 "ret".
1034 (emit_move_insn): Likewise for return type and local "last_insn".
1035 (compress_float_constant): Likewise.
1036
1037 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1038
1039 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
1040 from rtx to rtx_insn *.
1041
1042 * rtl.h (emit_insn_before): Likewise.
1043 (emit_insn_before_noloc): Likewise.
1044 (emit_insn_before_setloc): Likewise.
1045 (emit_jump_insn_before): Likewise.
1046 (emit_jump_insn_before_noloc): Likewise.
1047 (emit_jump_insn_before_setloc): Likewise.
1048 (emit_call_insn_before): Likewise.
1049 (emit_call_insn_before_noloc): Likewise.
1050 (emit_call_insn_before_setloc): Likewise.
1051 (emit_debug_insn_before): Likewise.
1052 (emit_debug_insn_before_noloc): Likewise.
1053 (emit_debug_insn_before_setloc): Likewise.
1054 (emit_label_before): Likewise.
1055 (emit_insn_after): Likewise.
1056 (emit_insn_after_noloc): Likewise.
1057 (emit_insn_after_setloc): Likewise.
1058 (emit_jump_insn_after): Likewise.
1059 (emit_jump_insn_after_noloc): Likewise.
1060 (emit_jump_insn_after_setloc): Likewise.
1061 (emit_call_insn_after): Likewise.
1062 (emit_call_insn_after_noloc): Likewise.
1063 (emit_call_insn_after_setloc): Likewise.
1064 (emit_debug_insn_after): Likewise.
1065 (emit_debug_insn_after_noloc): Likewise.
1066 (emit_debug_insn_after_setloc): Likewise.
1067 (emit_label_after): Likewise.
1068 (emit_insn): Likewise.
1069 (emit_debug_insn): Likewise.
1070 (emit_jump_insn): Likewise.
1071 (emit_call_insn): Likewise.
1072 (emit_label): Likewise.
1073 (gen_clobber): Likewise.
1074 (emit_clobber): Likewise.
1075 (gen_use): Likewise.
1076 (emit_use): Likewise.
1077 (emit): Likewise.
1078
1079 (emit_barrier_before): Strengthen return type from rtx to
1080 rtx_barrier *.
1081 (emit_barrier_after): Likewise.
1082 (emit_barrier): Likewise.
1083
1084 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
1085 from rtx to rtx_insn *. Add checked casts for now when converting
1086 "last" from rtx to rtx_insn *.
1087 (emit_insn_before_noloc): Likewise for return type.
1088 (emit_jump_insn_before_noloc): Likewise.
1089 (emit_call_insn_before_noloc): Likewise.
1090 (emit_debug_insn_before_noloc): Likewise.
1091 (emit_barrier_before): Strengthen return type and local "insn"
1092 from rtx to rtx_barrier *.
1093 (emit_label_before): Strengthen return type from rtx to
1094 rtx_insn *. Add checked cast for now when returning param
1095 (emit_pattern_after_noloc): Strengthen return type from rtx to
1096 rtx_insn *. Add checked casts for now when converting "last" from
1097 rtx to rtx_insn *.
1098 (emit_insn_after_noloc): Strengthen return type from rtx to
1099 rtx_insn *.
1100 (emit_jump_insn_after_noloc): Likewise.
1101 (emit_call_insn_after_noloc): Likewise.
1102 (emit_debug_insn_after_noloc): Likewise.
1103 (emit_barrier_after): Strengthen return type from rtx to
1104 rtx_barrier *.
1105 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
1106 Add checked cast for now when converting "label" from rtx to
1107 rtx_insn *.
1108 (emit_pattern_after_setloc): Strengthen return type from rtx to
1109 rtx_insn *. Add checked casts for now when converting "last" from
1110 rtx to rtx_insn *.
1111 (emit_pattern_after): Strengthen return type from rtx to
1112 rtx_insn *.
1113 (emit_insn_after_setloc): Likewise.
1114 (emit_insn_after): Likewise.
1115 (emit_jump_insn_after_setloc): Likewise.
1116 (emit_jump_insn_after): Likewise.
1117 (emit_call_insn_after_setloc): Likewise.
1118 (emit_call_insn_after): Likewise.
1119 (emit_debug_insn_after_setloc): Likewise.
1120 (emit_debug_insn_after): Likewise.
1121 (emit_pattern_before_setloc): Likewise. Add checked casts for now
1122 when converting "last" from rtx to rtx_insn *.
1123 (emit_pattern_before): Strengthen return type from rtx to
1124 rtx_insn *.
1125 (emit_insn_before_setloc): Likewise.
1126 (emit_insn_before): Likewise.
1127 (emit_jump_insn_before_setloc): Likewise.
1128 (emit_jump_insn_before): Likewise.
1129 (emit_call_insn_before_setloc): Likewise.
1130 (emit_call_insn_before): Likewise.
1131 (emit_debug_insn_before_setloc): Likewise.
1132 (emit_debug_insn_before): Likewise.
1133 (emit_insn): Strengthen return type and locals "last", "insn",
1134 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
1135 within cases where we know we have an insn.
1136 (emit_debug_insn): Likewise.
1137 (emit_jump_insn): Likewise.
1138 (emit_call_insn): Strengthen return type and local "insn" from rtx
1139 to rtx_insn *.
1140 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
1141 a checked cast to rtx_insn * for now on "label".
1142 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
1143 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
1144 (emit_use): Likewise.
1145 (gen_use): Likewise, also for local "seq".
1146 (emit): Likewise for return type and local "insn".
1147 (rtx_insn): Likewise for return type and local "new_rtx".
1148
1149 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
1150 from rtx to rtx_barrier *.
1151
1152 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
1153 changed return type from rtx to rtx_insn *, we must update
1154 "emit_fn" type, and this in turn means updating...
1155 (frame_insn): ...this. Strengthen return type from rtx to
1156 rtx_insn *. Introduce a new local "insn" of the appropriate type.
1157
1158 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1159
1160 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
1161 rtx to rtx_jump_table_data *. Also for local.
1162 * rtl.h (emit_jump_table_data): Likewise.
1163
1164 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1165
1166 * basic-block.h (create_basic_block_structure): Strengthen third
1167 param "bb_note" from rtx to rtx_note *.
1168 * rtl.h (emit_note_before): Strengthen return type from rtx to
1169 rtx_note *.
1170 (emit_note_after): Likewise.
1171 (emit_note): Likewise.
1172 (emit_note_copy): Likewise. Also, strengthen param similarly.
1173 * function.h (struct rtl_data): Strengthen field
1174 "x_stack_check_probe_note" from rtx to rtx_note *.
1175
1176 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
1177 from rtx to rtx_note *.
1178 * cfgrtl.c (create_basic_block_structure): Strengthen third param
1179 "bb_note" from rtx to rtx_note *.
1180 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
1181 when calling emit_note_copy.
1182 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
1183 rtx_note *.
1184 (emit_note_after): Likewise.
1185 (emit_note_before): Likewise.
1186 (emit_note_copy): Likewise. Also, strengthen param similarly.
1187 (emit_note): Likewise.
1188 * except.c (emit_note_eh_region_end): Likewise for return type.
1189 Strengthen local "next" from rtx to rtx_insn *.
1190 (convert_to_eh_region_ranges): Strengthen local "note"
1191 from rtx to rtx_note *.
1192 * final.c (change_scope): Likewise.
1193 (reemit_insn_block_notes): Likewise, for both locals named "note".
1194 Also, strengthen local "insn" from rtx to rtx_insn *.
1195 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
1196 rtx to rtx_note *.
1197 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
1198 strengthen local "seq" from rtx to rtx_insn *.
1199 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
1200 to rtx_note *.
1201 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
1202 vec<rtx_note *>.
1203 (get_bb_note_from_pool): Strengthen return type from rtx to
1204 rtx_note *.
1205 (sel_create_basic_block): Strengthen local "new_bb_note" from
1206 insn_t to rtx_note *.
1207 * var-tracking.c (emit_note_insn_var_location): Strengthen local
1208 "note" from rtx to rtx_note *.
1209 (emit_notes_in_bb): Likewise.
1210
1211 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1212
1213 * function.h (struct rtl_data): Strengthen field
1214 "x_parm_birth_insn" from rtx to rtx_insn *.
1215 * function.c (struct assign_parm_data_all): Strengthen fields
1216 "first_conversion_insn" and "last_conversion_insn" from rtx to
1217 rtx_insn *.
1218
1219 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1220
1221 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
1222 to rtx_insn *; also for local "var_end_seq".
1223 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
1224 (maybe_cleanup_end_of_block): Likewise for param "last" and local
1225 "insn".
1226 (expand_gimple_cond): Likewise for locals "last2" and "last".
1227 (mark_transaction_restart_calls): Likewise for local "insn".
1228 (expand_gimple_stmt): Likewise for return type and locals "last"
1229 and "insn".
1230 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
1231 (avoid_complex_debug_insns): Likewise for param "insn".
1232 (expand_debug_locations): Likewise for locals "insn", "last",
1233 "prev_insn" and "insn2".
1234 (expand_gimple_basic_block): Likewise for local "last".
1235 (construct_exit_block): Likewise for locals "head", "end",
1236 "orig_end".
1237 (pass_expand::execute): Likewise for locals "var_seq",
1238 "var_ret_seq", "next".
1239
1240 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1241
1242 * asan.h (asan_emit_stack_protection): Strengthen return type from
1243 rtx to rtx_insn *.
1244 * asan.c (asan_emit_stack_protection): Likewise. Add local
1245 "insns" to hold the return value.
1246
1247 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1248
1249 * basic-block.h (bb_note): Strengthen return type from rtx to
1250 rtx_note *.
1251 * sched-int.h (bb_note): Likewise.
1252 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
1253
1254 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1255
1256 * rtl.h (make_insn_raw): Strengthen return type from rtx to
1257 rtx_insn *.
1258
1259 * emit-rtl.c (make_insn_raw): Strengthen return type and local
1260 "insn" from rtx to rtx_insn *.
1261 (make_debug_insn_raw): Strengthen return type from rtx to
1262 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
1263 (make_jump_insn_raw): Strengthen return type from rtx to
1264 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
1265 (make_call_insn_raw): Strengthen return type from rtx to
1266 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
1267 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
1268 callback from rtx to rtx_insn *; likewise for local "insn" and
1269 "next", adding a checked cast to rtx_insn in the relevant cases of
1270 the switch statement.
1271 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
1272 callback from rtx to rtx_insn *.
1273 (emit_pattern_after_setloc): Likewise.
1274 (emit_pattern_after): Likewise.
1275 (emit_pattern_before_setloc): Likewise.
1276 (emit_pattern_before): Likewise.
1277
1278 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1279
1280 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
1281 rtx_call_insn *.
1282 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
1283 accepting an rtx_insn *.
1284 (last_call_insn): Strengthen return type from rtx to
1285 rtx_call_insn *.
1286
1287 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1288
1289 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
1290 "insns" from rtx to rtx_insn *.
1291 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
1292 locals "insn" and "prev".
1293
1294 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1295
1296 * rtl.h (tablejump_p): Strengthen third param from rtx * to
1297 rtx_jump_table_data **.
1298
1299 * cfgbuild.c (make_edges): Introduce local "table", using it in
1300 place of "tmp" for jump table data.
1301 (find_bb_boundaries): Strengthen local "table" from rtx to
1302 rtx_jump_table_data *.
1303 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1304 (outgoing_edges_match): Likewise for locals "table1" and "table2".
1305 (try_crossjump_to_edge): Likewise.
1306 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
1307 "table".
1308 (patch_jump_insn): Introduce local "table", using it in place of
1309 "tmp" for jump table data.
1310 (force_nonfallthru_and_redirect): Introduce local "table", so that
1311 call to tablejump_p can receive an rtx_jump_table_data **. Update
1312 logic around the call to overwrite "note" appropriately if
1313 tablejump_p returns non-zero.
1314 (get_last_bb_insn): Introduce local "table", using it in place of
1315 "tmp" for jump table data.
1316 * dwarf2cfi.c (create_trace_edges): Likewise.
1317
1318 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
1319 from rtx to rtx_jump_table_data *.
1320 (create_fix_barrier): Strengthen local "tmp" from rtx to
1321 rtx_jump_table_data *.
1322 (arm_reorg): Likewise for local "table".
1323
1324 * config/s390/s390.c (s390_chunkify_start): Likewise.
1325
1326 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
1327
1328 * jump.c (delete_related_insns): Strengthen local "lab_next" from
1329 rtx to rtx_jump_table_data *.
1330
1331 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
1332 rtx_jump_table_data **. Add a checked cast when writing through
1333 the pointer: we know there that local "table" is non-NULL and that
1334 JUMP_TABLE_DATA_P (table) holds.
1335 (label_is_jump_target_p): Introduce local "table", using it in
1336 place of "tmp" for jump table data.
1337
1338 2014-08-19 Marek Polacek <polacek@redhat.com>
1339
1340 PR c++/62153
1341 * doc/invoke.texi: Document -Wbool-compare.
1342
1343 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1344
1345 * rtl.h (entry_of_function): Strengthen return type from rtx to
1346 rtx_insn *.
1347 * cfgrtl.c (entry_of_function): Likewise.
1348
1349 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1350
1351 * emit-rtl.h (get_insns): Strengthen return type from rtx to
1352 rtx_insn *, adding a checked cast for now.
1353 (get_last_insn): Likewise.
1354
1355 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1356
1357 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
1358 rtx_code_label *.
1359
1360 * emit-rtl.c (gen_label_rtx): Likewise.
1361
1362 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1363
1364 * rtl.h (previous_insn): Strengthen return type from rtx to
1365 rtx_insn *.
1366 (next_insn): Likewise.
1367 (prev_nonnote_insn): Likewise.
1368 (prev_nonnote_insn_bb): Likewise.
1369 (next_nonnote_insn): Likewise.
1370 (next_nonnote_insn_bb): Likewise.
1371 (prev_nondebug_insn): Likewise.
1372 (next_nondebug_insn): Likewise.
1373 (prev_nonnote_nondebug_insn): Likewise.
1374 (next_nonnote_nondebug_insn): Likewise.
1375 (prev_real_insn): Likewise.
1376 (next_real_insn): Likewise.
1377 (prev_active_insn): Likewise.
1378 (next_active_insn): Likewise.
1379
1380 * emit-rtl.c (next_insn): Strengthen return type from rtx to
1381 rtx_insn *, adding a checked cast.
1382 (previous_insn): Likewise.
1383 (next_nonnote_insn): Likewise.
1384 (next_nonnote_insn_bb): Likewise.
1385 (prev_nonnote_insn): Likewise.
1386 (prev_nonnote_insn_bb): Likewise.
1387 (next_nondebug_insn): Likewise.
1388 (prev_nondebug_insn): Likewise.
1389 (next_nonnote_nondebug_insn): Likewise.
1390 (prev_nonnote_nondebug_insn): Likewise.
1391 (next_real_insn): Likewise.
1392 (prev_real_insn): Likewise.
1393 (next_active_insn): Likewise.
1394 (prev_active_insn): Likewise.
1395
1396 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
1397 param "stepfunc" so that it returns an rtx_insn * rather than an
1398 rtx, to track the change to prev_nonnote_insn_bb, which is the
1399 only function this is called with.
1400 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
1401
1402 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
1403
1404 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
1405 assert.
1406
1407 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1408
1409 * coretypes.h (class rtx_debug_insn): Add forward declaration.
1410 (class rtx_nonjump_insn): Likewise.
1411 (class rtx_jump_insn): Likewise.
1412 (class rtx_call_insn): Likewise.
1413 (class rtx_jump_table_data): Likewise.
1414 (class rtx_barrier): Likewise.
1415 (class rtx_code_label): Likewise.
1416 (class rtx_note): Likewise.
1417
1418 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
1419 adding the invariant DEBUG_INSN_P (X).
1420 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
1421 the invariant NONJUMP_INSN_P (X).
1422 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
1423 the invariant JUMP_P (X).
1424 (class rtx_call_insn): New, a subclass of rtx_insn, adding
1425 the invariant CALL_P (X).
1426 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
1427 invariant JUMP_TABLE_DATA_P (X).
1428 (class rtx_barrier): New, a subclass of rtx_insn, adding the
1429 invariant BARRIER_P (X).
1430 (class rtx_code_label): New, a subclass of rtx_insn, adding
1431 the invariant LABEL_P (X).
1432 (class rtx_note): New, a subclass of rtx_insn, adding
1433 the invariant NOTE_P(X).
1434 (is_a_helper <rtx_debug_insn *>::test): New.
1435 (is_a_helper <rtx_nonjump_insn *>::test): New.
1436 (is_a_helper <rtx_jump_insn *>::test): New.
1437 (is_a_helper <rtx_call_insn *>::test): New.
1438 (is_a_helper <rtx_jump_table_data *>::test): New functions,
1439 overloaded for both rtx and rtx_insn *.
1440 (is_a_helper <rtx_barrier *>::test): New.
1441 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
1442 for both rtx and rtx_insn *.
1443 (is_a_helper <rtx_note *>::test): New.
1444
1445 2014-08-19 Marek Polacek <polacek@redhat.com>
1446
1447 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
1448 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
1449 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
1450 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
1451
1452 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1453
1454 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
1455 rtx_insn *. To help with transition, for now, convert from an
1456 access macro into a pair of functions: BND_TO, returning an
1457 rtx_insn *, and...
1458 (SET_BND_TO): New function, for use where BND_TO is used as an
1459 lvalue.
1460
1461 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
1462 SET_BND_TO.
1463 (BND_TO): New function, adding a checked cast.
1464 (SET_BND_TO): New function.
1465
1466 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
1467 SET_BND_TO.
1468 (compute_av_set_on_boundaries): Likewise.
1469
1470 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
1471
1472 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
1473 destination if it is used in source.
1474 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
1475 (*popcount<mode>2_falsedep_1): Likewise.
1476
1477 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
1478
1479 PR other/62168
1480 * configure.ac: Set install_gold_as_default to no first.
1481 * configure: Regenerated.
1482
1483 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1484
1485 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
1486 "note_list" field will eventually be an rtx_insn *. To help with
1487 transition, for now, convert from an access macro into a pair of
1488 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
1489 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
1490 used as an lvalue.
1491
1492 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
1493 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
1494
1495 * sel-sched-ir.c (init_bb): Likewise.
1496 (sel_restore_notes): Likewise.
1497 (move_bb_info): Likewise.
1498 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
1499 (SET_BB_NOTE_LIST): New function.
1500
1501 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1502
1503 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
1504 field will eventually be an rtx_insn *. To help with transition,
1505 for now, convert from an access macro into a pair of functions:
1506 VINSN_INSN_RTX, returning an rtx_insn *, and...
1507 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
1508 is used as an lvalue.
1509
1510 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
1511 SET_VINSN_INSN_RTX where it's used as an lvalue.
1512 (VINSN_INSN_RTX): New function.
1513 (SET_VINSN_INSN_RTX): New function.
1514
1515 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1516
1517 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
1518 eventually be rtx_insn *, but to help with transition, for now,
1519 convert from an access macro into a pair of functions: DEP_PRO
1520 returning an rtx_insn * and...
1521 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
1522 lvalue, returning an rtx&.
1523 (DEP_CON): Analogous changes to DEP_PRO above.
1524 (SET_DEP_CON): Likewise.
1525
1526 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
1527 an lvalue to SET_DEP_CON.
1528 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
1529 (sd_copy_back_deps): Likewise for DEP_CON.
1530 (DEP_PRO): New function, adding a checked cast for now.
1531 (DEP_CON): Likewise.
1532 (SET_DEP_PRO): New function.
1533 (SET_DEP_CON): Likewise.
1534
1535 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
1536
1537 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
1538 (extra_options): Add i386/cygwin.opt.
1539 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
1540 (CPP_SPEC): Accept -pthread.
1541 (LINK_SPEC): Ditto.
1542 (GOMP_SELF_SPECS): Update comment.
1543 * config/i386/cygwin.opt: New file for -pthread flag.
1544
1545 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1546
1547 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
1548 * df.h (DF_REF_INSN): Convert from a macro to a function, so
1549 that we can return an rtx_insn *.
1550
1551 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
1552
1553 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
1554 when building executables, not DLLs. Add --large-address-aware
1555 under the same conditions.
1556 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
1557 when building executables, not DLLs. Add --large-address-aware
1558 under the same conditions when using -m32.
1559
1560 * config/i386/cygwin-stdint.h: Throughout, make type
1561 definitions dependent on target architecture, not host.
1562
1563 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1564
1565 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
1566 the return type from rtx to rtx_insn *, which will enable various
1567 conversions in followup patches. For now this is is done by a
1568 checked cast.
1569 (NEXT_INSN): Likewise.
1570 (SET_PREV_INSN): Convert to an inline function. This is intended
1571 for use as an lvalue, and so returns an rtx& to allow in-place
1572 modification.
1573 (SET_NEXT_INSN): Likewise.
1574
1575 2014-07-08 Mark Wielaard <mjw@redhat.com>
1576
1577 PR debug/59051
1578 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
1579
1580 2014-08-19 Marek Polacek <polacek@redhat.com>
1581
1582 PR c/61271
1583 * cgraphunit.c (handle_alias_pairs): Fix condition.
1584
1585 2014-08-19 Richard Biener <rguenther@suse.de>
1586
1587 * gimple-fold.c (fold_gimple_assign): Properly build a
1588 null-pointer constant when devirtualizing addresses.
1589
1590 2014-07-07 Mark Wielaard <mjw@redhat.com>
1591
1592 * dwarf2out.c (decl_quals): New function.
1593 (modified_type_die): Take one cv_quals argument instead of two,
1594 one for const and one for volatile.
1595 (add_type_attribute): Likewise.
1596 (generic_parameter_die): Call add_type_attribute with one modifier
1597 argument.
1598 (base_type_for_mode): Likewise.
1599 (add_bounds_info): Likewise.
1600 (add_subscript_info): Likewise.
1601 (gen_array_type_die): Likewise.
1602 (gen_descr_array_type_die): Likewise.
1603 (gen_entry_point_die): Likewise.
1604 (gen_enumeration_type_die): Likewise.
1605 (gen_formal_parameter_die): Likewise.
1606 (gen_subprogram_die): Likewise.
1607 (gen_variable_die): Likewise.
1608 (gen_const_die): Likewise.
1609 (gen_field_die): Likewise.
1610 (gen_pointer_type_die): Likewise.
1611 (gen_reference_type_die): Likewise.
1612 (gen_ptr_to_mbr_type_die): Likewise.
1613 (gen_inheritance_die): Likewise.
1614 (gen_subroutine_type_die): Likewise.
1615 (gen_typedef_die): Likewise.
1616 (force_type_die): Likewise.
1617
1618 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1619
1620 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
1621 if unset.
1622 * configure: Regenerate.
1623
1624 2014-08-19 Richard Biener <rguenther@suse.de>
1625
1626 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
1627 DECL_EXTERNALs in BLOCKs as non-references.
1628 * tree-streamer-out.c (streamer_write_chain): Likewise.
1629
1630 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
1631 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1632 Anna Tikhonova <anna.tikhonova@intel.com>
1633 Ilya Tocar <ilya.tocar@intel.com>
1634 Andrey Turetskiy <andrey.turetskiy@intel.com>
1635 Ilya Verbin <ilya.verbin@intel.com>
1636 Kirill Yukhin <kirill.yukhin@intel.com>
1637 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1638
1639 * config/i386/sse.md
1640 (define_mode_iterator VI48_AVX512F): Delete.
1641 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
1642 (define_mode_iterator VI2_AVX512VL): Ditto.
1643 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
1644 Delete.
1645 (define_insn
1646 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
1647 New.
1648 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
1649 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
1650 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1651 with VI48_AVX512F_AVX512VL): New.
1652 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1653 with VI2_AVX512VL): Ditto.
1654
1655 2014-08-19 Marek Polacek <polacek@redhat.com>
1656
1657 * doc/invoke.texi: Document -Wc99-c11-compat.
1658
1659 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1660
1661 * rtl.h (PREV_INSN): Split macro in two: the existing one,
1662 for rvalues, and...
1663 (SET_PREV_INSN): New macro, for use as an lvalue.
1664 (NEXT_INSN, SET_NEXT_INSN): Likewise.
1665
1666 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
1667 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
1668 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1669 (fixup_abnormal_edges): Likewise.
1670 (unlink_insn_chain): Likewise.
1671 (fixup_reorder_chain): Likewise.
1672 (cfg_layout_delete_block): Likewise.
1673 (cfg_layout_merge_blocks): Likewise.
1674 * combine.c (update_cfg_for_uncondjump): Likewise.
1675 * emit-rtl.c (link_insn_into_chain): Likewise.
1676 (remove_insn): Likewise.
1677 (delete_insns_since): Likewise.
1678 (reorder_insns_nobb): Likewise.
1679 (emit_insn_after_1): Likewise.
1680 * final.c (rest_of_clean_state): Likewise.
1681 (final_scan_insn): Likewise.
1682 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
1683 * haifa-sched.c (concat_note_lists): Likewise.
1684 (remove_notes): Likewise.
1685 (restore_other_notes): Likewise.
1686 (move_insn): Likewise.
1687 (unlink_bb_notes): Likewise.
1688 (restore_bb_notes): Likewise.
1689 * jump.c (delete_for_peephole): Likewise.
1690 * optabs.c (emit_libcall_block_1): Likewise.
1691 * reorg.c (emit_delay_sequence): Likewise.
1692 (fill_simple_delay_slots): Likewise.
1693 * sel-sched-ir.c (sel_move_insn): Likewise.
1694 (sel_remove_insn): Likewise.
1695 (get_bb_note_from_pool): Likewise.
1696 * sel-sched.c (move_nop_to_previous_block): Likewise.
1697
1698 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
1699 * config/c6x/c6x.c (gen_one_bundle): Likewise.
1700 (c6x_gen_bundles): Likewise.
1701 (hwloop_optimize): Likewise.
1702 * config/frv/frv.c (frv_function_prologue): Likewise.
1703 (frv_register_nop): Likewise.
1704 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
1705 (ia64_reorg): Likewise.
1706 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
1707 (mep_make_bundle): Likewise.
1708 (mep_bundle_insns): Likewise.
1709 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1710 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
1711 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
1712
1713 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1714
1715 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
1716 return type from rtx to rtx_insn *.
1717 (BB_END): Likewise.
1718 (BB_HEADER): Likewise.
1719 (BB_FOOTER): Likewise.
1720 (SET_BB_HEAD): Convert to a function.
1721 (SET_BB_END): Likewise.
1722 (SET_BB_HEADER): Likewise.
1723 (SET_BB_FOOTER): Likewise.
1724
1725 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
1726 Strengthen the return type from rtx to rtx_insn *. For now, this
1727 is done by adding a checked cast, but this will eventually
1728 become a field lookup.
1729 (BB_END): Likewise.
1730 (BB_HEADER): Likewise.
1731 (BB_FOOTER): Likewise.
1732 (SET_BB_HEAD): New function, from macro of same name. This is
1733 intended for use as an lvalue, and so returns an rtx& to allow
1734 in-place modification.
1735 (SET_BB_END): Likewise.
1736 (SET_BB_HEADER): Likewise.
1737 (SET_BB_FOOTER): Likewise.
1738
1739 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1740
1741 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
1742 for rvalues, and...
1743 (SET_BB_HEAD): New macro, for use as a lvalue.
1744 (BB_END, SET_BB_END): Likewise.
1745 (BB_HEADER, SET_BB_HEADER): Likewise.
1746 (BB_FOOTER, SET_BB_FOOTER): Likewise.
1747
1748 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
1749 of BB_* macros into SET_BB_* macros.
1750 (fix_crossing_unconditional_branches): Likewise.
1751 * caller-save.c (save_call_clobbered_regs): Likewise.
1752 (insert_one_insn): Likewise.
1753 * cfgbuild.c (find_bb_boundaries): Likewise.
1754 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1755 (outgoing_edges_match): Likewise.
1756 (try_optimize_cfg): Likewise.
1757 * cfgexpand.c (expand_gimple_cond): Likewise.
1758 (expand_gimple_tailcall): Likewise.
1759 (expand_gimple_basic_block): Likewise.
1760 (construct_exit_block): Likewise.
1761 * cfgrtl.c (delete_insn): Likewise.
1762 (create_basic_block_structure): Likewise.
1763 (rtl_delete_block): Likewise.
1764 (rtl_split_block): Likewise.
1765 (emit_nop_for_unique_locus_between): Likewise.
1766 (rtl_merge_blocks): Likewise.
1767 (block_label): Likewise.
1768 (try_redirect_by_replacing_jump): Likewise.
1769 (emit_barrier_after_bb): Likewise.
1770 (fixup_abnormal_edges): Likewise.
1771 (record_effective_endpoints): Likewise.
1772 (relink_block_chain): Likewise.
1773 (fixup_reorder_chain): Likewise.
1774 (fixup_fallthru_exit_predecessor): Likewise.
1775 (cfg_layout_duplicate_bb): Likewise.
1776 (cfg_layout_split_block): Likewise.
1777 (cfg_layout_delete_block): Likewise.
1778 (cfg_layout_merge_blocks): Likewise.
1779 * combine.c (update_cfg_for_uncondjump): Likewise.
1780 * emit-rtl.c (add_insn_after): Likewise.
1781 (remove_insn): Likewise.
1782 (reorder_insns): Likewise.
1783 (emit_insn_after_1): Likewise.
1784 * haifa-sched.c (get_ebb_head_tail): Likewise.
1785 (restore_other_notes): Likewise.
1786 (move_insn): Likewise.
1787 (sched_extend_bb): Likewise.
1788 (fix_jump_move): Likewise.
1789 * ifcvt.c (noce_process_if_block): Likewise.
1790 (dead_or_predicable): Likewise.
1791 * ira.c (update_equiv_regs): Likewise.
1792 * reg-stack.c (change_stack): Likewise.
1793 * sel-sched-ir.c (sel_move_insn): Likewise.
1794 * sel-sched.c (move_nop_to_previous_block): Likewise.
1795
1796 * config/c6x/c6x.c (hwloop_optimize): Likewise.
1797 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1798
1799 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1800
1801 * rtl.h (for_each_rtx_in_insn): New function.
1802 * rtlanal.c (for_each_rtx_in_insn): Likewise.
1803
1804 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1805
1806 * coretypes.h (class rtx_insn): Add forward declaration.
1807
1808 * rtl.h: Include is-a.h.
1809 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
1810 workaround to ensure gengtype knows inheritance is occurring,
1811 whilst continuing to use the pre-existing special-casing for
1812 rtx_def.
1813 (class rtx_insn): New subclass of rtx_def, adding the
1814 invariant that we're dealing with something we can sanely use
1815 INSN_UID, NEXT_INSN, PREV_INSN on.
1816 (is_a_helper <rtx_insn *>::test): New.
1817 (is_a_helper <const rtx_insn *>::test): New.
1818
1819 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1820
1821 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
1822
1823 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1824
1825 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
1826 comdats as extern.
1827
1828 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1829
1830 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
1831 to BUILT_IN_UNREACHABLE.
1832
1833 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
1834
1835 PR target/62011
1836 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1837 New tune flag.
1838 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1839 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1840 (ffs<mode>2): Do not expand with tzcnt for
1841 TARGET_AVOID_FALSE_DEP_FOR_BMI.
1842 (ffssi2_no_cmove): Ditto.
1843 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1844 (ctz<mode>2): New expander.
1845 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1846 (*ctz<mode>2_falsedep): New insn.
1847 (*ctz<mode>2): Rename from ctz<mode>2.
1848 (clz<mode>2_lzcnt): New expander.
1849 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1850 (*clz<mode>2_lzcnt_falsedep): New insn.
1851 (*clz<mode>2): Rename from ctz<mode>2.
1852 (popcount<mode>2): New expander.
1853 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1854 (*popcount<mode>2_falsedep): New insn.
1855 (*popcount<mode>2): Rename from ctz<mode>2.
1856 (*popcount<mode>2_cmp): Remove.
1857 (*popcountsi2_cmp_zext): Ditto.
1858
1859 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
1860
1861 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
1862 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
1863 * config/microblaze/microblaze.h
1864 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
1865
1866 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
1867
1868 PR other/62168
1869 * configure.ac: Set install_gold_as_default to no for
1870 --enable-gold=no.
1871 * configure: Regenerated.
1872
1873 2014-08-18 Roman Gareev <gareevroman@gmail.com>
1874
1875 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
1876 * config.in: Add undef of HAVE_isl.
1877 * configure: Regenerate.
1878 * configure.ac: Add definition of HAVE_isl.
1879 * graphite-blocking.c: Add checking of HAVE_isl.
1880 * graphite-dependences.c: Likewise.
1881 * graphite-interchange.c: Likewise.
1882 * graphite-isl-ast-to-gimple.c: Likewise.
1883 * graphite-optimize-isl.c: Likewise.
1884 * graphite-poly.c: Likewise.
1885 * graphite-scop-detection.c: Likewise.
1886 * graphite-sese-to-poly.c: Likewise.
1887 * graphite.c: Likewise.
1888 * toplev.c: Replace the checking of HAVE_cloog with the checking
1889 of HAVE_isl.
1890
1891 2014-08-18 Richard Biener <rguenther@suse.de>
1892
1893 PR tree-optimization/62090
1894 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
1895 (fold_builtin_3): Do not fold snprintf.
1896 (fold_builtin_4): Likewise.
1897 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
1898 moved from builtins.c.
1899 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
1900 (gimple_fold_builtin): Do not fold sprintf here.
1901
1902 2014-08-18 Richard Biener <rguenther@suse.de>
1903
1904 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
1905 code to ...
1906 (maybe_canonicalize_mem_ref_addr): ... this function.
1907 (fold_stmt_1): Apply it here before all simplification.
1908
1909 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
1910
1911 PR ipa/61800
1912 * cgraph.h (cgraph_node::create_indirect_edge): Add
1913 compute_indirect_info param.
1914 * cgraph.c (cgraph_node::create_indirect_edge): Compute
1915 indirect_info only when it is required.
1916 * cgraphclones.c (cgraph_clone_edge): Do not recompute
1917 indirect_info fore cloned indirect edge.
1918
1919 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1920 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1921 Anna Tikhonova <anna.tikhonova@intel.com>
1922 Ilya Tocar <ilya.tocar@intel.com>
1923 Andrey Turetskiy <andrey.turetskiy@intel.com>
1924 Ilya Verbin <ilya.verbin@intel.com>
1925 Kirill Yukhin <kirill.yukhin@intel.com>
1926 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1927
1928 * config/i386/sse.md
1929 (define_mode_iterator VI8_AVX2_AVX512BW): New.
1930 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
1931
1932 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1933 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1934 Anna Tikhonova <anna.tikhonova@intel.com>
1935 Ilya Tocar <ilya.tocar@intel.com>
1936 Andrey Turetskiy <andrey.turetskiy@intel.com>
1937 Ilya Verbin <ilya.verbin@intel.com>
1938 Kirill Yukhin <kirill.yukhin@intel.com>
1939 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1940
1941 * config/i386/sse.md
1942 (define_mode_iterator VF1_AVX512VL): New.
1943 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
1944 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
1945 New.
1946
1947 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1948 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1949 Anna Tikhonova <anna.tikhonova@intel.com>
1950 Ilya Tocar <ilya.tocar@intel.com>
1951 Andrey Turetskiy <andrey.turetskiy@intel.com>
1952 Ilya Verbin <ilya.verbin@intel.com>
1953 Kirill Yukhin <kirill.yukhin@intel.com>
1954 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1955
1956 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
1957 * config/i386/i386.md
1958 (define_code_iterator any_float): New.
1959 (define_code_attr floatsuffix): New.
1960 * config/i386/sse.md
1961 (define_mode_iterator VF1_128_256VL): New.
1962 (define_mode_iterator VF2_512_256VL): New.
1963 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
1964 TARGET check.
1965 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
1966 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
1967 New.
1968 (define_mode_attr qq2pssuff): New.
1969 (define_mode_attr sselongvecmode): New.
1970 (define_mode_attr sselongvecmodelower): New.
1971 (define_mode_attr sseintvecmode3): New.
1972 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
1973 New.
1974 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
1975 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
1976 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
1977 (define_insn "ufloatv2siv2df2<mask_name>"): New.
1978
1979 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1980 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1981 Anna Tikhonova <anna.tikhonova@intel.com>
1982 Ilya Tocar <ilya.tocar@intel.com>
1983 Andrey Turetskiy <andrey.turetskiy@intel.com>
1984 Ilya Verbin <ilya.verbin@intel.com>
1985 Kirill Yukhin <kirill.yukhin@intel.com>
1986 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1987
1988 * config/i386/sse.md
1989 (define_mode_iterator VF2_AVX512VL): New.
1990 (define_mode_attr sseintvecmode2): New.
1991 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
1992 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
1993 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
1994 (define_insn
1995 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
1996 Ditto.
1997 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1998 Ditto.
1999 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
2000 Ditto.
2001
2002 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2003 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2004 Anna Tikhonova <anna.tikhonova@intel.com>
2005 Ilya Tocar <ilya.tocar@intel.com>
2006 Andrey Turetskiy <andrey.turetskiy@intel.com>
2007 Ilya Verbin <ilya.verbin@intel.com>
2008 Kirill Yukhin <kirill.yukhin@intel.com>
2009 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2010
2011 * config/i386/i386.md
2012 (define_insn "*movoi_internal_avx"): Add evex version.
2013 (define_insn "*movti_internal"): Ditto.
2014
2015 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2016 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2017 Anna Tikhonova <anna.tikhonova@intel.com>
2018 Ilya Tocar <ilya.tocar@intel.com>
2019 Andrey Turetskiy <andrey.turetskiy@intel.com>
2020 Ilya Verbin <ilya.verbin@intel.com>
2021 Kirill Yukhin <kirill.yukhin@intel.com>
2022 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2023
2024 * config/i386/i386.md
2025 (define_attr "isa"): Add avx512dq, noavx512dq.
2026 (define_attr "enabled"): Ditto.
2027 * config/i386/sse.md
2028 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
2029
2030 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2031 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2032 Anna Tikhonova <anna.tikhonova@intel.com>
2033 Ilya Tocar <ilya.tocar@intel.com>
2034 Andrey Turetskiy <andrey.turetskiy@intel.com>
2035 Ilya Verbin <ilya.verbin@intel.com>
2036 Kirill Yukhin <kirill.yukhin@intel.com>
2037 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2038
2039 * config/i386/i386.c
2040 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
2041 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
2042 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
2043 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
2044 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
2045 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
2046 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
2047 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
2048 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
2049 * config/i386/sse.md
2050 (define_mode_iterator VMOVE): Allow V4TI mode.
2051 (define_mode_iterator V_AVX512VL): New.
2052 (define_mode_iterator V): New handling for AVX512VL.
2053 (define_insn "avx512f_load<mode>_mask"): Delete.
2054 (define_insn "<avx512>_load<mode>_mask"): New.
2055 (define_insn "avx512f_store<mode>_mask"): Delete.
2056 (define_insn "<avx512>_store<mode>_mask"): New.
2057
2058
2059 2014-08-18 Yury Gribov <y.gribov@samsung.com>
2060
2061 PR sanitizer/62089
2062 * asan.c (instrument_derefs): Fix bitfield check.
2063
2064 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2065
2066 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
2067 * config/rs6000/htm.md (ttest): Remove clobber.
2068 * config/rs6000/predicates.md (any_mask_operand): New predicate.
2069 (and_operand): Reformat.
2070 (and_2rld_operand): New predicate.
2071 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
2072 parameter.
2073 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
2074 parameter. Handle AND directly.
2075 (rs6000_split_logical_di): Remove last parameter.
2076 (rs6000_split_logical): Remove last parameter. Remove obsolete
2077 comment.
2078 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
2079 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
2080 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
2081 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
2082 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
2083 and 5 anonymous splitters): Delete.
2084 (and<mode>3): New expander.
2085 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
2086 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
2087 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
2088 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
2089 (floatdisf2_internal1): Remove clobbers.
2090 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
2091 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
2092 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
2093 (and<mode>3 for BOOL_128): Remove clobber.
2094 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
2095 rs6000_split_logical.
2096 (*bool<mode>3_internal for BOOL_128): Adjust call of
2097 rs6000_split_logical.
2098 (*boolc<mode>3_internal1 for BOOL_128,
2099 *boolc<mode>3_internal2 for BOOL_128,
2100 *boolcc<mode>3_internal1 for BOOL_128,
2101 *boolcc<mode>3_internal2 for BOOL_128,
2102 *eqv<mode>3_internal1 for BOOL_128,
2103 *eqv<mode>3_internal2 for BOOL_128,
2104 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
2105 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
2106 clobber.
2107 (*vec_reload_and_reg_<mptrsize>): Delete.
2108
2109 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2110
2111 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
2112 and split, *boolccsi3_internal3 and split): Delete.
2113 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
2114 *boolccdi3_internal3 and split): Delete.
2115 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
2116 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
2117
2118 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2119
2120 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
2121 and split, *boolcsi3_internal3 and split): Delete.
2122 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
2123 *boolcdi3_internal3 and split): Delete.
2124 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
2125
2126 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2127
2128 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
2129 <'u'>: Also support printing the low-order 16 bits.
2130 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
2131 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
2132 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
2133 *booldi3_internal3 and split): Delete.
2134 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
2135 *bool<mode>3_dot2): New.
2136 (two anonymous define_splits for non_logical_cint_operand): Merge.
2137
2138 2014-08-17 Marek Polacek <polacek@redhat.com>
2139 Manuel López-Ibáñez <manu@gcc.gnu.org>
2140
2141 PR c/62059
2142 * diagnostic.c (adjust_line): Add gcc_checking_assert.
2143 (diagnostic_show_locus): Don't print caret diagnostic
2144 if a column is larger than the line_width.
2145
2146 2014-08-17 Roman Gareev <gareevroman@gmail.com>
2147
2148 * common.opt: Make the ISL AST generator to be the main code generator
2149 of Graphite.
2150
2151 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
2152
2153 * wide-int.h (generic_wide_int): Declare as class instead of struct.
2154
2155 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
2156
2157 PR target/61641
2158 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
2159 Declare.
2160 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
2161 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
2162 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
2163 Define.
2164 * config/pa/pa.md (begin_brtab): Delete insn.
2165 (end_brtab): Likewise.
2166
2167 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2168
2169 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
2170
2171 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
2172
2173 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
2174 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
2175 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
2176 (get_dynamic_type): Remove.
2177 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
2178 (clear_speculation): Bring to ipa-deivrt.h
2179 (get_class_context): Rename to ...
2180 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
2181 (contains_type_p): Update.
2182 (get_dynamic_type): Rename to ...
2183 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
2184 (possible_polymorphic_call_targets): UPdate.
2185 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
2186 * ipa-prop.c (ipa_analyze_call_uses): Update.
2187
2188 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
2189
2190 * doc/invoke.texi (SH options): Document missing processor variant
2191 options. Remove references to Hitachi. Undocument deprecated mspace
2192 option.
2193
2194 2014-08-15 Jason Merrill <jason@redhat.com>
2195
2196 * tree.c (type_hash_canon): Uncomment assert.
2197
2198 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2199
2200 * input.h (in_system_header_at): Add comment.
2201
2202 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2203
2204 PR fortran/44054
2205 * diagnostic.c (build_message_string): Make it extern.
2206 * diagnostic.h (build_message_string): Make it extern.
2207
2208 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
2209
2210 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
2211 load/store from/to non-floating class pseudo.
2212
2213 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2214
2215 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
2216
2217 2014-08-15 Richard Biener <rguenther@suse.de>
2218
2219 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
2220 (get_constraint_for_ssa_var): Remove dead code.
2221 (get_constraint_for_1): Adjust.
2222 (find_what_var_points_to): Likewise.
2223 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
2224
2225 2014-08-15 Ilya Tocar <tocarip@gmail.com>
2226
2227 PR target/61878
2228 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
2229 (_mm512_mask_cmpge_epu32_mask): Ditto.
2230 (_mm512_cmpge_epu32_mask): Ditto.
2231 (_mm512_mask_cmpge_epi64_mask): Ditto.
2232 (_mm512_cmpge_epi64_mask): Ditto.
2233 (_mm512_mask_cmpge_epu64_mask): Ditto.
2234 (_mm512_cmpge_epu64_mask): Ditto.
2235 (_mm512_mask_cmple_epi32_mask): Ditto.
2236 (_mm512_cmple_epi32_mask): Ditto.
2237 (_mm512_mask_cmple_epu32_mask): Ditto.
2238 (_mm512_cmple_epu32_mask): Ditto.
2239 (_mm512_mask_cmple_epi64_mask): Ditto.
2240 (_mm512_cmple_epi64_mask): Ditto.
2241 (_mm512_mask_cmple_epu64_mask): Ditto.
2242 (_mm512_cmple_epu64_mask): Ditto.
2243 (_mm512_mask_cmplt_epi32_mask): Ditto.
2244 (_mm512_cmplt_epi32_mask): Ditto.
2245 (_mm512_mask_cmplt_epu32_mask): Ditto.
2246 (_mm512_cmplt_epu32_mask): Ditto.
2247 (_mm512_mask_cmplt_epi64_mask): Ditto.
2248 (_mm512_cmplt_epi64_mask): Ditto.
2249 (_mm512_mask_cmplt_epu64_mask): Ditto.
2250 (_mm512_cmplt_epu64_mask): Ditto.
2251 (_mm512_mask_cmpneq_epi32_mask): Ditto.
2252 (_mm512_mask_cmpneq_epu32_mask): Ditto.
2253 (_mm512_cmpneq_epu32_mask): Ditto.
2254 (_mm512_mask_cmpneq_epi64_mask): Ditto.
2255 (_mm512_cmpneq_epi64_mask): Ditto.
2256 (_mm512_mask_cmpneq_epu64_mask): Ditto.
2257 (_mm512_cmpneq_epu64_mask): Ditto.
2258 (_mm512_castpd_ps): Ditto.
2259 (_mm512_castpd_si512): Ditto.
2260 (_mm512_castps_pd): Ditto.
2261 (_mm512_castps_si512): Ditto.
2262 (_mm512_castsi512_ps): Ditto.
2263 (_mm512_castsi512_pd): Ditto.
2264 (_mm512_castpd512_pd128): Ditto.
2265 (_mm512_castps512_ps128): Ditto.
2266 (_mm512_castsi512_si128): Ditto.
2267 (_mm512_castpd512_pd256): Ditto.
2268 (_mm512_castps512_ps256): Ditto.
2269 (_mm512_castsi512_si256): Ditto.
2270 (_mm512_castpd128_pd512): Ditto.
2271 (_mm512_castps128_ps512): Ditto.
2272 (_mm512_castsi128_si512): Ditto.
2273 (_mm512_castpd256_pd512): Ditto.
2274 (_mm512_castps256_ps512): Ditto.
2275 (_mm512_castsi256_si512): Ditto.
2276 (_mm512_cmpeq_epu32_mask): Ditto.
2277 (_mm512_mask_cmpeq_epu32_mask): Ditto.
2278 (_mm512_mask_cmpeq_epu64_mask): Ditto.
2279 (_mm512_cmpeq_epu64_mask): Ditto.
2280 (_mm512_cmpgt_epu32_mask): Ditto.
2281 (_mm512_mask_cmpgt_epu32_mask): Ditto.
2282 (_mm512_mask_cmpgt_epu64_mask): Ditto.
2283 (_mm512_cmpgt_epu64_mask): Ditto.
2284 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
2285 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
2286 * config/i386/i386.c (enum ix86_builtins): Add
2287 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
2288 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
2289 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
2290 (bdesc_args): Add __builtin_ia32_si512_256si,
2291 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
2292 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
2293 __builtin_ia32_pd512_pd.
2294 (ix86_expand_args_builtin): Handle new FTYPEs.
2295 * config/i386/sse.md (castmode): Add 512-bit modes.
2296 (AVX512MODE2P): New.
2297 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
2298 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
2299
2300 2014-08-15 Richard Biener <rguenther@suse.de>
2301
2302 * fold-const.c (tree_swap_operands_p): Put all constants
2303 last, also strip sign-changing NOPs when considering further
2304 canonicalization. Canonicalize also when optimizing for size.
2305
2306 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2307
2308 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
2309 one_match > zero_match case to just before simple_sequence.
2310
2311 2014-08-15 Richard Biener <rguenther@suse.de>
2312
2313 * data-streamer.h (streamer_string_index, string_for_index):
2314 Remove.
2315 * data-streamer-out.c (streamer_string_index): Make static.
2316 * data-streamer-in.c (string_for_index): Likewise.
2317 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
2318 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
2319
2320 2014-08-15 Richard Biener <rguenther@suse.de>
2321
2322 PR tree-optimization/62031
2323 * tree-data-ref.c (dr_analyze_indices): Do not set
2324 DR_UNCONSTRAINED_BASE.
2325 (dr_may_alias_p): All indirect accesses have to go the
2326 formerly DR_UNCONSTRAINED_BASE path.
2327 * tree-data-ref.h (struct indices): Remove
2328 unconstrained_base member.
2329 (DR_UNCONSTRAINED_BASE): Remove.
2330
2331 2014-08-15 Jakub Jelinek <jakub@redhat.com>
2332
2333 PR middle-end/62092
2334 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
2335 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
2336 in OMP_CLAUSE_MAP in some outer target region.
2337
2338 2014-08-15 Bin Cheng <bin.cheng@arm.com>
2339
2340 * tree-ssa-loop-ivopts.c (ivopts_data): New field
2341 name_expansion_cache.
2342 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
2343 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
2344 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
2345 (difference_cannot_overflow_p): New parameter. Use affine
2346 expansion for equality check.
2347 (iv_elimination_compare_lt): Pass new argument.
2348
2349 2014-08-14 DJ Delorie <dj@redhat.com>
2350
2351 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
2352 variables to the accumulator.
2353
2354 * config/rl78/predicates.md (rl78_near_mem_operand): New.
2355 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
2356 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
2357 with far-far moves.
2358
2359 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
2360 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
2361 (umulqihi3_virt): Likewise.
2362 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
2363 (umulqihi3_real): Likewise.
2364
2365 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
2366
2367 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
2368
2369 PR tree-optimization/62091
2370 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
2371 function_entry_reached.
2372 (walk_aliased_vdefs): Clear it here.
2373 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
2374
2375 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
2376
2377 * ipa-utils.h (compare_virtual_tables): Declare.
2378 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
2379
2380 2014-08-14 Marek Polacek <polacek@redhat.com>
2381
2382 DR 458
2383 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
2384 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
2385
2386 2014-08-14 Tom de Vries <tom@codesourcery.com>
2387
2388 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
2389
2390 2014-08-14 Tom de Vries <tom@codesourcery.com>
2391
2392 PR rtl-optimization/62004
2393 PR rtl-optimization/62030
2394 * ifcvt.c (rtx_interchangeable_p): New function.
2395 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
2396 * emit-rtl.h (mem_attrs_eq_p): Declare.
2397
2398 2014-08-14 Roman Gareev <gareevroman@gmail.com>
2399
2400 * graphite-scop-detection.c:
2401 Add inclusion of cp-tree.h.
2402 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
2403 in case they are pointers to object types
2404
2405 2014-08-14 Richard Biener <rguenther@suse.de>
2406
2407 * BASE-VER: Change to 5.0.0
2408
2409 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2410 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2411 Anna Tikhonova <anna.tikhonova@intel.com>
2412 Ilya Tocar <ilya.tocar@intel.com>
2413 Andrey Turetskiy <andrey.turetskiy@intel.com>
2414 Ilya Verbin <ilya.verbin@intel.com>
2415 Kirill Yukhin <kirill.yukhin@intel.com>
2416 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2417
2418 * config/i386/sse.md (define_mode_attr avx512): New.
2419 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
2420 V4DI modes.
2421 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
2422 (define_mode_attr ssse3_avx2): Ditto.
2423 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
2424 (define_mode_attr avx2_avx512bw): New.
2425 (define_mode_attr ssedoublemodelower): New.
2426 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
2427 V32HI, V64QI modes.
2428 (define_mode_attr ssebytemode): Allow V8DI modes.
2429 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
2430 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
2431 (define_mode_attr ssePSmode2): New.
2432 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
2433 V16HI, V32HI modes.
2434 (define_mode_attr dbpsadbwmode): New.
2435 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
2436 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
2437 (vi8_sse4_1_avx2_avx512): New.
2438 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
2439 mode attribute.
2440 (define_mode_attr blendbits): Move before its immediate use.
2441
2442 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2443 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2444 Anna Tikhonova <anna.tikhonova@intel.com>
2445 Ilya Tocar <ilya.tocar@intel.com>
2446 Andrey Turetskiy <andrey.turetskiy@intel.com>
2447 Ilya Verbin <ilya.verbin@intel.com>
2448 Kirill Yukhin <kirill.yukhin@intel.com>
2449 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2450
2451 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
2452 * config/i386/subst.md
2453 (define_mode_iterator SUBST_V): Update.
2454 (define_mode_iterator SUBST_A): Ditto.
2455 (define_subst_attr "mask_operand7"): New.
2456 (define_subst_attr "mask_operand10"): New.
2457 (define_subst_attr "mask_operand_arg34") : New.
2458 (define_subst_attr "mask_expand_op3"): New.
2459 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
2460 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
2461 (define_subst_attr "mask_avx512vl_condition"): New.
2462 (define_subst_attr "round_mask_operand4"): Ditto.
2463 (define_subst_attr "round_mask_scalar_op3"): Delete.
2464 (define_subst_attr "round_mask_op4"): New.
2465 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
2466 V16SImode.
2467 (define_subst_attr "round_modev8sf_condition"): New.
2468 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
2469 <MODE>mode.
2470 (define_subst_attr "round_saeonly_mask_operand4"): New.
2471 (define_subst_attr "round_saeonly_mask_op4"): New.
2472 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
2473 V8DImode, V16SImode.
2474 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
2475 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
2476 (define_subst_attr "mask_expand4_args"): New.
2477 (define_subst "mask_expand4"): New.
2478
2479 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2480 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2481 Anna Tikhonova <anna.tikhonova@intel.com>
2482 Ilya Tocar <ilya.tocar@intel.com>
2483 Andrey Turetskiy <andrey.turetskiy@intel.com>
2484 Ilya Verbin <ilya.verbin@intel.com>
2485 Kirill Yukhin <kirill.yukhin@intel.com>
2486 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2487
2488 * config/i386/i386.md
2489 (define_attr "isa"): Add avx512bw,noavx512bw.
2490 (define_attr "enabled"): Ditto.
2491 (define_split): Add 32/64-bit mask logic.
2492 (define_insn "*k<logic>qi"): New.
2493 (define_insn "*k<logic>hi"): New.
2494 (define_insn "*anddi_1"): Add mask version.
2495 (define_insn "*andsi_1"): Ditto.
2496 (define_insn "*<code><mode>_1"): Ditto.
2497 (define_insn "*<code>hi_1"): Ditto.
2498 (define_insn "kxnor<mode>"): New.
2499 (define_insn "kunpcksi"): New.
2500 (define_insn "kunpckdi"): New.
2501 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
2502 (define_insn "*one_cmplhi2_1"): Ditto.
2503
2504 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2505 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2506 Anna Tikhonova <anna.tikhonova@intel.com>
2507 Ilya Tocar <ilya.tocar@intel.com>
2508 Andrey Turetskiy <andrey.turetskiy@intel.com>
2509 Ilya Verbin <ilya.verbin@intel.com>
2510 Kirill Yukhin <kirill.yukhin@intel.com>
2511 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2512
2513 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
2514 V32HImode.
2515
2516 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2517 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2518 Anna Tikhonova <anna.tikhonova@intel.com>
2519 Ilya Tocar <ilya.tocar@intel.com>
2520 Andrey Turetskiy <andrey.turetskiy@intel.com>
2521 Ilya Verbin <ilya.verbin@intel.com>
2522 Kirill Yukhin <kirill.yukhin@intel.com>
2523 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2524
2525 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
2526 registers.
2527 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
2528 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
2529 xmm/ymm16+ when availble.
2530 * config/i386/i386.h
2531 (HARD_REGNO_NREGS): Add mask regs.
2532 (VALID_AVX512F_REG_MODE): Ditto.
2533 (VALID_AVX512F_REG_MODE) : Define.
2534 (VALID_MASK_AVX512BW_MODE): Ditto.
2535 (reg_class) (MASK_REG_P(X)): Define.
2536 * config/i386/i386.md: Do not split long moves with mask register,
2537 use kmovb if avx512bw is availible.
2538 (movdi_internal): Handle mask registers.
2539
2540 2014-08-14 Richard Biener <rguenther@suse.de>
2541
2542 PR tree-optimization/62081
2543 * tree-ssa-loop.c (pass_fix_loops): New pass.
2544 (pass_tree_loop::gate): Do not fixup loops here.
2545 * tree-pass.h (make_pass_fix_loops): Declare.
2546 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
2547
2548 2014-08-14 Richard Biener <rguenther@suse.de>
2549
2550 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
2551 (type_hash_canon): ... this and avoid 2nd lookup for the add.
2552
2553 2014-08-14 Richard Biener <rguenther@suse.de>
2554
2555 PR tree-optimization/62090
2556 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
2557 (fold_builtin_2): Do not fold sprintf.
2558 (fold_builtin_3): Likewise.
2559 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
2560 moved from builtins.c.
2561 (gimple_fold_builtin): Fold sprintf.
2562
2563 2014-08-14 Richard Biener <rguenther@suse.de>
2564
2565 PR rtl-optimization/62079
2566 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
2567 run cleanup_cfg.
2568
2569 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
2570
2571 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
2572 current_function_decl.
2573
2574 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
2575
2576 * cgraph.c (cgraph_node::function_symbol): Fix wrong
2577 cgraph_function_node to cgraph_node::function_symbol
2578 refactoring.
2579
2580 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
2581
2582 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
2583 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
2584
2585 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
2586
2587 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
2588 warning.
2589
2590 2014-08-13 Roman Gareev <gareevroman@gmail.com>
2591
2592 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
2593 generator.
2594
2595 2014-08-12 Jakub Jelinek <jakub@redhat.com>
2596
2597 PR target/62025
2598 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
2599 any registers that are used in mem_insn.
2600
2601 2014-08-12 Steve Ellcey <sellcey@mips.com>
2602
2603 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
2604
2605 2014-08-12 Steve Ellcey <sellcey@mips.com>
2606
2607 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
2608 (MULTILIB_DIRNAMES): Ditto.
2609 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
2610 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
2611 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
2612 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
2613 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
2614 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
2615
2616 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2617
2618 PR target/61413
2619 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
2620 of __ARM_SIZEOF_WCHAR_T.
2621
2622 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2623
2624 PR target/62098
2625 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
2626 Remove unnecessary attributes.
2627
2628 2014-08-12 Yury Gribov <y.gribov@samsung.com>
2629
2630 * internal-fn.c (init_internal_fns): Fix off-by-one.
2631
2632 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2633 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2634 Anna Tikhonova <anna.tikhonova@intel.com>
2635 Ilya Tocar <ilya.tocar@intel.com>
2636 Andrey Turetskiy <andrey.turetskiy@intel.com>
2637 Ilya Verbin <ilya.verbin@intel.com>
2638 Kirill Yukhin <kirill.yukhin@intel.com>
2639 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2640
2641 * config/i386/i386.c (standard_sse_constant_opcode): Use
2642 vpxord/vpternlog if avx512 is availible.
2643
2644 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
2645
2646 PR middle-end/62103
2647 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
2648 bitfields, that is when size doesn't match the size of type or the
2649 size of the constructor.
2650
2651 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2652
2653 * config/rs6000/constraints.md (wh constraint): New constraint,
2654 for FP registers if direct move is available.
2655 (wi constraint): New constraint, for VSX/FP registers that can
2656 handle 64-bit integers.
2657 (wj constraint): New constraint for VSX/FP registers that can
2658 handle 64-bit integers for direct moves.
2659 (wk constraint): New constraint for VSX/FP registers that can
2660 handle 64-bit doubles for direct moves.
2661 (wy constraint): Make documentation match implementation.
2662
2663 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
2664 scalar_in_vmx_p field to simplify tests of whether SFmode or
2665 DFmode can go in the Altivec registers.
2666 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
2667 (rs6000_setup_reg_addr_masks): Likewise.
2668 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
2669 field, and wh/wi/wj/wk constraints.
2670 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
2671 the wh/wi/wj/wk constraints.
2672 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
2673 upper registers, prefer VSX registers unless the operation is a
2674 memory operation with REG+OFFSET addressing.
2675
2676 * config/rs6000/vsx.md (VSr mode attribute): Add support for
2677 DImode. Change SFmode to use ww constraint instead of d to allow
2678 SF registers in the upper registers.
2679 (VSr2): Likewise.
2680 (VSr3): Likewise.
2681 (VSr5): Fix thinko in comment.
2682 (VSa): New mode attribute that is an alternative to wa, that
2683 returns the VSX register class that a mode can go in, but may not
2684 be the preferred register class.
2685 (VS_64dm): New mode attribute for appropriate register classes for
2686 referencing 64-bit elements of vectors for direct moves and normal
2687 moves.
2688 (VS_64reg): Likewise.
2689 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
2690 register allocator to only registers the data type can handle.
2691 (vsx_le_perm_load_<mode>): Likewise.
2692 (vsx_le_perm_store_<mode>): Likewise.
2693 (vsx_xxpermdi2_le_<mode>): Likewise.
2694 (vsx_xxpermdi4_le_<mode>): Likewise.
2695 (vsx_lxvd2x2_le_<mode>): Likewise.
2696 (vsx_lxvd2x4_le_<mode>): Likewise.
2697 (vsx_stxvd2x2_le_<mode>): Likewise.
2698 (vsx_add<mode>3): Likewise.
2699 (vsx_sub<mode>3): Likewise.
2700 (vsx_mul<mode>3): Likewise.
2701 (vsx_div<mode>3): Likewise.
2702 (vsx_tdiv<mode>3_internal): Likewise.
2703 (vsx_fre<mode>2): Likewise.
2704 (vsx_neg<mode>2): Likewise.
2705 (vsx_abs<mode>2): Likewise.
2706 (vsx_nabs<mode>2): Likewise.
2707 (vsx_smax<mode>3): Likewise.
2708 (vsx_smin<mode>3): Likewise.
2709 (vsx_sqrt<mode>2): Likewise.
2710 (vsx_rsqrte<mode>2): Likewise.
2711 (vsx_tsqrt<mode>2_internal): Likewise.
2712 (vsx_fms<mode>4): Likewise.
2713 (vsx_nfma<mode>4): Likewise.
2714 (vsx_eq<mode>): Likewise.
2715 (vsx_gt<mode>): Likewise.
2716 (vsx_ge<mode>): Likewise.
2717 (vsx_eq<mode>_p): Likewise.
2718 (vsx_gt<mode>_p): Likewise.
2719 (vsx_ge<mode>_p): Likewise.
2720 (vsx_xxsel<mode>): Likewise.
2721 (vsx_xxsel<mode>_uns): Likewise.
2722 (vsx_copysign<mode>3): Likewise.
2723 (vsx_float<VSi><mode>2): Likewise.
2724 (vsx_floatuns<VSi><mode>2): Likewise.
2725 (vsx_fix_trunc<mode><VSi>2): Likewise.
2726 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
2727 (vsx_x<VSv>r<VSs>i): Likewise.
2728 (vsx_x<VSv>r<VSs>ic): Likewise.
2729 (vsx_btrunc<mode>2): Likewise.
2730 (vsx_b2trunc<mode>2): Likewise.
2731 (vsx_floor<mode>2): Likewise.
2732 (vsx_ceil<mode>2): Likewise.
2733 (vsx_<VS_spdp_insn>): Likewise.
2734 (vsx_xscvspdp): Likewise.
2735 (vsx_xvcvspuxds): Likewise.
2736 (vsx_float_fix_<mode>2): Likewise.
2737 (vsx_set_<mode>): Likewise.
2738 (vsx_extract_<mode>_internal1): Likewise.
2739 (vsx_extract_<mode>_internal2): Likewise.
2740 (vsx_extract_<mode>_load): Likewise.
2741 (vsx_extract_<mode>_store): Likewise.
2742 (vsx_splat_<mode>): Likewise.
2743 (vsx_xxspltw_<mode>): Likewise.
2744 (vsx_xxspltw_<mode>_direct): Likewise.
2745 (vsx_xxmrghw_<mode>): Likewise.
2746 (vsx_xxmrglw_<mode>): Likewise.
2747 (vsx_xxsldwi_<mode>): Likewise.
2748 (vsx_xscvdpspn): Tighten constraints to only use register classes
2749 the types use.
2750 (vsx_xscvspdpn): Likewise.
2751 (vsx_xscvdpspn_scalar): Likewise.
2752
2753 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
2754 wj, and wk constraints.
2755 (GPR_REG_CLASS_P): New helper macro for register classes targeting
2756 general purpose registers.
2757
2758 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
2759 direct moves.
2760 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
2761 DImode instead of wm. Use wk constraint for direct move of DFmode
2762 instead of wm.
2763 (extendsidi2_lfiwax): Likewise.
2764 (lfiwax): Likewise.
2765 (lfiwzx): Likewise.
2766 (movdi_internal64): Likewise.
2767
2768 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
2769 wk constraints. Make the wy constraint documentation match them
2770 implementation.
2771
2772 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
2773
2774 Replacement of isl_int by isl_val
2775 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
2776 (compute_bounds_for_param): use isl_val instead of isl_int
2777 (compute_bounds_for_loop): likewise
2778 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
2779 (build_linearized_memory_access): use isl_val instead of isl_int
2780 (pdr_stride_in_loop): likewise
2781 * graphite-optimize-isl.c:
2782 (getPrevectorMap): use isl_val instead of isl_int
2783 * graphite-poly.c:
2784 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
2785 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
2786 (extern the_isl_ctx): declare
2787 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
2788 (extract_affine_gmp): likewise
2789 (wrap): likewise
2790 (build_loop_iteration_domains): likewise
2791 (add_param_constraints): likewise
2792
2793 2014-08-11 Richard Biener <rguenther@suse.de>
2794
2795 PR tree-optimization/62075
2796 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
2797 handle uses in patterns.
2798
2799 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2800 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2801 Anna Tikhonova <anna.tikhonova@intel.com>
2802 Ilya Tocar <ilya.tocar@intel.com>
2803 Andrey Turetskiy <andrey.turetskiy@intel.com>
2804 Ilya Verbin <ilya.verbin@intel.com>
2805 Kirill Yukhin <kirill.yukhin@intel.com>
2806 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2807
2808 * common/config/i386/i386-common.c
2809 (OPTION_MASK_ISA_AVX512VL_SET): Define.
2810 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
2811 (ix86_handle_option): Handle OPT_mavx512vl.
2812 * config/i386/cpuid.h (bit_AVX512VL): Define.
2813 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
2814 set -mavx512vl accordingly.
2815 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2816 OPTION_MASK_ISA_AVX512VL.
2817 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
2818 (ix86_option_override_internal): Define PTA_AVX512VL, handle
2819 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
2820 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
2821 * config/i386/i386.h (TARGET_AVX512VL): Define.
2822 (TARGET_AVX512VL_P(x)): Ditto.
2823 * config/i386/i386.opt: Add mavx512vl.
2824
2825 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
2826
2827 PR tree-optimization/62073
2828 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
2829 a basic block.
2830
2831 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2832 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2833 Anna Tikhonova <anna.tikhonova@intel.com>
2834 Ilya Tocar <ilya.tocar@intel.com>
2835 Andrey Turetskiy <andrey.turetskiy@intel.com>
2836 Ilya Verbin <ilya.verbin@intel.com>
2837 Kirill Yukhin <kirill.yukhin@intel.com>
2838 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2839
2840 * common/config/i386/i386-common.c
2841 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
2842 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
2843 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
2844 (ix86_handle_option): Handle OPT_mavx512bw.
2845 * config/i386/cpuid.h (bit_AVX512BW): Define.
2846 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
2847 set -mavx512bw accordingly.
2848 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2849 OPTION_MASK_ISA_AVX512BW.
2850 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
2851 (ix86_option_override_internal): Define PTA_AVX512BW, handle
2852 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
2853 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
2854 * config/i386/i386.h (TARGET_AVX512BW): Define.
2855 (TARGET_AVX512BW_P(x)): Ditto.
2856 * config/i386/i386.opt: Add mavx512bw.
2857
2858 2014-08-11 Richard Biener <rguenther@suse.de>
2859
2860 PR tree-optimization/62070
2861 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
2862 Remove SSA checking.
2863
2864 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2865
2866 * asan.c (asan_check_flags): New enum.
2867 (build_check_stmt_with_calls): Removed function.
2868 (build_check_stmt): Split inlining logic to
2869 asan_expand_check_ifn.
2870 (instrument_derefs): Rename parameter.
2871 (instrument_mem_region_access): Rename parameter.
2872 (instrument_strlen_call): Likewise.
2873 (asan_expand_check_ifn): New function.
2874 (asan_instrument): Remove old code.
2875 (pass_sanopt::execute): Change handling of
2876 asan-instrumentation-with-call-threshold.
2877 (asan_clear_shadow): Fix formatting.
2878 (asan_function_start): Likewise.
2879 (asan_emit_stack_protection): Likewise.
2880 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
2881 Update description.
2882 * internal-fn.c (expand_ASAN_CHECK): New function.
2883 * internal-fn.def (ASAN_CHECK): New internal function.
2884 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
2885 Update description.
2886 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
2887 * tree.c: Small comment fix.
2888
2889 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2890
2891 * gimple.c (gimple_call_fnspec): Support internal functions.
2892 (gimple_call_return_flags): Use const.
2893 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
2894 * internal-fn.def: Add fnspec information.
2895 * internal-fn.h (internal_fn_fnspec): New function.
2896 (init_internal_fns): Declare new function.
2897 * internal-fn.c (internal_fn_fnspec_array): New global variable.
2898 (init_internal_fns): New function.
2899 * tree-core.h: Update macro call.
2900 * tree.c (build_common_builtin_nodes): Initialize internal fns.
2901
2902 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
2903
2904 * lto-streamer.h (struct output_block::symbol): Change from
2905 struct symtab_node to plain symtab_node.
2906 (referenced_from_this_partition_p): Change first parameter
2907 from struct symtab_node to plain symtab_node.
2908
2909 2014-08-10 Marek Polacek <polacek@redhat.com>
2910
2911 PR c/51849
2912 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
2913
2914 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
2915
2916 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
2917 DECL correctly; do not give up on types in static storage.
2918
2919 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
2920
2921 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
2922
2923 2014-08-09 Roman Gareev <gareevroman@gmail.com>
2924
2925 * graphite-isl-ast-to-gimple.c:
2926 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
2927
2928 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
2929
2930 2014-08-08 Guozhi Wei <carrot@google.com>
2931
2932 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
2933
2934 2014-08-08 Cary Coutant <ccoutant@google.com>
2935
2936 * dwarf2out.c (get_skeleton_type_unit): Remove.
2937 (output_skeleton_debug_sections): Remove skeleton type units.
2938 (output_comdat_type_unit): Likewise.
2939 (dwarf2out_finish): Likewise.
2940
2941 2014-08-07 Yi Yang <ahyangyi@google.com>
2942
2943 * predict.c (expr_expected_value_1): Remove the redundant assignment.
2944
2945 2014-08-08 Richard Biener <rguenther@suse.de>
2946
2947 * lto-streamer.h (struct lto_input_block): Make it a class
2948 with a constructor.
2949 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
2950 (struct lto_function_header, struct lto_simple_header,
2951 struct lto_simple_header_with_strings,
2952 struct lto_decl_header, struct lto_function_header): Make
2953 a simple inheritance hieararchy. Remove unused fields.
2954 (struct lto_asm_header): Remove.
2955 * lto-streamer-out.c (produce_asm): Adjust.
2956 (lto_output_toplevel_asms): Likewise.
2957 (produce_asm_for_decls): Likewise.
2958 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2959 * data-streamer-in.c (string_for_index): Likewise.
2960 * ipa-inline-analysis.c (inline_read_section): Likewise.
2961 * ipa-prop.c (ipa_prop_read_section): Likewise.
2962 (read_replacements_section): Likewise.
2963 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
2964 * lto-section-in.c (lto_create_simple_input_block): Likewise.
2965 (lto_destroy_simple_input_block): Likewise.
2966 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
2967 (lto_input_toplevel_asms): Likewise.
2968
2969 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2970 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2971 Anna Tikhonova <anna.tikhonova@intel.com>
2972 Ilya Tocar <ilya.tocar@intel.com>
2973 Andrey Turetskiy <andrey.turetskiy@intel.com>
2974 Ilya Verbin <ilya.verbin@intel.com>
2975 Kirill Yukhin <kirill.yukhin@intel.com>
2976 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2977
2978 * common/config/i386/i386-common.c
2979 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
2980 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
2981 (ix86_handle_option): Handle OPT_mavx512dq.
2982 * config/i386/cpuid.h (bit_AVX512DQ): Define.
2983 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
2984 set -mavx512dq accordingly.
2985 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2986 OPTION_MASK_ISA_AVX512DQ.
2987 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
2988 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
2989 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
2990 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
2991 * config/i386/i386.h (TARGET_AVX512DQ): Define.
2992 (TARGET_AVX512DQ_P(x)): Ditto.
2993 * config/i386/i386.opt: Add mavx512dq.
2994
2995 2014-08-08 Richard Biener <rguenther@suse.de>
2996
2997 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
2998 target_percent, target_percent_s): Export.
2999 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
3000 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
3001 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
3002 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
3003 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
3004 Move to gimple-fold.c.
3005 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
3006 strcat and strcpy.
3007 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
3008 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
3009 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
3010 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
3011 (rewrite_call_expr_array): Remove.
3012 (fold_builtin_sprintf_chk): Likewise.
3013 (fold_builtin_snprintf_chk): Likewise.
3014 (fold_builtin_varargs): Remove handling of sprintf_chk,
3015 vsprintf_chk, snprintf_chk and vsnprintf_chk.
3016 (gimple_fold_builtin_sprintf_chk): Remove.
3017 (gimple_fold_builtin_snprintf_chk): Likewise.
3018 (gimple_fold_builtin_varargs): Likewise.
3019 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
3020 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
3021 * gimple.c (gimple_seq_add_seq_without_update): New function.
3022 * gimple.h (gimple_seq_add_seq_without_update): Declare.
3023 * gimple-fold.c: Include output.h.
3024 (gsi_replace_with_seq_vops): New function, split out from ...
3025 (gimplify_and_update_call_from_tree): ... here.
3026 (replace_call_with_value): New function.
3027 (replace_call_with_call_and_fold): Likewise.
3028 (var_decl_component_p): Moved from builtins.c.
3029 (gimple_fold_builtin_memory_op): Moved from builtins.c
3030 fold_builtin_memory_op and rewritten to GIMPLE.
3031 (gimple_fold_builtin_memset): Likewise.
3032 (gimple_fold_builtin_strcpy): Likewise.
3033 (gimple_fold_builtin_strncpy): Likewise.
3034 (gimple_fold_builtin_strcat): Likewise.
3035 (gimple_fold_builtin_fputs): Likewise.
3036 (gimple_fold_builtin_memory_chk): Likewise.
3037 (gimple_fold_builtin_stxcpy_chk): Likewise.
3038 (gimple_fold_builtin_stxncpy_chk): Likewise.
3039 (gimple_fold_builtin_snprintf_chk): Likewise.
3040 (gimple_fold_builtin_sprintf_chk): Likewise.
3041 (gimple_fold_builtin_strlen): New function.
3042 (gimple_fold_builtin_with_strlen): New function split out from
3043 gimple_fold_builtin.
3044 (gimple_fold_builtin): Change signature and handle
3045 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
3046 here. Call gimple_fold_builtin_with_strlen.
3047 (gimple_fold_call): Adjust.
3048
3049 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
3050
3051 * calls.c (precompute_arguments): Check
3052 promoted_for_signed_and_unsigned_p and set the promoted mode.
3053 (promoted_for_signed_and_unsigned_p): New function.
3054 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
3055 and set the promoted mode.
3056 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
3057 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
3058 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
3059
3060
3061 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
3062
3063 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
3064 instead of SUBREG_PROMOTED_UNSIGNED_SET.
3065 (expand_call): Likewise.
3066 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
3067 to get promoted mode.
3068 * combine.c (record_promoted_value): Skip > 0 comparison with
3069 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
3070 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
3071 of SUBREG_PROMOTED_UNSIGNED_P.
3072 (convert_modes): Likewise.
3073 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
3074 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
3075 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
3076 SUBREG_PROMOTED_UNSIGNED_SET.
3077 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
3078 instead of SUBREG_PROMOTED_UNSIGNED_SET.
3079 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
3080 SUBREG_PROMOTED_SET.
3081 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
3082 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
3083 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
3084 of SUBREG_PROMOTED_UNSIGNED_P.
3085 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
3086 (SUBREG_PROMOTED_SET): New define.
3087 (SUBREG_PROMOTED_GET): Likewise.
3088 (SUBREG_PROMOTED_SIGN): Likewise.
3089 (SUBREG_PROMOTED_SIGNED_P): Likewise.
3090 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
3091 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
3092 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
3093 instead of SUBREG_PROMOTED_UNSIGNED_GET.
3094 (nonzero_bits1): Skip > 0 comparison with the results as
3095 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
3096 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
3097 of !SUBREG_PROMOTED_UNSIGNED_P.
3098 * simplify-rtx.c (simplify_unary_operation_1): Use new
3099 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
3100 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
3101 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
3102 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
3103
3104 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
3105
3106 * ipa-devirt.c: Include gimple-pretty-print.h
3107 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
3108 further tests.
3109 (decl_maybe_in_construction_p): Fix conditional on cdtor check
3110 (get_polymorphic_call_info): Fix return value
3111 (type_change_info): New sturcture based on ipa-prop
3112 variant.
3113 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
3114 based on ipa-prop variant.
3115 (extr_type_from_vtbl_ptr_store): New function
3116 based on ipa-prop variant.
3117 (record_known_type): New function.
3118 (check_stmt_for_type_change): New function.
3119 (get_dynamic_type): New function.
3120 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
3121 * tree-ssa-pre.c: ipa-utils.h
3122 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
3123 machinery; sanity check with ipa-prop devirtualization.
3124 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
3125 polymorphic flag.
3126
3127 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3128
3129 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
3130 * alias.c, cfgexpand.c, cgraphbuild.c,
3131 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
3132 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
3133 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
3134 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
3135 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
3136 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
3137 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
3138 dse.c, except.c, gengtype.c, gimple-expr.c,
3139 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
3140 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
3141 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
3142 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
3143 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
3144 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
3145 pointer-set.h.
3146 * pointer-set.c: Remove file.
3147 * pointer-set.h: Remove file.
3148
3149 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3150
3151 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
3152 * config/arm/types.md (f_sels, f_seld): Delete.
3153
3154 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3155
3156 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
3157 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
3158 (aarch64_movdi_<mode>high): Likewise.
3159 (aarch64_mov<mode>high_di): Likewise.
3160 (aarch64_movdi_<mode>low): Likewise.
3161 (aarch64_mov<mode>low_di): Likewise.
3162 (aarch64_movtilow_tilow): Likewise.
3163 Add comment explaining usage of fp,simd attributes and of
3164 TARGET_FLOAT and TARGET_SIMD.
3165
3166 2014-08-07 Ian Bolton <ian.bolton@arm.com>
3167 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3168
3169 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
3170 Use MOVN when one of the half-words is 0xffff.
3171
3172 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
3173
3174 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
3175
3176 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3177
3178 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
3179 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
3180 (rfs_str): String corresponding to RFS_* constants.
3181 (rank_for_schedule_stats_t): New typedef.
3182 (rank_for_schedule_stats): New static variable.
3183 (rfs_result): New static function.
3184 (rank_for_schedule): Track statistics for deciding heuristics.
3185 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
3186 static functions.
3187 (ready_sort): Use them for debug printouts.
3188 (schedule_block): Init statistics state. Print statistics on
3189 rank_for_schedule decisions.
3190
3191 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3192
3193 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
3194
3195 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
3196
3197 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
3198 constraint.
3199
3200 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3201
3202 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
3203 function to not conflict.
3204 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
3205 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
3206 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
3207 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
3208 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
3209 of pointer_map.
3210
3211 2014-08-07 Marek Polacek <polacek@redhat.com>
3212
3213 * fold-const.c (fold_binary_loc): Add folding of
3214 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
3215
3216 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
3217
3218 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
3219 instead of type size.
3220 (ASM_FINISH_DECLARE_OBJECT): Likewise.
3221
3222 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
3223
3224 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
3225 (*thumb1_movqi_insn): Likewise.
3226 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
3227
3228 2014-08-07 Tom de Vries <tom@codesourcery.com>
3229
3230 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
3231 (glibc_2_11_or_earlier): Remove effective-target keywords.
3232
3233 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
3234
3235 * config/arm/arm.c (bdesc_2arg): Fix typo.
3236 (arm_atomic_assign_expand_fenv): Remove The default implementation.
3237
3238 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
3239
3240 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
3241
3242 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
3243
3244 PR debug/61923
3245 * haifa-sched.c (advance_one_cycle): Fix dump.
3246 (schedule_block): Don't advance cycle if we are already at the
3247 beginning of the cycle.
3248
3249 2014-08-06 Martin Jambor <mjambor@suse.cz>
3250
3251 PR ipa/61393
3252 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
3253
3254 2014-08-06 Richard Biener <rguenther@suse.de>
3255
3256 PR lto/62034
3257 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
3258 SCCs here.
3259 (lto_input_tree): Pop SCCs here.
3260
3261 2014-08-06 Richard Biener <rguenther@suse.de>
3262
3263 PR tree-optimization/61320
3264 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
3265 handle misaligned loads.
3266
3267 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
3268
3269 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
3270 (aarch64_expand_vec_perm_const): Check for dup before zip.
3271
3272 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3273
3274 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
3275 CONST_INT_P instead of GET_CODE and compare.
3276 (aarch64_select_cc_mode): Likewise.
3277 (aarch64_print_operand): Likewise.
3278 (aarch64_rtx_costs): Likewise.
3279 (aarch64_simd_valid_immediate): Likewise.
3280 (aarch64_simd_check_vect_par_cnst_half): Likewise.
3281 (aarch64_simd_emit_pair_result_insn): Likewise.
3282
3283 2014-08-05 David Malcolm <dmalcolm@redhat.com>
3284
3285 * gdbhooks.py (find_gcc_source_dir): New helper function.
3286 (class PassNames): New class, locating and parsing passes.def.
3287 (class BreakOnPass): New command "break-on-pass".
3288
3289 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
3290
3291 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
3292 getting olde.
3293
3294 2014-08-05 Richard Biener <rguenther@suse.de>
3295
3296 PR rtl-optimization/61672
3297 * emit-rtl.h (mem_attrs_eq_p): Declare.
3298 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
3299 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
3300 * cfgcleanup.c (merge_memattrs): Likewise.
3301 Include emit-rtl.h.
3302
3303 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3304
3305 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
3306 rather than singleton vectors.
3307 (vqdmlsls_lane_s32): Likewise.
3308
3309 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3310
3311 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
3312 Use VSDQ_HSI mode iterator.
3313 (aarch64_sqrdmulh_laneq<mode>): Likewise.
3314 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
3315 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
3316 Use BUILTIN_VDQHS macro.
3317 (sqrdmulh_laneq): Likewise.
3318 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
3319 (vqdmlals_laneq_s32): Likewise.
3320 (vqdmlslh_laneq_s16): Likewise.
3321 (vqdmlsls_laneq_s32): Likewise.
3322 (vqdmulhh_laneq_s16): Likewise.
3323 (vqdmulhs_laneq_s32): Likewise.
3324 (vqrdmulhh_laneq_s16): Likewise.
3325 (vqrdmulhs_laneq_s32): Likewise.
3326
3327 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3328
3329 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
3330 (vmuld_laneq_f64): Likewise.
3331 (vmuls_laneq_f32): Likewise.
3332 (vmul_n_f64): Likewise.
3333 (vmuld_lane_f64): Reimplement in C.
3334 (vmuls_lane_f32): Likewise.
3335
3336 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3337
3338 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
3339 to reservation.
3340 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
3341
3342 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3343
3344 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
3345 (rbitsi2): Likewise.
3346 (*arm_rev): Set predicable and predicable_short_it attributes.
3347
3348 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3349
3350 * convert.c (convert_to_integer): Guard transformation to lrint by
3351 -fno-math-errno.
3352
3353 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
3354
3355 * config/aarch64/aarch64-builtins.c
3356 (aarch64_simd_builtin_type_mode): Delete.
3357 (v8qi_UP): Remap to V8QImode.
3358 (v4hi_UP): Remap to V4HImode.
3359 (v2si_UP): Remap to V2SImode.
3360 (v2sf_UP): Remap to V2SFmode.
3361 (v1df_UP): Remap to V1DFmode.
3362 (di_UP): Remap to DImode.
3363 (df_UP): Remap to DFmode.
3364 (v16qi_UP):V16QImode.
3365 (v8hi_UP): Remap to V8HImode.
3366 (v4si_UP): Remap to V4SImode.
3367 (v4sf_UP): Remap to V4SFmode.
3368 (v2di_UP): Remap to V2DImode.
3369 (v2df_UP): Remap to V2DFmode.
3370 (ti_UP): Remap to TImode.
3371 (ei_UP): Remap to EImode.
3372 (oi_UP): Remap to OImode.
3373 (ci_UP): Map to CImode.
3374 (xi_UP): Remap to XImode.
3375 (si_UP): Remap to SImode.
3376 (sf_UP): Remap to SFmode.
3377 (hi_UP): Remap to HImode.
3378 (qi_UP): Remap to QImode.
3379 (aarch64_simd_builtin_datum): Make mode a machine_mode.
3380 (VAR1): Build builtin name.
3381 (aarch64_init_simd_builtins): Remove dead code.
3382
3383 2014-08-05 Roman Gareev <gareevroman@gmail.com>
3384
3385 * graphite-isl-ast-to-gimple.c:
3386 (set_options): New function.
3387 (scop_to_isl_ast): Add calling of set_options.
3388
3389 2014-08-05 Jakub Jelinek <jakub@redhat.com>
3390
3391 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
3392 (analyze_iv_to_split_insn): Don't initialize them.
3393 (get_ivts_expr): Removed.
3394 (allocate_basic_variable, insert_base_initialization): Use
3395 SET_SRC instead of *get_ivts_expr.
3396 (split_iv): Use &SET_SRC instead of get_ivts_expr.
3397
3398 2014-08-05 Roman Gareev <gareevroman@gmail.com>
3399
3400 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
3401 (translate_isl_ast_for_loop): Add checking of the
3402 flag_loop_parallelize_all.
3403 (ast_build_before_for): New function.
3404 (scop_to_isl_ast): Add checking of the
3405 flag_loop_parallelize_all.
3406 * graphite-dependences.c: Move the defenition of the
3407 scop_get_dependences from graphite-optimize-isl.c to this file.
3408 (apply_schedule_on_deps): Add checking of the ux's emptiness.
3409 (carries_deps): Add checking of the x's value.
3410 * graphite-optimize-isl.c: Move the defenition of the
3411 scop_get_dependences to graphite-dependences.c.
3412 * graphite-poly.h: Add declarations of scop_get_dependences
3413 and carries_deps.
3414
3415 2014-08-04 Rohit <rohitarulraj@freescale.com>
3416
3417 PR target/60102
3418 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
3419 names.
3420 (alt_reg_names): Likewise.
3421 (rs6000_dwarf_register_span): For SPE high registers, replace
3422 dwarf register numbers with GCC hard register numbers.
3423 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
3424 (rs6000_dbx_register_number): For SPE high registers, return dwarf
3425 register number for the corresponding GCC hard register number.
3426 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
3427 newly added GCC hard register numbers for SPE high registers.
3428 (DWARF_FRAME_REGISTERS): Likewise.
3429 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
3430 (DWARF_FRAME_REGNUM): Likewise.
3431 (FIXED_REGISTERS): Likewise.
3432 (CALL_USED_REGISTERS): Likewise.
3433 (CALL_REALLY_USED_REGISTERS): Likewise.
3434 (REG_ALLOC_ORDER): Likewise.
3435 (enum reg_class): Likewise.
3436 (REG_CLASS_NAMES): Likewise.
3437 (REG_CLASS_CONTENTS): Likewise.
3438 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
3439
3440 2014-08-04 Richard Biener <rguenther@suse.de>
3441
3442 * gimple-fold.h (gimple_fold_builtin): Remove.
3443 * gimple-fold.c (gimple_fold_builtin): Make static.
3444 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
3445 fold_stmt, not gimple_fold_builtin.
3446
3447 2014-08-04 Martin Liska <mliska@suse.cz>
3448
3449 * cgraph.h (csi_end_p): Removed.
3450 (csi_next): Likewise.
3451 (csi_node): Likewise.
3452 (csi_start): Likewise.
3453 (cgraph_node_in_set_p): Likewise.
3454 (cgraph_node_set_size): Likewise.
3455 (vsi_end_p): Likewise.
3456 (vsi_next): Likewise.
3457 (vsi_node): Likewise.
3458 (vsi_start): Likewise.
3459 (varpool_node_set_size): Likewise.
3460 (cgraph_node_set_nonempty_p): Likewise.
3461 (varpool_node_set_nonempty_p): Likewise.
3462 * cgraphunit.c (cgraph_process_new_functions): vec replaces
3463 cgraph_node_set.
3464 * ipa-inline-transform.c: Likewise.
3465 * ipa-utils.c (cgraph_node_set_new): Removed.
3466 (cgraph_node_set_add): Likewise.
3467 (cgraph_node_set_remove): Likewise.
3468 (cgraph_node_set_find): Likewise.
3469 (dump_cgraph_node_set): Likewise.
3470 (debug_cgraph_node_set): Likewise.
3471 (free_cgraph_node_set): Likewise.
3472 (varpool_node_set_new): Likewise.
3473 (varpool_node_set_add): Likewise.
3474 (varpool_node_set_remove): Likewise.
3475 (varpool_node_set_find): Likewise.
3476 (dump_varpool_node_set): Likewise.
3477 (free_varpool_node_set): Likewise.
3478 (debug_varpool_node_set): Likewise.
3479 * tree-emutls.c (struct tls_var_data):
3480 (emutls_index): Removed.
3481 (emutls_decl): Likewise.
3482 (gen_emutls_addr): Function implementation uses newly added
3483 hash_map<varpool_node *, tls_var_data>.
3484 (clear_access_vars): Likewise.
3485 (create_emultls_var): Likewise.
3486 (ipa_lower_emutls): Likewise.
3487 (reset_access): New function.
3488
3489 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3490
3491 * config/i386/i386.c (ix86_option_override_internal): Add
3492 PTA_RDRND and PTA_MOVBE for bdver4.
3493
3494 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3495 James Greenhalgh <james.greenhalgh@arm.com>
3496
3497 * doc/md.texi (clrsb): Document.
3498 (clz): Change reference to x into operand 1.
3499 (ctz): Likewise.
3500 (popcount): Likewise.
3501
3502 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3503
3504 PR target/61713
3505 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
3506 move to subtarget in serial version if result is ignored.
3507
3508 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3509 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3510
3511 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
3512 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
3513 (sched_analyze_insn): Update use of try_group_insn to
3514 sched_macro_fuse_insns.
3515 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
3516 arguments that are not conditional jumps.
3517
3518 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3519
3520 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
3521 family information. Handle BTVER2 cpu with cpuid family value.
3522
3523 2014-08-04 Tom de Vries <tom@codesourcery.com>
3524
3525 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
3526 (glibc_2_11_or_earlier): Document effective-target keywords.
3527
3528 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
3529
3530 * ipa-devirt.c (odr_type_warn_count): Add type.
3531 (possible_polymorphic_call_targets): Set it.
3532 (ipa_devirt): Use it.
3533
3534 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
3535
3536 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
3537 Document.
3538 * ipa-devirt.c: Include hash-map.h
3539 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
3540 (clear_speculation): Break out of ...
3541 (get_class_context): ... here; speed up handling obviously useless
3542 speculations.
3543 (odr_type_warn_count, decl_warn_count): New structures.
3544 (final_warning_record): New structure.
3545 (final_warning_records): New static variable.
3546 (possible_polymorphic_call_targets): Cleanup handling of
3547 speculative info; do not build speculation when user do not care;
3548 record info about warnings when asked for.
3549 (add_decl_warning): New function.
3550 (type_warning_cmp): New function.
3551 (decl_warning_cmp): New function.
3552 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
3553 (gate): Enable pass when warnings are requested.
3554 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
3555 options.
3556
3557 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3558
3559 * hash-map.h (default_hashmap_traits::mark_key_deleted):
3560 Fix cast.
3561 (hash_map::remove): New method.
3562 (hash_map::traverse): New method.
3563 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
3564 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
3565 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
3566 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
3567 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
3568 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
3569 pointer_map.
3570
3571 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3572
3573 * hash-set.h: new File.
3574 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
3575 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
3576 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
3577 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
3578 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
3579 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
3580 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
3581 varpool.c: Use hash_set instead of pointer_set.
3582
3583 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
3584
3585 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
3586
3587 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3588
3589 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
3590 for frame access when strict_p is false.
3591
3592 2014-08-01 Renlin Li <renlin.li@arm.com>
3593 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3594
3595 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
3596 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
3597 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
3598 Declaration.
3599 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
3600 predicate.
3601 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
3602 aarch64_mem_pair_offset.
3603
3604 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3605
3606 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
3607 offset.
3608 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
3609 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
3610
3611 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
3612
3613 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
3614
3615 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
3616
3617 PR regression/61510
3618 * cgraphunit.c (analyze_functions): Use get_create rather than get
3619 for decls which are clones of abstract functions.
3620
3621 2014-08-01 Martin Liska <mliska@suse.cz>
3622
3623 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
3624 * ipa-prop.h (count_formal_params): Global function created from static.
3625 * ipa-prop.c (count_formal_params): Likewise.
3626 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
3627 profiles for semantically equivalent functions.
3628 * passes.c (do_per_function): If we load body of a function
3629 during WPA, this condition should behave same.
3630 * varpool.c (ctor_for_folding): More tolerant assert for variable
3631 aliases created during WPA.
3632
3633 2014-08-01 Martin Liska <mliska@suse.cz>
3634
3635 * doc/invoke.texi (Options That Control Optimization): Documentation
3636 for -foptimize-strlen introduced. Optimization levels default options
3637 fixed.
3638
3639 2014-08-01 Jakub Jelinek <jakub@redhat.com>
3640
3641 * opts.c (common_handle_option): Handle -fsanitize=alignment.
3642 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
3643 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
3644 type to bool.
3645 * stor-layout.h (min_align_of_type): New prototype.
3646 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
3647 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
3648 check.
3649 * ubsan.c: Include builtins.h.
3650 (ubsan_expand_bounds_ifn): Change return type to bool,
3651 always return true.
3652 (ubsan_expand_null_ifn): Change return type to bool, change
3653 argument to gimple_stmt_iterator *. Handle both null and alignment
3654 sanitization, take type from ckind argument's type rather than
3655 first argument.
3656 (instrument_member_call): Removed.
3657 (instrument_mem_ref): Remove t argument, add mem and base arguments.
3658 Handle both null and alignment sanitization, don't say whole
3659 struct access is member access. Build 3 argument IFN_UBSAN_NULL
3660 call instead of 2 argument.
3661 (instrument_null): Adjust instrument_mem_ref caller. Don't
3662 instrument calls here.
3663 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
3664 like SANITIZE_NULL.
3665 * stor-layout.c (min_align_of_type): New function.
3666 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
3667 Or it into SANITIZE_UNDEFINED.
3668 * doc/invoke.texi (-fsanitize=alignment): Document.
3669
3670 2014-07-31 Andi Kleen <ak@linux.intel.com>
3671
3672 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
3673
3674 2014-07-31 Andi Kleen <ak@linux.intel.com>
3675
3676 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
3677 inchash.
3678 (vn_reference_compute_hash): Dito.
3679 (vn_nary_op_compute_hash): Dito.
3680 (vn_phi_compute_hash): Dito.
3681 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
3682
3683 2014-07-31 Andi Kleen <ak@linux.intel.com>
3684
3685 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
3686 Rename to inchash:add_expr_commutative. Convert to inchash.
3687 (iterative_hash_hashable_expr): Rename to
3688 inchash:add_hashable_expr. Convert to inchash.
3689 (avail_expr_hash): Dito.
3690
3691 2014-07-31 Andi Kleen <ak@linux.intel.com>
3692
3693 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
3694 Convert to inchash.
3695
3696 2014-07-31 Andi Kleen <ak@linux.intel.com>
3697
3698 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
3699
3700 2014-07-31 Andi Kleen <ak@linux.intel.com>
3701
3702 * Makefile.in (OBJS): Add rtlhash.o
3703 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
3704 (loc_checksum): Dito.
3705 (loc_checksum_ordered): Dito.
3706 (hash_loc_operands): Dito.
3707 (hash_locs): Dito.
3708 (hash_loc_list): Dito.
3709 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
3710 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
3711 * rtlhash.c: New file.
3712 * rtlhash.h: New file.
3713
3714 2014-07-31 Andi Kleen <ak@linux.intel.com>
3715
3716 * inchash.h (inchash): Change inchash class to namespace.
3717 (class hash): ... Rename from inchash.
3718 (add_object): Move from macro to class template.
3719 * lto-streamer-out.c (hash_tree): Change inchash
3720 to inchash::hash.
3721 * tree.c (build_type_attribute_qual_variant): Dito.
3722 (type_hash_list): Dito.
3723 (attribute_hash_list): Dito.
3724 (iterative_hstate_expr): Rename to inchash::add_expr
3725 (build_range_type_1): Change inchash to inchash::hash
3726 and use hash::add_expr.
3727 (build_array_type_1): Dito.
3728 (build_function_type): Dito
3729 (build_method_type_directly): Dito.
3730 (build_offset_type): Dito.
3731 (build_complex_type): Dito.
3732 (make_vector_type): Dito.
3733 * tree.h (iterative_hash_expr): Dito.
3734
3735 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
3736
3737 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
3738
3739 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3740
3741 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
3742 correct alphabetical position.
3743 (vpaddd_f64): Rewrite using builtins.
3744 (vpaddd_s64): Move to correct alphabetical position.
3745 (vpaddd_u64): New.
3746
3747 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
3748
3749 PR target/61844
3750 * config/sh/sh.c (sh_legitimate_address_p,
3751 sh_legitimize_reload_address): Handle reg+reg address modes when
3752 ALLOW_INDEXED_ADDRESS is false.
3753 * config/sh/predicates.md (general_movsrc_operand,
3754 general_movdst_operand): Likewise.
3755
3756 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3757
3758 * config/aarch64/aarch64-builtins.c
3759 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
3760 BYTES_BIG_ENDIAN.
3761
3762 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3763
3764 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
3765 the generated mask based on BYTES_BIG_ENDIAN.
3766 (aarch64_simd_check_vect_par_cnst_half): New.
3767 * config/aarch64/aarch64-protos.h
3768 (aarch64_simd_check_vect_par_cnst_half): New.
3769 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
3770 the check out to aarch64_simd_check_vect_par_cnst_half.
3771 (vect_par_cnst_lo_half): Likewise.
3772 * config/aarch64/aarch64-simd.md
3773 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
3774 (move_hi_quad_<mode>): Always generate a low mask.
3775
3776 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3777
3778 * doc/invoke.texi (AVR Options): Add documentation about
3779 __AVR_DEVICE_NAME__ built-in macro.
3780
3781 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
3782
3783 PR target/61948
3784 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
3785 constraints are satisfied.
3786 (<shift>di3_neon): Likewise.
3787
3788 2014-07-31 Richard Biener <rguenther@suse.de>
3789
3790 PR tree-optimization/61964
3791 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
3792 by structural equality.
3793
3794 2014-07-31 Yury Gribov <y.gribov@samsung.com>
3795
3796 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
3797 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
3798 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
3799 New enums.
3800 * gcc.c (sanitize_spec_function): Support new option.
3801 (SANITIZER_SPEC): Remove now redundant check.
3802 * opts.c (common_handle_option): Support new option.
3803 (finish_options): Check for incompatibilities.
3804 * toplev.c (process_options): Split userspace-specific checks.
3805
3806 2014-07-31 Richard Biener <rguenther@suse.de>
3807
3808 * lto-streamer.h (struct output_block): Remove global.
3809 (struct data_in): Remove labels, num_named_labels and
3810 num_unnamed_labels.
3811 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
3812 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
3813
3814 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
3815
3816 PR c++/60517
3817 * common.opt (-Wreturn-local-addr): Moved from c.opt.
3818 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
3819 (isolate_path): New argument to avoid inserting a trap.
3820 (find_implicit_erroneous_behaviour): Handle returning the address
3821 of a local variable.
3822 (find_explicit_erroneous_behaviour): Likewise.
3823
3824 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
3825
3826 PR lto/61868
3827 * toplev.c (init_random_seed): Move piece of code never called to
3828 set_random_seed.
3829 (set_random_seed): see above.
3830
3831 2014-07-31 Tom de Vries <tom@codesourcery.com>
3832
3833 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
3834
3835 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3836
3837 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
3838 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
3839
3840 2014-07-31 Richard Biener <rguenther@suse.de>
3841
3842 * data-streamer.h (streamer_write_data_stream): Declare here,
3843 renamed from ...
3844 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
3845 * lto-cgraph.c (lto_output_node): Adjust.
3846 (lto_output_varpool_node): Likewise.
3847 * data-streamer-out.c (streamer_string_index): Likewise.
3848 (streamer_write_data_stream, lto_append_block): Move from ...
3849 * lto-section-out.c (lto_output_data_stream,
3850 lto_append_block): ... here.
3851
3852 2014-07-30 Mike Stump <mikestump@comcast.net>
3853
3854 * configure.ac: Also check for popen.
3855 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
3856 * configure: Regenerate.
3857 * config.in: Regenerate.
3858
3859 2014-07-30 Martin Jambor <mjambor@suse.cz>
3860
3861 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
3862 parameter to gimple.
3863
3864 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3865
3866 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
3867 address as second parameter to __tpf_eh_return routine.
3868
3869 2014-07-30 Jiong Wang <jiong.wang@arm.com>
3870
3871 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
3872 Thumb2.
3873
3874 2014-07-30 Tom Tromey <tromey@redhat.com>
3875
3876 PR c/59855
3877 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
3878 * doc/extend.texi (Type Attributes): Document designated_init
3879 attribute.
3880
3881 2014-07-30 Roman Gareev <gareevroman@gmail.com>
3882
3883 * graphite-isl-ast-to-gimple.c:
3884 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
3885 (gcc_expression_from_isl_expression): Pass type to
3886 gcc_expression_from_isl_ast_expr_id.
3887
3888 2014-07-30 Richard Biener <rguenther@suse.de>
3889
3890 * lto-streamer.h (lto_write_data): New function.
3891 * langhooks.c (lhd_append_data): Do not free block.
3892 * lto-section-out.c (lto_write_data): New function writing
3893 raw data to the current section.
3894 (lto_write_stream): Adjust for langhook semantic change.
3895 (lto_destroy_simple_output_block): Write header directly.
3896 * lto-opts.c (lto_write_options): Write options directly.
3897 * lto-streamer-out.c (produce_asm): Write heaeder directly.
3898 (lto_output_toplevel_asms): Likewise.
3899 (copy_function_or_variable): Copy data directly.
3900 (write_global_references): Output index table directly.
3901 (lto_output_decl_state_refs): Likewise.
3902 (write_symbol): Write data directly.
3903 (produce_symtab): Adjust.
3904 (produce_asm_for_decls): Output header and refs directly.
3905
3906 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3907
3908 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
3909 to speculative_targets
3910 (get_class_context): Fix handling of contextes without outer type;
3911 avoid matching non-polymorphic types in LTO.
3912 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
3913 parameter to speculative_targetsp; handle speculation.
3914 (dump_possible_polymorphic_call_targets): Update dumping.
3915
3916 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3917
3918 * common.opt (Wodr): Enable by default.
3919
3920 2014-07-29 Olivier Hainque <hainque@adacore.com>
3921
3922 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
3923
3924 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
3925
3926 PR bootstrap/61914
3927 * gengtype.c (strtoken): New function.
3928 (create_user_defined_type): Replace strtok with strtoken.
3929
3930 2014-07-29 Nathan Sidwell <nathan@acm.org>
3931
3932 * gcov-io.c (gcov_var): Make hidden.
3933 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
3934 (gcov_do_dump): Declare.
3935 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
3936
3937 2014-07-29 Martin Jambor <mjambor@suse.cz>
3938
3939 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
3940 parameter to gimple.
3941 (sra_modify_assign): Likewise.
3942
3943 2014-07-29 Richard Biener <rguenther@suse.de>
3944
3945 PR middle-end/52478
3946 * expr.c (expand_expr_real_2): Revert last change.
3947
3948 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3949
3950 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
3951 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
3952 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
3953 call.
3954 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
3955 (contains_type_p): Forward declare.
3956 (polymorphic_call_target_hasher::hash): Hash speculative info.
3957 (polymorphic_call_target_hasher::equal): Compare speculative info.
3958 (get_class_context): Handle speuclation.
3959 (contains_type_p): Update.
3960 (get_polymorphic_call_info_for_decl): Update.
3961 (walk_ssa_copies): Break out from ...
3962 (get_polymorphic_call_info): ... here; set speculative context
3963 before giving up.
3964 * ipa-prop.c (ipa_write_indirect_edge_info,
3965 ipa_read_indirect_edge_info): Stream speculative context.
3966 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
3967 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
3968 SPECULATIVE_MAYBE_DERIVED_TYPE).
3969 (possible_polymorphic_call_targets overriders): Update.
3970 (dump_possible_polymorphic_call_targets overriders): Update.
3971 (dump_possible_polymorphic_call_target_p overriders): Update.
3972
3973 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3974
3975 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
3976 ipa-devirt path; fix thinko there.
3977
3978 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
3979
3980 * config/i386/i386.c (ix86_return_in_memory): Replace one
3981 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
3982
3983 2014-07-28 Marek Polacek <polacek@redhat.com>
3984
3985 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
3986
3987 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
3988
3989 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
3990 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
3991 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
3992 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3993 (USE_LD_AS_NEEDED): Likewise.
3994 (ASM_APP_ON): Likewise.
3995 (ASM_APP_OFF): Likewise.
3996 (TARGET_POSIX_IO): Likewise.
3997 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
3998 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3999 (USE_LD_AS_NEEDED): Likewise.
4000 (ASM_APP_ON): Likewise.
4001 (ASM_APP_OFF): Likewise.
4002 (TARGET_POSIX_IO): Likewise.
4003
4004 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
4005
4006 PR middle-end/61734
4007 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
4008 operators other than the equality operators.
4009
4010 2014-07-28 Richard Biener <rguenther@suse.de>
4011
4012 PR middle-end/52478
4013 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
4014 sure to register SImode ones, not only >= word_mode ones.
4015 * expr.c (expand_expr_real_2): When expanding -ftrapv
4016 binops do not use OPTAB_LIB_WIDEN.
4017
4018 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
4019
4020 PR middle-end/61919
4021 * tree-outof-ssa.c (insert_partition_copy_on_edge)
4022 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
4023 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
4024 inserting them in the insn stream.
4025
4026 2014-07-28 Marek Polacek <polacek@redhat.com>
4027
4028 PR middle-end/61913
4029 * common.opt (Wodr): Add Var.
4030
4031 2014-07-28 Richard Biener <rguenther@suse.de>
4032
4033 PR tree-optimization/61921
4034 * tree-ssa-structalias.c (create_variable_info_for_1): Check
4035 if there is a varpool node before dereferencing it.
4036
4037 2014-07-28 Roman Gareev <gareevroman@gmail.com>
4038
4039 * graphite-sese-to-poly.c:
4040 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
4041 id of the pbb), which contains pointer to the pbb1.
4042
4043 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
4044
4045 2014-07-28 Roman Gareev <gareevroman@gmail.com>
4046
4047 * graphite-isl-ast-to-gimple.c:
4048 (graphite_create_new_guard): New function.
4049 (translate_isl_ast_node_if): New function.
4050 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
4051
4052 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
4053
4054 2014-07-27 Anthony Green <green@moxielogic.com>
4055
4056 * config.gcc: Add moxie-*-moxiebox* configuration.
4057 * config/moxie/moxiebox.h: New file.
4058
4059 2014-07-26 Andrew Pinski <apinski@cavium.com>
4060
4061 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
4062 from the read only register.
4063
4064 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
4065
4066 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
4067 as the allocation class if it isn't likely to be spilled.
4068
4069 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
4070
4071 * rtl.h (tls_referenced_p): Declare.
4072 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
4073 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
4074 (mips_cannot_force_const_mem): Use tls_referenced_p.
4075 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
4076 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
4077 instead of pa_tls_referenced_p.
4078 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
4079 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
4080 (pa_legitimate_constant_p): Likewise.
4081 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
4082 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
4083 (rs6000_cannot_force_const_mem, rs6000_emit_move)
4084 (rs6000_address_for_altivec): Use tls_referenced_p instead of
4085 rs6000_tls_referenced_p.
4086 (rs6000_tls_symbol_ref_1): Delete.
4087
4088 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
4089
4090 PR target/44551
4091 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4092 Optimize inverse of a VEC_CONCAT.
4093
4094 2014-07-25 Xinliang David Li <davidxl@google.com>
4095
4096 * params.def: New parameter.
4097 * coverage.c (get_coverage_counts): Check new flag.
4098 (coverage_compute_profile_id): Check new flag.
4099 (coverage_begin_function): Check new flag.
4100 (coverage_end_function): Check new flag.
4101 * value-prof.c (coverage_node_map_initialized_p): New function.
4102 (init_node_map): Populate map with all functions.
4103 * doc/invoke.texi: Document new parameter.
4104
4105 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
4106 Richard Biener <rguenther@suse.de>
4107
4108 * lto-streamer-out.c (struct sccs): Turn to ...
4109 (class DFS): ... this one; refactor the DFS walk so it can
4110 be re-done on per-SCC basis.
4111 (DFS::DFS): New constructor.
4112 (DFS::~DFS): New destructor.
4113 (hash_tree): Add new MAP argument holding in-SCC hash values;
4114 remove POINTER_TYPE hashing hack.
4115 (scc_entry_compare): Rename to ...
4116 (DFS::scc_entry_compare): ... this one.
4117 (hash_scc): Rename to ...
4118 (DFS::hash_scc): ... this one; pass output_block instead
4119 of streamer_cache; work harder to get unique and stable SCC
4120 hashes.
4121 (DFS_write_tree): Rename to ...
4122 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
4123 (lto_output_tree): Update.
4124
4125 2014-07-25 Andi Kleen <ak@linux.intel.com>
4126
4127 * lto-streamer-out.c (hash_tree): Convert to inchash.
4128
4129 2014-07-25 Andi Kleen <ak@linux.intel.com>
4130
4131 * tree.c (build_type_attribute_qual_variant): Use inchash.
4132 (type_hash_list): Dito.
4133 (attribute_hash_list): Dito
4134 (iterative_hstate_expr): Dito.
4135 (iterative_hash_expr): Dito.
4136 (build_range_type_1): Dito.
4137 (build_array_type_1): Dito.
4138 (build_function_type): Dito.
4139 (build_method_type_directly): Dito.
4140 (build_offset_type): Dito.
4141 (build_complex_type): Dito.
4142 (make_vector_type): Dito.
4143 * tree.h (iterative_hash_expr): Add compat wrapper.
4144 (iterative_hstate_expr): Add.
4145
4146 2014-07-25 Andi Kleen <ak@linux.intel.com>
4147
4148 * Makefile.in (OBJS): Add inchash.o.
4149 (PLUGIN_HEADERS): Add inchash.h.
4150 * ipa-devirt.c: Include inchash.h.
4151 * lto-streamer-out.c: Dito.
4152 * tree-ssa-dom.c: Dito.
4153 * tree-ssa-pre.c: Dito.
4154 * tree-ssa-sccvn.c: Dito.
4155 * tree-ssa-tail-merge.c: Dito.
4156 * asan.c: Dito.
4157 * tree.c (iterative_hash_hashval_t): Move to ...
4158 (iterative_hash_host_wide_int): Move to ...
4159 * inchash.c: Here. New file.
4160 * tree.h (iterative_hash_hashval_t): Move to ...
4161 (iterative_hash_host_wide_int): Move to ...
4162 * inchash.h: Here. New file.
4163
4164 2014-07-25 Richard Biener <rguenther@suse.de>
4165
4166 PR middle-end/61762
4167 PR middle-end/61894
4168 * fold-const.c (native_encode_int): Add and handle offset
4169 parameter to do partial encodings of expr.
4170 (native_encode_fixed): Likewise.
4171 (native_encode_real): Likewise.
4172 (native_encode_complex): Likewise.
4173 (native_encode_vector): Likewise.
4174 (native_encode_string): Likewise.
4175 (native_encode_expr): Likewise.
4176 * fold-const.c (native_encode_expr): Add offset parameter
4177 defaulting to -1.
4178 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
4179 (fold_ctor_reference): Handle all reads from tcc_constant
4180 ctors.
4181
4182 2014-07-25 Richard Biener <rguenther@suse.de>
4183
4184 * tree-inline.c (estimate_move_cost): Mark speed_p argument
4185 as possibly unused.
4186
4187 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4188
4189 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
4190
4191 2014-07-24 Kyle McMartin <kyle@redhat.com>
4192
4193 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
4194
4195 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4196
4197 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
4198 Add prototype.
4199 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
4200 function.
4201 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
4202 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4203 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
4204
4205 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4206
4207 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
4208 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
4209 aggregate types. Instead, *all* aggregate types, except for single-
4210 element or homogeneous float/vector aggregates, are quadword-aligned
4211 if required by their type alignment. Issue -Wpsabi note when a type
4212 is now treated differently than before.
4213
4214 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4215
4216 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
4217 does not fit fully into floating-point registers, and there is still
4218 space in the register parameter area, use GPRs to pass those parts
4219 of the argument. Issue -Wpsabi note if any parameter is now treated
4220 differently than before.
4221 (rs6000_arg_partial_bytes): Update.
4222
4223 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
4224
4225 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
4226
4227 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4228
4229 * rtl.h (target_rtl): Remove lang_dependent_initialized.
4230 * toplev.c (initialize_rtl): Don't use it. Move previously
4231 "language-dependent" calls to...
4232 (backend_init): ...here.
4233 (lang_dependent_init_target): Don't set lang_dependent_initialized.
4234 Assert that RTL initialization hasn't happend yet.
4235
4236 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4237
4238 PR rtl-optimization/61629
4239 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
4240 they have already been initialized.
4241
4242 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4243
4244 PR middle-end/61268
4245 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
4246 DECL_INCOMING_RTL and entry_parm.
4247 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
4248 * calls.c (load_register_parameters): Likewise argument values.
4249 (emit_library_call_value_1, store_one_arg): Likewise argument
4250 save areas.
4251 * config/i386/i386.c (assign_386_stack_local): Likewise the local
4252 stack slot.
4253 * explow.c (validize_mem): Modify the argument in-place.
4254
4255 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4256
4257 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
4258 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
4259
4260 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4261
4262 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
4263 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
4264
4265 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4266
4267 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
4268 (aarch64_save_callee_saves): New parameter "skip_wb".
4269 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
4270
4271 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4272
4273 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
4274 "wb_candidate2".
4275 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
4276
4277 2014-07-24 Roman Gareev <gareevroman@gmail.com>
4278
4279 * graphite-isl-ast-to-gimple.c:
4280 (graphite_create_new_loop): Add calling of isl_id_free to properly
4281 decrement reference counts.
4282
4283 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
4284
4285 2014-07-24 Martin Liska <mliska@suse.cz>
4286 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
4287 function used.
4288 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
4289 (rs6000_code_end): Likewise.
4290
4291 2014-07-24 Martin Liska <mliska@suse.cz>
4292
4293 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
4294 symtab_node funtion used.
4295 (rs6000_xcoff_declare_object_name): Likewise.
4296
4297 2014-07-24 Martin Liska <mliska@suse.cz>
4298
4299 * cgraphunit.c (compile): Correct function used.
4300
4301 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
4302
4303 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
4304 as non-indexable.
4305
4306 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
4307
4308 PR lto/61802
4309 * varasm.c (bss_initializer_p): Handle offlined ctors.
4310 (align_variable, get_variable_align): Likewise.
4311 (make_decl_one_only): Likewise.
4312 (default_binds_local_p_1): Likewise.
4313 (decl_binds_to_current_def_p): Likewise.
4314 (get_variable_section): Get constructor if it is offlined.
4315 (assemble_variable_contents): Sanity check that the caller
4316 streamed in the ctor in LTO.
4317
4318 2014-07-24 Roman Gareev <gareevroman@gmail.com>
4319
4320 * graphite-isl-ast-to-gimple.c:
4321 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
4322 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
4323 isl_ast_op_pdiv_r to the different case.
4324
4325 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
4326
4327 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4328
4329 PR middle-end/61876
4330 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
4331 when flag_errno_math is on.
4332
4333 2014-07-24 Martin Liska <mliska@suse.cz>
4334
4335 * cgraph.h (varpool_node):
4336 (availability get_availability (void)):
4337 created from cgraph_variable_initializer_availability
4338 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
4339 created from: cgraph_variable_initializer_availability
4340 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
4341 (void finalize_named_section_flags (void)):
4342 created from varpool_finalize_named_section_flags
4343 (bool assemble_decl (void)): created from varpool_assemble_decl
4344 (void analyze (void)): created from varpool_analyze_node
4345 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
4346 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
4347 (void remove_initializer (void)): created from varpool_remove_initializer
4348 (tree get_constructor (void)): created from varpool_get_constructor
4349 (bool externally_visible_p (void)): created from varpool_externally_visible_p
4350 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
4351 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
4352 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
4353 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
4354 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
4355 (static bool output_variables (void)): created from varpool_output_variables
4356 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
4357 created from varpool_extra_name_alias
4358 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
4359 (static void dump_varpool (FILE *f)): created from dump_varpool
4360 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
4361 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
4362 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
4363 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
4364 (void assemble_aliases (void)): created from assemble_aliases
4365
4366 2014-07-24 Martin Liska <mliska@suse.cz>
4367
4368 * cgraph.h (symtab_node):
4369 (void register_symbol (void)): created from symtab_register_node
4370 (void remove (void)): created from symtab_remove_node
4371 (void dump (FILE *f)): created from dump_symtab_node
4372 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
4373 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
4374 (struct ipa_ref *add_reference (symtab_node *referred_node,
4375 enum ipa_ref_use use_type)): created from add_reference
4376 (struct ipa_ref *add_reference (symtab_node *referred_node,
4377 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
4378 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
4379 gimple stmt)): created from maybe_add_reference
4380 (bool semantically_equivalent_p (symtab_node *target)): created from
4381 symtab_semantically_equivalent_p
4382 (void remove_from_same_comdat_group (void)): created from
4383 remove_from_same_comdat_group
4384 (void add_to_same_comdat_group (symtab_node *old_node)): created from
4385 symtab_add_to_same_comdat_group
4386 (void dissolve_same_comdat_group_list (void)): created from
4387 symtab_dissolve_same_comdat_group_list
4388 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
4389 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
4390 created from symtab_alias_ultimate_target
4391 (inline symtab_node *next_defined_symbol (void)): created from
4392 symtab_next_defined_symbol
4393 (bool resolve_alias (symtab_node *target)): created from
4394 symtab_resolve_alias
4395 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
4396 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
4397 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
4398 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
4399 (void set_section (const char *section)): created from set_section_1
4400 (enum availability get_availability (void)): created from symtab_node_availability
4401 (void make_decl_local (void)): created from symtab_make_decl_local
4402 (bool real_symbol_p (void)): created from symtab_read_node
4403 (can_be_discarded_p (void)): created from symtab_can_be_discarded
4404 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
4405 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
4406 symtab_in_same_comdat_p;
4407 (bool address_taken_from_non_vtable_p (void)): created from
4408 address_taken_from_non_vtable_p
4409 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
4410 (static void dump_table (FILE *)): created from dump_symtab
4411 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
4412 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
4413 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
4414 symtab_used_from_object_file_p
4415 (void dump_base (FILE *)): created from dump_symtab_base
4416 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
4417 (void unregister (void)): created from symtab_unregister_node
4418 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
4419 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
4420 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
4421 symtab_nonoverwritable_alias_1
4422 * cgraph.h (cgraph_node):
4423 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
4424 created from cgraph_remove_node_and_inline_clones
4425 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
4426 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
4427 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
4428 (cgraph_node *function_symbol (enum availability *avail = NULL)):
4429 created from cgraph_function_node
4430 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
4431 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
4432 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
4433 created from cgraph_create_clone
4434 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
4435 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
4436 created from cgraph_create_virtual_clone
4437 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
4438 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
4439 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
4440 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
4441 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
4442 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
4443 created from cgraph_function_version_info
4444 (struct cgraph_function_version_info *insert_new_function_version (void)):
4445 created from insert_new_cgraph_node_version
4446 (struct cgraph_function_version_info *function_version (void)): created from
4447 get_cgraph_node_version
4448 (void analyze (void)): created from analyze_function
4449 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
4450 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
4451 tree real_alias) cgraph_add_thunk
4452 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
4453 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
4454 created from cgraph_function_or_thunk_node
4455 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
4456 created from expand_thunk
4457 (void reset (void)): created from cgraph_reset_node
4458 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
4459 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
4460 (void remove (void)): created from cgraph_remove_node
4461 (void dump (FILE *f)): created from dump_cgraph_node
4462 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
4463 (bool get_body (void)): created from cgraph_get_body
4464 (void release_body (void)): created from cgraph_release_function_body
4465 (void unnest (void)): created from cgraph_unnest_node
4466 (void make_local (void)): created from cgraph_make_node_local
4467 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
4468 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
4469 gcov_type count, int freq)): created from cgraph_create_edge
4470 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
4471 gcov_type count, int freq)): created from cgraph_create_indirect_edge
4472 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
4473 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
4474 created from cgraph_create_edge_including_clones
4475 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
4476 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
4477 (void remove_callers (void)): created from cgraph_node_remove_callers
4478 (void remove_callees (void)): created from cgraph_node_remove_callees
4479 (enum availability get_availability (void)): created from cgraph_function_body_availability
4480 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
4481 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
4482 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
4483 (void call_duplication_hooks (cgraph_node *node2)): created from
4484 cgraph_call_node_duplication_hooks
4485 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
4486 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
4487 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
4488 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
4489 (void call_function_insertion_hooks (void)):
4490 created from cgraph_call_function_insertion_hooks
4491 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
4492 (bool local_p (void)): created from cgraph_local_node
4493 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
4494 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
4495 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
4496 (inline bool only_called_directly_or_aliased_p (void)):
4497 created from cgraph_only_called_directly_or_aliased_p
4498 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
4499 created from cgraph_will_be_removed_from_program_if_no_direct_calls
4500 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
4501 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
4502 (bool can_remove_if_no_direct_calls_p (void)):
4503 created from cgraph_can_remove_if_no_direct_calls_p
4504 (inline bool has_gimple_body_p (void)):
4505 created from cgraph_function_with_gimple_body_p
4506 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
4507 (static void dump_cgraph (FILE *f)): created from dump_cgraph
4508 (static inline void debug_cgraph (void)): created from debug_cgraph
4509 (static void record_function_versions (tree decl1, tree decl2)):
4510 created from record_function_versions
4511 (static void delete_function_version (tree decl)):
4512 created from delete_function_version
4513 (static void add_new_function (tree fndecl, bool lowered)):
4514 created from cgraph_add_new_function
4515 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
4516 (static cgraph_node * create (tree decl)): created from cgraph_create_node
4517 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
4518 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
4519 (static cgraph_node *get_for_asmname (tree asmname)):
4520 created from cgraph_node_for_asm
4521 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
4522 created from cgraph_same_body_alias
4523 (static bool used_from_object_file_p_worker (cgraph_node *node,
4524 void *): new function
4525 (static bool non_local_p (cgraph_node *node, void *)):
4526 created from cgraph_non_local_node_p_1
4527 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
4528 created from verify_cgraph
4529 (static bool make_local (cgraph_node *node, void *)):
4530 created from cgraph_make_node_local
4531 (static cgraph_node *create_alias (tree alias, tree target)):
4532 created from cgraph_create_function_alias
4533 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
4534 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
4535 created from cgraph_create_edge_1
4536 * cgraph.h (varpool_node):
4537 (void remove (void)): created from varpool_remove_node
4538 (void dump (FILE *f)): created from dump_varpool_node
4539
4540 2014-07-24 Richard Biener <rguenther@suse.de>
4541
4542 PR ipa/61823
4543 * tree-ssa-structalias.c (create_variable_info_for_1):
4544 Use varpool_get_constructor.
4545 (create_variable_info_for): Likewise.
4546
4547 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4548
4549 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
4550 subtract outgoing area size when restoring stack_pointer_rtx.
4551
4552 2014-07-24 Nick Clifton <nickc@redhat.com>
4553
4554 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
4555 that operations are taking place in parallel.
4556 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
4557
4558 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
4559
4560 * omp-low.c (extract_omp_for_data): Add missing break statement.
4561
4562 2014-07-24 Richard Biener <rguenther@suse.de>
4563
4564 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
4565 * tree-inline.c (estimate_move_cost): Add speed_p parameter
4566 and adjust MOVE_RATIO query accordingly.
4567 (estimate_num_insns): Adjust callers.
4568 * ipa-prop.c (ipa_populate_param_decls): Likewise.
4569 * ipa-cp.c (gather_context_independent_values,
4570 estimate_local_effects): Likewise.
4571 * ipa-split.c (consider_split): Likewise.
4572
4573 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
4574
4575 * config/i386/driver-i386.c: Remove names of unused arguments and
4576 unnecessary unused attributes.
4577 * config/i386/host-mingw32.c: Likewise.
4578 * config/i386/i386.c: Likewise.
4579 * config/i386/winnt-stubs.c: Likewise.
4580 * config/i386/winnt.c: Likewise.
4581
4582 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4583
4584 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
4585 (aarch64_gen_loadwb_pair): New helper function.
4586 (aarch64_expand_epilogue): Simplify code using new helper functions.
4587 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
4588
4589 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4590
4591 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
4592 (aarch64_gen_storewb_pair): New helper function.
4593 (aarch64_expand_prologue): Simplify code using new helper functions.
4594 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
4595
4596 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4597
4598 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
4599 Rename to aarch64_save_callee_saves, remove restore code.
4600 (aarch64_restore_callee_saves): New function.
4601
4602 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4603
4604 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
4605 (aarch64_save_callee_saves): New function to handle reg save
4606 for both core and vectore regs.
4607
4608 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4609
4610 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
4611 (aarch64_gen_store_pair): New helper function.
4612 (aarch64_save_or_restore_callee_save_registers)
4613 (aarch64_save_or_restore_fprs): Use new helper functions.
4614
4615 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4616
4617 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
4618 (aarch64_save_or_restore_callee_save_registers)
4619 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
4620
4621 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4622
4623 * config/aarch64/aarch64.c
4624 (aarch64_save_or_restore_callee_save_registers)
4625 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
4626
4627 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4628
4629 * config/aarch64/aarch64.c
4630 (aarch64_save_or_restore_callee_save_registers)
4631 (aarch64_save_or_restore_fprs): Remove 'increment'.
4632
4633 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4634
4635 * config/aarch64/aarch64.c
4636 (aarch64_save_or_restore_callee_save_registers)
4637 (aarch64_save_or_restore_fprs): Use register offset in
4638 cfun->machine->frame.reg_offset.
4639
4640 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4641
4642 * config/aarch64/aarch64.c
4643 (aarch64_save_or_restore_callee_save_registers)
4644 (aarch64_save_or_restore_fprs): Remove base_rtx.
4645
4646 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4647
4648 * config/aarch64/aarch64.c
4649 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
4650 to 'start_offset'. Remove local variable 'start_offset'.
4651
4652 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4653
4654 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
4655 type to HOST_WIDE_INT.
4656
4657 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4658
4659 * config/aarch64/aarch64.c (aarch64_expand_prologue)
4660 (aarch64_save_or_restore_fprs)
4661 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
4662
4663 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4664
4665 * config/arm/t-rtems-eabi: Add
4666 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
4667 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
4668 mbig-endian/mthumb/march=armv7-r, and
4669 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
4670 multilibs.
4671
4672 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4673 Chris Johns <chrisj@rtems.org>
4674 Joel Sherrill <joel.sherrill@oarcorp.com>
4675
4676 * config.gcc: Add nios2-*-rtems*.
4677 * config/nios2/rtems.h: New file.
4678 * gcc/config/nios2/t-rtems: New file.
4679
4680 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
4681
4682 PR target/61396
4683 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
4684 constant numbers, not general constants.
4685 (rs6000_expand_vector_init): Ditto.
4686
4687 2014-07-23 Nathan Sidwell <nathan@acm.org>
4688
4689 * gcov-tool.c (gcov_list): Declare here.
4690 (set_gcov_list): Remove.
4691 (gcov_output_files): Set gcov_list directly.
4692
4693 2014-07-23 Host Schirmeier <horst@schirmeier.com>
4694
4695 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
4696
4697 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4698
4699 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
4700 callee-saved registers are available for padding purpose
4701 and r3 is not mandatory, then prefer use those callee-saved
4702 instead of r3.
4703
4704 2014-07-23 Richard Biener <rguenther@suse.de>
4705
4706 * params.def (PARAM_MAX_COMBINE_INSNS): New.
4707 * combine.c: Include statistics.h and params.h.
4708 (combine_instructions): Guard three and four insn combines
4709 with max-combine-insns value. Record statistics for combines
4710 performed.
4711 * doc/invoke.texi (max-combine-insns): Document new param.
4712
4713 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4714
4715 * graphite-isl-ast-to-gimple.c:
4716 (translate_isl_ast_node_block): New function.
4717 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
4718
4719 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
4720 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
4721
4722 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4723
4724 * graphite-isl-ast-to-gimple.c:
4725 (get_max_schedule_dimensions): New function.
4726 (extend_schedule): Likewise.
4727 (generate_isl_schedule): Add calling of extend_schedule and
4728 get_max_schedule_dimensions.
4729
4730 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4731
4732 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
4733 (case UNSPEC): Handle UNSPEC_RBIT.
4734
4735 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4736
4737 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
4738 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
4739
4740 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4741
4742 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
4743
4744 2014-07-22 Roman Gareev <gareevroman@gmail.com>
4745
4746 * graphite-isl-ast-to-gimple.c:
4747 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
4748 (ivs_params_clear):
4749 (build_iv_mapping): New function.
4750 (translate_isl_ast_node_user): Likewise.
4751 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
4752
4753 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
4754 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
4755 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
4756
4757 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4758
4759 PR target/55701
4760 * config/arm/arm.md (setmem): New pattern.
4761 * config/arm/arm-protos.h (struct tune_params): New fields.
4762 (arm_gen_setmem): New prototype.
4763 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4764 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4765 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4766 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4767 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4768 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4769 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4770 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4771 (arm_const_inline_cost): New function.
4772 (arm_block_set_max_insns): New function.
4773 (arm_block_set_non_vect_profit_p): New function.
4774 (arm_block_set_vect_profit_p): New function.
4775 (arm_block_set_unaligned_vect): New function.
4776 (arm_block_set_aligned_vect): New function.
4777 (arm_block_set_unaligned_non_vect): New function.
4778 (arm_block_set_aligned_non_vect): New function.
4779 (arm_block_set_vect, arm_gen_setmem): New functions.
4780
4781 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4782
4783 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4784
4785 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
4786
4787 PR target/61855
4788 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
4789 out of #ifdef __OPTIMIZE__.
4790
4791 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4792
4793 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
4794 different trapping status if -fnon-call-exceptions is enabled.
4795
4796 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4797
4798 * expr.c (store_field): Handle VOIDmode for calls that return values
4799 in multiple locations.
4800
4801 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4802
4803 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
4804 (altivec_vsldoi_<mode>): Likewise.
4805
4806 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4807
4808 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
4809 to the number of characters in the line.
4810
4811 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4812
4813 * graphite-isl-ast-to-gimple.c: Add using of
4814 build_nonstandard_integer_type instead of int128_integer_type_node.
4815
4816 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
4817
4818 * toplev.c (output_stack_usage): Adjust the location of the warning.
4819
4820 2014-07-19 Daniel Cederman <cederman@gaisler.com>
4821
4822 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
4823 (*membar_storeload): Disable for LEON3.
4824
4825 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4826
4827 PR rtl-optimization/61461
4828 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
4829
4830 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
4831
4832 PR target/61794
4833 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
4834 Fix instruction constraint.
4835 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4836
4837 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
4838
4839 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
4840
4841 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
4842
4843 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
4844 GNU coding standards.
4845 (nds32_register_move_cost): Likewise.
4846 (nds32_memory_move_cost): Likewise.
4847 (nds32_address_cost): Likewise.
4848
4849 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4850
4851 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
4852
4853 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
4854
4855 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4856 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
4857 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4858 (HAVE_sync_compare_and_swapqi): Define.
4859 (HAVE_sync_compare_and_swaphi): Likewise.
4860 (HAVE_sync_compare_and_swapsi): Likewise.
4861
4862 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
4863
4864 * config/mips/p5600.md: Add missing cpu tests.
4865
4866 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4867
4868 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
4869 (vmla_f64): Likewise.
4870 (vfms_f64): Likewise.
4871 (vmls_f64): Likewise.
4872
4873 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4874
4875 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
4876 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
4877
4878 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4879
4880 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
4881 (vmlal_high_lane_s32): Likewise.
4882 (vmlal_high_lane_u16): Likewise.
4883 (vmlal_high_lane_u32): Likewise.
4884 (vmlsl_high_lane_s16): Likewise.
4885 (vmlsl_high_lane_s32): Likewise.
4886 (vmlsl_high_lane_u16): Likewise.
4887 (vmlsl_high_lane_u32): Likewise.
4888
4889 2014-07-17 Terry Guo <terry.guo@arm.com>
4890
4891 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
4892 (alus_reg): Renamed to alus_sreg.
4893 * config/arm/arm-fixed.md: Change type of non-dsp instructions
4894 from alu_reg to alu_sreg. Change type of dsp instructions from
4895 alu_reg to alu_dsp_reg.
4896 * config/arm/thumb1.md: Likewise.
4897 * config/arm/thumb2.md: Likewise.
4898 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
4899 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
4900 with alu_sreg and alus_sreg.
4901 * config/arm/arm1026ejs.md (alu_op): Likewise.
4902 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4903 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4904 * config/arm/fa526.md (526_alu_op): Likewise.
4905 * config/arm/fa606te.md (606te_alu_op): Likewise.
4906 * config/arm/fa626te.md (626te_alu_op): Likewise.
4907 * config/arm/fa726te.md (726te_alu_op): Likewise.
4908 * config/arm/fmp626.md (mp626_alu_op): Likewise.
4909 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
4910 alu_sreg, alu_dsp_reg and alus_sreg.
4911 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4912 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4913 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4914 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
4915 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4916 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4917 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4918 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4919 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
4920 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
4921 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
4922 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
4923 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
4924 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
4925 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
4926 alus_reg to alus_sreg.
4927
4928 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
4929
4930 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
4931 infinity format.
4932
4933 2014-07-17 Richard Biener <rguenther@suse.de>
4934
4935 PR rtl-optimization/61801
4936 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
4937 don't set reg_pending_barrier if it appears in a debug-insn.
4938
4939 2014-07-16 DJ Delorie <dj@redhat.com>
4940
4941 * config/rx/rx.c (rx_option_override): Fix alignment values.
4942 (rx_align_for_label): Likewise.
4943
4944 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
4945
4946 PR target/61737.
4947 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
4948 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4949 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
4950 functions.
4951 (cris_print_index, cris_print_operand, cris_constant_index_p)
4952 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
4953 (cris_address_cost): Ditto last CONSTANT_P.
4954 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
4955 callers changed. Yield cris_offsettable_symbol for non-PIC
4956 constant symbolic expressions including labels. Yield cris_unspec
4957 for all unspecs.
4958 (cris_expand_pic_call_address): New parameter MARKERP. Set its
4959 target to pic_offset_table_rtx for calls that will likely go
4960 through PLT, const0_rtx when they can't. All callers changed.
4961 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
4962 symbolic expressions to be PICified. Remove second, redundant,
4963 assert on can_create_pseudo_p returning non-zero. Use
4964 replace_equiv_address_nv, not replace_equiv_address, for final
4965 operand update.
4966 * config/cris/cris.md ("movsi"): Move variable t to pattern
4967 toplevel. Adjust assert for new cris_symbol_type member. Use
4968 CONSTANT_P instead of CONSTANT_ADDRESS_P.
4969 ("*movsi_internal") <case 9>: Make check for valid unspec operands
4970 for lapc stricter.
4971 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
4972 ("call", "call_value"): Use second incoming operand as a marker
4973 for pic-offset-table-register being used.
4974 ("*expanded_call_non_v32", "*expanded_call_v32")
4975 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
4976 second incoming operand to CALL, match cris_call_type_marker.
4977 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
4978 ("*expanded_call_side"): Ditto. Fix typo in comment.
4979 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
4980 CONSTANT_P.
4981 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
4982 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
4983 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
4984 users changed. Add members cris_offsettable_symbol and cris_unspec.
4985 (cris_symbol_type): Rename from cris_pic_symbol_type.
4986 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
4987 just CONSTANT_P.
4988 * config/cris/cris-protos.h (cris_symbol_type_of,
4989 cris_expand_pic_call_address): Adjust prototypes.
4990 (cris_legitimate_constant_p): New prototype.
4991
4992 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
4993 an existing tmake_file. Don't add t-slibgcc and t-linux.
4994
4995 2014-07-17 Jason Merrill <jason@redhat.com>
4996
4997 PR c++/61623
4998 * symtab.c (symtab_remove_from_same_comdat_group): Also
4999 set_comdat_group to NULL_TREE.
5000 (verify_symtab): Fix diagnostic.
5001
5002 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
5003
5004 PR target/61662
5005 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
5006
5007 2014-07-16 Dodji Seketeli <dodji@redhat.com>
5008
5009 Support location tracking for built-in macro tokens
5010 * input.h (is_location_from_builtin_token): New function declaration.
5011 * input.c (is_location_from_builtin_token): New function definition.
5012 * toplev.c (general_init): Tell libcpp what the pre-defined
5013 spelling location for built-in tokens is.
5014
5015 2014-07-16 Jakub Jelinek <jakub@redhat.com>
5016
5017 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
5018 on the FUNCTION_DECL.
5019
5020 2014-07-16 Richard Biener <rguenther@suse.de>
5021
5022 PR other/61782
5023 * doc/extend.texi (always_inline): Clarify.
5024
5025 2014-07-15 Eric Christopher <echristo@gmail.com>
5026
5027 * doc/invoke.texi (Link Options): Document -z option.
5028
5029 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
5030
5031 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
5032 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
5033
5034 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
5035
5036 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
5037
5038 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
5039
5040 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
5041 varpool_assemble_decl.
5042 * varpool.c (varpool_assemble_decl): Assert that node->definition is
5043 true.
5044
5045 2014-07-15 Michael Matz <matz@suse.de>
5046
5047 PR rtl-optimization/61772
5048 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
5049
5050 2014-07-15 Richard Biener <rguenther@suse.de>
5051
5052 * opts.c (default_options_table): Disable bit-ccp at -Og.
5053
5054 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
5055
5056 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
5057
5058 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
5059
5060 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
5061 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
5062 call langhook for unknown declaration.
5063 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
5064 * tree.h (DECL_ARGUMENTS): Update.
5065 * print-tree.c (print_node): Update.
5066 * tree-core.h (tree_decl_non_common): Remove arguments.
5067 (tree_function_decl): Add arguments.
5068
5069 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
5070
5071 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
5072
5073 2014-07-14 Richard Biener <rguenther@suse.de>
5074
5075 PR tree-optimization/61779
5076 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
5077 simplifying a condition.
5078
5079 2014-07-14 Richard Biener <rguenther@suse.de>
5080
5081 * builtins.c (c_strlen): Make only_value == 2 really only
5082 affect warning generation.
5083
5084 2014-07-14 Richard Biener <rguenther@suse.de>
5085
5086 PR tree-optimization/61757
5087 PR tree-optimization/61783
5088 PR tree-optimization/61787
5089 * tree-ssa-dom.c (record_equality): Revert canonicalization
5090 change and add comment.
5091 (propagate_rhs_into_lhs): Revert previous fix, removing
5092 loop depth restriction again.
5093
5094 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5095
5096 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
5097 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
5098 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
5099 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
5100 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
5101 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
5102 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
5103
5104 2014-07-14 Richard Biener <rguenther@suse.de>
5105
5106 * cgraph.h (decl_in_symtab_p): Make inline.
5107
5108 2014-07-14 Jakub Jelinek <jakub@redhat.com>
5109
5110 PR middle-end/61294
5111 * doc/invoke.texi (-Wmemset-transposed-args): Document.
5112
5113 PR target/61656
5114 * config/i386/i386.c (classify_argument): Don't merge classes above
5115 number of words.
5116
5117 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
5118
5119 * cgraph.h (symtab_node): Add nonzero_address.
5120 (decl_in_symtab_p): Break out from ...
5121 (symtab_get_node): ... here.
5122 * fold-const.c: Include cgraph.h
5123 (tree_single_nonzero_warnv_p): Use symtab to determine
5124 if symbol is non-zero.
5125 * symtab.c (symtab_node::nonzero_address): New method.
5126
5127 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
5128
5129 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
5130 forgotten in previous commit.
5131
5132 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
5133
5134 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
5135 on builtin types.
5136 * ipa-devirt.c: Include stor-layout.h and intl.h
5137 (odr_subtypes_equivalent_p): New function.
5138 (warn_odr): New function.
5139 (warn_type_mismatch): New function.
5140 (odr_types_equivalent_p): New function.
5141 (add_type_duplicate): Use it.
5142 * common.opt (Wodr): New flag.
5143 * doc/invoke.texi (Wodr): Document new warning.
5144
5145 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
5146
5147 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
5148 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
5149 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
5150 (varpool_get_constructor): Push CTORS_IN timevar.
5151 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
5152
5153 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
5154
5155 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
5156 Remove VOID_FTYPE_PUSHORT.
5157 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
5158 Change code to USHORT_FTYPE_VOID.
5159 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
5160 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
5161 (ix86_atomic_assign_expand_fenv): Update for
5162 __builtin_ia32_fnstsw changes.
5163 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
5164 (fnstsw): Change operand 0 to nonimmediate operand.
5165
5166 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
5167
5168 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
5169 (varpool_get_constructor): New function.
5170 (varpool_ctor_useable_for_folding_p): Break out from ...
5171 (ctor_for_folding): ... here; use varpool_get_constructor.
5172 (varpool_assemble_decl): Likewise.
5173 * lto-streamer.h (struct output_block): Turn cgraph_node
5174 to symbol filed.
5175 (lto_input_variable_constructor): Declare.
5176 * ipa-visibility.c (function_and_variable_visibility): Use
5177 varpool_get_constructor.
5178 * cgraph.h (varpool_get_constructor): Declare.
5179 (varpool_ctor_useable_for_folding_p): New function.
5180 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
5181 parameter; return error_mark_node for non-trivial constructors.
5182 (lto_write_tree_1, DFS_write_tree): Update use of
5183 get_symbol_initial_value.
5184 (output_function): Update initialization of symbol.
5185 (output_constructor): New function.
5186 (copy_function): Rename to ..
5187 (copy_function_or_variable): ... this one; handle vars too.
5188 (lto_output): Output variable sections.
5189 * lto-streamer-in.c (input_constructor): New function.
5190 (lto_read_body): Rename from ...
5191 (lto_read_body_or_constructor): ... this one; handle vars too.
5192 (lto_input_variable_constructor): New function.
5193 * ipa-prop.c (ipa_prop_write_jump_functions,
5194 ipa_prop_write_all_agg_replacement): Update.
5195 * lto-cgraph.c (compute_ltrans_boundary): Use it.
5196 (output_cgraph_opt_summary): Set symbol to NULL.
5197
5198 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
5199
5200 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
5201 non-polymorphic types.
5202 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
5203 * ipa-devirt.c (types_same_for_odr): Do not explode when one
5204 of types is not polymorphic.
5205
5206 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
5207
5208 * lra-constraints.c (remove_inheritance_pseudos): Process
5209 destination pseudo too.
5210
5211 2014-07-11 Rong Xu <xur@google.com>
5212
5213 * gcov-tool.c (gcov_output_files): Fix build error introduced in
5214 commit r212448.
5215
5216 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5217
5218 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
5219 * config/avr/avr-devices.c (AVR_MCU): Same.
5220 (avr_mcu_types): add text start value to end of device list.
5221 * config/avr/avr-mcus.def: Add text section start for all devices.
5222 (ata5782): Add new avr5 device.
5223 (ata5831): Same.
5224 * config/avr/avr-tables.opt: Regenerate.
5225 * config/avr/avr.h: Add declaration for text section start handler.
5226 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
5227 SPEC functions.
5228 (LINK_SPEC): Include text section start handler to linker spec.
5229 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
5230 pass -Ttext option to linker if the text section start for the device
5231 is not zero.
5232 * config/avr/t-multilib: Regenerate.
5233 * doc/avr-mmcu.texi: Regenerate.
5234
5235 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
5236
5237 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
5238 * config/rs6000/aix52.h (LINK_SPEC): Same.
5239 * config/rs6000/aix53.h (LINK_SPEC): Same.
5240 * config/rs6000/aix61.h (LINK_SPEC): Same.
5241 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
5242
5243 2014-07-11 Roman Gareev <gareevroman@gmail.com>
5244
5245 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
5246 (graphite_verify): New function.
5247 (ivs_params_clear): New function.
5248 (gcc_expression_from_isl_ast_expr_id): New function.
5249 (gcc_expression_from_isl_expr_int): New function.
5250 (binary_op_to_tree): New function.
5251 (ternary_op_to_tree): New function.
5252 (unary_op_to_tree): New function.
5253 (nary_op_to_tree): New function.
5254 (gcc_expression_from_isl_expr_op): New function.
5255 (gcc_expression_from_isl_expression): New function.
5256 (graphite_create_new_loop): New function.
5257 (translate_isl_ast_for_loop): New function.
5258 (get_upper_bound): New function.
5259 (graphite_create_new_loop_guard): New function.
5260 (translate_isl_ast_node_for): New function.
5261 (translate_isl_ast): New function.
5262 (add_parameters_to_ivs_params): New function.
5263 (scop_to_isl_ast): New parameter ip.
5264 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
5265
5266 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
5267
5268 * config/xtensa/predicates.md (call expander): Update for
5269 DECL_SECTION_NAME being string.
5270
5271 2014-07-11 Richard Biener <rguenther@suse.de>
5272
5273 PR middle-end/61473
5274 * builtins.c (fold_builtin_memory_op): Inline memory moves that
5275 can be implemented with a single load followed by a single store.
5276 (c_strlen): Only warn when only_value is not 2.
5277
5278 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
5279
5280 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
5281
5282 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
5283
5284 PR target/61561
5285 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
5286 (*movhi_bytes): Likewise.
5287 (*arm_movqi_insn): Likewise.
5288
5289 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
5290
5291 PR target/56858
5292 * config/alpha/alpha.c: Include tree-pass.h, context.h
5293 and pass_manager.h.
5294 (pass_data_handle_trap_shadows): New pass.
5295 (pass_handle_trap_shadows::gate): New pass gate function.
5296 (make_pass_handle_trap_shadows): New function.
5297 (rest_of_handle_trap_shadows): Ditto.
5298
5299 (alpha_align_insns_1): Rename from alpha_align_insns.
5300 (pass_data_align_insns): New pass.
5301 (pass_align_insns::gate): New pass gate function.
5302 (make_pass_aling_insns): New function.
5303 (rest_of_align_insns): Ditto.
5304 (alpha_align_insns): Ditto.
5305
5306 (alpha_option_override): Declare handle_trap_shadows info
5307 and align_insns_info. Register handle_trap_shadows and align_insns
5308 passes here.
5309 (alpha_reorg): Do not call alpha_trap_shadows and
5310 alpha_align_insn from here.
5311
5312 (alpha_pad_function_end): Do not skip BARRIERs.
5313
5314 2014-07-10 Rong Xu <xur@google.com>
5315
5316 Add gcov-tool: an offline gcda profile processing tool support.
5317 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
5318 (gcov_is_error): Ditto.
5319 (gcov_read_string): Ditto.
5320 (gcov_read_sync): Ditto.
5321 * gcov-io.h: Move counter defines to gcov-counter.def.
5322 * gcov-dump.c (tag_counters): Use gcov-counter.def.
5323 * coverage.c: Ditto.
5324 * gcov-tool.c: Offline gcda profile processing tool.
5325 (unlink_gcda_file): Remove one gcda file.
5326 (unlink_profile_dir): Remove gcda files from the profile path.
5327 (gcov_output_files): Output gcda files to an output dir.
5328 (profile_merge): Merge two profiles in directory.
5329 (print_merge_usage_message): Print merge usage.
5330 (merge_usage): Print merge usage and exit.
5331 (do_merge): Driver for profile merge sub-command.
5332 (profile_rewrite): Rewrite profile.
5333 (print_rewrite_usage_message): Print rewrite usage.
5334 (rewrite_usage): Print rewrite usage and exit.
5335 (do_rewrite): Driver for profile rewrite sub-command.
5336 (print_usage): Print gcov-info usage and exit.
5337 (print_version): Print gcov-info version.
5338 (process_args): Process arguments.
5339 (main): Main routine for gcov-tool.
5340 * Makefile.in: Build and install gcov-tool.
5341 * gcov-counter.def: New file split from gcov-io.h.
5342 * doc/gcc.texi: Include gcov-tool.texi.
5343 * doc/gcov-tool.texi: Document for gcov-tool.
5344
5345 2014-07-10 Richard Biener <rguenther@suse.de>
5346
5347 PR tree-optimization/61757
5348 * tree-ssa-dom.c (loop_depth_of_name): Restore.
5349 (propagate_rhs_into_lhs): Revert part of last change.
5350
5351 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
5352
5353 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
5354 FUNCTION_DECLs.
5355
5356 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
5357
5358 PR middle-end/53590
5359 * function.c (allocate_struct_function): Revert r188667 change.
5360
5361 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
5362
5363 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
5364
5365 * doc/install.texi: Remove links to defunct package providers for
5366 Solaris.
5367
5368 2014-07-09 Tom de Vries <tom@codesourcery.com>
5369
5370 * final.c (get_call_fndecl): Declare.
5371 (self_recursive_call_p): New function.
5372 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
5373
5374 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5375
5376 * ipa-devirt.c (record_node): Walk through aliases.
5377
5378 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5379
5380 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
5381
5382 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5383
5384 Revert:
5385 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5386
5387 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5388
5389 * ipa-visibility.c (function_and_variable_visibility): Remove
5390 temporary hack disabling local aliases on AIX.
5391
5392 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5393
5394 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
5395 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
5396
5397 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5398
5399 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
5400 * rs6000/rs6000.c: Inline output of .set instruction.
5401 (declare_alias_data): New struct.
5402 (rs6000_declare_alias): New function.
5403 (rs6000_xcoff_declare_function_name): Use it.
5404 (rs6000_xcoff_declare_object_name): New function.
5405 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
5406 (ASM_OUTPUT_DEF): Turn to empty definition.
5407
5408 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5409
5410 PR bootstrap/61679
5411 * hash-table.h: use hash_table::value_type instead of
5412 Descriptor::value_type in the return types of several methods.
5413
5414 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5415
5416 * tree-pass.h (pass_data): Remove has_execute member.
5417 * passes.c (execute_one_pass): Don't check pass->has_execute.
5418 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
5419 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
5420 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
5421 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
5422 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
5423 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
5424 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
5425 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
5426 gimple-low.c, gimple-ssa-isolate-paths.c,
5427 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
5428 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
5429 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
5430 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
5431 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
5432 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
5433 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
5434 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
5435 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
5436 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
5437 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
5438 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
5439 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
5440 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5441 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
5442 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
5443 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
5444 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
5445 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
5446 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
5447 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
5448 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
5449 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
5450 web.c: Remove initializer for pass_data::has_execute.
5451
5452 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5453
5454 * graphite-htab.h: Use hash_map instead of hash_table.
5455 * graphite-clast-to-gimple.c: Adjust.
5456 * passes.c: Use hash_map instead of hash_table.
5457 * sese.c: Likewise.
5458 * sese.h: Remove now unused code.
5459
5460 2014-07-08 Sriraman Tallam <tmsriram@google.com>
5461
5462 PR target/61599
5463 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
5464 than zero.
5465
5466 2014-07-08 Jakub Jelinek <jakub@redhat.com>
5467
5468 PR rtl-optimization/61673
5469 * combine.c (simplify_comparison): Test just mode's sign bit
5470 in tmode rather than the sign bit and any bits above it.
5471
5472 2014-07-08 Roman Gareev <gareevroman@gmail.com>
5473
5474 * graphite-isl-ast-to-gimple.c (generate_isl_context):
5475 Add __isl_give to the declaration.
5476 (generate_isl_schedule): Likewise.
5477 (scop_to_isl_ast): Likewise.
5478
5479 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5480
5481 * config/arm/arm.c (cortexa5_extra_costs): New table.
5482 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
5483
5484 2014-07-08 Jakub Jelinek <jakub@redhat.com>
5485
5486 PR tree-optimization/61725
5487 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
5488 range, use range_includes_zerop_p instead of integer_zerop on
5489 vr0->min, only use log2 of max if min is not negative.
5490
5491 2014-07-08 Richard Biener <rguenther@suse.de>
5492
5493 * tree-ssa-dom.h (loop_depth_of_name): Remove.
5494 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
5495 restriction on loop depth difference.
5496 (record_equality): Likewise.
5497 (propagate_rhs_into_lhs): Likewise. Simplify condition.
5498 (loop_depth_of_name): Remove.
5499 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
5500 restriction on loop depth difference.
5501 (init_copy_prop): Likewise.
5502
5503 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5504
5505 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
5506 parameter.
5507 (walk_aliased_vdefs): Likewise.
5508 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
5509 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
5510 (detect_type_change_from_memory_writes): Check if entry was reached.
5511
5512 2014-07-08 Richard Biener <rguenther@suse.de>
5513
5514 PR tree-optimization/61681
5515 * tree-ssa-structalias.c (find_what_var_points_to): Expand
5516 NONLOCAL inside ESCAPED.
5517
5518 2014-07-08 Richard Biener <rguenther@suse.de>
5519
5520 PR tree-optimization/61680
5521 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5522 Handle properly all read-write dependences with group accesses.
5523
5524 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
5525
5526 PR tree-optimization/61576
5527 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
5528 block containing reduction statement is predecessor of phi basi block.
5529
5530 2014-07-08 Marek Polacek <polacek@redhat.com>
5531
5532 PR c/60226
5533 * fold-const.c (round_up_loc): Change the parameter type.
5534 Remove assert.
5535 * fold-const.h (round_up_loc): Adjust declaration.
5536 * stor-layout.c (finalize_record_size): Check for too large types.
5537
5538 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
5539
5540 * symtab.c: Include calls.h.
5541 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
5542
5543 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
5544
5545 * config/rs6000/rs6000.c (output_vec_const_move): Handle
5546 little-endian code generation.
5547 * config/rs6000/spe.md (spe_evmergehi): Rename to...
5548 (vec_perm00_v2si): ... this. Handle little-endian code generation.
5549 (spe_evmergehilo): Rename to...
5550 (vec_perm01_v2si): ... this. Handle little-endian code generation.
5551 (spe_evmergelo): Rename to...
5552 (vec_perm11_v2si): ... this. Handle little-endian code generation.
5553 (spe_evmergelohi): Rename to...
5554 (vec_perm10_v2si): ... this. Handle little-endian code generation.
5555 (spe_evmergehi, spe_evmergehilo): New expanders.
5556 (spe_evmergelo, spe_evmergelohi): Likewise.
5557 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
5558 (*frob_tf_ti): Likewise.
5559 (*frob_<mode>_di_2): Likewise.
5560 (*frob_tf_di_8_2): Likewise.
5561 (*frob_di_<mode>): Likewise.
5562 (*frob_ti_tf): Likewise.
5563 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
5564 (*frob_ti_<mode>_8_2): Likewise.
5565 (*frob_ti_tf_2): Likewise.
5566 (mov_si<mode>_e500_subreg0): Rename to...
5567 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
5568 endianness only.
5569 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
5570 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
5571 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
5572 the big endianness only.
5573 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
5574 (*mov_si<mode>_e500_subreg0_2): Rename to...
5575 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
5576 big big endianness only.
5577 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
5578 (*mov_si<mode>_e500_subreg4): Rename to...
5579 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
5580 endianness only.
5581 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
5582 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
5583 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
5584 the big endianness only.
5585 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
5586 pattern.
5587 (*mov_si<mode>_e500_subreg4_2): Rename to...
5588 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
5589 endianness only.
5590 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
5591 (*mov_sitf_e500_subreg8): Rename to...
5592 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
5593 endianness only.
5594 (*mov_sitf_e500_subreg8_le): New instruction pattern.
5595 (*mov_sitf_e500_subreg8_2): Rename to...
5596 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
5597 endianness only.
5598 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
5599 (*mov_sitf_e500_subreg12): Rename to...
5600 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
5601 endianness only.
5602 (*mov_sitf_e500_subreg12_le): New instruction pattern.
5603 (*mov_sitf_e500_subreg12_2): Rename to...
5604 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
5605 endianness only.
5606 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
5607
5608 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
5609
5610 * asan.c (instrument_strlen_call): Do not instrument first byte
5611 in strlen if already instrumented.
5612
5613 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5614
5615 * config/arm/arm.opt (mwords-little-endian): Delete.
5616 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
5617 of TARGET_LITTLE_WORDS.
5618 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
5619 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
5620 warning.
5621 * doc/invoke.texi: Remove references to -mwords-little-endian.
5622
5623 2014-07-07 Jakub Jelinek <jakub@redhat.com>
5624
5625 * expmed.c (struct init_expmed_rtl): Change all fields but
5626 pow2 and cint from struct rtx_def to rtx.
5627 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
5628 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
5629 at the end again.
5630
5631 2014-07-06 Marek Polacek <polacek@redhat.com>
5632
5633 PR c/6940
5634 * doc/invoke.texi: Document -Wsizeof-array-argument.
5635
5636 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
5637
5638 * wide-int.h (wide_int_storage): Change declaration from struct
5639 to class.
5640
5641 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
5642
5643 * cgraph.c (cgraph_create_indirect_edge): Update call of
5644 get_polymorphic_call_info.
5645 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
5646 (possible_polymorphic_call_targets): Add parameter call.
5647 (decl_maybe_in_construction_p): New predicate.
5648 (get_polymorphic_call_info): Add parameter call;
5649 use decl_maybe_in_construction_p.
5650 * gimple-fold.c (fold_gimple_assign): Update use of
5651 possible_polymorphic_call_targets.
5652 (gimple_fold_call): Likewise.
5653 * ipa-prop.c: Inlcude calls.h
5654 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
5655 (param_type_may_change_p): New predicate.
5656 (detect_type_change_from_memory_writes): Break out from ...
5657 (detect_type_change): ... this one; use param_type_may_change_p.
5658 (detect_type_change_ssa): Use param_type_may_change_p.
5659 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
5660
5661 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
5662
5663 PR target/49423
5664 * config/arm/arm-protos.h (arm_legitimate_address_p,
5665 arm_is_constant_pool_ref): Add prototypes.
5666 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
5667 (arm_is_constant_pool_ref) New function.
5668 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
5669 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
5670 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
5671 operand. Remove pool_range and neg_pool_range attributes.
5672 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
5673 pool_range and neg_pool_range attributes.
5674 * config/arm/constraints.md (Uh): New constraint.
5675 (Uq): Don't allow constant pool references.
5676
5677 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
5678
5679 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
5680 (move_lo_quad_internal_be_<mode>): Likewise.
5681 (move_lo_quad_<mode>): Convert to define_expand.
5682 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
5683 (aarch64_simd_move_hi_quad_be_<mode>): New.
5684 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
5685 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
5686 (aarch64_combinez_be<mode>): New.
5687 (aarch64_combine<mode>): Convert to define_expand.
5688 (aarch64_combine_internal<mode>): New.
5689 (aarch64_simd_combine<mode>): Remove bogus RTL description.
5690
5691 2014-07-04 Tom de Vries <tom@codesourcery.com>
5692
5693 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
5694 combination of earlyclobber and read/write modifiers.
5695
5696 2014-07-04 Tom de Vries <tom@codesourcery.com>
5697
5698 * config/aarch64/aarch64-simd.md
5699 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
5700
5701 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
5702
5703 PR target/61714
5704 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
5705
5706 2014-07-04 Jakub Jelinek <jakub@redhat.com>
5707
5708 PR middle-end/61654
5709 * cgraphunit.c (expand_thunk): Call free_dominance_info.
5710
5711 PR tree-optimization/61684
5712 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
5713 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
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_have_prologue_p): Move to ...
5720 (nds32_symbol_load_store_p): Move to ...
5721 (nds32_fp_as_gp_check_available): Move to ...
5722 * config/nds32/nds32-fp-as-gp.c: ... here.
5723 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
5724 extern declaration.
5725
5726 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5727 Kito Cheng <kito@0xlab.org>
5728 Monk Chiang <sh.chiang04@gmail.com>
5729
5730 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
5731 (nds32_expand_store_multiple): Move to ...
5732 (nds32_expand_movmemqi): Move to ...
5733 * config/nds32/nds32-memory-manipulation.c: ... here.
5734
5735 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5736 Kito Cheng <kito@0xlab.org>
5737 Monk Chiang <sh.chiang04@gmail.com>
5738
5739 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
5740 (nds32_output_casesi_pc_relative): Move to ...
5741 (nds32_output_casesi): Move to ...
5742 (nds32_mem_format): Move to ...
5743 (nds32_output_16bit_store): Move to ...
5744 (nds32_output_16bit_load): Move to ...
5745 (nds32_output_32bit_store): Move to ...
5746 (nds32_output_32bit_load): Move to ...
5747 (nds32_output_32bit_load_s): Move to ...
5748 (nds32_output_stack_push): Move to ...
5749 (nds32_output_stack_pop): Move to ...
5750 * config/nds32/nds32-md-auxiliary.c: ... here.
5751
5752 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5753 Ling-Hua Tseng <uranus@tinlans.org>
5754
5755 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
5756 the purpose of this file.
5757
5758 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5759 Kito Cheng <kito@0xlab.org>
5760 Monk Chiang <sh.chiang04@gmail.com>
5761
5762 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
5763 (nds32_address_cost): Move implementation to ...
5764 * config/nds32/nds32-cost.c: ... here.
5765 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
5766 (nds32_address_cost_impl): Declare.
5767
5768 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5769 Kito Cheng <kito@0xlab.org>
5770 Monk Chiang <sh.chiang04@gmail.com>
5771
5772 * config/nds32/nds32.c
5773 (nds32_consecutive_registers_load_store_p): Move to ...
5774 (nds32_valid_multiple_load_store): Move to ...
5775 (nds32_valid_stack_push_pop): Move to ...
5776 (nds32_can_use_bclr_p): Move to ...
5777 (nds32_can_use_bset_p): Move to ...
5778 (nds32_can_use_btgl_p): Move to ...
5779 (nds32_can_use_bitci_p): Move to ...
5780 * config/nds32/nds32-predicates.c: ... here.
5781
5782 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5783 Kito Cheng <kito@0xlab.org>
5784 Monk Chiang <sh.chiang04@gmail.com>
5785
5786 * config/nds32/nds32.c
5787 (nds32_expand_builtin_null_ftype_reg): Move to ...
5788 (nds32_expand_builtin_reg_ftype_imm): Move to ...
5789 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
5790 (nds32_init_builtins): Move implementation to ...
5791 (nds32_expand_builtin): Move implementation to ...
5792 * config/nds32/nds32-intrinsic.c: ... here.
5793 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
5794 (nds32_expand_builtin_impl): Declare.
5795
5796 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5797 Kito Cheng <kito@0xlab.org>
5798 Monk Chiang <sh.chiang04@gmail.com>
5799
5800 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
5801 (nds32_emit_section_tail_template): Move to ...
5802 (nds32_emit_isr_jmptbl_section): Move to ...
5803 (nds32_emit_isr_vector_section): Move to ...
5804 (nds32_emit_isr_reset_conten): Move to ...
5805 (nds32_check_isr_attrs_conflict): Move to ...
5806 (nds32_construct_isr_vectors_information): Move to ...
5807 (nds32_asm_file_start): Move implementation to ...
5808 (nds32_asm_file_end): Move implementation to ...
5809 * config/nds32/nds32-isr.c: ... here.
5810 * config/nds32/nds32-protos.h
5811 (nds32_check_isr_attrs_conflict): Declare.
5812 (nds32_construct_isr_vectors_information): Declare.
5813 (nds32_asm_file_start_for_isr): Declare.
5814 (nds32_asm_file_end_for_isr): Declare.
5815
5816 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5817 Kito Cheng <kito@0xlab.org>
5818 Monk Chiang <sh.chiang04@gmail.com>
5819
5820 * config.gcc (nds32*): Add new modules to extra_objs.
5821 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
5822 (nds32be-*-*): Likewise.
5823 * config/nds32/nds32-cost.c: New file.
5824 * config/nds32/nds32-fp-as-gp.c: New file.
5825 * config/nds32/nds32-intrinsic.c: New file.
5826 * config/nds32/nds32-isr.c: New file.
5827 * config/nds32/nds32-md-auxiliary.c: New file.
5828 * config/nds32/nds32-memory-manipulation.c: New file.
5829 * config/nds32/nds32-pipelines-auxiliary.c: New file.
5830 * config/nds32/nds32-predicates.c: New file.
5831 * config/nds32/t-nds32: New file.
5832
5833 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5834
5835 PR tree-optimization/61682
5836 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
5837 using cases and when one of the operands is equal to 1.
5838
5839 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
5840
5841 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
5842 ashr<mode>3): Correct mode of operands[2].
5843 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
5844 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
5845 Correct mode of operands[2]. Fix split condition.
5846
5847 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
5848
5849 * arm.md (arch): Add armv6_or_vfpv3.
5850 (arch_enabled): Add test for the above.
5851 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
5852 on VFP9.
5853 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
5854
5855 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5856
5857 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
5858 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
5859 HWI 1 and negate the unsigned value.
5860 * expmed.c (expand_sdiv_pow2): For modes wider than word always
5861 use AND instead of shift.
5862 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
5863
5864 2014-07-03 Marek Polacek <polacek@redhat.com>
5865
5866 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
5867 (-fsanitize=float-divide-by-zero): Move to the table with
5868 -fsanitize=undefined suboptions.
5869 (-fsanitize=float-cast-overflow): Likewise.
5870
5871 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
5872
5873 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
5874 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
5875 endianness.
5876
5877 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5878
5879 * loop-invariant.c (struct invariant): Add a new member: eqno;
5880 (find_identical_invariants): Update eqno;
5881 (create_new_invariant): Init eqno;
5882 (get_inv_cost): Compute comp_cost with eqno;
5883
5884 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5885
5886 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
5887 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
5888 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
5889 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
5890 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
5891
5892 2014-07-02 Christian Bruel <christian.bruel@st.com>
5893
5894 PR target/29349
5895 PR target/53513
5896 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
5897 (make_preds_opaque): Delete.
5898 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
5899 (commit_mode_sets): New function.
5900 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
5901 Process all modes at once.
5902 * basic-block.h (pre_edge_lcm_avs): Declare.
5903 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
5904 Call clear_aux_for_edges. Fix comments.
5905 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
5906 (pre_edge_rev_lcm): Idem.
5907 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
5908 parameter.
5909 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
5910 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5911 Idem.
5912 * config/i386/i386.c (x96_emit_mode_set): Idem.
5913 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
5914 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
5915 (fpscr_toggle) Disallow from delay slot.
5916 * target.def (emit_mode_set): Add prev_mode parameter.
5917 * doc/tm.texi: Regenerate.
5918
5919 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5920
5921 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
5922 variable i.
5923
5924 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5925
5926 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
5927 vtable_pointer_value_to_vtable): Constify.
5928 (contains_polymorphic_type_p): Declare.
5929 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
5930 vtable_pointer_value_to_vtable): Constify.
5931 (contains_polymorphic_type_p): New predicate.
5932 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
5933 polymorphic types.
5934 (ipa_set_ancestor_jf): Likewise.
5935 (detect_type_change): Return false in easy cases.
5936 (compute_complex_assign_jump_func): Require type to contain
5937 polymorphic type.
5938 (compute_known_type_jump_func): Likewise.
5939
5940 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5941
5942 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
5943 Remove.
5944 (type_in_anonymous_namespace_p): Constify argument.
5945 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
5946 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
5947 (main_odr_variant): New function.
5948 (hash_type_name): Make static; update assert; do not ICE on
5949 non-records.
5950 (types_same_for_odr): Bring here from tree.c; simplify and remove
5951 old structural comparing code that doesn't work for templates.
5952 (odr_hasher::equal): Update assert.
5953 (add_type_duplicate): Return true when bases should be computed;
5954 replace incomplete loader by complete; do not output duplicated
5955 warnings; do not ICE on non-records; set odr_violated flag.
5956 (get_odr_type): Be ready to replace incomplete type by complete
5957 one; work on ODR variants instead of main variants; reorder item
5958 in array so bases have still smaller indexes.
5959 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
5960 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
5961
5962 2014-07-01 Cary Coutant <ccoutant@google.com>
5963
5964 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
5965 lookup.
5966 (resolve_addr_in_expr): When replacing the rtx in a location list
5967 entry, get a new address table entry.
5968 (dwarf2out_finish): Call index_location_lists even if there are no
5969 addr_index_table entries yet.
5970
5971 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5972
5973 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
5974 change for not being obvious.
5975
5976 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5977
5978 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
5979 unused argument.
5980
5981 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5982
5983 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
5984 (vcagt_f64): Likewise.
5985 (vcale_f64): Likewise.
5986 (vcaled_f64): Likewise.
5987 (vcales_f32): Likewise.
5988 (vcalt_f64): Likewise.
5989 (vcaltd_f64): Likewise.
5990 (vcalts_f32): Likewise.
5991
5992 2014-07-01 Marek Polacek <polacek@redhat.com>
5993
5994 * doc/invoke.texi: Document -Wint-conversion.
5995
5996 2014-07-01 Marek Polacek <polacek@redhat.com>
5997
5998 PR c/58286
5999 * doc/invoke.texi: Document -Wincompatible-pointer-types.
6000
6001 2014-07-01 Martin Liska <mliska@suse.cz>
6002
6003 IPA REF alias refactoring
6004 * cgraph.h (iterate_direct_aliases): New function.
6005 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
6006 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
6007 FOR_EACH_ALIAS added.
6008 (cgraph_for_node_and_aliases): Likewise.
6009 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
6010 * ipa-inline.c (reset_edge_caches): Likewise.
6011 (update_caller_keys): Likewise.
6012 * trans-mem.c (ipa_tm_execute): Likewise.
6013 *varpool.c (varpool_analyze_node): Likewise.
6014 (varpool_for_node_and_aliases): Likewise.
6015 * ipa-ref.h (first_alias): New function.
6016 (last_alias): Likewise.
6017 (has_aliases_p): Likewise.
6018 * ipa-ref.c (ipa_ref::remove_reference): Removal function
6019 is sensitive to IPA_REF_ALIASes.
6020 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
6021 are put at the beginning of the list.
6022 (symtab_node::iterate_direct_aliases): New function.
6023
6024 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6025
6026 Revert:
6027 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
6028 type is complete.
6029 (write_ts_type_common_tree_pointers): Do not stream fields not set
6030 for incomplete types; do not stream duplicated fields for variants;
6031 sanity check that variant and type match.
6032 (write_ts_type_non_common_tree_pointers): Likewise.
6033 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
6034 TYPE_SIZE whether type is complete.
6035 (lto_input_ts_type_common_tree_pointers): Do same changes as in
6036 write_ts_type_common_tree_pointers
6037 (lto_input_ts_type_non_common_tree_pointers): Likewise.
6038
6039 2014-06-30 Joseph Myers <joseph@codesourcery.com>
6040
6041 * var-tracking.c (add_stores): Return instead of asserting if old
6042 and new values for conditional store are the same.
6043
6044 2014-06-30 Richard Henderson <rth@redhat.com>
6045
6046 PR rtl-opt/61608
6047 PR target/39284
6048 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
6049 the cfg if there were any changes.
6050 * passes.def: Revert move of peephole2 after reorder_blocks;
6051 move duplicate_computed_gotos before peephole2.
6052
6053 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
6054
6055 * except.c (emit_note_eh_region_end): New helper function.
6056 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
6057 emit EH_REGION_END note.
6058 * jump.c (cleanup_barriers): Do not split a call and its
6059 corresponding CALL_ARG_LOCATION note.
6060
6061 2014-06-30 Jeff Law <law@redhat.com>
6062
6063 PR tree-optimization/61607
6064 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
6065 deeper into the SSA_NAME_VALUE chain.
6066
6067 2014-06-30 Marek Polacek <polacek@redhat.com>
6068
6069 * convert.c (convert_to_integer): Don't instrument conversions if the
6070 function has no_sanitize_undefined attribute.
6071 * ubsan.c: Don't run the ubsan pass if the function has
6072 no_sanitize_undefined attribute.
6073
6074 2014-06-30 Jakub Jelinek <jakub@redhat.com>
6075
6076 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
6077 -fsanitize=undefined suboptions.
6078
6079 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
6080
6081 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
6082 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
6083 against bigendian and adjust indices.
6084
6085 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
6086
6087 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
6088
6089 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
6090
6091 PR target/61633
6092 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
6093 Add alternative; make early clobber. Adjust both split patterns
6094 to use operand 0 as the working register.
6095
6096 2014-06-30 Jakub Jelinek <jakub@redhat.com>
6097
6098 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
6099 as ira_object_id_map might be NULL, or 1.
6100
6101 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6102
6103 * loop-invariant.c (get_inv_cost): Handle register class.
6104 (gain_for_invariant): Check the register pressure of the inv
6105 and its overlapped register class, other than all.
6106
6107 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
6108
6109 * doc/invoke.texi (Optimize Options): Fix descriptions of
6110 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
6111
6112 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
6113
6114 * doc/extend.texi (Function Attributes): Update 'naked' attribute
6115 documentation.
6116
6117 2014-06-29 Tobias Grosser <tobias@grosser.es>
6118
6119 PR bootstrap/61650
6120 * graphite-isl-ast-to-gimple.c: Add missing guards.
6121
6122 2014-06-29 Roman Gareev <gareevroman@gmail.com>
6123
6124 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
6125 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
6126 * flag-types.h: Add new enum fgraphite_generator.
6127 * graphite-isl-ast-to-gimple.c: New.
6128 * graphite-isl-ast-to-gimple.h: New.
6129 * graphite.c (graphite_transform_loops): Add choice of Graphite
6130 code generator, which depends on flag_graphite_code_gen.
6131
6132 2014-06-29 Roman Gareev <gareevroman@gmail.com>
6133
6134 * graphite-dependences.c (subtract_commutative_associative_deps):
6135 Add NULL checking of the following variables: must_raw_no_source,
6136 may_raw_no_source, must_war_no_source, may_war_no_source,
6137 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
6138 must_war, may_war, must_waw, may_waw.
6139
6140 2014-06-29 Roman Gareev <gareevroman@gmail.com>
6141
6142 * graphite-clast-to-gimple.c: gloog is renamed to
6143 graphite_regenerate_ast_cloog. gloog_error is renamed to
6144 graphite_regenerate_error.
6145 * graphite-clast-to-gimple.h: The definition of the struct
6146 bb_pbb_def is moved to graphite-htab.h.
6147 Add inclusion of the hash-table.h.
6148 * graphite-htab.h: The declaration of the function gloog is moved
6149 to graphite-clast-to-gimple.h and renamed to
6150 graphite_regenerate_ast_cloog.
6151 * graphite.c (graphite_transform_loops): gloog is renamed
6152 to graphite_regenerate_ast_cloog.
6153
6154 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6155
6156 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
6157 type is complete.
6158 (write_ts_type_common_tree_pointers): Do not stream fields not set
6159 for incomplete types; do not stream duplicated fields for variants;
6160 sanity check that variant and type match.
6161 (write_ts_type_non_common_tree_pointers): Likewise.
6162 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
6163 TYPE_SIZE whether type is complete.
6164 (lto_input_ts_type_common_tree_pointers): Do same changes as in
6165 write_ts_type_common_tree_pointers
6166 (lto_input_ts_type_non_common_tree_pointers): Likewise.
6167
6168 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6169
6170 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
6171
6172 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6173
6174 * tree-inline.c (remap_type_1): Do not duplicate fields
6175 that are shared in between type and its main variant.
6176
6177 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6178
6179 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
6180 of the type.
6181 (ipa_set_ancestor_jf) Likewise.
6182 (check_stmt_for_type_change): Check that we work on main variant.
6183 (detect_type_change): Look into main variant.
6184 (compute_known_type_jump_func): Check that main variant has BINFO.
6185
6186 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6187
6188 * ipa-devirt.c (set_type_binfo): New function.
6189 (add_type_duplicate): Use it.
6190 (get_odr_type): Sanity check that binfos points to main variants.
6191 (get_class_context): Be sure the context's outer_type is main variant.
6192 (contains_type_p): Walk main variant.
6193 (get_polymorphic_call_info_for_decl): Set outer_type to be
6194 main variant.
6195 (get_polymorphic_call_info): Likewise.
6196 (possible_polymorphic_call_targets): Sanity check that we operate
6197 on main variant.
6198
6199 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6200
6201 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
6202
6203 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6204
6205 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
6206 accidental change due to wide-int branch merge.
6207
6208 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6209
6210 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
6211 compressed debug support.
6212 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
6213 * configure: Regenerate.
6214 * config.in: Regenerate.
6215 * common.opt (compressed_debug_sections): New enum.
6216 (gz, gz=): New options.
6217 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
6218 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
6219 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
6220 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
6221 LINK_COMPRESS_DEBUG_SPEC.
6222 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
6223 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
6224 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
6225 (Debugging Options): Document -gz[=type].
6226
6227 2014-06-27 Martin Jambor <mjambor@suse.cz>
6228
6229 PR ipa/61160
6230 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
6231 args_to_skip, use those from node instead. Copy args_to_skip and
6232 combined_args_to_skip from node to the new thunk.
6233 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
6234 (cgraph_create_virtual_clone): Moved computation of
6235 combined_args_to_skip...
6236 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
6237
6238 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
6239
6240 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
6241 redundant diagnostic machinary.
6242
6243 2014-06-27 Richard Biener <rguenther@suse.de>
6244
6245 * tree-ssa-math-opts.c (bswap_replace): Fix
6246 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
6247
6248 2014-06-27 Martin Liska <mliska@suse.cz>
6249
6250 * gimple.h (gimple_location_safe): New function introduced.
6251 * cgraphunit.c (walk_polymorphic_call_targets): Usage
6252 of gimple_location_safe replaces gimple_location.
6253 (gimple_fold_call): Likewise.
6254 * ipa-devirt.c (ipa_devirt): Likewise.
6255 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6256 * ipa.c (walk_polymorphic_call_targets): Likewise.
6257 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
6258
6259 2014-06-27 Jakub Jelinek <jakub@redhat.com>
6260
6261 PR tree-optimization/57233
6262 PR tree-optimization/61299
6263 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
6264 functions.
6265 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
6266 would be lowered to scalar shifts, check if corresponding
6267 shifts and vector BIT_IOR_EXPR are supported and don't lower
6268 or lower just to narrower vector type in that case.
6269 * expmed.c (expand_shift_1): Fix up handling of vector
6270 shifts and rotates.
6271
6272 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
6273
6274 PR target/61586
6275 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
6276
6277 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
6278
6279 * doc/invoke.texi (-fsemantic-interposition): Document.
6280 * common.opt (fsemantic-interposition): New flag.
6281 * varasm.c (decl_replaceable_p): Use it.
6282
6283 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6284
6285 PR target/61542
6286 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
6287 extraction other than index 3.
6288
6289 2014-06-26 Teresa Johnson <tejohnson@google.com>
6290
6291 * doc/invoke.texi: Fix typo.
6292 * dumpfile.c: Add support for documented -fdump-* options
6293 optimized/missed/note/optall.
6294
6295 2014-06-26 Martin Jambor <mjambor@suse.cz>
6296
6297 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
6298 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
6299 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
6300 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
6301 * opts.c (default_options_optimization): Set
6302 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
6303 * doc/invoke.texi (allow-load-data-races)
6304 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
6305 (allow-store-data-races): Document the new default.
6306
6307 2014-06-26 Martin Jambor <mjambor@suse.cz>
6308
6309 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
6310 renamed to ipa_impossible_devirt_target. Fix typo.
6311 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
6312 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
6313 ipa_impossible_devirt_target.
6314
6315 2014-06-26 Richard Biener <rguenther@suse.de>
6316
6317 PR tree-optimization/61607
6318 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
6319 explaining why we restrict copies on loop depth.
6320 * tree-ssa-dom.c (cprop_operand): Remove restriction on
6321 on loop depth.
6322 (record_equivalences_from_phis): Instead add it here.
6323
6324 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
6325
6326 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
6327 (LTO_WRAPPER_OBJS): New variable.
6328 (lto-wrapper$(exeext)): Use it.
6329 * collect2.c: Include "collect-utils.h".
6330 (verbose, debug): Remove variables.
6331 (at_file_supplied): No longer static.
6332 (tool_name): New variable.
6333 (do_wait, fork_execute, maybe_unlink): Don't declare.
6334 (tool_cleanup): No longer static.
6335 (notice): Remove function.
6336 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
6337 fork_execute calls.
6338 (collect_wait, do_wait, collect_execute): Remove functions.
6339 (maybe_unlink): No longer static.
6340 * collect2.h (verbose, debug): Don't declare.
6341 (at_file_supplied): Declare.
6342 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
6343 changed.
6344 (collect_execute): Replace with implementation from collect2, plus a
6345 new arg use_atfile. All callers changed.
6346 (collect_wait): Replace with implementation from collect2.
6347 (maybe_unlink_file): Remove function.
6348 (fork_execute): Replace with implementation from collect2, plus a
6349 new arg use_atfile. All callers changed.
6350 (do_wait): Add call to utils_cleanup to the error path.
6351 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
6352 (tool_cleanup): Adjust declarations.
6353 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
6354 * tlink.c: Include "collect-utils.h".
6355 (tlink_execute): New arg use_atfile. All callers changed.
6356 (tlink_init, tlink_execute): Remove declarations.
6357
6358 * collect-utils.c (save_temps): New variable.
6359 (do_wait): Use it instead of debug. Use fatal_error.
6360 * collect-utils.h (save_temps): Declare.
6361 * collect2.c (verbose): Rename from vflag. All uses changed.
6362 (tool_cleanup): New function, copied from collect_atexit.
6363 (collect_atexit, handler): Just call it.
6364 * collect2.h (verbose): Declaration renamed from vflag.
6365 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
6366 debug.
6367
6368 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
6369 (lto-wrapper$(exeext)): Link with collect-utils.o.
6370 * collect-utils.c: New file.
6371 * collect-utils.h: New file.
6372 * lto-wrapper.c: Include "collect-utils.h".
6373 (args_name): Delete variable.
6374 (tool_name): New variable.
6375 (tool_cleanup): New function.
6376 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
6377 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
6378 (fork_execute): Remove functions.
6379
6380 2014-06-26 Nick Clifton <nickc@redhat.com>
6381
6382 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
6383
6384 * doc/extend.texi (Function Attributes): Fix typo in description
6385 of RX vector attribute.
6386
6387 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6388
6389 * config.gcc (supported_defaults): Error when passing either
6390 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
6391
6392 2014-06-26 Richard Biener <rguenther@suse.de>
6393
6394 * tree-ssa-dom.c (cprop_operand): Remove restriction on
6395 propagating volatile pointers.
6396
6397 2014-06-26 Richard Biener <rguenther@suse.de>
6398
6399 PR tree-optimization/61607
6400 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
6401 loop if we redirected its latch edge.
6402 (thread_block_1): Do not cancel loops prematurely.
6403
6404 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
6405
6406 * toplev.c (backend_init_target): Move init_emit_regs and
6407 init_regs to...
6408 (backend_init) ... here; skip ira_init_once and backend_init_target.
6409 (target_reinit) ... and here; clear
6410 this_target_rtl->lang_dependent_initialized.
6411 (lang_dependent_init_target): Clear
6412 this_target_rtl->lang_dependent_initialized;
6413 break out rtl initialization to ...
6414 (initialize_rtl): ... here; call also backend_init_target
6415 and ira_init_once.
6416 * toplev.h (initialize_rtl): New function.
6417 * function.c: Include toplev.h
6418 (init_function_start): Call initialize_rtl.
6419 * rtl.h (target_rtl): Add target_specific_initialized,
6420 lang_dependent_initialized.
6421
6422 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
6423 Jakub Jelinek <jakub@redhat.com>
6424
6425 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
6426
6427 2014-06-25 Tom de Vries <tom@codesourcery.com>
6428
6429 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
6430
6431 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6432
6433 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
6434 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
6435 Issue a strict overflow warning if appropriate.
6436
6437 2014-06-25 Martin Liska <mliska@suse.cz>
6438
6439 IPA REF refactoring
6440 * Makefile.in: Removed header file (ipa-ref-inline.h).
6441 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
6442 called.
6443 (cgraph_speculative_call_info): Likewise.
6444 (cgraph_for_node_thunks_and_aliases): Likewise.
6445 (cgraph_for_node_and_aliases): Likewise.
6446 (verify_cgraph_node): Likewise.
6447 * cgraph.h: Batch of IPA REF functions become member functions of
6448 symtab_node: add_reference, maybe_add_reference, clone_references,
6449 clone_referring, clone_reference, find_reference,
6450 remove_stmt_references, remove_all_references,
6451 remove_all_referring, dump_references, dump_referring,
6452 has_alias_p, iterate_reference, iterate_referring.
6453 * cgraphbuild.c (record_reference): New IPA REF function used.
6454 (record_type_list): Likewise.
6455 (record_eh_tables): Likewise.
6456 (mark_address): Likewise.
6457 (mark_load): Likewise.
6458 (mark_store): Likewise.
6459 (pass_build_cgraph_edges): Likewise.
6460 (rebuild_cgraph_edge): Likewise.
6461 (cgraph_rebuild_references): Likewise.
6462 (pass_remove_cgraph_callee_edges): Likewise.
6463 * cgraphclones.c (cgraph_clone_node): Likewise.
6464 (cgraph_create_virtual_clone): Likewise.
6465 (cgraph_materialize_clone): Likewise.
6466 (cgraph_materialize_all_clones): Likewise.
6467 * cgraphunit.c (cgraph_reset_node): Likewise.
6468 (cgraph_reset_node): Likewise.
6469 (analyze_function): Likewise.
6470 (assemble_thunks_and_aliases): Likewise.
6471 (expand_function): Likewise.
6472 * ipa-comdats.c (propagate_comdat_group): Likewise.
6473 (enqueue_references): Likewise.
6474 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
6475 (create_specialized_node): Likewise.
6476 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
6477 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
6478 * ipa-inline.c (reset_edge_caches): Likewise.
6479 (update_caller_keys): Likewise.
6480 (execute): Likewise.
6481 * ipa-prop.c (remove_described_reference): Likewise.
6482 (propagate_controlled_uses): Likewise.
6483 (ipa_edge_duplication_hook): Likewise.
6484 (ipa_modify_call_arguments): Likewise.
6485 * ipa-pure-const.c (propagate_pure_const): Likewise.
6486 * ipa-ref-inline.h: Header file removed, functions moved
6487 to symtab_node class.
6488 * ipa-ref.c (remove_reference): New class member function.
6489 (cannot_lead_to_return): New class member function.
6490 (referring_ref_list): Likewise.
6491 (referred_ref_list): Likewise.
6492 Rest of functions moved to symtab_node class.
6493 * ipa-ref.h: New member functions remove_reference,
6494 cannot_lead_to_return, referring_ref_list, referred_ref_list added
6495 to ipa_ref class.
6496 ipa_ref_list class has new member functions: first_reference,
6497 first_referring, clear, nreferences.
6498 * ipa-reference.c (analyze_function): New IPA REF function used.
6499 (write_node_summary_p): Likewise.
6500 (ipa_reference_write_optimization_summary): Likewise.
6501 * ipa-split.c (split_function): Likewise.
6502 * ipa-utils.c (ipa_reverse_postorder): Likewise.
6503 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
6504 (function_and_variable_visibility): Likewise.
6505 * ipa.c (has_addr_references_p): Likewise.
6506 (process_references): Argument type changed.
6507 (symtab_remove_unreachable_nodes): New IPA REF function used.
6508 (process_references): Likewise.
6509 (set_writeonly_bit): Likewise.
6510 * lto-cgraph.c: Implementation of new symtab_node member functions
6511 that uses new IPA REF functions.
6512 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
6513 function used.
6514 * lto-streamer-out.c (output_symbol_p): Likewise.
6515 * lto-streamer.h (referenced_from_this_partition_p): Argument type
6516 changed.
6517 * symtab.c: Implementation of new IPA REF API.
6518 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
6519 (ipa_tm_create_version): Likewise.
6520 (ipa_tm_execute): Likewise.
6521 * tree-emutls.c (gen_emutls_addr): Likewise.
6522 * tree-inline.c (copy_bb): Likewise.
6523 (delete_unreachable_blocks_update_callgraph): Likewise.
6524 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
6525 (varpool_for_node_and_aliases): Likewise.
6526
6527 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
6528
6529 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
6530
6531 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
6532
6533 PR bootstrap/61598
6534 * fold-const.c (fold_checksum_tree): Use a hash_table of const
6535 tree_node * instead of tree_node *.
6536 (fold): Adjust.
6537 (print_fold_checksum): Likewise.
6538 (fold_check_failed): Likewise.
6539 (debug_fold_checksum): Likewise.
6540 (fold_build1_stat_loc): Likewise.
6541 (fold_build2_stat_loc): Likewise.
6542 (fold_build3_stat_loc): Likewise.
6543 (fold_build_call_array_loc): Likewise.
6544
6545 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
6546
6547 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
6548 implementation with call to...
6549 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
6550 function.
6551 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
6552 Declare.
6553
6554 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
6555
6556 PR tree-optimization/57742
6557 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
6558 after replacing the statement.
6559
6560 2014-06-25 Nick Clifton <nickc@redhat.com>
6561
6562 * config/v850/v850.c (GHS_default_section_names): Change to const
6563 char * type.
6564 (GHS_current_section_names): Likewise.
6565 (v850_insert_attributes): Do not build strings, just assign the
6566 names directly. Change the type of 'chosen_section' to const
6567 char*.
6568 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
6569 directly to the array entry.
6570 * config/v850/v850.h (GHS_default_section_names): Change to const
6571 char * type.
6572 (GHS_current_section_names): Likewise.
6573
6574 2014-06-25 Jakub Jelinek <jakub@redhat.com>
6575
6576 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
6577 (LANG_HOOKS_DECLS): Add it.
6578 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
6579 has correct type.
6580 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
6581 * langhooks.h (struct lang_hooks_for_decls): Add
6582 omp_clause_linear_ctor hook.
6583 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
6584 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
6585 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
6586 combined simd loop use omp_clause_linear_ctor hook.
6587
6588 2014-06-24 Cong Hou <congh@google.com>
6589
6590 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
6591 pattern recognition.
6592 (type_conversion_p): PROMOTION is true if it's a type promotion
6593 conversion, and false otherwise. Return true if the given expression
6594 is a type conversion one.
6595 * tree-vectorizer.h: Adjust the number of patterns.
6596 * tree.def: Add SAD_EXPR.
6597 * optabs.def: Add sad_optab.
6598 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
6599 * expr.c (expand_expr_real_2): Likewise.
6600 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6601 * gimple.c (get_gimple_rhs_num_ops): Likewise.
6602 * optabs.c (optab_for_tree_code): Likewise.
6603 * tree-cfg.c (estimate_operator_cost): Likewise.
6604 * tree-ssa-operands.c (get_expr_operands): Likewise.
6605 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
6606 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
6607 * doc/generic.texi: Add document for SAD_EXPR.
6608 * doc/md.texi: Add document for ssad and usad.
6609
6610 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6611
6612 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
6613 qualification in cast.
6614
6615 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
6616
6617 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
6618 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
6619 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
6620 (tree_function_decl): ... here.
6621 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
6622 streaming of vindex to ...
6623 (write_ts_function_decl_tree_pointers): ... here.
6624 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
6625 Do not stream DECL_VINDEX.
6626 (lto_input_ts_function_decl_tree_pointers): Stream it here.
6627
6628 2014-06-24 Catherine Moore <clm@codesourcery.com>
6629 Sandra Loosemore <sandra@codesourcery.com>
6630
6631 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
6632 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
6633 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
6634
6635 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6636
6637 * doc/invoke.texi (Warning Options): Remove duplicated
6638 -Wmaybe-uninitialized.
6639
6640 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6641
6642 PR tree-optimization/57742
6643 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
6644 (handle_builtin_malloc, handle_builtin_memset): New functions.
6645 (strlen_optimize_stmt): Call them.
6646 * passes.def: Move strlen after loop+dom but before vrp.
6647
6648 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6649
6650 PR target/61570
6651 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
6652 model family 6 CPU with has_longmode never use a CPU without
6653 64-bit support.
6654
6655 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
6656
6657 PR target/61570
6658 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
6659 the last change.
6660
6661 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6662
6663 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
6664 * dominance.c (iterate_fix_dominators): Use hash_map instead of
6665 pointer_map.
6666 * hash-map.h: New file.
6667 * ipa-comdats.c: Use hash_map instead of pointer_map.
6668 * ipa.c: Likewise.
6669 * lto-section-out.c: Adjust.
6670 * lto-streamer.h: Replace pointer_map with hash_map.
6671 * symtab.c (verify_symtab): Likewise.
6672 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
6673 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
6674 * tree-streamer.h: Likewise.
6675 * tree-streamer.c: Adjust.
6676 * pointer-set.h: Remove pointer_map.
6677
6678 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6679
6680 * hash-table.h: Add a template arg to choose between storing values
6681 and storing pointers to values, and then provide partial
6682 specializations for both.
6683 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
6684 should store, not the type values should point to.
6685 * tree-into-ssa.c (var_info_hasher): Likewise.
6686 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6687 * tree-complex.c: Adjust.
6688 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
6689 table instead of int_tree_map *.
6690 * tree-parloops.c: Adjust.
6691 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
6692 type is being stored.
6693 * tree-vectorizer.c: Adjust.
6694
6695 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6696
6697 * hash-table.h: Remove a layer of indirection from hash_table so that
6698 it contains the hash table's data instead of a pointer to the data.
6699 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
6700 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
6701 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
6702 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
6703 fold-const.c, gcse.c, ggc-common.c,
6704 gimple-ssa-strength-reduction.c, gimplify.c,
6705 graphite-clast-to-gimple.c, graphite-dependences.c,
6706 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
6707 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
6708 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
6709 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
6710 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
6711 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
6712 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
6713 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
6714 tree-ssa-live.c, tree-ssa-loop-im.c,
6715 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
6716 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6717 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
6718 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
6719 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
6720 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
6721 vtable-verify.c, vtable-verify.h: Adjust.
6722
6723 2014-06-24 Richard Biener <rguenther@suse.de>
6724
6725 PR tree-optimization/61572
6726 * tree-ssa-sink.c (statement_sink_location): Do not sink
6727 loads from hard registers.
6728
6729 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6730
6731 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
6732 not mentioned in clauses use private clause if the iterator is
6733 declared in #pragma omp for simd, and when adding lastprivate
6734 instead, add it to the outer #pragma omp for too. Diagnose
6735 if the variable is private in outer context. For simd collapse > 1
6736 loops, replace all iterators with temporaries.
6737 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
6738 same even in collapse > 1 loops.
6739
6740 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
6741 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
6742 non-NULL.
6743 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
6744 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
6745 non-NULL.
6746 (gimplify_adjust_omp_clauses): Likewise.
6747 * omp-low.c (lower_rec_simd_input_clauses,
6748 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
6749 safelen the same as safelen(1).
6750 * tree-nested.c (convert_nonlocal_omp_clauses,
6751 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
6752 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
6753 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
6754 Fixup handling of GIMPLE_OMP_TARGET.
6755 (convert_tramp_reference_stmt, convert_gimple_call): Handle
6756 GIMPLE_OMP_TARGET.
6757
6758 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
6759
6760 PR tree-optimization/61554
6761 * tree-ssa-propagate.c: Include "bitmap.h".
6762 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
6763 properly update constructor/destructor.
6764 (substitute_and_fold_dom_walker::before_dom_children):
6765 Remove call to gimple_purge_dead_eh_edges, add bb->index to
6766 need_eh_cleaup instead.
6767 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
6768 need_eh_cleanup.
6769
6770 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6771
6772 * varpool.c (dump_varpool_node): Dump used_by_single_function.
6773 * tree-pass.h (make_pass_ipa_single_use): New pass.
6774 * cgraph.h (used_by_single_function): New flag.
6775 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
6776 Stream it.
6777 * passes.def (pass_ipa_single_use): Scedule.
6778 * ipa.c (BOTTOM): New macro.
6779 (meet): New function
6780 (propagate_single_user): New function.
6781 (ipa_single_use): New function.
6782 (pass_data_ipa_single_use): New pass.
6783 (pass_ipa_single_use): New pass.
6784 (pass_ipa_single_use::gate): New gate.
6785 (make_pass_ipa_single_use): New function.
6786
6787 2014-06-23 Kai Tietz <ktietz@redhat.com>
6788
6789 PR target/39284
6790 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
6791 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
6792
6793 2014-06-23 Richard Biener <rguenther@suse.de>
6794
6795 * tree-ssa-loop.c (gate_loop): New function.
6796 (pass_tree_loop::gate): Call it.
6797 (pass_data_tree_no_loop, pass_tree_no_loop,
6798 make_pass_tree_no_loop): New.
6799 * tree-vectorizer.c: Include tree-scalar-evolution.c
6800 (pass_slp_vectorize::execute): Initialize loops and SCEV if
6801 required.
6802 (pass_slp_vectorize::clone): New method.
6803 * timevar.def (TV_TREE_NOLOOP): New.
6804 * tree-pass.h (make_pass_tree_no_loop): Declare.
6805 * passes.def (pass_tree_no_loop): New pass group with
6806 SLP vectorizer.
6807
6808 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
6809
6810 PR target/61570
6811 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
6812 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
6813
6814 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6815
6816 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
6817 "yes" where needed.
6818
6819 2014-06-23 Alan Modra <amodra@gmail.com>
6820
6821 PR bootstrap/61583
6822 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
6823 to zero on debug statements.
6824
6825 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6826
6827 PR target/60825
6828 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
6829 Ignore third operand if present by marking qualifier_internal.
6830
6831 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
6832
6833 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
6834 vector extension.
6835 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
6836 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
6837 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
6838 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
6839 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
6840 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
6841 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
6842 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
6843 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
6844 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
6845 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
6846 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
6847 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
6848 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
6849 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
6850 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
6851 logic in GCC vector extensions
6852
6853 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
6854 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
6855 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
6856 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
6857 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
6858 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
6859 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
6860 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
6861 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
6862 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
6863
6864 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
6865
6866 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
6867 extensions.
6868
6869 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
6870 (vget_low_s64): Use __GET_LOW macro.
6871 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
6872 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
6873 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
6874 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
6875 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
6876
6877 (vcombine_s64): Use GCC vector extensions; remove cast.
6878 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
6879 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
6880 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
6881 Fix type signature; remove cast.
6882
6883 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6884
6885 PR target/60825
6886 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
6887 V1DFmode.
6888 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
6889 add V1DFmode
6890 (BUILTIN_VD1): New.
6891 (BUILTIN_VD_RE): Remove.
6892 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
6893 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
6894 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
6895 variant but not df.
6896 (vreinterpretv1df*, vreinterpret*v1df): New.
6897 (vreinterpretdf*, vreinterpret*df): Remove.
6898 * config/aarch64/aarch64-simd.md (aarch64_create,
6899 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
6900 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
6901 (VD1): New.
6902 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
6903 (vcreate_f64): Remove cast, use v1df builtin.
6904 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
6905 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
6906 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
6907 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
6908 vmov_n_f64, vst1_f64): Use gcc vector extensions.
6909 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
6910 add range check using __builtin_aarch64_im_lane_boundsi.
6911 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
6912 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
6913 type signature, use gcc vector extensions.
6914 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
6915 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
6916 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
6917 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
6918 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
6919 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
6920 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
6921 vreinterpret_u64_f64): Use v1df builtin not df.
6922
6923 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6924
6925 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
6926 vector registers.
6927
6928 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6929
6930 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
6931 priority directly.
6932
6933 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6934
6935 * loop-invariant.c (pre_check_invariant_p): New function.
6936 (find_invariant_insn): Call pre_check_invariant_p.
6937
6938 2014-06-22 Richard Henderson <rth@redhat.com>
6939
6940 PR target/61565
6941 * compare-elim.c (struct comparison): Add eh_note.
6942 (find_comparison_dom_walker::before_dom_children): Don't eliminate
6943 a redundant comparison in a different EH region. Purge EH edges if
6944 necessary.
6945
6946 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6947
6948 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
6949 (var_shift): Use it.
6950 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
6951 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
6952 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
6953 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
6954 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
6955 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
6956 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
6957 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
6958 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
6959 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
6960 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
6961 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
6962 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
6963 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
6964 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
6965 *rotldi3_internal15be): Use the new attribute. Merge register and
6966 integer alternatives.
6967
6968 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6969
6970 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
6971 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
6972 split, *ashrdi3_internal3 and split): Delete, merge into...
6973 (ashr<mode>3): New expander.
6974 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
6975 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
6976
6977 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6978
6979 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
6980 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
6981 *rotldi3_internal3 and split): Delete, merge into...
6982 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
6983 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
6984 Use "rotlw" extended mnemonic.
6985
6986 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6987
6988 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
6989 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
6990 and split, *ashldi3_internal3 and split): Delete, merge into...
6991 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
6992 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
6993
6994 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6995
6996 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
6997 (lshrsi3, two anonymous define_insns and define_splits,
6998 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
6999 *lshrdi3_internal3 and split): Delete, merge into...
7000 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
7001 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
7002
7003 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7004
7005 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
7006 Remove "O" alternative.
7007
7008 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
7009
7010 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
7011 (mips_move_from_gpr_cost): Likewise.
7012 (mips_register_move_cost): Update accordingly.
7013 (mips_secondary_reload_class): Remove name of in_p.
7014
7015 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
7016
7017 PR target/61503
7018 * config/i386/i386.md (x86_64_shrd, x86_shrd,
7019 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
7020
7021 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7022
7023 * config/nios2/nios2.c: Include "builtins.h".
7024
7025 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
7026
7027 * cgraph.h (tls_model_names): New variable.
7028 * print-tree.c (print_node): Simplify.
7029 * varpool.c (tls_model_names): New variable.
7030 (dump_varpool_node): Output tls model.
7031
7032 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
7033
7034 * ipa-visibility.c (function_and_variable_visibility): Disable
7035 temporarily local aliases for some targets.
7036
7037 2014-06-20 Marek Polacek <polacek@redhat.com>
7038
7039 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
7040 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
7041 into SANITIZE_UNDEFINED.
7042 * doc/invoke.texi: Describe -fsanitize=bounds.
7043 * gimplify.c (gimplify_call_expr): Add gimplification of internal
7044 functions created in the FEs.
7045 * internal-fn.c: Move "internal-fn.h" after "tree.h".
7046 (expand_UBSAN_BOUNDS): New function.
7047 * internal-fn.def (UBSAN_BOUNDS): New internal function.
7048 * internal-fn.h: Don't define internal functions here.
7049 * opts.c (common_handle_option): Add -fsanitize=bounds.
7050 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
7051 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
7052 * tree-core.h: Define internal functions here.
7053 (struct tree_base): Add ifn field.
7054 * tree-pretty-print.c: Include "internal-fn.h".
7055 (dump_generic_node): Handle functions without CALL_EXPR_FN.
7056 * tree.c (get_callee_fndecl): Likewise.
7057 (build_call_expr_internal_loc): New function.
7058 * tree.def (CALL_EXPR): Update description.
7059 * tree.h (CALL_EXPR_IFN): Define.
7060 (build_call_expr_internal_loc): Declare.
7061 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
7062 types.
7063 (ubsan_type_descriptor): Change bool parameter to enum
7064 ubsan_print_style. Adjust the code. Add handling of
7065 UBSAN_PRINT_ARRAY.
7066 (ubsan_expand_bounds_ifn): New function.
7067 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
7068 (ubsan_build_overflow_builtin): Likewise.
7069 (instrument_bool_enum_load): Likewise.
7070 (ubsan_instrument_float_cast): Likewise.
7071 * ubsan.h (enum ubsan_print_style): New enum.
7072 (ubsan_expand_bounds_ifn): Declare.
7073 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
7074
7075 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
7076
7077 * config/rs6000/rs6000.md: Append `DONE' to preparation
7078 statements of `bswap' pattern splitters.
7079
7080 2014-06-20 Tom de Vries <tom@codesourcery.com>
7081
7082 * target.def (call_fusage_contains_non_callee_clobbers): Update
7083 definition.
7084 * doc/tm.texi: Regenerate.
7085
7086 2014-06-20 Yury Gribov <y.gribov@samsung.com>
7087 Max Ostapenko <m.ostapenko@partner.samsung.com>
7088
7089 PR sanitizer/61547
7090 * asan.c (instrument_strlen_call): Fixed instrumentation of
7091 trailing byte.
7092
7093 2014-06-20 Martin Jambor <mjambor@suse.cz>
7094
7095 PR ipa/61540
7096 * ipa-prop.c (impossible_devirt_target): New function.
7097 (try_make_edge_direct_virtual_call): Use it, also instead of
7098 asserting.
7099
7100 2014-06-20 Yury Gribov <y.gribov@samsung.com>
7101 Max Ostapenko <m.ostapenko@partner.samsung.com>
7102
7103 PR sanitizer/61530
7104 * asan.c (build_check_stmt): Add condition.
7105
7106 2014-06-20 Martin Jambor <mjambor@suse.cz>
7107
7108 PR ipa/61211
7109 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
7110 expanded clones.
7111
7112 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7113
7114 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
7115 Update comments.
7116 (VCONQ): Make comment more helpful.
7117 (VCON): Delete.
7118 * config/aarch64/aarch64-simd.md
7119 (aarch64_sqdmulh_lane<mode>):
7120 Use VCOND for operands 2. Update lane checking and flipping logic.
7121 (aarch64_sqrdmulh_lane<mode>): Likewise.
7122 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
7123 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
7124 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
7125 attribute of operand 3 to VCOND.
7126 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
7127 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
7128 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
7129 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
7130 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
7131 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
7132 define_insn.
7133 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
7134 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
7135 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
7136 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
7137 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
7138 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
7139 operand to VCOND. Update lane flipping and bounds checking logic.
7140 (aarch64_sqdmlal2_lane<mode>): Likewise.
7141 (aarch64_sqdmlsl_lane<mode>): Likewise.
7142 (aarch64_sqdmull_lane<mode>): Likewise.
7143 (aarch64_sqdmull2_lane<mode>): Likewise.
7144 (aarch64_sqdmlal_laneq<mode>):
7145 Replace VCON usage with VCONQ.
7146 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
7147 (aarch64_sqdmlal2_laneq<mode>): Emit
7148 aarch64_sqdmlal2_laneq<mode>_internal insn.
7149 Replace VCON with VCONQ.
7150 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
7151 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
7152 (aarch64_sqdmull_laneq<mode>): Emit
7153 aarch64_sqdmull_laneq<mode>_internal insn.
7154 Replace VCON with VCONQ.
7155 (aarch64_sqdmull2_laneq<mode>): Emit
7156 aarch64_sqdmull2_laneq<mode>_internal insn.
7157 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
7158 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
7159 of 3rd argument to int16x4_t.
7160 (vqdmlalh_lane_s16): Likewise.
7161 (vqdmlslh_lane_s16): Likewise.
7162 (vqdmull_high_lane_s16): Likewise.
7163 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
7164 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
7165 (vqdmlsl_lane_s16): Likewise.
7166 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
7167 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
7168 (vqdmlals_lane_s32): Likewise.
7169 (vqdmlsls_lane_s32): Likewise.
7170 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
7171 (vqdmulls_lane_s32): Likewise.
7172 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
7173 (vqdmlsl_lane_s32): Likewise.
7174 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
7175 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
7176 (vqrdmulhh_lane_s16): Likewise.
7177 (vqdmlsl_high_lane_s16): Likewise.
7178 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
7179 (vqdmlsl_high_lane_s32): Likewise.
7180 (vqrdmulhs_lane_s32): Likewise.
7181
7182 2014-06-20 Tom de Vries <tom@codesourcery.com>
7183
7184 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
7185 get_call_reg_set_usage.
7186
7187 2014-06-20 Tom de Vries <tom@codesourcery.com>
7188
7189 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
7190 it contains all call_used_regs.
7191
7192 2014-06-20 Tom de Vries <tom@codesourcery.com>
7193
7194 * final.c (collect_fn_hard_reg_usage): Add and use variable
7195 function_used_regs.
7196
7197 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
7198
7199 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
7200 (set_init_priority, get_init_priority, set_fini_priority,
7201 get_fini_priority): New methods.
7202 * tree.c (init_priority_for_decl): Remove.
7203 (init_ttree): Do not initialize init priority.
7204 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
7205 (decl_priority_info): Remove.
7206 (decl_init_priority_insert): Rewrite.
7207 (decl_fini_priority_insert): Rewrite.
7208 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
7209 tree_priority_map_marked_p): Remove.
7210 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
7211 * lto-streamer-out.c (hash_tree): Do not hash priorities.
7212 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
7213 not output priorities.
7214 (pack_ts_function_decl_value_fields): Likewise.
7215 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7216 not input priorities.
7217 (unpack_ts_function_decl_value_fields): Likewise.
7218 * symtab.c (symbol_priority_map): Declare.
7219 (init_priority_hash): Declare.
7220 (symtab_unregister_node): Unregister from priority hash, too.
7221 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
7222 New methods.
7223 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
7224 (symbol_priority_info): New function.
7225 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
7226 New methods.
7227 * tree-core.h (tree_priority_map): Remove.
7228
7229 2014-06-20 Jakub Jelinek <jakub@redhat.com>
7230
7231 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
7232 0xff to uint64_t before shifting it up.
7233
7234 2014-06-20 Julian Brown <julian@codesourcery.com>
7235 Chung-Lin Tang <cltang@codesourcery.com>
7236
7237 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
7238 TARGET_THUMB1_ONLY. Add comments.
7239
7240 2014-06-19 Tom de Vries <tom@codesourcery.com>
7241
7242 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
7243 return type to void.
7244 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
7245
7246 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7247
7248 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
7249 as "move", from depends_on.
7250
7251 2014-06-19 Terry Guo <terry.guo@arm.com>
7252
7253 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
7254 stage.
7255
7256 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
7257
7258 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
7259 Remove cr5.
7260 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
7261
7262 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
7263
7264 PR target/61550
7265 * config/sh/sh.c (prepare_move_operands): Don't process TLS
7266 addresses here if reload in progress or completed.
7267
7268 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
7269
7270 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
7271 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
7272 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
7273 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
7274 (mips_register_priority): New function that implements the target
7275 hook TARGET_REGISTER_PRIORITY.
7276 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
7277 (mips_lra_p): Likewise for TARGET_LRA_P.
7278 (TARGET_REGISTER_PRIORITY): Define macro.
7279 (TARGET_SPILL_CLASS): Likewise.
7280 (TARGET_LRA_P): Likewise.
7281 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
7282 classes.
7283 (REG_CLASS_NAMES): Likewise.
7284 (REG_CLASS_CONTENTS): Likewise.
7285 (BASE_REG_CLASS): Use M16_SP_REGS.
7286 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
7287 New set attribute to enable alternatives depending on the register
7288 allocator used.
7289 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
7290 (*lea64): Disable pattern for MIPS16.
7291 * config/mips/mips.opt (mlra): New option.
7292
7293 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
7294
7295 * lra-constraints.c (base_to_reg): New function.
7296 (process_address): Use new function.
7297
7298 2014-06-18 Tom de Vries <tom@codesourcery.com>
7299
7300 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
7301 * config/aarch64/aarch64.c
7302 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
7303 (aarch64_emit_call_insn): New function.
7304 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
7305 of emit_call_insn.
7306 * config/aarch64/aarch64.md (define_expand "call_internal")
7307 (define_expand "call_value_internal", define_expand "sibcall_internal")
7308 (define_expand "sibcall_value_internal"): New.
7309 (define_expand "call", define_expand "call_value")
7310 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
7311 expand variant and aarch64_emit_call_insn.
7312
7313 2014-06-18 Radovan Obradovic <robradovic@mips.com>
7314 Tom de Vries <tom@codesourcery.com>
7315
7316 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
7317 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
7318 Redefine to true.
7319 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
7320 clobbers to CALL_INSN_FUNCTION_USAGE.
7321 (define_expand "sibcall_internal")
7322 (define_expand "sibcall_value_internal"): New.
7323 (define_expand "call", define_expand "call_value"): Add argument to
7324 arm_emit_call_insn.
7325 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
7326 (define_expand "sibcall_value"): Use sibcall_value_internal and
7327 arm_emit_call_insn.
7328
7329 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7330
7331 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
7332
7333 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7334
7335 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
7336 __udivmoddi4.
7337
7338 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7339
7340 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
7341 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
7342 annotations. Fix DWARF information.
7343
7344 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7345
7346 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
7347 __udivmoddi4, and fixups for negative operands.
7348
7349 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7350
7351 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
7352
7353 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7354
7355 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
7356 to __udivmoddi4.
7357
7358 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7359
7360 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
7361 manipulation.
7362
7363 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7364
7365 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
7366 describing register usage on function entry and exit.
7367
7368 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7369
7370 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
7371 (__aeabi_ldivmod): Fix whitespace.
7372
7373 2014-06-18 Andreas Schwab <schwab@suse.de>
7374
7375 * doc/md.texi (Standard Names): Use @itemx for grouped items.
7376 Remove blank line after @item.
7377
7378 2014-06-18 Richard Henderson <rth@redhat.com>
7379
7380 PR target/61545
7381 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
7382
7383 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7384
7385 * config/arm/arm.c (neon_vector_mem_operand): Allow register
7386 POST_MODIFY for neon loads and stores.
7387 (arm_print_operand): Output post-index register for neon loads and
7388 stores.
7389
7390 2014-06-18 Richard Biener <rguenther@suse.de>
7391
7392 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
7393
7394 2014-06-18 Richard Biener <rguenther@suse.de>
7395
7396 * tree-pass.h (make_pass_dce_loop): Remove.
7397 * passes.def: Replace pass_dce_loop with pass_dce.
7398 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
7399 changed free niter estimates and reset the scev cache.
7400 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
7401 make_pass_dce_loop): Remove.
7402 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
7403 (fini_copy_prop): Return whether something changed. Always
7404 let substitute_and_fold perform DCE and free niter estimates
7405 and reset the scev cache if so.
7406 (execute_copy_prop): If sth changed schedule cleanup-cfg.
7407 (pass_data_copy_prop): Do not unconditionally schedule
7408 cleanup-cfg or update-ssa.
7409
7410 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
7411
7412 PR tree-optimization/61518
7413 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
7414 reduction var is used in reduction stmt or phi-function only.
7415
7416 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7417
7418 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
7419
7420 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
7421
7422 PR tree-optimization/61517
7423 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
7424 whose rhs's first tree is the source expression instead of the
7425 expression itself.
7426 (find_bswap_or_nop): Likewise.
7427 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
7428 gimple stmt whose rhs's first tree is the source. In the memory source
7429 case, move the stmt to be replaced close to one of the original load to
7430 avoid the problem of a store between the load and the stmt's original
7431 location.
7432 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
7433 signature.
7434
7435 2014-06-18 Andreas Schwab <schwab@suse.de>
7436
7437 PR rtl-optimization/54555
7438 * postreload.c (move2add_use_add2_insn): Substitute
7439 STRICT_LOW_PART only if it is cheaper.
7440
7441 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
7442
7443 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
7444 Do not use unspec as call operand. Use memory_operand instead of
7445 memory_nox32_operand and add "m" operand constraint. Disable
7446 pattern for TARGET_X32.
7447 (*sibcall_pop_memory): Ditto.
7448 (*sibcall_value_memory): Ditto.
7449 (*sibcall_value_pop_memory): Ditto.
7450 (sibcall peepholes): Merge SImode and DImode patterns using
7451 W mode iterator. Use memory_operand instead of memory_nox32_operand.
7452 Disable pattern for TARGET_X32. Check if eliminated register is
7453 really dead after call insn. Generate call RTX without unspec operand.
7454 (sibcall_value peepholes): Ditto.
7455 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
7456 instead of memory_nox32_operand. Check if eliminated register is
7457 really dead after call insn. Generate call RTX without unspec operand.
7458 (sibcall_value_pop peepholes): Ditto.
7459 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
7460
7461 2014-06-18 Terry Guo <terry.guo@arm.com>
7462
7463 PR target/61544
7464 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
7465 reach the head.
7466
7467 2014-06-18 Olivier Hainque <hainque@adacore.com>
7468
7469 * tree-core.h (tree_block): Add an "end_locus" field, allowing
7470 memorization of the end of block source location.
7471 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
7472 * gimplify.c (gimplify_bind_expr): Propagate the block start and
7473 end source location info we have on the block entry/exit code we
7474 generate.
7475
7476 2014-06-18 Richard Biener <rguenther@suse.de>
7477
7478 * common.opt (fssa-phiopt): New option.
7479 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
7480 but not with -Og.
7481 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
7482 * doc/invoke.texi (-fssa-phiopt): Document.
7483
7484 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7485
7486 * genattrtab.c (n_bypassed): New variable.
7487 (process_bypasses): Initialise n_bypassed.
7488 Count number of bypassed reservations.
7489 (make_automaton_attrs): Allocate space for bypassed reservations
7490 rather than number of bypasses.
7491
7492 2014-06-18 Richard Biener <rguenther@suse.de>
7493
7494 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
7495 we propagated anything.
7496 (substitute_and_fold_dom_walker::before_dom_children): Something
7497 changed if we propagated into PHI arguments.
7498 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
7499 we removed a stmt.
7500
7501 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
7502
7503 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
7504 vector case.
7505 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
7506 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
7507 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
7508 Introduces alternative way of loads group permutaions.
7509 (vect_transform_grouped_load): Try alternative way of permutations.
7510
7511 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7512
7513 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
7514 changed in ORT_TARGET region, don't jump to do_outer.
7515 (struct gimplify_adjust_omp_clauses_data): New type.
7516 (gimplify_adjust_omp_clauses_1): Adjust for data being
7517 a struct gimplify_adjust_omp_clauses_data pointer instead
7518 of tree *. Pass pre_p as a new argument to
7519 lang_hooks.decls.omp_finish_clause hook.
7520 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
7521 splay_tree_foreach to pass both list_p and pre_p.
7522 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
7523 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
7524 gimplify_adjust_omp_clauses callers.
7525 * langhooks.c (lhd_omp_finish_clause): New function.
7526 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
7527 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
7528 * langhooks.h (struct lang_hooks_for_decls): Add a new
7529 gimple_seq * argument to omp_finish_clause hook.
7530 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
7531 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
7532 (scan_omp_parallel, lower_omp_for): When adding
7533 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
7534 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
7535 * tree-nested.c (convert_nonlocal_omp_clauses,
7536 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
7537 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
7538
7539 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
7540
7541 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
7542 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
7543
7544 2014-06-17 Xinliang David Li <davidxl@google.com>
7545
7546 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
7547 * passes.c (pass_init_dump_file): Do not set initialize
7548 flag to false unconditionally.
7549
7550 2014-06-17 Richard Biener <rguenther@suse.de>
7551
7552 * genopinit.c (main): Use vec<>::qsort method.
7553 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
7554 Likewise.
7555 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
7556
7557 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
7558
7559 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
7560 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
7561 (mips_move_to_gpr_cost): Remove ST_REGS case.
7562 (mips_move_from_gpr_cost): Likewise.
7563 (mips_register_move_cost): Likewise.
7564 (mips_secondary_reload_class): Likewise.
7565
7566 2014-06-17 Richard Biener <rguenther@suse.de>
7567
7568 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
7569 (pass_all_optimizations): Move 3rd copy-prop pass from after
7570 fre to before ifcombine/phiopt.
7571
7572 2014-06-17 Richard Biener <rguenther@suse.de>
7573
7574 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
7575 and allow all blocks to be forwarders.
7576
7577 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
7578
7579 PR target/61483
7580 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
7581 variable 'size'; calculate 'size' right in the front; use
7582 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
7583 pcum->aapcs_stack_words.
7584
7585 2014-06-17 Nick Clifton <nickc@redhat.com>
7586
7587 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
7588 (umulhi3, mulsidi3, umulsidi3): Likewise.
7589
7590 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
7591
7592 PR middle-end/61508
7593 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
7594 check for section name.
7595
7596 2014-06-17 Richard Biener <rguenther@suse.de>
7597
7598 * tree-ssa-propagate.c: Include domwalk.h.
7599 (substitute_and_fold): Outline main worker into a domwalker ...
7600 (substitute_and_fold_dom_walker::before_dom_children): ... here.
7601 Schedule stmts we can fully propagate for removal. Remove
7602 poor-mans DCE.
7603 (substitute_and_fold): Apply a dominator walk to perform
7604 substitution. Process stmts scheduled for removal here.
7605
7606 2014-06-17 Richard Biener <rguenther@suse.de>
7607
7608 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
7609 of PHI node moving.
7610
7611 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7612
7613 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
7614 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
7615 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
7616 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
7617 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
7618 TARGET_HARD_FLOAT.
7619 (get_fpscr) : Likewise.
7620
7621 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7622
7623 PR rtl-optimization/61325
7624 * lra-constraints.c (valid_address_p): Add forward declaration.
7625 (simplify_operand_subreg): Check address validity before and after
7626 alter_reg of memory subreg.
7627
7628 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
7629
7630 * config/i386/i386.c (decide_alg): Correctly handle
7631 maximum size of stringop algorithm.
7632
7633 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7634
7635 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
7636
7637 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7638
7639 PR rtl-optimization/61522
7640 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
7641
7642 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
7643
7644 Revert:
7645 * symtab.c (symtab_node::reset_section): New method.
7646 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7647 for localization.
7648 * cgraph.h (reset_section): Declare.
7649 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7650 do not consider comdat locals.
7651 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7652 for new symbol.
7653 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7654 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7655 reset sections of symbols dragged out of the comdats.
7656 (function_and_variable_visibility): Reset sections of
7657 localized symbols.
7658
7659 2014-06-16 Richard Biener <rguenther@suse.de>
7660
7661 PR tree-optimization/61482
7662 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
7663 [-INF(OVF), +INF(OVF)] range.
7664
7665 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7666
7667 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
7668 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
7669 handling 32-bit multiplication.
7670
7671 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
7672
7673 PR middle-end/61430
7674 * lra-lives.c (process_bb_lives): Skip creating copy during
7675 insn scan when src/dest has constrained to same regno.
7676
7677 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7678
7679 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
7680 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
7681
7682 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7683
7684 * asan.c (check_func): New function.
7685 (maybe_create_ssa_name): Likewise.
7686 (build_check_stmt_with_calls): Likewise.
7687 (use_calls_p): Likewise.
7688 (report_error_func): Change interface.
7689 (build_check_stmt): Allow non-integer lengths; add support
7690 for new parameter.
7691 (asan_instrument): Likewise.
7692 (instrument_mem_region_access): Moved code to build_check_stmt.
7693 (instrument_derefs): Likewise.
7694 (instrument_strlen_call): Likewise.
7695 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
7696 * doc/invoke.texi: Describe new parameter.
7697 * params.def: Define new parameter.
7698 * params.h: Likewise.
7699 * sanitizer.def: Describe new builtins.
7700
7701 2014-06-16 Richard Biener <rguenther@suse.de>
7702
7703 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7704 Make all defs available at the end.
7705 (eliminate): If we remove a PHI node schedule cfg-cleanup.
7706
7707 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7708
7709 PR plugins/45078
7710 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
7711
7712 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
7713
7714 PR bootstrap/61516
7715 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
7716 initialization. Replace remaining use of uid.
7717
7718 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7719
7720 * c-family/c-common.c (handle_tls_model_attribute): Use
7721 set_decl_tls_model.
7722 * c-family/c-common.c (handle_tls_model_attribute): Use
7723 set_decl_tls_model.
7724 * cgraph.h (struct varpool_node): Add tls_model.
7725 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
7726 * tree.h (DECL_TLS_MODEL): Update.
7727 (DECL_THREAD_LOCAL_P): Check that variable is static.
7728 (decl_tls_model): Declare.
7729 (set_decl_tls_model): Declare.
7730 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
7731 set symbol prorperties.
7732 (get_emutls_init_templ_addr): Cleanup.
7733 (new_emutls_decl): Update.
7734 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
7735 (lto_input_varpool_node): Likewise.
7736 * lto-streamer-out.c (hash_tree): Likewise.
7737 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7738 not stream DECL_TLS_MODEL.
7739 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
7740 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
7741
7742 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7743
7744 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
7745
7746 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7747
7748 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
7749 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
7750 lists.
7751 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
7752 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
7753 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
7754 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
7755 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
7756 (df_get_artificial_defs, df_get_artificial_uses)
7757 (df_single_def, df_single_use): Update accordingly.
7758 (df_refs_chain_dump): Take the first element in a linked list as
7759 parameter, rather than a pointer to an array of pointers.
7760 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
7761 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
7762 (df_chain_create_bb_process_use): Likewise.
7763 (df_md_bb_local_compute_process_def): Likewise.
7764 * fwprop.c (process_defs, process_uses): Likewise.
7765 (register_active_defs, update_uses): Likewise.
7766 (forward_propagate_asm): Update for new df_ref linking.
7767 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
7768 (df_null_ref_rec, df_null_mw_rec): Likewise.
7769 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
7770 explicitly.
7771 (df_scan_free_bb_info): Remove check for null artificial_defs.
7772 (df_install_ref_incremental): Adjust for new df_ref linking.
7773 Use a single-element insertion rather than a full sort.
7774 (df_ref_chain_delete_du_chain): Take the first element
7775 in a linked list as parameter, rather than a pointer to an array of
7776 pointers.
7777 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
7778 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
7779 (df_insn_info_delete): Remove check for null defs and call to
7780 df_scan_free_mws_vec.
7781 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
7782 null rather than df_null_*_rec.
7783 (df_insn_rescan_debug_internal): Likewise, and update null
7784 checks in the same way. Remove check for null defs.
7785 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
7786 Move a single element rather doing a full sort.
7787 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
7788 linking.
7789 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
7790 Initialize df_ref and df_mw_hardreg lists to null rather than
7791 df_null_*_rec.
7792 (df_ref_compare): Take df_refs as parameter, transferring the
7793 old interface to...
7794 (df_ref_ptr_compare): ...this new function.
7795 (df_sort_and_compress_refs): Update accordingly.
7796 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
7797 old interface to...
7798 (df_mw_ptr_compare): ...this new function.
7799 (df_sort_and_compress_mws): Update accordingly.
7800 (df_install_refs, df_install_mws): Return a linked list rather than
7801 an array of pointers.
7802 (df_refs_add_to_chains): Assert that old lists are empty rather
7803 than freeing them.
7804 (df_insn_refs_verify): Don't handle null defs speciailly.
7805 * web.c (union_match_dups): Update for new df_ref linking.
7806
7807 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7808
7809 * df.h (df_ref_create, df_ref_remove): Delete.
7810 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
7811 (df_ref_remove): Likewise.
7812
7813 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7814
7815 * df.h (df_single_def, df_single_use): New functions.
7816 * ira.c (find_moveable_pseudos): Use them.
7817
7818 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7819
7820 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
7821 * df-problems.c (df_note_bb_compute): Use it.
7822 * regstat.c (regstat_bb_compute_ri): Likewise.
7823
7824 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7825
7826 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
7827 * cse.c (cse_extended_basic_block): Use them.
7828 * dce.c (mark_artificial_use): Likewise.
7829 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
7830 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7831 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
7832 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
7833 (df_simulate_initialize_backwards): Likewise.
7834 (df_simulate_finalize_backwards): Likewise.
7835 (df_simulate_initialize_forwards): Likewise.
7836 (df_md_simulate_artificial_defs_at_top): Likewise.
7837 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7838 * regrename.c (init_rename_info): Likewise.
7839 * regstat.c (regstat_bb_compute_ri): Likewise.
7840 (regstat_bb_compute_calls_crossed): Likewise.
7841
7842 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7843
7844 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
7845 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
7846 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
7847 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
7848 * combine.c (create_log_links): Likewise.
7849 * compare-elim.c (find_flags_uses_in_insn): Likewise.
7850 (try_eliminate_compare): Likewise.
7851 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
7852 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
7853 (remove_reg_equal_equiv_notes_for_defs): Likewise.
7854 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
7855 (word_dce_process_block, dce_process_block): Likewise.
7856 * ddg.c (def_has_ccmode_p): Likewise.
7857 * df-core.c (df_bb_regno_first_def_find): Likewise.
7858 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
7859 * df-problems.c (df_rd_simulate_one_insn): Likewise.
7860 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7861 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
7862 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
7863 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
7864 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
7865 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
7866 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
7867 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
7868 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7869 * fwprop.c (local_ref_killed_between_p): Likewise.
7870 (all_uses_available_at, free_load_extend): Likewise.
7871 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
7872 * hw-doloop.c (scan_loop): Likewise.
7873 * ifcvt.c (dead_or_predicable): Likewise.
7874 * init-regs.c (initialize_uninitialized_regs): Likewise.
7875 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
7876 (process_bb_node_lives): Likewise.
7877 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
7878 (find_moveable_pseudos): Likewise.
7879 * loop-invariant.c (check_dependencies, record_uses): Likewise.
7880 * recog.c (peep2_find_free_register): Likewise.
7881 * ree.c (get_defs): Likewise.
7882 * regstat.c (regstat_bb_compute_ri): Likewise.
7883 (regstat_bb_compute_calls_crossed): Likewise.
7884 * sched-deps.c (find_inc, find_mem): Likewise.
7885 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
7886 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
7887 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7888 (prepare_shrink_wrap): Likewise.
7889 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
7890 * web.c (union_defs, pass_web::execute): Likewise.
7891 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
7892 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
7893
7894 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
7895
7896 * lra-assign.c (assign_by_spills): Add code to assign vector regs
7897 to inheritance pseudos.
7898 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
7899
7900 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
7901
7902 PR target/61415
7903 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
7904 (BU_MISC_2): Rename to ...
7905 (BU_LDBL128_2): ... this.
7906 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
7907 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
7908 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7909 RS6000_BTM_LDBL128.
7910 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
7911 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
7912 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
7913 (unpacktf_1): Likewise.
7914 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
7915 (__builtin_longdouble_dw1): Likewise.
7916 * doc/sourcebuild.texi (longdouble128): Document.
7917
7918 2014-06-13 Jeff Law <law@redhat.com>
7919
7920 PR rtl-optimization/61094
7921 PR rtl-optimization/61446
7922 * ree.c (combine_reaching_defs): Get the mode for the copy from
7923 the extension insn rather than the defining insn.
7924
7925 2014-06-13 Dehao Chen <dehao@google.com>
7926
7927 * dwarf2out.c (add_linkage_name): Emit more linkage name.
7928
7929 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
7930
7931 * doc/install.texi (--enable-linker-plugin-configure-flags)
7932 (--enable-linker-plugin-flags): Document new flags.
7933
7934 2014-06-13 Martin Jambor <mjambor@suse.cz>
7935
7936 PR ipa/61186
7937 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
7938 cache_token if returning early.
7939
7940 2014-06-13 Nick Clifton <nickc@redhat.com>
7941
7942 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
7943 requested alignment is active.
7944 (LABEL_ALIGN): Likewise.
7945 (LOOP_ALIGN): Likewise.
7946
7947 2014-06-13 Richard Biener <rguenther@suse.de>
7948
7949 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7950 Rewrite to propagate the VN result into all uses where
7951 possible and to remove stmts becoming dead because of that.
7952 (eliminate): Generalize stmt removal handling, remove in
7953 reverse dominator order to support proper debug stmt
7954 generation. Update stmts before removing stmts.
7955 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
7956
7957 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7958
7959 PR tree-optimization/61375
7960 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
7961 symbolic number cannot be represented in an uint64_t.
7962 (find_bswap_or_nop_1): Likewise.
7963
7964 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7965
7966 * symtab.c (symtab_node::reset_section): New method.
7967 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7968 for localization.
7969 * cgraph.h (reset_section): Declare.
7970 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7971 do not consider comdat locals.
7972 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7973 for new symbol.
7974 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7975 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7976 reset sections of symbols dragged out of the comdats.
7977 (function_and_variable_visibility): Reset sections of
7978 localized symbols.
7979
7980 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7981
7982 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
7983 to use symtab and decl_binds_to_current_def_p
7984 * tree-vectorizer.c (increase_alignment): Increase alignment
7985 of alias target, too.
7986
7987 2014-06-12 Jakub Jelinek <jakub@redhat.com>
7988
7989 PR middle-end/61486
7990 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
7991 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
7992 if outer combined construct is distribute.
7993 (gimplify_omp_for): For OMP_DISTRIBUTE set
7994 gimplify_omp_ctxp->distribute.
7995 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
7996 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
7997 mapping into decl map.
7998
7999 2014-06-12 Jason Merrill <jason@redhat.com>
8000
8001 * common.opt (fabi-version): Change default to 0.
8002
8003 2014-06-12 Jason Merrill <jason@redhat.com>
8004
8005 * toplev.c (process_options): Reject -fabi-version=1.
8006
8007 2014-06-12 Jeff Law <law@redhat.com>
8008
8009 PR tree-optimization/61009
8010 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
8011 value when we stop processing a block due to problematic PHIs.
8012
8013 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
8014
8015 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
8016 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
8017 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
8018 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
8019 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
8020 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
8021 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
8022 are not in the spec.
8023
8024 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
8025
8026 PR target/59843
8027 * config/aarch64/aarch64-modes.def: Add V1DFmode.
8028 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
8029 Support V1DFmode.
8030
8031 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
8032
8033 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
8034
8035 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
8036
8037 PR target/61443
8038 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
8039 loading from address spaces.
8040
8041 2014-06-12 Martin Liska <mliska@suse.cz>
8042
8043 PR ipa/61462
8044 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
8045 statement is reachable.
8046
8047 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
8048
8049 * symtab.c (section_hash): New hash.
8050 (symtab_unregister_node): Clear section before freeing.
8051 (hash_section_hash_entry): New haser.
8052 (eq_sections): New function.
8053 (symtab_node::set_section_for_node): New method.
8054 (set_section_1): Update.
8055 (symtab_node::set_section): Take string instead of tree as parameter.
8056 (symtab_resolve_alias): Update.
8057 * cgraph.h (section_hash_entry_d): New structure.
8058 (section_hash_entry): New typedef.
8059 (cgraph_node): Change comdat_group_ to x_comdat_group,
8060 change section_ to x_section and turn into section_hash_entry;
8061 update accestors; put set_section_for_node offline.
8062 * tree.c (decl_section_name): Turn into string.
8063 (set_decl_section_name): Change parameter to be string.
8064 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
8065 * sdbout.c (sdbout_one_type): Update.
8066 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
8067 * varasm.c (IN_NAMED_SECTION, get_named_section,
8068 resolve_unique_section, hot_function_section, get_named_text_section,
8069 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
8070 make_decl_rtl, default_unique_section): Update.
8071 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
8072 (c6x_elf_unique_section): Update.
8073 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
8074 * config/pa/pa.c (pa_function_section): Update.
8075 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
8076 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
8077 * config/arc/arc.c (arc_in_small_data_p): Update.
8078 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
8079 * config/mcore/mcore.c (mcore_unique_section): Update.
8080 * config/mips/mips.c (mips16_build_function_stub): Update.
8081 (mips16_build_call_stub): Update.
8082 (mips_function_rodata_section): Update.
8083 (mips_in_small_data_p): Update.
8084 * config/score/score.c (score_in_small_data_p): Update.
8085 * config/rx/rx.c (rx_in_small_data): Update.
8086 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
8087 (rs6000_xcoff_asm_named_section): Update.
8088 (rs6000_xcoff_unique_section): Update.
8089 * config/frv/frv.c (frv_string_begins_with): Update.
8090 (frv_in_small_data_p): Update.
8091 * config/v850/v850.c (v850_encode_data_area): Update.
8092 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
8093 (bfin_handle_l1_data_attribute): Update.
8094 (bfin_handle_l2_attribute): Update.
8095 * config/mep/mep.c (mep_unique_section): Update.
8096 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
8097 Update.
8098 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
8099 (h8300_handle_tiny_data_attribute): Update.
8100 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
8101 (m32r_in_small_data_p): Update.
8102 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
8103 * config/i386/i386.c (ix86_in_large_data_p): Update.
8104 * config/i386/winnt.c (i386_pe_unique_section): Update.
8105 * config/darwin.c (darwin_function_section): Update.
8106 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
8107 * tree-emutls.c (get_emutls_init_templ_addr): Update.
8108 (new_emutls_decl): Update.
8109 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
8110 input_varpool_node): Update.
8111 (ead_string_cst): Turn to ...
8112 (read_string): ... this one.
8113 * dwarf2out.c (secname_for_decl): Update.
8114 * asan.c (asan_protect_global): Update.
8115
8116 2014-06-11 DJ Delorie <dj@redhat.com>
8117
8118 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
8119 cache lines.
8120 * config/rx/rx.c (rx_option_override): Likewise.
8121 (rx_align_for_label): Likewise.
8122
8123 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
8124
8125 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
8126
8127 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
8128 prototype.
8129
8130 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8131
8132 * common.md: New file.
8133 * doc/md.texi: Update description of generic, machine-independent
8134 constraints.
8135 * config/s390/constraints.md (e): Delete.
8136 * Makefile.in (md_file): Include common.md.
8137 * config/m32c/t-m32c (md_file): Likewise.
8138 * genpreds.c (general_mem): New array.
8139 (generic_constraint_letters): Remove constraints now defined by
8140 common.md.
8141 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
8142 Allow the first character to be '<' or '>' as well.
8143 * genoutput.c (general_mem): New array.
8144 (indep_constraints): Remove constraints now defined by common.md.
8145 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
8146 Remove special handling of 'm'.
8147 * ira-costs.c (record_reg_classes): Remove special handling of
8148 constraints now defined by common.md.
8149 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8150 * ira-lives.c (single_reg_class): Likewise.
8151 (ira_implicitly_set_insn_hard_regs): Likewise.
8152 * lra-constraints.c (reg_class_from_constraints): Likewise.
8153 (process_alt_operands, process_address, curr_insn_transform): Likewise.
8154 * postreload.c (reload_cse_simplify_operands): Likewise.
8155 * reload.c (push_secondary_reload, scratch_reload_class)
8156 (find_reloads, alternative_allows_const_pool_ref): Likewise.
8157 * reload1.c (maybe_fix_stack_asms): Likewise.
8158 * targhooks.c (default_secondary_reload): Likewise.
8159 * stmt.c (parse_output_constraint): Likewise.
8160 * recog.c (preprocess_constraints): Likewise.
8161 (constrain_operands, peep2_find_free_register): Likewise.
8162 (asm_operand_ok): Likewise, but add a comment saying why 'o'
8163 must be handled specially.
8164
8165 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8166
8167 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
8168 * genpreds.c (have_const_dbl_constraints): Delete.
8169 (add_constraint): Don't set it.
8170 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
8171 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
8172 constraints using the lookup_constraint logic.
8173 * ira-lives.c (single_reg_class): Likewise.
8174 * ira.c (ira_setup_alts): Likewise.
8175 * lra-constraints.c (process_alt_operands): Likewise.
8176 * recog.c (asm_operand_ok, constrain_operands): Likewise.
8177 * reload.c (find_reloads): Likewise.
8178
8179 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8180
8181 * genpreds.c (const_int_start, const_int_end): New variables.
8182 (choose_enum_order): Output CONST_INT constraints before memory
8183 constraints.
8184 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
8185 Add CT_CONST_INT.
8186 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
8187 * ira.c (ira_setup_alts): Likewise.
8188 * lra-constraints.c (process_alt_operands): Likewise.
8189 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
8190 * reload.c (find_reloads): Likewise.
8191
8192 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8193
8194 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
8195 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
8196 * recog.c (preprocess_constraints): Update accordingly.
8197
8198 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8199
8200 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
8201 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
8202 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
8203 * genpreds.c (print_type_tree): New function.
8204 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
8205 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
8206 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
8207 Write out enum constraint_type and get_constraint_type.
8208 * lra-constraints.c (satisfies_memory_constraint_p): Take a
8209 constraint_num rather than a constraint string.
8210 (satisfies_address_constraint_p): Likewise.
8211 (reg_class_from_constraints): Avoid old constraint macros.
8212 (process_alt_operands, process_address_1): Likewise.
8213 (curr_insn_transform): Likewise.
8214 * ira-costs.c (record_reg_classes): Likewise.
8215 (record_operand_costs): Likewise.
8216 * ira-lives.c (single_reg_class): Likewise.
8217 (ira_implicitly_set_insn_hard_regs): Likewise.
8218 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8219 * postreload.c (reload_cse_simplify_operands): Likewise.
8220 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
8221 (constrain_operands, peep2_find_free_register): Likewise.
8222 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
8223 (find_reloads, alternative_allows_const_pool_ref): Likewise.
8224 * reload1.c (maybe_fix_stack_asms): Likewise.
8225 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
8226 * targhooks.c (default_secondary_reload): Likewise.
8227 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
8228 to EXTRA_CONSTRAINT_STR.
8229 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
8230
8231 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8232
8233 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
8234 (write_constraint_satisfied_p_array): ...this new function.
8235 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
8236 an array.
8237 (write_insn_preds_c): Update accordingly.
8238
8239 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8240
8241 * genpreds.c (write_lookup_constraint): Rename to...
8242 (write_lookup_constraint_1): ...this.
8243 (write_lookup_constraint_array): New function.
8244 (write_tm_preds_h): Define lookup_constraint as an inline function
8245 that uses write_lookup_constraint_array where possible.
8246 (write_insn_preds_c): Update for the changes above.
8247
8248 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8249
8250 * doc/md.texi (regclass_for_constraint): Rename to...
8251 (reg_class_for_constraint): ...this.
8252 * genpreds.c (num_constraints, enum_order, register_start)
8253 (register_end, satisfied_start, memory_start, memory_end)
8254 (address_start, address_end): New variables.
8255 (add_constraint): Count the number of constraints.
8256 (choose_enum_order): New function.
8257 (write_enum_constraint_num): Iterate over enum_order.
8258 (write_regclass_for_constraint): Rename to...
8259 (write_reg_class_for_constraint_1): ...this and update output
8260 accordingly.
8261 (write_constraint_satisfied_p): Rename to...
8262 (write_constraint_satisfied_p_1): ...this and update output
8263 accordingly. Do nothing if all extra constraints are register
8264 constraints.
8265 (write_insn_extra_memory_constraint): Delete.
8266 (write_insn_extra_address_constraint): Delete.
8267 (write_range_function): New function.
8268 (write_tm_preds_h): Define constraint_satisfied_p and
8269 reg_class_for_constraint as inline functions that do a range check
8270 before calling the out-of-line function. Use write_range_function
8271 to implement insn_extra_{register,memory,address}_constraint,
8272 the first of which is new.
8273 (write_insn_preds_c): Update after above changes to write_* functions.
8274 (main): Call choose_enum_order.
8275
8276 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
8277
8278 PR tree-optimization/61306
8279 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
8280 expression instead of its size.
8281 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
8282 false to prevent optimization when the result is unpredictable due to
8283 arithmetic right shift of signed type with highest byte is set.
8284 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
8285 (init_symbolic_number): Likewise.
8286 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
8287 when the result is unpredictable due to sign extension.
8288
8289 2014-06-11 Terry Guo <terry.guo@arm.com>
8290
8291 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
8292 (*thumb1_addsi3): Ditto.
8293 (*thumb_subdi3): Ditto.
8294 (thumb1_subsi3_insn): Ditto.
8295 (*thumb_mulsi3): Ditto.
8296 (*thumb_mulsi3_v6): Ditto.
8297 (*thumb1_andsi3_insn): Ditto.
8298 (thumb1_bicsi3): Ditto.
8299 (*thumb1_iorsi3_insn): Ditto.
8300 (*thumb1_xorsi3_insn): Ditto.
8301 (*thumb1_ashlsi3): Ditto.
8302 (*thumb1_ashrsi3): Ditto.
8303 (*thumb1_lshrsi3): Ditto.
8304 (*thumb1_rotrsi3): Ditto.
8305 (*thumb1_negdi2): Ditto.
8306 (*thumb1_negsi2): Ditto.
8307 (*thumb1_abssi2): Ditto.
8308 (*thumb1_neg_abssi2): Ditto.
8309 (*thumb1_one_cmplsi2): Ditto.
8310 (*thumb1_zero_extendhisi2): Ditto.
8311 (*thumb1_zero_extendqisi2): Ditto.
8312 (*thumb1_zero_extendqisi2_v6): Ditto.
8313 (thumb1_extendhisi2): Ditto.
8314 (thumb1_extendqisi2): Ditto.
8315 (*thumb1_movdi_insn): Ditto.
8316 (*thumb1_movsi_insn): Ditto.
8317 (*thumb1_movhi_insn): Ditto.
8318 (thumb_movhi_clobber): Ditto.
8319 (*thumb1_movqi_insn): Ditto.
8320 (*thumb1_movhf): Ditto.
8321 (*thumb1_movsf_insn): Ditto.
8322 (*thumb_movdf_insn): Ditto.
8323 (movmem12b): Ditto.
8324 (movmem8b): Ditto.
8325 (cbranchqi4): Ditto.
8326 (cbranchsi4_insn): Ditto.
8327 (cbranchsi4_scratch): Ditto.
8328 (*negated_cbranchsi4): Ditto.
8329 (*tbit_cbranch): Ditto.
8330 (*tlobits_cbranch): Ditto.
8331 (*tstsi3_cbranch): Ditto.
8332 (*cbranchne_decr1): Ditto.
8333 (*addsi3_cbranch): Ditto.
8334 (*addsi3_cbranch_scratch): Ditto.
8335 (*thumb_cmpdi_zero): Ditto.
8336 (cstoresi_eq0_thumb1): Ditto.
8337 (cstoresi_ne0_thumb1): Ditto.
8338 (*cstoresi_eq0_thumb1_insn): Ditto.
8339 (*cstoresi_ne0_thumb1_insn): Ditto.
8340 (cstoresi_nltu_thumb1): Ditto.
8341 (cstoresi_ltu_thumb1): Ditto.
8342 (thumb1_addsi3_addgeu): Ditto.
8343 (*thumb_jump): Ditto.
8344 (*call_reg_thumb1_v5): Ditto.
8345 (*call_reg_thumb1): Ditto.
8346 (*call_value_reg_thumb1_v5): Ditto.
8347 (*call_value_reg_thumb1): Ditto.
8348 (*call_insn): Ditto.
8349 (*call_value_insn): Ditto.
8350 (thumb1_casesi_internal_pic): Ditto.
8351 (thumb1_casesi_dispatch): Ditto.
8352 (*thumb1_indirect_jump): Ditto.
8353 (prologue_thumb1_interwork): Ditto.
8354 (*epilogue_insns): Ditto.
8355 (consttable_1): Ditto.
8356 (consttable_2): Ditto.
8357 (tablejump): Ditto.
8358 (*thumb1_tablejump): Ditto.
8359 (thumb_eh_return): Ditto.
8360 (define_peephole2): Two of them are thumb1 only and got moved into
8361 new file thumb1.md.
8362 (define_split): Six of them are thumb1 only and got moved into new
8363 file thumb1.md.
8364 * config/arm/thumb1.md: New file comprised of above thumb1 only
8365 patterns.
8366
8367 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8368
8369 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
8370 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
8371 dependencies.
8372 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
8373 (aarch64_crc_builtin_datum): New struct.
8374 (aarch64_crc_builtin_data): New.
8375 (aarch64_init_crc32_builtins): New function.
8376 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
8377 (aarch64_crc32_expand_builtin): New.
8378 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
8379 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8380 __ARM_FEATURE_CRC32 when appropriate.
8381 (TARGET_CRC32): Define.
8382 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
8383 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
8384 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
8385 (aarch64_<crc_variant>): New pattern.
8386 * config/aarch64/arm_acle.h: New file.
8387 * config/aarch64/iterators.md (CRC): New int iterator.
8388 (crc_variant, crc_mode): New int attributes.
8389 * doc/aarch64-acle-intrinsics.texi: New file.
8390 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
8391 Include aarch64-acle-intrinsics.texi.
8392
8393 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
8394
8395 * tree-vect-data-refs.c (vect_grouped_store_supported): New
8396 check for stores group of length 3.
8397 (vect_permute_store_chain): New permutations for stores group of
8398 length 3.
8399 * tree-vect-stmts.c (vect_model_store_cost): Change cost
8400 of vec_perm_shuffle for the new permutations.
8401
8402 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
8403
8404 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
8405 table rewriting temporarily on targets not supporting ONE_ONLY.
8406
8407 2014-06-11 Richard Biener <rguenther@suse.de>
8408
8409 PR middle-end/61437
8410 Revert
8411 2014-06-04 Richard Biener <rguenther@suse.de>
8412
8413 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8414 TREE_PUBLIC and DECL_EXTERNAL decls.
8415
8416 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
8417
8418 * varasm.c (set_implicit_section): New function.
8419 (resolve_unique_section): Use it to set implicit section
8420 for aliases, too.
8421 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
8422 (default_function_section): Likewise.
8423 (decl_binds_to_current_def_p): Constify argument.
8424 * varasm.h (decl_binds_to_current_def_p): Update prototype.
8425 * asan.c (asan_protect_global): Use
8426 symtab_get_node (decl)->implicit_section.
8427 * symtab.c (dump_symtab_base): Dump implicit sections.
8428 (verify_symtab_base): Verify sanity of sectoins and comdats.
8429 (symtab_resolve_alias): Alias share the section of its target.
8430 (set_section_1): New function.
8431 (symtab_node::set_section): Move here, recurse to aliases.
8432 (verify_symtab): Check for duplicated symtab lists.
8433 * tree-core.h (implicit_section_name_p): Remove.
8434 * tree-vect-data-refs.c: Include varasm.h.
8435 (vect_can_force_dr_alignment_p): Fix conditional on when
8436 decl bints to current definition; use
8437 symtab_get_node (decl)->implicit_section.
8438 * cgraph.c (cgraph_make_node_local_1): Fix section set.
8439 * cgraph.h (struct symtab_node): Add implicit_section.
8440 (set_section): Rename to ...
8441 (set_section_for_node): ... this one.
8442 (set_section): Declare.
8443 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
8444 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
8445 input_overwrite_node, input_varpool_node): Stream implicit_section.
8446 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
8447 removal; it will fail in LTO.
8448
8449 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8450
8451 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
8452 Change second alternative type to f_mcr.
8453 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
8454 and 12th alternatives' types to f_mcr and f_mrc.
8455 (*movdi_aarch64): Same for 12th and 13th alternatives.
8456 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
8457 (aarch64_movtilow_tilow): Change type to fmov.
8458
8459 2014-06-10 Jiong Wang <jiong.wang@arm.com>
8460
8461 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
8462 (aarch64_save_or_restore_callee_save_registers): Fix layout.
8463
8464 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8465
8466 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
8467 New expander.
8468 (aarch64_sqrdmulh_lane<mode>): Likewise.
8469 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
8470 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
8471 (aarch64_sqdmulh_laneq<mode>): New expander.
8472 (aarch64_sqrdmulh_laneq<mode>): Likewise.
8473 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
8474 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
8475 (aarch64_sqdmulh_lane<mode>): New expander.
8476 (aarch64_sqrdmulh_lane<mode>): Likewise.
8477 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
8478 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
8479 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
8480 (aarch64_sqdmlal_laneq<mode>): Likewise.
8481 (aarch64_sqdmlsl_lane<mode>): Likewise.
8482 (aarch64_sqdmlsl_laneq<mode>): Likewise.
8483 (aarch64_sqdmlal2_lane<mode>): Likewise.
8484 (aarch64_sqdmlal2_laneq<mode>): Likewise.
8485 (aarch64_sqdmlsl2_lane<mode>): Likewise.
8486 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
8487 (aarch64_sqdmull_lane<mode>): Likewise.
8488 (aarch64_sqdmull_laneq<mode>): Likewise.
8489 (aarch64_sqdmull2_lane<mode>): Likewise.
8490 (aarch64_sqdmull2_laneq<mode>): Likewise.
8491
8492 2014-06-10 Richard Biener <rguenther@suse.de>
8493
8494 PR tree-optimization/61438
8495 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
8496 (eliminate_dom_walker::before_dom_children): Only try to inhibit
8497 insertion of IVs if running PRE.
8498 (eliminate): Adjust.
8499 (pass_pre::execute): Likewise.
8500 (pass_fre::execute): Likewise.
8501
8502 2014-06-10 Richard Biener <rguenther@suse.de>
8503
8504 PR middle-end/61456
8505 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8506 Do not use the main variant for the type comparison.
8507 (ncr_compar): Likewise.
8508 (nonoverlapping_component_refs_p): Likewise.
8509
8510 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
8511
8512 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
8513 REG_CFA_RESTORE mode.
8514
8515 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
8516
8517 * config/i386/i386.c (expand_vec_perm_pblendv): New.
8518 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
8519 expand_vec_perm_pblendv.
8520
8521 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8522
8523 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
8524 available.
8525 Simplify description of __crc32d and __crc32cd intrinsics.
8526 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
8527 availability.
8528
8529 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
8530
8531 PR lto/61334
8532 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
8533 * config.in: Regenerate.
8534 * configure: Likewise.
8535
8536 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
8537
8538 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
8539 and public vars.
8540 (intersect_static_var_sets): Remove.
8541 (propagate): Do not prune local statics.
8542
8543 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8544
8545 PR fortran/60928
8546 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
8547 Set lastprivate_firstprivate even if omp_private_outer_ref
8548 langhook returns true.
8549 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
8550 langhook, call unshare_expr on new_var and call
8551 build_outer_var_ref to get the last argument.
8552
8553 2014-06-10 Marek Polacek <polacek@redhat.com>
8554
8555 PR c/60988
8556 * doc/extend.texi: Add cindex for transparent_union.
8557
8558 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
8559
8560 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
8561 init_symbolic_number ().
8562
8563 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
8564
8565 PR middle-end/61141
8566 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
8567 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
8568 (verify_rtl_sharing): Likewise.
8569
8570 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
8571
8572 PR c++/54442
8573 * tree.c (build_qualified_type): Use a canonical type for
8574 TYPE_CANONICAL.
8575
8576 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8577
8578 * config/arm/arm-modes.def: Remove XFmode.
8579
8580 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
8581
8582 PR target/61062
8583 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
8584 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
8585 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
8586 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
8587 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
8588 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
8589 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
8590 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
8591 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
8592
8593 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
8594
8595 * tree-core.h (tree_decl_with_vis): Remove section_name.
8596
8597 2014-06-09 Kito Cheng <kito@0xlab.org>
8598
8599 * ira.c (ira): Don't call init_caller_save if LRA enabled
8600 since LRA use its own infrastructure to handle that.
8601
8602 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8603
8604 * symtab.c (dump_symtab_base): Update dumping.
8605 (symtab_make_decl_local): Clear only DECL_COMDAT.
8606 * tree-vect-data-refs.c (Check that variable is static before
8607 tampering with sections.
8608 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
8609 (cgraph_create_virtual_clone): Likewise.
8610 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
8611 (decl_section_name, set_decl_section_name): New accessors.
8612 (find_decls_types_r): Do not walk section name
8613 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
8614 (decl_comdat_group, decl_comdat_group_id): Constify.
8615 (decl_section_name, set_decl_section_name): Update.
8616 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
8617 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
8618 (cgraph_make_node_local_1): Clear section and comdat group.
8619 * cgraph.h (set_comdat_group): Sanity check.
8620 (get_section, set_section): New.
8621 * ipa-comdats.c (ipa_comdats): Use get_section.
8622 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
8623 * lto-streamer-out.c: Do not follow section names.
8624 * c-family/c-common.c (handle_section_attribute): Update.
8625 * lto-cgraph.c (lto_output_node): Output section.
8626 (lto_output_varpool_node): Likewise.
8627 (read_comdat_group): Rename to ...
8628 (read_identifier): ... this one.
8629 (read_string_cst): New function.
8630 (input_node, input_varpool_node): Input section names.
8631 * tree-emutls.c (get_emutls_init_templ_addr): Update.
8632 (new_emutls_decl): Update.
8633 (secname_for_decl): Check section names only of static vars.
8634 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
8635 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
8636 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
8637 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
8638 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
8639 * config/mcore/mcore.c (mcore_unique_section): Likewise.
8640 * config/mips/mips.c (mips16_build_function_stub): Likewise.
8641 * config/v850/v850.c (v850_insert_attributes): Likewise.
8642 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
8643 Likewise.
8644 (h8300_handle_tiny_data_attribute): Likewise.
8645 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
8646 (bfin_handle_l2_attribute): Likewise.
8647
8648 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8649
8650 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
8651 remove static initializer.
8652
8653 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8654
8655 * varasm.c (use_blocks_for_decl_p): Check symbol table
8656 instead of alias attribute.
8657 (place_block_symbol): Recurse on aliases.
8658
8659 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8660
8661 * ipa-visibility.c: Include varasm.h
8662 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
8663
8664 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8665
8666 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
8667 outputting aliases.
8668
8669 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
8670
8671 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
8672 from test_insn into GGC space escape via SET_SRC.
8673
8674 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
8675
8676 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
8677 call statement, if any.
8678 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
8679 statements, if any. Tidy up.
8680
8681 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8682
8683 PR target/61431
8684 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
8685 iterators, VSX_D that handles 64-bit types, and VSX_LE that
8686 handles swapping the two 64-bit double words on little endian
8687 systems. Include V1TImode and optionally TImode in VSX_LE so that
8688 these types are properly swapped. Change all of the insns and
8689 splits that do the 64-bit swaps to use VSX_LE.
8690 (vsx_le_perm_load_<mode>): Likewise.
8691 (vsx_le_perm_store_<mode>): Likewise.
8692 (splitters for little endian memory operations): Likewise.
8693 (vsx_xxpermdi2_le_<mode>): Likewise.
8694 (vsx_lxvd2x2_le_<mode>): Likewise.
8695 (vsx_stxvd2x2_le_<mode>): Likewise.
8696
8697 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
8698
8699 PR target/61423
8700 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
8701 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
8702 and corresponding splitters. Zero extend general register
8703 or memory input operand to XMM temporary. Enable for
8704 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
8705 (floatunssi<mode>2): Update expander predicate.
8706
8707 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
8708
8709 PR rtl-optimization/61325
8710 * lra-constraints.c (process_address_1): Check scale equal to one
8711 to prevent transformation: base + scale * index => base + new_reg.
8712
8713 2014-06-06 Richard Biener <rguenther@suse.de>
8714
8715 PR tree-optimization/59299
8716 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
8717 a def operand.
8718 (nearest_common_dominator_of_uses): Likewise.
8719 (statement_sink_location): Adjust. Support sinking loads.
8720
8721 2014-06-06 Martin Jambor <mjambor@suse.cz>
8722
8723 * ipa-prop.c (get_place_in_agg_contents_list): New function.
8724 (build_agg_jump_func_from_list): Likewise.
8725 (determine_known_aggregate_parts): Renamed to
8726 determine_locally_known_aggregate_parts. Moved some functionality
8727 to the two functions above, removed bound checks.
8728
8729 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
8730
8731 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
8732 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
8733 (aarch64_progress_pointer): Likewise.
8734 (aarch64_copy_one_part_and_move_pointers): Likewise.
8735 (aarch64_expand_movmen): Likewise.
8736 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
8737 * config/aarch64/aarch64.md (movmem<mode>): New.
8738
8739 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
8740
8741 * targhooks.c (default_add_stmt_cost): Call target specific
8742 hook instead of default one.
8743
8744 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8745
8746 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
8747 endianness instead of host endianness.
8748 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
8749 comments.
8750
8751 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8752
8753 PR debug/53927
8754 * function.c (instantiate_decls): Process the saved static chain.
8755 (expand_function_start): If not optimizing, save the static chain
8756 onto the stack.
8757 * tree-nested.c (convert_all_function_calls): Always create the static
8758 chain for nested functions if not optimizing.
8759
8760 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8761
8762 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
8763
8764 2014-06-06 Richard Biener <rguenther@suse.de>
8765
8766 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
8767 (construct_init_block): Likewise.
8768 (construct_exit_block): Likewise.
8769 (pass_expand::execute): Likewise.
8770 * graphite.c (graphite_transforms): Replace check for current_loops
8771 with a check for > 1 loops.
8772 (pass_graphite_transforms::execute): Adjust.
8773 * ipa-split.c (split_function): Remove check for current_loops.
8774 * omp-low.c (expand_parallel_call): Likewise.
8775 (expand_omp_for_init_counts): Likewise.
8776 (extract_omp_for_update_vars): Likewise.
8777 (expand_omp_for_generic): Likewise.
8778 (expand_omp_sections): Likewise.
8779 (expand_omp_target): Likewise.
8780 * tracer.c (tail_duplicate): Likewise.
8781 (pass_tracer::execute): Likewise.
8782 * trans-mem.c (expand_transaction): Likewise.
8783 * tree-complex.c (expand_complex_div_wide): Likewise.
8784 * tree-eh.c (lower_resx): Likewise.
8785 (cleanup_empty_eh_merge_phis): Likewise.
8786 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
8787 current_loops with a check for > 1 loops.
8788 (pass_predcom::execute): Adjust.
8789 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
8790 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
8791 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
8792 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
8793 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8794 * tree-switch-conversion.c (process_switch): Likewise.
8795 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
8796 * tree-vrp.c (vrp_visit_phi_node): Likewise.
8797 (execute_vrp): Likewise.
8798 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8799
8800 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8801
8802 * rtl.h (insn_location): Declare.
8803 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
8804 with UNKNOWN_LOCATION.
8805 * emit-rtl.c (insn_location): New function.
8806 * final.c (notice_source_line): Check that the instruction has a
8807 location before retrieving it and use insn_location.
8808 * modulo-sched.c (loop_single_full_bb_p): Likewise.
8809 * print-rtl.c (print_rtx): Likewise.
8810
8811 2014-06-06 Richard Biener <rguenther@suse.de>
8812
8813 * passes.def: Move 2nd VRP pass before phi-only-cprop.
8814
8815 2014-06-06 Christian Bruel <christian.bruel@st.com>
8816
8817 PR tree-optimization/43934
8818 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
8819 cost.
8820
8821 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8822
8823 * ira-lives.c (single_reg_class): Add missing break. Explicitly
8824 return NO_REGS for extra address and memory constraints. Handle
8825 operands that match (or are equivalent to something that matches)
8826 extra constant constraints. Ignore other non-register operands.
8827
8828 2014-06-06 Alan Modra <amodra@gmail.com>
8829
8830 PR target/61300
8831 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
8832 * doc/tm.texi: Regenerate.
8833 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
8834 Use throughout in place of REG_PARM_STACK_SPACE.
8835 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
8836 "incoming" param. Pass to rs6000_function_parms_need_stack.
8837 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
8838 prototype_p when incoming. Use function decl when incoming
8839 to handle K&R style functions.
8840 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
8841 (INCOMING_REG_PARM_STACK_SPACE): Define.
8842
8843 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8844
8845 PR target/52472
8846 * cfgexpand.c (expand_debug_expr): Use address space of nested
8847 TREE_TYPE for ADDR_EXPR and MEM_REF.
8848
8849 2014-06-05 Jeff Law <law@redhat.com>
8850
8851 PR tree-optimization/61289
8852 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
8853 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
8854 looking for those which match LHS. All callers changed.
8855 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
8856 parameters and code which manipulated them. All callers changed.
8857 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
8858 and DST_MAP parameters. Simplify invalidation code by just calling
8859 invalidate_equivalences. All callers changed.
8860 (thread_across_edge): Simplify now that we don't need to maintain
8861 the map of equivalences to invalidate.
8862
8863 2014-06-05 Kai Tietz <ktietz@redhat.com>
8864 Richard Henderson <rth@redhat.com>
8865
8866 PR target/46219
8867 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
8868 checking for !TARGET_X32.
8869 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
8870 (sibcall_intern): New define_insn, plus required peepholes.
8871 (sibcall_pop_intern): Likewise.
8872 (sibcall_value_intern): Likewise.
8873 (sibcall_value_pop_intern): Likewise.
8874
8875 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
8876
8877 * tree-inline.c (tree_function_versioning): Check DF info existence
8878 before accessing it.
8879
8880 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8881
8882 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
8883 frame_size.
8884 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
8885 aarch64_frame hard_fp_offset and frame_size.
8886 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
8887 frame_size; remove original_frame_size.
8888 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
8889 (aarch64_initial_elimination_offset): Remove frame_size and
8890 offset. Use aarch64_frame frame_size.
8891
8892 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8893 Jiong Wang <jiong.wang@arm.com>
8894 Renlin <renlin.li@arm.com>
8895
8896 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
8897 initialization of R30 offset. Update offset. Iterate core
8898 regisers upto X30. Remove X29, X30 specific code.
8899
8900 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8901 Jiong Wang <jiong.wang@arm.com>
8902
8903 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
8904 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
8905 (aarch64_register_saved_on_entry): Adjust test.
8906
8907 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8908
8909 * config/aarch64/aarch64.h (machine_function): Move
8910 saved_varargs_size from here...
8911 (aarch64_frame): ... to here.
8912
8913 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8914 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
8915 (aarch64_initial_elimination_offset)
8916 (aarch64_setup_incoming_varargs): Adjust location of
8917 saved_varargs_size.
8918
8919 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8920
8921 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
8922 layout comment.
8923
8924 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
8925 Prachi Godbole <Prachi.Godbole@imgtec.com>
8926
8927 * config/mips/mips-cpus.def: Add definition for p5600. Updated
8928 mips32r5 entry to use PROCESSOR_P5600.
8929 * config/mips/mips-tables.opt: Regenerate.
8930 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
8931 * config/mips/mips.c (mips_fmadd_bypass): New function.
8932 (mips_rtx_cost_data): Add costs for p5600.
8933 (mips_issue_rate): Add support for p5600.
8934 (mips_multipass_dfa_lookahead): Likewise.
8935 * config/mips/mips.h (TUNE_P5600): New define.
8936 (TUNE_MACC_CHAINS): Add TUNE_P5600.
8937 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
8938 * config/mips/mips.md: Include p5600.md.
8939 (processor): Add p5600.
8940 * config/mips/p5600.md: New file.
8941
8942 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
8943
8944 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
8945 * config/i386/predicates.md (palignr_operand): New.
8946 Indicates if permutation is suitable for palignr instruction.
8947
8948 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
8949
8950 PR tree-optimization/61319
8951 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8952 stmt belongs to loop.
8953
8954 2014-06-05 Richard Biener <rguenther@suse.de>
8955
8956 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
8957 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
8958 (lookup_tmp_var): Adjust.
8959 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
8960
8961 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8962
8963 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
8964
8965 2014-06-05 Marek Polacek <polacek@redhat.com>
8966
8967 PR c/49706
8968 * doc/invoke.texi: Document -Wlogical-not-parentheses.
8969
8970 2014-06-04 Tom de Vries <tom@codesourcery.com>
8971
8972 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
8973 CONST_INT.
8974
8975 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
8976
8977 PR tree-optimization/61385
8978 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
8979
8980 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
8981
8982 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
8983 changed to use fatal_error.
8984 (main): Ensure lto_wrapper_cleanup is run atexit.
8985
8986 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8987
8988 * lra-constraints.c (valid_address_p): Move earlier in file.
8989 (address_eliminator): New structure.
8990 (satisfies_memory_constraint_p): New function.
8991 (satisfies_address_constraint_p): Likewise.
8992 (process_alt_operands, process_address, curr_insn_transform): Use them.
8993
8994 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8995
8996 * lra-int.h (lra_static_insn_data): Make operand_alternative a
8997 const pointer.
8998 (target_lra_int, default_target_lra_int, this_target_lra_int)
8999 (op_alt_data): Delete.
9000 * lra.h (lra_init): Delete.
9001 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
9002 (init_insn_code_data_once): Remove op_alt_data handling.
9003 (finish_insn_code_data_once): Likewise.
9004 (init_op_alt_data): Delete.
9005 (get_static_insn_data): Initialize operand_alternative to null.
9006 (free_insn_recog_data): Cast operand_alternative before freeing it.
9007 (setup_operand_alternative): Take the operand_alternative as
9008 parameter and assume it isn't already cached in the static
9009 insn data.
9010 (lra_set_insn_recog_data): Update accordingly.
9011 (lra_init): Delete.
9012 * ira.c (ira_init): Don't call lra_init.
9013 * target-globals.h (this_target_lra_int): Declare.
9014 (target_globals): Remove lra_int.
9015 (restore_target_globals): Update accordingly.
9016 * target-globals.c: Don't include lra-int.h.
9017 (default_target_globals, save_target_globals): Remove lra_int.
9018
9019 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9020
9021 * recog.h (operand_alternative): Convert reg_class, reject,
9022 matched and matches into bitfields.
9023 (preprocess_constraints): New overload.
9024 (preprocess_insn_constraints): New function.
9025 (preprocess_constraints): Take the insn as parameter.
9026 (recog_op_alt): Change into a pointer.
9027 (target_recog): Add x_op_alt.
9028 * recog.c (asm_op_alt): New variable.
9029 (recog_op_alt): Change into a pointer.
9030 (preprocess_constraints): New overload, replacing the old function
9031 definition with one that doesn't use global state.
9032 (preprocess_insn_constraints): New function.
9033 (preprocess_constraints): Use them. Take the insn as parameter.
9034 Use asm_op_alt for asms.
9035 (recog_init): Free existing x_op_alt entries.
9036 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
9037 pointer const.
9038 (make_early_clobber_and_input_conflicts): Likewise.
9039 (process_bb_node_lives): Pass the insn to process_constraints.
9040 * reg-stack.c (check_asm_stack_operands): Likewise.
9041 (subst_asm_stack_regs): Likewise.
9042 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
9043 * regrename.c (build_def_use): Likewise.
9044 * sched-deps.c (sched_analyze_insn): Likewise.
9045 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
9046 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
9047 (note_invalid_constants): Likewise.
9048 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9049 (ix86_legitimate_combined_insn): Make operand_alternative pointer
9050 const.
9051
9052 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9053
9054 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
9055 * ira-lives.c (check_and_make_def_conflict): Check for disabled
9056 alternatives.
9057 (make_early_clobber_and_input_conflicts): Likewise.
9058 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9059
9060 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9061
9062 * recog.h (alternative_class): New function.
9063 (which_op_alt): Return a const recog_op_alt.
9064 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
9065 (subst_asm_stack_regs): Likewise.
9066 * config/arm/arm.c (note_invalid_constants): Likewise.
9067 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
9068 the operand_alternative; use alternative class instead.
9069 * sel-sched.c (get_reg_class): Likewise.
9070 * regrename.c (build_def_use): Likewise.
9071 (hide_operands, restore_operands, record_out_operands): Update type
9072 accordingly.
9073
9074 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9075
9076 * recog.h (recog_op_alt): Convert to a flat array.
9077 (which_op_alt): New function.
9078 * recog.c (recog_op_alt): Convert to a flat array.
9079 (preprocess_constraints): Update accordingly, grouping all
9080 operands of the same alternative together, rather than the
9081 other way around.
9082 * ira-lives.c (check_and_make_def_conflict): Likewise.
9083 (make_early_clobber_and_input_conflicts): Likewise.
9084 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9085 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
9086 (subst_asm_stack_regs): Likewise.
9087 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
9088 * regrename.c (hide_operands, record_out_operands): Likewise.
9089 (build_def_use): Likewise.
9090 * sel-sched.c (get_reg_class): Likewise.
9091 * config/arm/arm.c (note_invalid_constants): Likewise.
9092
9093 2014-06-04 Jason Merrill <jason@redhat.com>
9094
9095 PR c++/51253
9096 PR c++/61382
9097 * gimplify.c (gimplify_arg): Non-static.
9098 * gimplify.h: Declare it.
9099
9100 2014-06-04 Richard Biener <rguenther@suse.de>
9101
9102 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
9103 TREE_PUBLIC and DECL_EXTERNAL decls.
9104
9105 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
9106
9107 * regcprop.c (copyprop_hardreg_forward_1): Account for
9108 HARD_REGNO_CALL_PART_CLOBBERED.
9109
9110 2014-06-04 Richard Biener <rguenther@suse.de>
9111
9112 * configure.ac: Check whether the underlying type of int64_t
9113 is long or long long.
9114 * configure: Regenerate.
9115 * config.in: Likewise.
9116 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
9117 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9118
9119 2014-06-04 Richard Biener <rguenther@suse.de>
9120
9121 PR tree-optimization/60098
9122 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
9123 we hit a kill.
9124 (dse_optimize_stmt): Simplify, now that we found a kill
9125 earlier.
9126
9127 2014-06-04 Richard Biener <rguenther@suse.de>
9128
9129 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
9130 of accesses with non-invariant address.
9131
9132 2014-06-04 Martin Liska <mliska@suse.cz>
9133
9134 * cgraph.h (cgraph_make_wrapper): New function introduced.
9135 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
9136 * ipa-inline.h (inline_analyze_function): The function is global.
9137 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
9138
9139 2014-06-04 Martin Liska <mliska@suse.cz>
9140
9141 * tree.h (private_lookup_attribute_starting): New function.
9142 (lookup_attribute_starting): Likewise.
9143 * tree.c (private_lookup_attribute_starting): Likewise.
9144
9145 2014-06-04 Martin Liska <mliska@suse.cz>
9146
9147 * cgraph.h (expand_thunk): New argument added.
9148 (address_taken_from_non_vtable_p): New global function.
9149 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
9150 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
9151 * cgraphunit.c (analyze_function): Likewise.
9152 (assemble_thunks_and_aliases): Argument added to call.
9153 (expand_thunk): New argument forces to produce GIMPLE thunk.
9154
9155 2014-06-04 Martin Liska <mliska@suse.cz>
9156
9157 * coverage.h (coverage_compute_cfg_checksum): Argument added.
9158 * coverage.c (coverage_compute_cfg_checksum): Likewise.
9159 * profile.c (branch_prob): Likewise.
9160
9161 2014-06-04 Martin Jambor <mjambor@suse.cz>
9162
9163 PR ipa/61340
9164 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
9165 handler for switch on an ipa_ref_use enum.
9166 * ipa-reference.c (analyze_function): Likewise.
9167
9168 2014-06-04 Kai Tietz <ktietz@redhat.com>
9169
9170 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
9171 from old call-instruction.
9172
9173 2014-06-04 Bin Cheng <bin.cheng@arm.com>
9174
9175 * config/aarch64/aarch64.c (aarch64_classify_address)
9176 (aarch64_legitimize_reload_address): Support full addressing modes
9177 for vector modes.
9178 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
9179 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
9180
9181 2014-06-03 Andrew Pinski <apinski@cavium.com>
9182
9183 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
9184 for OP0.
9185
9186 2014-06-03 Andrew Pinski <apinski@cavium.com>
9187
9188 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
9189 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
9190
9191 2014-06-03 Kai Tietz <ktietz@redhat.com>
9192
9193 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
9194 for 64-bit ms-abi.
9195
9196 2014-06-03 Dehao Chen <dehao@google.com>
9197
9198 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
9199 the same loop.
9200
9201 2014-06-03 Marek Polacek <polacek@redhat.com>
9202
9203 PR c/60439
9204 * doc/invoke.texi: Document -Wswitch-bool.
9205 * function.c (stack_protect_epilogue): Cast controlling expression of
9206 the switch to int.
9207 * gengtype.c (walk_type): Generate switch expression with its
9208 controlling expression cast to int.
9209
9210 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
9211
9212 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
9213 and attiny841.
9214 * config/avr/avr-tables.opt: Regenerate.
9215 * config/avr/t-multilib: Regenerate.
9216 * doc/avr-mmcu.texi: Regenerate.
9217
9218 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
9219 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9220
9221 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
9222 (ata6617c, ata664251): Add new avr35 devices.
9223 (ata6612c): Add new avr4 device.
9224 (ata6613c, ata6614q): Add new avr5 devices.
9225 * config/avr/avr-tables.opt: Regenerate.
9226 * config/avr/t-multilib: Regenerate.
9227 * doc/avr-mmcu.texi: Regenerate.
9228
9229 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9230
9231 * gcc/config/aarch64/aarch64-builtins.c
9232 (aarch64_types_binop_ssu_qualifiers): New static data.
9233 (TYPES_BINOP_SSU): Define.
9234 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
9235 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
9236 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
9237 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
9238 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
9239 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
9240 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
9241 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
9242 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
9243 suffix to builtin function name, remove cast.
9244 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
9245 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
9246 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
9247
9248 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9249
9250 * gcc/config/aarch64/aarch64-builtins.c
9251 (aarch64_types_binop_uus_qualifiers,
9252 aarch64_types_shift_to_unsigned_qualifiers,
9253 aarch64_types_unsigned_shiftacc_qualifiers): Define.
9254 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
9255 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
9256 sqshlu_n, uqshl_n): Update qualifiers.
9257 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
9258 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
9259 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
9260 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
9261 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
9262 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
9263 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
9264 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
9265 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
9266 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
9267 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
9268 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
9269 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
9270 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
9271 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
9272 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
9273 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
9274 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
9275 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
9276 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
9277 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
9278 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
9279 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
9280 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
9281 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
9282 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
9283 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
9284
9285 2014-06-03 Teresa Johnson <tejohnson@google.com>
9286
9287 * tree-sra.c (modify_function): Record caller nodes after rebuild.
9288
9289 2014-06-02 Jason Merrill <jason@redhat.com>
9290
9291 PR c++/61020
9292 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
9293
9294 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9295
9296 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
9297 location == 0.
9298
9299 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9300
9301 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
9302 New pattern.
9303 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
9304 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
9305 * config/aarch64/iterators.md (REVERSE): New iterator.
9306 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
9307 (rev_op): New int_attribute.
9308 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
9309 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
9310 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
9311 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
9312 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
9313 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
9314 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
9315 Replace temporary __asm__ with __builtin_shuffle.
9316
9317 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
9318
9319 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
9320 mips64r5.
9321 * config/mips/mips-tables.opt: Regenerate.
9322 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
9323 to use mips_isa_rev rather than ISA_MIPS32R2.
9324 * config/mips/mips.h (ISA_MIPS32R3): New define.
9325 (ISA_MIPS32R5): New define.
9326 (ISA_MIPS64R3): New define.
9327 (ISA_MIPS64R5): New define.
9328 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
9329 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
9330 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
9331 and mips64r5.
9332 (MIPS_ISA_SYNCI_SPEC): Likewise.
9333 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
9334 (LINK_SPEC): Added mips32r3 and mips32r5.
9335 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
9336 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
9337 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
9338 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
9339 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
9340 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
9341 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
9342
9343 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
9344
9345 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
9346 options.
9347 * config/mips/mips.opt (mxpa): New option.
9348 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
9349 assembler.
9350
9351 2014-06-03 Martin Jambor <mjambor@suse.cz>
9352
9353 PR ipa/61160
9354 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
9355 thunks.
9356
9357 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
9358
9359 PR tree-optimization/61328
9360 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
9361 initialization from find_bswap_or_nop_1.
9362 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
9363 in source_expr2 before using the size value the function sets. Also
9364 make use of init_symbolic_number () in both the old place and
9365 find_bswap_or_nop_load () to avoid reading uninitialized memory when
9366 doing recursion in the GIMPLE_BINARY_RHS case.
9367
9368 2014-06-03 Richard Biener <rguenther@suse.de>
9369
9370 PR tree-optimization/61383
9371 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
9372 stmts can't trap.
9373
9374 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
9375
9376 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
9377 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
9378 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
9379 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
9380 in this file.
9381 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
9382 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
9383 * system.h: ...here and make it unconditional.
9384 * target.def (conditional_register_usage): Mention
9385 define_register_constraint instead of old-style constraint macros.
9386 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
9387 * doc/tm.texi: Regenerate.
9388 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
9389 protected by !USE_MD_CONSTRAINTS.
9390 * config/frv/frv.md: Remove quote from old version of documentation.
9391 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
9392 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
9393 CONST_DOUBLE_OK_FOR_LETTER.
9394 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
9395
9396 2014-06-02 Andrew Pinski <apinski@cavium.com>
9397
9398 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
9399 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
9400 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
9401 file whose name depends on -mabi= and -mbig-endian.
9402 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
9403 Handle LP64 better and handle ilp32 too.
9404 (MULTILIB_OPTIONS): Delete.
9405 (MULTILIB_DIRNAMES): Delete.
9406
9407 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
9408
9409 * expr.h: Remove prototypes of functions defined in builtins.c.
9410 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
9411 Remove prototypes of functions defined in builtins.c.
9412 * builtins.h: Update prototype list to include all exported functions.
9413 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
9414 no_c99_libc_has_function): Move to targhooks.c
9415 (build_string_literal, build_call_expr_loc_array,
9416 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
9417 to tree.c.
9418 (expand_builtin_object_size, fold_builtin_object_size): Make static.
9419 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
9420 no_c99_libc_has_function): Relocate from builtins.c.
9421 * tree.c: Include builtins.h.
9422 (build_call_expr_loc_array, build_call_expr_loc_vec,
9423 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
9424 from builtins.c.
9425 * fold-const.h (fold_fma): Move prototype to builtins.h.
9426 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
9427 * asan.c: Include builtins.h.
9428 * cfgexpand.c: Likewise.
9429 * convert.c: Likewise.
9430 * emit-rtl.c: Likewise.
9431 * except.c: Likewise.
9432 * expr.c: Likewise.
9433 * fold-const.c: Likewise.
9434 * gimple-fold.c: Likewise.
9435 * gimple-ssa-strength-reduction.c: Likewise.
9436 * gimplify.c: Likewise.
9437 * ipa-inline.c: Likewise.
9438 * ipa-prop.c: Likewise.
9439 * lto-streamer-out.c: Likewise.
9440 * stmt.c: Likewise.
9441 * tree-inline.c: Likewise.
9442 * tree-object-size.c: Likewise.
9443 * tree-sra.c: Likewise.
9444 * tree-ssa-ccp.c: Likewise.
9445 * tree-ssa-forwprop.c: Likewise.
9446 * tree-ssa-loop-ivcanon.c: Likewise.
9447 * tree-ssa-loop-ivopts.c: Likewise.
9448 * tree-ssa-math-opts.c: Likewise.
9449 * tree-ssa-reassoc.c: Likewise.
9450 * tree-ssa-threadedge.c: Likewise.
9451 * tree-streamer-in.c: Likewise.
9452 * tree-vect-data-refs.c: Likewise.
9453 * tree-vect-patterns.c: Likewise.
9454 * tree-vect-stmts.c: Likewise.
9455 * config/aarch64/aarch64.c: Likewise.
9456 * config/alpha/alpha.c: Likewise.
9457 * config/arc/arc.c: Likewise.
9458 * config/arm/arm.c: Likewise.
9459 * config/avr/avr.c: Likewise.
9460 * config/bfin/bfin.c: Likewise.
9461 * config/c6x/c6x.c: Likewise.
9462 * config/cr16/cr16.c: Likewise.
9463 * config/cris/cris.c: Likewise.
9464 * config/epiphany/epiphany.c: Likewise.
9465 * config/fr30/fr30.c: Likewise.
9466 * config/frv/frv.c: Likewise.
9467 * config/h8300/h8300.c: Likewise.
9468 * config/i386/i386.c: Likewise.
9469 * config/i386/winnt.c: Likewise.
9470 * config/ia64/ia64.c: Likewise.
9471 * config/iq2000/iq2000.c: Likewise.
9472 * config/lm32/lm32.c: Likewise.
9473 * config/m32c/m32c.c: Likewise.
9474 * config/m32r/m32r.c: Likewise.
9475 * config/m68k/m68k.c: Likewise.
9476 * config/mcore/mcore.c: Likewise.
9477 * config/mep/mep.c: Likewise.
9478 * config/microblaze/microblaze.c: Likewise.
9479 * config/mips/mips.c: Likewise.
9480 * config/mmix/mmix.c: Likewise.
9481 * config/mn10300/mn10300.c: Likewise.
9482 * config/moxie/moxie.c: Likewise.
9483 * config/msp430/msp430.c: Likewise.
9484 * config/nds32/nds32.c: Likewise.
9485 * config/pa/pa.c: Likewise.
9486 * config/pdp11/pdp11.c: Likewise.
9487 * config/picochip/picochip.c: Likewise.
9488 * config/rl78/rl78.c: Likewise.
9489 * config/rs6000/rs6000.c: Likewise.
9490 * config/rx/rx.c: Likewise.
9491 * config/s390/s390.c: Likewise.
9492 * config/score/score.c: Likewise.
9493 * config/sh/sh.c: Likewise.
9494 * config/sparc/sparc.c: Likewise.
9495 * config/spu/spu.c: Likewise.
9496 * config/stormy16/stormy16.c: Likewise.
9497 * config/tilegx/tilegx.c: Likewise.
9498 * config/tilepro/tilepro.c: Likewise.
9499 * config/v850/v850.c: Likewise.
9500 * config/vax/vax.c: Likewise.
9501 * config/xtensa/xtensa.c: Likewise.
9502
9503 2014-06-02 Jeff Law <law@redhat.com>
9504
9505 PR rtl-optimization/61094
9506 * ree.c (combine_reaching_defs): Do not reextend an insn if it
9507 was marked as do_no_reextend. If a copy is needed to eliminate
9508 an extension, then mark it as do_not_reextend.
9509
9510 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
9511
9512 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
9513
9514 2014-06-02 Richard Henderson <rth@redhat.com>
9515
9516 PR target/61336
9517 * config/alpha/alpha.c (print_operand_address): Allow symbolic
9518 addresses inside asms. Use output_operand_lossage instead of
9519 gcc_unreachable.
9520
9521 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
9522
9523 PR target/61239
9524 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
9525 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
9526
9527 2014-06-02 Tom de Vries <tom@codesourcery.com>
9528
9529 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
9530 case that x has VOIDmode.
9531
9532 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
9533
9534 * varasm.c (copy_constant): Delete function.
9535 (build_constant_desc): Don't call it.
9536
9537 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9538
9539 PR target/61154
9540 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
9541 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
9542 with immediate_operand.
9543
9544 2014-06-02 Andreas Schwab <schwab@suse.de>
9545
9546 * config/ia64/ia64.c
9547 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
9548 pending_data_specs first.
9549
9550 2014-06-02 Richard Biener <rguenther@suse.de>
9551
9552 PR tree-optimization/61378
9553 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
9554 valueized_anything.
9555
9556 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
9557
9558 * config/i386/constraints.md (Bw): Rename from 'w'.
9559 (Bz): Rename from 'z'.
9560 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
9561
9562 2014-06-01 Kai Tietz <ktietz@redhat.com>
9563
9564 PR target/61377
9565 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
9566 * config/i386/i386.md (sibcall_insn_operand): Use Bs
9567 instead of m constraint.
9568
9569 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
9570
9571 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
9572 a separate alternative where the scratch operand 2 is marked as
9573 early clobber.
9574
9575 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
9576
9577 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9578 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
9579 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
9580 and __builtins_arm_get_fpscr.
9581 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
9582 __builtins_arm_get_fpscr.
9583 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
9584 __builtins_arm_ldfpscr.
9585 (arm_atomic_assign_expand_fenv): New function.
9586 * config/arm/vfp.md (set_fpscr): New pattern.
9587 (get_fpscr) : Likewise.
9588 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
9589 VUNSPEC_SET_FPSCR.
9590 * doc/extend.texi (AARCH64 Built-in Functions) : Document
9591 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
9592
9593 2014-05-30 Jakub Jelinek <jakub@redhat.com>
9594
9595 * asan.c (report_error_func): Add SLOW_P argument, use
9596 BUILT_IN_ASAN_*_N if set.
9597 (build_check_stmt): Likewise.
9598 (instrument_derefs): If T has insufficient alignment,
9599 force same handling as for odd sizes.
9600
9601 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
9602 BUILT_IN_ASAN_REPORT_STORE_N): New.
9603 * asan.c (struct asan_mem_ref): Change access_size type to
9604 HOST_WIDE_INT.
9605 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
9606 update_mem_ref_hash_table): Likewise.
9607 (asan_mem_ref_hasher::hash): Hash in a HWI.
9608 (report_error_func): Change size_in_bytes argument to HWI.
9609 Use *_N builtins if size_in_bytes is larger than 16 or not power of
9610 two.
9611 (build_shadow_mem_access): New function.
9612 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
9613 Handle size_in_bytes not power of two or larger than 16.
9614 (instrument_derefs): Don't give up if size_in_bytes is not
9615 power of two or is larger than 16.
9616
9617 2014-05-30 Kai Tietz <ktietz@redhat.com>
9618
9619 PR target/60104
9620 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
9621 for sibling-tail-calls.
9622 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
9623 to its use.
9624 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
9625 (sibcall_insn_operand): Add check for sibcall_memory_operand.
9626
9627 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9628
9629 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
9630 * config/avr/avr-tables.opt: Regenerate.
9631 * config/avr/t-multilib: Regenerate.
9632 * doc/avr-mmcu.texi: Regenerate.
9633
9634 2014-05-30 Ian Lance Taylor <iant@google.com>
9635
9636 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
9637 target("sse").
9638
9639 2014-05-30 Tom de Vries <tom@codesourcery.com>
9640
9641 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
9642 Redefine as true.
9643
9644 2014-05-30 Tom de Vries <tom@codesourcery.com>
9645
9646 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9647 * lra.c (initialize_lra_reg_info_element): Add init of
9648 actual_call_used_reg_set field.
9649 (lra): Call lra_create_live_ranges before lra_inheritance for
9650 -fuse-caller-save.
9651 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9652 -fuse-caller-save.
9653 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
9654 instead of call_used_reg_set for -fuse-caller-save.
9655 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9656
9657 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9658
9659 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
9660 to mov_imm.
9661 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
9662
9663 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
9664
9665 * ira.c (ira_get_dup_out_num): Check for output operands at
9666 the start of the loop. Handle cases where an included alternative
9667 follows an excluded one.
9668
9669 2014-05-29 Mike Stump <mikestump@comcast.net>
9670
9671 PR debug/61352
9672 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
9673 post ld passes when lto is used.
9674
9675 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
9676
9677 PR rtl-optimization/61325
9678 * lra-constraints.c (process_address): Rename to process_address_1.
9679 (process_address): New function.
9680
9681 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
9682
9683 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
9684 TYPES_BINOPV): New static data.
9685 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
9686 New builtin.
9687 * config/aarch64/aarch64-simd.md (aarch64_ext,
9688 aarch64_im_lane_boundsi): New patterns.
9689 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
9690 patterns for EXT.
9691 (aarch64_evpc_ext): New function.
9692
9693 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
9694
9695 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
9696 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
9697 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
9698 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
9699 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
9700
9701 2014-05-29 Tom de Vries <tom@codesourcery.com>
9702
9703 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
9704
9705 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
9706 Richard Sandiford <rdsandiford@googlemail.com>
9707
9708 * arm/iterators.md (shiftable_ops): New code iterator.
9709 (t2_binop0, arith_shift_insn): New code attributes.
9710 * arm/predicates.md (shift_nomul_operator): New predicate.
9711 * arm/arm.md (insn_enabled): Delete.
9712 (enabled): Remove insn_enabled test.
9713 (*arith_shiftsi): Delete. Replace with ...
9714 (*<arith_shift_insn>_multsi): ... new pattern.
9715 (*<arith_shift_insn>_shiftsi): ... new pattern.
9716 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
9717
9718 2014-05-29 Radovan Obradovic <robradovic@mips.com>
9719 Tom de Vries <tom@codesourcery.com>
9720
9721 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
9722 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
9723 clobber.
9724 (mips_split_call): Use POST_CALL_TMP_REG.
9725 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
9726
9727 2014-05-29 Tom de Vries <tom@codesourcery.com>
9728
9729 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
9730 with #ifdef STACK_REGS.
9731
9732 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
9733
9734 * varasm.c (get_variable_section): Walk aliases.
9735 (place_block_symbol): Walk aliases.
9736
9737 2014-05-28 Tom de Vries <tom@codesourcery.com>
9738
9739 Revert:
9740 2014-05-28 Tom de Vries <tom@codesourcery.com>
9741
9742 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9743 * lra.c (initialize_lra_reg_info_element): Add init of
9744 actual_call_used_reg_set field.
9745 (lra): Call lra_create_live_ranges before lra_inheritance for
9746 -fuse-caller-save.
9747 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9748 -fuse-caller-save.
9749 * lra-constraints.c (need_for_call_save_p): Use
9750 actual_call_used_reg_set instead of call_used_reg_set for
9751 -fuse-caller-save.
9752 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9753
9754 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9755
9756 * doc/md.texi: Document that the % constraint character must
9757 be at the beginning of the string.
9758 * genoutput.c (validate_insn_alternatives): Check that '=',
9759 '+' and '%' only appear at the beginning of a constraint.
9760 * ira.c (commutative_constraint_p): Delete.
9761 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
9762 at the start of the string.
9763 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
9764 duplicate '='s.
9765 * config/arm/neon.md (bicdi3_neon): Likewise.
9766 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
9767 (slt_si, sltu_si): Likewise.
9768 * config/vax/vax.md (sbcdi3): Likewise.
9769 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
9770 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
9771 (mul64): Move '%' to beginning of constraint.
9772 * config/arm/arm.md (*xordi3_insn): Likewise.
9773 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
9774 (xorsi3): Likewise.
9775
9776 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9777
9778 * doc/md.texi: Document the restrictions on the "enabled" attribute.
9779
9780 2014-05-28 Jason Merrill <jason@redhat.com>
9781
9782 PR c++/47202
9783 * cgraph.h (symtab_node::get_comdat_group_id): New.
9784 * cgraphunit.c (analyze_functions): Call it.
9785 * symtab.c (dump_symtab_node): Likewise.
9786 * tree.c (decl_comdat_group_id): New.
9787 * tree.h: Declare it.
9788 * lto-streamer-out.c (write_symbol): Use it.
9789 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
9790
9791 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9792
9793 PR bootstrap/PR61146
9794 * wide-int.cc: Do not include longlong.h when compiling with clang.
9795
9796 2014-05-28 Richard Biener <rguenther@suse.de>
9797
9798 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
9799 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
9800 (vrp_visit_assignment_or_call): Print less vertical space.
9801 (vrp_visit_stmt): Likewise.
9802 (vrp_visit_phi_node): Likewise. For a PHI argument with
9803 VR_VARYING range consider recording it as copy.
9804
9805 2014-05-28 Richard Biener <rguenther@suse.de>
9806
9807 Revert
9808 2014-05-28 Richard Biener <rguenther@suse.de>
9809
9810 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9811
9812 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9813
9814 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
9815 sufficiently aligned and an offset is used at the same time.
9816 (expand_expr_real_1): Likewise.
9817
9818 2014-05-28 Richard Biener <rguenther@suse.de>
9819
9820 PR middle-end/61045
9821 * fold-const.c (fold_comparison): When folding
9822 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
9823 the sign of the remaining constant operand stays the same.
9824
9825 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
9826
9827 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9828 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
9829 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
9830 to the assembler.
9831 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
9832 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
9833 (m32bit-doubles) Likewise.
9834 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
9835 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
9836 option for RL78.
9837
9838 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9839
9840 * configure.ac ($gcc_cv_ld_clearcap): New test.
9841 * configure: Regenerate.
9842 * config.in: Regenerate.
9843 * config/sol2.opt (mclear-hwcap): New option.
9844 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
9845 * config/sol2-clearcap.map: Moved here from
9846 testsuite/gcc.target/i386/clearcap.map.
9847 * config/sol2-clearcapv2.map: Move here from
9848 gcc.target/i386/clearcapv2.map.
9849 * config/t-sol2 (install): Depend on install-clearcap-map.
9850 (install-clearcap-map): New target.
9851 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
9852 -mclear-hwcap.
9853
9854 2014-05-28 Richard Biener <rguenther@suse.de>
9855
9856 * hwint.h (*_HALF_WIDE_INT*): Move to ...
9857 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
9858 ... here and remove the rest.
9859 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9860
9861 2014-05-28 Richard Biener <rguenther@suse.de>
9862
9863 PR tree-optimization/61335
9864 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
9865 new range fails, drop to varying.
9866
9867 2014-05-28 Olivier Hainque <hainque@adacore.com>
9868
9869 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
9870 (CPP_SPEC): Add entry for -mcpu=8548.
9871 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
9872 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
9873
9874 2014-05-28 Tom de Vries <tom@codesourcery.com>
9875
9876 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9877 * lra.c (initialize_lra_reg_info_element): Add init of
9878 actual_call_used_reg_set field.
9879 (lra): Call lra_create_live_ranges before lra_inheritance for
9880 -fuse-caller-save.
9881 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9882 -fuse-caller-save.
9883 * lra-constraints.c (need_for_call_save_p): Use
9884 actual_call_used_reg_set instead of call_used_reg_set for
9885 -fuse-caller-save.
9886 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9887
9888 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9889 Tom de Vries <tom@codesourcery.com>
9890
9891 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
9892 to gccoptlist.
9893 (@item -fuse-caller-save): New item.
9894
9895 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9896 Tom de Vries <tom@codesourcery.com>
9897
9898 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
9899 OPT_fuse_caller_save.
9900
9901 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9902 Tom de Vries <tom@codesourcery.com>
9903
9904 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
9905 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
9906 get_call_reg_set_usage.
9907 * resource.c (mark_set_resources, mark_target_live_regs): Use
9908 get_call_reg_set_usage.
9909 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
9910 field.
9911 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
9912 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
9913 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9914 * ira-build.c (ira_create_allocno): Init
9915 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9916 (create_cap_allocno, propagate_allocno_info)
9917 (propagate_some_info_from_allocno)
9918 (copy_info_to_removed_store_destinations): Handle
9919 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9920 * ira-costs.c (ira_tune_allocno_costs): Use
9921 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
9922
9923 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9924 Tom de Vries <tom@codesourcery.com>
9925
9926 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
9927 and function_used_regs_valid fields.
9928 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
9929 find_all_hard_reg_sets.
9930 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
9931 (get_call_reg_set_usage): New function.
9932 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
9933 * regs.h (get_call_reg_set_usage): Declare.
9934
9935 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9936
9937 PR libgcc/61152
9938 * config/dbx.h (License): Add Runtime Library Exception.
9939 * config/newlib-stdint.h (License): Same.
9940 * config/rtems.h (License): Same
9941 * config/initfini-array.h (License): Same
9942 * config/v850/v850.h (License): Same.
9943 * config/v850/v850-opts.h (License): Same
9944 * config/v850/rtems.h (License): Same.
9945
9946 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9947
9948 PR target/61044
9949 * doc/extend.texi (Local Labels): Note that label differences are
9950 not supported for AVR.
9951
9952 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9953 Olivier Hainque <hainque@adacore.com>
9954
9955 * rtl.h (set_for_reg_notes): Declare.
9956 * emit-rtl.c (set_for_reg_notes): New function.
9957 (set_unique_reg_note): Use it.
9958 * optabs.c (add_equal_note): Likewise
9959
9960 2014-05-27 Andrew Pinski <apinski@cavium.com>
9961
9962 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
9963 Use <w> for the register in assembly template.
9964 (stack_protect_test): Use the mode of operands[0] for the result.
9965 (stack_protect_test_<mode>): Use <w> for the register
9966 in assembly template.
9967
9968 2014-05-27 DJ Delorie <dj@redhat.com>
9969
9970 * config/rx/rx.c (add_vector_labels): New.
9971 (rx_output_function_prologue): Call it.
9972 (rx_handle_func_attribute): Don't require empty arguments.
9973 (rx_handle_vector_attribute): New.
9974 (rx_attribute_table): Add "vector" attribute.
9975 * doc/extend.texi (interrupt, vector): Document new/changed
9976 RX-specific attributes.
9977
9978 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
9979
9980 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9981
9982 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
9983 predicate to detect a negative quotient.
9984
9985 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9986
9987 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
9988 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
9989 Add X - Y CMP 0 to X CMP Y transformation.
9990 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
9991
9992 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
9993
9994 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
9995 before printing.
9996
9997 2014-05-27 Steve Ellcey <sellcey@mips.com>
9998
9999 * config/mips/mips.c: Add include of cgraph.h.
10000
10001 2014-05-27 Richard Biener <rguenther@suse.de>
10002
10003 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
10004
10005 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
10006
10007 PR libgcc/61152
10008 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
10009 * config/arm/arm-cores.def (License): Same.
10010 * config/arm/arm-opts.h (License): Same.
10011 * config/arm/aout.h (License): Same.
10012 * config/arm/bpabi.h (License): Same.
10013 * config/arm/elf.h (License): Same.
10014 * config/arm/linux-elf.h (License): Same.
10015 * config/arm/linux-gas.h (License): Same.
10016 * config/arm/netbsd-elf.h (License): Same.
10017 * config/arm/uclinux-eabi.h (License): Same.
10018 * config/arm/uclinux-elf.h (License): Same.
10019 * config/arm/vxworks.h (License): Same.
10020
10021 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10022
10023 * config/arm/neon.md (neon_bswap<mode>): New pattern.
10024 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
10025 (arm_init_neon_builtins): Handle NEON_BSWAP.
10026 Define required type nodes.
10027 (arm_expand_neon_builtin): Handle NEON_BSWAP.
10028 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
10029 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
10030 * config/arm/iterators.md (VDQHSD): New mode iterator.
10031
10032 2014-05-27 Richard Biener <rguenther@suse.de>
10033
10034 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
10035 Try using literal operands when comparing value-ranges failed.
10036
10037 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
10038
10039 * ira.c (commutative_operand): Adjust for change to recog_data.
10040 [Missing from previous commit.]
10041
10042 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
10043
10044 * system.h (TEST_BIT): New macro.
10045 * recog.h (alternative_mask): New type.
10046 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
10047 (recog_data_d): Replace alternative_enabled_p array with
10048 enabled_alternatives.
10049 (target_recog): New structure.
10050 (default_target_recog, this_target_recog): Declare.
10051 (get_enabled_alternatives, recog_init): Likewise.
10052 * recog.c (default_target_recog, this_target_recog): New variables.
10053 (get_enabled_alternatives): New function.
10054 (extract_insn): Use it.
10055 (recog_init): New function.
10056 (preprocess_constraints, constrain_operands): Adjust for change to
10057 recog_data.
10058 * postreload.c (reload_cse_simplify_operands): Likewise.
10059 * reload.c (find_reloads): Likewise.
10060 * ira-costs.c (record_reg_classes): Likewise.
10061 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
10062 all alternatives after a disabled one would be skipped.
10063 (ira_implicitly_set_insn_hard_regs): Likewise.
10064 * ira.c (ira_setup_alts): Adjust for change to recog_data.
10065 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
10066 with enabled_alternatives.
10067 * lra.c (free_insn_recog_data): Update accordingly.
10068 (lra_update_insn_recog_data): Likewise.
10069 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
10070 * lra-constraints.c (process_alt_operands): Likewise. Handle
10071 only_alternative as part of the enabled mask.
10072 * target-globals.h (this_target_recog): Declare.
10073 (target_globals): Add a recog field.
10074 (restore_target_globals): Restore this_target_recog.
10075 * target-globals.c: Include recog.h.
10076 (default_target_globals): Initialize recog field.
10077 (save_target_globals): Likewise.
10078 * reginfo.c (reinit_regs): Call recog_init.
10079 * toplev.c (backend_init_target): Likewise.
10080
10081 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
10082
10083 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
10084 rather than any named insn's code.
10085
10086 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
10087
10088 PR libgcc/61152
10089 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
10090 * config/arm/arm-cores.def (License): Same.
10091
10092 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
10093
10094 * tree.h (decl_comdat_group): Declare.
10095 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
10096 * tree.c (decl_comdat_group): Here.
10097
10098 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
10099
10100 PR rtl-optimization/61222
10101 * combine.c (simplify_shift_const_1): When moving a PLUS outside
10102 the shift, truncate the PLUS operand to the result mode.
10103
10104 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
10105
10106 PR target/61271
10107 * config/i386/i386.c (ix86_rtx_costs)
10108 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
10109 Fix condition.
10110
10111 2014-05-26 Martin Jambor <mjambor@suse.cz>
10112
10113 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
10114 subreg uses.
10115
10116 2014-05-26 Richard Biener <rguenther@suse.de>
10117
10118 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
10119 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
10120 Provide specializations.
10121 (wi::int_traits <HOST_WIDE_INT>,
10122 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
10123
10124 2014-05-26 Alan Modra <amodra@gmail.com>
10125
10126 PR target/61098
10127 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
10128 params and return a bool. Remove dead code. Update comment.
10129 Assert we have a const_int source. Remove bogus code from
10130 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
10131 handling of constants > 2G and reg_equal note, from..
10132 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
10133 return value. Update comment. If we can, use a new pseudo
10134 for intermediate calculations.
10135 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
10136 prototype.
10137 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
10138 call to rs6000_emit_set_const in splitter.
10139 (movdi_internal64+2, +3): Likewise.
10140
10141 2014-05-26 Richard Biener <rguenther@suse.de>
10142
10143 * system.h: Define __STDC_FORMAT_MACROS before
10144 including inttypes.h.
10145 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
10146 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
10147 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
10148 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
10149 HOST_WIDEST_INT_C): Remove.
10150 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
10151 if C99 inttypes.h is not available.
10152 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
10153 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
10154 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
10155 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
10156 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
10157 (struct output_info): Likewise.
10158 (print_statistics): Adjust.
10159 (dump_bitmap_statistics): Likewise.
10160 * bt-load.c (migrate_btr_defs): Print with PRId64.
10161 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
10162 (MAX_SAFE_MULTIPLIER): Adjust.
10163 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
10164 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
10165 dump_cgraph_node): Likewise.
10166 * final.c (dump_basic_block_info): Likewise.
10167 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
10168 * gcov.c (format_gcov): Likewise.
10169 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
10170 for calculation.
10171 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
10172 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
10173 (inline_small_functions, dump_overall_stats, dump_inline_stats):
10174 Use PRId64 for dumping.
10175 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
10176 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
10177 (add_allocno_hard_regs): Adjust.
10178 * loop-doloop.c (doloop_modify): Print using PRId64.
10179 * loop-iv.c (inverse): Compute in uint64_t.
10180 (determine_max_iter, iv_number_of_iterations): Likewise.
10181 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
10182 Print using PRId64.
10183 * lto-streamer-out.c (write_symbol): Use uint64_t.
10184 * mcf.c (CAP_INFINITY): Use int64_t maximum.
10185 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
10186 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
10187 * modulo-sched.c (const_iteration_count): Use int64_t.
10188 (sms_schedule): Dump using PRId64.
10189 * predict.c (dump_prediction): Likewise.
10190 * pretty-print.h (pp_widest_integer): Remove.
10191 * profile.c (get_working_sets, is_edge_inconsistent,
10192 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
10193 * tree-pretty-print.c (pp_double_int): Remove case handling
10194 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
10195 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
10196 and adjust users.
10197 (pass_optimize_bswap::execute): Remove restriction on hosts.
10198 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
10199 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
10200 * tree.c (widest_int_cst_value): Remove.
10201 * tree.h (widest_int_cst_value): Likewise.
10202 * value-prof.c (dump_histogram_value): Print using PRId64.
10203 * gengtype.c (main): Also inject int64_t.
10204 * ggc-page.c (struct max_alignment): Use int64_t.
10205 * alloc-pool.c (struct allocation_object_def): Likewise.
10206 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
10207 for computation.
10208 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
10209 * doc/tm.texi: Regenerated.
10210 * gengtype-lex.l (IWORD): Handle [u]int64_t.
10211 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
10212 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
10213 mmix_output_register_setting): Use [u]int64_t in prototypes.
10214 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
10215 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
10216 mmix_output_octa, mmix_output_shifted_value): Adjust.
10217 (mmix_intval): Adjust. Remove unreachable case.
10218 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
10219
10220 2014-05-26 Richard Biener <rguenther@suse.de>
10221
10222 * configure.ac: Drop __int64 type check. Insist that we
10223 found uint64_t and int64_t.
10224 * hwint.h (HOST_BITS_PER___INT64): Remove.
10225 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
10226 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
10227 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
10228 (HOST_WIDEST_FAST_INT): Remove __int64 case.
10229 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
10230 for dst_q_src_df_rms_cdt.
10231 * configure: Regenerate.
10232 * config.in: Likewise.
10233
10234 2014-05-26 Michael Tautschnig <mt@debian.org>
10235
10236 PR target/61249
10237 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
10238 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
10239
10240 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10241
10242 PR rtl-optimization/61278
10243 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
10244
10245 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10246
10247 PR rtl-optimization/61220
10248 Part of PR rtl-optimization/61225
10249 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
10250 insn; skip split_edge for a block with only one successor.
10251
10252 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10253
10254 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
10255 for variables.
10256
10257 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10258
10259 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
10260 (update_vtable_references): New function.
10261 (function_and_variable_visibility): Rewrite also vtable initializers.
10262 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
10263
10264 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10265
10266 * ggc.h (ggc_grow): New function.
10267 * ggc-none.c (ggc_grow): New function.
10268 * ggc-page.c (ggc_grow): Likewise.
10269
10270 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10271
10272 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
10273 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
10274 comdat_can_be_unshared_p, cgraph_externally_visible_p,
10275 varpool_externally_visible_p, can_replace_by_local_alias,
10276 update_visibility_by_resolution_info, function_and_variable_visibility,
10277 pass_data_ipa_function_and_variable_visibility,
10278 make_pass_ipa_function_and_variable_visibility,
10279 whole_program_function_and_variable_visibility,
10280 pass_data_ipa_whole_program_visibility,
10281 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
10282 * cgraph.h (cgraph_local_node_p): Declare.
10283 * ipa-visibility.c: New file.
10284 * Makefile.in (OBJS): Add ipa-visiblity.o
10285
10286 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10287
10288 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
10289 that var decl is available.
10290
10291 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10292
10293 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
10294 symtab_node pointer.
10295 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
10296 (find_decls_types_r): Do not walk COMDAT_GROUP.
10297 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
10298 * varasm.c (make_decl_one_only): Use set_comdat_group;
10299 create node if needed.
10300 * ipa-inline-transform.c (save_inline_function_body): Update
10301 way we decl->symtab mapping.
10302 * symtab.c (symtab_hash, hash_node, eq_node
10303 symtab_insert_node_to_hashtable): Remove.
10304 (symtab_register_node): Update.
10305 (symtab_unregister_node): Update.
10306 (symtab_get_node): Reimplement as inline function.
10307 (symtab_add_to_same_comdat_group): Update.
10308 (symtab_dissolve_same_comdat_group_list): Update.
10309 (dump_symtab_base): Update.
10310 (verify_symtab_base): Update.
10311 (symtab_make_decl_local): Update.
10312 (fixup_same_cpp_alias_visibility): Update.
10313 (symtab_nonoverwritable_alias): Update.
10314 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
10315 * ipa.c (update_visibility_by_resolution_info): UPdate.
10316 * bb-reorder.c: Include cgraph.h
10317 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
10318 with comdat groups.
10319 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
10320 * cgraph.c (cgraph_get_create_node): Update.
10321 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
10322 and comdat_group_.
10323 (symtab_get_node): Make inline.
10324 (symtab_insert_node_to_hashtable): Remove.
10325 (symtab_can_be_discarded): Update.
10326 (decl_comdat_group): New function.
10327 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
10328 Update.
10329 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
10330 comdat group name.
10331 (read_comdat_group): New function.
10332 (input_node, input_varpool_node): Use it.
10333 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
10334 comdat groups.
10335 * mips.c (mips_start_unique_function): Likewise.
10336 (ix86_code_end): Likewise.
10337 (rs6000_code_end): Likweise.
10338 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
10339
10340 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10341
10342 * gengtype-state.c (fatal_reading_state): Bring offline.
10343 * optabs.c (widening_optab_handler): Bring offline.
10344 * optabs.h (widening_optab_handler): Likewise.
10345 * final.c (get_attr_length_1): Likewise.
10346
10347 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10348
10349 * sched-int.h (sd_iterator_cond): Manually tail recurse.
10350
10351 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10352
10353 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
10354 (ppc440-compare): Include shift with dot.
10355 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
10356 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
10357 without dot.
10358 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
10359 without dot.
10360 (e6500_sfx2): Include it.
10361 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
10362 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
10363 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
10364 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
10365 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
10366 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
10367 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
10368 *lshiftrt_internal1le, *lshiftrt_internal1be,
10369 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
10370 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
10371 *rotldi3_internal10le, *rotldi3_internal10be,
10372 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
10373 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
10374 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
10375 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
10376 define_insns): Use type "shift" in the appropriate alternatives.
10377
10378 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10379
10380 * config/rs6000/rs6000.md (type): Add "logical". Delete
10381 "fast_compare".
10382 (dot): Adjust comment.
10383 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
10384 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
10385 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
10386 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
10387 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
10388 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
10389 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
10390 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
10391
10392 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10393 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
10394 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10395 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10396 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10397 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10398 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10399 * config/rs6000/8540.md (ppc8540_su): Adjust.
10400 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10401 cell-cmp-microcoded): Adjust.
10402 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
10403 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10404 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
10405 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
10406 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
10407 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10408 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
10409 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
10410 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
10411 Adjust.
10412 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
10413 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
10414 Adjust. Adjust comment.
10415 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10416 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
10417
10418 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10419
10420 * config/rs6000/rs6000.md (type): Add "add".
10421 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
10422 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
10423 define_insns): Use it.
10424 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
10425
10426 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10427 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
10428 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10429 * config/rs6000/601.md (ppc601-integer): Adjust.
10430 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10431 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10432 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10433 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10434 * config/rs6000/8540.md (ppc8540_su): Adjust.
10435 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10436 cell-cmp-microcoded): Adjust.
10437 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
10438 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10439 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
10440 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
10441 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
10442 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10443 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
10444 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
10445 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
10446 Adjust.
10447 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
10448 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
10449 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10450 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
10451
10452 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10453
10454 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
10455 "delayed_compare", "var_delayed_compare".
10456 (var_shift): New attribute.
10457 (cell_micro): Adjust.
10458 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
10459 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
10460 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
10461 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10462 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10463 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10464 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10465 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
10466 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
10467 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
10468 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
10469 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
10470 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
10471 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
10472 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
10473 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
10474 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
10475 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
10476 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
10477 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
10478 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
10479 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
10480 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
10481 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10482 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10483
10484 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10485 * config/rs6000/440.md (ppc440-integer): Adjust.
10486 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10487 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
10488 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10489 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10490 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10491 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10492 * config/rs6000/8540.md (ppc8540_su): Adjust.
10493 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10494 cell-cmp-microcoded): Adjust.
10495 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
10496 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10497 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
10498 e500mc64_delayed): Adjust.
10499 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
10500 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
10501 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10502 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
10503 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
10504 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
10505 power6-delayed-compare, power6-var-delayed-compare): Adjust.
10506 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
10507 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
10508 Adjust comment.
10509 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10510 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
10511
10512 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10513
10514 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
10515 (bits): New mode_attr.
10516 (idiv_ldiv): Delete mode_attr.
10517 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
10518 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10519 rs6000_adjust_priority, is_nonpipeline_insn,
10520 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10521
10522 * config/rs6000/40x.md (ppc403-idiv): Adjust.
10523 * config/rs6000/440.md (ppc440-idiv): Adjust.
10524 * config/rs6000/476.md (ppc476-idiv): Adjust.
10525 * config/rs6000/601.md (ppc601-idiv): Adjust.
10526 * config/rs6000/603.md (ppc603-idiv): Adjust.
10527 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
10528 ppc620-ldiv): Adjust.
10529 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
10530 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
10531 * config/rs6000/8540.md (ppc8540_divide): Adjust.
10532 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
10533 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
10534 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
10535 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
10536 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
10537 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
10538 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
10539 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
10540 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
10541 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
10542 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
10543 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
10544 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
10545 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
10546 * config/rs6000/titan.md (titan_fxu_div): Adjust.
10547
10548 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10549
10550 * config/rs6000/rs6000.md (type): Delete "insert_word",
10551 "insert_dword". Add "insert".
10552 (size): Update comment.
10553 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10554 insn_must_be_first_in_group): Adjust.
10555 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
10556 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
10557 *insvsi_internal6, insvdi_internal): Adjust.
10558
10559 * config/rs6000/40x.md (ppc403-integer): Adjust.
10560 * config/rs6000/440.md (ppc440-integer): Adjust.
10561 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
10562 * config/rs6000/601.md (ppc601-integer): Adjust.
10563 * config/rs6000/603.md (ppc603-integer): Adjust.
10564 * config/rs6000/6xx.md (ppc604-integer): Adjust.
10565 * config/rs6000/7450.md (ppc7450-integer): Adjust.
10566 * config/rs6000/7xx.md (ppc750-integer): Adjust.
10567 * config/rs6000/8540.md (ppc8540_su): Adjust.
10568 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
10569 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
10570 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10571 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
10572 * config/rs6000/e5500.md (e5500_sfx): Adjust.
10573 * config/rs6000/e6500.md (e6500_sfx): Adjust.
10574 * config/rs6000/mpc.md (mpccore-integer): Adjust.
10575 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
10576 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
10577 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
10578 * config/rs6000/power7.md (power7-integer): Adjust.
10579 * config/rs6000/power8.md (power8-1cyc): Adjust.
10580 * config/rs6000/rs64.md (rs64a-integer): Adjust.
10581 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
10582
10583 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10584
10585 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
10586 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
10587 (size): New attribute.
10588 (dot): New attribute.
10589 (cell_micro): Adjust.
10590 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
10591 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
10592 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
10593 umuldi3_highpart): Adjust.
10594 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10595 rs6000_adjust_priority, is_nonpipeline_insn,
10596 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10597
10598 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
10599 ppc405-imul3): Adjust.
10600 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
10601 * config/rs6000/476.md (ppc476-imul): Adjust.
10602 * config/rs6000/601.md (ppc601-imul): Adjust.
10603 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
10604 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
10605 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
10606 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
10607 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
10608 Adjust.
10609 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
10610 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
10611 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
10612 cell-imul): Adjust.
10613 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
10614 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
10615 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
10616 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
10617 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
10618 * config/rs6000/mpc.md (mpccore-imul): Adjust.
10619 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
10620 power4-lmul, power4-imul, power4-imul3): Adjust.
10621 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
10622 power5-lmul, power5-imul, power5-imul3): Adjust.
10623 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
10624 power6-lmul, power6-imul, power6-imul3): Adjust.
10625 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
10626 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
10627
10628 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
10629 rs64a-lmul): Adjust.
10630 * config/rs6000/titan.md (titan_imul): Adjust.
10631
10632 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10633
10634 * config/rs6000/rs6000.md (type): Add new value "halfmul".
10635 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
10636 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
10637 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
10638 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
10639 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
10640 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
10641 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
10642 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
10643 * config/rs6000/titan.md: Delete nonsensical comment.
10644 (titan_imul): Add type imul3.
10645 (titan_mulhw): Remove type imul3; add type halfmul.
10646
10647 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10648
10649 * config/rs6000/rs6000.md (type): Reorder, reformat.
10650
10651 2014-05-23 Martin Jambor <mjambor@suse.cz>
10652
10653 PR tree-optimization/53787
10654 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
10655 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
10656 analysis_done, update all uses.
10657 * ipa-prop.c: Include domwalk.h
10658 (param_analysis_info): Removed.
10659 (param_aa_status): New type.
10660 (ipa_bb_info): Likewise.
10661 (func_body_info): Likewise.
10662 (ipa_get_bb_info): New function.
10663 (aa_overwalked): Likewise.
10664 (find_dominating_aa_status): Likewise.
10665 (parm_bb_aa_status_for_bb): Likewise.
10666 (parm_preserved_before_stmt_p): Changed to use new param AA info.
10667 (load_from_unmodified_param): Accept func_body_info as a parameter
10668 instead of parms_ainfo.
10669 (parm_ref_data_preserved_p): Changed to use new param AA info.
10670 (parm_ref_data_pass_through_p): Likewise.
10671 (ipa_load_from_parm_agg_1): Likewise. Update callers.
10672 (compute_complex_assign_jump_func): Changed to use new param AA info.
10673 (compute_complex_ancestor_jump_func): Likewise.
10674 (ipa_compute_jump_functions_for_edge): Likewise.
10675 (ipa_compute_jump_functions): Removed.
10676 (ipa_compute_jump_functions_for_bb): New function.
10677 (ipa_analyze_indirect_call_uses): Likewise, moved variable
10678 declarations down.
10679 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
10680 and info, moved variable declarations down.
10681 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
10682 node and info.
10683 (ipa_analyze_stmt_uses): Likewise.
10684 (ipa_analyze_params_uses): Removed.
10685 (ipa_analyze_params_uses_in_bb): New function.
10686 (ipa_analyze_controlled_uses): Likewise.
10687 (free_ipa_bb_info): Likewise.
10688 (analysis_dom_walker): New class.
10689 (ipa_analyze_node): Handle node-specific forbidden analysis,
10690 initialize and free func_body_info, use dominator walker.
10691 (ipcp_modif_dom_walker): New class.
10692 (ipcp_transform_function): Create and free func_body_info, use
10693 ipcp_modif_dom_walker, moved a lot of functionality there.
10694
10695 2014-05-23 Marek Polacek <polacek@redhat.com>
10696 Jakub Jelinek <jakub@redhat.com>
10697
10698 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
10699 * gcc.c (sanitize_spec_function): Likewise.
10700 * convert.c (convert_to_integer): Include "ubsan.h". Add
10701 floating-point to integer instrumentation.
10702 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
10703 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
10704 SANITIZE_NONDEFAULT.
10705 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
10706 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
10707 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
10708 * ubsan.c: Include "realmpfr.h" and "dfp.h".
10709 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
10710 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
10711 float/double/long double.
10712 (ubsan_instrument_float_cast): New function.
10713 * ubsan.h (ubsan_instrument_float_cast): Declare.
10714
10715 2014-05-23 Jiong Wang <jiong.wang@arm.com>
10716
10717 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
10718 predicate.
10719 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
10720 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
10721 Adjust for tailcalling through registers.
10722 * config/aarch64/aarch64.h (enum reg_class): New caller save
10723 register class.
10724 (REG_CLASS_NAMES): Likewise.
10725 (REG_CLASS_CONTENTS): Likewise.
10726 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
10727 Allow tailcalling without decls.
10728
10729 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10730
10731 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10732 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
10733
10734 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
10735 gsi, and variables v_* to v*.
10736
10737 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
10738
10739 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
10740
10741 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10742
10743 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
10744 * omp-low.c: Update accordingly.
10745
10746 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
10747 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
10748 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
10749 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
10750 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
10751 GF_OMP_TARGET_KIND_UPDATE.
10752
10753 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10754 Explicitly enumerate the expected region types.
10755
10756 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
10757
10758 PR other/56955
10759 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
10760 documentation; the old documentation didn't clearly state the
10761 constraints on the contents of the pointed-to storage.
10762
10763 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10764
10765 Fix bootstrap error on ia64
10766 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
10767 Return default value.
10768
10769 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
10770
10771 PR tree-optimization/54733
10772 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
10773 (CMPNOP): Define.
10774 (find_bswap_or_nop_load): New.
10775 (find_bswap_1): Renamed to ...
10776 (find_bswap_or_nop_1): This. Also add support for memory source.
10777 (find_bswap): Renamed to ...
10778 (find_bswap_or_nop): This. Also add support for memory source and
10779 detection of bitwise operations equivalent to load in target
10780 endianness.
10781 (execute_optimize_bswap): Likewise. Also move its leading comment back
10782 in place and split statement transformation into ...
10783 (bswap_replace): This.
10784
10785 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10786
10787 PR rtl-optimization/61215
10788 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
10789 simplify_gen_subreg until final substitution.
10790
10791 2014-05-23 Alan Modra <amodra@gmail.com>
10792
10793 PR target/61231
10794 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
10795 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
10796 Use "Y" constraint rather than "m".
10797
10798 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10799
10800 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
10801 define.
10802 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
10803 New function declaration.
10804 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
10805 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
10806 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
10807 (aarch64_init_builtins) : Initialize builtins
10808 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10809 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10810 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
10811 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
10812 and __builtins_aarch64_set_fpsr.
10813 (aarch64_atomic_assign_expand_fenv): New function.
10814 * config/aarch64/aarch64.md (set_fpcr): New pattern.
10815 (get_fpcr) : Likewise.
10816 (set_fpsr) : Likewise.
10817 (get_fpsr) : Likewise.
10818 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
10819 and UNSPECV_SET_FPSR.
10820 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10821 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10822 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10823
10824 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10825
10826 PR rtl-optimization/60969
10827 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
10828 constraints. Set up mem cost for NO_REGS case.
10829
10830 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10831
10832 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
10833
10834 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
10835
10836 * config/darwin.c: Include "lto-section-names.h".
10837 (LTO_SEGMENT_NAME): Don't define.
10838 * config/i386/winnt.c: Include "lto-section-names.h".
10839 * lto-streamer.c: Include "lto-section-names.h".
10840 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
10841 * lto-wrapper.c: Include "lto-section-names.h".
10842 (LTO_SECTION_NAME_PREFIX): Don't define.
10843 * lto-section-names.h: New file.
10844 * cgraphunit.c: Include "lto-section-names.h".
10845
10846 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
10847
10848 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
10849
10850 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
10851
10852 PR target/61208
10853 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
10854
10855 2014-05-22 Nick Clifton <nickc@redhat.com>
10856
10857 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
10858
10859 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
10860
10861 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
10862 -> (T)A transformation to integer types.
10863
10864 2014-05-22 Teresa Johnson <tejohnson@google.com>
10865
10866 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
10867 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
10868 (gcov_rewrite): Use gcov_nonruntime_assert.
10869 (gcov_open): Ditto.
10870 (gcov_write_words): Ditto.
10871 (gcov_write_length): Ditto.
10872 (gcov_read_words): Use gcov_nonruntime_assert, and remove
10873 gcc_assert from IN_LIBGCOV code.
10874 (gcov_read_summary): Use gcov_error to flag profile corruption.
10875 (gcov_sync): Use gcov_nonruntime_assert.
10876 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
10877 (gcov_histo_index): Use gcov_nonruntime_assert.
10878 (static void gcov_histogram_merge): Ditto.
10879 (compute_working_sets): Ditto.
10880 * gcov-io.h (gcov_nonruntime_assert): Define.
10881 (gcov_error): Define for !IN_LIBGCOV
10882
10883 2014-05-22 Richard Biener <rguenther@suse.de>
10884
10885 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10886 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
10887 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
10888 and deallocation site.
10889 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10890 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
10891 passing through the incoming points-to set.
10892 (handle_lhs_call): Use flags argument instead of recomputing it.
10893 (find_func_aliases_for_call): Call handle_lhs_call with proper
10894 call return flags.
10895
10896 2014-05-22 Jakub Jelinek <jakub@redhat.com>
10897
10898 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
10899 all padding bits in REAL_VALUE_TYPE are cleared.
10900
10901 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10902
10903 Cleanup and improve multipass_dfa_lookahead_guard
10904 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
10905 (core2i7_first_cycle_multipass_begin,)
10906 (core2i7_first_cycle_multipass_issue,)
10907 (core2i7_first_cycle_multipass_backtrack): Update signature.
10908 * config/ia64/ia64.c
10909 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
10910 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
10911 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
10912 hook definition.
10913 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
10914 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
10915 values.
10916 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
10917 return values.
10918 * doc/tm.texi: Regenerate.
10919 * doc/tm.texi.in
10920 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
10921 * haifa-sched.c (ready_try): Make signed to allow negative values.
10922 (rebug_ready_list_1): Update.
10923 (choose_ready): Simplify.
10924 (sched_extend_ready_list): Update.
10925
10926 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10927
10928 Remove IA64 speculation tweaking flags
10929 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
10930 speculation tuning flags.
10931 (msched-prefer-non-data-spec-insns,)
10932 (msched-prefer-non-control-spec-insns): Obsolete options.
10933 * haifa-sched.c (choose_ready): Remove handling of
10934 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10935 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
10936 and PREFER_NON_DATA_SPEC.
10937 * sel-sched.c (process_spec_exprs): Remove handling of
10938 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10939
10940 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10941
10942 Improve scheduling debug output
10943 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
10944 (advance_one_cycle): Update.
10945 (schedule_insn, queue_to_ready): Add debug printouts.
10946 (debug_ready_list_1): New static function.
10947 (debug_ready_list): Update.
10948 (max_issue): Add debug printouts.
10949 (dump_insn_stream): New static function.
10950 (schedule_block): Use it. Also better indent printouts.
10951
10952 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10953
10954 Fix sched_insn debug counter
10955 * haifa-sched.c (schedule_insn): Update.
10956 (struct haifa_saved_data): Add nonscheduled_insns_begin.
10957 (save_backtrack_point, restore_backtrack_point): Update.
10958 (first_nonscheduled_insn): New static function.
10959 (queue_to_ready, choose_ready): Use it.
10960 (schedule_block): Init nonscheduled_insns_begin.
10961 (sched_emit_insn): Update.
10962
10963
10964 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
10965
10966 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
10967 to GENERAL_REGS.
10968 (aarch64_secondary_reload) : LikeWise.
10969 (aarch64_class_max_nregs) : Remove CORE_REGS.
10970 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
10971 (REG_CLASS_NAMES) : Likewise.
10972 (REG_CLASS_CONTENTS) : LikeWise.
10973 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
10974
10975 2014-05-21 Guozhi Wei <carrot@google.com>
10976
10977 PR target/61202
10978 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
10979 constraint.
10980 (vqdmulhq_n_s16): Likewise.
10981
10982 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10983
10984 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
10985
10986 2014-05-21 Marek Polacek <polacek@redhat.com>
10987
10988 PR sanitizer/61272
10989 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
10990
10991 2014-05-21 Martin Jambor <mjambor@suse.cz>
10992
10993 * doc/invoke.texi (Optimize Options): Document parameters
10994 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
10995 ipa-cp-array-index-hint-bonus.
10996
10997 2014-05-21 Mark Wielaard <mjw@redhat.com>
10998
10999 PR debug/16063
11000 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
11001 version >= 3 or not strict DWARF.
11002 * langhooks.h (struct lang_hooks_for_types): Add
11003 enum_underlying_base_type.
11004 * langhooks.c (lhd_enum_underlying_base_type): New function.
11005 * gcc/langhooks.h (struct lang_hooks_for_types): Add
11006 enum_underlying_base_type.
11007 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
11008 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
11009 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
11010
11011 2014-05-21 Richard Biener <rguenther@suse.de>
11012
11013 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
11014
11015 2014-05-21 John Marino <gnugcc@marino.st>
11016
11017 * config.gcc (*-*-dragonfly*): New target.
11018 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
11019 * configure: Regenerate.
11020 * config/dragonfly-stdint.h: New.
11021 * config/dragonfly.h: New.
11022 * config/dragonfly.opt: New.
11023 * config/i386/dragonfly.h: New.
11024 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
11025
11026 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
11027
11028 * tree.def (VOID_CST): New.
11029 * tree-core.h (TI_VOID): New.
11030 * tree.h (void_node): New.
11031 * tree.c (tree_node_structure_for_code, tree_code_size)
11032 (iterative_hash_expr): Handle VOID_CST.
11033 (build_common_tree_nodes): Initialize void_node.
11034
11035 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
11036
11037 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
11038 functions.
11039 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
11040
11041 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
11042 more places.
11043
11044 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
11045 flag_reorder_blocks_and_partition.
11046 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
11047
11048 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
11049
11050 PR target/54236
11051 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
11052 constraints.
11053 (*addc_r_t): Add new insn_and_split.
11054
11055 2014-05-21 Jakub Jelinek <jakub@redhat.com>
11056
11057 PR middle-end/61252
11058 * omp-low.c (handle_simd_reference): New function.
11059 (lower_rec_input_clauses): Use it. Defer adding reference
11060 initialization even for reduction without placeholder if in simd,
11061 handle it properly later on.
11062
11063 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11064
11065 PR tree-optimization/60899
11066 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
11067 assume all static symbols will have definition wile parsing and
11068 check the do have definition later in compilation; check that
11069 variable referring symbol will be output before concluding that
11070 reference is safe; be conservative for referring local statics;
11071 be more precise about when comdat is output in other partition.
11072
11073 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11074
11075 PR bootstrap/60984
11076 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
11077 parameter.
11078 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
11079 (ipa_inline): Loop inline_to_all_callers until no more aliases
11080 are removed.
11081
11082 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11083
11084 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
11085 set writeonly flag only for vars actually written to.
11086
11087 2014-05-20 Dehao Chen <dehao@google.com>
11088
11089 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
11090 and callee count to get clone count.
11091 * tree-inline.c (expand_call_inline): Use callee count instead of bb
11092 count in copy_body.
11093
11094 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
11095
11096 PR rtl-optimization/61243
11097 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
11098
11099 2014-05-20 Xinliang David Li <davidxl@google.com>
11100
11101 * cgraphunit.c (walk_polymorphic_call_targets): Add
11102 dbgcnt and fopt-info support.
11103 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
11104 * ipa-devirt.c (ipa_devirt): Ditto.
11105 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
11106 * ipa.c (walk_polymorphic_call_targets): Ditto.
11107 * gimple-fold.c (fold_gimple_assign): Ditto.
11108 (gimple_fold_call): Ditto.
11109 * dbgcnt.def: New counter.
11110
11111 2014-05-20 DJ Delorie <dj@redhat.com>
11112
11113 * config/msp430/msp430.md (split): Don't allow subregs when
11114 splitting SImode adds.
11115 (andneghi): Fix subtraction logic.
11116 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
11117
11118 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11119
11120 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
11121 symbols.
11122 * except.c (switch_to_exception_section, resolve_unique_section,
11123 get_named_text_section, default_function_rodata_section,
11124 align_variable, get_block_for_decl, default_section_type_flags):
11125 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
11126 * symtab.c (symtab_add_to_same_comdat_group,
11127 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
11128 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
11129 Likewise.
11130 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
11131 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
11132 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
11133 (c6x_function_in_section_p): Likewise.
11134 * config/darwin.c (machopic_select_section): Likewise.
11135 * config/arm/arm.c (arm_function_in_section_p): Likewise.
11136 * config/mips/mips.c (mips_function_rodata_section): Likewise.
11137 * config/mep/mep.c (mep_select_section): LIkewise.
11138 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
11139
11140 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
11141
11142 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
11143 EH region of calls to pure functions that can throw an exception.
11144 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
11145 (copy_reference_ops_from_call): Also copy the EH region of the call if
11146 it can throw an exception.
11147
11148 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11149
11150 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
11151 nested VEC_SELECTs that are inverses of each other.
11152
11153 2014-05-20 Richard Biener <rguenther@suse.de>
11154
11155 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
11156 (extract_and_process_scc_for_name): not here.
11157 (cond_dom_walker::before_dom_children): Only process
11158 stmts that end the BB in interesting ways.
11159 (run_scc_vn): Mark param uses as visited.
11160
11161 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11162
11163 * config/arm/arm.md (arith_shiftsi): Do not predicate for
11164 arm_restrict_it.
11165
11166 2014-05-20 Nick Clifton <nickc@redhat.com>
11167
11168 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
11169 (msp430_gimplify_va_arg_expr): New function.
11170 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
11171
11172 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
11173 operand 0 in order to prevent confusion about the number of
11174 registers involved.
11175
11176 2014-05-20 Richard Biener <rguenther@suse.de>
11177
11178 PR tree-optimization/61221
11179 * tree-ssa-pre.c (el_to_update): Remove.
11180 (eliminate_dom_walker::before_dom_children): Handle released
11181 VDEFs by value-numbering them to the associated VUSE. Update
11182 stmt immediately for substituted call address.
11183 (eliminate): Remove delayed stmt updating code.
11184 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
11185 possibly late re-numbered vuses.
11186 (vn_reference_lookup_2): Adjust.
11187 (vn_reference_lookup_pieces): Likewise.
11188 (vn_reference_lookup): Likewise.
11189
11190 2014-05-20 Richard Biener <rguenther@suse.de>
11191
11192 * config.gcc: Remove need_64bit_hwint.
11193 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
11194 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
11195 it to be true.
11196 * config.in: Regenerate.
11197 * configure: Likewise.
11198
11199 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
11200
11201 * doc/extend.texi: Create Label Attributes section,
11202 move all label attributes into it and reference it.
11203
11204 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
11205
11206 * arm.c (thumb1_reorg): When scanning backwards skip anything
11207 that's not a proper insn.
11208
11209 2014-05-19 Richard Biener <rguenther@suse.de>
11210
11211 PR tree-optimization/61221
11212 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11213 Do nothing for unreachable blocks.
11214 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
11215 Improve unreachability detection.
11216
11217 2014-05-19 Richard Biener <rguenther@suse.de>
11218
11219 PR tree-optimization/61209
11220 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
11221
11222 2014-05-19 Nick Clifton <nickc@redhat.com>
11223
11224 * except.c (init_eh): Fix computation of builtin setjmp buffer
11225 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
11226
11227 2014-05-19 Richard Biener <rguenther@suse.de>
11228
11229 PR tree-optimization/61184
11230 * tree-vrp.c (is_negative_overflow_infinity): Use
11231 TREE_OVERFLOW_P and do that check first.
11232 (is_positive_overflow_infinity): Likewise.
11233 (is_overflow_infinity): Likewise.
11234 (vrp_operand_equal_p): Properly treat operands with
11235 differing overflow as not equal.
11236
11237 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
11238
11239 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
11240 shift simplification where it was intended.
11241
11242 2014-05-19 Christian Bruel <christian.bruel@st.com>
11243
11244 PR target/61195
11245 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
11246
11247 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
11248
11249 PR target/61084
11250 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
11251 than wide_int.
11252
11253 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
11254
11255 * reg-notes.def (CROSSING_JUMP): Likewise.
11256 * rtl.h (rtx_def): Update comment for jump flag.
11257 (CROSSING_JUMP_P): Define.
11258 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
11259 of a REG_CROSSING_JUMP note.
11260 * cfghooks.c (tidy_fallthru_edges): Likewise.
11261 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
11262 * emit-rtl.c (try_split): Likewise.
11263 * haifa-sched.c (sched_create_recovery_edges): Likewise.
11264 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
11265 * jump.c (redirect_jump_2): Likewise.
11266 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
11267 (relax_delay_slots): Likewise.
11268 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
11269 (bbit_di): Likewise.
11270 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
11271 * config/sh/sh.md (jump_compact): Likewise.
11272 * bb-reorder.c (rotate_loop): Likewise.
11273 (pass_duplicate_computed_gotos::execute): Likewise.
11274 (add_reg_crossing_jump_notes): Rename to...
11275 (update_crossing_jump_flags): ...this.
11276 (pass_partition_blocks::execute): Update accordingly.
11277
11278 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
11279
11280 * tree.h: Remove extraneous template <>.
11281
11282 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11283
11284 * ipa.c (symtab_remove_unreachable_nodes): Remove
11285 symbol from comdat group if its body was eliminated.
11286 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
11287 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
11288 (symtab_unregister_node): ... this one.
11289 (verify_symtab_base): More strict checking of comdats.
11290 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
11291
11292 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11293
11294 * tree-pass.h (make_pass_ipa_comdats): New pass.
11295 * timevar.def (TV_IPA_COMDATS): New timevar.
11296 * passes.def (pass_ipa_comdats): Add.
11297 * Makefile.in (OBJS): Add ipa-comdats.o
11298 * ipa-comdats.c: New file.
11299
11300 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11301
11302 * ipa.c (update_visibility_by_resolution_info): New function.
11303 (function_and_variable_visibility): Use it.
11304
11305 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11306
11307 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
11308 New functions.
11309 (FOR_EACH_DEFINED_SYMBOL): New macro.
11310 (varpool_first_static_initializer, varpool_next_static_initializer,
11311 varpool_first_defined_variable, varpool_next_defined_variable):
11312 Fix comments.
11313 (symtab_in_same_comdat_p): Correctly deal with inline functions.
11314
11315 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11316
11317 * ggc-page.c (ggc_handle_finalizers): Add comment.
11318
11319 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11320
11321 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
11322 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
11323 (ggc_internal_cleared_alloc): Likewise.
11324 * ggc-page.c (finalizer): New class.
11325 (vec_finalizer): Likewise.
11326 (globals::finalizers): New member.
11327 (globals::vec_finalizers): Likewise.
11328 (ggc_internal_alloc): Record the finalizer if any for the block being
11329 allocated.
11330 (ggc_handle_finalizers): New function.
11331 (ggc_collect): Call ggc_handle_finalizers.
11332 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
11333 finalizer.
11334 (ggc_internal_cleared_alloc): Likewise.
11335 (finalize): New function.
11336 (need_finalization_p): Likewise.
11337 (ggc_alloc): Install the type's destructor as the finalizer if it
11338 might do something.
11339 (ggc_cleared_alloc): Likewise.
11340 (ggc_vec_alloc): Likewise.
11341 (ggc_cleared_vec_alloc): Likewise.
11342
11343 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11344
11345 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
11346
11347 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11348
11349 * alias.c (record_alias_subset): Adjust.
11350 * bitmap.c (bitmap_element_allocate): Likewise.
11351 (bitmap_gc_alloc_stat): Likewise.
11352 * cfg.c (init_flow): Likewise.
11353 (alloc_block): Likewise.
11354 (unchecked_make_edge): Likewise.
11355 * cfgloop.c (alloc_loop): Likewise.
11356 (flow_loops_find): Likewise.
11357 (rescan_loop_exit): Likewise.
11358 * cfgrtl.c (init_rtl_bb_info): Likewise.
11359 * cgraph.c (insert_new_cgraph_node_version): Likewise.
11360 (cgraph_allocate_node): Likewise.
11361 (cgraph_create_edge_1): Likewise.
11362 (cgraph_allocate_init_indirect_info): Likewise.
11363 * cgraphclones.c (cgraph_clone_edge): Likewise.
11364 * cgraphunit.c (add_asm_node): Likewise.
11365 (init_lowered_empty_function): Likewise.
11366 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
11367 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
11368 (alpha_use_linkage): Likewise.
11369 * config/arc/arc.c (arc_init_machine_status): Likewise.
11370 * config/arm/arm.c (arm_init_machine_status): Likewise.
11371 * config/avr/avr.c (avr_init_machine_status): Likewise.
11372 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
11373 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
11374 * config/cris/cris.c (cris_init_machine_status): Likewise.
11375 * config/darwin.c (machopic_indirection_name): Likewise.
11376 (darwin_build_constant_cfstring): Likewise.
11377 (darwin_enter_string_into_cfstring_table): Likewise.
11378 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
11379 * config/frv/frv.c (frv_init_machine_status): Likewise.
11380 * config/i386/i386.c (get_dllimport_decl): Likewise.
11381 (ix86_init_machine_status): Likewise.
11382 (assign_386_stack_local): Likewise.
11383 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
11384 (i386_pe_maybe_record_exported_symbol): Likewise.
11385 (i386_pe_record_stub): Likewise.
11386 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
11387 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
11388 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
11389 (m32c_note_pragma_address): Likewise.
11390 * config/mep/mep.c (mep_init_machine_status): Likewise.
11391 (mep_note_pragma_flag): Likewise.
11392 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
11393 (mips16_local_alias): Likewise.
11394 (mips_init_machine_status): Likewise.
11395 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
11396 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
11397 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
11398 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
11399 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
11400 * config/pa/pa.c (pa_init_machine_status): Likewise.
11401 (pa_get_deferred_plabel): Likewise.
11402 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
11403 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
11404 (rs6000_init_machine_status): Likewise.
11405 (output_toc): Likewise.
11406 * config/s390/s390.c (s390_init_machine_status): Likewise.
11407 * config/score/score.c (score_output_external): Likewise.
11408 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
11409 * config/spu/spu.c (spu_init_machine_status): Likewise.
11410 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
11411 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
11412 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11413 * coverage.c (coverage_end_function): Likewise.
11414 * dbxout.c (dbxout_init): Likewise.
11415 * doc/gty.texi: Don't mention variable_size attribute.
11416 * dwarf2cfi.c (new_cfi): Adjust.
11417 (new_cfi_row): Likewise.
11418 (copy_cfi_row): Likewise.
11419 (create_cie_data): Likewise.
11420 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
11421 (new_loc_descr): Likewise.
11422 (find_AT_string_in_table): Likewise.
11423 (add_addr_table_entry): Likewise.
11424 (new_die): Likewise.
11425 (add_var_loc_to_decl): Likewise.
11426 (clone_die): Likewise.
11427 (clone_as_declaration): Likewise.
11428 (break_out_comdat_types): Likewise.
11429 (new_loc_list): Likewise.
11430 (add_loc_descr_to_each): Likewise.
11431 (add_location_or_const_value_attribute): Likewise.
11432 (add_linkage_name): Likewise.
11433 (lookup_filename): Likewise.
11434 (dwarf2out_var_location): Likewise.
11435 (new_line_info_table): Likewise.
11436 (dwarf2out_init): Likewise.
11437 (mem_loc_descriptor): Likewise.
11438 (loc_descriptor): Likewise.
11439 (add_const_value_attribute): Likewise.
11440 (tree_add_const_value_attribute): Likewise.
11441 (comp_dir_string): Likewise.
11442 (dwarf2out_vms_debug_main_pointer): Likewise.
11443 (string_cst_pool_decl): Likewise.
11444 * emit-rtl.c (set_mem_attrs): Likewise.
11445 (get_reg_attrs): Likewise.
11446 (start_sequence): Likewise.
11447 (init_emit): Likewise.
11448 (init_emit_regs): Likewise.
11449 * except.c (init_eh_for_function): Likewise.
11450 (gen_eh_region): Likewise.
11451 (gen_eh_region_catch): Likewise.
11452 (gen_eh_landing_pad): Likewise.
11453 (add_call_site): Likewise.
11454 * function.c (add_frame_space): Likewise.
11455 (insert_temp_slot_address): Likewise.
11456 (assign_stack_temp_for_type): Likewise.
11457 (get_hard_reg_initial_val): Likewise.
11458 (allocate_struct_function): Likewise.
11459 (prepare_function_start): Likewise.
11460 (types_used_by_var_decl_insert): Likewise.
11461 * gengtype.c (variable_size_p): Remove function.
11462 (enum alloc_quantity): Remove enum.
11463 (write_typed_alloc_def): Remove function.
11464 (write_typed_struct_alloc_def): Likewise.
11465 (write_typed_typedef_alloc_def): Likewise.
11466 (write_typed_alloc_defns): Likewise.
11467 (main): Adjust.
11468 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
11469 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
11470 * ggc.h (ggc_alloc): new function.
11471 (ggc_cleared_alloc): Likewise.
11472 (ggc_vec_alloc): Template on type of vector element, and remove
11473 element size argument.
11474 (ggc_cleared_vec_alloc): Likewise.
11475 * gimple.c (gimple_build_omp_for): Adjust.
11476 (gimple_copy): Likewise.
11477 * ipa-cp.c (get_replacement_map): Likewise.
11478 (find_aggregate_values_for_callers_subset): Likewise.
11479 (known_aggs_to_agg_replacement_list): Likewise.
11480 * ipa-devirt.c (get_odr_type): Likewise.
11481 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
11482 (read_agg_replacement_chain): Likewise.
11483 * loop-iv.c (get_simple_loop_desc): Likewise.
11484 * lto-cgraph.c (input_node_opt_summary): Likewise.
11485 * lto-section-in.c (lto_new_in_decl_state): Likewise.
11486 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
11487 (input_eh_region): Likewise.
11488 (input_eh_lp): Likewise.
11489 (input_cfg): Likewise.
11490 * optabs.c (set_optab_libfunc): Likewise.
11491 (init_tree_optimization_optabs): Likewise.
11492 (set_conv_libfunc): Likewise.
11493 * passes.c (do_per_function_toporder): Likewise.
11494 * rtl.h: Don't use variable_size gty attribute.
11495 * sese.c (if_region_set_false_region): Adjust.
11496 * stringpool.c (gt_pch_save_stringpool): Likewise.
11497 * target-globals.c (save_target_globals): Likewise.
11498 * toplev.c (general_init): Likewise.
11499 * trans-mem.c (record_tm_replacement): Likewise.
11500 (split_bb_make_tm_edge): Likewise.
11501 * tree-cfg.c (move_sese_region_to_fn): Likewise.
11502 * tree-data-ref.h (lambda_vector_new): Likewise.
11503 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
11504 * tree-iterator.c (tsi_link_before): Likewise.
11505 (tsi_link_after): Likewise.
11506 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
11507 * tree-ssa-loop-niter.c (record_estimate): Likewise.
11508 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
11509 * tree-ssa-operands.h: Don't use variable_size gty attribute.
11510 * tree-ssa.c (init_tree_ssa): Adjust.
11511 * tree-ssanames.c (set_range_info): Likewise.
11512 (get_ptr_info): Likewise.
11513 (duplicate_ssa_name_ptr_info): Likewise.
11514 (duplicate_ssa_name_range_info): Likewise.
11515 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
11516 (unpack_ts_fixed_cst_value_fields): Likewise.
11517 * tree.c (build_fixed): Likewise.
11518 (build_real): Likewise.
11519 (build_string): Likewise.
11520 (decl_priority_info): Likewise.
11521 (decl_debug_expr_insert): Likewise.
11522 (decl_value_expr_insert): Likewise.
11523 (decl_debug_args_insert): Likewise.
11524 (type_hash_add): Likewise.
11525 (build_omp_clause): Likewise.
11526 * ubsan.c (decl_for_type_insert): Likewise.
11527 * varasm.c (get_unnamed_section): Likewise.
11528 (get_noswitch_section): Likewise.
11529 (get_section): Likewise.
11530 (get_block_for_section): Likewise.
11531 (create_block_symbol): Likewise.
11532 (build_constant_desc): Likewise.
11533 (create_constant_pool): Likewise.
11534 (force_const_mem): Likewise.
11535 (record_tm_clone_pair): Likewise.
11536 * varpool.c (varpool_create_empty_node): Likewise.
11537
11538 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11539
11540 * dwarf2out.c (tree_add_const_value_attribute): Call
11541 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
11542 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
11543 instead of ggc_internal_<x>alloc_stat.
11544 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
11545 (ggc_realloc): Likewise.
11546 * ggc-none.c (ggc_internal_alloc): Likewise.
11547 (ggc_internal_cleared_alloc): Likewise.
11548 * ggc-page.c: Likewise.
11549 * ggc.h (ggc_internal_alloc_stat): Likewise.
11550 (ggc_internal_alloc): Remove macro.
11551 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
11552 (ggc_internal_cleared_alloc): Remove macro.
11553 (GGC_RESIZEVEC): Adjust.
11554 (ggc_resizevar): Remove macro.
11555 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
11556 (ggc_internal_cleared_vec_alloc_stat): Likewise.
11557 (ggc_internal_vec_cleared_alloc): Remove macro.
11558 (ggc_alloc_atomic_stat): Drop _stat suffix.
11559 (ggc_alloc_atomic): Remove macro.
11560 (ggc_alloc_cleared_atomic): Remove macro.
11561 (ggc_alloc_string_stat): Drop _stat suffix.
11562 (ggc_alloc_string): Remove macro.
11563 (ggc_alloc_rtx_def_stat): Adjust.
11564 (ggc_alloc_tree_node_stat): Likewise.
11565 (ggc_alloc_cleared_tree_node_stat): Likewise.
11566 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
11567 (ggc_alloc_cleared_simd_clone_stat): Likewise.
11568 * gimple.c (gimple_build_omp_for): Likewise.
11569 (gimple_copy): Likewise.
11570 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
11571 * toplev.c (realloc_for_line_map): Adjust.
11572 * tree-data-ref.h (lambda_vector_new): Likewise.
11573 * tree-phinodes.c (allocate_phi_node): Likewise.
11574 * tree.c (grow_tree_vec_stat): Likewise.
11575 * vec.h (va_gc::reserve): Adjust.
11576
11577 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
11578
11579 * config/microblaze/microblaze.c (break_handler): New Declaration.
11580 (microblaze_break_function_p,microblaze_is_break_handler): New.
11581 (compute_frame_size): Use microblaze_break_function_p.
11582 Add the test of break_handler.
11583 (microblaze_function_prologue) : Add the test of variable
11584 break_handler. Check the fnname by BREAK_HANDLER_NAME.
11585 (microblaze_function_epilogue) : Add the test of break_handler.
11586 (microblaze_globalize_label) : Add the test of break_handler.
11587 Check the name by BREAK_HANDLER_NAME.
11588
11589 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
11590
11591 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
11592 microblaze_is_break_handler test.
11593 (call_internal1,call_value_intern): Use microblaze_break_function_p.
11594 Use SYMBOL_REF_DECL.
11595
11596 * config/microblaze/microblaze-protos.h
11597 (microblaze_break_function_p,microblaze_is_break_handler):
11598 New Declaration.
11599
11600 * doc/extend.texi (MicroBlaze break_handler Functions): Document
11601 new MicroBlaze break_handler functions.
11602
11603 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11604
11605 * doc/extend.texi (Size of an asm): Move node text according
11606 to its @menu entry position.
11607
11608 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
11609
11610 PR tree-optimization/61140
11611 PR tree-optimization/61150
11612 PR tree-optimization/61197
11613 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
11614
11615 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11616
11617 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
11618
11619 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
11620
11621 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
11622 __SIZEOF_INT128__ is defined.
11623
11624 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11625
11626 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
11627 (rs6000_delegitimize_address): Use it.
11628
11629 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11630
11631 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
11632 inplace argument. Store the new address in the original MEM when true.
11633 * emit-rtl.c (change_address_1): Likewise.
11634 (adjust_address_1, adjust_automodify_address_1, offset_address):
11635 Update accordingly.
11636 * rtl.h (plus_constant): Add an inplace argument.
11637 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
11638 when true. Avoid generating (plus X (const_int 0)).
11639 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
11640 in-place. Pass true to plus_constant.
11641 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
11642
11643 2014-05-16 Dehao Chen <dehao@google.com>
11644
11645 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
11646
11647 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11648
11649 PR target/54089
11650 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
11651 patterns.
11652 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
11653
11654 2014-05-16 Dehao Chen <dehao@google.com>
11655
11656 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
11657 optimize_function_for_size_p.
11658 * regs.h (REG_FREQ_FROM_BB): Likewise.
11659
11660 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11661
11662 PR target/51244
11663 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
11664 negt_reg_operand cases.
11665 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
11666 predicate.
11667 * config/sh/predicates.md (cbranch_treg_value): Simplify.
11668
11669 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11670
11671 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
11672 target variants.
11673
11674 2014-05-16 David Malcolm <dmalcolm@redhat.com>
11675
11676 Revert:
11677 2014-04-29 David Malcolm <dmalcolm@redhat.com>
11678
11679 * tree-cfg.c (dump_function_to_file): Dump the return type of
11680 functions, in a line to itself before the function body, mimicking
11681 the layout of a C function.
11682
11683 2014-05-16 Dehao Chen <dehao@google.com>
11684
11685 * cfghooks.c (make_forwarder_block): Use direct computation to
11686 get fall-through edge's count and frequency.
11687
11688 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
11689
11690 * config/arc/arc.c (arc_init): Fix typo in error message.
11691 * config/i386/i386.c (ix86_expand_builtin): Likewise.
11692 (split_stack_prologue_scratch_regno): Likewise.
11693 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
11694 word from error message.
11695
11696 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11697
11698 * ira-costs.c: Fix typo in comment.
11699
11700 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
11701
11702 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
11703
11704 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
11705
11706 * varpool.c (dump_varpool_node): Dump write-only flag.
11707 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
11708 write-only flag.
11709 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
11710 write-only variables.
11711 * ipa.c (process_references): New function.
11712 (set_readonly_bit): New function.
11713 (set_writeonly_bit): New function.
11714 (clear_addressable_bit): New function.
11715 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
11716 fix handling of aliases.
11717 * cgraph.h (struct varpool_node): Add writeonly flag.
11718
11719 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
11720
11721 PR rtl-optimization/60969
11722 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
11723 Calculate costs for this case.
11724
11725 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
11726
11727 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
11728 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
11729
11730 2014-05-16 Richard Biener <rguenther@suse.de>
11731
11732 PR tree-optimization/61194
11733 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
11734 bool patterns ending in a COND_EXPR.
11735
11736 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11737
11738 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
11739
11740 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11741
11742 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
11743 where we were unable to cost an RTX.
11744
11745 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11746
11747 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
11748 HIGH, LO_SUM.
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 TRUNCATE.
11754
11755 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11756 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11757
11758 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
11759 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
11760
11761 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11762 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11763
11764 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
11765 operators.
11766
11767 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11768 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11769
11770 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11771 DIV/MOD.
11772
11773 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11774 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11775
11776 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
11777 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
11778
11779 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11780 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11781
11782 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11783 rotates and shifts.
11784
11785 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11786 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11787
11788 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
11789 ZERO_EXTEND and SIGN_EXTEND better.
11790
11791 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11792 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11793
11794 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
11795 logical operations.
11796
11797 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11798 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11799
11800 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
11801 costs when costing loads and stores to memory.
11802
11803 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11804 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
11805
11806 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
11807 for SET RTX.
11808
11809 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11810
11811 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
11812
11813 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11814 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11815
11816 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
11817 to...
11818 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
11819 well formed.
11820 (aarch64_rtx_mult_cost): New.
11821 (aarch64_rtx_costs): Use it, refactor as appropriate.
11822
11823 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11824 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11825
11826 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
11827 emit instructions, return number of instructions which would
11828 be emitted.
11829 (aarch64_add_constant): Update call to aarch64_build_constant.
11830 (aarch64_output_mi_thunk): Likewise.
11831 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
11832 a CONST_DOUBLE.
11833
11834 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11835
11836 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
11837 (TARGET_RTX_COSTS): Call it.
11838
11839 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11840
11841 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
11842 (cortexa57_vector_cost): Likewise.
11843 (cortexa57_tunings): Use them.
11844
11845 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11846
11847 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
11848 (cpu_addrcost_table): Use it.
11849 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
11850 (aarch64_address_cost): Rewrite using aarch64_classify_address,
11851 move it.
11852
11853 2014-05-16 Richard Biener <rguenther@suse.de>
11854
11855 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
11856 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
11857 (visit_phi): Ignore edges marked as not executable.
11858 (class cond_dom_walker): New.
11859 (cond_dom_walker::before_dom_children): Value-number
11860 control statements and mark successor edges as not
11861 executable if possible.
11862 (run_scc_vn): First walk all control statements in
11863 dominator order, marking edges as not executable.
11864 * tree-inline.c (copy_edges_for_bb): Be not confused
11865 about random edge flags.
11866
11867 2014-05-16 Richard Biener <rguenther@suse.de>
11868
11869 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
11870
11871 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
11872
11873 PR target/61193
11874 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
11875 (__TM_simple_begin): Use it.
11876 (__TM_begin): Likewise.
11877
11878 2014-05-15 Martin Jambor <mjambor@suse.cz>
11879
11880 PR ipa/61085
11881 * ipa-prop.c (update_indirect_edges_after_inlining): Check
11882 type_preserved flag when the indirect edge is polymorphic.
11883
11884 2014-05-15 Martin Jambor <mjambor@suse.cz>
11885
11886 PR tree-optimization/61090
11887 * tree-sra.c (sra_modify_expr): Pass the current gsi to
11888 build_ref_for_model.
11889
11890 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11891
11892 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
11893 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
11894
11895 2014-05-15 Jakub Jelinek <jakub@redhat.com>
11896
11897 PR tree-optimization/61158
11898 * fold-const.c (fold_binary_loc): If X is zero-extended and
11899 shiftc >= prec, make sure zerobits is all ones instead of
11900 invoking undefined behavior.
11901
11902 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11903
11904 * regcprop.h: New file.
11905 * regcprop.c (skip_debug_insn_p): New decl.
11906 (replace_oldest_value_reg): Check skip_debug_insn_p.
11907 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
11908 * shrink-wrap.c: Include regcprop.h.
11909 (prepare_shrink_wrap): Call
11910 copyprop_hardreg_forward_bb_without_debug_insn.
11911
11912 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11913
11914 * shrink-wrap.h: Update comment.
11915 * shrink-wrap.c: Update comment.
11916 (next_block_for_reg): Rename to live_edge_for_reg.
11917 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
11918 (move_insn_for_shrink_wrap): Split live_edge.
11919 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
11920
11921 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11922
11923 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
11924 Delete.
11925 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
11926 * config/sparc/sparc.md (fptype_ut699): New attribute.
11927 (in_branch_delay): Return false if -mfix-ut699 is specified and
11928 fptype_ut699 is set to single.
11929 (truncdfsf2): Add fptype_ut699 attribute.
11930 (fix_truncdfsi2): Likewise.
11931 (floatsisf2): Change fptype attribute.
11932 (fix_truncsfsi2): Likewise.
11933 (negtf2_notv9): Delete.
11934 (negtf2_v9): Likewise.
11935 (negtf2_hq): New instruction.
11936 (negtf2): New instruction and splitter.
11937 (negdf2_notv9): Rewrite.
11938 (abstf2_notv9): Delete.
11939 (abstf2_hq_v9): Likewise.
11940 (abstf2_v9): Likewise.
11941 (abstf2_hq): New instruction.
11942 (abstf2): New instruction and splitter.
11943 (absdf2_notv9): Rewrite.
11944
11945 2014-05-14 Cary Coutant <ccoutant@google.com>
11946
11947 PR debug/61013
11948 * opts.c (common_handle_option): Don't special-case "-g".
11949 (set_debug_level): Default to at least level 2 with "-g".
11950
11951 2014-05-14 DJ Delorie <dj@redhat.com>
11952
11953 * config/msp430/msp430.c (msp430_builtin): Add
11954 MSP430_BUILTIN_DELAY_CYCLES.
11955 (msp430_init_builtins): Register void __delay_cycles(long long).
11956 (msp430_builtin_decl): Add it.
11957 (cg_magic_constant): New.
11958 (msp430_expand_delay_cycles): New.
11959 (msp430_expand_builtin): Call it.
11960 (msp430_print_operand_raw): Change integer printing from "int" to
11961 HOST_WIDE_INT.
11962 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
11963 (delay_cycles_start): New.
11964 (delay_cycles_end): New.
11965 (delay_cycles_32): New.
11966 (delay_cycles_32x): New.
11967 (delay_cycles_16): New.
11968 (delay_cycles_16x): New.
11969 (delay_cycles_2): New.
11970 (delay_cycles_1): New.
11971 * doc/extend.texi: Document __delay_cycles().
11972
11973 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
11974
11975 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
11976 length attribute computation.
11977
11978 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
11979
11980 PR debug/61188
11981 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
11982
11983 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
11984
11985 PR target/61084
11986 * config/sparc/sparc.md: Fix types of low and high in DI constant
11987 splitter. Use gen_int_mode in some other splitters.
11988
11989 2014-05-14 Martin Jambor <mjambor@suse.cz>
11990
11991 PR ipa/60897
11992 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
11993
11994 2014-05-14 James Norris <jnorris@codesourcery.com>
11995
11996 * omp-low.c (expand_parallel_call): Remove shadow variable.
11997 (expand_omp_taskreg): Likewise.
11998
11999 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
12000
12001 * common/config/i386/i386-common.c
12002 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
12003 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
12004 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
12005 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
12006 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
12007 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
12008 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
12009 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
12010 xsavecintrin.h, xsavesintrin.h.
12011 (x86_64-*-*): Ditto.
12012 * config/i386/clflushoptintrin.h: New.
12013 * config/i386/xsavecintrin.h: Ditto.
12014 * config/i386/xsavesintrin.h: Ditto.
12015 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
12016 (bit_XSAVES): Ditto.
12017 (bit_XSAVES): Ditto.
12018 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
12019 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
12020 -mno-clflushopt.
12021 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12022 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
12023 OPTION_MASK_ISA_XSAVES.
12024 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
12025 -mxsavec, -mxsaves.
12026 (PTA_CLFLUSHOPT) Define.
12027 (PTA_XSAVEC): Ditto.
12028 (PTA_XSAVES): Ditto.
12029 (ix86_option_override_internal): Handle new options.
12030 (ix86_valid_target_attribute_inner_p): Ditto.
12031 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
12032 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
12033 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
12034 (bdesc_special_args): Add __builtin_ia32_xsaves,
12035 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
12036 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
12037 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
12038 (ix86_expand_builtin): Handle new builtins.
12039 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
12040 (TARGET_CLFLUSHOPT_P): Ditto.
12041 (TARGET_XSAVEC): Ditto.
12042 (TARGET_XSAVEC_P): Ditto.
12043 (TARGET_XSAVES): Ditto.
12044 (TARGET_XSAVES_P): Ditto.
12045 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
12046 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
12047 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
12048 (ANY_XRSTOR): New.
12049 (ANY_XRSTOR64): Ditto.
12050 (xrstor): Ditto.
12051 (xrstor): Change into <xrstor>.
12052 (xrstor_rex64): Change into <xrstor>_rex64.
12053 (xrstor64): Change into <xrstor>64
12054 (clflushopt): New.
12055 * config/i386/i386.opt (mclflushopt): New.
12056 (mxsavec): Ditto.
12057 (mxsaves): Ditto.
12058 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
12059 xsavecintrin.h.
12060 * doc/invoke.texi: Document new options.
12061
12062 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
12063
12064 PR rtl-optimization/60866
12065 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
12066 Default it to -1. Pass it down to init_simplejump_data.
12067 (init_simplejump_data): New parameter old_seqno. Pass it down
12068 to get_seqno_for_a_jump.
12069 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
12070 initializing new jump seqno as a last resort. Add comment.
12071 (sel_redirect_edge_and_branch): Save old seqno of the conditional
12072 jump and pass it down to sel_init_new_insn.
12073 (sel_redirect_edge_and_branch_force): Likewise.
12074
12075 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
12076
12077 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
12078 shifted values to avoid build warning.
12079
12080 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
12081
12082 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
12083 * cfgrtl.c (rtl_merge_blocks): Fix comment.
12084 (cfg_layout_merge_blocks): Likewise.
12085 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
12086
12087 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
12088
12089 PR rtl-optimization/60901
12090 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
12091 bb predecessor belongs to the same scheduling region. Adjust comment.
12092
12093 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
12094
12095 * doc/sourcebuild.texi: (dfp_hw): Document.
12096 (p8vector_hw): Likewise.
12097 (powerpc_eabi_ok): Likewise.
12098 (powerpc_elfv2): Likewise.
12099 (powerpc_htm_ok): Likewise.
12100 (ppc_recip_hw): Likewise.
12101 (vsx_hw): Likewise.
12102
12103 2014-05-13 Cary Coutant <ccoutant@google.com>
12104
12105 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
12106
12107 2014-05-13 David Malcolm <dmalcolm@redhat.com>
12108
12109 * gengtype-parse.c (require3): Eliminate in favor of...
12110 (require4): New.
12111 (require_template_declaration): Update to support optional single *
12112 on a type.
12113
12114 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
12115 (create_user_defined_type): Handle a single level of explicit
12116 pointerness within template arguments.
12117 (struct write_types_data): Add field "kind".
12118 (filter_type_name): Handle "*" character.
12119 (write_user_func_for_structure_ptr): Require a write_types_data
12120 rather than just a prefix string, so that we can look up the kind
12121 of the wtd and use it as an index into wrote_user_func_for_ptr,
12122 ensuring that such functions are written at most once. Support
12123 subclasses by invoking the marking function of the ultimate base class.
12124 (write_user_func_for_structure_body): Require a write_types_data
12125 rather than just a prefix string, so that we can pass this to
12126 write_user_func_for_structure_ptr.
12127 (write_func_for_structure): Likewise.
12128 (ggc_wtd): Add initializer of new "kind" field.
12129 (pch_wtd): Likewise.
12130
12131 * gengtype.h (enum write_types_kinds): New.
12132 (struct type): Add field wrote_user_func_for_ptr to the "s"
12133 union member.
12134
12135 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
12136
12137 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
12138 instead of const_binop.
12139 (fold_binary_loc): Likewise.
12140
12141 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
12142
12143 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
12144 calculation to match get_ref_base_and_extent.
12145
12146 2014-05-13 Catherine Moore <clm@codesourcery.com>
12147 Sandra Loosemore <sandra@codesourcery.com>
12148
12149 * configure.ac: Fix assembly for explicit JALR relocation check.
12150 * configure: Regenerate.
12151
12152 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12153
12154 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
12155 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
12156 Remove associated type declarations and initialisations.
12157 (arm_expand_neon_builtin): Likewise.
12158 (neon_emit_pair_result_insn): Delete.
12159 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
12160 * config/arm/neon.md (neon_vtrn<mode>): Delete.
12161 (neon_vzip<mode>): Likewise.
12162 (neon_vuzp<mode>): Likewise.
12163
12164 2014-05-13 Richard Biener <rguenther@suse.de>
12165
12166 PR ipa/60973
12167 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
12168 it needs revisiting whether the call still may be tail-called.
12169
12170 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12171
12172 * rtl.def (SYMBOL_REF): Remove middle "0" field.
12173 * rtl.h (block_symbol): Reduce number of fields to 2.
12174 (rtx_def): Add u2.symbol_ref_flags.
12175 (SYMBOL_REF_FLAGS): Use it.
12176 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
12177 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
12178 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
12179 Lower index of SYMBOL_REF_DATA.
12180 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
12181 Print SYMBOL_REF_FLAGS at the same time.
12182 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
12183
12184 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12185
12186 * rtl.def (VAR_LOCATION): Remove "i" field.
12187 * rtl.h (rtx_def): Add u2.var_location_status.
12188 (PAT_VAR_LOCATION_STATUS): Use it.
12189 (gen_rtx_VAR_LOCATION): Declare.
12190 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
12191 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
12192 * var-tracking.c (emit_note_insn_var_location): Remove casts.
12193
12194 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12195
12196 * rtl.def (scratch): Fix outdated comment and remove "0" field.
12197 * gengtype.c (adjust_field_rtx_def): Update accordingly.
12198
12199 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12200
12201 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
12202 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
12203 * rtl.h (rtx_def): Add insn_uid to u2 field.
12204 (RTX_FLAG_CHECK8): Delete in favor of...
12205 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
12206 (INSN_DELETED_P): Update accordingly.
12207 (INSN_UID): Use u2.insn_uid.
12208 (INSN_CHAIN_CODE_P): Define.
12209 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
12210 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
12211 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
12212 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
12213 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
12214 indices accordingly.
12215 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
12216 Update indices for insn-chain rtxes.
12217 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
12218 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
12219 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
12220 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
12221 * combine.c (try_combine): Likewise.
12222 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12223
12224 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12225
12226 * rtl.def (REG): Remove middle field.
12227 * rtl.h (rtx_def): Add orignal_regno to u2.
12228 (ORIGINAL_REGNO): Use it instead of field 1.
12229 (REG_ATTRS): Lower field index accordingly.
12230 * gengtype.c (adjust_field_rtx_def): Remove handling of
12231 ORIGINAL_REGNO. Move REG_ATTRS index down.
12232 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
12233 code that prints the REGNO.
12234
12235 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12236
12237 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
12238 GENERATOR_FILE.
12239
12240 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12241
12242 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
12243
12244 2014-05-13 Bin Cheng <bin.cheng@arm.com>
12245
12246 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
12247 (alloc_iv): Lower base expressions containing ADDR_EXPR.
12248
12249 2014-05-13 Ian Bolton <ian.bolton@arm.com>
12250
12251 * config/aarch64/aarch64-protos.h
12252 (aarch64_hard_regno_caller_save_mode): New prototype.
12253 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
12254 New function.
12255 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
12256
12257 2014-05-13 Christian Bruel <christian.bruel@st.com>
12258
12259 * target.def (mode_switching): New hook vector.
12260 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
12261 (mode_exit, modepriority_to_mode): Likewise.
12262 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
12263 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12264 * target.h: Include tm.h and hard-reg-set.h.
12265 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
12266 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
12267 * doc/tm.texi Regenerate.
12268 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
12269 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12270 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
12271 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
12272 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
12273 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12274 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
12275 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
12276 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
12277 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
12278 (ix86_emit_mode_set): Hookify.
12279 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
12280 Delete.
12281 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12282 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
12283 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
12284 (epiphany_mode_priority_to_mode): Remove declaration.
12285 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
12286 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
12287 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
12288 Likewise.
12289 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
12290 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
12291 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
12292
12293 2014-05-13 Jakub Jelinek <jakub@redhat.com>
12294
12295 PR target/61060
12296 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
12297 is const0_rtx, return immediately. Don't test count == 0 when
12298 it is always true.
12299
12300 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12301
12302 * Makefile.in: add shrink-wrap.o.
12303 * config/i386/i386.c: include "shrink-wrap.h"
12304 * function.c: Likewise.
12305 (requires_stack_frame_p, next_block_for_reg,
12306 move_insn_for_shrink_wrap, prepare_shrink_wrap,
12307 dup_block_and_redirect): Move to shrink-wrap.c
12308 (thread_prologue_and_epilogue_insns): Extract three code segments
12309 as functions in shrink-wrap.c
12310 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
12311 shrink-wrap.h
12312 * shrink-wrap.c: New file.
12313 * shrink-wrap.h: New file.
12314
12315 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
12316
12317 * doc/extend.texi: Reflect current numbers of pragmas. Remove
12318 reference to Solaris.
12319
12320 2014-05-12 Mike Stump <mikestump@comcast.net>
12321
12322 PR other/31778
12323 * genattrtab.c (filename): Add.
12324 (convert_set_attr_alternative): Improve error message.
12325 (check_defs): Restore read_md_filename for error messages.
12326 (gen_insn): Save filename.
12327
12328 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
12329
12330 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
12331 -fno-local-ivars and -fivar-visibility.
12332 * c-family/c.opt: Make -Wshadow also implicitly enable
12333 -Wshadow-ivar.
12334
12335 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
12336
12337 * doc/tm.texi: Remove reference to deleted macro.
12338 * doc/tm.texi.in: Likewise.
12339
12340 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12341
12342 PR target/60991
12343 * config/avr/avr.c (avr_out_store_psi): Use correct constant
12344 to restore Y.
12345
12346 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
12347
12348 PR libgcc/61152
12349 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
12350 * config/arm/aout.h (License): Same.
12351 * config/arm/bpabi.h (License): Same.
12352 * config/arm/elf.h (License): Same.
12353 * config/arm/linux-elf.h (License): Same.
12354 * config/arm/linux-gas.h (License): Same.
12355 * config/arm/netbsd-elf.h (License): Same.
12356 * config/arm/uclinux-eabi.h (License): Same.
12357 * config/arm/uclinux-elf.h (License): Same.
12358 * config/arm/vxworks.h (License): Same.
12359
12360 2014-05-11 Jakub Jelinek <jakub@redhat.com>
12361
12362 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
12363 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
12364 number of operands to 3.
12365 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
12366 * tree-nested.c (convert_nonlocal_omp_clauses,
12367 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
12368 * gimplify.c (gimplify_scan_omp_clauses): Handle
12369 OMP_CLAUSE_LINEAR_STMT.
12370 * omp-low.c (lower_rec_input_clauses): Fix typo.
12371 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
12372 cast between Fortran boolean_type_node and C _Bool if
12373 needed.
12374
12375 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
12376
12377 PR tree-optimization/61136
12378 * wide-int.h (multiple_of_p): Define a version that doesn't return
12379 the quotient.
12380 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
12381 integer_zerop/const_binop pair.
12382 (multiple_of_p): Likewise, converting both operands to widest_int
12383 precision.
12384
12385 2014-05-09 Teresa Johnson <tejohnson@google.com>
12386
12387 * cgraphunit.c (analyze_functions): Use correct dump file.
12388
12389 2014-05-09 Florian Weimer <fweimer@redhat.com>
12390
12391 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
12392 expand_used_vars.
12393 (stack_protect_return_slot_p): New function.
12394 (expand_used_vars): Call stack_protect_decl_p and
12395 stack_protect_return_slot_p for -fstack-protector-strong.
12396
12397 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
12398 Andrew Haley <aph@redhat.com>
12399 Richard Sandiford <rdsandiford@googlemail.com>
12400
12401 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
12402 pages.
12403
12404 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
12405
12406 PR middle-end/61111
12407 * fold-const.c (fold_binary_loc): Changed width of mask.
12408
12409 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
12410
12411 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
12412 unsigned int initializers for regno_in, regno_out.
12413
12414 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
12415
12416 PR target/61055
12417 * config/avr/avr.md (cc): Add new attribute set_vzn.
12418 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
12419 Set cc insn attribute to set_vzn instead of set_zn for alternatives
12420 with INC, DEC or NEG.
12421 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
12422 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
12423 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
12424
12425 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12426
12427 Revert:
12428 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12429
12430 * wide-int.cc (UTItype): Define.
12431 (UDWtype): Define for appropriate W_TYPE_SIZE.
12432
12433 2014-05-09 Richard Biener <rguenther@suse.de>
12434
12435 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
12436 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
12437 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
12438 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
12439 ssa_propagate): Adjust.
12440
12441 2014-05-08 Jeff Law <law@redhat.com>
12442
12443 PR tree-optimization/61009
12444 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
12445 tri-state rather than a boolean. When a block is too big to
12446 thread through, inform caller via negative return value.
12447 (thread_across_edge): If a block was too big for normal threading,
12448 then it's too big for a joiner too, so remove temporary equivalences
12449 and return immediately.
12450
12451 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12452 Matthias Klose <doko@ubuntu.com>
12453
12454 PR driver/61106
12455 * optc-gen.awk: Fix option handling for -Wunused-parameter.
12456
12457 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
12458
12459 PR target/59952
12460 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
12461
12462 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
12463
12464 PR target/61092
12465 * config/alpha/alpha.c: Include gimple-iterator.h.
12466 (alpha_gimple_fold_builtin): New function. Move
12467 ALPHA_BUILTIN_UMULH folding from ...
12468 (alpha_fold_builtin): ... here.
12469 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
12470
12471 2014-05-08 Wei Mi <wmi@google.com>
12472
12473 PR target/58066
12474 * config/i386/i386.c (ix86_compute_frame_layout): Update
12475 preferred_stack_boundary for call, expanded from tls descriptor.
12476 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
12477 to depend on SP register.
12478 (*tls_local_dynamic_base_32_gnu): Ditto.
12479 (*tls_local_dynamic_32_once): Ditto.
12480 (tls_global_dynamic_64_<mode>): Set
12481 ix86_tls_descriptor_calls_expanded_in_cfun.
12482 (tls_local_dynamic_base_64_<mode>): Ditto.
12483 (tls_global_dynamic_32): Set
12484 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
12485 to depend on SP register.
12486 (tls_local_dynamic_base_32): Ditto.
12487
12488 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12489
12490 * config/arm/arm_neon.h: Update comment.
12491 * config/arm/neon-docgen.ml: Delete.
12492 * config/arm/neon-gen.ml: Delete.
12493 * doc/arm-neon-intrinsics.texi: Update comment.
12494
12495 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12496
12497 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
12498 and v4sf versions.
12499 (vand, vorr, veor, vorn, vbic): Remove.
12500 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
12501 iterator.
12502 (neon_vsub_unspec): Likewise.
12503 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
12504
12505 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12506
12507 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
12508 (vadd_s16): Likewise.
12509 (vadd_s32): Likewise.
12510 (vadd_f32): Likewise.
12511 (vadd_u8): Likewise.
12512 (vadd_u16): Likewise.
12513 (vadd_u32): Likewise.
12514 (vadd_s64): Likewise.
12515 (vadd_u64): Likewise.
12516 (vaddq_s8): Likewise.
12517 (vaddq_s16): Likewise.
12518 (vaddq_s32): Likewise.
12519 (vaddq_s64): Likewise.
12520 (vaddq_f32): Likewise.
12521 (vaddq_u8): Likewise.
12522 (vaddq_u16): Likewise.
12523 (vaddq_u32): Likewise.
12524 (vaddq_u64): Likewise.
12525 (vmul_s8): Likewise.
12526 (vmul_s16): Likewise.
12527 (vmul_s32): Likewise.
12528 (vmul_f32): Likewise.
12529 (vmul_u8): Likewise.
12530 (vmul_u16): Likewise.
12531 (vmul_u32): Likewise.
12532 (vmul_p8): Likewise.
12533 (vmulq_s8): Likewise.
12534 (vmulq_s16): Likewise.
12535 (vmulq_s32): Likewise.
12536 (vmulq_f32): Likewise.
12537 (vmulq_u8): Likewise.
12538 (vmulq_u16): Likewise.
12539 (vmulq_u32): Likewise.
12540 (vsub_s8): Likewise.
12541 (vsub_s16): Likewise.
12542 (vsub_s32): Likewise.
12543 (vsub_f32): Likewise.
12544 (vsub_u8): Likewise.
12545 (vsub_u16): Likewise.
12546 (vsub_u32): Likewise.
12547 (vsub_s64): Likewise.
12548 (vsub_u64): Likewise.
12549 (vsubq_s8): Likewise.
12550 (vsubq_s16): Likewise.
12551 (vsubq_s32): Likewise.
12552 (vsubq_s64): Likewise.
12553 (vsubq_f32): Likewise.
12554 (vsubq_u8): Likewise.
12555 (vsubq_u16): Likewise.
12556 (vsubq_u32): Likewise.
12557 (vsubq_u64): Likewise.
12558 (vand_s8): Likewise.
12559 (vand_s16): Likewise.
12560 (vand_s32): Likewise.
12561 (vand_u8): Likewise.
12562 (vand_u16): Likewise.
12563 (vand_u32): Likewise.
12564 (vand_s64): Likewise.
12565 (vand_u64): Likewise.
12566 (vandq_s8): Likewise.
12567 (vandq_s16): Likewise.
12568 (vandq_s32): Likewise.
12569 (vandq_s64): Likewise.
12570 (vandq_u8): Likewise.
12571 (vandq_u16): Likewise.
12572 (vandq_u32): Likewise.
12573 (vandq_u64): Likewise.
12574 (vorr_s8): Likewise.
12575 (vorr_s16): Likewise.
12576 (vorr_s32): Likewise.
12577 (vorr_u8): Likewise.
12578 (vorr_u16): Likewise.
12579 (vorr_u32): Likewise.
12580 (vorr_s64): Likewise.
12581 (vorr_u64): Likewise.
12582 (vorrq_s8): Likewise.
12583 (vorrq_s16): Likewise.
12584 (vorrq_s32): Likewise.
12585 (vorrq_s64): Likewise.
12586 (vorrq_u8): Likewise.
12587 (vorrq_u16): Likewise.
12588 (vorrq_u32): Likewise.
12589 (vorrq_u64): Likewise.
12590 (veor_s8): Likewise.
12591 (veor_s16): Likewise.
12592 (veor_s32): Likewise.
12593 (veor_u8): Likewise.
12594 (veor_u16): Likewise.
12595 (veor_u32): Likewise.
12596 (veor_s64): Likewise.
12597 (veor_u64): Likewise.
12598 (veorq_s8): Likewise.
12599 (veorq_s16): Likewise.
12600 (veorq_s32): Likewise.
12601 (veorq_s64): Likewise.
12602 (veorq_u8): Likewise.
12603 (veorq_u16): Likewise.
12604 (veorq_u32): Likewise.
12605 (veorq_u64): Likewise.
12606 (vbic_s8): Likewise.
12607 (vbic_s16): Likewise.
12608 (vbic_s32): Likewise.
12609 (vbic_u8): Likewise.
12610 (vbic_u16): Likewise.
12611 (vbic_u32): Likewise.
12612 (vbic_s64): Likewise.
12613 (vbic_u64): Likewise.
12614 (vbicq_s8): Likewise.
12615 (vbicq_s16): Likewise.
12616 (vbicq_s32): Likewise.
12617 (vbicq_s64): Likewise.
12618 (vbicq_u8): Likewise.
12619 (vbicq_u16): Likewise.
12620 (vbicq_u32): Likewise.
12621 (vbicq_u64): Likewise.
12622 (vorn_s8): Likewise.
12623 (vorn_s16): Likewise.
12624 (vorn_s32): Likewise.
12625 (vorn_u8): Likewise.
12626 (vorn_u16): Likewise.
12627 (vorn_u32): Likewise.
12628 (vorn_s64): Likewise.
12629 (vorn_u64): Likewise.
12630 (vornq_s8): Likewise.
12631 (vornq_s16): Likewise.
12632 (vornq_s32): Likewise.
12633 (vornq_s64): Likewise.
12634 (vornq_u8): Likewise.
12635 (vornq_u16): Likewise.
12636 (vornq_u32): Likewise.
12637 (vornq_u64): Likewise.
12638
12639 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12640
12641 * wide-int.cc (UTItype): Define.
12642 (UDWtype): Define for appropriate W_TYPE_SIZE.
12643
12644 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
12645
12646 PR tree-optimization/59100
12647 * tree-ssa-phiopt.c: Include tree-inline.h.
12648 (neutral_element_p, absorbing_element_p): New functions.
12649 (value_replacement): Handle conditional binary operations with a
12650 neutral or absorbing element.
12651
12652 2014-05-08 Richard Biener <rguenther@suse.de>
12653
12654 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
12655 folding the expression.
12656 (valueize_expr): Remove.
12657 (visit_reference_op_load): Do not valueize the result of
12658 vn_get_expr_for.
12659 (simplify_binary_expression): Likewise.
12660 (simplify_unary_expression): Likewise.
12661
12662 2014-05-08 Richard Biener <rguenther@suse.de>
12663
12664 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
12665 looking at TYPE_ARG_TYPES.
12666
12667 2014-05-08 Richard Biener <rguenther@suse.de>
12668
12669 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12670 pointer propagation special-case.
12671
12672 2014-05-08 Bin Cheng <bin.cheng@arm.com>
12673
12674 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
12675 core part of address expressions.
12676
12677 2014-05-08 Alan Modra <amodra@gmail.com>
12678
12679 PR target/60737
12680 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
12681 loads and stores when -mno-strict-align at any alignment.
12682 (expand_block_clear): Similarly. Also correct calculation of
12683 instruction count.
12684
12685 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12686
12687 PR middle-end/39246
12688 * tree-complex.c (expand_complex_move): Keep line info when expanding
12689 complex move.
12690 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
12691 of complex expression. Use new argument to display correct location
12692 for values coming from phi statement.
12693 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
12694 (warn_uninitialized_phi): Pass location of phi argument to
12695 warn_uninit.
12696 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
12697 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
12698
12699 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12700
12701 * config/rs6000/predicates.md (indexed_address_mem): New.
12702 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
12703 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
12704 fpstore_ux, fpstore_u.
12705 (sign_extend, indexed, update): New.
12706 (cell_micro): Adjust.
12707 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
12708 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
12709 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
12710 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
12711 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12712 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
12713 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
12714 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
12715 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
12716 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
12717 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
12718 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
12719 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
12720 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
12721 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
12722
12723 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
12724 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
12725 *vsx_extract_<mode>_store): Adjust.
12726 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
12727 is_cracked_insn, insn_must_be_first_in_group,
12728 insn_must_be_last_in_group): Adjust.
12729
12730 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
12731 Adjust.
12732 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
12733 ppc440-fpstore): Adjust.
12734 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
12735 ppc476-fpstore): Adjust.
12736 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
12737 ppc601-fpstore): Adjust.
12738 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
12739 Adjust.
12740 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
12741 Adjust.
12742 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
12743 ppc7450-fpstore): Adjust.
12744 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
12745 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
12746 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
12747 Adjust.
12748 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
12749 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
12750 cell-fpstore, cell-fpstore-update): Adjust.
12751 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
12752 ppce300c3_store, ppce300c3_fpstore): Adjust.
12753 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
12754 e500mc_fpstore): Adjust.
12755 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
12756 e500mc64_store, e500mc64_fpstore): Adjust.
12757 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
12758 e5500_fpstore): Adjust.
12759 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
12760 e6500_fpstore): Adjust.
12761 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
12762 Adjust.
12763 * config/rs6000/power4.md (power4-load, power4-load-ext,
12764 power4-load-ext-update, power4-load-ext-update-indexed,
12765 power4-load-update-indexed, power4-load-update, power4-fpload,
12766 power4-fpload-update, power4-store, power4-store-update,
12767 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
12768 Adjust.
12769 * config/rs6000/power5.md (power5-load, power5-load-ext,
12770 power5-load-ext-update, power5-load-ext-update-indexed,
12771 power5-load-update-indexed, power5-load-update, power5-fpload,
12772 power5-fpload-update, power5-store, power5-store-update,
12773 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
12774 Adjust.
12775 * config/rs6000/power6.md (power6-load, power6-load-ext,
12776 power6-load-update, power6-load-update-indexed,
12777 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
12778 power6-fpload-update, power6-store, power6-store-update,
12779 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
12780 Adjust.
12781 * config/rs6000/power7.md (power7-load, power7-load-ext,
12782 power7-load-update, power7-load-update-indexed,
12783 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
12784 power7-fpload-update, power7-store, power7-store-update,
12785 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
12786 Adjust.
12787 * config/rs6000/power8.md (power8-load, power8-load-update,
12788 power8-load-ext, power8-load-ext-update, power8-fpload,
12789 power8-fpload-update, power8-store, power8-store-update-indexed,
12790 power8-fpstore, power8-fpstore-update): Adjust.
12791 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
12792 Adjust.
12793 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
12794 titan_lsu_store, titan_lsu_fpstore): Adjust.
12795 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
12796
12797 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
12798
12799 PR target/60884
12800 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
12801 unrolled byte insns. Emit address increments after move insns.
12802
12803 2014-05-07 David Malcolm <dmalcolm@redhat.com>
12804
12805 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
12806 const_gimple, rather than a gimple.
12807 (gimple_call_builtin_p): Likewise, for the three variants.
12808
12809 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
12810 (gimple_call_builtin_p): Likewise, for the three variants.
12811
12812 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12813
12814 PR tree-optimization/61095
12815 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
12816
12817 2014-05-07 Richard Biener <rguenther@suse.de>
12818
12819 PR tree-optimization/61034
12820 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
12821 (maybe_skip_until): Use translate to take into account
12822 lattices when trying to do disambiguations.
12823 (get_continuation_for_phi_1): Likewise.
12824 (get_continuation_for_phi): Adjust for added translate arguments.
12825 (walk_non_aliased_vuses): Likewise.
12826 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
12827 (walk_non_aliased_vuses): Likewise.
12828 (call_may_clobber_ref_p_1): Declare.
12829 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
12830 calls. Stop early if we are only supposed to disambiguate.
12831 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12832
12833 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
12834
12835 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
12836 Emit an error when the function has arguments.
12837
12838 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12839
12840 * cfgloop.h (unswitch_loops): Remove.
12841 * doc/passes.texi: Remove references to loop-unswitch.c
12842 * timevar.def (TV_LOOP_UNSWITCH): Remove.
12843
12844 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
12845
12846 * tree-vect-data-refs.c (vect_grouped_load_supported): New
12847 check for loads group of length 3.
12848 (vect_permute_load_chain): New permutations for loads group of
12849 length 3.
12850 * tree-vect-stmts.c (vect_model_load_cost): Change cost
12851 of vec_perm_shuffle for the new permutations.
12852
12853 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
12854
12855 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
12856 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
12857 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
12858 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
12859 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
12860 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
12861 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
12862 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
12863
12864 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12865
12866 * loop-unswitch.c: Delete.
12867
12868 2014-05-07 Richard Biener <rguenther@suse.de>
12869
12870 * config.gcc: Always set need_64bit_hwint to yes.
12871
12872 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
12873
12874 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
12875 of using optimize_size.
12876
12877 2014-05-06 Mike Stump <mikestump@comcast.net>
12878
12879 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
12880
12881 2014-05-06 Joseph Myers <joseph@codesourcery.com>
12882
12883 * config/i386/sse.md (*mov<mode>_internal)
12884 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
12885 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
12886 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
12887 (*<code><mode>3, *andnot<mode>3<mask_name>)
12888 (<mask_codefor><code><mode>3<mask_name>): Only consider
12889 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
12890
12891 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12892
12893 Revert:
12894 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12895
12896 * lra-constraints.c (valid_address_p): Move earlier in file.
12897 Add a constraint argument to the address_info version.
12898 (satisfies_memory_constraint_p): New function.
12899 (satisfies_address_constraint_p): Likewise.
12900 (process_alt_operands, curr_insn_transform): Use them.
12901 (process_address): Pass the constraint to valid_address_p when
12902 checking address operands.
12903
12904 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
12905
12906 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
12907 to their respective blocks. Fix inadvertent use of "node".
12908
12909 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12910
12911 * emit-rtl.c (init_derived_machine_modes): New functionm, split
12912 out from...
12913 (init_emit_once): ...here.
12914 * rtl.h (init_derived_machine_modes): Declare.
12915 * toplev.c (do_compile): Call it even if no_backend.
12916
12917 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
12918 Mike Stump <mikestump@comcast.net>
12919 Richard Sandiford <rdsandiford@googlemail.com>
12920 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12921
12922 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
12923 (rtx_equal_for_memref_p): Update comment.
12924 (adjust_offset_for_component_ref): Use wide-int interfaces.
12925 * builtins.c (get_object_alignment_2): Likewise.
12926 (c_readstr): Likewise.
12927 (target_char_cast): Add comment.
12928 (determine_block_size): Use wide-int interfaces.
12929 (expand_builtin_signbit): Likewise.
12930 (fold_builtin_int_roundingfn): Likewise.
12931 (fold_builtin_bitop): Likewise.
12932 (fold_builtin_bswap): Likewise.
12933 (fold_builtin_logarithm): Use signop.
12934 (fold_builtin_pow): Likewise.
12935 (fold_builtin_memory_op): Use wide-int interfaces.
12936 (fold_builtin_object_size): Likewise.
12937 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
12938 nb_iterations_estimate.
12939 (record_niter_bound): Use wide-int interfaces.
12940 (get_estimated_loop_iterations_int): Likewise.
12941 (get_estimated_loop_iterations): Likewise.
12942 (get_max_loop_iterations): Likewise.
12943 * cfgloop.h: Include wide-int.h.
12944 (struct nb_iter_bound): Change bound to widest_int.
12945 (struct loop): Change nb_iterations_upper_bound and
12946 nb_iterations_estimate to widest_int.
12947 (record_niter_bound): Switch to use widest_int.
12948 (get_estimated_loop_iterations): Likewise.
12949 (get_max_loop_iterations): Likewise.
12950 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
12951 update for wide-int.
12952 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
12953 * combine.c (try_combine): Likewise.
12954 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
12955 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
12956 interfaces.
12957 (aarch64_float_const_representable_p): Likewise.
12958 * config/arc/arc.c: Include wide-int.h.
12959 (arc_can_use_doloop_p): Use wide-int interfaces.
12960 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
12961 (vfp3_const_double_index): Likewise.
12962 * config/avr/avr.c (avr_out_round): Likewise.
12963 (avr_fold_builtin): Likewise.
12964 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
12965 (bfin_can_use_doloop_p): Likewise.
12966 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
12967 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
12968 * config/i386/i386.c: Include wide-int.h.
12969 (ix86_data_alignment): Use wide-int interfaces.
12970 (ix86_local_alignment): Likewise.
12971 (ix86_emit_swsqrtsf): Update real_from_integer.
12972 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
12973 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12974 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
12975 (zero_constant): Likewise.
12976 (input_operand): Likewise.
12977 (splat_input_operand): Likewise.
12978 (non_logical_cint_operand): Change const_double to const_wide_int.
12979 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
12980 (easy_altivec_constant): Remove comment.
12981 (paired_expand_vector_init): Use CONSTANT_P.
12982 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
12983 (rs6000_emit_move): Update checks.
12984 (rs6000_aggregate_candidate): Use wide-int interfaces.
12985 (rs6000_expand_ternop_builtin): Likewise.
12986 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
12987 (rs6000_assemble_integer): Likewise.
12988 (rs6000_hash_constant): Likewise.
12989 (output_toc): Likewise.
12990 (rs6000_rtx_costs): Likewise.
12991 (rs6000_emit_swrsqrt); Update call to real_from_integer.
12992 * config/rs6000/rs6000-c.c: Include wide-int.h.
12993 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
12994 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
12995 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
12996 Handle CONST_WIDE_INT.
12997 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
12998 Use tree_fits_uhwi_p.
12999 * config/sparc/sparc.c: Include wide-int.h.
13000 (sparc_fold_builtin): Use wide-int interfaces.
13001 * config/vax/vax.c: Include wide-int.h.
13002 (vax_float_literal): Use real_from_integer.
13003 * coretypes.h (struct hwivec_def): New.
13004 (hwivec): New.
13005 (const_hwivec): New.
13006 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
13007 (equiv_constant): Handle CONST_WIDE_INT.
13008 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
13009 (cselib_hash_rtx): Handle CONST_WIDE_INT.
13010 * dbxout.c (stabstr_U): Use wide-int interfaces.
13011 (dbxout_type): Update to use cst_fits_shwi_p.
13012 * defaults.h (LOG2_BITS_PER_UNIT): Define.
13013 (TARGET_SUPPORTS_WIDE_INT): Add default.
13014 * dfp.c: Include wide-int.h.
13015 (decimal_real_to_integer2): Use wide-int interfaces and rename to
13016 decimal_real_to_integer.
13017 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
13018 decimal_real_to_integer.
13019 * doc/generic.texi (Constant expressions): Update for wide_int.
13020 * doc/rtl.texi (const_double): Likewise.
13021 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
13022 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
13023 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
13024 (REAL_VALUE_FROM_INT): Remove.
13025 (TARGET_SUPPORTS_WIDE_INT): New.
13026 * doc/tm.texi: Regenerate.
13027 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
13028 * double-int.h: Include wide-int.h.
13029 (struct wi::int_traits): New.
13030 * dwarf2out.c (get_full_len): New.
13031 (dw_val_equal_p): Add case dw_val_class_wide_int.
13032 (size_of_loc_descr): Likewise.
13033 (output_loc_operands): Likewise.
13034 (insert_double): Remove.
13035 (insert_wide_int): New.
13036 (add_AT_wide): New.
13037 (print_die): Add case dw_val_class_wide_int.
13038 (attr_checksum): Likewise.
13039 (attr_checksum_ordered): Likewise.
13040 (same_dw_val_p): Likewise.
13041 (size_of_die): Likewise.
13042 (value_format): Likewise.
13043 (output_die): Likewise.
13044 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
13045 Use wide-int.
13046 (clz_loc_descriptor): Use wide-int interfaces.
13047 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
13048 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
13049 (round_up_to_align): Use wide-int interfaces.
13050 (field_byte_offset): Likewise.
13051 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
13052 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
13053 CONST_DOUBLE handling. Use wide-int interfaces.
13054 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
13055 (gen_enumeration_type_die): Use add_AT_wide.
13056 (hash_loc_operands): Add case dw_val_class_wide_int.
13057 (compare_loc_operands): Likewise.
13058 * dwarf2out.h: Include wide-int.h.
13059 (wide_int_ptr): New.
13060 (enum dw_val_class): Add dw_val_class_wide_int.
13061 (struct dw_val_struct): Add val_wide.
13062 * emit-rtl.c (const_wide_int_htab): New.
13063 (const_wide_int_htab_hash): New.
13064 (const_wide_int_htab_eq): New.
13065 (lookup_const_wide_int): New.
13066 (const_double_htab_hash): Use wide-int interfaces.
13067 (const_double_htab_eq): Likewise.
13068 (rtx_to_double_int): Conditionally compile for wide-int.
13069 (immed_double_int_const): Rename to immed_wide_int_const and
13070 update for wide-int.
13071 (immed_double_const): Conditionally compile for wide-int.
13072 (init_emit_once): Use wide-int interfaces.
13073 * explow.c (plus_constant): Likewise.
13074 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
13075 (lshift_value): Use wide-int interfaces.
13076 (expand_mult): Likewise.
13077 (choose_multiplier): Likewise.
13078 (expand_smod_pow2): Likewise.
13079 (make_tree): Likewise.
13080 * expr.c (convert_modes): Consolidate handling of constants.
13081 Use wide-int interfaces.
13082 (emit_group_load_1): Add note.
13083 (store_expr): Update comment.
13084 (get_inner_reference): Use wide-int interfaces.
13085 (expand_constructor): Update comment.
13086 (expand_expr_real_2): Use wide-int interfaces.
13087 (expand_expr_real_1): Likewise.
13088 (reduce_to_bit_field_precision): Likewise.
13089 (const_vector_from_tree): Likewise.
13090 * final.c: Include wide-int-print.h.
13091 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
13092 * fixed-value.c: Include wide-int.h.
13093 (fixed_from_string): Use wide-int interfaces.
13094 (fixed_to_decimal): Likewise.
13095 (fixed_convert_from_real): Likewise.
13096 (real_convert_from_fixed): Likewise.
13097 * fold-const.h (mem_ref_offset): Return an offset_int.
13098 (div_if_zero_remainder): Remove code parameter.
13099 * fold-const.c (div_if_zero_remainder): Remove code parameter.
13100 Use wide-int interfaces.
13101 (may_negate_without_overflow_p): Use wide-int interfaces.
13102 (negate_expr_p): Likewise.
13103 (fold_negate_expr): Likewise.
13104 (int_const_binop_1): Likewise.
13105 (const_binop): Likewise.
13106 (fold_convert_const_int_from_int): Likewise.
13107 (fold_convert_const_int_from_real): Likewise.
13108 (fold_convert_const_int_from_fixed): Likewise.
13109 (fold_convert_const_fixed_from_int): Likewise.
13110 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
13111 (sign_bit_p): Use wide-int interfaces.
13112 (make_range_step): Likewise.
13113 (build_range_check): Likewise. Pass an integer of the correct type
13114 instead of using integer_one_node.
13115 (range_predecessor): Pass an integer of the correct type instead
13116 of using integer_one_node.
13117 (range_successor): Likewise.
13118 (merge_ranges): Likewise.
13119 (unextend): Use wide-int interfaces.
13120 (extract_muldiv_1): Likewise.
13121 (fold_div_compare): Likewise.
13122 (fold_single_bit_test): Likewise.
13123 (fold_sign_changed_comparison): Likewise.
13124 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
13125 (fold_plusminus_mult_expr): Use wide-int interfaces.
13126 (native_encode_int): Likewise.
13127 (native_interpret_int): Likewise.
13128 (fold_unary_loc): Likewise.
13129 (pointer_may_wrap_p): Likewise.
13130 (size_low_cst): Likewise.
13131 (mask_with_tz): Likewise.
13132 (fold_binary_loc): Likewise.
13133 (fold_ternary_loc): Likewise.
13134 (multiple_of_p): Likewise.
13135 (tree_call_nonnegative_warnv_p): Update calls to
13136 tree_int_cst_min_precision and real_from_integer.
13137 (fold_negate_const): Use wide-int interfaces.
13138 (fold_abs_const): Likewise.
13139 (fold_relational_const): Use tree_int_cst_lt.
13140 (round_up_loc): Use wide-int interfaces.
13141 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
13142 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
13143 * gengtype.c: Remove include of double-int.h.
13144 (do_typedef): Use wide-int interfaces.
13145 (open_base_files): Add wide-int.h.
13146 (main): Add offset_int and widest_int typedefs.
13147 * gengtype-lex.l: Handle "^".
13148 (CXX_KEYWORD): Add "static".
13149 * gengtype-parse.c (require3): New.
13150 (require_template_declaration): Handle constant template arguments
13151 and nested templates.
13152 * gengtype-state.c: Don't include "double-int.h".
13153 * genpreds.c (write_one_predicate_function): Update comment.
13154 (write_tm_constrs_h): Add check for hval and lval use in
13155 CONST_WIDE_INT.
13156 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
13157 (add_to_sequence): Likewise.
13158 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
13159 and const_double_operand.
13160 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
13161 interfaces.
13162 * gimple-fold.c (get_base_constructor): Likewise.
13163 (fold_array_ctor_reference): Likewise.
13164 (fold_nonarray_ctor_reference): Likewise.
13165 (fold_const_aggregate_ref_1): Likewise.
13166 (gimple_val_nonnegative_real_p): Likewise.
13167 (gimple_fold_indirect_ref): Likewise.
13168 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
13169 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
13170 (struct slsr_cand_d): Change index to be widest_int.
13171 (struct incr_info_d): Change incr to be widest_int.
13172 (alloc_cand_and_find_basis): Use wide-int interfaces.
13173 (slsr_process_phi): Likewise.
13174 (backtrace_base_for_ref): Likewise. Return a widest_int.
13175 (restructure_reference): Take a widest_int instead of a double_int.
13176 (slsr_process_ref): Use wide-int interfaces.
13177 (create_mul_ssa_cand): Likewise.
13178 (create_mul_imm_cand): Likewise.
13179 (create_add_ssa_cand): Likewise.
13180 (create_add_imm_cand): Take a widest_int instead of a double_int.
13181 (slsr_process_add): Use wide-int interfaces.
13182 (slsr_process_cast): Likewise.
13183 (slsr_process_copy): Likewise.
13184 (dump_candidate): Likewise.
13185 (dump_incr_vec): Likewise.
13186 (replace_ref): Likewise.
13187 (cand_increment): Likewise. Return a widest_int.
13188 (cand_abs_increment): Likewise.
13189 (replace_mult_candidate): Take a widest_int instead of a double_int.
13190 (replace_unconditional_candidate): Use wide-int interfaces.
13191 (incr_vec_index): Take a widest_int instead of a double_int.
13192 (create_add_on_incoming_edge): Likewise.
13193 (create_phi_basis): Use wide-int interfaces.
13194 (replace_conditional_candidate): Likewise.
13195 (record_increment): Take a widest_int instead of a double_int.
13196 (record_phi_increments): Use wide-int interfaces.
13197 (phi_incr_cost): Take a widest_int instead of a double_int.
13198 (lowest_cost_path): Likewise.
13199 (total_savings): Likewise.
13200 (analyze_increments): Use wide-int interfaces.
13201 (ncd_with_phi): Take a widest_int instead of a double_int.
13202 (ncd_of_cand_and_phis): Likewise.
13203 (nearest_common_dominator_for_cands): Likewise.
13204 (insert_initializers): Use wide-int interfaces.
13205 (all_phi_incrs_profitable): Likewise.
13206 (replace_one_candidate): Likewise.
13207 (replace_profitable_candidates): Likewise.
13208 * godump.c: Include wide-int-print.h.
13209 (go_output_typedef): Use wide-int interfaces.
13210 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
13211 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
13212 (build_loop_iteration_domains): Likewise.
13213 * hooks.h: Include wide-int.h rather than double-int.h.
13214 (hook_bool_dint_dint_uint_bool_true): Delete.
13215 (hook_bool_wint_wint_uint_bool_true): Declare.
13216 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
13217 (hook_bool_wint_wint_uint_bool_true): New.
13218 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
13219 interfaces.
13220 (ubsan_expand_si_overflow_mul_check): Likewise.
13221 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
13222 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
13223 (get_ancestor_addr_info): Likewise.
13224 (ipa_modify_call_arguments): Likewise.
13225 * loop-doloop.c (doloop_modify): Likewise.
13226 (doloop_optimize): Likewise.
13227 * loop-iv.c (iv_number_of_iterations): Likewise.
13228 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
13229 (unroll_loop_constant_iterations): Likewise.
13230 (decide_unroll_runtime_iterations): Likewise.
13231 (unroll_loop_runtime_iterations): Likewise.
13232 (decide_peel_simple): Likewise.
13233 (decide_unroll_stupid): Likewise.
13234 * lto-streamer-in.c (streamer_read_wi): Add.
13235 (input_cfg): Use wide-int interfaces.
13236 (lto_input_tree_1): Likewise.
13237 * lto-streamer-out.c (streamer_write_wi): Add.
13238 (hash_tree): Use wide-int interfaces.
13239 (output_cfg): Likewise.
13240 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
13241 (GTFILES): Add wide-int.h and signop.h.
13242 (TAGS): Look for .cc files too.
13243 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
13244 * optabs.c (expand_subword_shift): Likewise.
13245 (expand_doubleword_shift): Likewise.
13246 (expand_absneg_bit): Likewise.
13247 (expand_copysign_absneg): Likewise.
13248 (expand_copysign_bit): Likewise.
13249 * postreload.c (reload_cse_simplify_set): Likewise.
13250 * predict.c (predict_iv_comparison): Likewise.
13251 * pretty-print.h: Include wide-int-print.h.
13252 (pp_wide_int) New.
13253 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
13254 * print-tree.c: Include wide-int-print.h.
13255 (print_node_brief): Use wide-int interfaces.
13256 (print_node): Likewise.
13257 * read-rtl.c (validate_const_wide_int): New.
13258 (read_rtx_code): Add CONST_WIDE_INT case.
13259 * real.c: Include wide-int.h.
13260 (real_to_integer2): Delete.
13261 (real_to_integer): New function, returning a wide_int.
13262 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
13263 (ten_to_ptwo): Update call to real_from_integer.
13264 (real_digit): Likewise.
13265 * real.h: Include signop.h, wide-int.h and insn-modes.h.
13266 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
13267 (REAL_VALUE_TO_INT): Delete.
13268 (real_to_integer): Declare a wide-int form.
13269 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
13270 * recog.c (const_int_operand): Improve comment.
13271 (const_scalar_int_operand): New.
13272 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
13273 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
13274 (split_double): Likewise.
13275 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
13276 (rtx_size): Likewise.
13277 (rtx_alloc_stat_v): New.
13278 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
13279 (cwi_output_hex): New.
13280 (iterative_hash_rtx): Handle CONST_WIDE_INT.
13281 (cwi_check_failed_bounds): New.
13282 * rtl.def (CONST_WIDE_INT): New.
13283 * rtl.h: Include <utility> and wide-int.h.
13284 (struct hwivec_def): New.
13285 (CWI_GET_NUM_ELEM): New.
13286 (CWI_PUT_NUM_ELEM): New.
13287 (struct rtx_def): Add num_elem and hwiv.
13288 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
13289 (CASE_CONST_UNIQUE): Likewise.
13290 (CASE_CONST_ANY): Likewise.
13291 (CONST_SCALAR_INT_P): Likewise.
13292 (CONST_WIDE_INT_P): New.
13293 (CWI_ELT): New.
13294 (HWIVEC_CHECK): New.
13295 (cwi_check_failed_bounds): New.
13296 (CWI_ELT): New.
13297 (HWIVEC_CHECK): New.
13298 (CONST_WIDE_INT_VEC) New.
13299 (CONST_WIDE_INT_NUNITS) New.
13300 (CONST_WIDE_INT_ELT) New.
13301 (rtx_mode_t): New type.
13302 (wi::int_traits <rtx_mode_t>): New.
13303 (wi::shwi): New.
13304 (wi::min_value): New.
13305 (wi::max_value): New.
13306 (rtx_alloc_v) New.
13307 (const_wide_int_alloc): New.
13308 (immed_wide_int_const): New.
13309 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
13310 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
13311 * signop.h: New file.
13312 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
13313 (simplify_const_unary_operation): Use wide-int interfaces.
13314 (simplify_binary_operation_1): Likewise.
13315 (simplify_const_binary_operation): Likewise.
13316 (simplify_const_relational_operation): Likewise.
13317 (simplify_immed_subreg): Likewise.
13318 * stmt.c (expand_case): Likewise.
13319 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
13320 signop rather than a bool.
13321 * stor-layout.c (layout_type): Use wide-int interfaces.
13322 (initialize_sizetypes): Update calls to
13323 set_min_and_max_values_for_integral_type.
13324 (set_min_and_max_values_for_integral_type): Take a signop rather
13325 than a bool. Use wide-int interfaces.
13326 (fixup_signed_type): Update accordingly. Remove
13327 HOST_BITS_PER_DOUBLE_INT limit.
13328 (fixup_unsigned_type): Likewise.
13329 * system.h (STATIC_CONSTANT_P): New.
13330 (STATIC_ASSERT): New.
13331 * target.def (can_use_doloop_p): Take widest_ints rather than
13332 double_ints.
13333 * target.h: Include wide-int.h rather than double-int.h.
13334 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
13335 than double_ints.
13336 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
13337 rather than INT_CST_LT_UNSIGNED.
13338 (can_use_doloop_if_innermost): Take widest_ints rather than
13339 double_ints.
13340 * tree-affine.c: Include wide-int-print.h.
13341 (double_int_ext_for_comb): Delete.
13342 (wide_int_ext_for_comb): New.
13343 (aff_combination_zero): Use wide-int interfaces.
13344 (aff_combination_const): Take a widest_int instead of a double_int.
13345 (aff_combination_elt): Use wide-int interfaces.
13346 (aff_combination_scale): Take a widest_int instead of a double_int.
13347 (aff_combination_add_elt): Likewise.
13348 (aff_combination_add_cst): Likewise.
13349 (aff_combination_add): Use wide-int interfaces.
13350 (aff_combination_convert): Likewise.
13351 (tree_to_aff_combination): Likewise.
13352 (add_elt_to_tree): Take a widest_int instead of a double_int.
13353 (aff_combination_to_tree): Use wide-int interfaces.
13354 (aff_combination_remove_elt): Likewise.
13355 (aff_combination_add_product): Take a widest_int instead of
13356 a double_int.
13357 (aff_combination_mult): Use wide-int interfaces.
13358 (aff_combination_expand): Likewise.
13359 (double_int_constant_multiple_p): Delete.
13360 (wide_int_constant_multiple_p): New.
13361 (aff_combination_constant_multiple_p): Take a widest_int pointer
13362 instead of a double_int pointer.
13363 (print_aff): Use wide-int interfaces.
13364 (get_inner_reference_aff): Take a widest_int pointer
13365 instead of a double_int pointer.
13366 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
13367 * tree-affine.h: Include wide-int.h.
13368 (struct aff_comb_elt): Change type of coef to widest_int.
13369 (struct affine_tree_combination): Change type of offset to widest_int.
13370 (double_int_ext_for_comb): Delete.
13371 (wide_int_ext_for_comb): New.
13372 (aff_combination_const): Use widest_int instead of double_int.
13373 (aff_combination_scale): Likewise.
13374 (aff_combination_add_elt): Likewise.
13375 (aff_combination_constant_multiple_p): Likewise.
13376 (get_inner_reference_aff): Likewise.
13377 (aff_comb_cannot_overlap_p): Likewise.
13378 (aff_combination_zero_p): Use wide-int interfaces.
13379 * tree.c: Include tree.h.
13380 (init_ttree): Use make_int_cst.
13381 (tree_code_size): Removed code for INTEGER_CST case.
13382 (tree_size): Add INTEGER_CST case.
13383 (make_node_stat): Update comment.
13384 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
13385 (build_int_cst_type): Use wide-int interfaces.
13386 (double_int_to_tree): Likewise.
13387 (double_int_fits_to_tree_p): Delete.
13388 (force_fit_type_double): Delete.
13389 (force_fit_type): New.
13390 (int_cst_hash_hash): Use wide-int interfaces.
13391 (int_cst_hash_eq): Likewise.
13392 (build_int_cst_wide): Delete.
13393 (wide_int_to_tree): New.
13394 (cache_integer_cst): Use wide-int interfaces.
13395 (build_low_bits_mask): Likewise.
13396 (cst_and_fits_in_hwi): Likewise.
13397 (real_value_from_int_cst): Likewise.
13398 (make_int_cst_stat): New.
13399 (integer_zerop): Use wide_int interfaces.
13400 (integer_onep): Likewise.
13401 (integer_all_onesp): Likewise.
13402 (integer_pow2p): Likewise.
13403 (integer_nonzerop): Likewise.
13404 (tree_log2): Likewise.
13405 (tree_floor_log2): Likewise.
13406 (tree_ctz): Likewise.
13407 (int_size_in_bytes): Likewise.
13408 (mem_ref_offset): Return an offset_int rather than a double_int.
13409 (build_type_attribute_qual_variant): Use wide_int interfaces.
13410 (type_hash_eq): Likewise
13411 (tree_int_cst_equal): Likewise.
13412 (tree_int_cst_lt): Delete.
13413 (tree_int_cst_compare): Likewise.
13414 (tree_fits_shwi_p): Use wide_int interfaces.
13415 (tree_fits_uhwi_p): Likewise.
13416 (tree_int_cst_sign_bit): Likewise.
13417 (tree_int_cst_sgn): Likewise.
13418 (tree_int_cst_min_precision): Take a signop rather than a bool.
13419 (simple_cst_equal): Use wide_int interfaces.
13420 (compare_tree_int): Likewise.
13421 (iterative_hash_expr): Likewise.
13422 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
13423 INT_CST_LT.
13424 (get_type_static_bounds): Use wide_int interfaces.
13425 (tree_int_cst_elt_check_failed): New.
13426 (build_common_tree_nodes): Reordered to set prec before filling in
13427 value.
13428 (int_cst_value): Check cst_and_fits_in_hwi.
13429 (widest_int_cst_value): Use wide_int interfaces.
13430 (upper_bound_in_type): Likewise.
13431 (lower_bound_in_type): Likewise.
13432 (num_ending_zeros): Likewise.
13433 (drop_tree_overflow): Likewise.
13434 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
13435 (gen_conditions_for_pow_cst_base): Likewise.
13436 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
13437 (group_case_labels_stmt): Use wide-int interfaces.
13438 (verify_gimple_assign_binary): Likewise.
13439 (print_loop): Likewise.
13440 * tree-chrec.c (tree_fold_binomial): Likewise.
13441 * tree-core.h (struct tree_base): Add int_length.
13442 (struct tree_int_cst): Change rep of value.
13443 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
13444 (dr_may_alias_p): Likewise.
13445 (max_stmt_executions_tree): Likewise.
13446 * tree.def (INTEGER_CST): Update comment.
13447 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
13448 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
13449 * tree-dump.c: Include wide-int.h and wide-int-print.h.
13450 (dequeue_and_dump): Use wide-int interfaces.
13451 * tree.h: Include wide-int.h.
13452 (NULL_TREE): Moved to earlier loc in file.
13453 (TREE_INT_CST_ELT_CHECK): New.
13454 (tree_int_cst_elt_check_failed): New.
13455 (TYPE_SIGN): New.
13456 (TREE_INT_CST): Delete.
13457 (TREE_INT_CST_LOW): Use wide-int interfaces.
13458 (TREE_INT_CST_HIGH): Delete.
13459 (TREE_INT_CST_NUNITS): New.
13460 (TREE_INT_CST_EXT_NUNITS): Likewise.
13461 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
13462 (TREE_INT_CST_ELT): Likewise.
13463 (INT_CST_LT): Delete.
13464 (tree_int_cst_elt_check): New (two forms).
13465 (type_code_size): Update comment.
13466 (make_int_cst_stat, make_int_cst): New.
13467 (tree_to_double_int): Delete.
13468 (double_int_fits_to_tree_p): Delete.
13469 (force_fit_type_double): Delete.
13470 (build_int_cstu): Replace with out-of-line function.
13471 (build_int_cst_wide): Delete.
13472 (tree_int_cst_lt): Define inline.
13473 (tree_int_cst_le): New.
13474 (tree_int_cst_compare): Define inline.
13475 (tree_int_cst_min_precision): Take a signop rather than a bool.
13476 (wi::int_traits <const_tree>): New.
13477 (wi::int_traits <tree>): New.
13478 (wi::extended_tree): New.
13479 (wi::int_traits <wi::extended_tree>): New.
13480 (wi::to_widest): New.
13481 (wi::to_offset): New.
13482 (wi::fits_to_tree_p): New.
13483 (wi::min_value): New.
13484 (wi::max_value): New.
13485 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
13486 (copy_tree_body_r): Likewise.
13487 * tree-object-size.c (compute_object_offset): Likewise.
13488 (addr_object_size): Likewise.
13489 * tree-predcom.c: Include wide-int-print.h.
13490 (struct dref_d): Change type of offset to widest_int.
13491 (dump_dref): Call wide-int printer.
13492 (aff_combination_dr_offset): Use wide-int interfaces.
13493 (determine_offset): Take a widest_int pointer rather than a
13494 double_int pointer.
13495 (split_data_refs_to_components): Use wide-int interfaces.
13496 (suitable_component_p): Likewise.
13497 (order_drefs): Likewise.
13498 (add_ref_to_chain): Likewise.
13499 (valid_initializer_p): Likewise.
13500 (determine_roots_comp): Likewise.
13501 * tree-pretty-print.c: Include wide-int-print.h.
13502 (dump_generic_node): Use wide-int interfaces.
13503 * tree-sra.c (sra_ipa_modify_expr): Likewise.
13504 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
13505 (move_fixed_address_to_symbol): Likewise.
13506 (move_hint_to_base): Likewise.
13507 (move_pointer_to_base): Likewise.
13508 (move_variant_to_index): Likewise.
13509 (most_expensive_mult_to_index): Likewise.
13510 (addr_to_parts): Likewise.
13511 (copy_ref_info): Likewise.
13512 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
13513 (indirect_refs_may_alias_p): Likewise.
13514 (stmt_kills_ref_p_1): Likewise.
13515 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
13516 * tree-ssa-ccp.c: Update comment at top of file. Include
13517 wide-int-print.h.
13518 (struct prop_value_d): Change type of mask to widest_int.
13519 (extend_mask): New function.
13520 (dump_lattice_value): Use wide-int interfaces.
13521 (get_default_value): Likewise.
13522 (set_constant_value): Likewise.
13523 (set_value_varying): Likewise.
13524 (valid_lattice_transition): Likewise.
13525 (set_lattice_value): Likewise.
13526 (value_to_double_int): Delete.
13527 (value_to_wide_int): New.
13528 (get_value_from_alignment): Use wide-int interfaces.
13529 (get_value_for_expr): Likewise.
13530 (do_dbg_cnt): Likewise.
13531 (ccp_finalize): Likewise.
13532 (ccp_lattice_meet): Likewise.
13533 (bit_value_unop_1): Use widest_ints rather than double_ints.
13534 (bit_value_binop_1): Likewise.
13535 (bit_value_unop): Use wide-int interfaces.
13536 (bit_value_binop): Likewise.
13537 (bit_value_assume_aligned): Likewise.
13538 (evaluate_stmt): Likewise.
13539 (ccp_fold_stmt): Likewise.
13540 (visit_cond_stmt): Likewise.
13541 (ccp_visit_stmt): Likewise.
13542 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13543 (constant_pointer_difference): Likewise.
13544 (associate_pointerplus): Likewise.
13545 (combine_conversions): Likewise.
13546 * tree-ssa-loop.h: Include wide-int.h.
13547 (struct tree_niter_desc): Change type of max to widest_int.
13548 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
13549 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
13550 (remove_redundant_iv_tests): Likewise.
13551 (canonicalize_loop_induction_variables): Likewise.
13552 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
13553 (constant_multiple_of): Take a widest_int pointer instead of
13554 a double_int pointer.
13555 (get_computation_aff): Use wide-int interfaces.
13556 (ptr_difference_cost): Likewise.
13557 (difference_cost): Likewise.
13558 (get_loop_invariant_expr_id): Likewise.
13559 (get_computation_cost_at): Likewise.
13560 (iv_elimination_compare_lt): Likewise.
13561 (may_eliminate_iv): Likewise.
13562 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
13563 instead of double_int.
13564 (max_loop_iterations): Likewise.
13565 (max_stmt_executions): Likewise.
13566 (estimated_stmt_executions): Likewise.
13567 * tree-ssa-loop-niter.c: Include wide-int-print.h.
13568 (split_to_var_and_offset): Use wide-int interfaces.
13569 (determine_value_range): Likewise.
13570 (bound_difference_of_offsetted_base): Likewise.
13571 (bounds_add): Take a widest_int instead of a double_int.
13572 (number_of_iterations_ne_max): Use wide-int interfaces.
13573 (number_of_iterations_ne): Likewise.
13574 (number_of_iterations_lt_to_ne): Likewise.
13575 (assert_loop_rolls_lt): Likewise.
13576 (number_of_iterations_lt): Likewise.
13577 (number_of_iterations_le): Likewise.
13578 (number_of_iterations_cond): Likewise.
13579 (number_of_iterations_exit): Likewise.
13580 (finite_loop_p): Likewise.
13581 (derive_constant_upper_bound_assign): Likewise.
13582 (derive_constant_upper_bound): Return a widest_int.
13583 (derive_constant_upper_bound_ops): Likewise.
13584 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
13585 (record_estimate): Take a widest_int rather than a double_int.
13586 (record_nonwrapping_iv): Use wide-int interfaces.
13587 (double_int_cmp): Delete.
13588 (wide_int_cmp): New.
13589 (bound_index): Take a widest_int rather than a double_int.
13590 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
13591 (maybe_lower_iteration_bound): Likewise.
13592 (estimate_numbers_of_iterations_loop): Likewise.
13593 (estimated_loop_iterations): Take a widest_int pointer than than
13594 a double_int pointer.
13595 (estimated_loop_iterations_int): Use wide-int interfaces.
13596 (max_loop_iterations): Take a widest_int pointer than than
13597 a double_int pointer.
13598 (max_loop_iterations_int): Use wide-int interfaces.
13599 (max_stmt_executions): Take a widest_int pointer than than
13600 a double_int pointer.
13601 (estimated_stmt_executions): Likewise.
13602 (n_of_executions_at_most): Use wide-int interfaces.
13603 (scev_probably_wraps_p): Likewise.
13604 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
13605 to real_to_integer.
13606 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
13607 interfaces.
13608 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
13609 double_ints. Adjust for trailing_wide_ints <3> representation.
13610 (set_nonzero_bits): Likewise.
13611 (get_range_info): Return wide_ints rather than double_ints.
13612 Adjust for trailing_wide_ints <3> representation.
13613 (get_nonzero_bits): Likewise.
13614 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
13615 representation.
13616 * tree-ssanames.h (struct range_info_def): Replace min, max and
13617 nonzero_bits with a trailing_wide_ints <3>.
13618 (set_range_info): Use wide_int_refs rather than double_ints.
13619 (set_nonzero_bits): Likewise.
13620 (get_range_info): Return wide_ints rather than double_ints.
13621 (get_nonzero_bits): Likewise.
13622 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
13623 * tree-ssa-pre.c (phi_translate_1): Likewise.
13624 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
13625 (acceptable_pow_call): Likewise.
13626 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
13627 interfaces.
13628 (vn_reference_fold_indirect): Likewise.
13629 (vn_reference_maybe_forwprop_address): Likewise.
13630 (valueize_refs_1): Likewise.
13631 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
13632 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
13633 tree_int_cst_lt and tree_int_cst_le.
13634 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
13635 interfaces.
13636 (streamer_alloc_tree): Likewise.
13637 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
13638 (streamer_write_tree_header): Likewise.
13639 (streamer_write_integer_cst): Likewise.
13640 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13641 (build_constructors): Likewise.
13642 (array_value_type): Likewise.
13643 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
13644 (vect_check_gather): Likewise.
13645 * tree-vect-generic.c (build_replicated_const): Likewise.
13646 (expand_vector_divmod): Likewise.
13647 * tree-vect-loop.c (vect_transform_loop): Likewise.
13648 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
13649 (vect_do_peeling_for_alignment): Likewise.
13650 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
13651 * tree-vrp.c: Include wide-int.h.
13652 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
13653 (extract_range_from_assert): Use wide-int interfaces.
13654 (vrp_int_const_binop): Likewise.
13655 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
13656 double_int pointers.
13657 (ranges_from_anti_range): Use wide-int interfaces.
13658 (quad_int_cmp): Delete.
13659 (quad_int_pair_sort): Likewise.
13660 (extract_range_from_binary_expr_1): Use wide-int interfaces.
13661 (extract_range_from_unary_expr_1): Likewise.
13662 (adjust_range_with_scev): Likewise.
13663 (masked_increment): Take and return wide_ints rather than double_ints.
13664 (register_edge_assert_for_2): Use wide-int interfaces.
13665 (check_array_ref): Likewise.
13666 (search_for_addr_array): Likewise.
13667 (maybe_set_nonzero_bits): Likewise.
13668 (union_ranges): Pass an integer of the correct type instead of
13669 using integer_one_node.
13670 (intersect_ranges): Likewise.
13671 (simplify_truth_ops_using_ranges): Likewise.
13672 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
13673 (range_fits_type_p): Likewise.
13674 (simplify_cond_using_ranges): Likewise. Take a signop rather than
13675 a bool.
13676 (simplify_conversion_using_ranges): Use wide-int interfaces.
13677 (simplify_float_conversion_using_ranges): Likewise.
13678 (vrp_finalize): Likewise.
13679 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
13680 (gimple_stringops_transform): Likewise.
13681 * varasm.c (decode_addr_const): Likewise.
13682 (const_hash_1): Likewise.
13683 (const_rtx_hash_1): Likewise
13684 (output_constant): Likewise.
13685 (array_size_for_constructor): Likewise.
13686 (output_constructor_regular_field): Likewise.
13687 (output_constructor_bitfield): Likewise.
13688 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
13689 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
13690 GENERATOR_FILEs.
13691 * gencheck.c: Define BITS_PER_UNIT.
13692 * wide-int.cc: New.
13693 * wide-int.h: New.
13694 * wide-int-print.cc: New.
13695 * wide-int-print.h: New.
13696
13697 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13698
13699 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
13700
13701 2014-05-06 Richard Biener <rguenther@suse.de>
13702
13703 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
13704 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
13705 (TODO_verify_all): Adjust.
13706 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
13707 TODO_verify_stmts and TODO_verify_rtl_sharing.
13708 * bb-reorder.c: Likewise.
13709 * cfgexpand.c: Likewise.
13710 * cprop.c: Likewise.
13711 * cse.c: Likewise.
13712 * function.c: Likewise.
13713 * fwprop.c: Likewise.
13714 * gcse.c: Likewise.
13715 * gimple-ssa-isolate-paths.c: Likewise.
13716 * gimple-ssa-strength-reduction.c: Likewise.
13717 * ipa-split.c: Likewise.
13718 * loop-init.c: Likewise.
13719 * loop-unroll.c: Likewise.
13720 * lower-subreg.c: Likewise.
13721 * modulo-sched.c: Likewise.
13722 * postreload-gcse.c: Likewise.
13723 * predict.c: Likewise.
13724 * recog.c: Likewise.
13725 * sched-rgn.c: Likewise.
13726 * store-motion.c: Likewise.
13727 * tracer.c: Likewise.
13728 * trans-mem.c: Likewise.
13729 * tree-call-cdce.c: Likewise.
13730 * tree-cfg.c: Likewise.
13731 * tree-cfgcleanup.c: Likewise.
13732 * tree-complex.c: Likewise.
13733 * tree-eh.c: Likewise.
13734 * tree-emutls.c: Likewise.
13735 * tree-if-conv.c: Likewise.
13736 * tree-into-ssa.c: Likewise.
13737 * tree-loop-distribution.c: Likewise.
13738 * tree-object-size.c: Likewise.
13739 * tree-parloops.c: Likewise.
13740 * tree-pass.h: Likewise.
13741 * tree-sra.c: Likewise.
13742 * tree-ssa-ccp.c: Likewise.
13743 * tree-ssa-copy.c: Likewise.
13744 * tree-ssa-copyrename.c: Likewise.
13745 * tree-ssa-dce.c: Likewise.
13746 * tree-ssa-dom.c: Likewise.
13747 * tree-ssa-dse.c: Likewise.
13748 * tree-ssa-forwprop.c: Likewise.
13749 * tree-ssa-ifcombine.c: Likewise.
13750 * tree-ssa-loop-ch.c: Likewise.
13751 * tree-ssa-loop-ivcanon.c: Likewise.
13752 * tree-ssa-loop.c: Likewise.
13753 * tree-ssa-math-opts.c: Likewise.
13754 * tree-ssa-phiopt.c: Likewise.
13755 * tree-ssa-phiprop.c: Likewise.
13756 * tree-ssa-pre.c: Likewise.
13757 * tree-ssa-reassoc.c: Likewise.
13758 * tree-ssa-sink.c: Likewise.
13759 * tree-ssa-strlen.c: Likewise.
13760 * tree-ssa-tail-merge.c: Likewise.
13761 * tree-ssa-uncprop.c: Likewise.
13762 * tree-switch-conversion.c: Likewise.
13763 * tree-tailcall.c: Likewise.
13764 * tree-vect-generic.c: Likewise.
13765 * tree-vectorizer.c: Likewise.
13766 * tree-vrp.c: Likewise.
13767 * tsan.c: Likewise.
13768 * var-tracking.c: Likewise.
13769 * bt-load.c: Likewise.
13770 * cfgcleanup.c: Likewise.
13771 * combine-stack-adj.c: Likewise.
13772 * combine.c: Likewise.
13773 * compare-elim.c: Likewise.
13774 * config/epiphany/resolve-sw-modes.c: Likewise.
13775 * config/i386/i386.c: Likewise.
13776 * config/mips/mips.c: Likewise.
13777 * config/s390/s390.c: Likewise.
13778 * config/sh/sh_treg_combine.cc: Likewise.
13779 * config/sparc/sparc.c: Likewise.
13780 * dce.c: Likewise.
13781 * dse.c: Likewise.
13782 * final.c: Likewise.
13783 * ifcvt.c: Likewise.
13784 * mode-switching.c: Likewise.
13785 * passes.c: Likewise.
13786 * postreload.c: Likewise.
13787 * ree.c: Likewise.
13788 * reg-stack.c: Likewise.
13789 * regcprop.c: Likewise.
13790 * regrename.c: Likewise.
13791 * web.c: Likewise.
13792
13793 2014-05-06 Richard Biener <rguenther@suse.de>
13794
13795 PR middle-end/61070
13796 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
13797 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
13798
13799 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
13800
13801 PR ipa/60965
13802 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
13803
13804 2014-05-05 Radovan Obradovic <robradovic@mips.com>
13805 Tom de Vries <tom@codesourcery.com>
13806
13807 * target.def (call_fusage_contains_non_callee_clobbers): New
13808 DEFHOOKPOD.
13809 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
13810 Hooks to @menu.
13811 (@node Miscellaneous Register Hooks): New node.
13812 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
13813 * doc/tm.texi: Regenerate.
13814
13815 2014-05-05 Marek Polacek <polacek@redhat.com>
13816
13817 PR driver/61065
13818 * opts.c (common_handle_option): Call error_at instead of warning_at.
13819
13820 2014-05-05 Richard Biener <rguenther@suse.de>
13821
13822 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
13823 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
13824 under the TODO_verify_il umbrella.
13825
13826 2014-05-05 Richard Biener <rguenther@suse.de>
13827
13828 * passes.c (execute_function_todo): Move TODO_verify_flow under
13829 the TODO_verify_ul umbrella.
13830
13831 2014-05-05 Richard Biener <rguenther@suse.de>
13832
13833 PR middle-end/61010
13834 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
13835 X & CST away from a CST that is the mask of a mode.
13836
13837 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13838
13839 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
13840 int argument to enum machine_mode.
13841 (picochip_class_max_nregs): Ditto.
13842 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
13843 (picochip_class_max_nregs): Ditto.
13844
13845 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13846
13847 * target.def: Add new target hook.
13848 * doc/tm.texi: Regenerate.
13849 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
13850 * targhooks.c (default_keep_leaf_when_profiled): New function.
13851
13852 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
13853 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
13854
13855 2014-05-05 Bin Cheng <bin.cheng@arm.com>
13856
13857 PR tree-optimization/60363
13858 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
13859 (copy_phi_args): New parameters. Call get_value_locus_in_path.
13860 (update_destination_phis): New parameter.
13861 (create_edge_and_update_destination_phis): Ditto.
13862 (ssa_fix_duplicate_block_edges): Pass new arguments.
13863 (thread_single_edge): Ditto.
13864
13865 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
13866
13867 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
13868 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
13869 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
13870 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
13871 Use RS6000_BTM_HARD_FLOAT.
13872 (BU_MISC_2): Likewise.
13873 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13874 RS6000_BTM_HARD_FLOAT.
13875 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
13876 is explicitly used.
13877 (rs6000_invalid_builtin): Add hard floating builtin support.
13878 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
13879 hard float builtins.
13880 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
13881
13882 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13883
13884 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
13885 Add missing function* argument.
13886
13887 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13888
13889 * lra-constraints.c (valid_address_p): Move earlier in file.
13890 Add a constraint argument to the address_info version.
13891 (satisfies_memory_constraint_p): New function.
13892 (satisfies_address_constraint_p): Likewise.
13893 (process_alt_operands, curr_insn_transform): Use them.
13894 (process_address): Pass the constraint to valid_address_p when
13895 checking address operands.
13896
13897 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13898
13899 * config/mips/mips.c (mips_isa_rev): New variable.
13900 (mips_set_architecture): Set it.
13901 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
13902 from mips_isa_rev.
13903 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
13904 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
13905 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
13906 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
13907 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
13908 conditions in terms of mips_isa_rev.
13909 (mips_isa_rev): Declare.
13910
13911 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13912
13913 * config/sh/sh-mem.cc: Use tabs instead of spaces.
13914 (prob_unlikely, prob_likely): Make variables const.
13915
13916 2014-05-03 Denis Chertykov <chertykov@gmail.com>
13917
13918 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
13919
13920 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13921
13922 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
13923
13924 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13925
13926 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
13927 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
13928 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
13929 functions.
13930 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
13931 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
13932 sh_pass_in_reg_p.
13933 Replace usage of ROUND_REG with sh_round_reg.
13934 Use CEIL instead of ROUND_ADVANCE.
13935
13936 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13937
13938 PR target/61026
13939 * config/sh/sh.c: Include stdlib headers before everything else.
13940
13941 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13942
13943 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
13944 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
13945 (gimplify_adjust_omp_clauses): Simd region is never
13946 directly nested in combined parallel. Instead, for linear
13947 with copyin/copyout, if in combined for simd loop, make decl
13948 firstprivate/lastprivate on OMP_FOR.
13949 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13950 expand_omp_for_static_chunk): When setting endvar, also set
13951 fd->loop.v to the same value.
13952
13953 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13954
13955 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
13956
13957 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
13958
13959 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
13960 expression.
13961
13962 2014-05-02 Marek Polacek <polacek@redhat.com>
13963
13964 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
13965
13966 2014-05-02 Kito Cheng <kito@0xlab.org>
13967
13968 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
13969 to a C expression marco.
13970 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
13971 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
13972 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
13973 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
13974 HONOR_REG_ALLOC_ORDER.
13975 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
13976
13977 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13978
13979 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
13980
13981 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13982
13983 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
13984
13985 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13986
13987 * tree-if-conv.c (is_cond_scalar_reduction): New function.
13988 (convert_scalar_cond_reduction): Likewise.
13989 (predicate_scalar_phi): Add recognition and transformation
13990 of simple conditioanl reduction to be vectorizable.
13991
13992 2014-05-01 Marek Polacek <polacek@redhat.com>
13993
13994 PR c/43245
13995 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
13996
13997 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
13998
13999 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
14000 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
14001 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
14002 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
14003 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
14004 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
14005 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
14006 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
14007
14008 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
14009
14010 * config/arc/arc.opt (mlra): Move comment above option name
14011 to avoid mis-parsing as language options.
14012
14013 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14014
14015 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
14016 * config/sol2.h: ... here.
14017 * config/sol2-10.h: Remove.
14018
14019 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
14020 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
14021 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
14022 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
14023 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
14024 * config/sol2.h: ... here.
14025 (SECTION_NAME_FORMAT): Don't redefine.
14026 (STARTFILE_ARCH32_SPEC): Rename to ...
14027 (STARTFILE_ARCH_SPEC): ... this.
14028 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14029 * config/sparc/sol2.h: ... here.
14030 (SECTION_NAME_FORMAT): Don't undef.
14031 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
14032 (SUBTARGET_EXTRA_SPECS): Remove.
14033 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
14034
14035 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
14036 (MD_STARTFILE_PREFIX): Remove.
14037 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
14038 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
14039 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
14040 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
14041 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
14042 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
14043 * config/i386/sol2.h: ... here.
14044 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
14045 * config/i386/sol2-bi.h: Remove.
14046 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
14047 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
14048
14049 * config/i386/t-sol2-64: Rename to ...
14050 * config/i386/t-sol2: ... this.
14051 * config/sparc/t-sol2-64: Rename to ...
14052 * config/sparc/t-sol2: ... this.
14053
14054 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
14055 sol2_tm_file_head, sol2_tm_file_tail.
14056 Include ${cpu_type}/sol2.h before sol2.h.
14057 Remove sol2-10.h.
14058 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
14059 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
14060 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
14061 Reflect i386/t-sol2-64 renaming.
14062 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
14063 Reflect sparc/t-sol2-64 renaming.
14064
14065 2014-04-30 Richard Biener <rguenther@suse.de>
14066
14067 * passes.c (execute_function_todo): Move TODO_verify_stmts
14068 and TODO_verify_ssa under the TODO_verify_il umbrella.
14069 * tree-ssa.h (verify_ssa): Adjust prototype.
14070 * tree-ssa.c (verify_ssa): Add parameter to tell whether
14071 we should verify SSA operands.
14072 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
14073 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
14074 whether we should verify whether not throwing stmts have EH info.
14075 * graphite-scop-detection.c (create_sese_edges): Adjust.
14076 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
14077 * tree-eh.c (lower_try_finally_switch): Do not add the
14078 default case label twice.
14079
14080 2014-04-30 Marek Polacek <polacek@redhat.com>
14081
14082 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
14083 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
14084 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
14085 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
14086
14087 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
14088
14089 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
14090 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
14091 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
14092 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
14093 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
14094 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
14095 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
14096 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
14097
14098 2014-04-29 David Malcolm <dmalcolm@redhat.com>
14099
14100 * tree-cfg.c (dump_function_to_file): Dump the return type of
14101 functions, in a line to itself before the function body, mimicking
14102 the layout of a C function.
14103
14104 2014-04-29 Jakub Jelinek <jakub@redhat.com>
14105
14106 PR tree-optimization/60971
14107 * tree-tailcall.c (process_assignment): Reject conversions which
14108 reduce precision.
14109
14110 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
14111
14112 * calls.c (initialize_argument_information): Always treat
14113 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
14114 (expand_call): Likewise.
14115 (emit_library_call_calue_1): Likewise.
14116 * expr.c (PUSH_ARGS_REVERSED): Do not define.
14117 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
14118 code accordingly.
14119
14120 2014-04-29 Nick Clifton <nickc@redhat.com>
14121
14122 * config/msp430/msp430.md (umulsidi): Fix typo.
14123 (mulhisi3): Enable even inside interrupt handlers.
14124 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
14125 bigger return address pushed in large mode.
14126
14127 2014-04-29 Nick Clifton <nickc@redhat.com>
14128
14129 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
14130 (arc_init_reg_tables): Use a machine_mode enum to iterate over
14131 available modes.
14132 * config/m32r/m32r.c (init_reg_tables): Likewise.
14133 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
14134 enum to hold the modes.
14135
14136 2014-04-29 Richard Biener <rguenther@suse.de>
14137
14138 * dominance.c (free_dominance_info): Add overload with
14139 function parameter.
14140 (dom_info_state): Likewise.
14141 (dom_info_available_p): Likewise.
14142 * basic-block.h (free_dominance_info, dom_info_state,
14143 dom_info_available_p): Declare overloads.
14144 * passes.c (execute_function_todo): Verify that verifiers
14145 don't change dominator info state. Drop dominator info
14146 for IPA pass invocations.
14147 * cgraph.c (release_function_body): Restore asserts that
14148 dominator information is released.
14149
14150 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
14151
14152 * doc/invoke.texi: Fix typo.
14153 * tree-vrp.c: Fix typos.
14154 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
14155
14156 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14157
14158 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
14159
14160 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
14161
14162 * config/aarch64/aarch64-builtins.c
14163 (aarch64_types_storestruct_lane_qualifiers): New.
14164 (TYPES_STORESTRUCT_LANE): Likewise.
14165 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
14166 (st3_lane): Likewise.
14167 (st4_lane): Likewise.
14168 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
14169 (vec_store_lanesci_lane<mode>): Likewise.
14170 (vec_store_lanesxi_lane<mode>): Likewise.
14171 (aarch64_st2_lane<VQ:mode>): Likewise.
14172 (aarch64_st3_lane<VQ:mode>): Likewise.
14173 (aarch64_st4_lane<VQ:mode>): Likewise.
14174 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
14175 * config/aarch64/arm_neon.h
14176 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
14177 use new macro arguments.
14178 (__ST3_LANE_FUNC): Likewise.
14179 (__ST4_LANE_FUNC): Likewise.
14180 * config/aarch64/iterators.md (V_TWO_ELEM): New.
14181 (V_THREE_ELEM): Likewise.
14182 (V_FOUR_ELEM): Likewise.
14183
14184 2014-04-28 David Malcolm <dmalcolm@redhat.com>
14185
14186 * doc/gimple.texi: Replace the description of the now-defunct
14187 union gimple_statement_d with a diagram showing the
14188 gimple_statement_base class hierarchy and its relationships to
14189 the GSS_ and GIMPLE_ enums.
14190
14191 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
14192
14193 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
14194 * config/aarch64/aarch64.c
14195 (aarch64_cannot_change_mode_class): Weaken conditions.
14196 (aarch64_modes_tieable_p): New.
14197 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
14198
14199 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
14200
14201 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
14202 (loadsync_<mode>): Change mode.
14203 (load_quadpti, store_quadpti): New.
14204 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
14205 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
14206
14207 2014-04-28 Martin Jambor <mjambor@suse.cz>
14208
14209 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
14210 same alias type as the original statement.
14211 (subreplacement_assignment_data): New type.
14212 (handle_unscalarized_data_in_subtree): New type of parameter,
14213 generate new memory accesses with same alias type as the original
14214 statement.
14215 (load_assign_lhs_subreplacements): Likewise.
14216 (sra_modify_constructor_assign): Generate new memory accesses with
14217 same alias type as the original statement.
14218
14219 2014-04-28 Richard Biener <rguenther@suse.de>
14220
14221 * tree-pass.h (TODO_verify_il): Define.
14222 (TODO_verify_all): Complete properly.
14223 * passes.c (execute_function_todo): Move existing loop-closed
14224 SSA verification under TODO_verify_il.
14225 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
14226 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
14227 Fix tree sharing issue.
14228
14229 2014-04-28 Richard Biener <rguenther@suse.de>
14230
14231 PR middle-end/60092
14232 * builtins.def (DEF_C11_BUILTIN): Add.
14233 (BUILT_IN_ALIGNED_ALLOC): Likewise.
14234 * coretypes.h (enum function_class): Add function_c11_misc.
14235 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14236 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
14237 (call_may_clobber_ref_p_1): Likewise.
14238 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14239 (mark_all_reaching_defs_necessary_1): Likewise.
14240 (propagate_necessity): Likewise.
14241 (eliminate_unnecessary_stmts): Likewise.
14242 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
14243
14244 2014-04-28 Richard Biener <rguenther@suse.de>
14245
14246 * tree-vrp.c (vrp_var_may_overflow): Remove.
14247 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
14248 with overflow immediately bump to one before that value and
14249 let iteration figure out overflow status.
14250
14251 2014-04-28 Richard Biener <rguenther@suse.de>
14252
14253 * configure.ac: Do valgrind header checks unconditionally.
14254 Add --enable-valgrind-annotations.
14255 * system.h: Guard valgrind header inclusion with
14256 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
14257 * alloc-pool.c (pool_alloc, pool_free): Use
14258 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
14259 to guard possibly dead code.
14260 * config.in: Regenerated.
14261 * configure: Likewise.
14262
14263 2014-04-28 Jeff Law <law@redhat.com>
14264
14265 PR tree-optimization/60902
14266 * tree-ssa-threadedge.c
14267 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
14268 over real defs when invalidating outputs from statements that do not
14269 produce useful outputs for threading.
14270
14271 2014-04-28 Richard Biener <rguenther@suse.de>
14272
14273 PR tree-optimization/60979
14274 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
14275 SCOPs that end in a block with a successor with abnormal
14276 predecessors.
14277
14278 2014-04-28 Richard Biener <rguenther@suse.de>
14279
14280 * tree-pass.h (execute_pass_list): Adjust prototype.
14281 * passes.c (pass_manager::execute_early_local_passes): Adjust.
14282 (do_per_function): Change callback signature, push all actual
14283 work to the callbals.
14284 (do_per_function_toporder): Likewise.
14285 (execute_function_dump): Adjust.
14286 (execute_function_todo): Likewise.
14287 (clear_last_verified): Likewise.
14288 (verify_curr_properties): Likewise.
14289 (update_properties_after_pass): Likewise.
14290 (execute_pass_list_1): Split out from ...
14291 (execute_pass_list): ... here. Adjust.
14292 (execute_ipa_pass_list): Likewise.
14293 * cgraphunit.c (cgraph_add_new_function): Adjust.
14294 (analyze_function): Likewise.
14295 (expand_function): Likewise.
14296 * cgraph.c (release_function_body): Free dominance info
14297 here instead of asserting it was magically freed elsewhere.
14298
14299 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
14300
14301 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
14302 * configure: Regenerate.
14303 * config/sparc/sparc.opt (muser-mode): New option.
14304 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
14305 for LEON3.
14306 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
14307 * doc/invoke.texi (SPARC options): Document -muser-mode.
14308
14309 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
14310
14311 * cselib.c (find_slot_memmode): Delete.
14312 (cselib_hasher): Change compare_type to a struct.
14313 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
14314 constants.
14315 (preserve_constants_and_equivs): Adjust for new compare_type.
14316 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
14317 (wrap_constant): Delete.
14318 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
14319
14320 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
14321
14322 * doc/install.texi (Building with profile feedback): Remove
14323 outdated sentence.
14324
14325 2014-04-26 Tom de Vries <tom@codesourcery.com>
14326
14327 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
14328 array accesses.
14329
14330 2014-04-25 Cary Coutant <ccoutant@google.com>
14331
14332 PR debug/60929
14333 * dwarf2out.c (should_move_die_to_comdat): A type definition
14334 can contain a subprogram definition, but don't move it to a
14335 comdat unit.
14336 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
14337 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
14338 from original DIE.
14339 (clone_tree_hash): Rename to...
14340 (clone_tree_partial): ...this; change callers. Copy
14341 DW_TAG_subprogram DIEs as declarations.
14342 (copy_decls_walk): Don't copy children of a declaration into a
14343 type unit.
14344
14345 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
14346
14347 PR target/60969
14348 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
14349 alternative 12.
14350
14351 2014-04-25 Jiong Wang <jiong.wang@arm.com>
14352
14353 * config/arm/predicates.md (call_insn_operand): Add long_call check.
14354 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
14355 reg for long_call.
14356 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
14357 restriction.
14358
14359 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14360
14361 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
14362
14363 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14364
14365 PR tree-optimization/60930
14366 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
14367 creating a multiply candidate by folding two constant
14368 multiplicands when the result overflows.
14369
14370 2014-04-25 Jakub Jelinek <jakub@redhat.com>
14371
14372 PR tree-optimization/60960
14373 * tree-vect-generic.c (expand_vector_operation): Only call
14374 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
14375
14376 2014-04-25 Tom de Vries <tom@codesourcery.com>
14377
14378 * expr.c (clobber_reg_mode): New function.
14379 * expr.h (clobber_reg): New function.
14380
14381 2014-04-25 Tom de Vries <tom@codesourcery.com>
14382
14383 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
14384 clobbers.
14385
14386 2014-04-25 Radovan Obradovic <robradovic@mips.com>
14387 Tom de Vries <tom@codesourcery.com>
14388
14389 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
14390 handle.
14391 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
14392 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
14393 new argument to find_all_hard_reg_sets call.
14394
14395 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14396
14397 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
14398 Use HOST_WIDE_INT_C for mask literal.
14399 (aarch_rev16_shleft_mask_imm_p): Likewise.
14400
14401 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
14402
14403 PR target/60941
14404 * config/sparc/sparc.md (ashlsi3_extend): Delete.
14405
14406 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
14407
14408 PR preprocessor/56540
14409 * config/i386/i386-c.c (ix86_target_macros): Define
14410 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
14411
14412 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14413
14414 * configure.ac (tga_func): Remove.
14415 (LIB_TLS_SPEC): Remove.
14416 * configure: Regenerate.
14417 * config.in: Regenerate.
14418 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
14419
14420 2014-04-25 Richard Biener <rguenther@suse.de>
14421
14422 PR ipa/60912
14423 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
14424 call stmt use/clobber sets during stmt walk instead of
14425 walking the possibly incomplete set of caller edges.
14426
14427 2014-04-25 Richard Biener <rguenther@suse.de>
14428
14429 PR ipa/60911
14430 * passes.c (apply_ipa_transforms): Inline into only caller ...
14431 (execute_one_pass): ... here. Properly bring in function
14432 bodies for nodes we want to apply IPA transforms to.
14433
14434 2014-04-24 Cong Hou <congh@google.com>
14435
14436 PR tree-optimization/60896
14437 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
14438 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
14439 (vect_mark_pattern_stmts): Set the def type of all statements in
14440 PATTERN_DEF_SEQ as vect_internal_def.
14441
14442 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14443
14444 * doc/extend.texi (PowerPC Built-in Functions): Document new
14445 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
14446 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
14447
14448 * config/rs6000/predicates.md (const_0_to_3_operand): New
14449 predicate to match 0..3 integer constants.
14450
14451 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
14452 to support adding miscellaneous builtin functions.
14453 (BU_DFP_MISC_2): Likewise.
14454 (BU_P7_MISC_1): Likewise.
14455 (BU_P7_MISC_2): Likewise.
14456 (BU_P8V_MISC_3): Likewise.
14457 (BU_MISC_1): Likewise.
14458 (BU_MISC_2): Likewise.
14459 (DIVWE): Add extended divide builtin functions.
14460 (DIVWEO): Likewise.
14461 (DIVWEU): Likewise.
14462 (DIVWEUO): Likewise.
14463 (DIVDE): Likewise.
14464 (DIVDEO): Likewise.
14465 (DIVDEU): Likewise.
14466 (DIVDEUO): Likewise.
14467 (DXEX): Add decimal floating-point builtin functions.
14468 (DXEXQ): Likewise.
14469 (DDEDPD): Likewise.
14470 (DDEDPDQ): Likewise.
14471 (DENBCD): Likewise.
14472 (DENBCDQ): Likewise.
14473 (DIEX): Likewise.
14474 (DIEXQ): Likewise.
14475 (DSCLI): Likewise.
14476 (DSCLIQ): Likewise.
14477 (DSCRI): Likewise.
14478 (DSCRIQ): Likewise.
14479 (CDTBCD): Add new BCD builtin functions.
14480 (CBCDTD): Likewise.
14481 (ADDG6S): Likewise.
14482 (BCDADD): Likewise.
14483 (BCDADD_LT): Likewise.
14484 (BCDADD_EQ): Likewise.
14485 (BCDADD_GT): Likewise.
14486 (BCDADD_OV): Likewise.
14487 (BCDSUB): Likewise.
14488 (BCDSUB_LT): Likewise.
14489 (BCDSUB_EQ): Likewise.
14490 (BCDSUB_GT): Likewise.
14491 (BCDSUB_OV): Likewise.
14492 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
14493 (UNPACK_TD): Likewise.
14494 (PACK_TF): Likewise.
14495 (UNPACK_TF): Likewise.
14496 (UNPACK_TF_0): Likewise.
14497 (UNPACK_TF_1): Likewise.
14498 (PACK_V1TI): Likewise.
14499 (UNPACK_V1TI): Likewise.
14500
14501 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
14502 support for decimal floating point builtin functions.
14503 (rs6000_expand_ternop_builtin): Add checks for the new builtin
14504 functions that take constant arguments.
14505 (rs6000_invalid_builtin): Add decimal floating point builtin support.
14506 (rs6000_init_builtins): Setup long double, _Decimal64, and
14507 _Decimal128 types for new builtin functions.
14508 (builtin_function_type): Set the unsigned flags appropriately for
14509 the new builtin functions.
14510 (rs6000_opt_masks): Add support for decimal floating point builtin
14511 functions.
14512
14513 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
14514 floating point builtin functions.
14515 (RS6000_BTM_COMMON): Likewise.
14516 (RS6000_BTI_long_double): Likewise.
14517 (RS6000_BTI_dfloat64): Likewise.
14518 (RS6000_BTI_dfloat128): Likewise.
14519 (long_double_type_internal_node): Likewise.
14520 (dfloat64_type_internal_node): Likewise.
14521 (dfloat128_type_internal_node): Likewise.
14522
14523 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
14524 2.07 bcd arithmetic instructions.
14525 (UNSPEC_BCDSUB): Likewise.
14526 (UNSPEC_BCD_OVERFLOW): Likewise.
14527 (UNSPEC_BCD_ADD_SUB): Likewise.
14528 (bcd_add_sub): Likewise.
14529 (BCD_TEST): Likewise.
14530 (bcd<bcd_add_sub>): Likewise.
14531 (bcd<bcd_add_sub>_test): Likewise.
14532 (bcd<bcd_add_sub>_test2): Likewise.
14533 (bcd<bcd_add_sub>_<code>): Likewise.
14534 (peephole2 for combined bcd ops): Likewise.
14535
14536 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
14537 decimal floating point builtin functions.
14538 (UNSPEC_DENBCD): Likewise.
14539 (UNSPEC_DXEX): Likewise.
14540 (UNSPEC_DIEX): Likewise.
14541 (UNSPEC_DSCLI): Likewise.
14542 (UNSPEC_DSCRI): Likewise.
14543 (D64_D128): Likewise.
14544 (dfp_suffix): Likewise.
14545 (dfp_ddedpd_<mode>): Likewise.
14546 (dfp_denbcd_<mode>): Likewise.
14547 (dfp_dxex_<mode>): Likewise.
14548 (dfp_diex_<mode>): Likewise.
14549 (dfp_dscli_<mode>): Likewise.
14550 (dfp_dscri_<mode>): Likewise.
14551
14552 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
14553 builtin functions.
14554 (UNSPEC_CDTBCD): Likewise.
14555 (UNSPEC_CBCDTD): Likewise.
14556 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
14557 (UNSPEC_DIVEO): Likewise.
14558 (UNSPEC_DIVEU): Likewise.
14559 (UNSPEC_DIVEUO): Likewise.
14560 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
14561 pack/unpack 128-bit types.
14562 (UNSPEC_PACK_128BIT): Likewise.
14563 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
14564 (udiv<mode>3): Use idiv_ldiv mode attribute.
14565 (div<mode>3): Likewise.
14566 (addg6s): Add new BCD builtin functions.
14567 (cdtbcd): Likewise.
14568 (cbcdtd): Likewise.
14569 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
14570 (div_extend): Likewise.
14571 (div<div_extend>_<mode>"): Likewise.
14572 (FP128_64): Add support for new builtin functions to pack/unpack
14573 128-bit types.
14574 (unpack<mode>): Likewise.
14575 (unpacktf_0): Likewise.
14576 (unpacktf_1): Likewise.
14577 (unpack<mode>_dm): Likewise.
14578 (unpack<mode>_nodm): Likewise.
14579 (pack<mode>): Likewise.
14580 (unpackv1ti): Likewise.
14581 (packv1ti): Likewise.
14582
14583 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
14584
14585 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
14586 is disabled.
14587
14588 2014-04-24 Jakub Jelinek <jakub@redhat.com>
14589
14590 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
14591 * gimplify.c (omp_is_private): Change last argument's type to int.
14592 Only diagnose lastprivate if the simd argument is 1, only diagnose
14593 linear if the simd argument is 2.
14594 (gimplify_omp_for): Adjust omp_is_private callers. When adding
14595 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
14596 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
14597 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
14598 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
14599 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14600 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
14601 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14602 * tree-nested.c (convert_nonlocal_omp_clauses,
14603 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
14604
14605 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
14606
14607 PR target/60822
14608 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
14609 operand 1.
14610
14611 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
14612
14613 * flag-types.h (enum ivar_visibility): Add.
14614
14615 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
14616
14617 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
14618 function * argument.
14619
14620 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
14621
14622 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
14623
14624 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14625 Tom de Vries <tom@codesourcery.com>
14626
14627 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
14628 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
14629 reg-note.
14630 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
14631 * emit-rtl.c (try_split): Same.
14632
14633 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14634 Tom de Vries <tom@codesourcery.com>
14635
14636 * common.opt (fuse-caller-save): New option.
14637
14638 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
14639
14640 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
14641 elements for big-endian.
14642
14643 2014-04-24 Richard Biener <rguenther@suse.de>
14644
14645 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
14646 during TER and instead use the sepops interface for expanding
14647 non-GIMPLE_SINGLE_RHS.
14648
14649 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14650
14651 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
14652 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
14653
14654 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14655
14656 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
14657 assembler 64-bit option.
14658 * configure: Regenerate.
14659
14660 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14661
14662 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
14663 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
14664 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
14665 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
14666 (TARGET_CRYPTO): Take TARGET_SIMD into account.
14667
14668 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14669
14670 * config/aarch64/aarch64-builtins.c
14671 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
14672 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
14673 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
14674 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
14675 builtins.
14676 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
14677 (Vrevsuff): New mode attribute.
14678
14679 2014-04-24 Terry Guo <terry.guo@arm.com>
14680
14681 * config/arm/arm.h (machine_function): Define variable
14682 after_arm_reorg here.
14683 * config/arm/arm.c (after_arm_reorg): Remove the definition.
14684 (arm_split_constant): Update the way to access variable
14685 after_arm_reorg.
14686 (arm_reorg): Ditto.
14687 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
14688
14689 2014-04-23 Tom de Vries <tom@codesourcery.com>
14690
14691 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
14692
14693 2014-04-23 David Malcolm <dmalcolm@redhat.com>
14694
14695 * is-a.h: Update comments to reflect the following changes to the
14696 "pointerness" of the API, making the template parameter match the
14697 return type, allowing use of is-a.h with typedefs of pointers.
14698 (is_a_helper::cast): Return a T rather then a pointer to a T, so
14699 that the return type matches the parameter to the is_a_helper.
14700 (as_a): Likewise.
14701 (dyn_cast): Likewise.
14702
14703 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
14704 pointer from the is-a.h API.
14705
14706 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
14707 (is_a_helper <cgraph_node *>::test): ...this, matching change to
14708 is-a.h API.
14709 (is_a_helper <varpool_node>::test): Likewise, convert to...
14710 (is_a_helper <varpool_node *>::test): ...this.
14711
14712 (varpool_first_variable): Update for removal of implicit pointer
14713 from the is-a.h API.
14714 (varpool_next_variable): Likewise.
14715 (varpool_first_static_initializer): Likewise.
14716 (varpool_next_static_initializer): Likewise.
14717 (varpool_first_defined_variable): Likewise.
14718 (varpool_next_defined_variable): Likewise.
14719 (cgraph_first_defined_function): Likewise.
14720 (cgraph_next_defined_function): Likewise.
14721 (cgraph_first_function): Likewise.
14722 (cgraph_next_function): Likewise.
14723 (cgraph_first_function_with_gimple_body): Likewise.
14724 (cgraph_next_function_with_gimple_body): Likewise.
14725 (cgraph_alias_target): Likewise.
14726 (varpool_alias_target): Likewise.
14727 (cgraph_function_or_thunk_node): Likewise.
14728 (varpool_variable_node): Likewise.
14729 (symtab_real_symbol_p): Likewise.
14730 * cgraphunit.c (referred_to_p): Likewise.
14731 (analyze_functions): Likewise.
14732 (handle_alias_pairs): Likewise.
14733 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
14734 * gimple-ssa.h (gimple_vuse_op): Likewise.
14735 (gimple_vdef_op): Likewise.
14736 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
14737 * gimple.c (gimple_build_asm_1): Likewise.
14738 (gimple_build_try): Likewise.
14739 (gimple_build_resx): Likewise.
14740 (gimple_build_eh_dispatch): Likewise.
14741 (gimple_build_omp_for): Likewise.
14742 (gimple_omp_for_set_clauses): Likewise.
14743
14744 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
14745 (is_a_helper <gimple_statement_asm *>::test): ...this.
14746 (is_a_helper <gimple_statement_bind>::test): Convert to...
14747 (is_a_helper <gimple_statement_bind *>::test): ...this.
14748 (is_a_helper <gimple_statement_call>::test): Convert to...
14749 (is_a_helper <gimple_statement_call *>::test): ...this.
14750 (is_a_helper <gimple_statement_catch>::test): Convert to...
14751 (is_a_helper <gimple_statement_catch *>::test): ...this.
14752 (is_a_helper <gimple_statement_resx>::test): Convert to...
14753 (is_a_helper <gimple_statement_resx *>::test): ...this.
14754 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
14755 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
14756 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
14757 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
14758 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
14759 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
14760 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
14761 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
14762 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
14763 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
14764 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
14765 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
14766 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
14767 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
14768 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
14769 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
14770 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
14771 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
14772 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
14773 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
14774 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
14775 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
14776 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
14777 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
14778 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
14779 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
14780 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
14781 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
14782 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
14783 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
14784 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
14785 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
14786 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
14787 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
14788 (is_a_helper <gimple_statement_phi>::test): Convert to...
14789 (is_a_helper <gimple_statement_phi *>::test): ...this.
14790 (is_a_helper <gimple_statement_transaction>::test): Convert to...
14791 (is_a_helper <gimple_statement_transaction *>::test): ...this.
14792 (is_a_helper <gimple_statement_try>::test): Convert to...
14793 (is_a_helper <gimple_statement_try *>::test): ...this.
14794 (is_a_helper <gimple_statement_wce>::test): Convert to...
14795 (is_a_helper <gimple_statement_wce *>::test): ...this.
14796 (is_a_helper <const gimple_statement_asm>::test): Convert to...
14797 (is_a_helper <const gimple_statement_asm *>::test): ...this.
14798 (is_a_helper <const gimple_statement_bind>::test): Convert to...
14799 (is_a_helper <const gimple_statement_bind *>::test): ...this.
14800 (is_a_helper <const gimple_statement_call>::test): Convert to...
14801 (is_a_helper <const gimple_statement_call *>::test): ...this.
14802 (is_a_helper <const gimple_statement_catch>::test): Convert to...
14803 (is_a_helper <const gimple_statement_catch *>::test): ...this.
14804 (is_a_helper <const gimple_statement_resx>::test): Convert to...
14805 (is_a_helper <const gimple_statement_resx *>::test): ...this.
14806 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
14807 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
14808 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
14809 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
14810 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
14811 Convert to...
14812 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
14813 ...this.
14814 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
14815 Convert to...
14816 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
14817 ...this.
14818 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
14819 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
14820 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
14821 to...
14822 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
14823 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
14824 to...
14825 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
14826 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
14827 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
14828 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
14829 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
14830 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
14831 to...
14832 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
14833 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
14834 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
14835 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
14836 to...
14837 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
14838 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
14839 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
14840 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
14841 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
14842 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
14843 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
14844 (is_a_helper <const gimple_statement_phi>::test): Convert to...
14845 (is_a_helper <const gimple_statement_phi *>::test): ...this.
14846 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
14847 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
14848 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
14849 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
14850 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
14851 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
14852 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
14853 to...
14854 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
14855 ...this.
14856 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
14857 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
14858
14859 (gimple_use_ops): Update for removal of implicit pointer from the
14860 is-a.h API.
14861 (gimple_set_use_ops): Likewise.
14862 (gimple_vuse): Likewise.
14863 (gimple_vdef): Likewise.
14864 (gimple_vuse_ptr): Likewise.
14865 (gimple_vdef_ptr): Likewise.
14866 (gimple_set_vuse): Likewise.
14867 (gimple_set_vdef): Likewise.
14868 (gimple_omp_return_set_lhs): Likewise.
14869 (gimple_omp_return_lhs): Likewise.
14870 (gimple_omp_return_lhs_ptr): Likewise.
14871 (gimple_call_fntype): Likewise.
14872 (gimple_call_set_fntype): Likewise.
14873 (gimple_call_set_internal_fn): Likewise.
14874 (gimple_call_use_set): Likewise.
14875 (gimple_call_clobber_set): Likewise.
14876 (gimple_bind_vars): Likewise.
14877 (gimple_bind_set_vars): Likewise.
14878 (gimple_bind_body_ptr): Likewise.
14879 (gimple_bind_set_body): Likewise.
14880 (gimple_bind_add_stmt): Likewise.
14881 (gimple_bind_block): Likewise.
14882 (gimple_bind_set_block): Likewise.
14883 (gimple_asm_ninputs): Likewise.
14884 (gimple_asm_noutputs): Likewise.
14885 (gimple_asm_nclobbers): Likewise.
14886 (gimple_asm_nlabels): Likewise.
14887 (gimple_asm_input_op): Likewise.
14888 (gimple_asm_input_op_ptr): Likewise.
14889 (gimple_asm_output_op): Likewise.
14890 (gimple_asm_output_op_ptr): Likewise.
14891 (gimple_asm_set_output_op): Likewise.
14892 (gimple_asm_clobber_op): Likewise.
14893 (gimple_asm_set_clobber_op): Likewise.
14894 (gimple_asm_label_op): Likewise.
14895 (gimple_asm_set_label_op): Likewise.
14896 (gimple_asm_string): Likewise.
14897 (gimple_catch_types): Likewise.
14898 (gimple_catch_types_ptr): Likewise.
14899 (gimple_catch_handler_ptr): Likewise.
14900 (gimple_catch_set_types): Likewise.
14901 (gimple_catch_set_handler): Likewise.
14902 (gimple_eh_filter_types): Likewise.
14903 (gimple_eh_filter_types_ptr): Likewise.
14904 (gimple_eh_filter_failure_ptr): Likewise.
14905 (gimple_eh_filter_set_types): Likewise.
14906 (gimple_eh_filter_set_failure): Likewise.
14907 (gimple_eh_must_not_throw_fndecl): Likewise.
14908 (gimple_eh_must_not_throw_set_fndecl): Likewise.
14909 (gimple_eh_else_n_body_ptr): Likewise.
14910 (gimple_eh_else_e_body_ptr): Likewise.
14911 (gimple_eh_else_set_n_body): Likewise.
14912 (gimple_eh_else_set_e_body): Likewise.
14913 (gimple_try_eval_ptr): Likewise.
14914 (gimple_try_cleanup_ptr): Likewise.
14915 (gimple_try_set_eval): Likewise.
14916 (gimple_try_set_cleanup): Likewise.
14917 (gimple_wce_cleanup_ptr): Likewise.
14918 (gimple_wce_set_cleanup): Likewise.
14919 (gimple_phi_capacity): Likewise.
14920 (gimple_phi_num_args): Likewise.
14921 (gimple_phi_result): Likewise.
14922 (gimple_phi_result_ptr): Likewise.
14923 (gimple_phi_set_result): Likewise.
14924 (gimple_phi_arg): Likewise.
14925 (gimple_phi_set_arg): Likewise.
14926 (gimple_resx_region): Likewise.
14927 (gimple_resx_set_region): Likewise.
14928 (gimple_eh_dispatch_region): Likewise.
14929 (gimple_eh_dispatch_set_region): Likewise.
14930 (gimple_omp_critical_name): Likewise.
14931 (gimple_omp_critical_name_ptr): Likewise.
14932 (gimple_omp_critical_set_name): Likewise.
14933 (gimple_omp_for_clauses): Likewise.
14934 (gimple_omp_for_clauses_ptr): Likewise.
14935 (gimple_omp_for_set_clauses): Likewise.
14936 (gimple_omp_for_collapse): Likewise.
14937 (gimple_omp_for_index): Likewise.
14938 (gimple_omp_for_index_ptr): Likewise.
14939 (gimple_omp_for_set_index): Likewise.
14940 (gimple_omp_for_initial): Likewise.
14941 (gimple_omp_for_initial_ptr): Likewise.
14942 (gimple_omp_for_set_initial): Likewise.
14943 (gimple_omp_for_final): Likewise.
14944 (gimple_omp_for_final_ptr): Likewise.
14945 (gimple_omp_for_set_final): Likewise.
14946 (gimple_omp_for_incr): Likewise.
14947 (gimple_omp_for_incr_ptr): Likewise.
14948 (gimple_omp_for_set_incr): Likewise.
14949 (gimple_omp_for_pre_body_ptr): Likewise.
14950 (gimple_omp_for_set_pre_body): Likewise.
14951 (gimple_omp_parallel_clauses): Likewise.
14952 (gimple_omp_parallel_clauses_ptr): Likewise.
14953 (gimple_omp_parallel_set_clauses): Likewise.
14954 (gimple_omp_parallel_child_fn): Likewise.
14955 (gimple_omp_parallel_child_fn_ptr): Likewise.
14956 (gimple_omp_parallel_set_child_fn): Likewise.
14957 (gimple_omp_parallel_data_arg): Likewise.
14958 (gimple_omp_parallel_data_arg_ptr): Likewise.
14959 (gimple_omp_parallel_set_data_arg): Likewise.
14960 (gimple_omp_task_clauses): Likewise.
14961 (gimple_omp_task_clauses_ptr): Likewise.
14962 (gimple_omp_task_set_clauses): Likewise.
14963 (gimple_omp_task_child_fn): Likewise.
14964 (gimple_omp_task_child_fn_ptr): Likewise.
14965 (gimple_omp_task_set_child_fn): Likewise.
14966 (gimple_omp_task_data_arg): Likewise.
14967 (gimple_omp_task_data_arg_ptr): Likewise.
14968 (gimple_omp_task_set_data_arg): Likewise.
14969 (gimple_omp_taskreg_clauses): Likewise.
14970 (gimple_omp_taskreg_clauses_ptr): Likewise.
14971 (gimple_omp_taskreg_set_clauses): Likewise.
14972 (gimple_omp_taskreg_child_fn): Likewise.
14973 (gimple_omp_taskreg_child_fn_ptr): Likewise.
14974 (gimple_omp_taskreg_set_child_fn): Likewise.
14975 (gimple_omp_taskreg_data_arg): Likewise.
14976 (gimple_omp_taskreg_data_arg_ptr): Likewise.
14977 (gimple_omp_taskreg_set_data_arg): Likewise.
14978 (gimple_omp_task_copy_fn): Likewise.
14979 (gimple_omp_task_copy_fn_ptr): Likewise.
14980 (gimple_omp_task_set_copy_fn): Likewise.
14981 (gimple_omp_task_arg_size): Likewise.
14982 (gimple_omp_task_arg_size_ptr): Likewise.
14983 (gimple_omp_task_set_arg_size): Likewise.
14984 (gimple_omp_task_arg_align): Likewise.
14985 (gimple_omp_task_arg_align_ptr): Likewise.
14986 (gimple_omp_task_set_arg_align): Likewise.
14987 (gimple_omp_single_clauses): Likewise.
14988 (gimple_omp_single_clauses_ptr): Likewise.
14989 (gimple_omp_single_set_clauses): Likewise.
14990 (gimple_omp_target_clauses): Likewise.
14991 (gimple_omp_target_clauses_ptr): Likewise.
14992 (gimple_omp_target_set_clauses): Likewise.
14993 (gimple_omp_target_child_fn): Likewise.
14994 (gimple_omp_target_child_fn_ptr): Likewise.
14995 (gimple_omp_target_set_child_fn): Likewise.
14996 (gimple_omp_target_data_arg): Likewise.
14997 (gimple_omp_target_data_arg_ptr): Likewise.
14998 (gimple_omp_target_set_data_arg): Likewise.
14999 (gimple_omp_teams_clauses): Likewise.
15000 (gimple_omp_teams_clauses_ptr): Likewise.
15001 (gimple_omp_teams_set_clauses): Likewise.
15002 (gimple_omp_sections_clauses): Likewise.
15003 (gimple_omp_sections_clauses_ptr): Likewise.
15004 (gimple_omp_sections_set_clauses): Likewise.
15005 (gimple_omp_sections_control): Likewise.
15006 (gimple_omp_sections_control_ptr): Likewise.
15007 (gimple_omp_sections_set_control): Likewise.
15008 (gimple_omp_for_set_cond): Likewise.
15009 (gimple_omp_for_cond): Likewise.
15010 (gimple_omp_atomic_store_set_val): Likewise.
15011 (gimple_omp_atomic_store_val): Likewise.
15012 (gimple_omp_atomic_store_val_ptr): Likewise.
15013 (gimple_omp_atomic_load_set_lhs): Likewise.
15014 (gimple_omp_atomic_load_lhs): Likewise.
15015 (gimple_omp_atomic_load_lhs_ptr): Likewise.
15016 (gimple_omp_atomic_load_set_rhs): Likewise.
15017 (gimple_omp_atomic_load_rhs): Likewise.
15018 (gimple_omp_atomic_load_rhs_ptr): Likewise.
15019 (gimple_omp_continue_control_def): Likewise.
15020 (gimple_omp_continue_control_def_ptr): Likewise.
15021 (gimple_omp_continue_set_control_def): Likewise.
15022 (gimple_omp_continue_control_use): Likewise.
15023 (gimple_omp_continue_control_use_ptr): Likewise.
15024 (gimple_omp_continue_set_control_use): Likewise.
15025 (gimple_transaction_body_ptr): Likewise.
15026 (gimple_transaction_label): Likewise.
15027 (gimple_transaction_label_ptr): Likewise.
15028 (gimple_transaction_set_body): Likewise.
15029 (gimple_transaction_set_label): Likewise.
15030
15031 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
15032 * ipa-inline-analysis.c (inline_write_summary): Likewise.
15033 * ipa-ref.c (ipa_record_reference): Likewise.
15034 * ipa-reference.c (analyze_function): Likewise.
15035 (ipa_reference_write_optimization_summary): Likewise.
15036 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
15037 (address_taken_from_non_vtable_p): Likewise.
15038 (comdat_can_be_unshared_p_1): Likewise.
15039 * lto-cgraph.c (lto_output_ref): Likewise.
15040 (add_references): Likewise.
15041 (compute_ltrans_boundary): Likewise.
15042 (output_symtab): Likewise.
15043 (input_ref): Likewise.
15044 (input_cgraph_1): Likewise.
15045 (output_cgraph_opt_summary): Likewise.
15046 * lto-streamer-out.c (lto_output): Likewise.
15047 (output_symbol_p): Likewise.
15048 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
15049 (lsei_start_function_in_partition): Likewise.
15050 (lsei_next_variable_in_partition): Likewise.
15051 (lsei_start_variable_in_partition): Likewise.
15052 * symtab.c (insert_to_assembler_name_hash): Likewise.
15053 (unlink_from_assembler_name_hash): Likewise.
15054 (symtab_unregister_node): Likewise.
15055 (symtab_remove_node): Likewise.
15056 (dump_symtab_node): Likewise.
15057 (verify_symtab_base): Likewise.
15058 (verify_symtab_node): Likewise.
15059 (symtab_make_decl_local): Likewise.
15060 (symtab_alias_ultimate_target): Likewise.
15061 (symtab_resolve_alias): Likewise.
15062 (symtab_get_symbol_partitioning_class): Likewise.
15063 * tree-phinodes.c (allocate_phi_node): Likewise.
15064 (reserve_phi_args_for_new_edge): Likewise.
15065 (remove_phi_args): Likewise.
15066 * varpool.c (varpool_node_for_asm): Likewise.
15067 (varpool_remove_unreferenced_decls): Likewise.
15068
15069 2014-04-23 Jeff Law <law@redhat.com>
15070
15071 PR tree-optimization/60902
15072 * tree-ssa-threadedge.c
15073 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
15074 invalidate outputs from statements that do not produce useful
15075 outputs for threading.
15076
15077 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
15078
15079 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
15080 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
15081 machine descriptions for Stack Smashing Protector.
15082
15083 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
15084
15085 * aarch64.md (<optab>_rol<mode>3): New pattern.
15086 (<optab>_rolsi3_uxtw): Likewise.
15087 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
15088
15089 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
15090
15091 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
15092 (arm_cortex_a12_tune): Likewise.
15093
15094 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15095
15096 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
15097
15098 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15099
15100 * config/arm/arm.md (arm_rev16si2): New pattern.
15101 (arm_rev16si2_alt): Likewise.
15102 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
15103
15104 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15105
15106 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
15107 (rev16<mode>2_alt): Likewise.
15108 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
15109 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
15110 (aarch_rev16_shleft_mask_imm_p): Likewise.
15111 (aarch_rev16_p_1): Likewise.
15112 (aarch_rev16_p): Likewise.
15113 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
15114 (aarch_rev16_shright_mask_imm_p): Likewise.
15115 (aarch_rev16_shleft_mask_imm_p): Likewise.
15116
15117 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15118
15119 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
15120 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
15121 rev cost.
15122 (cortex_a53_extra_costs): Likewise.
15123 (cortex_a57_extra_costs): Likewise.
15124 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
15125 (cortexa7_extra_costs): Likewise.
15126 (cortexa8_extra_costs): Likewise.
15127 (cortexa12_extra_costs): Likewise.
15128 (cortexa15_extra_costs): Likewise.
15129 (v7m_extra_costs): Likewise.
15130 (arm_new_rtx_costs): Handle BSWAP.
15131
15132 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15133
15134 * config/arm/arm.c (cortexa8_extra_costs): New table.
15135 (arm_cortex_a8_tune): New tuning struct.
15136 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
15137
15138 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15139
15140 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
15141
15142 2014-04-23 Richard Biener <rguenther@suse.de>
15143
15144 * Makefile.in (OBJS): Remove loop-unswitch.o.
15145 * tree-pass.h (make_pass_rtl_unswitch): Remove.
15146 * passes.def (pass_rtl_unswitch): Likewise.
15147 * loop-init.c (gate_rtl_unswitch): Likewise.
15148 (rtl_unswitch): Likewise.
15149 (pass_data_rtl_unswitch): Likewise.
15150 (pass_rtl_unswitch): Likewise.
15151 (make_pass_rtl_unswitch): Likewise.
15152 * rtl.h (reversed_condition): Likewise.
15153 (compare_and_jump_seq): Likewise.
15154 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
15155 and make static.
15156 * loop-unroll.c (compare_and_jump_seq): Likewise.
15157
15158 2014-04-23 Richard Biener <rguenther@suse.de>
15159
15160 PR tree-optimization/60903
15161 * tree-ssa-loop-im.c (analyze_memory_references): Remove
15162 commented code block.
15163 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
15164 loop flags to newly created BBs and edges.
15165
15166 2014-04-23 Nick Clifton <nickc@redhat.com>
15167
15168 * config/msp430/msp430.c (msp430_handle_option): Move function
15169 to msp430-common.c
15170 (msp430_option_override): Simplify mcu and mcpu option handling.
15171 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
15172 support for -mhwmult command line option.
15173 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
15174 -mhwmult command line option.
15175 (msp430_hwmult_enabled): Delete.
15176 (msp43o_output_labelref): Add support for -mhwmult command line option.
15177 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
15178 (umulsidi3): Likewise.
15179 * config/msp430/msp430.opt (mmcu): Add Report attribute.
15180 (mcpu, mlarge, msmall): Likewise.
15181 (mhwmult): New option.
15182 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
15183 prototype.
15184 (msp430_is_f5_mcu): Remove prototype.
15185 (msp430_use_f5_series_hwmult): Add prototype.
15186 * config/msp430/msp430-opts.h: New file.
15187 * common/config/msp430: New directory.
15188 * common/config/msp430/msp430-common.c: New file.
15189 * config.gcc (msp430): Remove target_has_targetm_common.
15190 * doc/invoke.texi: Document -mhwmult command line option.
15191
15192 2014-04-23 Nick Clifton <nickc@redhat.com>
15193
15194 * config/i386/cygwin.h (ENDFILE_SPEC): Include
15195 default-manifest.o if it can be found in the search path.
15196 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
15197
15198 2014-04-23 Terry Guo <terry.guo@arm.com>
15199
15200 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
15201
15202 2014-04-23 Richard Biener <rguenther@suse.de>
15203
15204 PR middle-end/60895
15205 * tree-inline.c (declare_return_variable): Use mark_addressable.
15206
15207 2014-04-23 Richard Biener <rguenther@suse.de>
15208
15209 PR middle-end/60891
15210 * loop-init.c (loop_optimizer_init): Make sure to apply
15211 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
15212
15213 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15214
15215 PR sanitizer/60275
15216 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
15217 New options.
15218 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
15219 if flag_sanitize_undefined_trap_on_error.
15220 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
15221 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
15222 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
15223 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
15224 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
15225 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
15226 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
15227 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
15228 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
15229 * ubsan.c (ubsan_instrument_unreachable): Return
15230 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
15231 (ubsan_expand_null_ifn): Emit __builtin_trap ()
15232 if flag_sanitize_undefined_trap_on_error and
15233 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
15234 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
15235 instrument_bool_enum_load): Emit __builtin_trap () if
15236 flag_sanitize_undefined_trap_on_error and
15237 __builtin_handle_*_abort () if !flag_sanitize_recover.
15238 * doc/invoke.texi (-fsanitize-recover,
15239 -fsanitize-undefined-trap-on-error): Document.
15240
15241 2014-04-22 Christian Bruel <christian.bruel@st.com>
15242
15243 * config/sh/sh.md (mov<mode>): Replace movQIHI.
15244 Force immediates to SImode.
15245
15246 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
15247
15248 * config/nios2/nios2.md (UNSPEC_ROUND): New.
15249 (lroundsfsi2): New.
15250 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
15251 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
15252 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
15253 (nios2_fpu_insn): Add entry for round.
15254 (N2FPU_NO_ERRNO_P): Define.
15255 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
15256 flag_errno_math.
15257 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
15258
15259 2014-04-22 Richard Henderson <rth@redhat.com>
15260
15261 * config/aarch64/aarch64 (addti3, subti3): New expanders.
15262 (add<GPI>3_compare0): Remove leading * from name.
15263 (add<GPI>3_carryin): Likewise.
15264 (sub<GPI>3_compare0): Likewise.
15265 (sub<GPI>3_carryin): Likewise.
15266 (<su_optab>mulditi3): New expander.
15267 (multi3): New expander.
15268 (madd<GPI>): Remove leading * from name.
15269
15270 2014-04-22 Martin Jambor <mjambor@suse.cz>
15271
15272 * cgraphclones.c (cgraph_function_versioning): Copy
15273 ipa_transforms_to_apply instead of asserting it is empty.
15274
15275 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
15276
15277 PR target/60868
15278 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
15279 on count_exp to get mode.
15280
15281 2014-04-22 Andrew Pinski <apinski@cavium.com>
15282
15283 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15284 Handle TLS for ILP32.
15285 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
15286 (tlsie_small_<mode>): this and handle PTR.
15287 (tlsie_small_sidi): New pattern.
15288 (tlsle_small): Change to an expand to handle ILP32.
15289 (tlsle_small_<mode>): New pattern.
15290 (tlsdesc_small): Rename to ...
15291 (tlsdesc_small_<mode>): this and handle PTR.
15292
15293 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15294
15295 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
15296
15297 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15298
15299 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
15300 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
15301 (aarch64_types_signed_poly_qualifiers): Likewise.
15302 (aarch64_types_unsigned_signed_qualifiers): Likewise.
15303 (aarch64_types_poly_signed_qualifiers): Likewise.
15304 (TYPES_REINTERP_SS): Type macro added.
15305 (TYPES_REINTERP_SU): Likewise.
15306 (TYPES_REINTERP_SP): Likewise.
15307 (TYPES_REINTERP_US): Likewise.
15308 (TYPES_REINTERP_PS): Likewise.
15309 (aarch64_fold_builtin): New expression folding added.
15310 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
15311 Declarations removed.
15312 (REINTERP_SS): Declarations added.
15313 (REINTERP_US): Likewise.
15314 (REINTERP_PS): Likewise.
15315 (REINTERP_SU): Likewise.
15316 (REINTERP_SP): Likewise.
15317 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
15318 (vreinterpretq_p8_f64): Likewise.
15319 (vreinterpret_p16_f64): Likewise.
15320 (vreinterpretq_p16_f64): Likewise.
15321 (vreinterpret_f32_f64): Likewise.
15322 (vreinterpretq_f32_f64): Likewise.
15323 (vreinterpret_f64_f32): Likewise.
15324 (vreinterpret_f64_p8): Likewise.
15325 (vreinterpret_f64_p16): Likewise.
15326 (vreinterpret_f64_s8): Likewise.
15327 (vreinterpret_f64_s16): Likewise.
15328 (vreinterpret_f64_s32): Likewise.
15329 (vreinterpret_f64_s64): Likewise.
15330 (vreinterpret_f64_u8): Likewise.
15331 (vreinterpret_f64_u16): Likewise.
15332 (vreinterpret_f64_u32): Likewise.
15333 (vreinterpret_f64_u64): Likewise.
15334 (vreinterpretq_f64_f32): Likewise.
15335 (vreinterpretq_f64_p8): Likewise.
15336 (vreinterpretq_f64_p16): Likewise.
15337 (vreinterpretq_f64_s8): Likewise.
15338 (vreinterpretq_f64_s16): Likewise.
15339 (vreinterpretq_f64_s32): Likewise.
15340 (vreinterpretq_f64_s64): Likewise.
15341 (vreinterpretq_f64_u8): Likewise.
15342 (vreinterpretq_f64_u16): Likewise.
15343 (vreinterpretq_f64_u32): Likewise.
15344 (vreinterpretq_f64_u64): Likewise.
15345 (vreinterpret_s64_f64): Likewise.
15346 (vreinterpretq_s64_f64): Likewise.
15347 (vreinterpret_u64_f64): Likewise.
15348 (vreinterpretq_u64_f64): Likewise.
15349 (vreinterpret_s8_f64): Likewise.
15350 (vreinterpretq_s8_f64): Likewise.
15351 (vreinterpret_s16_f64): Likewise.
15352 (vreinterpretq_s16_f64): Likewise.
15353 (vreinterpret_s32_f64): Likewise.
15354 (vreinterpretq_s32_f64): Likewise.
15355 (vreinterpret_u8_f64): Likewise.
15356 (vreinterpretq_u8_f64): Likewise.
15357 (vreinterpret_u16_f64): Likewise.
15358 (vreinterpretq_u16_f64): Likewise.
15359 (vreinterpret_u32_f64): Likewise.
15360 (vreinterpretq_u32_f64): Likewise.
15361
15362 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15363
15364 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
15365 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
15366 (vreinterpret_p8_s8): Likewise.
15367 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
15368 (vreinterpret_p8_s16): Likewise.
15369 (vreinterpret_p8_s32): Likewise.
15370 (vreinterpret_p8_s64): Likewise.
15371 (vreinterpret_p8_f32): Likewise.
15372 (vreinterpret_p8_u8): Likewise.
15373 (vreinterpret_p8_u16): Likewise.
15374 (vreinterpret_p8_u32): Likewise.
15375 (vreinterpret_p8_u64): Likewise.
15376 (vreinterpret_p8_p16): Likewise.
15377 (vreinterpretq_p8_s8): Likewise.
15378 (vreinterpretq_p8_s16): Likewise.
15379 (vreinterpretq_p8_s32): Likewise.
15380 (vreinterpretq_p8_s64): Likewise.
15381 (vreinterpretq_p8_f32): Likewise.
15382 (vreinterpretq_p8_u8): Likewise.
15383 (vreinterpretq_p8_u16): Likewise.
15384 (vreinterpretq_p8_u32): Likewise.
15385 (vreinterpretq_p8_u64): Likewise.
15386 (vreinterpretq_p8_p16): Likewise.
15387 (vreinterpret_p16_s8): Likewise.
15388 (vreinterpret_p16_s16): Likewise.
15389 (vreinterpret_p16_s32): Likewise.
15390 (vreinterpret_p16_s64): Likewise.
15391 (vreinterpret_p16_f32): Likewise.
15392 (vreinterpret_p16_u8): Likewise.
15393 (vreinterpret_p16_u16): Likewise.
15394 (vreinterpret_p16_u32): Likewise.
15395 (vreinterpret_p16_u64): Likewise.
15396 (vreinterpret_p16_p8): Likewise.
15397 (vreinterpretq_p16_s8): Likewise.
15398 (vreinterpretq_p16_s16): Likewise.
15399 (vreinterpretq_p16_s32): Likewise.
15400 (vreinterpretq_p16_s64): Likewise.
15401 (vreinterpretq_p16_f32): Likewise.
15402 (vreinterpretq_p16_u8): Likewise.
15403 (vreinterpretq_p16_u16): Likewise.
15404 (vreinterpretq_p16_u32): Likewise.
15405 (vreinterpretq_p16_u64): Likewise.
15406 (vreinterpretq_p16_p8): Likewise.
15407 (vreinterpret_f32_s8): Likewise.
15408 (vreinterpret_f32_s16): Likewise.
15409 (vreinterpret_f32_s32): Likewise.
15410 (vreinterpret_f32_s64): Likewise.
15411 (vreinterpret_f32_u8): Likewise.
15412 (vreinterpret_f32_u16): Likewise.
15413 (vreinterpret_f32_u32): Likewise.
15414 (vreinterpret_f32_u64): Likewise.
15415 (vreinterpret_f32_p8): Likewise.
15416 (vreinterpret_f32_p16): Likewise.
15417 (vreinterpretq_f32_s8): Likewise.
15418 (vreinterpretq_f32_s16): Likewise.
15419 (vreinterpretq_f32_s32): Likewise.
15420 (vreinterpretq_f32_s64): Likewise.
15421 (vreinterpretq_f32_u8): Likewise.
15422 (vreinterpretq_f32_u16): Likewise.
15423 (vreinterpretq_f32_u32): Likewise.
15424 (vreinterpretq_f32_u64): Likewise.
15425 (vreinterpretq_f32_p8): Likewise.
15426 (vreinterpretq_f32_p16): Likewise.
15427 (vreinterpret_s64_s8): Likewise.
15428 (vreinterpret_s64_s16): Likewise.
15429 (vreinterpret_s64_s32): Likewise.
15430 (vreinterpret_s64_f32): Likewise.
15431 (vreinterpret_s64_u8): Likewise.
15432 (vreinterpret_s64_u16): Likewise.
15433 (vreinterpret_s64_u32): Likewise.
15434 (vreinterpret_s64_u64): Likewise.
15435 (vreinterpret_s64_p8): Likewise.
15436 (vreinterpret_s64_p16): Likewise.
15437 (vreinterpretq_s64_s8): Likewise.
15438 (vreinterpretq_s64_s16): Likewise.
15439 (vreinterpretq_s64_s32): Likewise.
15440 (vreinterpretq_s64_f32): Likewise.
15441 (vreinterpretq_s64_u8): Likewise.
15442 (vreinterpretq_s64_u16): Likewise.
15443 (vreinterpretq_s64_u32): Likewise.
15444 (vreinterpretq_s64_u64): Likewise.
15445 (vreinterpretq_s64_p8): Likewise.
15446 (vreinterpretq_s64_p16): Likewise.
15447 (vreinterpret_u64_s8): Likewise.
15448 (vreinterpret_u64_s16): Likewise.
15449 (vreinterpret_u64_s32): Likewise.
15450 (vreinterpret_u64_s64): Likewise.
15451 (vreinterpret_u64_f32): Likewise.
15452 (vreinterpret_u64_u8): Likewise.
15453 (vreinterpret_u64_u16): Likewise.
15454 (vreinterpret_u64_u32): Likewise.
15455 (vreinterpret_u64_p8): Likewise.
15456 (vreinterpret_u64_p16): Likewise.
15457 (vreinterpretq_u64_s8): Likewise.
15458 (vreinterpretq_u64_s16): Likewise.
15459 (vreinterpretq_u64_s32): Likewise.
15460 (vreinterpretq_u64_s64): Likewise.
15461 (vreinterpretq_u64_f32): Likewise.
15462 (vreinterpretq_u64_u8): Likewise.
15463 (vreinterpretq_u64_u16): Likewise.
15464 (vreinterpretq_u64_u32): Likewise.
15465 (vreinterpretq_u64_p8): Likewise.
15466 (vreinterpretq_u64_p16): Likewise.
15467 (vreinterpret_s8_s16): Likewise.
15468 (vreinterpret_s8_s32): Likewise.
15469 (vreinterpret_s8_s64): Likewise.
15470 (vreinterpret_s8_f32): Likewise.
15471 (vreinterpret_s8_u8): Likewise.
15472 (vreinterpret_s8_u16): Likewise.
15473 (vreinterpret_s8_u32): Likewise.
15474 (vreinterpret_s8_u64): Likewise.
15475 (vreinterpret_s8_p8): Likewise.
15476 (vreinterpret_s8_p16): Likewise.
15477 (vreinterpretq_s8_s16): Likewise.
15478 (vreinterpretq_s8_s32): Likewise.
15479 (vreinterpretq_s8_s64): Likewise.
15480 (vreinterpretq_s8_f32): Likewise.
15481 (vreinterpretq_s8_u8): Likewise.
15482 (vreinterpretq_s8_u16): Likewise.
15483 (vreinterpretq_s8_u32): Likewise.
15484 (vreinterpretq_s8_u64): Likewise.
15485 (vreinterpretq_s8_p8): Likewise.
15486 (vreinterpretq_s8_p16): Likewise.
15487 (vreinterpret_s16_s8): Likewise.
15488 (vreinterpret_s16_s32): Likewise.
15489 (vreinterpret_s16_s64): Likewise.
15490 (vreinterpret_s16_f32): Likewise.
15491 (vreinterpret_s16_u8): Likewise.
15492 (vreinterpret_s16_u16): Likewise.
15493 (vreinterpret_s16_u32): Likewise.
15494 (vreinterpret_s16_u64): Likewise.
15495 (vreinterpret_s16_p8): Likewise.
15496 (vreinterpret_s16_p16): Likewise.
15497 (vreinterpretq_s16_s8): Likewise.
15498 (vreinterpretq_s16_s32): Likewise.
15499 (vreinterpretq_s16_s64): Likewise.
15500 (vreinterpretq_s16_f32): Likewise.
15501 (vreinterpretq_s16_u8): Likewise.
15502 (vreinterpretq_s16_u16): Likewise.
15503 (vreinterpretq_s16_u32): Likewise.
15504 (vreinterpretq_s16_u64): Likewise.
15505 (vreinterpretq_s16_p8): Likewise.
15506 (vreinterpretq_s16_p16): Likewise.
15507 (vreinterpret_s32_s8): Likewise.
15508 (vreinterpret_s32_s16): Likewise.
15509 (vreinterpret_s32_s64): Likewise.
15510 (vreinterpret_s32_f32): Likewise.
15511 (vreinterpret_s32_u8): Likewise.
15512 (vreinterpret_s32_u16): Likewise.
15513 (vreinterpret_s32_u32): Likewise.
15514 (vreinterpret_s32_u64): Likewise.
15515 (vreinterpret_s32_p8): Likewise.
15516 (vreinterpret_s32_p16): Likewise.
15517 (vreinterpretq_s32_s8): Likewise.
15518 (vreinterpretq_s32_s16): Likewise.
15519 (vreinterpretq_s32_s64): Likewise.
15520 (vreinterpretq_s32_f32): Likewise.
15521 (vreinterpretq_s32_u8): Likewise.
15522 (vreinterpretq_s32_u16): Likewise.
15523 (vreinterpretq_s32_u32): Likewise.
15524 (vreinterpretq_s32_u64): Likewise.
15525 (vreinterpretq_s32_p8): Likewise.
15526 (vreinterpretq_s32_p16): Likewise.
15527 (vreinterpret_u8_s8): Likewise.
15528 (vreinterpret_u8_s16): Likewise.
15529 (vreinterpret_u8_s32): Likewise.
15530 (vreinterpret_u8_s64): Likewise.
15531 (vreinterpret_u8_f32): Likewise.
15532 (vreinterpret_u8_u16): Likewise.
15533 (vreinterpret_u8_u32): Likewise.
15534 (vreinterpret_u8_u64): Likewise.
15535 (vreinterpret_u8_p8): Likewise.
15536 (vreinterpret_u8_p16): Likewise.
15537 (vreinterpretq_u8_s8): Likewise.
15538 (vreinterpretq_u8_s16): Likewise.
15539 (vreinterpretq_u8_s32): Likewise.
15540 (vreinterpretq_u8_s64): Likewise.
15541 (vreinterpretq_u8_f32): Likewise.
15542 (vreinterpretq_u8_u16): Likewise.
15543 (vreinterpretq_u8_u32): Likewise.
15544 (vreinterpretq_u8_u64): Likewise.
15545 (vreinterpretq_u8_p8): Likewise.
15546 (vreinterpretq_u8_p16): Likewise.
15547 (vreinterpret_u16_s8): Likewise.
15548 (vreinterpret_u16_s16): Likewise.
15549 (vreinterpret_u16_s32): Likewise.
15550 (vreinterpret_u16_s64): Likewise.
15551 (vreinterpret_u16_f32): Likewise.
15552 (vreinterpret_u16_u8): Likewise.
15553 (vreinterpret_u16_u32): Likewise.
15554 (vreinterpret_u16_u64): Likewise.
15555 (vreinterpret_u16_p8): Likewise.
15556 (vreinterpret_u16_p16): Likewise.
15557 (vreinterpretq_u16_s8): Likewise.
15558 (vreinterpretq_u16_s16): Likewise.
15559 (vreinterpretq_u16_s32): Likewise.
15560 (vreinterpretq_u16_s64): Likewise.
15561 (vreinterpretq_u16_f32): Likewise.
15562 (vreinterpretq_u16_u8): Likewise.
15563 (vreinterpretq_u16_u32): Likewise.
15564 (vreinterpretq_u16_u64): Likewise.
15565 (vreinterpretq_u16_p8): Likewise.
15566 (vreinterpretq_u16_p16): Likewise.
15567 (vreinterpret_u32_s8): Likewise.
15568 (vreinterpret_u32_s16): Likewise.
15569 (vreinterpret_u32_s32): Likewise.
15570 (vreinterpret_u32_s64): Likewise.
15571 (vreinterpret_u32_f32): Likewise.
15572 (vreinterpret_u32_u8): Likewise.
15573 (vreinterpret_u32_u16): Likewise.
15574 (vreinterpret_u32_u64): Likewise.
15575 (vreinterpret_u32_p8): Likewise.
15576 (vreinterpret_u32_p16): Likewise.
15577 (vreinterpretq_u32_s8): Likewise.
15578 (vreinterpretq_u32_s16): Likewise.
15579 (vreinterpretq_u32_s32): Likewise.
15580 (vreinterpretq_u32_s64): Likewise.
15581 (vreinterpretq_u32_f32): Likewise.
15582 (vreinterpretq_u32_u8): Likewise.
15583 (vreinterpretq_u32_u16): Likewise.
15584 (vreinterpretq_u32_u64): Likewise.
15585 (vreinterpretq_u32_p8): Likewise.
15586 (vreinterpretq_u32_p16): Likewise.
15587
15588 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15589
15590 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
15591 Pattern extended.
15592 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
15593 (sqabs): Likewise.
15594 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
15595 (vqnegd_s64): Likewise.
15596 (vqabs_s64): Likewise.
15597 (vqabsd_s64): Likewise.
15598
15599 2014-04-22 Richard Henderson <rth@redhat.com>
15600
15601 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
15602 computation to the top of the loop.
15603
15604 2014-04-22 Renlin <renlin.li@arm.com>
15605 Jiong Wang <jiong.wang@arm.com>
15606
15607 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
15608 * config/aarch64/aarch64.c (aarch64_layout_frame)
15609 (aarch64_initial_elimination_offset): Likewise.
15610
15611 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
15612
15613 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
15614 Fix indentation.
15615
15616 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
15617
15618 * machmode.h (bitwise_mode_for_mode): Declare.
15619 * stor-layout.h (bitwise_type_for_mode): Likewise.
15620 * stor-layout.c (bitwise_mode_for_mode): New function.
15621 (bitwise_type_for_mode): Likewise.
15622 * builtins.c (fold_builtin_memory_op): Use it instead of
15623 int_mode_for_mode and build_nonstandard_integer_type.
15624
15625 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15626
15627 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
15628 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
15629 (*-*-solaris2*): Simplify.
15630 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
15631 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
15632 *-*-solaris2.9* handling.
15633
15634 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
15635 as bug.
15636 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
15637 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
15638 handling, simplify.
15639 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
15640 * configure: Regenerate.
15641
15642 * config/i386/sol2-9.h: Remove.
15643
15644 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
15645 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
15646 Remove Solaris 9 references.
15647
15648 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
15649
15650 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
15651 (floatuns<GPI:mode><GPF:mode>2): Remove.
15652 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
15653 and floatuns conversions.
15654 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
15655 and floatuns conversions.
15656 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
15657 (w1,w2): New mode attributes for inequal width conversions.
15658
15659 2014-04-22 Renlin Li <Renlin.Li@arm.com>
15660
15661 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
15662 the output asm format.
15663
15664 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
15665
15666 * config/aarch64/aarch64-simd.md
15667 (aarch64_cm<optab>di): Always split.
15668 (*aarch64_cm<optab>di): New.
15669 (aarch64_cmtstdi): Always split.
15670 (*aarch64_cmtstdi): New.
15671
15672 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15673
15674 PR tree-optimization/60823
15675 * omp-low.c (ipa_simd_modify_function_body): Go through
15676 all SSA_NAMEs and for those refering to vector arguments
15677 which are going to be replaced adjust SSA_NAME_VAR and,
15678 if it is a default definition, change it into a non-default
15679 definition assigned at the beginning of function from new_decl.
15680 (ipa_simd_modify_stmt_ops): Rewritten.
15681 * tree-dfa.c (set_ssa_default_def): When removing default def,
15682 check for NULL loc instead of NULL *loc.
15683
15684 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15685
15686 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
15687 restrictions on core registers for DImode values in Thumb2.
15688
15689 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15690
15691 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
15692 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
15693
15694 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15695
15696 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
15697 (*iordi_notzesidi_di): Likewise.
15698 (*iordi_notsesidi_di): Likewise.
15699
15700 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15701
15702 * config/arm/arm-protos.h (tune_params): New struct members.
15703 * config/arm/arm.c: Initialise tune_params per processor.
15704 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
15705 for speed, based on new tune_params.
15706
15707 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15708
15709 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
15710 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
15711 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
15712 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
15713 * config/aarch64/arm_neon.h (vrnd_f64): Added.
15714 (vrnda_f64): Likewise.
15715 (vrndi_f64): Likewise.
15716 (vrndm_f64): Likewise.
15717 (vrndn_f64): Likewise.
15718 (vrndp_f64): Likewise.
15719 (vrndx_f64): Likewise.
15720
15721 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15722
15723 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
15724 GET_MODE_SIZE argument is enum machine_mode.
15725
15726 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15727
15728 PR target/60910
15729 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
15730 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
15731
15732 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
15733
15734 PR middle-end/60281
15735 * asan.c (asan_emit_stack_protection): Force the base to align to
15736 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
15737 appropriate bits if STRICT_ALIGNMENT.
15738 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
15739 when asan is on.
15740 (expand_used_vars): Leave a space in the stack frame for alignment
15741 if STRICT_ALIGNMENT.
15742
15743 2014-04-21 David Malcolm <dmalcolm@redhat.com>
15744
15745 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
15746 than a gimple.
15747 (gimple_store_p): Likewise.
15748 (gimple_assign_load_p): Likewise.
15749 (gimple_assign_cast_p): Likewise.
15750 (gimple_clobber_p): Likewise.
15751
15752 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
15753 rather than a gimple.
15754 (gimple_assign_cast_p): Likewise.
15755
15756 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15757
15758 PR target/60735
15759 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
15760 If mode is DDmode and TARGET_E500_DOUBLE allow move.
15761
15762 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
15763 more debug information for E500 if -mdebug=reg.
15764
15765 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
15766
15767 PR target/60909
15768 * config/i386/i386.c (ix86_expand_builtin)
15769 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
15770 register for target RTX.
15771 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
15772
15773 2014-04-18 Cong Hou <congh@google.com>
15774
15775 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
15776 the widen-mult pattern by handling two operands with different sizes,
15777 and operands whose size is smaller than half of the result type.
15778
15779 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15780
15781 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
15782 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
15783 (do_estimate_edge_time): Compute it.
15784 * ipa-inline.c (want_inline_small_function_p): Bypass
15785 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
15786
15787 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15788
15789 * ipa-inline.c (spec_rem): New static variable.
15790 (dump_overall_stats): New function.
15791 (dump_inline_stats): New function.
15792
15793 2014-04-18 Richard Henderson <rth@redhat.com>
15794
15795 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
15796 to GET_MODE_SIZE, not a reg_class_t.
15797
15798 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15799
15800 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
15801 (vsx_xxmrglw_<mode>): Likewise.
15802
15803 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
15804
15805 PR target/60876
15806 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
15807 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
15808 (rs6000_init_hard_regno_mode_ok): Likewise.
15809
15810 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
15811
15812 * ipa-inline.c (inline_small_functions): Account only non-cold
15813 functions.
15814 * doc/invoke.texi (inline-unit-growth): Update documentation.
15815
15816 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
15817
15818 * config/rs6000/rs6000.md (addti3, subti3): New.
15819
15820 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
15821
15822 PR target/60863
15823 * config/i386/i386.c (ix86_expand_clear): Remove outdated
15824 comment. Check optimize_insn_for_size_p instead of
15825 optimize_insn_for_speed_p.
15826
15827 2014-04-17 Martin Jambor <mjambor@suse.cz>
15828
15829 * gimple-iterator.c (gsi_start_edge): New function.
15830 * gimple-iterator.h (gsi_start_edge): Declare.
15831 * tree-sra.c (single_non_eh_succ): New function.
15832 (disqualify_ops_if_throwing_stmt): Renamed to
15833 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
15834 having one non-EH successor BB.
15835 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
15836 generate loads into replacements.
15837 (sra_modify_assign): Likewise and and also use the simple path for
15838 such statements.
15839 (sra_modify_function_body): Commit statements on edges.
15840
15841 2014-04-17 Richard Biener <rguenther@suse.de>
15842
15843 PR middle-end/60849
15844 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
15845 comparison results and add clarifying comment.
15846
15847 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15848
15849 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
15850 (blank_mode): Initialize it.
15851 (emit_mode_size_inline, emit_mode_nunits_inline,
15852 emit_mode_inner_inline): New functions.
15853 (emit_insn_modes_h): Call them and surround their output with
15854 #if GCC_VERSION >= 4001 ... #endif.
15855 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
15856 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
15857 mode_* arrays if the argument is __builtin_constant_p.
15858 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
15859 is enum machine_mode.
15860
15861 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15862
15863 * passes.c (opt_pass::execute): Adjust.
15864 (pass_manager::execute_pass_mode_switching): Likewise.
15865 (early_local_passes::execute): Likewise.
15866 (execute_one_pass): Pass cfun to the pass's execute method.
15867 * tree-pass.h (opt_pass::execute): Add function * argument.
15868 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15869 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15870 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15871 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15872 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15873 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
15874 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
15875 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15876 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15877 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
15878 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
15879 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
15880 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
15881 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
15882 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15883 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15884 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15885 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
15886 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15887 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15888 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15889 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15890 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15891 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15892 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15893 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15894 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15895 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15896 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15897 Adjust.
15898
15899 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15900
15901 * passes.c (opt_pass::gate): Take function * argument.
15902 (gate_all_early_local_passes): Merge into
15903 (early_local_passes::gate): this.
15904 (gate_all_early_optimizations): Merge into
15905 (all_early_optimizations::gate): this.
15906 (gate_all_optimizations): Mege into
15907 (all_optimizations::gate): this.
15908 (gate_all_optimizations_g): Merge into
15909 (all_optimizations_g::gate): this.
15910 (gate_rest_of_compilation): Mege into
15911 (rest_of_compilation::gate): this.
15912 (gate_postreload): Merge into
15913 (postreload::gate): this.
15914 (dump_one_pass): Pass cfun to the pass's gate method.
15915 (execute_ipa_summary_passes): Likewise.
15916 (execute_one_pass): Likewise.
15917 (ipa_write_summaries_2): Likewise.
15918 (ipa_write_optimization_summaries_1): Likewise.
15919 (ipa_read_summaries_1): Likewise.
15920 (ipa_read_optimization_summaries_1): Likewise.
15921 (execute_ipa_stmt_fixups): Likewise.
15922 * tree-pass.h (opt_pass::gate): Add function * argument.
15923 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
15924 combine-stack-adj.c, combine.c, compare-elim.c,
15925 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15926 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
15927 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
15928 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
15929 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15930 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15931 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15932 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
15933 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15934 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
15935 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15936 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15937 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
15938 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15939 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15940 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15941 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15942 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15943 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15944 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15945 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15946 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15947 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15948 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
15949 var-tracking.c, vtable-verify.c, web.c: Adjust.
15950
15951 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15952
15953 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
15954 * configure: Regenerate.
15955
15956 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15957
15958 * passes.c (dump_one_pass): don't check pass->has_gate.
15959 (execute_ipa_summary_passes): Likewise.
15960 (execute_one_pass): Likewise.
15961 (ipa_write_summaries_2): Likewise.
15962 (ipa_write_optimization_summaries_1): Likewise.
15963 (ipa_read_optimization_summaries_1): Likewise.
15964 (execute_ipa_stmt_fixups): Likewise.
15965 * tree-pass.h (pass_data::has_gate): Remove.
15966 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15967 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15968 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15969 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15970 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15971 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15972 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15973 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15974 gimple-low.c, gimple-ssa-isolate-paths.c,
15975 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15976 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15977 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15978 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
15979 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
15980 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
15981 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
15982 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15983 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
15984 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15985 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15986 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15987 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15988 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15989 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15990 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15991 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15992 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15993 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15994 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15995 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15996 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15997 Adjust.
15998
15999 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16000
16001 * pass_manager.h (pass_manager::register_dump_files_1): Remove
16002 declaration.
16003 * passes.c (pass_manager::register_dump_files_1): Merge into
16004 (pass_manager::register_dump_files): this, and remove its handling of
16005 properties since the pass always has the properties anyway.
16006 (pass_manager::pass_manager): Adjust.
16007
16008 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16009
16010 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
16011 * passes.c (pass_manager::register_dump_files_1): Remove dead code
16012 dealing with properties.
16013 (pass_manager::register_dump_files): Adjust.
16014
16015 2014-03-20 Mark Wielaard <mjw@redhat.com>
16016
16017 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
16018 then represent the bound as normal constant value.
16019
16020 2014-04-17 Jakub Jelinek <jakub@redhat.com>
16021
16022 PR target/60847
16023 Forward port from 4.8 branch
16024 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
16025
16026 * config/i386/bmiintrin.h (_blsi_u32): New.
16027 (_blsi_u64): Ditto.
16028 (_blsr_u32): Ditto.
16029 (_blsr_u64): Ditto.
16030 (_blsmsk_u32): Ditto.
16031 (_blsmsk_u64): Ditto.
16032 (_tzcnt_u32): Ditto.
16033 (_tzcnt_u64): Ditto.
16034
16035 2014-04-17 Kito Cheng <kito@0xlab.org>
16036
16037 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
16038
16039 2014-04-17 Richard Biener <rguenther@suse.de>
16040
16041 PR middle-end/60849
16042 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
16043 boolean results for comparisons.
16044
16045 2014-04-17 Richard Biener <rguenther@suse.de>
16046
16047 PR tree-optimization/60836
16048 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
16049 initial PHI args to be gimple values.
16050
16051 2014-04-17 Richard Biener <rguenther@suse.de>
16052
16053 PR tree-optimization/60841
16054 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
16055 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
16056 of stmts to SLP build.
16057 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
16058 (vect_analyze_slp): Likewise.
16059 (vect_analyze_slp_instance): Likewise.
16060 (vect_build_slp_tree): Limit overall SLP tree growth.
16061 * tree-vectorizer.h (vect_analyze_data_refs,
16062 vect_analyze_slp): Adjust prototypes.
16063
16064 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
16065
16066 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
16067 Silvermont.
16068
16069 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
16070
16071 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
16072 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
16073 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
16074 for TARGET_SLOW_PSHUFB
16075
16076 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
16077
16078 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
16079 * config/i386/i386.c (intel_cost): Ditto.
16080
16081 2014-04-17 Joey Ye <joey.ye@arm.com>
16082
16083 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
16084
16085 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
16086
16087 * opts.c (common_handle_option): Disable -fipa-reference coorectly
16088 with -fuse-profile.
16089
16090 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
16091
16092 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
16093 (type_all_derivations_known_p): New predicate.
16094 (type_all_ctors_visible_p): New predicate.
16095 (type_possibly_instantiated_p): New predicate.
16096 (get_odr_type): Compute all_derivations_known.
16097 (dump_odr_type): Dump the flag.
16098 (maybe_record_type): Cleanup.
16099 (record_target_from_binfo): Add bases_to_consider array;
16100 record bases for types w/o instances and skip CXX destructor.
16101 (possible_polymorphic_call_targets_1): Add bases_to_consider
16102 and consider_construction parameters; check if type may have instance.
16103 (get_polymorphic_call_info): Set maybe_in_construction to true
16104 when we know nothing.
16105 (record_targets_from_bases): Skip CXX destructors; they are
16106 never called for types in construction.
16107 (possible_polymorphic_call_targets): Do not record target when
16108 type may not have instance.
16109
16110 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
16111
16112 PR ipa/60854
16113 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
16114 external aliases alive, too.
16115
16116 2014-04-16 Andrew Pinski <apinski@cavium.com>
16117
16118 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
16119 definition.
16120
16121 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
16122
16123 * final.c (compute_alignments): Do not apply loop alignment to a block
16124 falling through to the exit.
16125
16126 2014-04-16 Catherine Moore <clm@codesourcery.com>
16127
16128 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
16129 Adjust constraints for microMIPS store patterns.
16130
16131 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
16132
16133 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
16134
16135 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
16136
16137 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
16138 (append_use): Run at -O0.
16139 (append_vdef): Likewise.
16140 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
16141 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
16142
16143 2014-04-16 Jakub Jelinek <jakub@redhat.com>
16144
16145 PR tree-optimization/60844
16146 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
16147 (propagate_op_to_single_use, remove_visited_stmt_chain,
16148 linearize_expr, repropagate_negates, reassociate_bb): Use it
16149 instead of gsi_remove.
16150
16151 2014-04-16 Martin Jambor <mjambor@suse.cz>
16152
16153 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
16154 ipa_transforms_to_apply.
16155 (cgraph_function_versioning): Assert that old_node has empty
16156 ipa_transforms_to_apply.
16157 * trans-mem.c (ipa_tm_create_version): Likewise.
16158 * tree-inline.c (tree_function_versioning): Do not duplicate
16159 ipa_transforms_to_apply.
16160
16161 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16162
16163 PR target/60817
16164 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
16165 x86_64-*-* cases.
16166 Pass necessary as flags on 64-bit Solaris/x86.
16167 Use lowercase relocs for x86_64-*-*.
16168 * configure: Regenerate.
16169
16170 2014-04-15 Jan Hubicka <jh@suse.cz>
16171
16172 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
16173 (maybe_record_node, likely_target_p): Use it.
16174
16175 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16176
16177 PR target/60839
16178 Revert following patch
16179
16180 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16181
16182 PR target/60735
16183 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16184 software floating point or no floating point registers, do not
16185 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16186 in GPRs that occurs after we tested for GPRs that would never be
16187 true.
16188
16189 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16190 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16191 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16192 specifically allow DDmode, since that does not use the SPE SIMD
16193 instructions.
16194
16195 2014-03-21 Mark Wielaard <mjw@redhat.com>
16196
16197 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
16198 as unsigned or int depending on type and value used.
16199
16200 2014-04-15 Richard Biener <rguenther@suse.de>
16201
16202 PR rtl-optimization/56965
16203 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
16204 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
16205 ... here.
16206 * alias.c (true_dependence_1): Do not call
16207 nonoverlapping_component_refs_p.
16208 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
16209 nonoverlapping_component_refs_p.
16210 (indirect_refs_may_alias_p): Likewise.
16211
16212 2014-04-15 Teresa Johnson <tejohnson@google.com>
16213
16214 * cfg.c (dump_bb_info): Fix flags check.
16215 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
16216
16217 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16218
16219 PR rtl-optimization/60663
16220 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
16221 avoid 0 cost.
16222
16223 2014-04-15 Richard Biener <rguenther@suse.de>
16224
16225 * lto-streamer.h (LTO_major_version): Bump to 4.
16226
16227 2014-04-15 Richard Biener <rguenther@suse.de>
16228
16229 * common.opt (lto_partition_model): New enum.
16230 (flto-partition=): Merge separate options with a single with argument,
16231 add -flto-partition=one support.
16232 * flag-types.h (enum lto_partition_model): Declare.
16233 * opts.c (finish_options): Remove duplicate -flto-partition=
16234 option check.
16235 * lto-wrapper.c (run_gcc): Adjust.
16236
16237 2014-04-15 Richard Biener <rguenther@suse.de>
16238
16239 * alias.c (ncr_compar): New function.
16240 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
16241
16242 2014-04-15 Richard Biener <rguenther@suse.de>
16243
16244 * alias.c (record_component_aliases): Do not walk BINFOs.
16245
16246 2014-04-15 Richard Biener <rguenther@suse.de>
16247
16248 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16249 Add struct function argument and adjust.
16250 (find_func_aliases_for_call): Likewise.
16251 (find_func_aliases): Likewise.
16252 (find_func_clobbers): Likewise.
16253 (intra_create_variable_infos): Likewise.
16254 (compute_points_to_sets): Likewise.
16255 (ipa_pta_execute): Adjust. Do not push/pop cfun.
16256
16257 2014-04-15 Richard Biener <rguenther@suse.de>
16258
16259 * tree.c (iterative_hash_expr): Use enum tree_code_class
16260 to store TREE_CODE_CLASS.
16261 (tree_block): Likewise.
16262 (tree_set_block): Likewise.
16263 * tree.h (fold_build_pointer_plus_loc): Use
16264 convert_to_ptrofftype_loc.
16265
16266 2014-04-15 Jakub Jelinek <jakub@redhat.com>
16267
16268 PR plugins/59335
16269 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
16270 added in 4.9.
16271
16272 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
16273
16274 * cfgloop.h (struct loop): Move force_vectorize down.
16275 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
16276 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
16277 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
16278 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
16279 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
16280 * tree-core.h (enum annot_expr_kind): Add new kind values.
16281 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
16282 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
16283 kinds.
16284 * tree.def (ANNOTATE_EXPR): Tweak comment.
16285
16286 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16287
16288 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
16289 cxa_pure_virtual).
16290
16291 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
16292
16293 * tree.h (TYPE_IDENTIFIER): Declare.
16294 * tree.c (subrange_type_for_debug_p): Use it.
16295 * godump.c (go_format_type): Likewise.
16296 * dwarf2out.c (is_cxx_auto, modified_type_die,
16297 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
16298 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
16299
16300 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16301
16302 PR lto/60820
16303 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
16304
16305 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
16306
16307 * config/i386/i386.c (examine_argument): Return bool. Return true if
16308 parameter should be passed in memory.
16309 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
16310 (construct_container): Update calls to examine_argument.
16311 (function_arg_advance_64): Ditto.
16312 (return_in_memory_32): Merge with ix86_return_in_memory.
16313 (return_in_memory_64): Ditto.
16314 (return_in_memory_ms_64): Ditto.
16315
16316 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16317
16318 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
16319 * coverage.c (coverage_compute_profile_id): Handle externally visible
16320 symbols.
16321
16322 2014-04-14 Martin Jambor <mjambor@suse.cz>
16323
16324 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
16325 DECL_DISREGARD_INLINE_LIMITS functions.
16326
16327 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
16328
16329 PR target/60827
16330 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
16331
16332 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
16333
16334 PR target/60827
16335 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
16336 optimize_insn_for_speed_p instead of
16337 optimize_function_for_speed_p.
16338
16339 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
16340
16341 * doc/invoke.texi (free): Document AArch64.
16342
16343 2014-04-14 Richard Biener <rguenther@suse.de>
16344
16345 PR tree-optimization/60042
16346 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
16347 (insert_into_preds_of_block): Do not prevent PHI insertion
16348 for REFERENCE exprs here ...
16349 (eliminate_dom_walker::before_dom_children): ... but prevent
16350 their use here under similar conditions when applied to the
16351 IL after PRE optimizations.
16352
16353 2014-04-14 Richard Biener <rguenther@suse.de>
16354
16355 * passes.def: Move early points-to after early SRA.
16356
16357 2014-04-14 Richard Biener <rguenther@suse.de>
16358
16359 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
16360 check for which sign-changes we allow when forwarding
16361 a converted value into a switch.
16362
16363 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
16364
16365 * stor-layout.c (place_field): Finalize non-constant offset for the
16366 field, if any.
16367
16368 2014-04-14 Richard Biener <rguenther@suse.de>
16369
16370 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
16371 as argument.
16372 (expand_switch_using_bit_tests_p): Likewise.
16373 (process_switch): Compute and pass on speed_p based on the
16374 switch stmt.
16375 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
16376 optimize_bb_for_speed_p.
16377
16378 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
16379
16380 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
16381 * function.h (struct function): Rename has_force_vect_loops into
16382 has_force_vectorize_loops.
16383 * lto-streamer-in.c (input_cfg): Adjust for renaming.
16384 (input_struct_function_base): Likewise.
16385 * lto-streamer-out.c (output_cfg): Likewise.
16386 (output_struct_function_base): Likewise.
16387 * omp-low.c (expand_omp_simd): Likewise.
16388 * tree-cfg.c (move_sese_region_to_fn): Likewise.
16389 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
16390 (version_loop_for_if_conversion): Likewise.
16391 (tree_if_conversion): Likewise.
16392 (main_tree_if_conversion): Likewise.
16393 (gate_tree_if_conversion): Likewise.
16394 * tree-inline.c (copy_loops): Likewise.
16395 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
16396 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
16397 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
16398 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
16399 * tree-vectorizer.c (vectorize_loops): Likewise.
16400 * tree-vectorizer.h (unlimited_cost_model): Likewise.
16401
16402 2014-04-14 Richard Biener <rguenther@suse.de>
16403
16404 PR lto/60720
16405 * lto-streamer-out.c (wrap_refs): New function.
16406 (lto_output): Wrap symbol references in global initializes in
16407 type-preserving MEM_REFs.
16408
16409 2014-04-14 Christian Bruel <christian.bruel@st.com>
16410
16411 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
16412
16413 2014-04-14 Christian Bruel <christian.bruel@st.com>
16414
16415 * config/sh/sh.md (setmemqi): New expand pattern.
16416 * config/sh/sh.h (CLEAR_RATIO): Define.
16417 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
16418 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
16419
16420 2014-04-14 Richard Biener <rguenther@suse.de>
16421
16422 PR middle-end/55022
16423 * fold-const.c (negate_expr_p): Don't negate directional rounding
16424 division.
16425 (fold_negate_expr): Likewise.
16426
16427 2014-04-14 Richard Biener <rguenther@suse.de>
16428
16429 PR tree-optimization/59817
16430 PR tree-optimization/60453
16431 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
16432 recursion to catch all CHRECs in the scalar evolution and restrict
16433 the predicate for the remains appropriately.
16434
16435 2014-04-12 Catherine Moore <clm@codesourcery.com>
16436
16437 * config/mips/constraints.md: Add new register constraint "kb".
16438 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
16439 (*movhi_internal): Likewise.
16440 (*movqi_internal): Likewise.
16441 * config/mips/mips.h (M16_STORE_REGS): New register class.
16442 (REG_CLASS_NAMES): Add M16_STORE_REGS.
16443 (REG_CLASS_CONTENTS): Likewise.
16444 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
16445
16446 2014-04-11 Tobias Burnus <burnus@net-b.de>
16447
16448 PR c/60194
16449 * doc/invoke.texi (-Wformat-signedness): Document it.
16450 (Wformat=2): Mention that this enables -Wformat-signedness.
16451
16452 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16453
16454 * common/config/epiphany/epiphany-common.c
16455 (epiphany_option_optimization_table): Enable section anchors by
16456 default at -O1 or higher.
16457 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
16458 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
16459 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
16460 carries no extra cost.
16461 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
16462 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
16463 * config/epiphany/predicates.md (memclob_operand): New predicate.
16464 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
16465 Use memclob_operand predicate and X constraint for operand 3.
16466
16467 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16468
16469 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
16470 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
16471 its operands.
16472
16473 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16474
16475 PR rtl-optimization/60651
16476 * mode-switching.c (optimize_mode_switching): Make sure to emit
16477 sets of a lower numbered entity before sets of a higher numbered
16478 entity to a mode of the same or lower priority.
16479 When creating a seginfo for a basic block that starts with a code
16480 label, move the insertion point past the code label.
16481 (new_seginfo): Document and enforce requirement that
16482 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
16483 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
16484 * doc/tm.texi: Regenerate.
16485
16486 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
16487
16488 PR target/60811
16489 * config/arc/arc.c (arc_save_restore): Fix assert typo.
16490
16491 2013-04-11 Jakub Jelinek <jakub@redhat.com>
16492
16493 * BASE-VER: Set to 4.10.0.
16494
16495 2014-04-11 Tobias Burnus <burnus@net-b.de>
16496
16497 PR other/59055
16498 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
16499 * doc/gcc.texi (Service): Update description in the @menu
16500 * doc/invoke.texi (Option Summary): Remove misplaced and
16501 duplicated @menu.
16502
16503 2014-04-11 Steve Ellcey <sellcey@mips.com>
16504 Jakub Jelinek <jakub@redhat.com>
16505
16506 PR middle-end/60556
16507 * expr.c (convert_move): Use emit_store_flag_force instead of
16508 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
16509 argument to it.
16510
16511 2014-04-11 Richard Biener <rguenther@suse.de>
16512
16513 PR middle-end/60797
16514 * varasm.c (assemble_alias): Avoid endless error reporting
16515 recursion by setting TREE_ASM_WRITTEN.
16516
16517 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16518
16519 * config/s390/s390.md: Add a splitter for NOT rtx.
16520
16521 2014-04-11 Jakub Jelinek <jakub@redhat.com>
16522
16523 PR rtl-optimization/60663
16524 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
16525
16526 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
16527 Jakub Jelinek <jakub@redhat.com>
16528
16529 PR lto/60567
16530 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
16531 flag from decl_node to node.
16532
16533 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16534
16535 PR debug/60655
16536 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
16537 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
16538 ameliorating the cases where it can be.
16539
16540 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
16541
16542 Revert
16543 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
16544
16545 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
16546 (loadsync_<mode>): Change mode.
16547 (load_quadpti, store_quadpti): New.
16548 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
16549 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
16550 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
16551
16552 2014-04-09 Cong Hou <congh@google.com>
16553
16554 PR testsuite/60773
16555 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
16556 documentation.
16557
16558 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16559
16560 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
16561 instead of vnor to exploit possible fusion opportunity in the
16562 future.
16563 (altivec_expand_vec_perm_const_le): Likewise.
16564
16565 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
16566
16567 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
16568 (loadsync_<mode>): Change mode.
16569 (load_quadpti, store_quadpti): New.
16570 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
16571 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
16572
16573 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
16574
16575 PR target/60763
16576 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
16577 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
16578 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
16579
16580 2014-04-08 Richard Biener <rguenther@suse.de>
16581
16582 PR middle-end/60706
16583 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
16584 a 64bit widest int print double-int similar to on HWI64 hosts.
16585
16586 2014-04-08 Richard Biener <rguenther@suse.de>
16587
16588 PR tree-optimization/60785
16589 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
16590 default defs properly.
16591
16592 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
16593
16594 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
16595 (Weffc++): Likewise.
16596
16597 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
16598
16599 * ipa-devirt.c (maybe_record_node): When node is not recorded,
16600 set completep to false rather than true.
16601
16602 2014-04-07 Douglas B Rupp <rupp@adacore.com>
16603
16604 PR target/60504
16605 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
16606 ARM_TARGET2_DWARF_FORMAT.
16607
16608 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
16609
16610 PR target/60609
16611 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
16612 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
16613 ADDR_DIFF_VEC.
16614
16615 2014-04-07 Richard Biener <rguenther@suse.de>
16616
16617 PR tree-optimization/60766
16618 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
16619 (may_eliminate_iv): Convert cand_value_at result to desired type.
16620
16621 2014-04-07 Jason Merrill <jason@redhat.com>
16622
16623 PR c++/60731
16624 * common.opt (-fno-gnu-unique): Add.
16625 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
16626
16627 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16628
16629 * haifa-sched.c: Fix outdated function reference and minor
16630 grammar errors in introductory comment.
16631
16632 2014-04-07 Richard Biener <rguenther@suse.de>
16633
16634 PR middle-end/60750
16635 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
16636 for noreturn calls.
16637 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
16638
16639 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
16640
16641 PR debug/55794
16642 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
16643 size accounting for thunks.
16644 (pa_asm_output_mi_thunk): Use final_start_function() and
16645 final_end_function() to output function start and end directives.
16646
16647 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
16648
16649 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
16650 device specific ISA/ feature information. Remove short_sp and
16651 errata_skip ds. Add avr_device_specific_features enum to have device
16652 specific info.
16653 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
16654 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
16655 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
16656 updated device specific info.
16657 * config/avr/avr-mcus.def: Merge device specific details to
16658 dev_attribute field.
16659 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
16660 errata_skip.
16661 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
16662 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
16663 assembler if RMW isa supported by current device.
16664 * config/avr/genmultilib.awk: Update as device info structure changed.
16665 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
16666
16667 2014-04-04 Cong Hou <congh@google.com>
16668
16669 PR tree-optimization/60656
16670 * tree-vect-stmts.c (supportable_widening_operation):
16671 Fix a bug that elements in a vector with vect_used_by_reduction
16672 property are incorrectly reordered when the operation on it is not
16673 consistant with the one in reduction operation.
16674
16675 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
16676
16677 PR rtl-optimization/60155
16678 * gcse.c (record_set_data): New function.
16679 (single_set_gcse): New function.
16680 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
16681 (hoist_code): Likewise.
16682 (get_pressure_class_and_nregs): Likewise.
16683
16684 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
16685
16686 * explow.c (probe_stack_range): Emit a final optimization blockage.
16687
16688 2014-04-04 Anthony Green <green@moxielogic.com>
16689
16690 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
16691 typos.
16692
16693 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
16694
16695 PR ipa/59626
16696 * lto-cgraph.c (input_overwrite_node): Check that partitioning
16697 flags are set only during streaming.
16698 * ipa.c (process_references, walk_polymorphic_call_targets,
16699 symtab_remove_unreachable_nodes): Drop bodies of always inline
16700 after early inlining.
16701 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
16702
16703 2014-04-04 Jakub Jelinek <jakub@redhat.com>
16704 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16705
16706 PR debug/60655
16707 * dwarf2out.c (const_ok_for_output_1): Reject expressions
16708 containing a NOT.
16709
16710 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16711
16712 PR bootstrap/60743
16713 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
16714 duration.
16715 (cortex_a53_fdivd): Likewise.
16716
16717 2014-04-04 Martin Jambor <mjambor@suse.cz>
16718
16719 PR ipa/60640
16720 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
16721 Adjust all callers.
16722 * cgraph.c (clone_of_p): Also return true if thunks match.
16723 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
16724 cgraph_function_or_thunk_node and an obsolete comment.
16725 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
16726 file.
16727 (build_function_decl_skip_args): Likewise.
16728 (set_new_clone_decl_and_node_flags): New function.
16729 (duplicate_thunk_for_node): Likewise.
16730 (redirect_edge_duplicating_thunks): Likewise.
16731 (cgraph_clone_node): New parameter args_to_skip, pass it to
16732 redirect_edge_duplicating_thunks which is called instead of
16733 cgraph_redirect_edge_callee.
16734 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
16735 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
16736
16737 2014-04-04 Jeff Law <law@redhat.com>
16738
16739 PR target/60657
16740 * config/arm/predicates.md (const_int_I_operand): New predicate.
16741 (const_int_M_operand): Similarly.
16742 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
16743 const_int_operand.
16744 (insv_t2, extv_reg, extzv_t2): Likewise.
16745 (load_multiple_with_writeback): Similarly for const_int_I_operand.
16746 (pop_multiple_with_writeback_and_return): Likewise.
16747 (vfp_pop_multiple_with_writeback): Likewise
16748
16749 2014-04-04 Richard Biener <rguenther@suse.de>
16750
16751 PR ipa/60746
16752 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
16753 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
16754 non-GIMPLE_LABELs.
16755 * gimplify.h (gimple_add_tmp_var_fn): Declare.
16756 * gimplify.c (gimple_add_tmp_var_fn): New function.
16757 * gimple-expr.h (create_tmp_reg_fn): Declare.
16758 * gimple-expr.c (create_tmp_reg_fn): New function.
16759 * gimple-low.c (record_vars_into): Don't change cfun.
16760 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
16761 code generation without cfun.
16762
16763 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
16764
16765 PR bootstrap/60719
16766 * Makefile.in (install-driver): Fix shell scripting.
16767
16768 2014-04-03 Cong Hou <congh@google.com>
16769
16770 PR tree-optimization/60505
16771 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
16772 threshold of number of iterations below which no vectorization
16773 will be done.
16774 * tree-vect-loop.c (new_loop_vec_info):
16775 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
16776 * tree-vect-loop.c (vect_analyze_loop_operations):
16777 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
16778 * tree-vect-loop.c (vect_transform_loop):
16779 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
16780 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
16781 of iterations of the loop and see if we should build the epilogue.
16782
16783 2014-04-03 Richard Biener <rguenther@suse.de>
16784
16785 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
16786 (streamer_tree_cache_create): Adjust.
16787 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
16788 to allow optional nodes array.
16789 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
16790 (streamer_tree_cache_append): Likewise.
16791 (streamer_tree_cache_create): Create nodes array optionally
16792 as specified by parameter.
16793 * lto-streamer-out.c (create_output_block): Avoid maintaining
16794 the node array in the writer cache.
16795 (DFS_write_tree): Remove assertion.
16796 (produce_asm_for_decls): Free the out decl state hash table early.
16797 * lto-streamer-in.c (lto_data_in_create): Adjust for
16798 streamer_tree_cache_create prototype change.
16799
16800 2014-04-03 Richard Biener <rguenther@suse.de>
16801
16802 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
16803 set TREE_CHAIN to NULL_TREE.
16804
16805 2014-04-03 Richard Biener <rguenther@suse.de>
16806
16807 PR tree-optimization/60740
16808 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
16809 over all GIMPLE_COND operands.
16810
16811 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
16812
16813 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
16814 (Weffc++): Remove Scott's numbering, merge lists and reference
16815 Wnon-virtual-dtor.
16816
16817 2014-04-03 Nick Clifton <nickc@redhat.com>
16818
16819 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
16820 properly.
16821
16822 2014-04-03 Martin Jambor <mjambor@suse.cz>
16823
16824 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
16825 mention gcc_unreachable before failing.
16826 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
16827 removed symbols.
16828
16829 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
16830
16831 PR ipa/60659
16832 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
16833 inconsistent code and instead mark the context inconsistent.
16834 (possible_polymorphic_call_targets): For inconsistent contexts
16835 return empty complete list.
16836
16837 2014-04-02 Anthony Green <green@moxielogic.com>
16838
16839 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
16840 (extendqisi2, extendhisi2): Define.
16841 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
16842 (WCHAR_TYPE): Change to unsigned int.
16843
16844 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16845
16846 PR tree-optimization/60733
16847 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
16848 insertion point for PHI candidates to be the end of the feeding
16849 block for the PHI argument.
16850
16851 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
16852
16853 PR rtl-optimization/60650
16854 * lra-constraints.c (process_alt_operands): Decrease reject for
16855 earlyclobber matching.
16856
16857 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16858
16859 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
16860
16861 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16862
16863 * config/spu/spu.c (pad_bb): Do not crash when the last
16864 insn is CODE_FOR_blockage.
16865
16866 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16867
16868 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
16869 lies outside the target mode.
16870
16871 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16872
16873 PR target/60735
16874 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16875 software floating point or no floating point registers, do not
16876 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16877 in GPRs that occurs after we tested for GPRs that would never be
16878 true.
16879
16880 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16881 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16882 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16883 specifically allow DDmode, since that does not use the SPE SIMD
16884 instructions.
16885
16886 2014-04-02 Richard Biener <rguenther@suse.de>
16887
16888 PR middle-end/60729
16889 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
16890 MODE_INTs. Properly use negv_optab.
16891 (expand_abs): Likewise.
16892
16893 2014-04-02 Richard Biener <rguenther@suse.de>
16894
16895 PR bootstrap/60719
16896 * Makefile.in (install-driver): Guard extra installs with special
16897 names properly.
16898
16899 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16900
16901 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16902 Document vec_vgbbd.
16903
16904 2014-04-01 Richard Henderson <rth@redhat.com>
16905
16906 PR target/60704
16907 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
16908 alternative enabled before register allocation.
16909
16910 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
16911
16912 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
16913 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
16914 typo.
16915 (nios2_large_got_address): Remove unneeded 'sym' parameter.
16916 (nios2_got_address): Update nios2_large_got_address call site.
16917 (nios2_delegitimize_address): New function.
16918 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
16919 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
16920 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
16921
16922 2014-04-01 Martin Husemann <martin@duskware.de>
16923
16924 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
16925 for -mabi=32.
16926
16927 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
16928
16929 PR rtl-optimization/60604
16930 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
16931 check from register_operand.
16932 (register_operand): Redefine in terms of general_operand.
16933 (nonmemory_operand): Use register_operand for the non-constant cases.
16934
16935 2014-04-01 Richard Biener <rguenther@suse.de>
16936
16937 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
16938
16939 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
16940
16941 * doc/invoke.texi (mapp-regs): Clarify.
16942
16943 2014-03-31 Ulrich Drepper <drepper@gmail.com>
16944
16945 * config/i386/avx512fintrin.h (__v32hi): Define type.
16946 (__v64qi): Likewise.
16947 (_mm512_set1_epi8): Define.
16948 (_mm512_set1_epi16): Define.
16949 (_mm512_set4_epi32): Define.
16950 (_mm512_set4_epi64): Define.
16951 (_mm512_set4_pd): Define.
16952 (_mm512_set4_ps): Define.
16953 (_mm512_setr4_epi64): Define.
16954 (_mm512_setr4_epi32): Define.
16955 (_mm512_setr4_pd): Define.
16956 (_mm512_setr4_ps): Define.
16957 (_mm512_setzero_epi32): Define.
16958
16959 2014-03-31 Martin Jambor <mjambor@suse.cz>
16960
16961 PR middle-end/60647
16962 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
16963 callsite_arguments_match_p. Updated all callers. Also check types of
16964 corresponding formal parameters and actual arguments.
16965 (not_all_callers_have_enough_arguments_p) Renamed to
16966 some_callers_have_mismatched_arguments_p.
16967
16968 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
16969
16970 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
16971
16972 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16973
16974 PR target/60034
16975 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
16976 section anchor.
16977
16978 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
16979
16980 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
16981 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
16982 Split out
16983 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
16984 Use FMAMODE_NOVF512 mode iterator.
16985 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
16986 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
16987 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
16988 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
16989 Split out
16990 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
16991 Use VF_128_256 mode iterator.
16992 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
16993 Ditto.
16994
16995 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16996
16997 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
16998 static chain if needed.
16999
17000 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
17001
17002 PR target/60697
17003 * lra-constraints.c (index_part_to_reg): New.
17004 (process_address): Use it.
17005
17006 2014-03-27 Jeff Law <law@redhat.com>
17007 Jakub Jelinek <jakub@redhat.com>
17008
17009 PR target/60648
17010 * expr.c (do_tablejump): Use simplify_gen_binary rather than
17011 gen_rtx_{PLUS,MULT} to build up the address expression.
17012
17013 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
17014 creating non-canonical RTL.
17015
17016 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
17017
17018 PR ipa/60243
17019 * ipa-inline.c (want_inline_small_function_p): Short circuit large
17020 functions; reorganize to make cheap checks first.
17021 (inline_small_functions): Do not estimate growth when dumping;
17022 it is expensive.
17023 * ipa-inline.h (inline_summary): Add min_size.
17024 (growth_likely_positive): New function.
17025 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
17026 (set_cond_stmt_execution_predicate): Cleanup.
17027 (estimate_edge_size_and_time): Compute min_size.
17028 (estimate_calls_size_and_time): Likewise.
17029 (estimate_node_size_and_time): Likewise.
17030 (inline_update_overall_summary): Update min_size.
17031 (do_estimate_edge_time): Likewise.
17032 (do_estimate_edge_size): Update.
17033 (do_estimate_edge_hints): Update.
17034 (growth_likely_positive): New function.
17035
17036 2014-03-28 Jakub Jelinek <jakub@redhat.com>
17037
17038 PR target/60693
17039 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
17040 also if addr has VOIDmode.
17041
17042 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17043
17044 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
17045 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
17046 Declare extern.
17047 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
17048 instructions as well as AdvancedSIMD loads.
17049
17050 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17051
17052 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
17053 Use crypto_aese type.
17054 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
17055 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
17056 crypto_aese, crypto_aesmc. Move to types.md.
17057 * config/arm/types.md (crypto_aes): Split into crypto_aese,
17058 crypto_aesmc.
17059 * config/arm/iterators.md (crypto_type): Likewise.
17060
17061 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
17062
17063 * cgraph.c: Include expr.h and tree-dfa.h.
17064 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
17065 remove LHS.
17066
17067 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
17068
17069 PR target/60675
17070 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
17071 regs from checking multi-reg pseudos.
17072
17073 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17074
17075 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
17076
17077 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17078
17079 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
17080 if it would clobber the stack pointer, even temporarily.
17081
17082 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
17083
17084 * mode-switching.c: Make small adjustments to the top comment.
17085
17086 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
17087
17088 * config/rs6000/constraints.md (wD constraint): New constraint to
17089 match the constant integer to get the top DImode/DFmode out of a
17090 vector in a VSX register.
17091
17092 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
17093 match the constant integer to get the top DImode/DFmode out of a
17094 vector in a VSX register.
17095
17096 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
17097 for ISA 2.07.
17098
17099 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17100 vbpermq builtins.
17101
17102 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
17103 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
17104
17105 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
17106 Optimize vec_extract of 64-bit values, where the value being
17107 extracted is in the top word, where we can use scalar
17108 instructions. Add direct move and store support. Combine the big
17109 endian/little endian vector select load support into a single insn.
17110 (vsx_extract_<mode>_internal1): Likewise.
17111 (vsx_extract_<mode>_internal2): Likewise.
17112 (vsx_extract_<mode>_load): Likewise.
17113 (vsx_extract_<mode>_store): Likewise.
17114 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
17115 combined into vsx_extract_<mode>_load.
17116 (vsx_extract_<mode>_one_le): Likewise.
17117
17118 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
17119 define the top 64-bit vector element.
17120
17121 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
17122 constraint.
17123
17124 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17125 Document vec_vbpermq builtin.
17126
17127 PR target/60672
17128 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
17129 enable use of xxsldwi and xxpermdi builtin functions.
17130 (vec_xxpermdi): Likewise.
17131
17132 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17133 Document use of vec_xxsldwi and vec_xxpermdi builtins.
17134
17135 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
17136
17137 PR rtl-optimization/60650
17138 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
17139 first_p. Use it.
17140 (find_spills_for): New.
17141 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
17142 Spill all pseudos on the second iteration.
17143
17144 2014-03-27 Marek Polacek <polacek@redhat.com>
17145
17146 PR c/50347
17147 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
17148 types.
17149
17150 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17151
17152 * config/s390/s390.c (s390_can_use_return_insn): Check for
17153 call-saved FPRs on 31 bit.
17154
17155 2014-03-27 Jakub Jelinek <jakub@redhat.com>
17156
17157 PR middle-end/60682
17158 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
17159 if they need regimplification, just drop them instead of
17160 calling gimple_regimplify_operands on them.
17161
17162 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
17163
17164 PR target/60580
17165 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
17166 (aarch64_frame_pointer_required): Adjust logic.
17167 (aarch64_can_eliminate): Adjust logic.
17168 (aarch64_override_options_after_change): Adjust logic.
17169
17170 2014-03-27 Dehao Chen <dehao@google.com>
17171
17172 * ipa-inline.c (early_inliner): Update node's inline info.
17173
17174 2014-03-26 Dehao Chen <dehao@google.com>
17175
17176 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
17177 compiler inserted conditional jumps for NAN float check.
17178
17179 2014-03-26 Jakub Jelinek <jakub@redhat.com>
17180
17181 * ubsan.h (ubsan_create_data): Change second argument's type
17182 to const location_t *.
17183 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
17184 _("<unknown>").
17185 (ubsan_create_data): Change second argument to const location_t *PLOC.
17186 Create Loc field whenever PLOC is non-NULL.
17187 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
17188 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
17189 callers.
17190
17191 PR other/59545
17192 * real.c (real_to_integer2): Change type of low to UHWI.
17193
17194 2014-03-26 Tobias Burnus <burnus@net-b.de>
17195
17196 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
17197 (CILK_SELF_SPECS): New define.
17198 (driver_self_specs): Use it.
17199
17200 2014-03-26 Richard Biener <rguenther@suse.de>
17201
17202 * tree-pretty-print.c (percent_K_format): Implement special
17203 case for LTO and its stripped down BLOCK tree.
17204
17205 2014-03-26 Jakub Jelinek <jakub@redhat.com>
17206
17207 PR sanitizer/60636
17208 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
17209
17210 * tree-vrp.c (simplify_internal_call_using_ranges): If only
17211 one range is range_int_cst_p, but not both, at least optimize
17212 addition/subtraction of 0 and multiplication by 0 or 1.
17213 * gimple-fold.c (gimple_fold_call): Fold
17214 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
17215 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
17216 INTEGER_CSTs, try to fold at least x * 0 and y - y.
17217
17218 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
17219
17220 PR rtl-optimization/60452
17221 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
17222 <case REG>: Return 1 for invalid offsets from the frame pointer.
17223
17224 2014-03-26 Marek Polacek <polacek@redhat.com>
17225
17226 PR c/37428
17227 * doc/extend.texi (C Extensions): Mention variable-length arrays in
17228 a structure/union.
17229
17230 2014-03-26 Marek Polacek <polacek@redhat.com>
17231
17232 PR c/39525
17233 * doc/extend.texi (Designated Inits): Describe what happens to omitted
17234 field members.
17235
17236 2014-03-26 Marek Polacek <polacek@redhat.com>
17237
17238 PR other/59545
17239 * ira-color.c (update_conflict_hard_regno_costs): Perform the
17240 multiplication in unsigned type.
17241
17242 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
17243
17244 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
17245
17246 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
17247
17248 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
17249
17250 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
17251
17252 PR ipa/60315
17253 * cif-code.def (UNREACHABLE) New code.
17254 * ipa-inline.c (inline_small_functions): Skip edges to
17255 __builtlin_unreachable.
17256 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
17257 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
17258 predicate to __bulitin_unreachable.
17259 (set_cond_stmt_execution_predicate): Fix issue when
17260 invert_tree_comparison returns ERROR_MARK.
17261 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
17262 propagate to inline clones.
17263 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
17264 to unreachable.
17265 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
17266 * cgraphclones.c (cgraph_clone_node): If call destination is already
17267 ureachable, do not redirect it back.
17268 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
17269 unreachable.
17270
17271 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
17272
17273 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
17274 Do not modify inline clones.
17275
17276 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17277
17278 * config/i386/i386.md (general_sext_operand): New mode attr.
17279 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
17280 don't generate (sign_extend (const_int)).
17281 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
17282 operands[2]. Use We constraint instead of <i> and
17283 <general_sext_operand> predicate instead of <general_operand>.
17284 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
17285 * config/i386/constraints.md (We): New constraint.
17286 * config/i386/predicates.md (x86_64_sext_operand,
17287 sext_operand): New predicates.
17288
17289 2014-03-25 Martin Jambor <mjambor@suse.cz>
17290
17291 PR ipa/60600
17292 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
17293 inconsistent devirtualizations to __builtin_unreachable.
17294
17295 2014-03-25 Marek Polacek <polacek@redhat.com>
17296
17297 PR c/35449
17298 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
17299
17300 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
17301
17302 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
17303 order of elements for big-endian.
17304
17305 2014-03-25 Richard Biener <rguenther@suse.de>
17306
17307 PR middle-end/60635
17308 * gimplify-me.c (gimple_regimplify_operands): Update the
17309 re-gimplifed stmt.
17310
17311 2014-03-25 Martin Jambor <mjambor@suse.cz>
17312
17313 PR ipa/59176
17314 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
17315 (lto_output_varpool_node): Likewise.
17316 (input_overwrite_node): Likewise.
17317 (input_varpool_node): Likewise.
17318
17319 2014-03-25 Richard Biener <rguenther@suse.de>
17320
17321 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
17322 (run_gcc): Likewise.
17323
17324 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17325
17326 * combine.c (simplify_compare_const): Add MODE argument.
17327 Handle mode_width 0 as very large mode_width.
17328 (try_combine, simplify_comparison): Adjust callers.
17329
17330 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
17331 type to avoid signed integer overflow.
17332 * explow.c (plus_constant): Likewise.
17333
17334 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
17335
17336 * doc/generic.texi: Correct typos.
17337
17338 2014-03-24 Tobias Burnus <burnus@net-b.de>
17339
17340 * doc/invoke.texi (-flto): Expand section about
17341 using static libraries with LTO.
17342
17343 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17344
17345 PR rtl-optimization/60501
17346 * optabs.def (addptr3_optab): New optab.
17347 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
17348 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
17349 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
17350
17351 * lra.c (emit_add3_insn): Use the addptr pattern if available.
17352
17353 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
17354
17355 2014-03-24 Ulrich Drepper <drepper@gmail.com>
17356
17357 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
17358 _mm512_set1_pd.
17359
17360 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
17361 (_mm256_undefined_ps): Define.
17362 (_mm256_undefined_pd): Define.
17363 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
17364 (_mm_undefined_pd): Define.
17365 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
17366 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
17367 (_mm512_undefined_ps): Define.
17368 (_mm512_undefined_pd): Define.
17369 Use _mm*_undefined_*.
17370 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
17371
17372 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
17373
17374 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
17375 (lshr_simd): DI mode added.
17376 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
17377 (aarch64_ushr_simddi): Likewise.
17378 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
17379 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
17380 (vshrd_n_u64): Likewise.
17381
17382 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17383
17384 * Makefile.in (s-macro_list): Depend on cc1.
17385
17386 2014-03-23 Teresa Johnson <tejohnson@google.com>
17387
17388 * ipa-utils.c (ipa_print_order): Use specified dump file.
17389
17390 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
17391
17392 PR rtl-optimization/60601
17393 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
17394
17395 * gcc.c (eval_spec_function): Initialize save_growing_value.
17396
17397 2014-03-22 Jakub Jelinek <jakub@redhat.com>
17398
17399 PR sanitizer/60613
17400 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
17401 code == MINUS_EXPR, never swap op0 with op1.
17402
17403 * toplev.c (init_local_tick): Avoid signed integer multiplication
17404 overflow.
17405 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
17406 shift by first operand's bitsize.
17407
17408 2014-03-21 Jakub Jelinek <jakub@redhat.com>
17409
17410 PR target/60610
17411 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
17412 redefine to 1 or 0.
17413 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
17414 TARGET_ISA_64BIT_P(x).
17415
17416 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17417
17418 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
17419 pattern for vector nor instead of subtract from splat(-1).
17420 (altivec_expand_vec_perm_const_le): Likewise.
17421
17422 2014-03-21 Richard Henderson <rth@twiddle.net>
17423
17424 PR target/60598
17425 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
17426 related insns after epilogue_completed.
17427
17428 2014-03-21 Martin Jambor <mjambor@suse.cz>
17429
17430 PR ipa/59176
17431 * cgraph.h (symtab_node): New flag body_removed.
17432 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
17433 when removing bodies.
17434 * symtab.c (dump_symtab_base): Dump body_removed flag.
17435 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
17436 had their bodies removed.
17437
17438 2014-03-21 Martin Jambor <mjambor@suse.cz>
17439
17440 PR ipa/60419
17441 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
17442 in the border.
17443
17444 2014-03-21 Richard Biener <rguenther@suse.de>
17445
17446 PR tree-optimization/60577
17447 * tree-core.h (struct tree_base): Document nothrow_flag use
17448 in DECL_NONALIASED.
17449 * tree.h (DECL_NONALIASED): New.
17450 (may_be_aliased): Adjust.
17451 * coverage.c (build_var): Set DECL_NONALIASED.
17452
17453 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17454
17455 * expr.c (expand_expr_real_1): Remove outdated comment.
17456
17457 2014-03-20 Jakub Jelinek <jakub@redhat.com>
17458
17459 PR middle-end/60597
17460 * ira.c (adjust_cleared_regs): Call copy_rtx on
17461 *reg_equiv[REGNO (loc)].src_p before passing it to
17462 simplify_replace_fn_rtx.
17463
17464 PR target/60568
17465 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
17466 into CONST, put pic register as first operand of PLUS. Use
17467 gen_const_mem for both 32-bit and 64-bit PIC got loads.
17468
17469 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17470
17471 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
17472
17473 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17474
17475 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
17476 around for store forwarding issue in the FPU on the UT699.
17477 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
17478 loads and operations if -mfix-ut699 is specified.
17479 (divtf3_hq): Tweak attribute.
17480 (sqrttf2_hq): Likewise.
17481
17482 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17483
17484 * calls.c (store_one_arg): Remove incorrect const qualification on the
17485 type of the temporary.
17486 * cfgexpand.c (expand_return): Likewise.
17487 * expr.c (expand_constructor): Likewise.
17488 (expand_expr_real_1): Likewise.
17489
17490 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17491
17492 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
17493 of parts.
17494
17495 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
17496
17497 PR target/60039
17498 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
17499
17500 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
17501
17502 * config/arm/aarch-common-protos.h
17503 (alu_cost_table): Fix spelling of "extend".
17504 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
17505
17506 2014-03-19 Richard Biener <rguenther@suse.de>
17507
17508 PR middle-end/60553
17509 * tree-core.h (tree_type_common): Re-order pointer members
17510 to reduce recursion depth during GC walks.
17511
17512 2014-03-19 Marek Polacek <polacek@redhat.com>
17513
17514 PR sanitizer/60569
17515 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
17516 before accessing it.
17517
17518 2014-03-19 Richard Biener <rguenther@suse.de>
17519
17520 PR lto/59543
17521 * lto-streamer-in.c (input_function): In WPA stage do not drop
17522 debug stmts.
17523
17524 2014-03-19 Jakub Jelinek <jakub@redhat.com>
17525
17526 PR tree-optimization/60559
17527 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
17528 with build_zero_cst assignment.
17529
17530 2014-03-18 Kai Tietz <ktietz@redhat.com>
17531
17532 PR rtl-optimization/56356
17533 * sdbout.c (sdbout_parms): Verify that parms'
17534 incoming argument is valid.
17535 (sdbout_reg_parms): Likewise.
17536
17537 2014-03-18 Richard Henderson <rth@redhat.com>
17538
17539 PR target/60562
17540 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
17541 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
17542 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
17543
17544 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
17545
17546 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
17547 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
17548 Italicize plugin event names in description. Explain that
17549 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
17550 Remind that no GCC functions should be called after PLUGIN_FINISH.
17551 Explain what pragmas with expansion are.
17552
17553 2014-03-18 Martin Liska <mliska@suse.cz>
17554
17555 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
17556 gimple call statement is update.
17557 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
17558 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
17559
17560 2014-03-18 Jakub Jelinek <jakub@redhat.com>
17561
17562 PR sanitizer/60557
17563 * ubsan.c (ubsan_instrument_unreachable): Call
17564 initialize_sanitizer_builtins.
17565 (ubsan_pass): Likewise.
17566
17567 PR sanitizer/60535
17568 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
17569 varpool_finalize_decl instead of rest_of_decl_compilation.
17570
17571 2014-03-18 Richard Biener <rguenther@suse.de>
17572
17573 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
17574 by using bitmap_and_compl instead of bitmap_and_compl_into.
17575 (df_rd_transfer_function): Likewise.
17576
17577 2014-03-18 Richard Biener <rguenther@suse.de>
17578
17579 * doc/lto.texi (fresolution): Fix typo.
17580
17581 2014-03-18 Richard Biener <rguenther@suse.de>
17582
17583 * doc/invoke.texi (flto): Update for changes in 4.9.
17584
17585 2014-03-18 Richard Biener <rguenther@suse.de>
17586
17587 * doc/loop.texi: Remove section on the removed lambda framework.
17588 Update loop docs with recent changes in preserving loop structure.
17589
17590 2014-03-18 Richard Biener <rguenther@suse.de>
17591
17592 * doc/lto.texi (-fresolution): Document.
17593
17594 2014-03-18 Richard Biener <rguenther@suse.de>
17595
17596 * doc/contrib.texi: Adjust my name.
17597
17598 2014-03-18 Jakub Jelinek <jakub@redhat.com>
17599
17600 PR ipa/58721
17601 * internal-fn.c: Include diagnostic-core.h.
17602 (expand_BUILTIN_EXPECT): New function.
17603 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
17604 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
17605 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
17606 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
17607 IFN_BUILTIN_EXPECT.
17608 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
17609 Revert 3 argument __builtin_expect code.
17610 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
17611 * gimple-fold.c (gimple_fold_call): Likewise.
17612 * tree.h (fold_builtin_expect): New prototype.
17613 * builtins.c (build_builtin_expect_predicate): Add predictor
17614 argument, if non-NULL, create 3 argument __builtin_expect.
17615 (fold_builtin_expect): No longer static. Add ARG2 argument,
17616 pass it through to build_builtin_expect_predicate.
17617 (fold_builtin_2): Adjust caller.
17618 (fold_builtin_3): Handle BUILT_IN_EXPECT.
17619 * internal-fn.def (BUILTIN_EXPECT): New.
17620
17621 2014-03-18 Tobias Burnus <burnus@net-b.de>
17622
17623 PR ipa/58721
17624 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
17625 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
17626 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
17627
17628 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
17629
17630 PR ipa/58721
17631 * predict.c (combine_predictions_for_bb): Fix up formatting.
17632 (expr_expected_value_1, expr_expected_value): Add predictor argument,
17633 fill what it points to if non-NULL.
17634 (tree_predict_by_opcode): Adjust caller, use the predictor.
17635 * predict.def (PRED_COMPARE_AND_SWAP): Add.
17636
17637 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
17638
17639 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
17640 proper constant for the store mode.
17641
17642 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
17643
17644 * symtab.c (change_decl_assembler_name): Fix transparent alias
17645 chain construction.
17646
17647 2014-03-16 Renlin Li <Renlin.Li@arm.com>
17648
17649 * config/aarch64/aarch64.c: Correct the comments about the
17650 aarch64 stack layout.
17651
17652 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
17653
17654 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
17655 check for GF_OMP_FOR_KIND_FOR.
17656
17657 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
17658
17659 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
17660 ymm and zmm register names.
17661
17662 2014-03-17 Jakub Jelinek <jakub@redhat.com>
17663
17664 PR target/60516
17665 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
17666 note creation for the 2010-08-31 changes.
17667
17668 2014-03-17 Marek Polacek <polacek@redhat.com>
17669
17670 PR middle-end/60534
17671 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
17672 as -fno-tree-loop-vectorize.
17673 (expand_omp_simd): Likewise.
17674
17675 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
17676
17677 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
17678 (eligible_for_call_delay): New prototype.
17679 * config/sparc/sparc.c (tls_call_delay): Rename into...
17680 (eligible_for_call_delay): ...this. Return false if the instruction
17681 cannot be put in the delay slot of a branch.
17682 (eligible_for_restore_insn): Simplify.
17683 (eligible_for_return_delay): Return false if the instruction cannot be
17684 put in the delay slot of a branch and simplify.
17685 (eligible_for_sibcall_delay): Return false if the instruction cannot be
17686 put in the delay slot of a branch.
17687 * config/sparc/sparc.md (fix_ut699): New attribute.
17688 (tls_call_delay): Delete.
17689 (in_call_delay): Reimplement.
17690 (eligible_for_sibcall_delay): Rename into...
17691 (in_sibcall_delay): ...this.
17692 (eligible_for_return_delay): Rename into...
17693 (in_return_delay): ...this.
17694 (in_branch_delay): Reimplement.
17695 (in_uncond_branch_delay): Delete.
17696 (in_annul_branch_delay): Delete.
17697
17698 2014-03-14 Richard Henderson <rth@redhat.com>
17699
17700 PR target/60525
17701 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
17702 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
17703 (*floathi<X87MODEF>2_i387_with_temp): Remove.
17704 (floathi splitters): Remove.
17705 (float<SWI48x>xf2): New pattern.
17706 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
17707 code that tried to handle DImode for 32-bit, but which was excluded
17708 by the pattern's condition. Drop allocation of stack temporary.
17709 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
17710 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
17711 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
17712 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
17713 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
17714 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
17715 (*float<SWI48><MODEF>2_sse_interunit): Remove.
17716 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
17717 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
17718 (*float<SWI48x><X87MODEF>2_i387): Remove.
17719 (all float _with_temp splitters): Remove.
17720 (*float<SWI48x><MODEF>2_i387): New pattern.
17721 (*float<SWI48><MODEF>2_sse): New pattern.
17722 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
17723 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
17724
17725 2014-03-14 Jakub Jelinek <jakub@redhat.com>
17726 Marek Polacek <polacek@redhat.com>
17727
17728 PR middle-end/60484
17729 * common.opt (dump_base_name_prefixed): New Variable.
17730 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
17731 if x_dump_base_name_prefixed is already set, set it at the end.
17732
17733 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
17734
17735 PR rtl-optimization/60508
17736 * lra-constraints.c (get_reload_reg): Add new parameter
17737 in_subreg_p.
17738 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
17739 Pass the new parameter values.
17740
17741 2014-03-14 Richard Biener <rguenther@suse.de>
17742
17743 * common.opt: Revert unintented changes from r205065.
17744 * opts.c: Likewise.
17745
17746 2014-03-14 Richard Biener <rguenther@suse.de>
17747
17748 PR middle-end/60518
17749 * cfghooks.c (split_block): Properly adjust all loops the
17750 block was a latch of.
17751
17752 2014-03-14 Martin Jambor <mjambor@suse.cz>
17753
17754 PR lto/60461
17755 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
17756 and simplify it.
17757
17758 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
17759
17760 PR target/59396
17761 * config/avr/avr.c (avr_set_current_function): Pass function name
17762 through default_strip_name_encoding before sanity checking instead
17763 of skipping the first char of the assembler name.
17764
17765 2014-03-13 Richard Henderson <rth@redhat.com>
17766
17767 PR debug/60438
17768 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
17769 (ix86_force_to_memory, ix86_free_from_memory): Remove.
17770 * config/i386/i386-protos.h: Likewise.
17771 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
17772 in the expander instead of a splitter.
17773 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
17774 any possibility of requiring a memory.
17775 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
17776 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
17777 (fp branch splitters): Update for ix86_split_fp_branch.
17778 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
17779 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
17780 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
17781 (*fop_<MODEF>_2_i387): Remove f/r alternative.
17782 (*fop_<MODEF>_3_i387): Likewise.
17783 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
17784 (splitters for the fop_* register patterns): Remove.
17785 (fscalexf4_i387): Rename from *fscalexf4_i387.
17786 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
17787
17788 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17789
17790 PR tree-optimization/59779
17791 * tree-dfa.c (get_ref_base_and_extent): Use double_int
17792 type for bitsize and maxsize instead of HOST_WIDE_INT.
17793
17794 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
17795
17796 PR rtl-optimization/57320
17797 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
17798 the CFG after thread_prologue_and_epilogue_insns.
17799
17800 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
17801
17802 PR rtl-optimization/57189
17803 * lra-constraints.c (process_alt_operands): Disfavor spilling
17804 vector pseudos.
17805
17806 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
17807
17808 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
17809
17810 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17811
17812 PR tree-optimization/59025
17813 PR middle-end/60418
17814 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
17815 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
17816
17817 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
17818
17819 PR target/60486
17820 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
17821 calls of avr_out_plus_1.
17822
17823 2014-03-13 Bin Cheng <bin.cheng@arm.com>
17824
17825 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
17826 BB's single pred and update the father loop's latch info later.
17827
17828 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17829
17830 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
17831 (VEC_M): Likewise.
17832 (VEC_N): Likewise.
17833 (VEC_R): Likewise.
17834 (VEC_base): Likewise.
17835 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
17836 registers, we need to swap double words in little endian mode.
17837
17838 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
17839 to be a container mode for 128-bit integer operations added in ISA
17840 2.07. Unlike TImode and PTImode, the preferred register set is
17841 the Altivec/VMX registers for the 128-bit operations.
17842
17843 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
17844 declarations.
17845 (rs6000_split_128bit_ok_p): Likewise.
17846
17847 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
17848 macros for creating ISA 2.07 normal and overloaded builtin
17849 functions with 3 arguments.
17850 (BU_P8V_OVERLOAD_3): Likewise.
17851 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
17852 for use as overloaded functions.
17853 (VPERM_1TI_UNS): Likewise.
17854 (VSEL_1TI): Likewise.
17855 (VSEL_1TI_UNS): Likewise.
17856 (ST_INTERNAL_1ti): Likewise.
17857 (LD_INTERNAL_1ti): Likewise.
17858 (XXSEL_1TI): Likewise.
17859 (XXSEL_1TI_UNS): Likewise.
17860 (VPERM_1TI): Likewise.
17861 (VPERM_1TI_UNS): Likewise.
17862 (XXPERMDI_1TI): Likewise.
17863 (SET_1TI): Likewise.
17864 (LXVD2X_V1TI): Likewise.
17865 (STXVD2X_V1TI): Likewise.
17866 (VEC_INIT_V1TI): Likewise.
17867 (VEC_SET_V1TI): Likewise.
17868 (VEC_EXT_V1TI): Likewise.
17869 (EQV_V1TI): Likewise.
17870 (NAND_V1TI): Likewise.
17871 (ORC_V1TI): Likewise.
17872 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
17873 added in ISA 2.07. Add both normal 'altivec' builtins, and the
17874 overloaded builtin.
17875 (VADDUQM): Likewise.
17876 (VSUBCUQ): Likewise.
17877 (VADDEUQM): Likewise.
17878 (VADDECUQ): Likewise.
17879 (VSUBEUQM): Likewise.
17880 (VSUBECUQ): Likewise.
17881
17882 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
17883 __int128_t and __uint128_t types.
17884 (__uint128_type): Likewise.
17885 (altivec_categorize_keyword): Add support for vector __int128_t,
17886 vector __uint128_t, vector __int128, and vector unsigned __int128
17887 as a container type for TImode operations that need to be done in
17888 VSX/Altivec registers.
17889 (rs6000_macro_to_expand): Likewise.
17890 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
17891 to support 128-bit integer instructions vaddcuq, vadduqm,
17892 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
17893 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
17894
17895 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
17896 for V1TImode, and set up preferences to use VSX/Altivec registers.
17897 Setup VSX reload handlers.
17898 (rs6000_debug_reg_global): Likewise.
17899 (rs6000_init_hard_regno_mode_ok): Likewise.
17900 (rs6000_preferred_simd_mode): Likewise.
17901 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
17902 (easy_altivec_constant): Likewise.
17903 (output_vec_const_move): Likewise.
17904 (rs6000_expand_vector_set): Convert V1TImode set and extract to
17905 simple move.
17906 (rs6000_expand_vector_extract): Likewise.
17907 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
17908 addressing.
17909 (rs6000_const_vec): Add support for V1TImode.
17910 (rs6000_emit_le_vsx_load): Swap double words when loading or
17911 storing TImode/V1TImode.
17912 (rs6000_emit_le_vsx_store): Likewise.
17913 (rs6000_emit_le_vsx_move): Likewise.
17914 (rs6000_emit_move): Add support for V1TImode.
17915 (altivec_expand_ld_builtin): Likewise.
17916 (altivec_expand_st_builtin): Likewise.
17917 (altivec_expand_vec_init_builtin): Likewise.
17918 (altivec_expand_builtin): Likewise.
17919 (rs6000_init_builtins): Add support for V1TImode type. Add
17920 support for ISA 2.07 128-bit integer builtins. Define type names
17921 for the VSX/Altivec vector types.
17922 (altivec_init_builtins): Add support for overloaded vector
17923 functions with V1TImode type.
17924 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
17925 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
17926 external function.
17927 (rs6000_split_128bit_ok_p): Likewise.
17928 (rs6000_handle_altivec_attribute): Create V1TImode from vector
17929 __int128_t and vector __uint128_t.
17930
17931 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
17932 and mode attributes.
17933 (VSX_M): Likewise.
17934 (VSX_M2): Likewise.
17935 (VSm): Likewise.
17936 (VSs): Likewise.
17937 (VSr): Likewise.
17938 (VSv): Likewise.
17939 (VS_scalar): Likewise.
17940 (VS_double): Likewise.
17941 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
17942
17943 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
17944 we support the ISA 2.07 128-bit integer arithmetic instructions.
17945 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
17946 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
17947 and TImode types for use with the builtin functions.
17948 (V1TI_type_node): Likewise.
17949 (unsigned_V1TI_type_node): Likewise.
17950 (intTI_type_internal_node): Likewise.
17951 (uintTI_type_internal_node): Likewise.
17952
17953 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
17954 128-bit builtin functions.
17955 (UNSPEC_VADDEUQM): Likewise.
17956 (UNSPEC_VADDECUQ): Likewise.
17957 (UNSPEC_VSUBCUQ): Likewise.
17958 (UNSPEC_VSUBEUQM): Likewise.
17959 (UNSPEC_VSUBECUQ): Likewise.
17960 (VM): Add V1TImode to vector mode iterators.
17961 (VM2): Likewise.
17962 (VI_unit): Likewise.
17963 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
17964 (altivec_vaddcuq): Likewise.
17965 (altivec_vsubuqm): Likewise.
17966 (altivec_vsubcuq): Likewise.
17967 (altivec_vaddeuqm): Likewise.
17968 (altivec_vaddecuq): Likewise.
17969 (altivec_vsubeuqm): Likewise.
17970 (altivec_vsubecuq): Likewise.
17971
17972 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
17973 mode iterators.
17974 (BOOL_128): Likewise.
17975 (BOOL_REGS_OUTPUT): Likewise.
17976 (BOOL_REGS_OP1): Likewise.
17977 (BOOL_REGS_OP2): Likewise.
17978 (BOOL_REGS_UNARY): Likewise.
17979 (BOOL_REGS_AND_CR0): Likewise.
17980
17981 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
17982 128-bit integer builtin support.
17983 (vec_vadduqm): Likewise.
17984 (vec_vaddecuq): Likewise.
17985 (vec_vaddeuqm): Likewise.
17986 (vec_vsubecuq): Likewise.
17987 (vec_vsubeuqm): Likewise.
17988 (vec_vsubcuq): Likewise.
17989 (vec_vsubuqm): Likewise.
17990
17991 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17992 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
17993 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
17994 128-bit integer add/subtract to ISA 2.07.
17995
17996 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
17997
17998 * config/arc/arc.c (arc_predicate_delay_insns):
17999 Fix third argument passed to conditionalize_nonjump.
18000
18001 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
18002
18003 * config/aarch64/aarch64-builtins.c
18004 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
18005 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
18006 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
18007 instead of __builtin_lfloor.
18008 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
18009
18010 2014-03-12 Jakub Jelinek <jakub@redhat.com>
18011
18012 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
18013 (tree_ssa_ifcombine_bb_1): New function.
18014 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
18015 is an empty forwarder block to then_bb or vice versa and then_bb
18016 and else_bb are effectively swapped.
18017
18018 2014-03-12 Christian Bruel <christian.bruel@st.com>
18019
18020 PR target/60264
18021 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
18022 REG_CFA_DEF_CFA note.
18023 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
18024 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
18025
18026 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
18027
18028 PR tree-optimization/60454
18029 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
18030
18031 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18032
18033 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
18034 Do not define target_cpu_default2 to generic.
18035 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
18036 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
18037 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
18038
18039 2014-03-12 Jakub Jelinek <jakub@redhat.com>
18040 Marc Glisse <marc.glisse@inria.fr>
18041
18042 PR tree-optimization/60502
18043 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
18044 instead of build_low_bits_mask.
18045
18046 2014-03-12 Jakub Jelinek <jakub@redhat.com>
18047
18048 PR middle-end/60482
18049 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
18050 if there are multiple uses, but op doesn't live on E edge.
18051 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
18052 clobber stmts before __builtin_unreachable.
18053
18054 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
18055
18056 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
18057 hard_frame_pointer_rtx.
18058 * cse.c (cse_insn): Remove volatile check.
18059 * cselib.c (cselib_process_insn): Likewise.
18060 * dse.c (scan_insn): Likewise.
18061
18062 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
18063
18064 * config/arc/arc.c (conditionalize_nonjump): New function,
18065 broken out of ...
18066 (arc_ifcvt): ... this.
18067 (arc_predicate_delay_insns): Use it.
18068
18069 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
18070
18071 * config/arc/predicates.md (extend_operand): During/after reload,
18072 allow const_int_operand.
18073 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
18074 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
18075 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
18076 to "i".
18077 (umulsi3_highpart_i): Likewise.
18078
18079 2014-03-11 Richard Biener <rguenther@suse.de>
18080
18081 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
18082 Add asserts to guard possible wrong-code bugs.
18083
18084 2014-03-11 Richard Biener <rguenther@suse.de>
18085
18086 PR tree-optimization/60429
18087 PR tree-optimization/60485
18088 * tree-ssa-structalias.c (set_union_with_increment): Properly
18089 take into account all fields that overlap the shifted vars.
18090 (do_sd_constraint): Likewise.
18091 (do_ds_constraint): Likewise.
18092 (get_constraint_for_ptr_offset): Likewise.
18093
18094 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
18095
18096 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
18097 (nios2_compute_frame_layout):
18098 Add calculation of cfun->machine->fp_save_offset.
18099 (nios2_expand_prologue): Correct setting of frame pointer register
18100 in prologue.
18101 (nios2_expand_epilogue): Update recovery of stack pointer from
18102 frame pointer accordingly.
18103 (nios2_initial_elimination_offset): Update calculation of offset
18104 for eliminating to HARD_FRAME_POINTER_REGNUM.
18105
18106 2014-03-10 Jakub Jelinek <jakub@redhat.com>
18107
18108 PR ipa/60457
18109 * ipa.c (symtab_remove_unreachable_nodes): Don't call
18110 cgraph_get_create_node on VAR_DECLs.
18111
18112 2014-03-10 Richard Biener <rguenther@suse.de>
18113
18114 PR middle-end/60474
18115 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
18116
18117 2014-03-08 Douglas B Rupp <rupp@gnat.com>
18118
18119 * config/vms/vms.opt (vms_float_format): New variable.
18120
18121 2014-03-08 Tobias Burnus <burnus@net-b.de>
18122
18123 * doc/invoke.texi (-fcilkplus): Update implementation status.
18124
18125 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
18126 Richard Biener <rguenther@suse.de>
18127
18128 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
18129 consistently accross all TUs.
18130 (run_gcc): Enable -fshort-double automatically at link at link-time
18131 and disallow override.
18132
18133 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
18134
18135 PR target/58271
18136 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
18137 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
18138 if they can't be used.
18139
18140 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18141
18142 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
18143 for Solaris 11/x86 ld.
18144 * configure: Regenerate.
18145
18146 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18147
18148 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
18149 (LIB_TLS_SPEC): Save as ld_tls_libs.
18150 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
18151 (HAVE_AS_IX86_TLSLDM): New test.
18152 * configure, config.in: Regenerate.
18153 * config/i386/i386.c (legitimize_tls_address): Fall back to
18154 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
18155 cannot support TLS_MODEL_LOCAL_DYNAMIC.
18156 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
18157 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
18158
18159 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
18160
18161 * common.opt (fira-loop-pressure): Mark as optimization.
18162
18163 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
18164
18165 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
18166 an OpenMP mappable type.
18167
18168 2014-03-06 Matthias Klose <doko@ubuntu.com>
18169
18170 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
18171 MULTILIB_OSDIRNAMES is not defined.
18172
18173 2014-03-06 Jakub Jelinek <jakub@redhat.com>
18174 Meador Inge <meadori@codesourcery.com>
18175
18176 PR target/58595
18177 * config/arm/arm.c (arm_tls_symbol_p): Remove.
18178 (arm_legitimize_address): Call legitimize_tls_address for any
18179 arm_tls_referenced_p expression, handle constant addend. Call it
18180 before testing for !TARGET_ARM.
18181 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
18182
18183 2014-03-06 Richard Biener <rguenther@suse.de>
18184
18185 PR middle-end/60445
18186 PR lto/60424
18187 PR lto/60427
18188 Revert
18189 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
18190
18191 * tree-streamer.c (record_common_node): Assert we don't record
18192 nodes with type double.
18193 (preload_common_node): Skip type double, complex double and double
18194 pointer since it is now frontend dependent due to fshort-double option.
18195
18196 2014-03-06 Richard Biener <rguenther@suse.de>
18197
18198 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
18199 or -fno-lto is specified and the linker has full plugin support.
18200 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
18201 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
18202 * lto-wrapper.c (merge_and_complain): Merge compile-time
18203 optimization levels.
18204 (run_gcc): And pass it through to the link options.
18205
18206 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
18207
18208 PR debug/60381
18209 Revert:
18210 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18211 PR debug/59992
18212 * cselib.c (remove_useless_values): Skip to avoid quadratic
18213 behavior if the condition moved from...
18214 (cselib_process_insn): ... here holds.
18215
18216 2014-03-05 Jakub Jelinek <jakub@redhat.com>
18217
18218 PR plugins/59335
18219 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
18220 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
18221
18222 PR plugins/59335
18223 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
18224 (TM_H): Add x86-tune.def.
18225
18226 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18227
18228 * config/aarch64/aarch64.c (generic_tunings):
18229 Use cortexa57_extra_costs.
18230
18231 2014-03-05 Jakub Jelinek <jakub@redhat.com>
18232
18233 PR lto/60404
18234 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
18235 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
18236 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
18237 cost for in_lto_p.
18238
18239 2014-03-04 Heiher <r@hev.cc>
18240
18241 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
18242 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
18243
18244 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
18245
18246 * config/i386/predicates.md (const2356_operand): Change to ...
18247 (const2367_operand): ... this.
18248 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
18249 const2367_operand.
18250 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18251 (*avx512pf_scatterpf<mode>sf): Ditto.
18252 (avx512pf_scatterpf<mode>df): Ditto.
18253 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18254 (*avx512pf_scatterpf<mode>df): Ditto.
18255 * config/i386/i386.c (ix86_expand_builtin): Update
18256 incorrect hint operand error message.
18257
18258 2014-03-04 Richard Biener <rguenther@suse.de>
18259
18260 * lto-section-in.c (lto_get_section_data): Fix const cast.
18261
18262 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
18263
18264 * tree-streamer.c (record_common_node): Assert we don't record
18265 nodes with type double.
18266 (preload_common_node): Skip type double, complex double and double
18267 pointer since it is now frontend dependent due to fshort-double option.
18268
18269 2014-03-04 Richard Biener <rguenther@suse.de>
18270
18271 PR lto/60405
18272 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
18273 (lto_input_toplevel_asms): Likewise.
18274 * lto-section-in.c (lto_get_section_data): Instead do it here
18275 for every section.
18276
18277 2014-03-04 Richard Biener <rguenther@suse.de>
18278
18279 PR tree-optimization/60382
18280 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
18281 dead PHIs a reduction.
18282
18283 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
18284
18285 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
18286 hint value.
18287 (_mm_prefetch): Move out of GCC target("sse") pragma.
18288 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
18289 GCC target("prfchw") pragma.
18290 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
18291 for locality <= 2.
18292 * config/i386/i386.c (ix86_option_override_internal): Enable
18293 -mprfchw with -mprefetchwt1.
18294
18295 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
18296
18297 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
18298 Mark as varying.
18299
18300 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
18301
18302 * opts.h (CL_PCH_IGNORE): Define.
18303 * targhooks.c (option_affects_pch_p):
18304 Return false for options that have CL_PCH_IGNORE set.
18305 * opt-functions.awk: Process PchIgnore.
18306 * doc/options.texi: Document PchIgnore.
18307
18308 * config/arc/arc.opt (misize): Add PchIgnore property.
18309
18310 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18311
18312 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
18313 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
18314 constraint on constants to permit them being loaded into
18315 GENERAL_REGS or BASE_REGS.
18316
18317 2014-03-03 Nick Clifton <nickc@redhat.com>
18318
18319 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
18320 anti-cacnonical alternatives.
18321 (negandhi3_real): New pattern.
18322 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
18323
18324 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18325
18326 * config/avr/avr-mcus.def: Remove atxmega16x1.
18327 * config/avr/avr-tables.opt: Regenerate.
18328 * config/avr/t-multilib: Regenerate.
18329 * doc/avr-mmcu.texi: Regenerate.
18330
18331 2014-03-03 Tobias Grosser <tobias@grosser.es>
18332 Mircea Namolaru <mircea.namolaru@inria.fr>
18333
18334 PR tree-optimization/58028
18335 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
18336 scalar dimensions.
18337
18338 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18339
18340 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
18341 not handled by recognizers.
18342
18343 2014-03-03 Jakub Jelinek <jakub@redhat.com>
18344
18345 PR middle-end/60175
18346 * function.c (expand_function_end): Don't emit
18347 clobber_return_register sequence if clobber_after is a BARRIER.
18348 * cfgexpand.c (construct_exit_block): Append instructions before
18349 return_label to prev_bb.
18350
18351 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18352
18353 * config/rs6000/constraints.md: Document reserved use of "wc".
18354
18355 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
18356
18357 PR ipa/60150
18358 * ipa.c (function_and_variable_visibility): When dissolving comdat
18359 group, also set all symbols to local.
18360
18361 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
18362
18363 PR ipa/60306
18364
18365 Revert:
18366 2013-12-14 Jan Hubicka <jh@suse.cz>
18367 PR middle-end/58477
18368 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
18369
18370 2014-03-02 Jon Beniston <jon@beniston.com>
18371
18372 PR bootstrap/48230
18373 PR bootstrap/50927
18374 PR bootstrap/52466
18375 PR target/46898
18376 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
18377 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
18378 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
18379 (simple_return, *simple_return): New patterns
18380 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
18381 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
18382
18383 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
18384
18385 * dwarf2out.c (gen_subprogram_die): Tidy.
18386
18387 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
18388
18389 PR target/60071
18390 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
18391 (*mov_t_msb_neg_negc): ... this new insn.
18392
18393 2014-02-28 Jason Merrill <jason@redhat.com>
18394
18395 PR c++/58678
18396 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
18397 function.
18398
18399 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
18400
18401 PR c++/60314
18402 * dwarf2out.c (decltype_auto_die): New static.
18403 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
18404 (gen_type_die_with_usage): Handle 'decltype(auto)'.
18405 (is_cxx_auto): Likewise.
18406
18407 2014-02-28 Ian Bolton <ian.bolton@arm.com>
18408
18409 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
18410 we are not using general regs only.
18411
18412 2014-02-28 Richard Biener <rguenther@suse.de>
18413
18414 PR target/60280
18415 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
18416 previous fix and only allow to remove trivial pre-headers
18417 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
18418 (remove_forwarder_block): Properly update the latch of a loop.
18419
18420 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18421
18422 PR debug/59992
18423 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
18424 (cselib_preserved_hash_table): New.
18425 (preserve_constants_and_equivs): Move preserved vals to it.
18426 (cselib_find_slot): Look it up first.
18427 (cselib_init): Initialize it.
18428 (cselib_finish): Release it.
18429 (dump_cselib_table): Dump it.
18430
18431 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18432
18433 PR debug/59992
18434 * cselib.c (remove_useless_values): Skip to avoid quadratic
18435 behavior if the condition moved from...
18436 (cselib_process_insn): ... here holds.
18437
18438 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18439
18440 PR debug/57232
18441 * var-tracking.c (vt_initialize): Apply the same condition to
18442 preserve the CFA base value.
18443
18444 2014-02-28 Joey Ye <joey.ye@arm.com>
18445
18446 PR target/PR60169
18447 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
18448 if reload in progress or completed.
18449
18450 2014-02-28 Tobias Burnus <burnus@net-b.de>
18451
18452 PR middle-end/60147
18453 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
18454 NAMELIST_DECL.
18455
18456 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
18457
18458 * doc/tm.texi.in (Condition Code Status): Update documention for
18459 relative locations of cc0-setter and cc0-user.
18460
18461 2014-02-27 Jeff Law <law@redhat.com>
18462
18463 PR rtl-optimization/52714
18464 * combine.c (try_combine): When splitting an unrecognized PARALLEL
18465 into two independent simple sets, if I3 is a jump, ensure the
18466 pattern we place into I3 is a (set (pc) ...).
18467
18468 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
18469 Jeff Law <law@redhat.com>
18470
18471 PR rtl-optimization/49847
18472 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
18473 are in different blocks.
18474 * doc/tm.texi (Condition Code Status): Update documention for
18475 relative locations of cc0-setter and cc0-user.
18476
18477 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
18478
18479 PR target/59222
18480 * lra.c (lra_emit_add): Check SUBREG too.
18481
18482 2014-02-27 Andreas Schwab <schwab@suse.de>
18483
18484 * config/m68k/m68k.c (m68k_option_override): Disable
18485 -flive-range-shrinkage for classic m68k.
18486 (m68k_override_options_after_change): Likewise.
18487
18488 2014-02-27 Marek Polacek <polacek@redhat.com>
18489
18490 PR middle-end/59223
18491 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
18492 -Wmaybe-uninitialized.
18493
18494 2014-02-27 Alan Modra <amodra@gmail.com>
18495
18496 PR target/57936
18497 * reload1.c (emit_input_reload_insns): When reload_override_in,
18498 set old to rl->in_reg when rl->in_reg is a subreg.
18499
18500 2014-02-26 Richard Biener <rguenther@suse.de>
18501
18502 PR bootstrap/60343
18503 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
18504
18505 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
18506
18507 * common/config/i386/predicates.md (const1256_operand): Remove.
18508 (const2356_operand): New.
18509 (const_1_to_2_operand): Remove.
18510 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18511 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18512 (*avx512pf_gatherpf<mode>sf): Ditto.
18513 (avx512pf_gatherpf<mode>df): Ditto.
18514 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18515 (*avx512pf_gatherpf<mode>df): Ditto.
18516 (avx512pf_scatterpf<mode>sf): Ditto.
18517 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18518 (*avx512pf_scatterpf<mode>sf): Ditto.
18519 (avx512pf_scatterpf<mode>df): Ditto.
18520 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18521 (*avx512pf_scatterpf<mode>df): Ditto.
18522 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
18523
18524 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
18525
18526 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
18527 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
18528 (_mm512_mask_testn_epi64_mask): Move to ...
18529 * config/i386/avx512cdintrin.h: Here.
18530 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
18531 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
18532 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
18533 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
18534 TARGET_AVX512F from TARGET_AVX512CD.
18535
18536 2014-02-26 Richard Biener <rguenther@suse.de>
18537
18538 PR ipa/60327
18539 * ipa.c (walk_polymorphic_call_targets): Properly guard
18540 call to inline_update_overall_summary.
18541
18542 2014-02-26 Bin Cheng <bin.cheng@arm.com>
18543
18544 PR target/60280
18545 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
18546 and latches only if requested. Fix latch if it is removed.
18547 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
18548 LOOPS_HAVE_PREHEADERS.
18549
18550 2014-02-25 Andrew Pinski <apinski@cavium.com>
18551
18552 * builtins.c (expand_builtin_thread_pointer): Create a new target
18553 when the target is NULL.
18554
18555 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
18556
18557 PR rtl-optimization/60317
18558 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
18559 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
18560 * lra-assigns.c: Include params.h.
18561 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
18562 other reload pseudos considerations.
18563
18564 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18565
18566 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
18567 to use canonical form for nor<mode>3.
18568
18569 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18570
18571 PR target/55426
18572 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
18573 conversions.
18574
18575 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
18576
18577 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
18578 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
18579 (ix86_handle_option): Handle OPT_mprefetchwt1.
18580 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
18581 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18582 PREFETCHWT1 CPUID.
18583 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18584 OPTION_MASK_ISA_PREFETCHWT1.
18585 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
18586 (PTA_PREFETCHWT1): New.
18587 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
18588 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
18589 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
18590 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
18591 (*prefetch_avx512pf_<mode>_: Change into ...
18592 (*prefetch_prefetchwt1_<mode>: This.
18593 * config/i386/i386.opt (mprefetchwt1): New.
18594 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
18595 (_mm_prefetch): Handle intent to write.
18596 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
18597
18598 2014-02-25 Richard Biener <rguenther@suse.de>
18599
18600 PR middle-end/60291
18601 * emit-rtl.c (mem_attrs_htab): Remove.
18602 (mem_attrs_htab_hash): Likewise.
18603 (mem_attrs_htab_eq): Likewise.
18604 (set_mem_attrs): Always allocate new mem-attrs when something changed.
18605 (init_emit_once): Do not allocate mem_attrs_htab.
18606
18607 2014-02-25 Richard Biener <rguenther@suse.de>
18608
18609 PR lto/60319
18610 * lto-opts.c (lto_write_options): Output non-explicit conservative
18611 -fwrapv, -fno-trapv and -fno-strict-overflow.
18612 * lto-wrapper.c (merge_and_complain): Handle merging those options.
18613 (run_gcc): And pass them through.
18614
18615 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18616
18617 * sel-sched.c (calculate_new_fences): New parameter ptime.
18618 Calculate it as a maximum over all fence cycles.
18619 (sel_sched_region_2): Adjust the call to calculate_new_fences.
18620 Print the final schedule timing when sched_verbose.
18621
18622 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18623
18624 PR rtl-optimization/60292
18625 * sel-sched.c (fill_vec_av_set): Do not reset target availability
18626 bit fot the fence instruction.
18627
18628 2014-02-24 Alangi Derick <alangiderick@gmail.com>
18629
18630 * calls.h: Fix typo in comment.
18631
18632 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
18633
18634 * config/pa/pa.c (pa_output_move_double): Don't valididate when
18635 adjusting offsetable addresses.
18636
18637 2014-02-24 Guozhi Wei <carrot@google.com>
18638
18639 * sparseset.h (sparseset_pop): Fix the wrong index.
18640
18641 2014-02-24 Walter Lee <walt@tilera.com>
18642
18643 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
18644 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
18645 triplet.
18646 * common/config/tilegx/tilegx-common.c
18647 (TARGET_DEFAULT_TARGET_FLAGS): Define.
18648 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
18649 (LINK_SPEC): Ditto.
18650 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
18651 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
18652 (tilegx_gimplify_va_arg_expr): Handle big endian.
18653 (tilegx_expand_unaligned_load): Ditto.
18654 (tilegx_expand_unaligned_store): Ditto.
18655 (TARGET_RETURN_IN_MSB): New.
18656 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
18657 (TARGET_ENDIAN_DEFAULT): New.
18658 (TARGET_BIG_ENDIAN): Handle big endian.
18659 (BYTES_BIG_ENDIAN): Ditto.
18660 (WORDS_BIG_ENDIAN): Ditto.
18661 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
18662 (ENDIAN_SPEC): New.
18663 (EXTRA_SPECS): New.
18664 * config/tilegx/tilegx.md (extv): Handle big endian.
18665 (extzv): Ditto.
18666 (insn_st<n>): Ditto.
18667 (insn_st<n>_add<bitsuffix>): Ditto.
18668 (insn_stnt<n>): Ditto.
18669 (insn_stnt<n>_add<bitsuffix>):Ditto.
18670 (vec_interleave_highv8qi): Handle big endian.
18671 (vec_interleave_highv8qi_be): New.
18672 (vec_interleave_highv8qi_le): New.
18673 (insn_v1int_h): Handle big endian.
18674 (vec_interleave_lowv8qi): Handle big endian.
18675 (vec_interleave_lowv8qi_be): New.
18676 (vec_interleave_lowv8qi_le): New.
18677 (insn_v1int_l): Handle big endian.
18678 (vec_interleave_highv4hi): Handle big endian.
18679 (vec_interleave_highv4hi_be): New.
18680 (vec_interleave_highv4hi_le): New.
18681 (insn_v2int_h): Handle big endian.
18682 (vec_interleave_lowv4hi): Handle big endian.
18683 (vec_interleave_lowv4hi_be): New.
18684 (vec_interleave_lowv4hi_le): New.
18685 (insn_v2int_l): Handle big endian.
18686 (vec_interleave_highv2si): Handle big endian.
18687 (vec_interleave_highv2si_be): New.
18688 (vec_interleave_highv2si_le): New.
18689 (insn_v4int_h): Handle big endian.
18690 (vec_interleave_lowv2si): Handle big endian.
18691 (vec_interleave_lowv2si_be): New.
18692 (vec_interleave_lowv2si_le): New.
18693 (insn_v4int_l): Handle big endian.
18694 * config/tilegx/tilegx.opt (mbig-endian): New option.
18695 (mlittle-endian): New option.
18696 * doc/install.texi: Document tilegxbe-linux.
18697 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
18698
18699 2014-02-24 Martin Jambor <mjambor@suse.cz>
18700
18701 PR ipa/60266
18702 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
18703 there are no parameter descriptors.
18704
18705 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
18706
18707 PR rtl-optimization/60268
18708 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
18709 initialization to ...
18710 (sched_rgn_init): ... here.
18711 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
18712
18713 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18714
18715 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
18716 names.
18717
18718 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18719
18720 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
18721 definition.
18722
18723 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18724
18725 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
18726 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
18727
18728 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18729
18730 * config/microblaze/predicates.md: Add cmp_op predicate.
18731 * config/microblaze/microblaze.md: Add branch_compare instruction
18732 which uses cmp_op predicate and emits cmp insn before branch.
18733 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
18734 to microblaze_expand_conditional_branch and consolidate logic.
18735 (microblaze_expand_conditional_branch): emit branch_compare
18736 insn instead of handling cmp op separate from branch insn.
18737
18738 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18739
18740 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
18741 to permit subregs.
18742
18743 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18744
18745 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
18746 define_insn with define_expand and new define_insn
18747 *altivec_lve<VI_char>x_internal.
18748 (altivec_stve<VI_char>x): Replace define_insn with define_expand
18749 and new define_insn *altivec_stve<VI_char>x_internal.
18750 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
18751 prototype.
18752 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
18753 lve*x built-ins.
18754 (altivec_expand_stvex_be): New function.
18755
18756 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
18757
18758 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
18759 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
18760 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
18761 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
18762
18763 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
18764
18765 PR target/60298
18766 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
18767 instead of emit_move_insn.
18768
18769 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18770
18771 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
18772 vspltw with vsldoi.
18773 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
18774 gen_altivec_vsumsws.
18775
18776 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18777
18778 * config/rs6000/altivec.md (altivec_lvxl): Rename as
18779 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
18780 (altivec_lvxl_<mode>): New define_expand incorporating
18781 -maltivec=be semantics where needed.
18782 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
18783 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
18784 semantics where needed.
18785 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
18786 (altivec_stvx_<mode>): New define_expand incorporating
18787 -maltivec=be semantics where needed.
18788 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
18789 VM2 iterator instead of V4SI.
18790 (altivec_stvxl_<mode>): New define_expand incorporating
18791 -maltivec=be semantics where needed.
18792 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
18793 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
18794 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
18795 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
18796 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
18797 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
18798 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
18799 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
18800 ALTIVEC_BUILTIN_STVXL.
18801 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
18802 (altivec_expand_stvx_be): Likewise.
18803 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
18804 (altivec_expand_lvx_be): Likewise.
18805 (altivec_expand_stvx_be): Likewise.
18806 (altivec_expand_builtin): Add cases for
18807 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
18808 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
18809 (altivec_init_builtins): Add definitions for
18810 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
18811 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
18812
18813 2014-02-21 Catherine Moore <clm@codesourcery.com>
18814
18815 * doc/invoke.texi (mvirt, mno-virt): Document.
18816 * config/mips/mips.opt (mvirt): New option.
18817 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
18818
18819 2014-02-21 Richard Biener <rguenther@suse.de>
18820
18821 PR tree-optimization/60276
18822 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
18823 (STMT_VINFO_MIN_NEG_DIST): New macro.
18824 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
18825 STMT_VINFO_MIN_NEG_DIST.
18826 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
18827 made for negative dependence distances still hold.
18828
18829 2014-02-21 Richard Biener <rguenther@suse.de>
18830
18831 PR middle-end/60291
18832 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
18833 DECL_INITIAL for globals not in the current function context.
18834
18835 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18836
18837 PR tree-optimization/56490
18838 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
18839 * tree-ssa-uninit.c: Include params.h.
18840 (compute_control_dep_chain): Add num_calls argument, return false
18841 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
18842 num_calls to recursive call.
18843 (find_predicates): Change dep_chain into normal array,
18844 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
18845 variable and adjust compute_control_dep_chain caller.
18846 (find_def_preds): Likewise.
18847
18848 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
18849
18850 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
18851 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
18852
18853 2014-02-21 Nick Clifton <nickc@redhat.com>
18854
18855 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
18856 (pushhi1): Likewise.
18857 (popqi1): Add mode to pre_dec.
18858 (pophi1): Likewise.
18859
18860 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18861
18862 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
18863 mode for mask of V8SFmode permutation.
18864
18865 2014-02-20 Richard Henderson <rth@redhat.com>
18866
18867 PR c++/60272
18868 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
18869 a new pseudo for OLDVAL.
18870
18871 2014-02-20 Jakub Jelinek <jakub@redhat.com>
18872
18873 PR target/57896
18874 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
18875 gen_reg_rtx if d->testing_p.
18876 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
18877 if d->testing_p and we will certainly return true.
18878 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
18879 if d->testing_p.
18880
18881 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
18882
18883 * emit-rtl.c (gen_reg_rtx): Assert that
18884 crtl->emit.regno_pointer_align_length is non-zero.
18885
18886 2014-02-20 Richard Henderson <rth@redhat.com>
18887
18888 PR c++/60272
18889 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
18890 on failure the store back into EXPECT.
18891
18892 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
18893 Sandra Loosemore <sandra@codesourcery.com>
18894
18895 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
18896 * config/nios2/nios2.c (nios2_function_profiler): Add
18897 -fPIC (flag_pic == 2) support.
18898 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
18899 (nios2_large_offset_p): New function.
18900 (nios2_unspec_reloc_p): Move up position, update to use
18901 nios2_large_offset_p.
18902 (nios2_unspec_address): Remove function.
18903 (nios2_unspec_offset): New function.
18904 (nios2_large_got_address): New function.
18905 (nios2_got_address): Add large offset support.
18906 (nios2_legitimize_tls_address): Update usage of removed and new
18907 functions.
18908 (nios2_symbol_binds_local_p): New function.
18909 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
18910 (nios2_legitimize_address): Update to use nios2_large_offset_p.
18911 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
18912 (nios2_print_operand): Merge H/L processing, add hiadj/lo
18913 processing for (const (unspec ...)).
18914 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
18915
18916 2014-02-20 Richard Biener <rguenther@suse.de>
18917
18918 * tree-cfg.c (replace_uses_by): Mark altered BBs before
18919 doing the substitution.
18920 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
18921
18922 2014-02-20 Martin Jambor <mjambor@suse.cz>
18923
18924 PR ipa/55260
18925 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
18926 info when checking whether lattices are bottom.
18927
18928 2014-02-20 Richard Biener <rguenther@suse.de>
18929
18930 PR middle-end/60221
18931 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
18932 regions at -O0.
18933
18934 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
18935
18936 PR ipa/58555
18937 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
18938 parameter specifying the scaling.
18939 (inline_call): Update.
18940 (want_inline_recursively): Guard division by zero.
18941 (recursive_inlining): Update.
18942 * ipa-inline.h (clone_inlined_nodes): Update.
18943
18944 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18945
18946 PR target/60204
18947 * config/i386/i386.c (classify_argument): Pass structures of size
18948 64 bytes or less in register.
18949
18950 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18951 Kirill Yukhin <kirill.yukhin@intel.com>
18952
18953 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
18954 (_mm_rcp28_round_ss): Ditto.
18955 (_mm_rsqrt28_round_sd): Ditto.
18956 (_mm_rsqrt28_round_ss): Ditto.
18957 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
18958 (_mm_rcp14_round_ss): Ditto.
18959 (_mm_rsqrt14_round_sd): Ditto.
18960 (_mm_rsqrt14_round_ss): Ditto.
18961 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
18962 the first input operand, get rid of match_dup.
18963 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
18964 attribute to sse.
18965 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
18966 Ditto.
18967 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
18968 operand as the first input operand, set type attribute.
18969 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
18970 Set type attribute.
18971 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
18972 operand as the first input operand, set type attribute.
18973
18974 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18975
18976 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
18977 bit of zero.
18978
18979 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
18980
18981 PR target/60207
18982 * config/i386/i386.c (construct_container): Remove TFmode check
18983 for X86_64_INTEGER_CLASS.
18984
18985 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
18986
18987 PR target/59794
18988 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
18989 only when -Wpsabi is enabled.
18990
18991 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
18992
18993 PR target/59799
18994 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
18995 passing arrays in registers are the same as for structs, so remove the
18996 special case for them.
18997
18998 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
18999
19000 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
19001 destination type, extract only the valid bits if the source type is not
19002 integral and has a different mode.
19003
19004 2014-02-19 Richard Biener <rguenther@suse.de>
19005
19006 PR ipa/60243
19007 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
19008 for all calls.
19009
19010 2014-02-19 Richard Biener <rguenther@suse.de>
19011
19012 PR ipa/60243
19013 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
19014 (ipa_modify_call_arguments): Emit an argument load explicitely and
19015 preserve virtual SSA form there and for the replacement call.
19016 Do not update SSA form nor free dominance info.
19017
19018 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
19019
19020 * ipa.c (function_and_variable_visibility): Also clear WEAK
19021 flag when disolving COMDAT_GROUP.
19022
19023 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
19024
19025 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
19026 * ipa-prop.c (ipa_set_jf_known_type): Return early when
19027 not devirtualizing.
19028 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
19029 do more sanity checks.
19030 (detect_type_change): Return true when giving up early.
19031 (compute_complex_assign_jump_func): Fix type parameter of
19032 ipa_set_ancestor_jf.
19033 (compute_complex_ancestor_jump_func): Likewise.
19034 (update_jump_functions_after_inlining): Fix updating of
19035 ancestor function.
19036 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
19037
19038 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
19039
19040 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
19041 inline clones when edge disappears.
19042
19043 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
19044
19045 PR target/60203
19046 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
19047 Split 64-bit moves into 2 patterns. Do not allow the use of
19048 direct move for TDmode in little endian, since the decimal value
19049 has little endian bytes within a word, but the 64-bit pieces are
19050 ordered in a big endian fashion, and normal subreg's of TDmode are
19051 not allowed.
19052 (mov<mode>_64bit_dm): Likewise.
19053 (movtd_64bit_nodm): Likewise.
19054
19055 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
19056
19057 PR tree-optimization/60174
19058 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
19059 statement of an SSA_NAME that occurs in an abnormal PHI node.
19060
19061 2014-02-18 Jakub Jelinek <jakub@redhat.com>
19062
19063 PR sanitizer/60142
19064 * final.c (SEEN_BB): Remove.
19065 (SEEN_NOTE, SEEN_EMITTED): Renumber.
19066 (final_scan_insn): Don't force_source_line on second
19067 NOTE_INSN_BASIC_BLOCK.
19068
19069 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
19070
19071 PR target/60205
19072 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
19073 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
19074 (type_natural_mode): Warn ABI change when %zmm register is not
19075 available for AVX512F vector value passing.
19076
19077 2014-02-18 Kai Tietz <ktietz@redhat.com>
19078
19079 PR target/60193
19080 * config/i386/i386.c (ix86_expand_prologue): Use value in
19081 rax register as displacement when restoring %r10 or %rax.
19082 Fix wrong offset when restoring both registers.
19083
19084 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
19085
19086 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
19087 assertion with conditional return.
19088
19089 2014-02-18 Jakub Jelinek <jakub@redhat.com>
19090 Uros Bizjak <ubizjak@gmail.com>
19091
19092 PR driver/60233
19093 * config/i386/driver-i386.c (host_detect_local_cpu): If
19094 YMM state is not saved by the OS, also clear has_f16c. Move
19095 CPUID 0x80000001 handling before YMM state saving checking.
19096
19097 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
19098
19099 PR rtl-optimization/58960
19100 * haifa-sched.c (alloc_global_sched_pressure_data): New,
19101 factored out from ...
19102 (sched_init): ... here.
19103 (free_global_sched_pressure_data): New, factored out from ...
19104 (sched_finish): ... here.
19105 * sched-int.h (free_global_sched_pressure_data): Declare.
19106 * sched-rgn.c (nr_regions_initial): New static global.
19107 (haifa_find_rgns): Initialize it.
19108 (schedule_region): Disable sched-pressure for the newly
19109 generated regions.
19110
19111 2014-02-17 Richard Biener <rguenther@suse.de>
19112
19113 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
19114 release SSA defs of pattern stmts.
19115
19116 2014-02-17 Richard Biener <rguenther@suse.de>
19117
19118 * tree-inline.c (expand_call_inline): Release the virtual
19119 operand defined by the call we are about to inline.
19120
19121 2014-02-17 Richard Biener <rguenther@suse.de>
19122
19123 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
19124
19125 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
19126 Ilya Tocar <ilya.tocar@intel.com>
19127
19128 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
19129 arguments order in builtin.
19130 (_mm512_permutexvar_epi64): Ditto.
19131 (_mm512_mask_permutexvar_epi64): Ditto
19132 (_mm512_maskz_permutexvar_epi32): Ditto
19133 (_mm512_permutexvar_epi32): Ditto
19134 (_mm512_mask_permutexvar_epi32): Ditto
19135
19136 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19137
19138 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
19139 (p8_vmrgow): Likewise.
19140
19141 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19142
19143 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
19144 endian targets.
19145
19146 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
19147
19148 PR target/60203
19149 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
19150 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
19151 into 64-bit and 32-bit moves. On 64-bit moves, add support for
19152 using direct move instructions on ISA 2.07. Also adjust
19153 instruction length for 64-bit.
19154 (mov<mode>_64bit, TFmode/TDmode): Likewise.
19155 (mov<mode>_32bit, TFmode/TDmode): Likewise.
19156
19157 2014-02-15 Alan Modra <amodra@gmail.com>
19158
19159 PR target/58675
19160 PR target/57935
19161 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
19162 find_replacement on parts of insn rtl that might be reloaded.
19163
19164 2014-02-15 Richard Biener <rguenther@suse.de>
19165
19166 PR tree-optimization/60183
19167 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
19168 (tree_ssa_phiprop): Calculate and free post-dominators.
19169
19170 2014-02-14 Jeff Law <law@redhat.com>
19171
19172 PR rtl-optimization/60131
19173 * ree.c (get_extended_src_reg): New function.
19174 (combine_reaching_defs): Use it rather than assuming location of REG.
19175 (find_and_remove_re): Verify first operand of extension is
19176 a REG before adding the insns to the copy list.
19177
19178 2014-02-14 Roland McGrath <mcgrathr@google.com>
19179
19180 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
19181 * configure: Regenerated.
19182 * config.in: Regenerated.
19183 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
19184 instead of ASM_SHORT.
19185
19186 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
19187 Richard Earnshaw <rearnsha@arm.com>
19188
19189 PR rtl-optimization/59535
19190 * lra-constraints.c (process_alt_operands): Encourage alternative
19191 when unassigned pseudo class is superset of the alternative class.
19192 (inherit_reload_reg): Don't inherit when optimizing for code size.
19193 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
19194 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
19195 modes not less than 4 for Thumb1.
19196
19197 2014-02-14 Kyle McMartin <kyle@redhat.com>
19198
19199 PR pch/60010
19200 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
19201
19202 2014-02-14 Richard Biener <rguenther@suse.de>
19203
19204 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
19205 (get_frame_arg): Drop the assert with langhook types_compatible_p.
19206 Do not strip INDIRECT_REFs.
19207
19208 2014-02-14 Richard Biener <rguenther@suse.de>
19209
19210 PR lto/60179
19211 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
19212 DECL_FUNCTION_SPECIFIC_TARGET.
19213 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
19214 * tree-streamer-out.c (pack_ts_target_option): Remove.
19215 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
19216 (write_ts_function_decl_tree_pointers): Do not stream
19217 DECL_FUNCTION_SPECIFIC_TARGET.
19218 * tree-streamer-in.c (unpack_ts_target_option): Remove.
19219 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
19220 (lto_input_ts_function_decl_tree_pointers): Do not stream
19221 DECL_FUNCTION_SPECIFIC_TARGET.
19222
19223 2014-02-14 Jakub Jelinek <jakub@redhat.com>
19224
19225 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
19226 (get_initial_def_for_induction, vectorizable_induction): Ignore
19227 debug stmts when looking for exit_phi.
19228 (vectorizable_live_operation): Fix up condition.
19229
19230 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19231
19232 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
19233 nreverse() because it changes the content of original tree list.
19234
19235 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19236
19237 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
19238 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
19239
19240 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19241
19242 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
19243 GNU coding standards.
19244
19245 2014-02-13 Jakub Jelinek <jakub@redhat.com>
19246
19247 PR debug/60152
19248 * dwarf2out.c (gen_subprogram_die): Don't call
19249 add_calling_convention_attribute if subr_die is old_die.
19250
19251 2014-02-13 Sharad Singhai <singhai@google.com>
19252
19253 * doc/optinfo.texi: Fix order of nodes.
19254
19255 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
19256
19257 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
19258 operands[2], not operands[3].
19259
19260 2014-02-13 Richard Biener <rguenther@suse.de>
19261
19262 PR bootstrap/59878
19263 * doc/install.texi (ISL): Update recommended version to 0.12.2,
19264 mention the possibility of an in-tree build.
19265 (CLooG): Update recommended version to 0.18.1, mention the
19266 possibility of an in-tree build and clarify that the ISL
19267 bundled with CLooG does not work.
19268
19269 2014-02-13 Jakub Jelinek <jakub@redhat.com>
19270
19271 PR target/43546
19272 * expr.c (compress_float_constant): If x is a hard register,
19273 extend into a pseudo and then move to x.
19274
19275 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
19276
19277 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
19278 caused by bad second argument to warning_at() with -mhotpatch and
19279 nested functions (e.g. with gfortran).
19280
19281 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
19282
19283 * opts.c (option_name): Remove "enabled by default" rider.
19284
19285 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
19286
19287 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
19288
19289 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
19290 Uros Bizjak <ubizjak@gmail.com>
19291
19292 PR target/60151
19293 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
19294 * configure: Regenerated.
19295
19296 2014-02-12 Richard Biener <rguenther@suse.de>
19297
19298 * vec.c (vec_prefix::calculate_allocation): Move as
19299 inline variant to vec.h.
19300 (vec_prefix::calculate_allocation_1): New out-of-line version.
19301 * vec.h (vec_prefix::calculate_allocation_1): Declare.
19302 (vec_prefix::m_has_auto_buf): Rename to ...
19303 (vec_prefix::m_using_auto_storage): ... this.
19304 (vec_prefix::calculate_allocation): Inline the easy cases
19305 and dispatch to calculate_allocation_1 which doesn't need the
19306 prefix address.
19307 (va_heap::reserve): Use gcc_checking_assert.
19308 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
19309 m_using_auto_storage.
19310 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
19311 member and adjust.
19312 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
19313 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
19314 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
19315
19316 2014-02-12 Richard Biener <rguenther@suse.de>
19317
19318 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
19319 when we found a dependence.
19320
19321 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
19322
19323 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
19324 common code...
19325 (maybe_fold_stmt): ... into this new function.
19326 * omp-low.c (lower_omp): Update comment.
19327
19328 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
19329 last use.
19330
19331 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
19332 dereference.
19333
19334 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
19335
19336 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
19337 identifiers in comments.
19338 (cortexa53_extra_costs): Likewise.
19339 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
19340 (cortexa7_extra_costs): Likewise.
19341 (cortexa12_extra_costs): Likewise.
19342 (cortexa15_extra_costs): Likewise.
19343 (v7m_extra_costs): Likewise.
19344
19345 2014-02-12 Richard Biener <rguenther@suse.de>
19346
19347 PR middle-end/60092
19348 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
19349 of posix_memalign being successful.
19350 (lower_stmt): Restrict lowering of posix_memalign to when
19351 -ftree-bit-ccp is enabled.
19352
19353 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19354
19355 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
19356 arg_loc.
19357 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
19358
19359 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
19360
19361 PR rtl-optimization/60116
19362 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
19363 other_insn once the combination has been validated.
19364
19365 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
19366
19367 PR lto/59468
19368 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
19369 and wrapper.
19370 * ipa-devirt.c: Include demangle.h
19371 (odr_violation_reported): New static variable.
19372 (add_type_duplicate): Update odr_violations.
19373 (maybe_record_node): Add completep parameter; update it.
19374 (record_target_from_binfo): Add COMPLETEP parameter;
19375 update it as needed.
19376 (possible_polymorphic_call_targets_1): Likewise.
19377 (struct polymorphic_call_target_d): Add nonconstruction_targets;
19378 rename FINAL to COMPLETE.
19379 (record_targets_from_bases): Sanity check we found the binfo;
19380 fix COMPLETEP updating.
19381 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
19382 parameter, fix computing of COMPLETEP.
19383 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
19384 at LTO time do demangling.
19385 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
19386 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
19387 parameter.
19388 (gimple_get_virt_method_for_binfo): Likewise.
19389 * gimple-fold.h (gimple_get_virt_method_for_binfo,
19390 gimple_get_virt_method_for_vtable): Update prototypes.
19391
19392 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
19393
19394 PR target/49008
19395 * genautomata.c (add_presence_absence): Fix typo with
19396 {final_}presence_list.
19397
19398 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19399
19400 PR target/60137
19401 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
19402 for VSX/Altivec vectors that land in GPR registers.
19403
19404 2014-02-11 Richard Henderson <rth@redhat.com>
19405 Jakub Jelinek <jakub@redhat.com>
19406
19407 PR debug/59776
19408 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
19409 around drhs if type conversion to lacc->type is not useless.
19410
19411 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19412
19413 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
19414 tuning struct.
19415 (cortex-a57.cortex-a53): Likewise.
19416 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
19417
19418 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19419
19420 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
19421 arm_restrict_it.
19422
19423 2014-02-11 Renlin Li <Renlin.Li@arm.com>
19424
19425 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
19426 add_options_for_arm_vfp3.
19427
19428 2014-02-11 Jeff Law <law@redhat.com>
19429
19430 PR middle-end/54041
19431 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
19432 object with an undesirable mode.
19433
19434 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19435
19436 PR libgomp/60107
19437 * config/i386/sol2-9.h: New file.
19438 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
19439 *-*-solaris2.9*): Use it.
19440
19441 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
19442
19443 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
19444 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
19445
19446 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
19447
19448 * config/microblaze/microblaze.c: Extend mcpu version format
19449
19450 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
19451
19452 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
19453
19454 2014-02-10 Richard Henderson <rth@redhat.com>
19455
19456 PR target/59927
19457 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
19458 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
19459 ms-abi vs -mno-accumulate-outgoing-args.
19460 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
19461 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
19462 respect to ms-abi.
19463
19464 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19465
19466 PR middle-end/60080
19467 * cfgexpand.c (expand_asm_operands): Attach source location to
19468 ASM_INPUT rtx objects.
19469 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
19470
19471 2014-02-10 Nick Clifton <nickc@redhat.com>
19472
19473 * config/mn10300/mn10300.c (popcount): New function.
19474 (mn10300_expand_prologue): Include saved registers in stack usage
19475 count.
19476
19477 2014-02-10 Jeff Law <law@redhat.com>
19478
19479 PR middle-end/52306
19480 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
19481 when changing the SET_DEST of a prior insn to avoid an input reload.
19482
19483 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19484
19485 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
19486 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
19487 -mcall-openbsd, or -mcall-linux.
19488 (CC1_ENDIAN_BIG_SPEC): Remove.
19489 (CC1_ENDIAN_LITTLE_SPEC): Remove.
19490 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
19491 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
19492 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
19493 and %cc1_endian_default.
19494 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
19495
19496 2014-02-10 Richard Biener <rguenther@suse.de>
19497
19498 PR tree-optimization/60115
19499 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
19500 MEM_REF handling. Properly verify that the accesses are not
19501 out of the objects bound.
19502
19503 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19504
19505 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
19506 coretex to cortex.
19507
19508 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
19509
19510 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
19511 proper constants and fix formatting.
19512 (possible_polymorphic_call_targets): Fix formatting.
19513
19514 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
19515 Ilya Tocar <ilya.tocar@intel.com>
19516
19517 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
19518 (_mm512_loadu_epi32): Renamed into...
19519 (_mm512_loadu_si512): This.
19520 (_mm512_storeu_epi32): Renamed into...
19521 (_mm512_storeu_si512): This.
19522 (_mm512_maskz_ceil_ps): Removed.
19523 (_mm512_maskz_ceil_pd): Ditto.
19524 (_mm512_maskz_floor_ps): Ditto.
19525 (_mm512_maskz_floor_pd): Ditto.
19526 (_mm512_floor_round_ps): Ditto.
19527 (_mm512_floor_round_pd): Ditto.
19528 (_mm512_ceil_round_ps): Ditto.
19529 (_mm512_ceil_round_pd): Ditto.
19530 (_mm512_mask_floor_round_ps): Ditto.
19531 (_mm512_mask_floor_round_pd): Ditto.
19532 (_mm512_mask_ceil_round_ps): Ditto.
19533 (_mm512_mask_ceil_round_pd): Ditto.
19534 (_mm512_maskz_floor_round_ps): Ditto.
19535 (_mm512_maskz_floor_round_pd): Ditto.
19536 (_mm512_maskz_ceil_round_ps): Ditto.
19537 (_mm512_maskz_ceil_round_pd): Ditto.
19538 (_mm512_expand_pd): Ditto.
19539 (_mm512_expand_ps): Ditto.
19540 * config/i386/i386.c (ix86_builtins): Remove
19541 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
19542 (bdesc_args): Ditto.
19543 * config/i386/predicates.md (const1256_operand): New.
19544 (const_1_to_2_operand): Ditto.
19545 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
19546 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19547 (*avx512pf_gatherpf<mode>sf): Ditto.
19548 (avx512pf_gatherpf<mode>df): Ditto.
19549 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19550 (*avx512pf_gatherpf<mode>df): Ditto.
19551 (avx512pf_scatterpf<mode>sf): Ditto.
19552 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19553 (*avx512pf_scatterpf<mode>sf): Ditto.
19554 (avx512pf_scatterpf<mode>df): Ditto.
19555 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19556 (*avx512pf_scatterpf<mode>df): Ditto.
19557 (avx512f_expand<mode>): Removed.
19558 (<shift_insn><mode>3<mask_name>): Change predicate type.
19559
19560 2014-02-08 Jakub Jelinek <jakub@redhat.com>
19561
19562 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
19563 not at the end of datarefs vector use ordered_remove to avoid
19564 reordering datarefs vector.
19565
19566 PR c/59984
19567 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
19568 mark local addressable non-static vars as GOVD_PRIVATE
19569 instead of GOVD_LOCAL.
19570 * omp-low.c (lower_omp_for): Move gimple_bind_vars
19571 and BLOCK_VARS of gimple_bind_block to new_stmt rather
19572 than copying them.
19573
19574 PR middle-end/60092
19575 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
19576 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
19577 assume_aligned or alloc_align attributes.
19578 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
19579 arguments. Handle also assume_aligned and alloc_align attributes.
19580 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
19581 calls to functions with assume_aligned or alloc_align attributes.
19582 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
19583
19584 2014-02-08 Terry Guo <terry.guo@arm.com>
19585
19586 * doc/invoke.texi: Document ARM -march=armv7e-m.
19587
19588 2014-02-08 Jakub Jelinek <jakub@redhat.com>
19589
19590 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
19591 flag on __cilkrts_rethrow builtin.
19592
19593 PR ipa/60026
19594 * ipa-cp.c (determine_versionability): Fail at -O0
19595 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
19596 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
19597
19598 Revert:
19599 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19600
19601 PR ipa/60026
19602 * tree-inline.c (copy_forbidden): Fail for
19603 __attribute__((optimize (0))) functions.
19604
19605 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19606
19607 * varpool.c: Include pointer-set.h.
19608 (varpool_remove_unreferenced_decls): Variables in other partitions
19609 will not be output; be however careful to not lose information
19610 about partitioning.
19611
19612 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19613
19614 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
19615 lookup in the vtable constructor.
19616
19617 2014-02-07 Jeff Law <law@redhat.com>
19618
19619 PR target/40977
19620 * config/m68k/m68k.md (ashldi_extsi): Turn into a
19621 define_insn_and_split.
19622
19623 * ipa-inline.c (inline_small_functions): Fix typos.
19624
19625 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19626
19627 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
19628 (s390_can_use_return_insn): Declare.
19629 * config/s390/s390.h (EPILOGUE_USES): Define.
19630 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
19631 instructions.
19632 (s390_chunkify_start): Handle return JUMP_LABELs.
19633 (s390_early_mach): Emit a main_pool instruction on the entry edge.
19634 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
19635 (s390_can_use_return_insn): New functions.
19636 (s390_fix_long_loop_prediction): Handle conditional returns.
19637 (TARGET_SET_UP_BY_PROLOGUE): Define.
19638 * config/s390/s390.md (ANY_RETURN): New code iterator.
19639 (*creturn, *csimple_return, return, simple_return): New patterns.
19640
19641 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19642
19643 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
19644 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
19645 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
19646 REG_CFA_RESTORE list when deciding not to restore a register.
19647
19648 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19649
19650 * config/s390/s390.c: Include tree-pass.h and context.h.
19651 (s390_early_mach): New function, split out from...
19652 (s390_emit_prologue): ...here.
19653 (pass_data_s390_early_mach): New pass structure.
19654 (pass_s390_early_mach): New class.
19655 (s390_option_override): Create and register early_mach pass.
19656 Move to end of file.
19657
19658 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19659
19660 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
19661 to match for the exit block.
19662
19663 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19664
19665 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
19666 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
19667 Reject misaligned operands.
19668
19669 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19670
19671 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
19672
19673 2014-02-07 Richard Biener <rguenther@suse.de>
19674
19675 PR middle-end/60092
19676 * gimple-low.c (lower_builtin_posix_memalign): New function.
19677 (lower_stmt): Call it to lower posix_memalign in a way
19678 to make alignment info accessible.
19679
19680 2014-02-07 Jakub Jelinek <jakub@redhat.com>
19681
19682 PR c++/60082
19683 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
19684 __builtin_setjmp_receiver.
19685
19686 2014-02-07 Richard Biener <rguenther@suse.de>
19687
19688 PR middle-end/60092
19689 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
19690 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
19691 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19692 Handle BUILT_IN_POSIX_MEMALIGN.
19693 (find_func_clobbers): Likewise.
19694 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19695 (call_may_clobber_ref_p_1): Likewise.
19696
19697 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19698
19699 PR ipa/59918
19700 * ipa-devirt.c (record_target_from_binfo): Remove overactive
19701 sanity check.
19702
19703 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19704
19705 PR ipa/59469
19706 * lto-cgraph.c (lto_output_node): Use
19707 symtab_get_symbol_partitioning_class.
19708 (lto_output_varpool_node): likewise.
19709 (symtab_get_symbol_partitioning_class): Move here from
19710 lto/lto-partition.c
19711 * cgraph.h (symbol_partitioning_class): Likewise.
19712 (symtab_get_symbol_partitioning_class): Declare.
19713
19714 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19715
19716 * ggc.h (ggc_internal_cleared_alloc): New macro.
19717 * vec.h (vec_safe_copy): Handle memory stats.
19718 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
19719 * target-globals.c (save_target_globals): Likewise.
19720
19721 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19722
19723 PR target/60077
19724 * expr.c (emit_move_resolve_push): Export; be bit more selective
19725 on when to clear alias set.
19726 * expr.h (emit_move_resolve_push): Declare.
19727 * function.h (struct function): Add tail_call_marked.
19728 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
19729 * config/i386/i386-protos.h (ix86_expand_push): Remove.
19730 * config/i386/i386.md (TImode move expander): De not call
19731 ix86_expand_push.
19732 (FP push expanders): Preserve memory attributes.
19733 * config/i386/sse.md (push<mode>1): Remove.
19734 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
19735 (ix86_expand_push): Remove.
19736 * config/i386/mmx.md (push<mode>1): Remove.
19737
19738 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19739
19740 PR rtl-optimization/60030
19741 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
19742 lopart with paradoxical subreg before shifting it up by hprec.
19743
19744 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19745
19746 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
19747 Remove extra newline at end of file.
19748 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
19749 (arm_issue_rate): Handle cortexa57.
19750 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
19751 (cortex-a57.cortex-a53): Likewise.
19752
19753 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19754
19755 PR target/59575
19756 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
19757 don't record in REG_FRAME_RELATED_EXPR registers not set in that
19758 bitmask.
19759 (arm_expand_prologue): Adjust all callers.
19760 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
19761 info, registers also at the lowest numbered registers side. Use
19762 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
19763 XEXP.
19764
19765 PR debug/59992
19766 * var-tracking.c (adjust_mems): Before adding a SET to
19767 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
19768
19769 2014-02-06 Alan Modra <amodra@gmail.com>
19770
19771 PR target/60032
19772 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
19773 change SDmode to DDmode when lra_in_progress.
19774
19775 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19776
19777 PR middle-end/59150
19778 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
19779 free_data_ref on the dr first, and before goto again also set dr
19780 to the next dr. For simd_lane_access, free old datarefs[i] before
19781 overwriting it. For get_vectype_for_scalar_type failure, don't
19782 free_data_ref if simd_lane_access.
19783
19784 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
19785
19786 PR target/60062
19787 * tree.h (opts_for_fn): New inline function.
19788 (opt_for_fn): Define.
19789 * config/i386/i386.c (ix86_function_regparm): Use
19790 opt_for_fn (decl, optimize) instead of optimize.
19791
19792 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
19793
19794 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
19795 for SYMBOL_REF in large memory model.
19796
19797 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19798
19799 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
19800 and crypto support.
19801 (cortex-a57): Likewise.
19802 (cortex-a57.cortex-a53): Likewise.
19803
19804 2014-02-06 Yury Gribov <y.gribov@samsung.com>
19805 Kugan Vivekanandarajah <kuganv@linaro.org>
19806
19807 * config/arm/arm.c (arm_vector_alignment_reachable): Check
19808 unaligned_access.
19809 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
19810
19811 2014-02-06 Richard Biener <rguenther@suse.de>
19812
19813 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
19814 set_loop_copy and initialize_original_copy_tables.
19815
19816 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
19817
19818 * config/aarch64/aarch64-simd.md
19819 (aarch64_ashr_simddi): Change QI to SI.
19820
19821 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19822 Jakub Jelinek <jakub@redhat.com>
19823
19824 PR middle-end/60013
19825 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
19826 of the dataflow.
19827
19828 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19829
19830 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
19831 CODE_FOR_altivec_vpku[hw]um to
19832 CODE_FOR_altivec_vpku[hw]um_direct.
19833 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
19834 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
19835 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
19836 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
19837
19838 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19839
19840 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
19841 generation for -maltivec=be.
19842 (altivec_vsumsws): Simplify redundant test.
19843
19844 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19845
19846 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
19847 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
19848 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
19849 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
19850 gen_altivec_vpkuwum.
19851 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
19852 BYTES_BIG_ENDIAN.
19853 (altivec_vpks<VI_char>ss): Likewise.
19854 (altivec_vpks<VI_char>us): Likewise.
19855 (altivec_vpku<VI_char>us): Likewise.
19856 (altivec_vpku<VI_char>um): Likewise.
19857 (altivec_vpku<VI_char>um_direct): New (copy of
19858 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
19859 internal use).
19860 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
19861 target is little endian and -maltivec=be is not specified.
19862 (*altivec_vupkhs<VU_char>_direct): New (copy of
19863 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
19864 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
19865 target is little endian and -maltivec=be is not specified.
19866 (*altivec_vupkls<VU_char>_direct): New (copy of
19867 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
19868 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
19869 little endian and -maltivec=be is not specified.
19870 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
19871 little endian and -maltivec=be is not specified.
19872
19873 2014-02-05 Richard Henderson <rth@redhat.com>
19874
19875 PR debug/52727
19876 * combine-stack-adj.c: Revert r206943.
19877 * sched-int.h (struct deps_desc): Add last_args_size.
19878 * sched-deps.c (init_deps): Initialize it.
19879 (sched_analyze_insn): Add OUTPUT dependencies between insns that
19880 contain REG_ARGS_SIZE notes.
19881
19882 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19883
19884 * lto-cgraph.c (asm_nodes_output): Make global.
19885 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
19886 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
19887 (driver_handle_option): Handle OPT_fwpa.
19888
19889 2014-02-05 Jakub Jelinek <jakub@redhat.com>
19890
19891 PR ipa/59947
19892 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
19893 a comment typo and formatting issue. If odr_hash hasn't been
19894 created, return vNULL and set *completep to false.
19895
19896 PR middle-end/57499
19897 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
19898 bb with no successors.
19899
19900 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
19901
19902 PR target/59718
19903 * doc/invoke.texi (-march): Clarify documentation for ARM.
19904 (-mtune): Likewise.
19905 (-mcpu): Likewise.
19906
19907 2014-02-05 Richard Biener <rguenther@suse.de>
19908
19909 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
19910 when not vectorizing because of too many alias checks.
19911 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
19912 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
19913
19914 2014-02-05 Nick Clifton <nickc@redhat.com>
19915
19916 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
19917 accept extended registers in any mode when compiling for the MN10300.
19918
19919 2014-02-05 Yury Gribov <y.gribov@samsung.com>
19920
19921 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
19922 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
19923 sanitization attributes.
19924 (can_inline_edge_p): Likewise.
19925 (sanitize_attrs_match_for_inline_p): New function.
19926
19927 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19928
19929 * ipa-prop.c (detect_type_change): Shor circuit testing of
19930 type changes on THIS pointer.
19931
19932 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
19933
19934 PR target/59777
19935 * config/pa/pa.c (legitimize_tls_address): Return original address
19936 if not passed a SYMBOL_REF rtx.
19937 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
19938 addresses.
19939 (pa_emit_move_sequence): Simplify TLS source operands.
19940 (pa_legitimate_constant_p): Reject all TLS constants.
19941 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
19942 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
19943
19944 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19945
19946 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
19947 groups when we know they are controlled by LTO.
19948 * varasm.c (default_binds_local_p_1): If object is in other partition,
19949 it will be resolved locally.
19950
19951 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19952
19953 * config/host-linux.c (linux_gt_pch_use_address): Don't
19954 use SSIZE_MAX because it is not always defined.
19955
19956 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
19957
19958 PR bootstrap/59913
19959 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
19960 threshold for pseudo splitting.
19961 (update_ebb_live_info): Process call argument hard registers and
19962 hard registers from insn definition too.
19963 (max_small_class_regs_num): New constant.
19964 (inherit_in_ebb): Update live hard regs through EBBs. Update
19965 reloads_num only for small register classes. Don't split for
19966 outputs of jumps.
19967
19968 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
19969
19970 PR ipa/60058
19971 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
19972 is non-null.
19973
19974 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19975
19976 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
19977 visibility is safe.
19978
19979 2014-02-04 Marek Polacek <polacek@redhat.com>
19980
19981 * gdbinit.in (pel): Define.
19982
19983 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19984
19985 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
19986 behavior.
19987
19988 2014-02-04 Richard Biener <rguenther@suse.de>
19989
19990 PR lto/59723
19991 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
19992 in function context local.
19993 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
19994 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
19995 similar to LTO_imported_decl_ref.
19996
19997 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19998
19999 PR tree-optimization/60002
20000 * cgraphclones.c (build_function_decl_skip_args): Clear
20001 DECL_LANG_SPECIFIC.
20002
20003 PR tree-optimization/60023
20004 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
20005 false to gsi_replace.
20006 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
20007 has been in some EH region and vec_stmt could throw, add
20008 vec_stmt into the same EH region.
20009 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
20010 has no lhs, ignore it.
20011 * internal-fn.c (expand_MASK_LOAD): Likewise.
20012
20013 PR ipa/60026
20014 * tree-inline.c (copy_forbidden): Fail for
20015 __attribute__((optimize (0))) functions.
20016
20017 PR other/58712
20018 * omp-low.c (simd_clone_struct_copy): If from->inbranch
20019 is set, copy one less argument.
20020 (expand_simd_clones): Don't subtract clone_info->inbranch
20021 from simd_clone_struct_alloc argument.
20022
20023 PR rtl-optimization/57915
20024 * recog.c (simplify_while_replacing): If all unary/binary/relational
20025 operation arguments are constant, attempt to simplify those.
20026
20027 PR middle-end/59261
20028 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
20029 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
20030
20031 2014-02-04 Richard Biener <rguenther@suse.de>
20032
20033 PR tree-optimization/60012
20034 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
20035 TBAA disambiguation to all DDRs.
20036
20037 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20038
20039 PR target/59788
20040 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
20041 (LINK_SPEC): Use it for -shared, -shared-libgcc.
20042
20043 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20044
20045 PR ipa/59882
20046 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
20047
20048 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20049
20050 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
20051 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
20052
20053 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20054
20055 PR ipa/59831
20056 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
20057 to figure out targets of polymorphic calls with known decl.
20058 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20059 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
20060 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
20061 (get_polymorphic_call_info): ... here.
20062 (get_polymorphic_call_info_from_invariant): New function.
20063
20064 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20065
20066 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
20067 lookup via vtable pointer; check for type consistency
20068 and turn inconsitent facts into UNREACHABLE.
20069 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20070 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
20071 type inconsistent querries; return UNREACHABLE instead.
20072
20073 2014-02-03 Richard Henderson <rth@twiddle.net>
20074
20075 PR tree-opt/59924
20076 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
20077 already processed this node.
20078 (normalize_one_pred_1): Pass along mark_set.
20079 (normalize_one_pred): Create and destroy a pointer_set_t.
20080 (normalize_one_pred_chain): Likewise.
20081
20082 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
20083
20084 PR gcov-profile/58602
20085 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
20086
20087 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20088
20089 PR ipa/59831
20090 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
20091 -fno-devirtualize; try to devirtualize by the knowledge of
20092 virtual table pointer given by aggregate propagation.
20093 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20094 (ipa_print_node_jump_functions): Dump also offset that
20095 is relevant for polymorphic calls.
20096 (determine_known_aggregate_parts): Add arg_type parameter; use it
20097 instead of determining the type from pointer type.
20098 (ipa_compute_jump_functions_for_edge): Update call of
20099 determine_known_aggregate_parts.
20100 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
20101 (gimple_get_virt_method_for_binfo): ... here; simplify using
20102 vtable_pointer_value_to_vtable.
20103 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
20104 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
20105 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
20106 (vtable_pointer_value_to_vtable): Break out from ...; handle also
20107 POINTER_PLUS_EXPR.
20108 (vtable_pointer_value_to_binfo): ... here.
20109 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
20110
20111 2014-02-03 Teresa Johnson <tejohnson@google.com>
20112
20113 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
20114 redef of outer loop index variable.
20115
20116 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
20117
20118 PR c++/53017
20119 PR c++/59211
20120 * doc/extend.texi (Function Attributes): Typo.
20121
20122 2014-02-03 Cong Hou <congh@google.com>
20123
20124 PR tree-optimization/60000
20125 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
20126 if the vectorized statement is a store. A store statement can only
20127 appear at the end of pattern statements.
20128
20129 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
20130
20131 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
20132 (ix86_option_override_internal): Default long double to 64-bit for
20133 32-bit Bionic and to 128-bit for 64-bit Bionic.
20134
20135 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
20136 TARGET_LONG_DOUBLE_128 is true.
20137 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
20138
20139 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
20140 (mlong-double-64): Negate -mlong-double-128.
20141 (mlong-double-128): New option.
20142
20143 * config/i386/i386-c.c (ix86_target_macros): Define
20144 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
20145
20146 * doc/invoke.texi: Document -mlong-double-128.
20147
20148 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
20149
20150 PR rtl-optimization/60024
20151 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
20152
20153 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
20154
20155 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
20156
20157 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
20158
20159 PR rtl-optimization/57662
20160 * sel-sched.c (code_motion_path_driver): Do not mark already not
20161 existing blocks in the visiting bitmap.
20162
20163 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
20164
20165 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
20166 on the insn being emitted.
20167
20168 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
20169 Will Deacon <will.deacon@arm.com>
20170
20171 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
20172
20173 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20174
20175 * config/arm/arm-tables.opt: Regenerate.
20176
20177 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20178
20179 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
20180 for vector types other than V16QImode.
20181 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
20182 define_expand, and call altivec_expand_vec_perm_le when producing
20183 code with little endian element order.
20184 (*altivec_vperm_<mode>_internal): New insn having previous
20185 behavior of altivec_vperm_<mode>.
20186 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
20187 altivec_expand_vec_perm_le when producing code with little endian
20188 element order.
20189 (*altivec_vperm_<mode>_uns_internal): New insn having previous
20190 behavior of altivec_vperm_<mode>_uns.
20191
20192 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20193
20194 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
20195 (altivec_vsumsws): Add handling for -maltivec=be with a little
20196 endian target.
20197 (altivec_vsumsws_direct): New.
20198 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
20199 gen_altivec_vsumsws.
20200
20201 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
20202
20203 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
20204 vtable_pointer_value_to_binfo): New functions.
20205 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
20206 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
20207
20208 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
20209
20210 * config/nios2/nios2.md (load_got_register): Initialize GOT
20211 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
20212 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
20213
20214 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
20215
20216 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
20217 preserverd by passthrough, do not propagate the type.
20218
20219 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
20220
20221 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
20222 (mips_atomic_assign_expand_fenv): New function.
20223 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
20224
20225 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
20226
20227 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
20228 (__builtin_mips_set_fcsr): Likewise.
20229 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
20230 MIPS_USI_FTYPE_VOID.
20231 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
20232 (mips16_expand_set_fcsr): Likewise.
20233 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
20234 (mips16_set_fcsr_stub): Likewise.
20235 (mips16_get_fcsr_one_only_stub): New class.
20236 (mips16_set_fcsr_one_only_stub): Likewise.
20237 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
20238 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
20239 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
20240 (hard_float): New availability predicate.
20241 (mips_builtins): Add get_fcsr and set_fcsr.
20242 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
20243 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
20244 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
20245 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
20246 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
20247 patterns.
20248
20249 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
20250
20251 * config/mips/mips.c (mips_one_only_stub): New class.
20252 (mips_need_mips16_rdhwr_p): Replace with...
20253 (mips16_rdhwr_stub): ...this new variable.
20254 (mips16_stub_call_address): New function.
20255 (mips16_rdhwr_one_only_stub): New class.
20256 (mips_expand_thread_pointer): Use mips16_stub_call_address.
20257 (mips_output_mips16_rdhwr): Delete.
20258 (mips_finish_stub): New function.
20259 (mips_code_end): Use it to handle rdhwr stubs.
20260
20261 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
20262
20263 PR target/60017
20264 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
20265 when calculating size of integer atomic types.
20266
20267 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
20268
20269 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
20270
20271 2014-02-01 Jakub Jelinek <jakub@redhat.com>
20272
20273 PR tree-optimization/60003
20274 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
20275 * profile.c (branch_prob): Use gimple_call_builtin_p
20276 to check for BUILT_IN_SETJMP_RECEIVER.
20277 * tree-inline.c (copy_bb): Call notice_special_calls.
20278
20279 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
20280
20281 PR bootstrap/59985
20282 * lra-constraints.c (process_alt_operands): Update reload_sum only
20283 on the first pass.
20284
20285 2014-01-31 Richard Henderson <rth@redhat.com>
20286
20287 PR middle-end/60004
20288 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
20289 until after else_eh is processed.
20290
20291 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
20292
20293 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
20294 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
20295 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
20296 in smmintrin.h, remove them.
20297 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
20298 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
20299 * config/i386/i386.md (ROUND_SAE): Fix value.
20300 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
20301 (const48_operand): New.
20302 * config/i386/subst.md (round), (round_expand): Use
20303 const_4_or_8_to_11_operand.
20304 (round_saeonly), (round_saeonly_expand): Use const48_operand.
20305
20306 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
20307
20308 * config/i386/constraints.md (Yk): Swap meaning with k.
20309 * config/i386/i386.md (movhi_internal): Change Yk to k.
20310 (movqi_internal): Ditto.
20311 (*k<logic><mode>): Ditto.
20312 (*andhi_1): Ditto.
20313 (*andqi_1): Ditto.
20314 (kandn<mode>): Ditto.
20315 (*<code>hi_1): Ditto.
20316 (*<code>qi_1): Ditto.
20317 (kxnor<mode>): Ditto.
20318 (kortestzhi): Ditto.
20319 (kortestchi): Ditto.
20320 (kunpckhi): Ditto.
20321 (*one_cmplhi2_1): Ditto.
20322 (*one_cmplqi2_1): Ditto.
20323 * config/i386/sse.md (): Change k to Yk.
20324 (avx512f_load<mode>_mask): Ditto.
20325 (avx512f_blendm<mode>): Ditto.
20326 (avx512f_store<mode>_mask): Ditto.
20327 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
20328 (avx512f_storedqu<mode>_mask): Ditto.
20329 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
20330 Ditto.
20331 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
20332 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
20333 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
20334 (avx512f_maskcmp<mode>3): Ditto.
20335 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
20336 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
20337 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
20338 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
20339 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
20340 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
20341 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
20342 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
20343 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
20344 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
20345 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
20346 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
20347 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
20348 (vec_extract_lo_<mode>_maskm): Ditto.
20349 (vec_extract_hi_<mode>_maskm): Ditto.
20350 (avx512f_vternlog<mode>_mask): Ditto.
20351 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
20352 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
20353 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
20354 (avx512f_<code>v8div16qi2_mask): Ditto.
20355 (avx512f_<code>v8div16qi2_mask_store): Ditto.
20356 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
20357 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
20358 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
20359 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
20360 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
20361 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20362 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
20363 (*avx512pf_scatterpf<mode>df_mask): Ditto.
20364 (avx512cd_maskb_vec_dupv8di): Ditto.
20365 (avx512cd_maskw_vec_dupv16si): Ditto.
20366 (avx512f_vpermi2var<mode>3_maskz): Ditto.
20367 (avx512f_vpermi2var<mode>3_mask): Ditto.
20368 (avx512f_vpermi2var<mode>3_mask): Ditto.
20369 (avx512f_vpermt2var<mode>3_maskz): Ditto.
20370 (*avx512f_gathersi<mode>): Ditto.
20371 (*avx512f_gathersi<mode>_2): Ditto.
20372 (*avx512f_gatherdi<mode>): Ditto.
20373 (*avx512f_gatherdi<mode>_2): Ditto.
20374 (*avx512f_scattersi<mode>): Ditto.
20375 (*avx512f_scatterdi<mode>): Ditto.
20376 (avx512f_compress<mode>_mask): Ditto.
20377 (avx512f_compressstore<mode>_mask): Ditto.
20378 (avx512f_expand<mode>_mask): Ditto.
20379 * config/i386/subst.md (mask): Change k to Yk.
20380 (mask_scalar_merge): Ditto.
20381 (sd): Ditto.
20382
20383 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
20384
20385 * doc/extend.texi (Vector Extensions): Document ?: in C++.
20386
20387 2014-01-31 Richard Biener <rguenther@suse.de>
20388
20389 PR middle-end/59990
20390 * builtins.c (fold_builtin_memory_op): Make sure to not
20391 use a floating-point mode or a boolean or enumeral type for
20392 the copy operation.
20393
20394 2014-01-30 DJ Delorie <dj@redhat.com>
20395
20396 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
20397 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
20398 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
20399 whenever main() has an epilogue.
20400
20401 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20402
20403 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
20404 unused variable "field".
20405 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
20406 (vsx_mergeh_<mode>): Likewise.
20407 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
20408 (altivec_vmrghh): Likewise.
20409 (altivec_vmrghw): Likewise.
20410 (altivec_vmrglb): Likewise.
20411 (altivec_vmrglh): Likewise.
20412 (altivec_vmrglw): Likewise.
20413 (altivec_vspltb): Add missing uses.
20414 (altivec_vsplth): Likewise.
20415 (altivec_vspltw): Likewise.
20416 (altivec_vspltsf): Likewise.
20417
20418 2014-01-30 Jakub Jelinek <jakub@redhat.com>
20419
20420 PR target/59923
20421 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
20422 frame related instructions.
20423
20424 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
20425
20426 PR rtl-optimization/59959
20427 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
20428 any reload of register whose subreg is invalid.
20429
20430 2014-01-30 Jakub Jelinek <jakub@redhat.com>
20431
20432 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
20433 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
20434 Add missing return type - void.
20435
20436 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20437
20438 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
20439 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
20440 remove element index adjustment for endian (now handled in vsx.md
20441 and altivec.md).
20442 (altivec_expand_vec_perm_const): Use
20443 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
20444 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
20445 (vsx_xxspltw_<mode>): Adjust element index for little endian.
20446 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
20447 define_expand and a new define_insn *altivec_vspltb_internal;
20448 adjust for -maltivec=be on a little endian target.
20449 (altivec_vspltb_direct): New.
20450 (altivec_vsplth): Divide into a define_expand and a new
20451 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
20452 little endian target.
20453 (altivec_vsplth_direct): New.
20454 (altivec_vspltw): Divide into a define_expand and a new
20455 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
20456 little endian target.
20457 (altivec_vspltw_direct): New.
20458 (altivec_vspltsf): Divide into a define_expand and a new
20459 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
20460 a little endian target.
20461
20462 2014-01-30 Richard Biener <rguenther@suse.de>
20463
20464 PR tree-optimization/59993
20465 * tree-ssa-forwprop.c (associate_pointerplus): Check we
20466 can propagate form the earlier stmt and avoid the transform
20467 when the intermediate result is needed.
20468
20469 2014-01-30 Alangi Derick <alangiderick@gmail.com>
20470
20471 * README.Portability: Fix typo.
20472
20473 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
20474
20475 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
20476 comparison_operator with ordered_comparison_operator.
20477
20478 2014-01-30 Nick Clifton <nickc@redhat.com>
20479
20480 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
20481 Rename to mn10300_store_multiple_regs.
20482 * config/mn10300/mn10300.c: Likewise.
20483 * config/mn10300/mn10300.md (store_movm): Fix typo: call
20484 store_multiple_regs.
20485 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
20486 Call mn10300_store_multiple_regs.
20487
20488 2014-01-30 Nick Clifton <nickc@redhat.com>
20489 DJ Delorie <dj@redhat.com>
20490
20491 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
20492 %fp 2 to keep registers after it properly word-aligned.
20493 (rl78_alloc_physical_registers_umul): Handle the case where both
20494 input operands are the same.
20495
20496 2014-01-30 Richard Biener <rguenther@suse.de>
20497
20498 PR tree-optimization/59903
20499 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
20500 check properly.
20501
20502 2014-01-30 Jason Merrill <jason@redhat.com>
20503
20504 PR c++/59633
20505 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
20506
20507 PR c++/59645
20508 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
20509
20510 2014-01-30 Richard Biener <rguenther@suse.de>
20511
20512 PR tree-optimization/59951
20513 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
20514
20515 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
20516
20517 PR target/59784
20518 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
20519 SFmode to DFmode case.
20520
20521 2014-01-29 DJ Delorie <dj@redhat.com>
20522
20523 * config/msp430/msp430.opt (-minrt): New.
20524 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
20525 if -minrt given.
20526 (ENDFILE_SPEC): Likewise.
20527
20528 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
20529
20530 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
20531 (estimate_function_body_sizes): Use it.
20532
20533 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
20534
20535 PR c++/58561
20536 * dwarf2out.c (is_cxx_auto): New.
20537 (is_base_type): Use it.
20538 (gen_type_die_with_usage): Likewise.
20539
20540 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20541
20542 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
20543 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
20544 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
20545 -maltivec=be with LE targets.
20546 (vsx_mergeh_<mode>): Likewise.
20547 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
20548 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
20549 (altivec_vmrghb): Replace with define_expand and new
20550 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
20551 (altivec_vmrghb_direct): New define_insn.
20552 (altivec_vmrghh): Replace with define_expand and new
20553 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
20554 (altivec_vmrghh_direct): New define_insn.
20555 (altivec_vmrghw): Replace with define_expand and new
20556 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
20557 (altivec_vmrghw_direct): New define_insn.
20558 (*altivec_vmrghsf): Adjust for endianness.
20559 (altivec_vmrglb): Replace with define_expand and new
20560 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
20561 (altivec_vmrglb_direct): New define_insn.
20562 (altivec_vmrglh): Replace with define_expand and new
20563 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
20564 (altivec_vmrglh_direct): New define_insn.
20565 (altivec_vmrglw): Replace with define_expand and new
20566 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
20567 (altivec_vmrglw_direct): New define_insn.
20568 (*altivec_vmrglsf): Adjust for endianness.
20569 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
20570 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
20571 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
20572 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
20573 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
20574 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
20575 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
20576 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
20577
20578 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
20579
20580 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
20581 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
20582 whitespace.
20583
20584 2014-01-29 Richard Biener <rguenther@suse.de>
20585
20586 PR tree-optimization/58742
20587 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
20588 associate_pointerplus_align.
20589 (associate_pointerplus_diff): New function.
20590 (associate_pointerplus): Likewise. Call associate_pointerplus_align
20591 and associate_pointerplus_diff.
20592
20593 2014-01-29 Richard Biener <rguenther@suse.de>
20594
20595 * lto-streamer.h (LTO_major_version): Bump to 3.
20596 (LTO_minor_version): Reset to 0.
20597
20598 2014-01-29 Renlin Li <Renlin.Li@arm.com>
20599
20600 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
20601 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
20602 (arm_file_start): Generate correct asm header for armv7ve.
20603 * config/arm/bpabi.h: Add multilib support for armv7ve.
20604 * config/arm/driver-arm.c: Change the architectures of cortex-a7
20605 and cortex-a15 to armv7ve.
20606 * config/arm/t-aprofile: Add multilib support for armv7ve.
20607 * doc/invoke.texi: Document -march=armv7ve.
20608
20609 2014-01-29 Richard Biener <rguenther@suse.de>
20610
20611 PR tree-optimization/58742
20612 * tree-ssa-forwprop.c (associate_plusminus): Return true
20613 if we changed sth, defer EH cleanup to ...
20614 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
20615 (simplify_mult): New function.
20616
20617 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20618
20619 PR middle-end/59917
20620 PR tree-optimization/59920
20621 * tree.c (build_common_builtin_nodes): Remove
20622 __builtin_setjmp_dispatcher initialization.
20623 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
20624 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
20625 instead of gsi_after_labels + manually skipping debug stmts.
20626 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
20627 ignore bbs with IFN_ABNORMAL_DISPATCHER.
20628 * tree-inline.c (copy_edges_for_bb): Remove
20629 can_make_abnormal_goto argument, instead add abnormal_goto_dest
20630 argument. Ignore computed_goto_p stmts. Don't call
20631 make_abnormal_goto_edges. If a call might need abnormal edges
20632 for non-local gotos, see if it already has an edge to
20633 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
20634 with true argument, don't do anything then, otherwise add
20635 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
20636 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
20637 caller.
20638 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
20639 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
20640 (lower_stmt): Don't set data->calls_builtin_setjmp.
20641 (lower_builtin_setjmp): Adjust comment.
20642 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
20643 * tree-cfg.c (found_computed_goto): Remove.
20644 (factor_computed_gotos): Remove.
20645 (make_goto_expr_edges): Return bool, true for computed gotos.
20646 Don't call make_abnormal_goto_edges.
20647 (build_gimple_cfg): Don't set found_computed_goto, don't call
20648 factor_computed_gotos.
20649 (computed_goto_p): No longer static.
20650 (make_blocks): Don't set found_computed_goto.
20651 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
20652 (make_edges): If make_goto_expr_edges returns true, push bb
20653 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
20654 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
20655 vector. Record mapping between bbs and OpenMP regions if there
20656 are any, adjust make_gimple_omp_edges caller. Call
20657 handle_abnormal_edges.
20658 (make_abnormal_goto_edges): Remove.
20659 * tree-cfg.h (make_abnormal_goto_edges): Remove.
20660 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
20661 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
20662 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
20663 * internal-fn.def (ABNORMAL_DISPATCHER): New.
20664 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
20665 filling *region also set *region_idx to (*region)->entry->index.
20666
20667 PR other/58712
20668 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
20669 For REGs set ORIGINAL_REGNO.
20670
20671 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
20672
20673 * doc/md.texi: Mention that a target shouldn't implement
20674 vec_widen_(s|u)mul_even/odd pair if it is less efficient
20675 than hi/lo pair.
20676
20677 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20678
20679 PR tree-optimization/59594
20680 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
20681 a copy of the datarefs vector rather than the vector itself.
20682
20683 2014-01-28 Jason Merrill <jason@redhat.com>
20684
20685 PR c++/53756
20686 * dwarf2out.c (auto_die): New static.
20687 (gen_type_die_with_usage): Handle C++1y 'auto'.
20688 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
20689 on definition.
20690
20691 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
20692
20693 PR target/59672
20694 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
20695 (SPEC_X32): Likewise.
20696 (SPEC_64): Likewise.
20697 * config/i386/i386.c (ix86_option_override_internal): Turn off
20698 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
20699 for TARGET_16BIT.
20700 (x86_file_start): Output .code16gcc for TARGET_16BIT.
20701 * config/i386/i386.h (TARGET_16BIT): New macro.
20702 (TARGET_16BIT_P): Likewise.
20703 * config/i386/i386.opt: Add m16.
20704 * doc/invoke.texi: Document -m16.
20705
20706 2014-01-28 Jakub Jelinek <jakub@redhat.com>
20707
20708 PR preprocessor/59935
20709 * input.c (location_get_source_line): Bail out on when line number
20710 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
20711
20712 2014-01-28 Richard Biener <rguenther@suse.de>
20713
20714 PR tree-optimization/58742
20715 * tree-ssa-forwprop.c (associate_plusminus): Handle
20716 pointer subtraction of the form (T)(P + A) - (T)P.
20717
20718 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20719
20720 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
20721 at const_int_cost.
20722
20723 2014-01-28 Richard Biener <rguenther@suse.de>
20724
20725 Revert
20726 2014-01-28 Richard Biener <rguenther@suse.de>
20727
20728 PR rtl-optimization/45364
20729 PR rtl-optimization/59890
20730 * var-tracking.c (local_get_addr_clear_given_value): Handle
20731 already cleared slot.
20732 (val_reset): Handle not allocated local_get_addr_cache.
20733 (vt_find_locations): Use post-order on the inverted CFG.
20734
20735 2014-01-28 Richard Biener <rguenther@suse.de>
20736
20737 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
20738
20739 2014-01-28 Richard Biener <rguenther@suse.de>
20740
20741 PR rtl-optimization/45364
20742 PR rtl-optimization/59890
20743 * var-tracking.c (local_get_addr_clear_given_value): Handle
20744 already cleared slot.
20745 (val_reset): Handle not allocated local_get_addr_cache.
20746 (vt_find_locations): Use post-order on the inverted CFG.
20747
20748 2014-01-28 Alan Modra <amodra@gmail.com>
20749
20750 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
20751 * configure.ac <recursive call for build != host>: Define
20752 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
20753 and LD_FOR_BUILD too.
20754 * configure: Regenerate.
20755
20756 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
20757
20758 * config/i386/i386.c (get_builtin_code_for_version): Separate
20759 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
20760 Broadwell from Haswell.
20761
20762 2014-01-27 Steve Ellcey <sellcey@mips.com>
20763
20764 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
20765 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
20766 * config/mips/mips.c (mips_option_override): Change setting
20767 of TARGET_DSP.
20768 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
20769 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
20770 Change from Mask to Var.
20771
20772 2014-01-27 Jeff Law <law@redhat.com>
20773
20774 * ipa-inline.c (inline_small_functions): Fix typo.
20775
20776 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
20777
20778 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
20779 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
20780 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
20781 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
20782 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
20783 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
20784 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
20785 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
20786 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
20787 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
20788 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
20789 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
20790 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
20791 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
20792 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
20793 (_mm512_storeu_epi64): Ditto.
20794 (_mm512_cmpge_epi32_mask): Ditto.
20795 (_mm512_cmpge_epu32_mask): Ditto.
20796 (_mm512_cmpge_epi64_mask): Ditto.
20797 (_mm512_cmpge_epu64_mask): Ditto.
20798 (_mm512_cmple_epi32_mask): Ditto.
20799 (_mm512_cmple_epu32_mask): Ditto.
20800 (_mm512_cmple_epi64_mask): Ditto.
20801 (_mm512_cmple_epu64_mask): Ditto.
20802 (_mm512_cmplt_epi32_mask): Ditto.
20803 (_mm512_cmplt_epu32_mask): Ditto.
20804 (_mm512_cmplt_epi64_mask): Ditto.
20805 (_mm512_cmplt_epu64_mask): Ditto.
20806 (_mm512_cmpneq_epi32_mask): Ditto.
20807 (_mm512_cmpneq_epu32_mask): Ditto.
20808 (_mm512_cmpneq_epi64_mask): Ditto.
20809 (_mm512_cmpneq_epu64_mask): Ditto.
20810 (_mm512_expand_pd): Ditto.
20811 (_mm512_expand_ps): Ditto.
20812 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
20813 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
20814 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
20815 * config/i386/i386.c (ix86_builtins): Add
20816 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
20817 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
20818 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
20819 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
20820 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
20821 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
20822 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
20823 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
20824 IX86_BUILTIN_PMOVUSQW512_MEM.
20825 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
20826 __builtin_ia32_pmovsqd512mem_mask,
20827 __builtin_ia32_pmovqd512mem_mask,
20828 __builtin_ia32_pmovusqw512mem_mask,
20829 __builtin_ia32_pmovsqw512mem_mask,
20830 __builtin_ia32_pmovqw512mem_mask,
20831 __builtin_ia32_pmovusdw512mem_mask,
20832 __builtin_ia32_pmovsdw512mem_mask,
20833 __builtin_ia32_pmovdw512mem_mask,
20834 __builtin_ia32_pmovqb512mem_mask,
20835 __builtin_ia32_pmovusqb512mem_mask,
20836 __builtin_ia32_pmovsqb512mem_mask,
20837 __builtin_ia32_pmovusdb512mem_mask,
20838 __builtin_ia32_pmovsdb512mem_mask,
20839 __builtin_ia32_pmovdb512mem_mask.
20840 (bdesc_args): Add __builtin_ia32_expanddf512,
20841 __builtin_ia32_expandsf512.
20842 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
20843 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
20844 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
20845 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
20846 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
20847 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
20848 (avx512f_<code>v8div16qi2_mask_store): This.
20849 (avx512f_expand<mode>): New.
20850
20851 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
20852
20853 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
20854 New.
20855 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20856 (_mm512_prefetch_i32scatter_pd): Ditto.
20857 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20858 (_mm512_prefetch_i64scatter_pd): Ditto.
20859 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20860 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
20861 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20862 (_mm512_prefetch_i32scatter_ps): Ditto.
20863 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20864 (_mm512_prefetch_i64scatter_ps): Ditto.
20865 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20866 * config/i386/i386-builtin-types.def: Define
20867 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
20868 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
20869 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
20870 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
20871 IX86_BUILTIN_SCATTERPFQPD.
20872 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
20873 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
20874 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
20875 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
20876 __builtin_ia32_scatterpfqps.
20877 (ix86_expand_builtin): Expand new built-ins.
20878 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
20879 fix memory access data type.
20880 (*avx512pf_gatherpf<mode>_mask): Ditto.
20881 (*avx512pf_gatherpf<mode>): Ditto.
20882 (avx512pf_scatterpf<mode>): Ditto.
20883 (*avx512pf_scatterpf<mode>_mask): Ditto.
20884 (*avx512pf_scatterpf<mode>): Ditto.
20885 (GATHER_SCATTER_SF_MEM_MODE): New.
20886 (avx512pf_gatherpf<mode>df): Ditto.
20887 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20888 (*avx512pf_scatterpf<mode>df): Ditto.
20889
20890 2014-01-27 Jakub Jelinek <jakub@redhat.com>
20891
20892 PR bootstrap/59934
20893 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
20894 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
20895 reached.
20896
20897 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20898
20899 * common/config/arm/arm-common.c
20900 (arm_rewrite_mcpu): Handle multiple names.
20901 * config/arm/arm.h
20902 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20903
20904 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20905
20906 * gimple-builder.h (create_gimple_tmp): Delete.
20907
20908 2014-01-27 Christian Bruel <christian.bruel@st.com>
20909
20910 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
20911 words comparisons.
20912
20913 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
20914
20915 * config/pa/pa.md (call): Generate indirect long calls to non-local
20916 functions when outputing 32-bit code.
20917 (call_value): Likewise except for special call to buggy powf function.
20918
20919 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
20920 portable runtime and PIC indirect calls.
20921 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
20922 and PIC call sequences. Use ldo instead of blr to set return register
20923 in PIC call sequence.
20924
20925 2014-01-25 Walter Lee <walt@tilera.com>
20926
20927 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
20928 avoid clobbering a live register.
20929
20930 2014-01-25 Walter Lee <walt@tilera.com>
20931
20932 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
20933 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
20934 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
20935 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
20936
20937 2014-01-25 Walter Lee <walt@tilera.com>
20938
20939 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
20940 arguments on even registers.
20941 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
20942 STACK_BOUNDARY.
20943 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
20944 (BIGGEST_ALIGNMENT): Ditto.
20945 (BIGGEST_FIELD_ALIGNMENT): Ditto.
20946
20947 2014-01-25 Walter Lee <walt@tilera.com>
20948
20949 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
20950 insns before bundling.
20951 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
20952
20953 2014-01-25 Walter Lee <walt@tilera.com>
20954
20955 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
20956 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
20957 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
20958
20959 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20960
20961 * config/mips/constraints.md (kl): Delete.
20962 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
20963 define expands, using...
20964 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
20965 instructions for MIPS16.
20966 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
20967 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
20968
20969 2014-01-25 Walter Lee <walt@tilera.com>
20970
20971 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
20972 (clzdi2): Ditto.
20973 (ffsdi2): Ditto.
20974
20975 2014-01-25 Walter Lee <walt@tilera.com>
20976
20977 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
20978 (TARGET_EXPAND_TO_RTL_HOOK): Define.
20979
20980 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20981
20982 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
20983 Handle XOR.
20984
20985 2014-01-25 Jakub Jelinek <jakub@redhat.com>
20986
20987 * print-rtl.c (in_call_function_usage): New var.
20988 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
20989 EXPR_LIST mode as mode and not as reg note name.
20990
20991 PR middle-end/59561
20992 * cfgloopmanip.c (copy_loop_info): If
20993 loop->warned_aggressive_loop_optimizations, make sure
20994 the flag is set in target loop too.
20995
20996 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
20997
20998 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
20999 flag_cilkplus.
21000 * builtins.def: Likewise.
21001 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
21002 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
21003 * ira.c (ira_setup_eliminable_regset): Likewise.
21004 * omp-low.c (gate_expand_omp): Likewise.
21005 (execute_lower_omp): Likewise.
21006 (diagnose_sb_0): Likewise.
21007 (gate_diagnose_omp_blocks): Likewise.
21008 (simd_clone_clauses_extract): Likewise.
21009 (gate): Likewise.
21010
21011 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21012
21013 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
21014 correction for little endian...
21015 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
21016 here.
21017
21018 2014-01-24 Jeff Law <law@redhat.com>
21019
21020 PR tree-optimization/59919
21021 * tree-vrp.c (find_assert_locations_1): Do not register asserts
21022 for non-returning calls.
21023
21024 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
21025
21026 * common/config/aarch64/aarch64-common.c
21027 (aarch64_rewrite_mcpu): Handle multiple names.
21028 * config/aarch64/aarch64.h
21029 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
21030
21031 2014-01-24 Dodji Seketeli <dodji@redhat.com>
21032
21033 * input.c (add_file_to_cache_tab): Handle the case where fopen
21034 returns NULL.
21035
21036 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
21037
21038 PR target/59929
21039 * config/i386/i386.md (pushsf splitter): Get stack adjustment
21040 from push operand if code of push isn't PRE_DEC.
21041
21042 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21043
21044 PR target/59909
21045 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
21046 -mquad-memory-atomic. Update -mquad-memory documentation to say
21047 it is only used for non-atomic loads/stores.
21048
21049 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
21050 -mquad-memory or -mquad-memory-atomic switches.
21051
21052 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
21053 -mquad-memory-atomic to ISA 2.07 support.
21054
21055 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
21056 to separate support of normal quad word memory operations (ldq, stq)
21057 from the atomic quad word memory operations.
21058
21059 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
21060 support to separate non-atomic quad word operations from atomic
21061 quad word operations. Disable non-atomic quad word operations in
21062 little endian mode so that we don't have to swap words after the
21063 load and before the store.
21064 (quad_load_store_p): Add comment about atomic quad word support.
21065 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
21066 options printed with -mdebug=reg.
21067
21068 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
21069 -mquad-memory-atomic as the test for whether we have quad word
21070 atomic instructions.
21071 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
21072 or -mp8-vector are used, allow byte/half-word atomic operations.
21073
21074 * config/rs6000/sync.md (load_lockedti): Insure that the address
21075 is a proper indexed or indirect address for the lqarx instruction.
21076 On little endian systems, swap the hi/lo registers after the lqarx
21077 instruction.
21078 (load_lockedpti): Use indexed_or_indirect_operand predicate to
21079 insure the address is valid for the lqarx instruction.
21080 (store_conditionalti): Insure that the address is a proper indexed
21081 or indirect address for the stqcrx. instruction. On little endian
21082 systems, swap the hi/lo registers before doing the stqcrx.
21083 instruction.
21084 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
21085 insure the address is valid for the stqcrx. instruction.
21086
21087 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
21088 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
21089 type of quad memory support is available.
21090
21091 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
21092
21093 PR regression/59915
21094 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
21095 there is a danger of looping.
21096
21097 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
21098
21099 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
21100 force flag_ira_loop_pressure if set via command line.
21101
21102 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
21103
21104 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
21105 (ashr_simd): New builtin handling DI mode.
21106 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
21107 (aarch64_sshr_simddi): New match pattern.
21108 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
21109 (vshrd_n_s64): Likewise.
21110 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
21111
21112 2014-01-23 Nick Clifton <nickc@redhat.com>
21113
21114 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
21115 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
21116 favour of mcu specific scripts.
21117 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
21118 430x multilibs.
21119
21120 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
21121 Alex Velenko <Alex.Velenko@arm.com>
21122
21123 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
21124 (vaddv_s16): Likewise.
21125 (vaddv_s32): Likewise.
21126 (vaddv_u8): Likewise.
21127 (vaddv_u16): Likewise.
21128 (vaddv_u32): Likewise.
21129 (vaddvq_s8): Likewise.
21130 (vaddvq_s16): Likewise.
21131 (vaddvq_s32): Likewise.
21132 (vaddvq_s64): Likewise.
21133 (vaddvq_u8): Likewise.
21134 (vaddvq_u16): Likewise.
21135 (vaddvq_u32): Likewise.
21136 (vaddvq_u64): Likewise.
21137 (vaddv_f32): Likewise.
21138 (vaddvq_f32): Likewise.
21139 (vaddvq_f64): Likewise.
21140 (vmaxv_f32): Likewise.
21141 (vmaxv_s8): Likewise.
21142 (vmaxv_s16): Likewise.
21143 (vmaxv_s32): Likewise.
21144 (vmaxv_u8): Likewise.
21145 (vmaxv_u16): Likewise.
21146 (vmaxv_u32): Likewise.
21147 (vmaxvq_f32): Likewise.
21148 (vmaxvq_f64): Likewise.
21149 (vmaxvq_s8): Likewise.
21150 (vmaxvq_s16): Likewise.
21151 (vmaxvq_s32): Likewise.
21152 (vmaxvq_u8): Likewise.
21153 (vmaxvq_u16): Likewise.
21154 (vmaxvq_u32): Likewise.
21155 (vmaxnmv_f32): Likewise.
21156 (vmaxnmvq_f32): Likewise.
21157 (vmaxnmvq_f64): Likewise.
21158 (vminv_f32): Likewise.
21159 (vminv_s8): Likewise.
21160 (vminv_s16): Likewise.
21161 (vminv_s32): Likewise.
21162 (vminv_u8): Likewise.
21163 (vminv_u16): Likewise.
21164 (vminv_u32): Likewise.
21165 (vminvq_f32): Likewise.
21166 (vminvq_f64): Likewise.
21167 (vminvq_s8): Likewise.
21168 (vminvq_s16): Likewise.
21169 (vminvq_s32): Likewise.
21170 (vminvq_u8): Likewise.
21171 (vminvq_u16): Likewise.
21172 (vminvq_u32): Likewise.
21173 (vminnmv_f32): Likewise.
21174 (vminnmvq_f32): Likewise.
21175 (vminnmvq_f64): Likewise.
21176
21177 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
21178
21179 * config/aarch64/aarch64-simd.md
21180 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
21181 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
21182 (*aarch64_mul3_elt<mode>): Likewise.
21183 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
21184 (*aarch64_mul3_elt_to_64v2df): Likewise.
21185 (*aarch64_mla_elt<mode>): Likewise.
21186 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
21187 (*aarch64_mls_elt<mode>): Likewise.
21188 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
21189 (*aarch64_fma4_elt<mode>): Likewise.
21190 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
21191 (*aarch64_fma4_elt_to_64v2df): Likewise.
21192 (*aarch64_fnma4_elt<mode>): Likewise.
21193 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
21194 (*aarch64_fnma4_elt_to_64v2df): Likewise.
21195 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
21196 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
21197 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
21198 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
21199 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
21200 (aarch64_sqdmull_lane<mode>_internal): Likewise.
21201 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
21202
21203 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
21204
21205 * config/aarch64/aarch64-simd.md
21206 (aarch64_be_checked_get_lane<mode>): New define_expand.
21207 * config/aarch64/aarch64-simd-builtins.def
21208 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
21209 New builtin definition.
21210 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
21211 Use new safe be builtin.
21212
21213 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
21214
21215 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
21216 New define_insn.
21217 (aarch64_be_st1<mode>): Likewise.
21218 (aarch_ld1<VALL:mode>): Define_expand modified.
21219 (aarch_st1<VALL:mode>): Likewise.
21220 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
21221 (UNSPEC_ST1): Likewise.
21222
21223 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
21224
21225 * config/microblaze/microblaze.md: Add trap insn and attribute
21226
21227 2014-01-23 Dodji Seketeli <dodji@redhat.com>
21228
21229 PR preprocessor/58580
21230 * input.h (location_get_source_line): Take an additional line_size
21231 parameter.
21232 (void diagnostics_file_cache_fini): Declare new function.
21233 * input.c (struct fcache): New type.
21234 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
21235 New static constants.
21236 (diagnostic_file_cache_init, total_lines_num)
21237 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
21238 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
21239 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
21240 (get_next_line, read_next_line, goto_next_line, read_line_num):
21241 New static function definitions.
21242 (diagnostic_file_cache_fini): New function.
21243 (location_get_source_line): Take an additional output line_len
21244 parameter. Re-write using lookup_or_add_file_to_cache_tab and
21245 read_line_num.
21246 * diagnostic.c (diagnostic_finish): Call
21247 diagnostic_file_cache_fini.
21248 (adjust_line): Take an additional input parameter for the length
21249 of the line, rather than calculating it with strlen.
21250 (diagnostic_show_locus): Adjust the use of
21251 location_get_source_line and adjust_line with respect to their new
21252 signature. While displaying a line now, do not stop at the first
21253 null byte. Rather, display the zero byte as a space and keep
21254 going until we reach the size of the line.
21255 * Makefile.in: Add vec.o to OBJS-libcommon
21256
21257 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
21258 Ilya Tocar <ilya.tocar@intel.com>
21259
21260 * config/i386/avx512fintrin.h (_mm512_kmov): New.
21261 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
21262 (__builtin_ia32_kmov16): Ditto.
21263 * config/i386/i386.md (UNSPEC_KMOV): New.
21264 (kmovw): Ditto.
21265
21266 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
21267
21268 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
21269 (_mm512_storeu_si512): Ditto.
21270
21271 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
21272
21273 PR target/52125
21274 * rtl.h (get_referenced_operands): Declare.
21275 * recog.c (get_referenced_operands): New function.
21276 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
21277 operands have been referenced when recording LO_SUM references.
21278
21279 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
21280
21281 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
21282
21283 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
21284
21285 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
21286 Enable for generic and recent AMD targets.
21287
21288 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
21289
21290 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
21291 ARG_SIZE note when adjustment was eliminated.
21292
21293 2014-01-22 Jeff Law <law@redhat.com>
21294
21295 PR tree-optimization/59597
21296 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
21297 in file. Accept new argument REGISTERING and use it to modify
21298 dump output appropriately.
21299 (register_jump_thread): Corresponding changes.
21300 (mark_threaded_blocks): Reinstate code to cancel unprofitable
21301 thread paths involving joiner blocks. Add code to dump cancelled
21302 jump threading paths.
21303
21304 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
21305
21306 PR rtl-optimization/59477
21307 * lra-constraints.c (inherit_in_ebb): Process call for living hard
21308 regs. Update reloads_num and potential_reload_hard_regs for all insns.
21309
21310 2014-01-22 Tom Tromey <tromey@redhat.com>
21311
21312 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
21313 PARAMS.
21314 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
21315
21316 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
21317
21318 PR rtl-optimization/59896
21319 * lra-constraints.c (process_alt_operands): Check unused note for
21320 matched operands of insn with no output reloads.
21321
21322 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
21323
21324 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
21325 (mips_move_from_gpr_cost): Likewise.
21326
21327 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
21328
21329 PR rtl-optimization/59858
21330 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
21331 ira_class_hard_regs_num.
21332 (process_alt_operands): Increase reject for dying matched operand.
21333
21334 2014-01-21 Jakub Jelinek <jakub@redhat.com>
21335
21336 PR target/59003
21337 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
21338 smaller than size, perform several stores or loads and stores
21339 at dst + count - size to store or copy all of size bytes, rather
21340 than just last modesize bytes.
21341
21342 2014-01-20 DJ Delorie <dj@redhat.com>
21343
21344 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
21345 that CLOBBERs are REGs before propogating their values.
21346
21347 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
21348
21349 PR middle-end/59789
21350 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
21351 (cgraph_inline_failed_type): New function.
21352 * cgraph.h (DEFCIFCODE): Add type.
21353 (cgraph_inline_failed_type_t): New enum.
21354 (cgraph_inline_failed_type): New prototype.
21355 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
21356 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
21357 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
21358 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
21359 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
21360 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
21361 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
21362 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
21363 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
21364 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
21365 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
21366 OPTIMIZATION_MISMATCH.
21367 * tree-inline.c (expand_call_inline): Emit errors during
21368 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
21369
21370 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
21371
21372 PR target/59685
21373 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
21374 mode attribute in insn output.
21375
21376 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
21377
21378 * output.h (output_constant): Delete.
21379 * varasm.c (output_constant): Make private.
21380
21381 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
21382
21383 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
21384
21385 2014-01-20 Jakub Jelinek <jakub@redhat.com>
21386
21387 PR middle-end/59860
21388 * tree.h (fold_builtin_strcat): New prototype.
21389 * builtins.c (fold_builtin_strcat): No longer static. Add len
21390 argument, if non-NULL, don't call c_strlen. Optimize
21391 directly into __builtin_memcpy instead of __builtin_strcpy.
21392 (fold_builtin_2): Adjust fold_builtin_strcat caller.
21393 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
21394
21395 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
21396
21397 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
21398 for SImode_address_operand operands, having only a REG argument.
21399
21400 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
21401
21402 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
21403 loader name using mbig-endian.
21404 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
21405
21406 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
21407
21408 * doc/invoke.texi (-march): Clarify documentation for AArch64.
21409 (-mtune): Likewise.
21410 (-mcpu): Likewise.
21411
21412 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
21413
21414 * config/aarch64/aarch64-protos.h
21415 (aarch64_cannot_change_mode_class_ptr): Declare.
21416 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
21417 aarch64_cannot_change_mode_class_ptr): New.
21418 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
21419 backend hook aarch64_cannot_change_mode_class.
21420
21421 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
21422
21423 * common/config/aarch64/aarch64-common.c
21424 (aarch64_handle_option): Don't handle any option order logic here.
21425 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
21426 selected_cpu, warn on architecture version mismatch.
21427 (aarch64_override_options): Fix parsing order for option strings.
21428
21429 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21430 Iain Sandoe <iain@codesourcery.com>
21431
21432 PR bootstrap/59496
21433 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
21434 warning. Amend comment to reflect current functionality.
21435
21436 2014-01-20 Richard Biener <rguenther@suse.de>
21437
21438 PR middle-end/59860
21439 * builtins.c (fold_builtin_strcat): Remove case better handled
21440 by tree-ssa-strlen.c.
21441
21442 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
21443
21444 * config/aarch64/aarch64.opt
21445 (mcpu, march, mtune): Make case-insensitive.
21446
21447 2014-01-20 Jakub Jelinek <jakub@redhat.com>
21448
21449 PR target/59880
21450 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
21451 if operands[1] is a REG or ZERO_EXTEND of a REG.
21452
21453 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
21454
21455 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
21456
21457 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
21458
21459 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
21460 long non-pic millicode calls.
21461
21462 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21463
21464 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
21465
21466 2014-01-19 Kito Cheng <kito@0xlab.org>
21467
21468 * builtins.c (expand_movstr): Check movstr expand done or fail.
21469
21470 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21471 H.J. Lu <hongjiu.lu@intel.com>
21472
21473 PR target/59379
21474 * config/i386/i386.md (*lea<mode>): Zero-extend return register
21475 to DImode for zero-extended addresses.
21476
21477 2014-01-19 Jakub Jelinek <jakub@redhat.com>
21478
21479 PR rtl-optimization/57763
21480 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
21481 on the new indirect jump_insn and increment LABEL_NUSES (label).
21482
21483 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
21484
21485 PR bootstrap/59580
21486 PR bootstrap/59583
21487 * config.gcc (x86_archs): New variable.
21488 (x86_64_archs): Likewise.
21489 (x86_cpus): Likewise.
21490 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
21491 --with-arch/--with-cpu= options.
21492 Support --with-arch=/--with-cpu={nehalem,westmere,
21493 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
21494
21495 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21496
21497 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
21498 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
21499
21500 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21501
21502 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
21503
21504 2014-01-18 Jakub Jelinek <jakub@redhat.com>
21505
21506 PR target/58944
21507 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
21508 clear cpp_get_options (parse_in)->warn_unused_macros for
21509 ix86_target_macros_internal with cpp_define.
21510
21511 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
21512
21513 * jump.c (delete_related_insns): Keep (use (insn))s.
21514 * reorg.c (redundant_insn): Check for barriers too.
21515
21516 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21517
21518 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
21519
21520 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
21521
21522 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
21523 call to $$dyncall when TARGET_LONG_CALLS is true.
21524
21525 2014-01-17 Jeff Law <law@redhat.com>
21526
21527 * ree.c (combine_set_extension): Temporarily disable test for
21528 changing number of hard registers.
21529
21530 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21531
21532 PR middle-end/58125
21533 * ipa-inline-analysis.c (inline_free_summary):
21534 Do not free summary of aliases.
21535
21536 2014-01-17 Jakub Jelinek <jakub@redhat.com>
21537
21538 PR middle-end/59706
21539 * gimplify.c (gimplify_expr): Use create_tmp_var
21540 instead of create_tmp_var_raw. If cond doesn't have
21541 integral type, don't add the IFN_ANNOTATE builtin at all.
21542
21543 2014-01-17 Martin Jambor <mjambor@suse.cz>
21544
21545 PR ipa/59736
21546 * ipa-cp.c (prev_edge_clone): New variable.
21547 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
21548 Also resize prev_edge_clone vector.
21549 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
21550 (ipcp_edge_removal_hook): New function.
21551 (ipcp_driver): Register ipcp_edge_removal_hook.
21552
21553 2014-01-17 Andrew Pinski <apinski@cavium.com>
21554 Steve Ellcey <sellcey@mips.com>
21555
21556 PR target/59462
21557 * config/mips/mips.c (mips_print_operand): Check operand mode instead
21558 of operator mode.
21559
21560 2014-01-17 Jeff Law <law@redhat.com>
21561
21562 PR middle-end/57904
21563 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
21564 so that pass_ccp runs first.
21565
21566 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21567
21568 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
21569 (ix86_adjust_cost): Use !TARGET_XXX.
21570 (do_reorder_for_imul): Likewise.
21571 (swap_top_of_ready_list): Likewise.
21572 (ix86_sched_reorder): Likewise.
21573
21574 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21575
21576 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21577 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
21578 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
21579 (intel_memset): New. Duplicate slm_memset.
21580 (intel_cost): New. Duplicate slm_cost.
21581 (m_INTEL): New macro.
21582 (processor_target_table): Add "intel".
21583 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
21584 with PROCESSOR_INTEL for "intel".
21585 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
21586 PROCESSOR_SILVERMONT.
21587 (ix86_issue_rate): Likewise.
21588 (ix86_adjust_cost): Likewise.
21589 (ia32_multipass_dfa_lookahead): Likewise.
21590 (swap_top_of_ready_list): Likewise.
21591 (ix86_sched_reorder): Likewise.
21592 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
21593 instead of TARGET_OPT_AGU.
21594 * config/i386/i386.h (TARGET_INTEL): New.
21595 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
21596 (processor_type): Add PROCESSOR_INTEL.
21597 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
21598 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
21599
21600 2014-01-17 Marek Polacek <polacek@redhat.com>
21601
21602 PR c/58346
21603 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
21604 size is zero.
21605
21606 2014-01-17 Richard Biener <rguenther@suse.de>
21607
21608 PR tree-optimization/46590
21609 * opts.c (default_options_table): Add entries for
21610 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
21611 all enabled at -O1 but not for -Og.
21612 * common.opt (fbranch-count-reg): Remove Init(1).
21613 (fmove-loop-invariants): Likewise.
21614 (ftree-pta): Likewise.
21615
21616 2014-01-17 Jakub Jelinek <jakub@redhat.com>
21617
21618 * config/i386/i386.c (ix86_data_alignment): For compatibility with
21619 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
21620 decls to at least the GCC 4.8 used alignments.
21621
21622 PR fortran/59440
21623 * tree-nested.c (convert_nonlocal_reference_stmt,
21624 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
21625 of GIMPLE_BIND stmts, adjust associated decls.
21626
21627 2014-01-17 Richard Biener <rguenther@suse.de>
21628
21629 PR tree-optimization/46590
21630 * vec.h (vec<>::bseach): New member function implementing
21631 binary search according to C89 bsearch.
21632 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
21633 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
21634 bitmap pointer again. Make accesses_in_loop a flat array.
21635 (mem_ref_obstack): New global.
21636 (outermost_indep_loop): Adjust for mem_ref->stored changes.
21637 (mark_ref_stored): Likewise.
21638 (ref_indep_loop_p_2): Likewise.
21639 (set_ref_stored_in_loop): New helper function.
21640 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
21641 (memref_free): Adjust.
21642 (record_mem_ref_loc): Simplify.
21643 (gather_mem_refs_stmt): Adjust.
21644 (sort_locs_in_loop_postorder_cmp): New function.
21645 (analyze_memory_references): Sort accesses_in_loop after
21646 loop postorder number.
21647 (find_ref_loc_in_loop_cmp): New function.
21648 (for_all_locs_in_loop): Find relevant cluster of locs in
21649 accesses_in_loop and iterate without recursion.
21650 (execute_sm): Avoid uninit warning.
21651 (struct ref_always_accessed): Simplify.
21652 (ref_always_accessed::operator ()): Likewise.
21653 (ref_always_accessed_p): Likewise.
21654 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
21655 loop postorder numbers here.
21656 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
21657 numbers.
21658
21659 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21660
21661 PR c++/57945
21662 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
21663 on decls for which assemble_alias has been called.
21664
21665 2014-01-17 Nick Clifton <nickc@redhat.com>
21666
21667 * config/msp430/msp430.opt: (mcpu): New option.
21668 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
21669 (msp430_option_override): Parse target_cpu. If the MCU name
21670 matches a generic string, clear target_mcu.
21671 (msp430_attr): Allow numeric interrupt values up to 63.
21672 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
21673 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
21674 option.
21675 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
21676 Add mcpu matches.
21677 * config/msp430/msp430.md (popm): Use %J rather than %I.
21678 (addsi3): Use msp430_nonimmediate_operand for operand 2.
21679 (addhi_cy_i): Use immediate_operand for operand 2.
21680 * doc/invoke.texi: Document -mcpu option.
21681
21682 2014-01-17 Richard Biener <rguenther@suse.de>
21683
21684 PR rtl-optimization/38518
21685 * df.h (df_analyze_loop): Declare.
21686 * df-core.c: Include cfgloop.h.
21687 (df_analyze_1): Split out main part of df_analyze.
21688 (df_analyze): Adjust.
21689 (loop_inverted_post_order_compute): New function.
21690 (loop_post_order_compute): Likewise.
21691 (df_analyze_loop): New function avoiding whole-function
21692 postorder computes.
21693 * loop-invariant.c (find_defs): Use df_analyze_loop.
21694 (find_invariants): Adjust.
21695 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
21696
21697 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
21698
21699 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
21700 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
21701
21702 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
21703
21704 * ipa-ref.c (ipa_remove_stmt_references): Fix references
21705 traversal when removing references.
21706
21707 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
21708
21709 PR ipa/59775
21710 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
21711
21712 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
21713
21714 PR middle-end/56791
21715 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
21716 pushing a reload for an autoinc when we had previously reloaded an
21717 inner part of the address.
21718
21719 2014-01-16 Jakub Jelinek <jakub@redhat.com>
21720
21721 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
21722 field.
21723 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
21724 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
21725 when not giving up or versioning for alias only because of
21726 loop->safelen.
21727 (vect_analyze_data_ref_dependences): Set to true.
21728 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
21729 is a GIMPLE_PHI.
21730 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
21731 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
21732 to the condition.
21733
21734 PR middle-end/58344
21735 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
21736
21737 PR target/59839
21738 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
21739 operand 0 predicate for gathers, use a new pseudo as subtarget.
21740
21741 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21742
21743 PR middle-end/59609
21744 * lra-constraints.c (process_alt_operands): Add printing debug info.
21745 Check absence of input/output reloads for matched operands too.
21746
21747 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21748
21749 PR rtl-optimization/59835
21750 * ira.c (ira_init_register_move_cost): Increase cost for
21751 impossible modes.
21752
21753 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
21754
21755 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
21756
21757 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
21758
21759 PR target/59780
21760 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
21761 non-register objects. Use gen_(high/low)part more consistently.
21762 Fix assertions.
21763
21764 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21765
21766 PR target/59844
21767 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
21768 endian support, remove tests for WORDS_BIG_ENDIAN.
21769 (p8_mfvsrd_3_<mode>): Likewise.
21770 (reload_gpr_from_vsx<mode>): Likewise.
21771 (reload_gpr_from_vsxsf): Likewise.
21772 (p8_mfvsrd_4_disf): Likewise.
21773
21774 2014-01-16 Richard Biener <rguenther@suse.de>
21775
21776 PR rtl-optimization/46590
21777 * lcm.c (compute_antinout_edge): Use postorder iteration.
21778 (compute_laterin): Use inverted postorder iteration.
21779
21780 2014-01-16 Nick Clifton <nickc@redhat.com>
21781
21782 PR middle-end/28865
21783 * varasm.c (output_constant): Return the number of bytes actually
21784 emitted.
21785 (output_constructor_array_range): Update the field size with the
21786 number of bytes emitted by output_constant.
21787 (output_constructor_regular_field): Likewise. Also do not
21788 complain if the total number of bytes emitted is now greater
21789 than the expected fieldpos.
21790 * output.h (output_constant): Update prototype and descriptive comment.
21791
21792 2014-01-16 Marek Polacek <polacek@redhat.com>
21793
21794 PR middle-end/59827
21795 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
21796 it is error_mark_node.
21797
21798 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
21799
21800 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
21801 VALID_AVX256_REG_OR_OI_MODE.
21802
21803 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
21804
21805 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
21806 current procedure should be profiled.
21807
21808 2014-01-15 Andrew Pinski <apinski@cavium.com>
21809
21810 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
21811 of moving from/to the STACK_REG register class.
21812
21813 2014-01-15 Richard Henderson <rth@redhat.com>
21814
21815 PR debug/54694
21816 * reginfo.c (global_regs_decl): Globalize.
21817 * rtl.h (global_regs_decl): Declare.
21818 * ira.c (do_reload): Diagnose frame_pointer_needed and it
21819 reserved via global_regs.
21820
21821 2014-01-15 Teresa Johnson <tejohnson@google.com>
21822
21823 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
21824
21825 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21826
21827 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
21828 and vmulosh rather than call gen_vec_widen_smult_*.
21829 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
21830 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
21831 (vec_widen_smult_even_v16qi): Likewise.
21832 (vec_widen_umult_even_v8hi): Likewise.
21833 (vec_widen_smult_even_v8hi): Likewise.
21834 (vec_widen_umult_odd_v16qi): Likewise.
21835 (vec_widen_smult_odd_v16qi): Likewise.
21836 (vec_widen_umult_odd_v8hi): Likewise.
21837 (vec_widen_smult_odd_v8hi): Likewise.
21838 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
21839 vmuloub rather than call gen_vec_widen_umult_*.
21840 (vec_widen_umult_lo_v16qi): Likewise.
21841 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
21842 vmulosb rather than call gen_vec_widen_smult_*.
21843 (vec_widen_smult_lo_v16qi): Likewise.
21844 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
21845 rather than call gen_vec_widen_umult_*.
21846 (vec_widen_umult_lo_v8hi): Likewise.
21847 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
21848 rather than call gen_vec_widen_smult_*.
21849 (vec_widen_smult_lo_v8hi): Likewise.
21850
21851 2014-01-15 Jeff Law <law@redhat.com>
21852
21853 PR tree-optimization/59747
21854 * ree.c (find_and_remove_re): Properly handle case where a second
21855 eliminated extension requires widening a copy created for elimination
21856 of a prior extension.
21857 (combine_set_extension): Ensure that the number of hard regs needed
21858 for a destination register does not change when we widen it.
21859
21860 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
21861
21862 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
21863 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
21864 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
21865 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
21866 (avr-*-rtems*): Likewise.
21867 (bfin*-rtems*): Likewise.
21868 (moxie-*-rtems*): Likewise.
21869 (h8300-*-rtems*): Likewise.
21870 (i[34567]86-*-rtems*): Likewise.
21871 (lm32-*-rtems*): Likewise.
21872 (m32r-*-rtems*): Likewise.
21873 (m68k-*-rtems*): Likewise.
21874 (microblaze*-*-rtems*): Likewise.
21875 (mips*-*-rtems*): Likewise.
21876 (powerpc-*-rtems*): Likewise.
21877 (sh-*-rtems*): Likewise.
21878 (sparc-*-rtems*): Likewise.
21879 (sparc64-*-rtems*): Likewise.
21880 (v850-*-rtems*): Likewise.
21881 (m32c-*-rtems*): Likewise.
21882
21883 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
21884
21885 PR rtl-optimization/59511
21886 * ira.c (ira_init_register_move_cost): Use memory costs for some
21887 cases of register move cost calculations.
21888 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
21889 instead of BB frequency.
21890 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
21891 * lra-assigns.c (find_hard_regno_for): Ditto.
21892
21893 2014-01-15 Richard Biener <rguenther@suse.de>
21894
21895 PR tree-optimization/59822
21896 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
21897 (vectorizable_load): Use it to hoist defs of uses of invariant
21898 loads out of the loop.
21899
21900 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21901 Kugan Vivekanandarajah <kuganv@linaro.org>
21902
21903 PR target/59695
21904 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
21905 truncation.
21906
21907 2014-01-15 Richard Biener <rguenther@suse.de>
21908
21909 PR rtl-optimization/59802
21910 * lcm.c (compute_available): Use inverted postorder to seed
21911 the initial worklist.
21912
21913 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21914
21915 PR target/59803
21916 * config/s390/s390.c (s390_preferred_reload_class): Don't return
21917 ADDR_REGS for invalid symrefs in non-PIC code.
21918
21919 2014-01-15 Jakub Jelinek <jakub@redhat.com>
21920
21921 PR other/58712
21922 * builtins.c (determine_block_size): Initialize *probable_max_size
21923 even if len_rtx is CONST_INT.
21924
21925 2014-01-14 Andrew Pinski <apinski@cavium.com>
21926
21927 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
21928 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
21929 (cortexa53_tunings): Likewise.
21930 (aarch64_sched_issue_rate): New function.
21931 (TARGET_SCHED_ISSUE_RATE): Define.
21932
21933 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21934
21935 * ira-costs.c (find_costs_and_classes): Add missed
21936 ira_init_register_move_cost_if_necessary.
21937
21938 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21939
21940 PR target/59787
21941 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
21942
21943 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
21944
21945 PR target/59794
21946 * config/i386/i386.c (type_natural_mode): Add a bool parameter
21947 to indicate if type is used for function return value. Warn ABI
21948 change if the vector mode isn't available for function return value.
21949 (ix86_function_arg_advance): Pass false to type_natural_mode.
21950 (ix86_function_arg): Likewise.
21951 (ix86_gimplify_va_arg): Likewise.
21952 (function_arg_32): Don't warn ABI change.
21953 (ix86_function_value): Pass true to type_natural_mode.
21954 (ix86_return_in_memory): Likewise.
21955 (ix86_struct_value_rtx): Removed.
21956 (TARGET_STRUCT_VALUE_RTX): Likewise.
21957
21958 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21959
21960 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
21961 converting a conditional jump into a conditional return.
21962
21963 2014-01-14 Richard Biener <rguenther@suse.de>
21964
21965 PR tree-optimization/58921
21966 PR tree-optimization/59006
21967 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
21968 hoisting invariant stmts.
21969 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
21970 invariant loads on the preheader edge if possible.
21971
21972 2014-01-14 Joey Ye <joey.ye@arm.com>
21973
21974 * doc/plugin.texi (Building GCC plugins): Update to C++.
21975
21976 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
21977
21978 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
21979 (_mm_rcp28_round_ss): Ditto.
21980 (_mm_rsqrt28_round_sd): Ditto.
21981 (_mm_rsqrt28_round_ss): Ditto.
21982 (_mm_rcp28_sd): Ditto.
21983 (_mm_rcp28_ss): Ditto.
21984 (_mm_rsqrt28_sd): Ditto.
21985 (_mm_rsqrt28_ss): Ditto.
21986 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
21987 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
21988 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
21989 (IX86_BUILTIN_RCP28SD): Ditto.
21990 (IX86_BUILTIN_RCP28SS): Ditto.
21991 (IX86_BUILTIN_RSQRT28SD): Ditto.
21992 (IX86_BUILTIN_RSQRT28SS): Ditto.
21993 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
21994 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
21995 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
21996 (ix86_expand_special_args_builtin): Expand new FTYPE.
21997 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
21998 (srcp14<mode>): Make insn unary.
21999 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
22000 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
22001 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
22002 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
22003 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
22004 Fix rounding: make it SAE only.
22005 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22006 Ditto.
22007 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22008 Ditto.
22009 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
22010 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
22011 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
22012 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
22013 (round_saeonly_mask_scalar_operand4): Ditto.
22014 (round_saeonly_mask_scalar_op3): Ditto.
22015 (round_saeonly_mask_scalar_op4): Ditto.
22016
22017 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22018
22019 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22020 Implement -maltivec=be for vec_insert and vec_extract.
22021
22022 2014-01-10 DJ Delorie <dj@redhat.com>
22023
22024 * config/msp430/msp430.md (call_internal): Don't allow memory
22025 references with SP as the base register.
22026 (call_value_internal): Likewise.
22027 * config/msp430/constraints.md (Yc): New. For memory references
22028 that don't use SP as a base register.
22029
22030 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
22031 "an integer without a # prefix"
22032 * config/msp430/msp430.md (epilogue_helper): Use it.
22033
22034 2014-01-13 Jakub Jelinek <jakub@redhat.com>
22035
22036 PR target/59617
22037 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
22038 AVX512F gather builtins.
22039 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
22040 on gather decls with INTEGER_TYPE masktype.
22041 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
22042 directly into the builtin rather than hoisting it before loop.
22043
22044 PR tree-optimization/59387
22045 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
22046 (scev_const_prop): If folded_casts and type has undefined overflow,
22047 use force_gimple_operand instead of force_gimple_operand_gsi and
22048 for each added stmt if it is assign with
22049 arith_code_with_undefined_signed_overflow, call
22050 rewrite_to_defined_overflow.
22051 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
22052 gimple-fold.h instead.
22053 (arith_code_with_undefined_signed_overflow,
22054 rewrite_to_defined_overflow): Moved to ...
22055 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
22056 rewrite_to_defined_overflow): ... here. No longer static.
22057 Include gimplify-me.h.
22058 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
22059 rewrite_to_defined_overflow): New prototypes.
22060
22061 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22062
22063 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
22064
22065 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
22066
22067 * builtins.c (get_object_alignment_2): Minor tweak.
22068 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
22069
22070 2014-01-13 Christian Bruel <christian.bruel@st.com>
22071
22072 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
22073 optimized non constant lengths.
22074
22075 2014-01-13 Jakub Jelinek <jakub@redhat.com>
22076
22077 PR libgomp/59194
22078 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
22079 load as __atomic_load_N if possible.
22080
22081 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
22082
22083 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
22084 target parameter.
22085 (rs6000_expand_builtin): Adjust call.
22086
22087 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
22088
22089 PR target/58115
22090 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
22091 * config/rs6000/rs6000.c: Include target-globals.h.
22092 (rs6000_set_current_function): Instead of doing target_reinit
22093 unconditionally, use save_target_globals_default_opts and
22094 restore_target_globals.
22095
22096 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
22097 FPSCR.
22098 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
22099 (rs6000_expand_builtin): Handle mffs and mtfsf.
22100 (rs6000_init_builtins): Define mffs and mtfsf.
22101 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
22102 (rs6000_mffs): New pattern.
22103 (rs6000_mtfsf): New pattern.
22104
22105 2014-01-11 Bin Cheng <bin.cheng@arm.com>
22106
22107 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
22108 Start narrowing with START. Apply candidate-use pair
22109 and check overall cost in narrowing.
22110 (iv_ca_prune): Pass new argument.
22111
22112 2014-01-10 Jeff Law <law@redhat.com>
22113
22114 PR middle-end/59743
22115 * ree.c (combine_reaching_defs): Ensure the defining statement
22116 occurs before the extension when optimizing extensions with
22117 different source and destination hard registers.
22118
22119 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
22120
22121 PR ipa/58585
22122 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
22123 vtables into the type inheritance graph.
22124
22125 2014-01-10 Jakub Jelinek <jakub@redhat.com>
22126
22127 PR rtl-optimization/59754
22128 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
22129 modes in the REGNO != REGNO case.
22130
22131 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22132
22133 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
22134
22135 2014-01-10 Jakub Jelinek <jakub@redhat.com>
22136
22137 PR tree-optimization/59745
22138 * tree-predcom.c (tree_predictive_commoning_loop): Call
22139 free_affine_expand_cache if giving up because components is NULL.
22140
22141 * target-globals.c (save_target_globals): Allocate < 4KB structs using
22142 GC in payload of target_globals struct instead of allocating them on
22143 the heap and the larger structs separately using GC.
22144 * target-globals.h (struct target_globals): Make regs, hard_regs,
22145 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
22146 of GTY((skip)) and change type to void *.
22147 (reset_target_globals): Cast loads from those fields to corresponding
22148 types.
22149
22150 2014-01-10 Steve Ellcey <sellcey@mips.com>
22151
22152 PR plugins/59335
22153 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
22154 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
22155 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
22156
22157 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
22158
22159 PR target/59744
22160 * aarch64-modes.def (CC_Zmode): New flags mode.
22161 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
22162 represents an equality.
22163 (aarch64_get_condition_code): Handle CC_Zmode.
22164 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
22165
22166 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22167
22168 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
22169 extraction in good case.
22170
22171 2014-01-10 Richard Biener <rguenther@suse.de>
22172
22173 PR tree-optimization/59374
22174 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
22175 checking after SLP discovery. Mark stmts not participating
22176 in any SLP instance properly.
22177
22178 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22179
22180 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
22181 when handling a SET rtx.
22182
22183 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22184
22185 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
22186 (cortex-a57): Likewise.
22187 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
22188
22189 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22190
22191 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
22192 non-iwmmxt builtins.
22193
22194 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
22195
22196 PR ipa/58252
22197 PR ipa/59226
22198 * ipa-devirt.c record_target_from_binfo): Take as argument
22199 stack of binfos and lookup matching one for virtual inheritance.
22200 (possible_polymorphic_call_targets_1): Update.
22201
22202 2014-01-10 Huacai Chen <chenhc@lemote.com>
22203
22204 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
22205 kernel strings for Loongson-2E/2F/3A.
22206
22207 2014-01-10 Jakub Jelinek <jakub@redhat.com>
22208
22209 PR middle-end/59670
22210 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
22211 is_gimple_call before calling gimple_call_internal_p.
22212
22213 2014-01-09 Steve Ellcey <sellcey@mips.com>
22214
22215 * Makefile.in (TREE_FLOW_H): Remove.
22216 (TREE_SSA_H): Add file names from tree-flow.h.
22217 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
22218 * tree.h: Remove tree-flow.h reference.
22219 * hash-table.h: Remove tree-flow.h reference.
22220 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
22221 reference with tree-ssa-loop.h.
22222
22223 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22224
22225 * doc/invoke.texi: Add -maltivec={be,le} options, and document
22226 default element-order behavior for -maltivec.
22227 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
22228 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
22229 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
22230 when targeting big endian, at least for now.
22231 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
22232
22233 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22234
22235 PR middle-end/47735
22236 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
22237 var satisfies use_register_for_decl, just take into account type
22238 alignment, rather than decl alignment.
22239
22240 PR tree-optimization/59622
22241 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
22242 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
22243 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
22244 Don't devirtualize for inplace at all. For targets.length () == 1,
22245 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
22246
22247 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
22248
22249 * config/i386/i386.md (cpu): Remove the unused btver1.
22250
22251 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
22252
22253 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
22254
22255 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22256
22257 PR target/58115
22258 * tree-core.h (struct target_globals): New forward declaration.
22259 (struct tree_target_option): Add globals field.
22260 * tree.h (TREE_TARGET_GLOBALS): Define.
22261 (prepare_target_option_nodes_for_pch): New prototype.
22262 * target-globals.h (struct target_globals): Define even if
22263 !SWITCHABLE_TARGET.
22264 * tree.c (prepare_target_option_node_for_pch,
22265 prepare_target_option_nodes_for_pch): New functions.
22266 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
22267 * config/i386/i386.c: Include target-globals.h.
22268 (ix86_set_current_function): Instead of doing target_reinit
22269 unconditionally, use save_target_globals_default_opts and
22270 restore_target_globals.
22271
22272 2014-01-09 Richard Biener <rguenther@suse.de>
22273
22274 PR tree-optimization/59715
22275 * tree-cfg.h (split_critical_edges): Declare.
22276 * tree-cfg.c (split_critical_edges): Export.
22277 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
22278
22279 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
22280
22281 * cfgexpand.c (expand_stack_vars): Optionally disable
22282 asan stack protection.
22283 (expand_used_vars): Likewise.
22284 (partition_stack_vars): Likewise.
22285 * asan.c (asan_emit_stack_protection): Optionally disable
22286 after return stack usage.
22287 (instrument_derefs): Optionally disable memory access instrumentation.
22288 (instrument_builtin_call): Likewise.
22289 (instrument_strlen_call): Likewise.
22290 (asan_protect_global): Optionally disable global variables protection.
22291 * doc/invoke.texi: Added doc for new options.
22292 * params.def: Added new options.
22293 * params.h: Likewise.
22294
22295 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22296
22297 PR rtl-optimization/59724
22298 * ifcvt.c (cond_exec_process_if_block): Don't call
22299 flow_find_head_matching_sequence with 0 longest_match.
22300 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
22301 non-active insns if !stop_after.
22302 (try_head_merge_bb): Revert 2014-01-07 changes.
22303
22304 2014-01-08 Jeff Law <law@redhat.com>
22305
22306 * ree.c (get_sub_rtx): New function, extracted from...
22307 (merge_def_and_ext): Here.
22308 (combine_reaching_defs): Use get_sub_rtx.
22309
22310 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
22311
22312 * cgraph.h (varpool_variable_node): Do not choke on null node.
22313
22314 2014-01-08 Catherine Moore <clm@codesourcery.com>
22315
22316 * config/mips/mips.md (simple_return): Attempt to use JRC
22317 for microMIPS.
22318 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
22319
22320 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
22321
22322 PR rtl-optimization/59137
22323 * reorg.c (steal_delay_list_from_target): Call update_block for
22324 elided insns.
22325 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
22326
22327 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22328
22329 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
22330 two duplicate entries.
22331
22332 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
22333
22334 Revert:
22335 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
22336
22337 * config/mips/mips.c (mips_truncated_op_cost): New function.
22338 (mips_rtx_costs): Adjust test for BADDU.
22339 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
22340
22341 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
22342
22343 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
22344 (*baddu_si): ...this new pattern.
22345
22346 2014-01-08 Jakub Jelinek <jakub@redhat.com>
22347
22348 PR ipa/59722
22349 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
22350
22351 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
22352
22353 PR middle-end/57748
22354 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
22355 inner_reference_p.
22356 (expand_expr, expand_normal): Adjust.
22357 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
22358 inner_reference_p. Use inner_reference_p to expand inner references.
22359 (store_expr): Adjust.
22360 * cfgexpand.c (expand_call_stmt): Adjust.
22361
22362 2014-01-08 Rong Xu <xur@google.com>
22363
22364 * gcov-io.c (gcov_var): Move from gcov-io.h.
22365 (gcov_position): Ditto.
22366 (gcov_is_error): Ditto.
22367 (gcov_rewrite): Ditto.
22368 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
22369 only part to libgcc/libgcov.h.
22370
22371 2014-01-08 Marek Polacek <polacek@redhat.com>
22372
22373 PR middle-end/59669
22374 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
22375
22376 2014-01-08 Marek Polacek <polacek@redhat.com>
22377
22378 PR sanitizer/59667
22379 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
22380
22381 2014-01-08 Jakub Jelinek <jakub@redhat.com>
22382
22383 PR rtl-optimization/59649
22384 * stor-layout.c (get_mode_bounds): For BImode return
22385 0 and STORE_FLAG_VALUE.
22386
22387 2014-01-08 Richard Biener <rguenther@suse.de>
22388
22389 PR middle-end/59630
22390 * gimple.h (is_gimple_builtin_call): Remove.
22391 (gimple_builtin_call_types_compatible_p): New.
22392 (gimple_call_builtin_p): New overload.
22393 * gimple.c (is_gimple_builtin_call): Remove.
22394 (validate_call): Rename to ...
22395 (gimple_builtin_call_types_compatible_p): ... this and export. Also
22396 check return types.
22397 (validate_type): New static function.
22398 (gimple_call_builtin_p): New overload and adjust.
22399 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
22400 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
22401 (gimple_fold_stmt_to_constant_1): Likewise.
22402 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
22403
22404 2014-01-08 Richard Biener <rguenther@suse.de>
22405
22406 PR middle-end/59471
22407 * gimplify.c (gimplify_expr): Gimplify register-register type
22408 VIEW_CONVERT_EXPRs to separate stmts.
22409
22410 2014-01-07 Jeff Law <law@redhat.com>
22411
22412 PR middle-end/53623
22413 * ree.c (combine_set_extension): Handle case where source
22414 and destination registers in an extension insn are different.
22415 (combine_reaching_defs): Allow source and destination registers
22416 in extension to be different under limited circumstances.
22417 (add_removable_extension): Remove restriction that the
22418 source and destination registers in the extension are the same.
22419 (find_and_remove_re): Emit a copy from the extension's
22420 destination to its source after the defining insn if
22421 the source and destination registers are different.
22422
22423 PR middle-end/59285
22424 * ifcvt.c (merge_if_block): If we are merging a block with more than
22425 one successor with a block with no successors, remove any BARRIER
22426 after the second block.
22427
22428 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
22429
22430 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
22431
22432 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
22433
22434 PR target/59652
22435 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
22436 for 14-bit register offsets when INT14_OK_STRICT is false.
22437
22438 2014-01-07 Roland Stigge <stigge@antcom.de>
22439 Michael Meissner <meissner@linux.vnet.ibm.com>
22440
22441 PR 57386/target
22442 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
22443 Only check TFmode for SPE constants. Don't check TImode or TDmode.
22444
22445 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
22446
22447 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
22448 -mcpu.
22449
22450 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
22451
22452 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
22453 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
22454 rtx is const0_rtx or not.
22455
22456 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
22457
22458 PR target/58115
22459 * target-globals.c (save_target_globals): Remove this_fn_optab
22460 handling.
22461 * toplev.c: Include optabs.h.
22462 (target_reinit): Temporarily restore the global options if another
22463 set of options are in force.
22464
22465 2014-01-07 Jakub Jelinek <jakub@redhat.com>
22466
22467 PR rtl-optimization/58668
22468 * cfgcleanup.c (flow_find_cross_jump): Don't count
22469 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
22470 to determine what is counted.
22471 (flow_find_head_matching_sequence): Use active_insn_p to determine
22472 what is counted.
22473 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
22474 counting change.
22475 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
22476 determine what is counted.
22477
22478 PR tree-optimization/59643
22479 * tree-predcom.c (split_data_refs_to_components): If one dr is
22480 read and one write, determine_offset fails and the write isn't
22481 in the bad component, just put the read into the bad component.
22482
22483 2014-01-07 Mike Stump <mikestump@comcast.net>
22484 Jakub Jelinek <jakub@redhat.com>
22485
22486 PR pch/59436
22487 * tree-core.h (struct tree_optimization_option): Change optabs
22488 type from unsigned char * to void *.
22489 * optabs.c (init_tree_optimization_optabs): Adjust
22490 TREE_OPTIMIZATION_OPTABS initialization.
22491
22492 2014-01-06 Jakub Jelinek <jakub@redhat.com>
22493
22494 PR target/59644
22495 * config/i386/i386.h (struct machine_function): Add
22496 no_drap_save_restore field.
22497 * config/i386/i386.c (ix86_save_reg): Use
22498 !cfun->machine->no_drap_save_restore instead of
22499 crtl->stack_realign_needed.
22500 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
22501 this function clears frame_pointer_needed. Set
22502 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
22503 and DRAP reg is needed.
22504
22505 2014-01-06 Marek Polacek <polacek@redhat.com>
22506
22507 PR c/57773
22508 * doc/implement-c.texi: Mention that other integer types are
22509 permitted as bit-field types in strictly conforming mode.
22510
22511 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
22512
22513 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
22514 is newly allocated.
22515
22516 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
22517
22518 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
22519
22520 2014-01-06 Martin Jambor <mjambor@suse.cz>
22521
22522 PR ipa/59008
22523 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
22524 to int.
22525 * ipa-prop.c (ipa_print_node_params): Fix indentation.
22526
22527 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
22528
22529 PR debug/59350
22530 PR debug/59510
22531 * var-tracking.c (add_stores): Preserve the value of the source even if
22532 we don't record the store.
22533
22534 2014-01-06 Terry Guo <terry.guo@arm.com>
22535
22536 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
22537
22538 2014-01-05 Iain Sandoe <iain@codesourcery.com>
22539
22540 PR bootstrap/59541
22541 * config/darwin.c (darwin_function_section): Adjust return values to
22542 correspond to optimisation changes made in r206070.
22543
22544 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
22545
22546 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
22547 from prefetch_block tune setting.
22548 (nocona_cost): Correct size of prefetch block to 64.
22549
22550 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
22551
22552 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
22553 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
22554 used to save the static chain register in the computation of the offset
22555 from which the FP registers need to be restored.
22556
22557 2014-01-04 Jakub Jelinek <jakub@redhat.com>
22558
22559 PR tree-optimization/59519
22560 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
22561 ICE if get_current_def (current_new_name) is already non-NULL, as long
22562 as it is a phi result of some other phi in *new_exit_bb that has
22563 the same argument.
22564
22565 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
22566 or vmovdqu* for misaligned_operand.
22567 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
22568 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
22569 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
22570 aligned_mem for AVX512F masked aligned load and store builtins and for
22571 non-temporal moves.
22572
22573 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
22574
22575 PR tree-optimization/59651
22576 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
22577 Address range for negative step should be added by TYPE_SIZE_UNIT.
22578
22579 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
22580
22581 * config/m68k/m68k.c (handle_move_double): Handle pushes with
22582 overlapping registers also for registers other than the stack pointer.
22583
22584 2014-01-03 Marek Polacek <polacek@redhat.com>
22585
22586 PR other/59661
22587 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
22588 __builtin_FILE.
22589
22590 2014-01-03 Jakub Jelinek <jakub@redhat.com>
22591
22592 PR target/59625
22593 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
22594 asm goto as jump.
22595
22596 * config/i386/i386.md (MODE_SIZE): New mode attribute.
22597 (push splitter): Use <P:MODE_SIZE> instead of
22598 GET_MODE_SIZE (<P:MODE>mode).
22599 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
22600 (mov -1, reg peephole2): Likewise.
22601 * config/i386/sse.md (*mov<mode>_internal,
22602 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
22603 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
22604 *<code><mode>3, *andnot<mode>3<mask_name>,
22605 <mask_codefor><code><mode>3<mask_name>): Likewise.
22606 * config/i386/subst.md (mask_mode512bit_condition,
22607 sd_mask_mode512bit_condition): Likewise.
22608
22609 2014-01-02 Xinliang David Li <davidxl@google.com>
22610
22611 PR tree-optimization/59303
22612 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
22613 (dump_predicates): Better output format.
22614 (pred_equal_p): New function.
22615 (is_neq_relop_p): Ditto.
22616 (is_neq_zero_form_p): Ditto.
22617 (pred_expr_equal_p): Ditto.
22618 (pred_neg_p): Ditto.
22619 (simplify_pred): Ditto.
22620 (simplify_preds_2): Ditto.
22621 (simplify_preds_3): Ditto.
22622 (simplify_preds_4): Ditto.
22623 (simplify_preds): Ditto.
22624 (push_pred): Ditto.
22625 (push_to_worklist): Ditto.
22626 (get_pred_info_from_cmp): Ditto.
22627 (is_degenerated_phi): Ditto.
22628 (normalize_one_pred_1): Ditto.
22629 (normalize_one_pred): Ditto.
22630 (normalize_one_pred_chain): Ditto.
22631 (normalize_preds): Ditto.
22632 (normalize_cond_1): Remove function.
22633 (normalize_cond): Ditto.
22634 (is_gcond_subset_of): Ditto.
22635 (is_subset_of_any): Ditto.
22636 (is_or_set_subset_of): Ditto.
22637 (is_and_set_subset_of): Ditto.
22638 (is_norm_cond_subset_of): Ditto.
22639 (pred_chain_length_cmp): Ditto.
22640 (convert_control_dep_chain_into_preds): Type change.
22641 (find_predicates): Ditto.
22642 (find_def_preds): Ditto.
22643 (destroy_predicates_vecs): Ditto.
22644 (find_matching_predicates_in_rest_chains): Ditto.
22645 (use_pred_not_overlap_with_undef_path_pred): Ditto.
22646 (is_pred_expr_subset): Ditto.
22647 (is_pred_chain_subset_of): Ditto.
22648 (is_included_in): Ditto.
22649 (is_superset_of): Ditto.
22650
22651 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22652
22653 Update copyright years.
22654
22655 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22656
22657 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
22658 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
22659 config/arc/arc.md, config/arc/arc.opt,
22660 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
22661 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
22662 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
22663 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
22664 config/linux-protos.h, config/linux.c, config/winnt-c.c,
22665 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
22666 vtable-verify.c, vtable-verify.h: Use the standard form for the
22667 copyright notice.
22668
22669 2014-01-02 Tobias Burnus <burnus@net-b.de>
22670
22671 * gcc.c (process_command): Update copyright notice dates.
22672 * gcov-dump.c: Ditto.
22673 * gcov.c: Ditto.
22674 * doc/cpp.texi: Bump @copying's copyright year.
22675 * doc/cppinternals.texi: Ditto.
22676 * doc/gcc.texi: Ditto.
22677 * doc/gccint.texi: Ditto.
22678 * doc/gcov.texi: Ditto.
22679 * doc/install.texi: Ditto.
22680 * doc/invoke.texi: Ditto.
22681
22682 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22683
22684 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
22685
22686 2014-01-01 Jakub Jelinek <jakub@redhat.com>
22687
22688 * config/i386/sse.md (*mov<mode>_internal): Guard
22689 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
22690
22691 PR rtl-optimization/59647
22692 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
22693 new_rtx into UNSIGNED_FLOAT rtxes.
22694 \f
22695 Copyright (C) 2014 Free Software Foundation, Inc.
22696
22697 Copying and distribution of this file, with or without modification,
22698 are permitted in any medium without royalty provided the copyright
22699 notice and this notice are preserved.