]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
6e6c06adcffa22f0c16daa9e2579de1f79b3e18f
[thirdparty/gcc.git] / gcc / ChangeLog
1 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2
3 * postreload-gcse.c (struct occr): Strengthen field "insn" from
4 rtx to rtx_insn *.
5 (struct unoccr): Likewise.
6 (struct modifies_mem): Likewise.
7 (alloc_mem): Likewise for local "insn".
8 (insert_expr_in_table): Likewise for param "insn".
9 (dump_expr_hash_table_entry): Likewise for local "insn".
10 (oprs_unchanged_p): Likewise for param "insn".
11 (load_killed_in_block_p): Likewise for local "setter".
12 (record_last_reg_set_info): Likewise for param "insn".
13 (record_last_reg_set_info_regno): Likewise.
14 (record_last_mem_set_info): Likewise.
15 (record_last_set_info): Likewise for local "last_set_insn".
16 (record_opr_changes): Likewise for param "insn".
17 (hash_scan_set): Likewise.
18 (compute_hash_table): Likewise for local "insn".
19 (get_avail_load_store_reg): Likewise for param "insn".
20 (eliminate_partially_redundant_load): Likewise, also for locals
21 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
22 RTX for insns.
23 (eliminate_partially_redundant_loads): Likewise for local "insn".
24
25 2014-08-22 David Malcolm <dmalcolm@redhat.com>
26
27 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
28 rtx to rtx_insn *.
29 (expand_binop): Likewise for locals "entry_last", "last", "insns"
30 (expand_twoval_unop): Likewise for locals entry_last", "last".
31 (expand_twoval_binop): Likewise.
32 (expand_twoval_binop_libfunc): Likewise for local "insns".
33 (widen_leading): Likewise for local "last".
34 (expand_doubleword_clz): Likewise for local "seq". Strengthen
35 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
36 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
37 (expand_parity): Likewise for locals "last" and "seq".
38 (expand_ffs): Likewise for local "seq". Strengthen local
39 "nonzero_label" from rtx to rtx_code_label *.
40 (expand_absneg_bit): Strengthen local "insns" from rtx to
41 rtx_insn *.
42 (expand_unop_direct): Likewise for local "last".
43 (expand_unop): Likewise for locals "last", "insns".
44 (expand_abs_nojump): Likewise for local "last".
45 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
46 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
47 rtx_insn *.
48 (expand_copysign_absneg): Strengthen local "label" from rtx to
49 rtx_code_label *.
50 (expand_copysign_bit): Strengthen local "insns" from rtx to
51 rtx_insn *.
52 (struct no_conflict_data): Likewise for fields "first", "insn".
53 (emit_libcall_block_1): Likewise for param "insns" and locals
54 "next", "last", "insn".
55 (emit_libcall_block): For now, add a checked cast to rtx_insn *
56 on "insns" when invoking emit_libcall_block_1. Ultimately we
57 want to strengthen insns itself.
58 (prepare_cmp_insn): Strengthen local "last" from rtx to
59 rtx_insn *.
60 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
61 (prepare_float_lib_cmp): Likewise for local "insns".
62 (emit_conditional_move): Likewise for local "last".
63 (emit_conditional_add): Likewise.
64 (have_sub2_insn): Likewise for local "seq".
65 (expand_float): Likewise for local "insns". Strengthen locals
66 "label", "neglabel" from rtx to rtx_code_label *.
67 (expand_fix): Likewise for locals "last", "insn", "insns" (to
68 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
69 (expand_fixed_convert): Likewise for local "insns" (to
70 rtx_insn *).
71 (expand_sfix_optab): Likewise for local "last".
72 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
73 to rtx_code_label *.
74 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
75 from rtx to rtx_insn *.
76 (expand_atomic_fetch_op): Likewise for local "insn".
77 (maybe_legitimize_operand_same_code): Likewise for local "last".
78 (maybe_legitimize_operands): Likewise.
79
80 2014-08-22 David Malcolm <dmalcolm@redhat.com>
81
82 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
83 "insn" from rtx to rtx_insn *.
84 (ps_rtl_insn): Likewise for return type.
85 (doloop_register_get): Likewise for params "head", "tail" and
86 locals "insn", "first_insn_not_to_check".
87 (schedule_reg_move): Likewise for local "this_insn".
88 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
89 of gen_move_insn for now.
90 (reset_sched_times): Strengthen local "insn" from rtx to
91 rtx_insn *.
92 (permute_partial_schedule): Likewise.
93 (duplicate_insns_of_cycles): Likewise for local "u_insn".
94 (dump_insn_location): Likewise for param "insn".
95 (loop_canon_p): Likewise for local "insn".
96 (sms_schedule): Likewise.
97 (print_partial_schedule): Likewise.
98 (ps_has_conflicts): Likewise.
99
100 2014-08-22 David Malcolm <dmalcolm@redhat.com>
101
102 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
103 "tailp" from rtx * to rtx_insn **.
104
105 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
106 from rtx to rtx_insn *.
107 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
108 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
109 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
110 rtx to rtx_insn *.
111 * modulo-sched.c (const_iteration_count): Strengthen return type
112 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
113 use of NULL_RTX with NULL when working with insns.
114 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
115 to rtx_insn *.
116 (sms_schedule): Likewise.
117 * sched-rgn.c (init_ready_list): Likewise, also for locals
118 "src_head" and "src_next_tail".
119 (compute_block_dependences): Likewise.
120 (free_block_dependencies): Likewise.
121 (debug_rgn_dependencies): Likewise.
122 (free_rgn_deps): Likewise.
123 (compute_priorities): Likewise.
124 (schedule_region): Likewise.
125 * sel-sched.c (find_ebb_boundaries): Likewise.
126
127 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
128 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
129
130 2014-08-22 David Malcolm <dmalcolm@redhat.com>
131
132 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
133 from rtx to rtx_insn *.
134 (new_seginfo): Likewise for param "insn".
135 (create_pre_exit): Likewise for locals "last_insn",
136 "before_return_copy", "return_copy".
137 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
138 "mode_set".
139
140 2014-08-22 David Malcolm <dmalcolm@redhat.com>
141
142 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
143 from rtx to rtx_insn *.
144 (lra_push_insn): Likewise for 1st param.
145 (lra_push_insn_and_update_insn_regno_info): Likewise.
146 (lra_pop_insn): Likewise for return type.
147 (lra_invalidate_insn_data): Likewise for 1st param.
148 (lra_set_insn_deleted): Likewise.
149 (lra_delete_dead_insn): Likewise.
150 (lra_process_new_insns): Likewise for first 3 params.
151 (lra_set_insn_recog_data): Likewise for 1st param.
152 (lra_update_insn_recog_data): Likewise.
153 (lra_set_used_insn_alternative): Likewise.
154 (lra_invalidate_insn_regno_info): Likewise.
155 (lra_update_insn_regno_info): Likewise.
156 (lra_former_scratch_operand_p): Likewise.
157 (lra_eliminate_regs_1): Likewise.
158 (lra_get_insn_recog_data): Likewise.
159
160 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
161 rtx to rtx_insn *.
162
163 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
164 "mv1" and "mv2".
165 (substitute_within_insn): New.
166 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
167 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
168 Replace call to "substitute" with call to substitute_within_insn.
169
170 * lra-constraints.c (curr_insn): Strengthen from rtx to
171 rtx_insn *.
172 (get_equiv_with_elimination): Likewise for param "insn".
173 (match_reload): Strengthen params "before" and "after" from rtx *
174 to rtx_insn **.
175 (emit_spill_move): Likewise for return type. Add a checked cast
176 to rtx_insn * on result of gen_move_insn for now.
177 (check_and_process_move): Likewise for local "before". Replace
178 NULL_RTX with NULL when referring to insns.
179 (process_addr_reg): Strengthen params "before" and "after" from
180 rtx * to rtx_insn **.
181 (insert_move_for_subreg): Likewise.
182 (simplify_operand_subreg): Strengthen locals "before" and "after"
183 from rtx to rtx_insn *.
184 (process_address_1): Strengthen params "before" and "after" from
185 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
186 rtx to rtx_insn *.
187 (process_address): Strengthen params "before" and "after" from
188 rtx * to rtx_insn **.
189 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
190 (curr_insn_transform): Strengthen locals "before" and "after"
191 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
192 to insns.
193 (loc_equivalence_callback): Update cast of "data", changing
194 resulting type from rtx to rtx_insn *.
195 (substitute_pseudo_within_insn): New.
196 (inherit_reload_reg): Strengthen param "insn" from rtx to
197 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
198 NULL when referring to insns. Add a checked cast to rtx_insn *
199 when using usage_insn to invoke lra_update_insn_regno_info.
200 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
201 likewise for locals "restore", "save". Add checked casts to
202 rtx_insn * when using usage_insn to invoke
203 lra_update_insn_regno_info and lra_process_new_insns. Replace
204 NULL_RTX with NULL when referring to insns.
205 (split_if_necessary): Strengthen param "insn" from rtx to
206 rtx_insn *.
207 (update_ebb_live_info): Likewise for params "head", "tail" and local
208 "prev_insn".
209 (get_last_insertion_point): Likewise for return type and local "insn".
210 (get_live_on_other_edges): Likewise for local "last".
211 (inherit_in_ebb): Likewise for params "head", "tail" and locals
212 "prev_insn", "next_insn", "restore".
213 (remove_inheritance_pseudos): Likewise for local "prev_insn".
214 (undo_optional_reloads): Likewise for local "insn".
215
216 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
217 "insn".
218 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
219 insns.
220 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
221 rtx_insn *.
222 (spill_pseudos): Likewise for local "insn".
223 (init_elimination): Likewise.
224 (process_insn_for_elimination): Likewise for param "insn".
225
226 * lra-lives.c (curr_insn): Likewise.;
227
228 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
229 (remove_pseudos): Likewise for param "insn".
230 (spill_pseudos): Likewise for local "insn".
231 (lra_final_code_change): Likewise for locals "insn", "curr".
232
233 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
234 (lra_set_insn_deleted): Likewise.
235 (lra_delete_dead_insn): Likewise, and for local "prev".
236 (new_insn_reg): Likewise for param "insn".
237 (lra_set_insn_recog_data): Likewise.
238 (lra_update_insn_recog_data): Likewise.
239 (lra_set_used_insn_alternative): Likewise.
240 (get_insn_freq): Likewise.
241 (invalidate_insn_data_regno_info): Likewise.
242 (lra_invalidate_insn_regno_info): Likewise.
243 (lra_update_insn_regno_info): Likewise.
244 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
245 vec<rtx_insn *>.
246 (lra_push_insn_1): Strengthen param "insn" from rtx to
247 rtx_insn *.
248 (lra_push_insn): Likewise.
249 (lra_push_insn_and_update_insn_regno_info): Likewise.
250 (lra_pop_insn): Likewise for return type and local "insn".
251 (push_insns): Likewise for params "from", "to", and local "insn".
252 (setup_sp_offset): Likewise for params "from", "last" and locals
253 "before", "insn".
254 (lra_process_new_insns): Likewise for params "insn", "before",
255 "after" and local "last".
256 (struct sloc): Likewise for field "insn".
257 (lra_former_scratch_operand_p): Likewise for param "insn".
258 (remove_scratches): Likewise for locals "insn", "last".
259 (check_rtl): Likewise for local "insn".
260 (add_auto_inc_notes): Likewise for param "insn".
261 (update_inc_notes): Likewise for local "insn".
262 (lra): Replace NULL_RTX with NULL when referring to insn.
263
264 2014-08-22 David Malcolm <dmalcolm@redhat.com>
265
266 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
267 to rtx_insn *.
268 (resolve_reg_notes): Likewise.
269 (resolve_simple_move): Likewise for return type, param "insn", and
270 locals "insns", "minsn".
271 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
272 (resolve_use): Likewise.
273 (resolve_debug): Likewise.
274 (find_decomposable_shift_zext): Likewise.
275 (resolve_shift_zext): Likewise for return type, param "insn", and
276 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
277 (decompose_multiword_subregs): Likewise for local "insn",
278 "orig_insn", "decomposed_shift", "end".
279
280 2014-08-22 David Malcolm <dmalcolm@redhat.com>
281
282 * basic-block.h (basic_block split_edge_and_insert): Strengthen
283 param "insns" from rtx to rtx_insn *.
284
285 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
286 rtx to rtx_insn *.
287 (struct iv_to_split): Likewise.
288 (loop_exit_at_end_p): Likewise for local "insn".
289 (split_edge_and_insert): Likewise for param "insns".
290 (compare_and_jump_seq): Likewise for return type, param "cinsn",
291 and locals "seq", "jump".
292 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
293 "branch_code"; update invocations of compare_and_jump_seq to
294 eliminate NULL_RTX in favor of NULL.
295 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
296 rtx to rtx_insn *.
297 (reset_debug_uses_in_loop): Likewise.
298 (analyze_insn_to_expand_var): Likewise for param "insn".
299 (analyze_iv_to_split_insn): Likewise.
300 (analyze_insns_in_loop): Likewise for local "insn".
301 (insert_base_initialization): Likewise for param
302 "insn" and local "seq".
303 (split_iv): Likewise for param "insn" and local "seq".
304 (expand_var_during_unrolling): Likewise for param "insn".
305 (insert_var_expansion_initialization): Likewise for local "seq".
306 (combine_var_copies_in_loop_exit): Likewise.
307 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
308 "insn".
309 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
310 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
311 "next".
312
313 2014-08-22 David Malcolm <dmalcolm@redhat.com>
314
315 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
316 rtx_insn *.
317 (iv_analyze_result): Likewise.
318 (iv_analyze_expr): Likewise.
319 (biv_p): Likewise.
320
321 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
322 local "def_insn" from rtx to rtx_insn *.
323 (get_biv_step_1): Likewise for local "insn".
324 (iv_analyze_expr): Likewise for param "insn".
325 (iv_analyze_def): Likewise for local "insn".
326 (iv_analyze_op): Likewise for param "insn".
327 (iv_analyze): Likewise.
328 (iv_analyze_result): Likewise.
329 (biv_p): Likewise.
330 (suitable_set_for_replacement): Likewise.
331 (simplify_using_initial_values): Likewise for local "insn".
332 (iv_number_of_iterations): Likewise for param "insn".
333 (check_simple_exit): Add checked cast to rtx_insn when invoking
334 iv_number_of_iterations for now (until get_condition is
335 strengthened).
336
337 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
338 "insn" from rtx to rtx_insn *.
339 (analyze_insns_in_loop): Likewise for local "insn".
340
341 2014-08-22 David Malcolm <dmalcolm@redhat.com>
342
343 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
344 to rtx_insn *.
345 (struct invariant): Likewise.
346 (hash_invariant_expr_1): Likewise for param "insn".
347 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
348 (find_exits): Likewise for local "insn".
349 (create_new_invariant): Likewise for param "insn".
350 (check_dependencies): Likewise.
351 (find_invariant_insn): Likewise.
352 (record_uses): Likewise.
353 (find_invariants_insn): Likewise.
354 (find_invariants_bb): Likewise for local "insn".
355 (get_pressure_class_and_nregs): Likewise for param "insn".
356 (calculate_loop_reg_pressure): Likewise for local "insn".
357
358 2014-08-22 David Malcolm <dmalcolm@redhat.com>
359
360 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
361 to rtx_insn *.
362 (add_test): Likewise for locals "seq", "jump".
363 (doloop_modify): Likewise for locals "sequence", "jump_insn".
364
365 2014-08-22 David Malcolm <dmalcolm@redhat.com>
366
367 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
368 rtx_insn *.
369 (rebuild_jump_labels_chain): Likewise for param "chain".
370
371 * cfgexpand.c (pass_expand::execute): Add checked cast to
372 rtx_insn * when calling rebuild_jump_labels_chain in region where
373 we know e->insns.r is non-NULL.
374
375 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
376 rtx_insn *.
377 (rebuild_jump_labels): Likewise.
378 (rebuild_jump_labels_chain): Likewise for param "chain".
379 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
380 (init_label_info): Likewise for param "f".
381 (maybe_propagate_label_ref): Likewise for params "jump_insn",
382 "prev_nonjump_insn".
383 (mark_all_labels): Likewise for param "f" and locals "insn",
384 "prev_nonjump_insn".
385
386 2014-08-22 David Malcolm <dmalcolm@redhat.com>
387
388 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
389 from rtx to rtx_insn *insn.
390 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
391 (ira_add_allocno_copy): Likewise.
392 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
393 rtx to rtx_insn *.
394 (ira_create_copy): Likewise.
395 (ira_add_allocno_copy): Likewise.
396 (create_bb_allocnos): Likewise for local "insn".
397 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
398 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
399 process_regs_for_copy for rtx_insn * param.
400 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
401 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
402 process_regs_for_copy for rtx_insn * param.
403 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
404 * ira-costs.c (record_reg_classes): Likewise for param "insn".
405 (record_operand_costs): Likewise.
406 (scan_one_insn): Likewise for return type, and for param "insn".
407 (process_bb_for_costs): Likewise for local "insn".
408 (process_bb_node_for_hard_reg_moves): Likewise.
409 * ira-emit.c (struct move): Likewise for field "insn".
410 (create_move): Eliminate use of NULL_RTX when dealing with an
411 rtx_insn *.
412 (emit_move_list): Strengthen return type and locals "result",
413 "insn" from rtx to rtx_insn *insn.
414 (emit_moves): Likewise for locals "insns", "tmp".
415 (ira_emit): Likewise for local "insn".
416 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
417 "insn".
418 (find_call_crossed_cheap_reg): Likewise.
419 (process_bb_node_lives): Likewise for local "insn".
420 * ira.c (decrease_live_ranges_number): Likewise.
421 (compute_regs_asm_clobbered): Likewise.
422 (build_insn_chain): Likewise.
423 (find_moveable_pseudos): Likewise, also locals "def_insn",
424 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
425 to rtx_insn **. Add a checked cast when assigning from
426 "closest_use" into closest_uses array in a region where we know
427 it's a non-NULL insn.
428 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
429 to rtx_insn *.
430 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
431 "last_interesting_insn", "uin".
432 (move_unallocated_pseudos): Likewise for locals "def_insn",
433 "move_insn", "newinsn".
434
435 2014-08-22 David Malcolm <dmalcolm@redhat.com>
436
437 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
438 Strengthen locals "done_label", "do_error" from rtx to
439 rtx_code_label *.
440 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
441 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
442 rtx_code_label *.
443 (ubsan_expand_si_overflow_neg_check): Likewise for locals
444 "done_label", "do_error" to rtx_code_label * and local "last" to
445 rtx_insn *.
446 (ubsan_expand_si_overflow_mul_check): Likewise for locals
447 "done_label", "do_error", "large_op0", "small_op0_large_op1",
448 "one_small_one_large", "both_ops_large", "after_hipart_neg",
449 "after_lopart_neg", "do_overflow", "hipart_different" to
450 rtx_code_label * and local "last" to rtx_insn *.
451
452 2014-08-22 David Malcolm <dmalcolm@redhat.com>
453
454 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
455 "insn" and "move_insn" from rtx to rtx_insn *.
456
457 2014-08-22 David Malcolm <dmalcolm@redhat.com>
458
459 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
460 rtx_insn *.
461 (cheap_bb_rtx_cost_p): Likewise.
462 (first_active_insn): Likewise for return type and local "insn".
463 (last_active_insn): Likewise for return type and locals "insn",
464 "head".
465 (struct noce_if_info): Likewise for fields "jump", "insn_a",
466 "insn_b".
467 (end_ifcvt_sequence): Likewise for return type and locals "insn",
468 "seq".
469 (noce_try_move): Likewise for local "seq".
470 (noce_try_store_flag): Likewise.
471 (noce_try_store_flag_constants): Likewise.
472 (noce_try_addcc): Likewise.
473 (noce_try_store_flag_mask): Likewise.
474 (noce_try_cmove): Likewise.
475 (noce_try_minmax): Likewise.
476 (noce_try_abs): Likewise.
477 (noce_try_sign_mask): Likewise.
478 (noce_try_bitop): Likewise.
479 (noce_can_store_speculate_p): Likewise for local "insn".
480 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
481 seq".
482 (check_cond_move_block): Likewise for local "insn".
483 (cond_move_convert_if_block): Likewise.
484 (cond_move_process_if_block): Likewise for locals "seq",
485 "loc_insn".
486 (noce_find_if_block): Likewise for local "jump".
487 (merge_if_block): Likewise for local "last".
488 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
489 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
490 (block_has_only_trap): Likewise for return type and local "trap".
491 (find_if_case_1): Likewise for local "jump".
492 (dead_or_predicable): Likewise for locals "head", "end", "jump",
493 "insn".
494
495 2014-08-22 David Malcolm <dmalcolm@redhat.com>
496
497 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
498 "last_insn", "loop_end" from rtx to rtx_insn *.
499
500 * hw-doloop.c (scan_loop): Likewise for local "insn".
501 (discover_loop): Likewise for param "tail_insn".
502 (discover_loops): Likewise for local "tail".
503
504 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
505 cast to rtx_insn * when assigning from an rtx local to a
506 hwloop_info's "last_insn" field.
507
508 2014-08-22 David Malcolm <dmalcolm@redhat.com>
509
510 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
511 (add_delay_dependencies): Strengthen local "pro" from rtx to
512 rtx_insn *.
513 (recompute_todo_spec): Likewise.
514 (dep_cost_1): Likewise for locals "insn", "used".
515 (schedule_insn): Likewise for local "dbg".
516 (schedule_insn): Likewise for locals "pro", "next".
517 (unschedule_insns_until): Likewise for local "con".
518 (restore_pattern): Likewise for local "next".
519 (estimate_insn_tick): Likewise for local "pro".
520 (resolve_dependencies): Likewise for local "next".
521 (fix_inter_tick): Likewise.
522 (fix_tick_ready): Likewise for local "pro".
523 (add_to_speculative_block): Likewise for locals "check", "twin",
524 "pro".
525 (sched_extend_bb): Likewise for locals "end", "insn".
526 (init_before_recovery): Likewise for local "x".
527 (sched_create_recovery_block): Likewise for local "barrier".
528 (create_check_block_twin): Likewise for local "pro".
529 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
530 "consumer".
531 (unlink_bb_notes): Update for change to type of bb_header.
532 Strengthen locals "prev", "label", "note", "next" from rtx to
533 rtx_insn *.
534 (clear_priorities): Likewise for local "pro".
535
536 2014-08-22 David Malcolm <dmalcolm@redhat.com>
537
538 * gcse.c (struct occr): Strengthen field "insn" from rtx to
539 rtx_insn *.
540 (test_insn): Likewise for this global.
541 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
542 const rtx_insn *.
543 (oprs_anticipatable_p): Likewise.
544 (oprs_available_p): Likewise.
545 (insert_expr_in_table): Strengthen param "insn" from rtx to
546 rtx_insn *.
547 (hash_scan_set): Likewise.
548 (hash_scan_clobber): Likewise.
549 (hash_scan_call): Likewise.
550 (hash_scan_insn): Likewise.
551 (compute_hash_table_work): Likewise for local "insn".
552 (process_insert_insn): Likewise for return type and local "pat".
553 (insert_insn_end_basic_block): Likewise for locals "new_insn",
554 "pat", "pat_end", "maybe_cc0_setter".
555 (pre_edge_insert): Likewise for local "insn".
556 (pre_insert_copy_insn): Likewise for param "insn".
557 (pre_insert_copies): Likewise for local "insn".
558 (struct set_data): Likewise for field "insn".
559 (single_set_gcse): Likewise for param "insn".
560 (gcse_emit_move_after): Likewise.
561 (pre_delete): Likewise for local "insn".
562 (update_bb_reg_pressure): Likewise for param "from" and local
563 "insn".
564 (should_hoist_expr_to_dom): Likewise for param "from".
565 (hoist_code): Likewise for local "insn".
566 (get_pressure_class_and_nregs): Likewise for param "insn".
567 (calculate_bb_reg_pressure): Likewise for local "insn".
568 (compute_ld_motion_mems): Likewise.
569
570 2014-08-22 David Malcolm <dmalcolm@redhat.com>
571
572 * genpeep.c (main): Rename param back from "uncast_ins1" to
573 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
574 checked cast.
575
576 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
577
578 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
579
580 PR target/62195
581 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
582 documentation to state it is only for VSX operations.
583
584 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
585 constraint only active if VSX.
586
587 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
588 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
589 (lfiwzx): Likewise.
590
591 2014-08-22 David Malcolm <dmalcolm@redhat.com>
592
593 * fwprop.c (single_def_use_dom_walker::before_dom_children):
594 Strengthen local "insn" from rtx to rtx_insn *.
595 (use_killed_between): Likewise for param "target_insn".
596 (all_uses_available_at): Likewise for param "target_insn" and
597 local "next".
598 (update_df_init): Likewise for params "def_insn", "insn".
599 (update_df): Likewise for param "insn".
600 (try_fwprop_subst): Likewise for param "def_insn" and local
601 "insn".
602 (free_load_extend): Likewise for param "insn".
603 (forward_propagate_subreg): Likewise for param "def_insn" and
604 local "use_insn".
605 (forward_propagate_asm): Likewise for param "def_insn" and local
606 "use_insn".
607 (forward_propagate_and_simplify): Likewise for param "def_insn"
608 and local "use_insn".
609 (forward_propagate_into): Likewise for locals "def_insn" and
610 "use_insn".
611
612 2014-08-22 David Malcolm <dmalcolm@redhat.com>
613
614 * function.c (emit_initial_value_sets): Strengthen local "seq"
615 from rtx to rtx_insn *.
616 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
617 local "seq".
618 (instantiate_virtual_regs): Likewise for local "insn".
619 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
620 (reorder_blocks_1): Likewise for param "insns" and local "insn".
621 (expand_function_end): Likewise for locals "insn" and "seq".
622 (epilogue_done): Likewise for local "insn".
623 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
624 "last", "trial".
625 (reposition_prologue_and_epilogue_notes): Likewise for locals
626 "insn", "last", "note", "first".
627 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
628 (pass_match_asm_constraints::execute): Likewise for local "insn".
629
630 2014-08-22 David Malcolm <dmalcolm@redhat.com>
631
632 * output.h (final_scan_insn): Strengthen return type from rtx to
633 rtx_insn *.
634 (final_forward_branch_p): Likewise for param.
635 (current_output_insn): Likewise for this global.
636
637 * final.c (rtx debug_insn): Likewise for this variable.
638 (current_output_insn): Likewise.
639 (get_attr_length_1): Rename param "insn" to "uncast_insn",
640 adding "insn" back in as an rtx_insn * with a checked cast, so
641 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
642 first param.
643 (compute_alignments): Strengthen local "label" from rtx to
644 rtx_insn *.
645 (shorten_branches): Rename param from "first" to "uncast_first",
646 introducing a new local rtx_insn * "first" using a checked cast to
647 effectively strengthen "first" from rtx to rtx_insn * without
648 affecting the type signature. Strengthen locals "insn", "seq",
649 "next", "label" from rtx to rtx_insn *.
650 (change_scope): Strengthen param "orig_insn" and local "insn" from
651 rtx to rtx_insn *.
652 (final_start_function): Rename param from "first" to "uncast_first",
653 introducing a new local rtx_insn * "first" using a checked cast to
654 effectively strengthen "first" from rtx to rtx_insn * without
655 affecting the type signature. Strengthen local "insn" from rtx to
656 rtx_insn *.
657 (dump_basic_block_info): Strengthen param "insn" from rtx to
658 rtx_insn *.
659 (final): Rename param from "first" to "uncast_first",
660 introducing a new local rtx_insn * "first" using a checked cast to
661 effectively strengthen "first" from rtx to rtx_insn * without
662 affecting the type signature. Strengthen locals "insn", "next"
663 from rtx to rtx_insn *.
664 (output_alternate_entry_point): Strengthen param "insn" from rtx to
665 rtx_insn *.
666 (call_from_call_insn): Strengthen param "insn" from rtx to
667 rtx_call_insn *.
668 (final_scan_insn): Rename param from "insn" to "uncast_insn",
669 introducing a new local rtx_insn * "insn" using a checked cast to
670 effectively strengthen "insn" from rtx to rtx_insn * without
671 affecting the type signature. Strengthen return type and locals
672 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
673 now-redundant checked cast to rtx_insn * from both invocations of
674 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
675 introducing a local "call_insn" for use when invoking
676 call_from_call_insn.
677 (notice_source_line): Strengthen param "insn" from rtx to
678 rtx_insn *.
679 (leaf_function_p): Likewise for local "insn".
680 (final_forward_branch_p): Likewise.
681 (leaf_renumber_regs): Likewise for param "first".
682 (rest_of_clean_state): Likewise for locals "insn" and "next".
683 (self_recursive_call_p): Likewise for param "insn".
684 (collect_fn_hard_reg_usage): Likewise for local "insn".
685 (get_call_fndecl): Likewise for param "insn".
686 (get_call_cgraph_rtl_info): Likewise.
687 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
688 introducing a new local rtx_insn * "insn" using a checked cast to
689 effectively strengthen "insn" from rtx to rtx_insn * without
690 affecting the type signature.
691
692 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
693 cast when assigning from param "insn" to current_output_insn.
694 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
695 so that we can assign it back to current_output_insn.
696
697 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
698
699 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
700 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
701 atmxt540s and atmxt540sreva devices.
702 * config/avr/avr-tables.opt: Regenerate.
703 * config/avr/t-multilib: Regenerate.
704 * doc/avr-mmcu.texi: Regenerate.
705
706 2014-08-22 David Malcolm <dmalcolm@redhat.com>
707
708 * expr.c (convert_move): Strengthen local "insns" from rtx to
709 rtx_insn *.
710 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
711 "top_label" from rtx to rtx_code_label *.
712 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
713 rtx_insn *.
714 (emit_single_push_insn): Likewise for locals "prev", "last".
715 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
716 to rtx_code_label *.
717 (store_constructor): Likewise for locals "loop_start", "loop_end".
718 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
719 rtx_insn *.
720 (expand_expr_real_2): Likewise.
721 (expand_expr_real_1): Strengthen local "label" from rtx to
722 rtx_code_label *.
723
724 2014-08-22 David Malcolm <dmalcolm@redhat.com>
725
726 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
727 from rtx to rtx_insn *.
728 (store_bit_field_1): Likewise.
729 (extract_bit_field_1): Likewise.
730 (expand_mult_const): Likewise for local "insns".
731 (expmed_mult_highpart): Strengthen local "label" from rtx to
732 rtx_code_label *.
733 (expand_smod_pow2): Likewise.
734 (expand_sdiv_pow2): Likewise.
735 (expand_divmod): Strengthen locals "last", "insn" from rtx to
736 rtx_insn *. Strengthen locals "label", "label1", "label2",
737 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
738 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
739 (emit_store_flag): Likewise.
740 (emit_store_flag_force): Strengthen local "label" from rtx to
741 rtx_code_label *.
742 (do_cmp_and_jump): Likewise for param "label".
743
744 2014-08-22 David Malcolm <dmalcolm@redhat.com>
745
746 * explow.c (force_reg): Strengthen local "insn" from rtx to
747 rtx_insn *.
748 (adjust_stack_1): Likewise.
749 (allocate_dynamic_stack_space): Likewise. Strengthen locals
750 "final_label", "available_label", "space_available" from rtx to
751 rtx_code_label *.
752 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
753 (anti_adjust_stack_and_probe): Likewise.
754
755 2014-08-22 David Malcolm <dmalcolm@redhat.com>
756
757 * except.h (sjlj_emit_function_exit_after): Strengthen param
758 "after" from rtx to rtx_insn *. This is only called with
759 result of get_last_insn (in function.c) so type-change should be
760 self-contained.
761
762 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
763 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
764 to rtx_insn *. These fields are only used from except.c so this
765 type-change should be self-contained to this patch.
766
767 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
768 local "last" from rtx to rtx_insn *.
769 (dw2_build_landing_pads): Likewise for local "seq".
770 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
771 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
772 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
773 rtx to rtx_insn *.
774 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
775 to rtx_insn *.
776 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
777 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
778 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
779 referring to an insn. Strengthen local "dispatch_label" from
780 rtx to rtx_code_label *.
781 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
782 rtx_insn *.
783 (expand_eh_return): Strengthen local "around_label" from
784 rtx to rtx_code_label *.
785 (convert_to_eh_region_ranges): Strengthen locals "iter",
786 "last_action_insn", "first_no_action_insn",
787 "first_no_action_insn_before_switch",
788 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
789
790 2014-08-22 David Malcolm <dmalcolm@redhat.com>
791
792 * dwarf2out.c (last_var_location_insn): Strengthen this variable
793 from rtx to rtx_insn *.
794 (cached_next_real_insn): Likewise.
795 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
796 working with insns.
797 (dwarf2out_var_location): Strengthen locals "next_real",
798 "next_note", "expected_next_loc_note", "last_start", "insn" from
799 rtx to rtx_insn *.
800
801 2014-08-22 David Malcolm <dmalcolm@redhat.com>
802
803 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
804 from rtx to rtx_insn *.
805 (create_pseudo_cfg): Likewise for local "insn".
806
807 2014-08-22 David Malcolm <dmalcolm@redhat.com>
808
809 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
810 from rtx to rtx_insn *.
811 (df_bb_regno_last_def_find): Likewise.
812
813 * df-problems.c (df_rd_bb_local_compute): Likewise.
814 (df_lr_bb_local_compute): Likewise.
815 (df_live_bb_local_compute): Likewise.
816 (df_chain_remove_problem): Likewise.
817 (df_chain_create_bb): Likewise.
818 (df_word_lr_bb_local_compute): Likewise.
819 (df_remove_dead_eq_notes): Likewise for param "insn".
820 (df_note_bb_compute): Likewise for local "insn".
821 (simulate_backwards_to_point): Likewise.
822 (df_md_bb_local_compute): Likewise.
823
824 * df-scan.c (df_scan_free_bb_info): Likewise.
825 (df_scan_start_dump): Likewise.
826 (df_scan_start_block): Likewise.
827 (df_install_ref_incremental): Likewise for local "insn".
828 (df_insn_rescan_all): Likewise.
829 (df_reorganize_refs_by_reg_by_insn): Likewise.
830 (df_reorganize_refs_by_insn_bb): Likewise.
831 (df_recompute_luids): Likewise.
832 (df_bb_refs_record): Likewise.
833 (df_update_entry_exit_and_calls): Likewise.
834 (df_bb_verify): Likewise.
835
836 2014-08-22 David Malcolm <dmalcolm@redhat.com>
837
838 * ddg.h (struct ddg_node): Strengthen fields "insn" and
839 "first_note" from rtx to rtx_insn *.
840 (get_node_of_insn): Likewise for param 2 "insn".
841 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
842
843 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
844 rtx_insn *.
845 (mem_write_insn_p): Likewise.
846 (mem_access_insn_p): Likewise.
847 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
848 (def_has_ccmode_p): Likewise for param "insn".
849 (add_cross_iteration_register_deps): Likewise for locals
850 "def_insn" and "use_insn".
851 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
852 (build_intra_loop_deps): Likewise for local "src_insn".
853 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
854 to rtx_insn *.
855 (get_node_of_insn): Likewise for param "insn".
856
857 2014-08-22 David Malcolm <dmalcolm@redhat.com>
858
859 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
860 (deletable_insn_p): Strengthen param "insn" from rtx to
861 rtx_insn *. Add checked cast to rtx_call_insn when invoking
862 find_call_stack_args, since this is guarded by CALL_P (insn).
863 (marked_insn_p): Strengthen param "insn" from rtx to
864 rtx_insn *.
865 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
866 invoking find_call_stack_args, since this is guarded by
867 CALL_P (insn).
868 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
869 rtx_insn *; we know this is an insn since this was called by
870 mark_nonreg_stores.
871 (mark_nonreg_stores_2): Likewise.
872 (mark_nonreg_stores): Strengthen param "insn" from rtx to
873 rtx_insn *.
874 (find_call_stack_args): Strengthen param "call_insn" from rtx to
875 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
876 to rtx_insn *.
877 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
878 from rtx to rtx_insn *.
879 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
880 "next", "ref_insn".
881 (delete_unmarked_insns): Likewise for locals "insn", "next".
882 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
883 (mark_reg_dependencies): Likewise for param "insn".
884 (rest_of_handle_ud_dce): Likewise for local "insn".
885 (word_dce_process_block): Likewise.
886 (dce_process_block): Likewise.
887
888 2014-08-22 David Malcolm <dmalcolm@redhat.com>
889
890 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
891 from rtx to rtx_insn *.
892 (struct change_cc_mode_args): Likewise for field "insn".
893 (this_insn): Strengthen from rtx to rtx_insn *.
894 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
895 with insn.
896 (validate_canon_reg): Strengthen param "insn" from rtx to
897 rtx_insn *.
898 (canon_reg): Likewise.
899 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
900 dealing with insn.
901 (record_jump_equiv): Strengthen param "insn" from rtx to
902 rtx_insn *.
903 (try_back_substitute_reg): Likewise, also for locals "prev",
904 "bb_head".
905 (find_sets_in_insn): Likewise for param "insn".
906 (canonicalize_insn): Likewise.
907 (cse_insn): Likewise. Add a checked cast.
908 (invalidate_from_clobbers): Likewise for param "insn".
909 (invalidate_from_sets_and_clobbers): Likewise.
910 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
911 dealing with insn.
912 (cse_prescan_path): Strengthen local "insn" from rtx to
913 rtx_insn *.
914 (cse_extended_basic_block): Likewise for locals "insn" and
915 "prev_insn".
916 (cse_main): Likewise for param "f".
917 (check_for_label_ref): Likewise for local "insn".
918 (set_live_p): Likewise for second param ("insn").
919 (insn_live_p): Likewise for first param ("insn") and for local
920 "next".
921 (cse_change_cc_mode_insn): Likewise for first param "insn".
922 (cse_change_cc_mode_insns): Likewise for first and second params
923 "start" and "end".
924 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
925 and "end".
926 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
927 "cc_src_insn".
928
929 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
930 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
931 Anna Tikhonova <anna.tikhonova@intel.com>
932 Ilya Tocar <ilya.tocar@intel.com>
933 Andrey Turetskiy <andrey.turetskiy@intel.com>
934 Ilya Verbin <ilya.verbin@intel.com>
935 Kirill Yukhin <kirill.yukhin@intel.com>
936 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
937
938 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
939 New.
940 * config/i386/sse.md
941 (define_mode_iterator VI248_AVX2): Delete.
942 (define_mode_iterator VI2_AVX2_AVX512BW): New.
943 (define_mode_iterator VI48_AVX2): Ditto.
944 (define_insn <shift_insn><mode>3): Delete.
945 (define_insn "<shift_insn><mode>3<mask_name>" with
946 VI2_AVX2_AVX512BW): New.
947 (define_insn "<shift_insn><mode>3<mask_name>" with
948 VI48_AVX2): Ditto.
949
950 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
951 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
952 Anna Tikhonova <anna.tikhonova@intel.com>
953 Ilya Tocar <ilya.tocar@intel.com>
954 Andrey Turetskiy <andrey.turetskiy@intel.com>
955 Ilya Verbin <ilya.verbin@intel.com>
956 Kirill Yukhin <kirill.yukhin@intel.com>
957 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
958
959 * config/i386/sse.md
960 (define_mode_iterator VI4F_BRCST32x2): New.
961 (define_mode_attr 64x2_mode): Ditto.
962 (define_mode_attr 32x2mode): Ditto.
963 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
964 with VI4F_BRCST32x2): Ditto.
965 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
966 with V16FI mode iterator): Ditto.
967 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
968 with V16FI): Ditto.
969 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
970 with VI8F_BRCST64x2): Ditto.
971
972 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
973 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
974 Anna Tikhonova <anna.tikhonova@intel.com>
975 Ilya Tocar <ilya.tocar@intel.com>
976 Andrey Turetskiy <andrey.turetskiy@intel.com>
977 Ilya Verbin <ilya.verbin@intel.com>
978 Kirill Yukhin <kirill.yukhin@intel.com>
979 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
980
981 * config/i386/sse.md
982 (define_mode_iterator VI8_AVX512VL): New.
983 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
984
985 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
986
987 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
988 (define_mode_iterator V48_AVX512VL): New.
989 (define_mode_iterator V12_AVX512VL): Ditto.
990 (define_insn <avx512>_load<mode>_mask): Split into two similar
991 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
992 Refactor output template.
993 (define_insn "<avx512>_store<mode>_mask"): Ditto.
994
995 2014-08-22 David Malcolm <dmalcolm@redhat.com>
996
997 * cprop.c (struct occr): Strengthen field "insn" from rtx to
998 rtx_insn *.
999 (reg_available_p): Likewise for param "insn".
1000 (insert_set_in_table): Likewise.
1001 (hash_scan_set): Likewise.
1002 (hash_scan_insn): Likewise.
1003 (make_set_regs_unavailable): Likewise.
1004 (compute_hash_table_work): Likewise for local "insn".
1005 (reg_not_set_p): Strengthen param "insn" from const_rtx to
1006 const rtx_insn *.
1007 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
1008 (try_replace_reg): Likewise.
1009 (find_avail_set): Likewise.
1010 (cprop_jump): Likewise for params "setcc", "jump".
1011 (constprop_register): Likewise for param "insn".
1012 (cprop_insn): Likewise.
1013 (do_local_cprop): Likewise.
1014 (local_cprop_pass): Likewise for local "insn".
1015 (bypass_block): Likewise for params "setcc" and "jump".
1016 (bypass_conditional_jumps): Likewise for locals "setcc" and
1017 "insn".
1018 (one_cprop_pass): Likewise for local "insn".
1019
1020 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1021
1022 * compare-elim.c (struct comparison_use): Strengthen field "insn"
1023 from rtx to rtx_insn *.
1024 (struct comparison): Likewise, also for field "prev_clobber".
1025 (conforming_compare): Likewise for param "insn".
1026 (arithmetic_flags_clobber_p): Likewise.
1027 (find_flags_uses_in_insn): Likewise.
1028 (find_comparison_dom_walker::before_dom_children): Likewise for
1029 locals "insn", "next", "last_clobber".
1030 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
1031
1032 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1033
1034 * combine-stack-adj.c (struct csa_reflist): Strengthen field
1035 "insn" from rtx to rtx_insn *.
1036 (single_set_for_csa): Likewise for param "insn".
1037 (record_one_stack_ref): Likewise.
1038 (try_apply_stack_adjustment): Likewise.
1039 (struct record_stack_refs_data): Likewise for field "insn".
1040 (maybe_move_args_size_note): Likewise for params "last" and "insn".
1041 (prev_active_insn_bb): Likewise for return type and param "insn".
1042 (next_active_insn_bb): Likewise.
1043 (force_move_args_size_note): Likewise for params "prev" and "last"
1044 and locals "test", "next_candidate", "prev_candidate".
1045 (combine_stack_adjustments_for_block): Strengthen locals
1046 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
1047 rtx_insn *.
1048
1049 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1050
1051 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
1052 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
1053 (subst_insn): Likewise for this variable.
1054 (added_links_insn): Likewise.
1055 (struct insn_link): Likewise for field "insn".
1056 (alloc_insn_link): Likewise for param "insn".
1057 (struct undobuf): Likewise for field "other_insn".
1058 (find_single_use): Likewise for param "insn" and local "next".
1059 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
1060 (delete_noop_moves): Likewise for locals "insn", "next".
1061 (create_log_links): Likewise for locals "insn", "use_insn".
1062 Strengthen local "next_use" from rtx * to rtx_insn **.
1063 (insn_a_feeds_b): Likewise for params "a", "b".
1064 (combine_instructions): Likewise for param "f" and locals "insn",
1065 "next", "prev", "first", "last_combined_insn", "link", "link1",
1066 "temp". Replace use of NULL_RTX with NULL when referring to
1067 insns.
1068 (setup_incoming_promotions): Likewise for param "first"
1069 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
1070 (can_combine_p): Likewise for params "insn", "i3", "pred",
1071 "pred2", "succ", "succ2" and for local "p".
1072 (combinable_i3pat): Likewise for param "i3".
1073 (cant_combine_insn_p): Likewise for param "insn".
1074 (likely_spilled_retval_p): Likewise.
1075 (adjust_for_new_dest): Likewise.
1076 (update_cfg_for_uncondjump): Likewise, also for local "insn".
1077 (try_combine): Likewise for return type and for params "i3", "i2",
1078 "i1", "i0", "last_combined_insn", and for locals "insn",
1079 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
1080 "i0_insn". Eliminate local "tem" in favor of new locals
1081 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
1082 checked cast for now to rtx_insn * on the return type of
1083 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
1084 insns.
1085 (find_split_point): Strengthen param "insn" from rtx to
1086 rtx_insn *.
1087 (simplify_set): Likewise for local "other_insn".
1088 (recog_for_combine): Likewise for param "insn".
1089 (record_value_for_reg): Likewise.
1090 (record_dead_and_set_regs_1): Likewise for local
1091 "record_dead_insn".
1092 (record_dead_and_set_regs): Likewise for param "insn".
1093 (record_promoted_value): Likewise.
1094 (check_promoted_subreg): Likewise.
1095 (get_last_value_validate): Likewise.
1096 (reg_dead_at_p): Likewise.
1097 (move_deaths): Likewise for param "to_insn".
1098 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
1099 and locals "place", "place2", "cc0_setter". Eliminate local "tem
1100 in favor of new locals "tem_note" and "tem_insn", the latter being
1101 an rtx_insn *.
1102 (distribute_links): Strengthen locals "place", "insn" from rtx to
1103 rtx_insn *.
1104
1105 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1106
1107 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
1108 than a const_rtx.
1109 (can_delete_label_p): Require a const rtx_code_label * rather than
1110 a const_rtx.
1111 (delete_insn): Add checked cast to rtx_code_label * when we know
1112 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
1113 rtx to rtx_insn *.
1114 (delete_insn_chain): Strengthen locals "prev" and "current" from
1115 rtx to rtx_insn *. Add a checked cast when assigning from
1116 "finish" (strengthening the params will come later). Add a
1117 checked cast to rtx_note * in region where we know
1118 NOTE_P (current).
1119 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
1120 rtx_insn *.
1121 (compute_bb_for_insn): Likewise.
1122 (free_bb_for_insn): Likewise for local "insn".
1123 (compute_bb_for_insn): Likewise.
1124 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
1125 local "insn" from rtx to rtx_insn *
1126 (flow_active_insn_p): Require a const rtx_insn * rather than a
1127 const_rtx.
1128 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
1129 rtx_insn *.
1130 (can_fallthru): Likewise for locals "insn" and "insn2".
1131 (bb_note): Likewise for local "note".
1132 (first_insn_after_basic_block_note): Likewise for local "note" and
1133 for return type.
1134 (rtl_split_block): Likewise for locals "insn" and "next".
1135 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
1136 "end".
1137 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
1138 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
1139 "prev", "tmp".
1140 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
1141 them), "kill_from", "barrier", "new_insn".
1142 (patch_jump_insn): Likewise for params "insn", "old_label".
1143 (redirect_branch_edge): Likewise for locals "old_label", "insn".
1144 (force_nonfallthru_and_redirect): Likewise for locals "insn",
1145 "old_label", "new_label".
1146 (rtl_tidy_fallthru_edge): Likewise for local "q".
1147 (rtl_split_edge): Likewise for locals "before", "last".
1148 (commit_one_edge_insertion): Likewise for locals "before",
1149 "after", "insns", "tmp", "last", adding a checked cast where
1150 currently necessary.
1151 (commit_edge_insertions): Likewise.
1152 (rtl_dump_bb): Likewise for locals "insn", "last".
1153 (print_rtl_with_bb): Likewise for local "x".
1154 (rtl_verify_bb_insns): Likewise for local "x".
1155 (rtl_verify_bb_pointers): Likewise for local "insn".
1156 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
1157 "head", "end".
1158 (rtl_verify_fallthru): Likewise for local "insn".
1159 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
1160 (purge_dead_edges): Likewise for local "insn".
1161 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
1162 (skip_insns_after_block): Likewise for return type and for locals
1163 "insn", "last_insn", "next_head", "prev".
1164 (record_effective_endpoints): Likewise for locals "next_insn",
1165 "insn", "end".
1166 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
1167 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
1168 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
1169 (duplicate_insn_chain): For now, add checked cast from rtx to
1170 rtx_insn * when returning insn.
1171 (cfg_layout_duplicate_bb): Likewise for local "insn".
1172 (cfg_layout_delete_block): Likewise for locals "insn", "next",
1173 "prev", "remaints".
1174 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
1175 (rtl_block_empty_p): Likewise.
1176 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
1177 "split_point", "last".
1178 (rtl_block_ends_with_call_p): Likewise for local "insn".
1179 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
1180 const rtx_insn *.
1181 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
1182 "split_at_insn" from rtx to rtx_insn *.
1183 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
1184 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
1185 to const rtx_insn *.
1186 (rtl_account_profile_record): Likewise.
1187
1188 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1189
1190 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
1191 rtx to rtx_insn *.
1192 (average_num_loop_insns): Likewise.
1193 (init_set_costs): Likewise for local "seq".
1194 (seq_cost): Likewise for param "seq", from const_rtx to const
1195 rtx_insn *.
1196
1197 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1198
1199 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
1200 rtx to rtx_insn *.
1201
1202 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1203
1204 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
1205 "f1" and "f2" from rtx * to rtx_insn **.
1206 (flow_find_head_matching_sequence): Likewise.
1207
1208 * cfgcleanup.c (try_simplify_condjump): Strengthen local
1209 "cbranch_insn" from rtx to rtx_insn *.
1210 (thread_jump): Likewise for local "insn".
1211 (try_forward_edges): Likewise for local "last".
1212 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
1213 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
1214 "real_b_end".
1215 (can_replace_by): Likewise for params "i1", "i2".
1216 (old_insns_match_p): Likewise.
1217 (merge_notes): Likewise.
1218 (walk_to_nondebug_insn): Likewise for param "i1".
1219 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
1220 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
1221 "afterlast1", "afterlast2" from rtx to rtx_insn *.
1222 (flow_find_head_matching_sequence): Strengthen params "f1" and
1223 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
1224 "last1", "last2", "beforelast1", "beforelast2" from rtx to
1225 rtx_insn *.
1226 (outgoing_edges_match): Likewise for locals "last1", "last2".
1227 (try_crossjump_to_edge): Likewise for local "insn".
1228 Replace call to for_each_rtx with for_each_rtx_in_insn.
1229
1230 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
1231 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
1232 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
1233 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
1234 (try_optimize_cfg): Strengthen local "last" from rtx to
1235 rtx_insn *.
1236 (delete_dead_jumptables): Likewise for locals "insn", "next",
1237 "label".
1238
1239 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
1240 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
1241 "rtx else_first_tail", to reflect the basic-block.h changes above.
1242
1243 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1244
1245 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
1246 rtx_insn *.
1247 (purge_dead_tablejump_edges): Likewise.
1248 (find_bb_boundaries): Likewise for locals "insn", "end",
1249 "flow_transfer_insn".
1250
1251 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1252
1253 * caller-save.c (save_call_clobbered_regs): Strengthen locals
1254 "ins" and "prev" from rtx to rtx_insn *.
1255
1256 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1257
1258 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
1259 rtx_insn *.
1260 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
1261 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
1262 "scan_start".
1263 (load_register_parameters): Likewise for local "before_arg".
1264 (check_sibcall_argument_overlap): Likewise for param "insn".
1265 (expand_call): Likewise for locals "normal_call_insns",
1266 "tail_call_insns", "insns", "before_call", "after_args",
1267 "before_arg", "last", "prev". Strengthen one of the "last" from
1268 rtx to rtx_call_insn *.
1269 (fixup_tail_calls): Strengthen local "insn" from rtx to
1270 rtx_insn *.
1271 (emit_library_call_value_1): Likewise for locals "before_call" and
1272 "last".
1273
1274 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1275
1276 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
1277 and "last" from rtx to rtx_insn *.
1278 (expand_builtin_nonlocal_goto): Likewise for local "insn".
1279 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
1280 rtx_call_insn *.
1281 (expand_errno_check): Strengthen local "lab" from rtx to
1282 rtx_code_label *.
1283 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
1284 rtx_insn *.
1285 (expand_builtin_mathfn_2): Likewise.
1286 (expand_builtin_mathfn_ternary): Likewise.
1287 (expand_builtin_mathfn_3): Likewise.
1288 (expand_builtin_interclass_mathfn): Likewise for local "last".
1289 (expand_builtin_int_roundingfn): Likewise for local "insns".
1290 (expand_builtin_int_roundingfn_2): Likewise.
1291 (expand_builtin_strlen): Likewise for local "before_strlen".
1292 (expand_builtin_strncmp): Likewise for local "seq".
1293 (expand_builtin_signbit): Likewise for local "last".
1294 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
1295 from rtx to rtx_code_label *.
1296 (expand_stack_restore): Strengthen local "prev" from rtx to
1297 rtx_insn *.
1298
1299 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1300
1301 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
1302 to rtx_insn *.
1303 (struct btr_def_s): Likewise.
1304 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
1305 const rtx_insn *.
1306 (add_btr_def): Likewise.
1307 (new_btr_user): Likewise.
1308 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
1309 rtx to rtx_insn *.
1310 (link_btr_uses): Likewise.
1311 (move_btr_def): Likewise for locals "insp", "old_insn",
1312 "new_insn". Add checked cast to rtx_insn * for now on result of
1313 gen_move_insn.
1314 (can_move_up): Strengthen param "insn" from const_rtx to
1315 const rtx_insn *.
1316
1317 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1318
1319 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
1320 rtx_insn *.
1321 (get_uncond_jump_length): Likewise for locals "label", "jump".
1322 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
1323 "jump", "insn".
1324 (add_labels_and_missing_jumps): Likewise for local "new_jump".
1325 (fix_up_fall_thru_edges): Likewise for local "old_jump".
1326 (find_jump_block): Likewise for local "insn".
1327 (fix_crossing_conditional_branches): Likewise for locals
1328 "old_jump", "new_jump".
1329 (fix_crossing_unconditional_branches): Likewise for locals
1330 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
1331 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
1332
1333 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1334
1335 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
1336 rtx to rtx_insn *.
1337 (struct mem_insn): Likewise for field "insn".
1338 (reg_next_use): Strengthen from rtx * to rtx_insn **.
1339 (reg_next_inc_use): Likewise.
1340 (reg_next_def): Likewise.
1341 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
1342 from rtx to rtx_insn *.
1343 (move_insn_before): Likewise for param "next_insn" and local "insns".
1344 (attempt_change): Likewise for local "mov_insn".
1345 (try_merge): Likewise for param "last_insn".
1346 (get_next_ref): Likewise for return type and local "insn".
1347 Strengthen param "next_array" from rtx * to rtx_insn **.
1348 (parse_add_or_inc): Strengthen param "insn" from rtx to
1349 rtx_insn *.
1350 (find_inc): Likewise for locals "insn" and "other_insn" (three of
1351 the latter).
1352 (merge_in_block): Likewise for locals "insn", "curr",
1353 "other_insn".
1354 (pass_inc_dec::execute): Update allocations of the arrays to
1355 reflect the stronger types.
1356
1357 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1358
1359 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
1360 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
1361 from rtx to rtx_code_label *.
1362
1363 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1364
1365 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
1366 to rtx_insn *.
1367
1368 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1369
1370 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
1371 generated a warning and prevented bootstrapping the compiler.
1372
1373 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1374
1375 * rtl.h (delete_related_insns): Strengthen return type from rtx to
1376 rtx_insn *.
1377
1378 * jump.c (delete_related_insns): Likewise, also for locals "next"
1379 and "prev".
1380
1381 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1382
1383 * genautomata.c (output_internal_insn_latency_func): When writing
1384 the function "internal_insn_latency" to insn-automata.c,
1385 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
1386 allowing the optional guard function of (define_bypass) clauses to
1387 expect a pair of rtx_insn *, rather than a pair of rtx.
1388 (output_insn_latency_func): When writing the function
1389 "insn_latency", add an "uncast_" prefix to params "insn" and
1390 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
1391 using checked casts from the params, thus enabling the above
1392 change to the generated "internal_insn_latency" function.
1393
1394 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
1395
1396 PR tree-optimization/62091
1397 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
1398 handle correctly arrays.
1399 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
1400 inheritance binfos.
1401 (record_known_type): Walk into inner type.
1402 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
1403 condition on no type changes.
1404
1405 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1406
1407 * genattrtab.c (write_attr_get): Within the generated get_attr_
1408 functions, rename param "insn" to "uncast_insn" and reintroduce
1409 "insn" as an local rtx_insn * using a checked cast, so that "insn"
1410 is an rtx_insn * within insn-attrtab.c
1411
1412 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1413
1414 * output.h (peephole): Strengthen return type from rtx to
1415 rtx_insn *.
1416 * rtl.h (delete_for_peephole): Likewise for both params.
1417 * genpeep.c (main): In generated "peephole" function, strengthen
1418 return type and local "insn" from rtx to rtx_insn *. For now,
1419 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
1420 rtx_insn *, with a checked cast.
1421 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
1422 locals "insn", "next", "prev" from rtx to rtx_insn *.
1423
1424 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
1425
1426 PR tree-optimization/62112
1427 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
1428 * gimple-iterator.h (gsi_replace): Return bool.
1429 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
1430 moved from ref_may_alias_global_p.
1431 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
1432 New overloads.
1433 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
1434 (stmt_kills_ref_p_1): Rename...
1435 (stmt_kills_ref_p): ... to this.
1436 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
1437 stmt_kills_ref_p): Declare.
1438 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
1439 Move the self-assignment case...
1440 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
1441
1442 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1443
1444 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
1445
1446 * emit-rtl.c (try_split): Likewise, also for locals "before" and
1447 "after". For now, don't strengthen param "trial", which requires
1448 adding checked casts when returning it.
1449
1450 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1451
1452 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
1453 "label" from rtx to rtx_code_label *. Strengthen param 1 of
1454 "var_location" hook from rtx to rtx_insn *.
1455 (debug_nothing_rtx): Delete in favor of...
1456 (debug_nothing_rtx_code_label): New prototype.
1457 (debug_nothing_rtx_rtx): Delete unused prototype.
1458 (debug_nothing_rtx_insn): New prototype.
1459
1460 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
1461 invoking debug_hooks->var_location (in two places, one in a NOTE
1462 case of a switch statement, the other guarded by a CALL_P
1463 conditional. Add checked cast to rtx_code_label * when invoking
1464 debug_hooks->label (within CODE_LABEL case of switch statement).
1465
1466 * dbxout.c (dbx_debug_hooks): Update "label" hook from
1467 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
1468 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
1469 (xcoff_debug_hooks): Likewise.
1470 * debug.c (do_nothing_debug_hooks): Likewise.
1471 (debug_nothing_rtx): Delete in favor of...
1472 (debug_nothing_rtx_insn): New function.
1473 (debug_nothing_rtx_rtx): Delete unused function.
1474 (debug_nothing_rtx_code_label): New function.
1475 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
1476 debug_nothing_rtx to debug_nothing_rtx_code_label.
1477 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
1478 to rtx_insn *.
1479 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
1480 debug_nothing_rtx to debug_nothing_rtx_insn.
1481 (sdbout_label): Strengthen param "insn" from rtx to
1482 rtx_code_label *.
1483 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
1484 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
1485 "var_location" hook from debug_nothing_rtx to
1486 debug_nothing_rtx_insn.
1487
1488 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1489
1490 * recog.h (insn_output_fn): Update this function typedef to match
1491 the changes below to the generated output functions, strengthening
1492 the 2nd param from rtx to rtx_insn *.
1493
1494 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
1495 insn when invoking an output function, to match the new signature
1496 of insn_output_fn with a stronger second param.
1497
1498 * genconditions.c (write_header): In the generated code for
1499 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
1500 to match the other changes in this patch.
1501
1502 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
1503 the generated "gen_" functions from rtx to rtx_insn * within their
1504 implementations.
1505
1506 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
1507 the subfunctions within the generated "recog_", "split", "peephole2"
1508 function trees from rtx to rtx_insn *. For now, the top-level
1509 generated functions ("recog", "split", "peephole2") continue to
1510 take a plain rtx for "insn", to avoid introducing dependencies on
1511 other patches. Rename this 2nd param from "insn" to
1512 "uncast_insn", and reintroduce "insn" as a local variable of type
1513 rtx_insn *, initialized at the top of the generated function with
1514 a checked cast on "uncast_insn".
1515 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
1516 the generated "gen_" functions from rtx to rtx_insn * within their
1517 prototypes.
1518
1519 * genoutput.c (process_template): Strengthen the 2nd param within
1520 the generated "output_" functions "insn" from rtx to rtx_insn *.
1521
1522 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
1523
1524 * tree-profile.c (tree_profiling): Skip external functions
1525 when doing coverage instrumentation.
1526 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
1527
1528 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1529
1530 * config/rs6000/altivec.h (vec_cpsgn): New #define.
1531 (vec_mergee): Likewise.
1532 (vec_mergeo): Likewise.
1533 (vec_cntlz): Likewise.
1534 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
1535 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
1536 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
1537 VMRGEW, and VMRGOW.
1538 * doc/extend.texi: Document various forms of vec_cpsgn,
1539 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
1540 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
1541 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
1542 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
1543 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
1544
1545 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1546
1547 * config/rs6000/rs6000.c (context.h): New include.
1548 (tree-pass.h): Likewise.
1549 (make_pass_analyze_swaps): New decl.
1550 (rs6000_option_override): Register pass_analyze_swaps.
1551 (swap_web_entry): New subsclass of web_entry_base (df.h).
1552 (special_handling_values): New enum.
1553 (union_defs): New function.
1554 (union_uses): Likewise.
1555 (insn_is_load_p): Likewise.
1556 (insn_is_store_p): Likewise.
1557 (insn_is_swap_p): Likewise.
1558 (rtx_is_swappable_p): Likewise.
1559 (insn_is_swappable_p): Likewise.
1560 (chain_purpose): New enum.
1561 (chain_contains_only_swaps): New function.
1562 (mark_swaps_for_removal): Likewise.
1563 (swap_const_vector_halves): Likewise.
1564 (adjust_subreg_index): Likewise.
1565 (permute_load): Likewise.
1566 (permute_store): Likewise.
1567 (handle_special_swappables): Likewise.
1568 (replace_swap_with_copy): Likewise.
1569 (dump_swap_insn_table): Likewise.
1570 (rs6000_analyze_swaps): Likewise.
1571 (pass_data_analyze_swaps): New pass_data.
1572 (pass_analyze_swaps): New rtl_opt_pass.
1573 (make_pass_analyze_swaps): New function.
1574 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
1575
1576 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1577
1578 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
1579 type from rtx to rtx_insn *.
1580 (create_copy_of_insn_rtx): Likewise.
1581 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
1582 (create_copy_of_insn_rtx): Likewise, also for local "res".
1583
1584 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1585
1586 * rtl.h (find_first_parameter_load): Strengthen return type from
1587 rtx to rtx_insn *.
1588 * rtlanal.c (find_first_parameter_load): Strengthen return type
1589 from rtx to rtx_insn *. Add checked cast for now, to postpone
1590 strengthening the params.
1591
1592 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1593
1594 PR fortran/44054
1595 * diagnostic.c: Set default caret.
1596 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
1597 line is needed.
1598 * diagnostic.h (struct diagnostic_context):
1599
1600 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1601
1602 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
1603 (sel_bb_head): Strengthen return type insn_t (currently just an
1604 rtx) to rtx_insn *.
1605 (sel_bb_end): Likewise.
1606
1607 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
1608 (sel_bb_head): Strengthen return type and local "head" from
1609 insn_t (currently just an rtx) to rtx_insn *.
1610 (sel_bb_end): Likewise for return type.
1611 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
1612 working with insn.
1613
1614 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1615
1616 * basic-block.h (get_last_bb_insn): Strengthen return type from
1617 rtx to rtx_insn *.
1618 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
1619 end".
1620
1621 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1622
1623 PR fortran/44054
1624 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
1625 to here ...
1626 (diagnostic_report_diagnostic): ... from here.
1627 * toplev.c (general_init): Move code to c-family.
1628
1629 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1630
1631 * df.h (web_entry_base): Replace existing struct web_entry with a
1632 new class web_entry_base with only the predecessor member.
1633 (unionfind_root): Remove declaration and move to class member.
1634 (unionfind_union): Remove declaration and move to friend
1635 function.
1636 (union_defs): Remove declaration.
1637 * web.c (web_entry_base::unionfind_root): Modify to be member
1638 function and adjust accessors.
1639 (unionfind_union): Modify to be friend function and adjust
1640 accessors.
1641 (web_entry): New subclass of web_entry_base containing the reg
1642 member.
1643 (union_match_dups): Modify for struct -> class changes.
1644 (union_defs): Likewise.
1645 (entry_register): Likewise.
1646 (pass_web::execute): Likewise.
1647
1648 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
1649
1650 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
1651 builtin define __VEC_ELEMENT_REG_ORDER__.
1652
1653 2014-08-20 Martin Jambor <mjambor@suse.cz>
1654 Wei Mi <wmi@google.com>
1655
1656 PR ipa/60449
1657 PR middle-end/61776
1658 * tree-ssa-operands.c (update_stmt_operands): Remove
1659 MODIFIED_NORETURN_CALLS.
1660 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
1661 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
1662 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
1663 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
1664 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
1665 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
1666 (gimple_call_set_ctrl_altering): New func.
1667 (gimple_call_ctrl_altering_p): Ditto.
1668 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
1669 (make_blocks): Use gimple_call_initialize_ctrl_altering.
1670 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
1671 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
1672 remove MODIFIED_NORETURN_CALLS.
1673
1674 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
1675
1676 * coverage.c (coverage_compute_profile_id): Return non-0;
1677 also handle symbols with unique name.
1678 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
1679
1680 2014-08-20 Steve Ellcey <sellcey@mips.com>
1681
1682 PR middle-end/49191
1683 * doc/sourcebuild.texi (non_strict_align): New.
1684
1685 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
1686
1687 * cgraphunit.c (ipa_passes, compile): Reshedule
1688 symtab_remove_unreachable_nodes passes; update comments.
1689 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
1690 TODO_remove_functions before the pass; the functions ought to be
1691 already removed.
1692 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
1693 TODO_remove_functions.
1694 * passes.c (pass_data_early_local_passes): Do not schedule function
1695 removal.
1696 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
1697
1698 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1699
1700 PR c/59304
1701 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
1702 before setting the option.
1703 * diagnostic.c (diagnostic_classify_diagnostic): Record
1704 command-line status.
1705
1706 2014-08-20 Richard Biener <rguenther@suse.de>
1707
1708 PR lto/62190
1709 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
1710 to build uint{16,32,64}_type_node.
1711
1712 2014-08-20 Terry Guo <terry.guo@arm.com>
1713
1714 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
1715 with immediate_operand.
1716
1717 2014-08-20 David Malcolm <dmalcolm@redhat.com>
1718
1719 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
1720 "insn" from an as_a to a safe_as_a, for the case when "insn" is
1721 NULL.
1722
1723 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1724
1725 PR preprocessor/51303
1726 * incpath.c (remove_duplicates): Use cpp_warning.
1727
1728 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1729
1730 PR c/60975
1731 PR c/53063
1732 * doc/options.texi (CPP): Document it.
1733 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
1734 * optc-gen.awk: Handle CPP.
1735 * opth-gen.awk: Likewise.
1736
1737 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1738
1739 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
1740 rtx_insn *.
1741 (duplicate_insn_chain): Likewise.
1742 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
1743 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
1744 checked cast for now (until we can strengthen the params in the
1745 same way).
1746 (duplicate_insn_chain): Likewise.
1747
1748 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1749
1750 * rtl.h (next_cc0_user): Strengthen return type from rtx to
1751 rtx_insn *.
1752 (prev_cc0_setter): Likewise.
1753
1754 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
1755 rtx_insn *, adding checked casts for now as necessary.
1756 (prev_cc0_setter): Likewise.
1757
1758 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1759
1760 * expr.h (emit_move_insn): Strengthen return type from rtx to
1761 rtx_insn *.
1762 (emit_move_insn_1): Likewise.
1763 (emit_move_complex_push): Likewise.
1764 (emit_move_complex_parts): Likewise.
1765
1766 * expr.c (emit_move_via_integer): Strengthen return type from rtx
1767 to rtx_insn *. Replace use of NULL_RTX with NULL when working
1768 with insns.
1769 (emit_move_complex_push): Strengthen return type from rtx to
1770 rtx_insn *.
1771 (emit_move_complex): Likewise, also for local "ret".
1772 (emit_move_ccmode): Likewise.
1773 (emit_move_multi_word): Likewise for return type and locals
1774 "last_insn", "seq".
1775 (emit_move_insn_1): Likewise for return type and locals "result",
1776 "ret".
1777 (emit_move_insn): Likewise for return type and local "last_insn".
1778 (compress_float_constant): Likewise.
1779
1780 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1781
1782 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
1783 from rtx to rtx_insn *.
1784
1785 * rtl.h (emit_insn_before): Likewise.
1786 (emit_insn_before_noloc): Likewise.
1787 (emit_insn_before_setloc): Likewise.
1788 (emit_jump_insn_before): Likewise.
1789 (emit_jump_insn_before_noloc): Likewise.
1790 (emit_jump_insn_before_setloc): Likewise.
1791 (emit_call_insn_before): Likewise.
1792 (emit_call_insn_before_noloc): Likewise.
1793 (emit_call_insn_before_setloc): Likewise.
1794 (emit_debug_insn_before): Likewise.
1795 (emit_debug_insn_before_noloc): Likewise.
1796 (emit_debug_insn_before_setloc): Likewise.
1797 (emit_label_before): Likewise.
1798 (emit_insn_after): Likewise.
1799 (emit_insn_after_noloc): Likewise.
1800 (emit_insn_after_setloc): Likewise.
1801 (emit_jump_insn_after): Likewise.
1802 (emit_jump_insn_after_noloc): Likewise.
1803 (emit_jump_insn_after_setloc): Likewise.
1804 (emit_call_insn_after): Likewise.
1805 (emit_call_insn_after_noloc): Likewise.
1806 (emit_call_insn_after_setloc): Likewise.
1807 (emit_debug_insn_after): Likewise.
1808 (emit_debug_insn_after_noloc): Likewise.
1809 (emit_debug_insn_after_setloc): Likewise.
1810 (emit_label_after): Likewise.
1811 (emit_insn): Likewise.
1812 (emit_debug_insn): Likewise.
1813 (emit_jump_insn): Likewise.
1814 (emit_call_insn): Likewise.
1815 (emit_label): Likewise.
1816 (gen_clobber): Likewise.
1817 (emit_clobber): Likewise.
1818 (gen_use): Likewise.
1819 (emit_use): Likewise.
1820 (emit): Likewise.
1821
1822 (emit_barrier_before): Strengthen return type from rtx to
1823 rtx_barrier *.
1824 (emit_barrier_after): Likewise.
1825 (emit_barrier): Likewise.
1826
1827 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
1828 from rtx to rtx_insn *. Add checked casts for now when converting
1829 "last" from rtx to rtx_insn *.
1830 (emit_insn_before_noloc): Likewise for return type.
1831 (emit_jump_insn_before_noloc): Likewise.
1832 (emit_call_insn_before_noloc): Likewise.
1833 (emit_debug_insn_before_noloc): Likewise.
1834 (emit_barrier_before): Strengthen return type and local "insn"
1835 from rtx to rtx_barrier *.
1836 (emit_label_before): Strengthen return type from rtx to
1837 rtx_insn *. Add checked cast for now when returning param
1838 (emit_pattern_after_noloc): Strengthen return type from rtx to
1839 rtx_insn *. Add checked casts for now when converting "last" from
1840 rtx to rtx_insn *.
1841 (emit_insn_after_noloc): Strengthen return type from rtx to
1842 rtx_insn *.
1843 (emit_jump_insn_after_noloc): Likewise.
1844 (emit_call_insn_after_noloc): Likewise.
1845 (emit_debug_insn_after_noloc): Likewise.
1846 (emit_barrier_after): Strengthen return type from rtx to
1847 rtx_barrier *.
1848 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
1849 Add checked cast for now when converting "label" from rtx to
1850 rtx_insn *.
1851 (emit_pattern_after_setloc): Strengthen return type from rtx to
1852 rtx_insn *. Add checked casts for now when converting "last" from
1853 rtx to rtx_insn *.
1854 (emit_pattern_after): Strengthen return type from rtx to
1855 rtx_insn *.
1856 (emit_insn_after_setloc): Likewise.
1857 (emit_insn_after): Likewise.
1858 (emit_jump_insn_after_setloc): Likewise.
1859 (emit_jump_insn_after): Likewise.
1860 (emit_call_insn_after_setloc): Likewise.
1861 (emit_call_insn_after): Likewise.
1862 (emit_debug_insn_after_setloc): Likewise.
1863 (emit_debug_insn_after): Likewise.
1864 (emit_pattern_before_setloc): Likewise. Add checked casts for now
1865 when converting "last" from rtx to rtx_insn *.
1866 (emit_pattern_before): Strengthen return type from rtx to
1867 rtx_insn *.
1868 (emit_insn_before_setloc): Likewise.
1869 (emit_insn_before): Likewise.
1870 (emit_jump_insn_before_setloc): Likewise.
1871 (emit_jump_insn_before): Likewise.
1872 (emit_call_insn_before_setloc): Likewise.
1873 (emit_call_insn_before): Likewise.
1874 (emit_debug_insn_before_setloc): Likewise.
1875 (emit_debug_insn_before): Likewise.
1876 (emit_insn): Strengthen return type and locals "last", "insn",
1877 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
1878 within cases where we know we have an insn.
1879 (emit_debug_insn): Likewise.
1880 (emit_jump_insn): Likewise.
1881 (emit_call_insn): Strengthen return type and local "insn" from rtx
1882 to rtx_insn *.
1883 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
1884 a checked cast to rtx_insn * for now on "label".
1885 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
1886 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
1887 (emit_use): Likewise.
1888 (gen_use): Likewise, also for local "seq".
1889 (emit): Likewise for return type and local "insn".
1890 (rtx_insn): Likewise for return type and local "new_rtx".
1891
1892 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
1893 from rtx to rtx_barrier *.
1894
1895 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
1896 changed return type from rtx to rtx_insn *, we must update
1897 "emit_fn" type, and this in turn means updating...
1898 (frame_insn): ...this. Strengthen return type from rtx to
1899 rtx_insn *. Introduce a new local "insn" of the appropriate type.
1900
1901 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1902
1903 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
1904 rtx to rtx_jump_table_data *. Also for local.
1905 * rtl.h (emit_jump_table_data): Likewise.
1906
1907 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1908
1909 * basic-block.h (create_basic_block_structure): Strengthen third
1910 param "bb_note" from rtx to rtx_note *.
1911 * rtl.h (emit_note_before): Strengthen return type from rtx to
1912 rtx_note *.
1913 (emit_note_after): Likewise.
1914 (emit_note): Likewise.
1915 (emit_note_copy): Likewise. Also, strengthen param similarly.
1916 * function.h (struct rtl_data): Strengthen field
1917 "x_stack_check_probe_note" from rtx to rtx_note *.
1918
1919 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
1920 from rtx to rtx_note *.
1921 * cfgrtl.c (create_basic_block_structure): Strengthen third param
1922 "bb_note" from rtx to rtx_note *.
1923 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
1924 when calling emit_note_copy.
1925 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
1926 rtx_note *.
1927 (emit_note_after): Likewise.
1928 (emit_note_before): Likewise.
1929 (emit_note_copy): Likewise. Also, strengthen param similarly.
1930 (emit_note): Likewise.
1931 * except.c (emit_note_eh_region_end): Likewise for return type.
1932 Strengthen local "next" from rtx to rtx_insn *.
1933 (convert_to_eh_region_ranges): Strengthen local "note"
1934 from rtx to rtx_note *.
1935 * final.c (change_scope): Likewise.
1936 (reemit_insn_block_notes): Likewise, for both locals named "note".
1937 Also, strengthen local "insn" from rtx to rtx_insn *.
1938 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
1939 rtx to rtx_note *.
1940 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
1941 strengthen local "seq" from rtx to rtx_insn *.
1942 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
1943 to rtx_note *.
1944 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
1945 vec<rtx_note *>.
1946 (get_bb_note_from_pool): Strengthen return type from rtx to
1947 rtx_note *.
1948 (sel_create_basic_block): Strengthen local "new_bb_note" from
1949 insn_t to rtx_note *.
1950 * var-tracking.c (emit_note_insn_var_location): Strengthen local
1951 "note" from rtx to rtx_note *.
1952 (emit_notes_in_bb): Likewise.
1953
1954 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1955
1956 * function.h (struct rtl_data): Strengthen field
1957 "x_parm_birth_insn" from rtx to rtx_insn *.
1958 * function.c (struct assign_parm_data_all): Strengthen fields
1959 "first_conversion_insn" and "last_conversion_insn" from rtx to
1960 rtx_insn *.
1961
1962 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1963
1964 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
1965 to rtx_insn *; also for local "var_end_seq".
1966 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
1967 (maybe_cleanup_end_of_block): Likewise for param "last" and local
1968 "insn".
1969 (expand_gimple_cond): Likewise for locals "last2" and "last".
1970 (mark_transaction_restart_calls): Likewise for local "insn".
1971 (expand_gimple_stmt): Likewise for return type and locals "last"
1972 and "insn".
1973 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
1974 (avoid_complex_debug_insns): Likewise for param "insn".
1975 (expand_debug_locations): Likewise for locals "insn", "last",
1976 "prev_insn" and "insn2".
1977 (expand_gimple_basic_block): Likewise for local "last".
1978 (construct_exit_block): Likewise for locals "head", "end",
1979 "orig_end".
1980 (pass_expand::execute): Likewise for locals "var_seq",
1981 "var_ret_seq", "next".
1982
1983 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1984
1985 * asan.h (asan_emit_stack_protection): Strengthen return type from
1986 rtx to rtx_insn *.
1987 * asan.c (asan_emit_stack_protection): Likewise. Add local
1988 "insns" to hold the return value.
1989
1990 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1991
1992 * basic-block.h (bb_note): Strengthen return type from rtx to
1993 rtx_note *.
1994 * sched-int.h (bb_note): Likewise.
1995 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
1996
1997 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1998
1999 * rtl.h (make_insn_raw): Strengthen return type from rtx to
2000 rtx_insn *.
2001
2002 * emit-rtl.c (make_insn_raw): Strengthen return type and local
2003 "insn" from rtx to rtx_insn *.
2004 (make_debug_insn_raw): Strengthen return type from rtx to
2005 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
2006 (make_jump_insn_raw): Strengthen return type from rtx to
2007 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
2008 (make_call_insn_raw): Strengthen return type from rtx to
2009 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
2010 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
2011 callback from rtx to rtx_insn *; likewise for local "insn" and
2012 "next", adding a checked cast to rtx_insn in the relevant cases of
2013 the switch statement.
2014 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
2015 callback from rtx to rtx_insn *.
2016 (emit_pattern_after_setloc): Likewise.
2017 (emit_pattern_after): Likewise.
2018 (emit_pattern_before_setloc): Likewise.
2019 (emit_pattern_before): Likewise.
2020
2021 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2022
2023 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
2024 rtx_call_insn *.
2025 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
2026 accepting an rtx_insn *.
2027 (last_call_insn): Strengthen return type from rtx to
2028 rtx_call_insn *.
2029
2030 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2031
2032 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
2033 "insns" from rtx to rtx_insn *.
2034 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
2035 locals "insn" and "prev".
2036
2037 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2038
2039 * rtl.h (tablejump_p): Strengthen third param from rtx * to
2040 rtx_jump_table_data **.
2041
2042 * cfgbuild.c (make_edges): Introduce local "table", using it in
2043 place of "tmp" for jump table data.
2044 (find_bb_boundaries): Strengthen local "table" from rtx to
2045 rtx_jump_table_data *.
2046 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
2047 (outgoing_edges_match): Likewise for locals "table1" and "table2".
2048 (try_crossjump_to_edge): Likewise.
2049 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
2050 "table".
2051 (patch_jump_insn): Introduce local "table", using it in place of
2052 "tmp" for jump table data.
2053 (force_nonfallthru_and_redirect): Introduce local "table", so that
2054 call to tablejump_p can receive an rtx_jump_table_data **. Update
2055 logic around the call to overwrite "note" appropriately if
2056 tablejump_p returns non-zero.
2057 (get_last_bb_insn): Introduce local "table", using it in place of
2058 "tmp" for jump table data.
2059 * dwarf2cfi.c (create_trace_edges): Likewise.
2060
2061 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
2062 from rtx to rtx_jump_table_data *.
2063 (create_fix_barrier): Strengthen local "tmp" from rtx to
2064 rtx_jump_table_data *.
2065 (arm_reorg): Likewise for local "table".
2066
2067 * config/s390/s390.c (s390_chunkify_start): Likewise.
2068
2069 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
2070
2071 * jump.c (delete_related_insns): Strengthen local "lab_next" from
2072 rtx to rtx_jump_table_data *.
2073
2074 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
2075 rtx_jump_table_data **. Add a checked cast when writing through
2076 the pointer: we know there that local "table" is non-NULL and that
2077 JUMP_TABLE_DATA_P (table) holds.
2078 (label_is_jump_target_p): Introduce local "table", using it in
2079 place of "tmp" for jump table data.
2080
2081 2014-08-19 Marek Polacek <polacek@redhat.com>
2082
2083 PR c++/62153
2084 * doc/invoke.texi: Document -Wbool-compare.
2085
2086 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2087
2088 * rtl.h (entry_of_function): Strengthen return type from rtx to
2089 rtx_insn *.
2090 * cfgrtl.c (entry_of_function): Likewise.
2091
2092 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2093
2094 * emit-rtl.h (get_insns): Strengthen return type from rtx to
2095 rtx_insn *, adding a checked cast for now.
2096 (get_last_insn): Likewise.
2097
2098 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2099
2100 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
2101 rtx_code_label *.
2102
2103 * emit-rtl.c (gen_label_rtx): Likewise.
2104
2105 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2106
2107 * rtl.h (previous_insn): Strengthen return type from rtx to
2108 rtx_insn *.
2109 (next_insn): Likewise.
2110 (prev_nonnote_insn): Likewise.
2111 (prev_nonnote_insn_bb): Likewise.
2112 (next_nonnote_insn): Likewise.
2113 (next_nonnote_insn_bb): Likewise.
2114 (prev_nondebug_insn): Likewise.
2115 (next_nondebug_insn): Likewise.
2116 (prev_nonnote_nondebug_insn): Likewise.
2117 (next_nonnote_nondebug_insn): Likewise.
2118 (prev_real_insn): Likewise.
2119 (next_real_insn): Likewise.
2120 (prev_active_insn): Likewise.
2121 (next_active_insn): Likewise.
2122
2123 * emit-rtl.c (next_insn): Strengthen return type from rtx to
2124 rtx_insn *, adding a checked cast.
2125 (previous_insn): Likewise.
2126 (next_nonnote_insn): Likewise.
2127 (next_nonnote_insn_bb): Likewise.
2128 (prev_nonnote_insn): Likewise.
2129 (prev_nonnote_insn_bb): Likewise.
2130 (next_nondebug_insn): Likewise.
2131 (prev_nondebug_insn): Likewise.
2132 (next_nonnote_nondebug_insn): Likewise.
2133 (prev_nonnote_nondebug_insn): Likewise.
2134 (next_real_insn): Likewise.
2135 (prev_real_insn): Likewise.
2136 (next_active_insn): Likewise.
2137 (prev_active_insn): Likewise.
2138
2139 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
2140 param "stepfunc" so that it returns an rtx_insn * rather than an
2141 rtx, to track the change to prev_nonnote_insn_bb, which is the
2142 only function this is called with.
2143 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
2144
2145 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
2146
2147 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
2148 assert.
2149
2150 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2151
2152 * coretypes.h (class rtx_debug_insn): Add forward declaration.
2153 (class rtx_nonjump_insn): Likewise.
2154 (class rtx_jump_insn): Likewise.
2155 (class rtx_call_insn): Likewise.
2156 (class rtx_jump_table_data): Likewise.
2157 (class rtx_barrier): Likewise.
2158 (class rtx_code_label): Likewise.
2159 (class rtx_note): Likewise.
2160
2161 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
2162 adding the invariant DEBUG_INSN_P (X).
2163 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
2164 the invariant NONJUMP_INSN_P (X).
2165 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
2166 the invariant JUMP_P (X).
2167 (class rtx_call_insn): New, a subclass of rtx_insn, adding
2168 the invariant CALL_P (X).
2169 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
2170 invariant JUMP_TABLE_DATA_P (X).
2171 (class rtx_barrier): New, a subclass of rtx_insn, adding the
2172 invariant BARRIER_P (X).
2173 (class rtx_code_label): New, a subclass of rtx_insn, adding
2174 the invariant LABEL_P (X).
2175 (class rtx_note): New, a subclass of rtx_insn, adding
2176 the invariant NOTE_P(X).
2177 (is_a_helper <rtx_debug_insn *>::test): New.
2178 (is_a_helper <rtx_nonjump_insn *>::test): New.
2179 (is_a_helper <rtx_jump_insn *>::test): New.
2180 (is_a_helper <rtx_call_insn *>::test): New.
2181 (is_a_helper <rtx_jump_table_data *>::test): New functions,
2182 overloaded for both rtx and rtx_insn *.
2183 (is_a_helper <rtx_barrier *>::test): New.
2184 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
2185 for both rtx and rtx_insn *.
2186 (is_a_helper <rtx_note *>::test): New.
2187
2188 2014-08-19 Marek Polacek <polacek@redhat.com>
2189
2190 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
2191 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
2192 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
2193 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
2194
2195 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2196
2197 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
2198 rtx_insn *. To help with transition, for now, convert from an
2199 access macro into a pair of functions: BND_TO, returning an
2200 rtx_insn *, and...
2201 (SET_BND_TO): New function, for use where BND_TO is used as an
2202 lvalue.
2203
2204 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
2205 SET_BND_TO.
2206 (BND_TO): New function, adding a checked cast.
2207 (SET_BND_TO): New function.
2208
2209 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
2210 SET_BND_TO.
2211 (compute_av_set_on_boundaries): Likewise.
2212
2213 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
2214
2215 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
2216 destination if it is used in source.
2217 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
2218 (*popcount<mode>2_falsedep_1): Likewise.
2219
2220 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
2221
2222 PR other/62168
2223 * configure.ac: Set install_gold_as_default to no first.
2224 * configure: Regenerated.
2225
2226 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2227
2228 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
2229 "note_list" field will eventually be an rtx_insn *. To help with
2230 transition, for now, convert from an access macro into a pair of
2231 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
2232 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
2233 used as an lvalue.
2234
2235 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
2236 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
2237
2238 * sel-sched-ir.c (init_bb): Likewise.
2239 (sel_restore_notes): Likewise.
2240 (move_bb_info): Likewise.
2241 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
2242 (SET_BB_NOTE_LIST): New function.
2243
2244 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2245
2246 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
2247 field will eventually be an rtx_insn *. To help with transition,
2248 for now, convert from an access macro into a pair of functions:
2249 VINSN_INSN_RTX, returning an rtx_insn *, and...
2250 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
2251 is used as an lvalue.
2252
2253 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
2254 SET_VINSN_INSN_RTX where it's used as an lvalue.
2255 (VINSN_INSN_RTX): New function.
2256 (SET_VINSN_INSN_RTX): New function.
2257
2258 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2259
2260 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
2261 eventually be rtx_insn *, but to help with transition, for now,
2262 convert from an access macro into a pair of functions: DEP_PRO
2263 returning an rtx_insn * and...
2264 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
2265 lvalue, returning an rtx&.
2266 (DEP_CON): Analogous changes to DEP_PRO above.
2267 (SET_DEP_CON): Likewise.
2268
2269 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
2270 an lvalue to SET_DEP_CON.
2271 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
2272 (sd_copy_back_deps): Likewise for DEP_CON.
2273 (DEP_PRO): New function, adding a checked cast for now.
2274 (DEP_CON): Likewise.
2275 (SET_DEP_PRO): New function.
2276 (SET_DEP_CON): Likewise.
2277
2278 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
2279
2280 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
2281 (extra_options): Add i386/cygwin.opt.
2282 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
2283 (CPP_SPEC): Accept -pthread.
2284 (LINK_SPEC): Ditto.
2285 (GOMP_SELF_SPECS): Update comment.
2286 * config/i386/cygwin.opt: New file for -pthread flag.
2287
2288 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2289
2290 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
2291 * df.h (DF_REF_INSN): Convert from a macro to a function, so
2292 that we can return an rtx_insn *.
2293
2294 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
2295
2296 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
2297 when building executables, not DLLs. Add --large-address-aware
2298 under the same conditions.
2299 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
2300 when building executables, not DLLs. Add --large-address-aware
2301 under the same conditions when using -m32.
2302
2303 * config/i386/cygwin-stdint.h: Throughout, make type
2304 definitions dependent on target architecture, not host.
2305
2306 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2307
2308 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
2309 the return type from rtx to rtx_insn *, which will enable various
2310 conversions in followup patches. For now this is is done by a
2311 checked cast.
2312 (NEXT_INSN): Likewise.
2313 (SET_PREV_INSN): Convert to an inline function. This is intended
2314 for use as an lvalue, and so returns an rtx& to allow in-place
2315 modification.
2316 (SET_NEXT_INSN): Likewise.
2317
2318 2014-07-08 Mark Wielaard <mjw@redhat.com>
2319
2320 PR debug/59051
2321 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
2322
2323 2014-08-19 Marek Polacek <polacek@redhat.com>
2324
2325 PR c/61271
2326 * cgraphunit.c (handle_alias_pairs): Fix condition.
2327
2328 2014-08-19 Richard Biener <rguenther@suse.de>
2329
2330 * gimple-fold.c (fold_gimple_assign): Properly build a
2331 null-pointer constant when devirtualizing addresses.
2332
2333 2014-07-07 Mark Wielaard <mjw@redhat.com>
2334
2335 * dwarf2out.c (decl_quals): New function.
2336 (modified_type_die): Take one cv_quals argument instead of two,
2337 one for const and one for volatile.
2338 (add_type_attribute): Likewise.
2339 (generic_parameter_die): Call add_type_attribute with one modifier
2340 argument.
2341 (base_type_for_mode): Likewise.
2342 (add_bounds_info): Likewise.
2343 (add_subscript_info): Likewise.
2344 (gen_array_type_die): Likewise.
2345 (gen_descr_array_type_die): Likewise.
2346 (gen_entry_point_die): Likewise.
2347 (gen_enumeration_type_die): Likewise.
2348 (gen_formal_parameter_die): Likewise.
2349 (gen_subprogram_die): Likewise.
2350 (gen_variable_die): Likewise.
2351 (gen_const_die): Likewise.
2352 (gen_field_die): Likewise.
2353 (gen_pointer_type_die): Likewise.
2354 (gen_reference_type_die): Likewise.
2355 (gen_ptr_to_mbr_type_die): Likewise.
2356 (gen_inheritance_die): Likewise.
2357 (gen_subroutine_type_die): Likewise.
2358 (gen_typedef_die): Likewise.
2359 (force_type_die): Likewise.
2360
2361 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2362
2363 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
2364 if unset.
2365 * configure: Regenerate.
2366
2367 2014-08-19 Richard Biener <rguenther@suse.de>
2368
2369 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
2370 DECL_EXTERNALs in BLOCKs as non-references.
2371 * tree-streamer-out.c (streamer_write_chain): Likewise.
2372
2373 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
2374 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2375 Anna Tikhonova <anna.tikhonova@intel.com>
2376 Ilya Tocar <ilya.tocar@intel.com>
2377 Andrey Turetskiy <andrey.turetskiy@intel.com>
2378 Ilya Verbin <ilya.verbin@intel.com>
2379 Kirill Yukhin <kirill.yukhin@intel.com>
2380 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2381
2382 * config/i386/sse.md
2383 (define_mode_iterator VI48_AVX512F): Delete.
2384 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
2385 (define_mode_iterator VI2_AVX512VL): Ditto.
2386 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
2387 Delete.
2388 (define_insn
2389 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
2390 New.
2391 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
2392 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
2393 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
2394 with VI48_AVX512F_AVX512VL): New.
2395 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
2396 with VI2_AVX512VL): Ditto.
2397
2398 2014-08-19 Marek Polacek <polacek@redhat.com>
2399
2400 * doc/invoke.texi: Document -Wc99-c11-compat.
2401
2402 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2403
2404 * rtl.h (PREV_INSN): Split macro in two: the existing one,
2405 for rvalues, and...
2406 (SET_PREV_INSN): New macro, for use as an lvalue.
2407 (NEXT_INSN, SET_NEXT_INSN): Likewise.
2408
2409 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
2410 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
2411 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2412 (fixup_abnormal_edges): Likewise.
2413 (unlink_insn_chain): Likewise.
2414 (fixup_reorder_chain): Likewise.
2415 (cfg_layout_delete_block): Likewise.
2416 (cfg_layout_merge_blocks): Likewise.
2417 * combine.c (update_cfg_for_uncondjump): Likewise.
2418 * emit-rtl.c (link_insn_into_chain): Likewise.
2419 (remove_insn): Likewise.
2420 (delete_insns_since): Likewise.
2421 (reorder_insns_nobb): Likewise.
2422 (emit_insn_after_1): Likewise.
2423 * final.c (rest_of_clean_state): Likewise.
2424 (final_scan_insn): Likewise.
2425 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
2426 * haifa-sched.c (concat_note_lists): Likewise.
2427 (remove_notes): Likewise.
2428 (restore_other_notes): Likewise.
2429 (move_insn): Likewise.
2430 (unlink_bb_notes): Likewise.
2431 (restore_bb_notes): Likewise.
2432 * jump.c (delete_for_peephole): Likewise.
2433 * optabs.c (emit_libcall_block_1): Likewise.
2434 * reorg.c (emit_delay_sequence): Likewise.
2435 (fill_simple_delay_slots): Likewise.
2436 * sel-sched-ir.c (sel_move_insn): Likewise.
2437 (sel_remove_insn): Likewise.
2438 (get_bb_note_from_pool): Likewise.
2439 * sel-sched.c (move_nop_to_previous_block): Likewise.
2440
2441 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
2442 * config/c6x/c6x.c (gen_one_bundle): Likewise.
2443 (c6x_gen_bundles): Likewise.
2444 (hwloop_optimize): Likewise.
2445 * config/frv/frv.c (frv_function_prologue): Likewise.
2446 (frv_register_nop): Likewise.
2447 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
2448 (ia64_reorg): Likewise.
2449 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
2450 (mep_make_bundle): Likewise.
2451 (mep_bundle_insns): Likewise.
2452 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
2453 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
2454 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
2455
2456 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2457
2458 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
2459 return type from rtx to rtx_insn *.
2460 (BB_END): Likewise.
2461 (BB_HEADER): Likewise.
2462 (BB_FOOTER): Likewise.
2463 (SET_BB_HEAD): Convert to a function.
2464 (SET_BB_END): Likewise.
2465 (SET_BB_HEADER): Likewise.
2466 (SET_BB_FOOTER): Likewise.
2467
2468 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
2469 Strengthen the return type from rtx to rtx_insn *. For now, this
2470 is done by adding a checked cast, but this will eventually
2471 become a field lookup.
2472 (BB_END): Likewise.
2473 (BB_HEADER): Likewise.
2474 (BB_FOOTER): Likewise.
2475 (SET_BB_HEAD): New function, from macro of same name. This is
2476 intended for use as an lvalue, and so returns an rtx& to allow
2477 in-place modification.
2478 (SET_BB_END): Likewise.
2479 (SET_BB_HEADER): Likewise.
2480 (SET_BB_FOOTER): Likewise.
2481
2482 2014-08-18 David Malcolm <dmalcolm@redhat.com>
2483
2484 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
2485 for rvalues, and...
2486 (SET_BB_HEAD): New macro, for use as a lvalue.
2487 (BB_END, SET_BB_END): Likewise.
2488 (BB_HEADER, SET_BB_HEADER): Likewise.
2489 (BB_FOOTER, SET_BB_FOOTER): Likewise.
2490
2491 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
2492 of BB_* macros into SET_BB_* macros.
2493 (fix_crossing_unconditional_branches): Likewise.
2494 * caller-save.c (save_call_clobbered_regs): Likewise.
2495 (insert_one_insn): Likewise.
2496 * cfgbuild.c (find_bb_boundaries): Likewise.
2497 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
2498 (outgoing_edges_match): Likewise.
2499 (try_optimize_cfg): Likewise.
2500 * cfgexpand.c (expand_gimple_cond): Likewise.
2501 (expand_gimple_tailcall): Likewise.
2502 (expand_gimple_basic_block): Likewise.
2503 (construct_exit_block): Likewise.
2504 * cfgrtl.c (delete_insn): Likewise.
2505 (create_basic_block_structure): Likewise.
2506 (rtl_delete_block): Likewise.
2507 (rtl_split_block): Likewise.
2508 (emit_nop_for_unique_locus_between): Likewise.
2509 (rtl_merge_blocks): Likewise.
2510 (block_label): Likewise.
2511 (try_redirect_by_replacing_jump): Likewise.
2512 (emit_barrier_after_bb): Likewise.
2513 (fixup_abnormal_edges): Likewise.
2514 (record_effective_endpoints): Likewise.
2515 (relink_block_chain): Likewise.
2516 (fixup_reorder_chain): Likewise.
2517 (fixup_fallthru_exit_predecessor): Likewise.
2518 (cfg_layout_duplicate_bb): Likewise.
2519 (cfg_layout_split_block): Likewise.
2520 (cfg_layout_delete_block): Likewise.
2521 (cfg_layout_merge_blocks): Likewise.
2522 * combine.c (update_cfg_for_uncondjump): Likewise.
2523 * emit-rtl.c (add_insn_after): Likewise.
2524 (remove_insn): Likewise.
2525 (reorder_insns): Likewise.
2526 (emit_insn_after_1): Likewise.
2527 * haifa-sched.c (get_ebb_head_tail): Likewise.
2528 (restore_other_notes): Likewise.
2529 (move_insn): Likewise.
2530 (sched_extend_bb): Likewise.
2531 (fix_jump_move): Likewise.
2532 * ifcvt.c (noce_process_if_block): Likewise.
2533 (dead_or_predicable): Likewise.
2534 * ira.c (update_equiv_regs): Likewise.
2535 * reg-stack.c (change_stack): Likewise.
2536 * sel-sched-ir.c (sel_move_insn): Likewise.
2537 * sel-sched.c (move_nop_to_previous_block): Likewise.
2538
2539 * config/c6x/c6x.c (hwloop_optimize): Likewise.
2540 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
2541
2542 2014-08-18 David Malcolm <dmalcolm@redhat.com>
2543
2544 * rtl.h (for_each_rtx_in_insn): New function.
2545 * rtlanal.c (for_each_rtx_in_insn): Likewise.
2546
2547 2014-08-18 David Malcolm <dmalcolm@redhat.com>
2548
2549 * coretypes.h (class rtx_insn): Add forward declaration.
2550
2551 * rtl.h: Include is-a.h.
2552 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
2553 workaround to ensure gengtype knows inheritance is occurring,
2554 whilst continuing to use the pre-existing special-casing for
2555 rtx_def.
2556 (class rtx_insn): New subclass of rtx_def, adding the
2557 invariant that we're dealing with something we can sanely use
2558 INSN_UID, NEXT_INSN, PREV_INSN on.
2559 (is_a_helper <rtx_insn *>::test): New.
2560 (is_a_helper <const rtx_insn *>::test): New.
2561
2562 2014-08-18 David Malcolm <dmalcolm@redhat.com>
2563
2564 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
2565
2566 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
2567
2568 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
2569 comdats as extern.
2570
2571 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
2572
2573 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
2574 to BUILT_IN_UNREACHABLE.
2575
2576 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
2577
2578 PR target/62011
2579 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
2580 New tune flag.
2581 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
2582 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
2583 (ffs<mode>2): Do not expand with tzcnt for
2584 TARGET_AVOID_FALSE_DEP_FOR_BMI.
2585 (ffssi2_no_cmove): Ditto.
2586 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
2587 (ctz<mode>2): New expander.
2588 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
2589 (*ctz<mode>2_falsedep): New insn.
2590 (*ctz<mode>2): Rename from ctz<mode>2.
2591 (clz<mode>2_lzcnt): New expander.
2592 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
2593 (*clz<mode>2_lzcnt_falsedep): New insn.
2594 (*clz<mode>2): Rename from ctz<mode>2.
2595 (popcount<mode>2): New expander.
2596 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
2597 (*popcount<mode>2_falsedep): New insn.
2598 (*popcount<mode>2): Rename from ctz<mode>2.
2599 (*popcount<mode>2_cmp): Remove.
2600 (*popcountsi2_cmp_zext): Ditto.
2601
2602 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
2603
2604 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
2605 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
2606 * config/microblaze/microblaze.h
2607 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
2608
2609 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
2610
2611 PR other/62168
2612 * configure.ac: Set install_gold_as_default to no for
2613 --enable-gold=no.
2614 * configure: Regenerated.
2615
2616 2014-08-18 Roman Gareev <gareevroman@gmail.com>
2617
2618 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
2619 * config.in: Add undef of HAVE_isl.
2620 * configure: Regenerate.
2621 * configure.ac: Add definition of HAVE_isl.
2622 * graphite-blocking.c: Add checking of HAVE_isl.
2623 * graphite-dependences.c: Likewise.
2624 * graphite-interchange.c: Likewise.
2625 * graphite-isl-ast-to-gimple.c: Likewise.
2626 * graphite-optimize-isl.c: Likewise.
2627 * graphite-poly.c: Likewise.
2628 * graphite-scop-detection.c: Likewise.
2629 * graphite-sese-to-poly.c: Likewise.
2630 * graphite.c: Likewise.
2631 * toplev.c: Replace the checking of HAVE_cloog with the checking
2632 of HAVE_isl.
2633
2634 2014-08-18 Richard Biener <rguenther@suse.de>
2635
2636 PR tree-optimization/62090
2637 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
2638 (fold_builtin_3): Do not fold snprintf.
2639 (fold_builtin_4): Likewise.
2640 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
2641 moved from builtins.c.
2642 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
2643 (gimple_fold_builtin): Do not fold sprintf here.
2644
2645 2014-08-18 Richard Biener <rguenther@suse.de>
2646
2647 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
2648 code to ...
2649 (maybe_canonicalize_mem_ref_addr): ... this function.
2650 (fold_stmt_1): Apply it here before all simplification.
2651
2652 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
2653
2654 PR ipa/61800
2655 * cgraph.h (cgraph_node::create_indirect_edge): Add
2656 compute_indirect_info param.
2657 * cgraph.c (cgraph_node::create_indirect_edge): Compute
2658 indirect_info only when it is required.
2659 * cgraphclones.c (cgraph_clone_edge): Do not recompute
2660 indirect_info fore cloned indirect edge.
2661
2662 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2663 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2664 Anna Tikhonova <anna.tikhonova@intel.com>
2665 Ilya Tocar <ilya.tocar@intel.com>
2666 Andrey Turetskiy <andrey.turetskiy@intel.com>
2667 Ilya Verbin <ilya.verbin@intel.com>
2668 Kirill Yukhin <kirill.yukhin@intel.com>
2669 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2670
2671 * config/i386/sse.md
2672 (define_mode_iterator VI8_AVX2_AVX512BW): New.
2673 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
2674
2675 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2676 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2677 Anna Tikhonova <anna.tikhonova@intel.com>
2678 Ilya Tocar <ilya.tocar@intel.com>
2679 Andrey Turetskiy <andrey.turetskiy@intel.com>
2680 Ilya Verbin <ilya.verbin@intel.com>
2681 Kirill Yukhin <kirill.yukhin@intel.com>
2682 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2683
2684 * config/i386/sse.md
2685 (define_mode_iterator VF1_AVX512VL): New.
2686 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
2687 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
2688 New.
2689
2690 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2691 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2692 Anna Tikhonova <anna.tikhonova@intel.com>
2693 Ilya Tocar <ilya.tocar@intel.com>
2694 Andrey Turetskiy <andrey.turetskiy@intel.com>
2695 Ilya Verbin <ilya.verbin@intel.com>
2696 Kirill Yukhin <kirill.yukhin@intel.com>
2697 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2698
2699 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
2700 * config/i386/i386.md
2701 (define_code_iterator any_float): New.
2702 (define_code_attr floatsuffix): New.
2703 * config/i386/sse.md
2704 (define_mode_iterator VF1_128_256VL): New.
2705 (define_mode_iterator VF2_512_256VL): New.
2706 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
2707 TARGET check.
2708 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
2709 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
2710 New.
2711 (define_mode_attr qq2pssuff): New.
2712 (define_mode_attr sselongvecmode): New.
2713 (define_mode_attr sselongvecmodelower): New.
2714 (define_mode_attr sseintvecmode3): New.
2715 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
2716 New.
2717 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
2718 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
2719 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
2720 (define_insn "ufloatv2siv2df2<mask_name>"): New.
2721
2722 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2723 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2724 Anna Tikhonova <anna.tikhonova@intel.com>
2725 Ilya Tocar <ilya.tocar@intel.com>
2726 Andrey Turetskiy <andrey.turetskiy@intel.com>
2727 Ilya Verbin <ilya.verbin@intel.com>
2728 Kirill Yukhin <kirill.yukhin@intel.com>
2729 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2730
2731 * config/i386/sse.md
2732 (define_mode_iterator VF2_AVX512VL): New.
2733 (define_mode_attr sseintvecmode2): New.
2734 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
2735 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
2736 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
2737 (define_insn
2738 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
2739 Ditto.
2740 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
2741 Ditto.
2742 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
2743 Ditto.
2744
2745 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2746 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2747 Anna Tikhonova <anna.tikhonova@intel.com>
2748 Ilya Tocar <ilya.tocar@intel.com>
2749 Andrey Turetskiy <andrey.turetskiy@intel.com>
2750 Ilya Verbin <ilya.verbin@intel.com>
2751 Kirill Yukhin <kirill.yukhin@intel.com>
2752 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2753
2754 * config/i386/i386.md
2755 (define_insn "*movoi_internal_avx"): Add evex version.
2756 (define_insn "*movti_internal"): Ditto.
2757
2758 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2759 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2760 Anna Tikhonova <anna.tikhonova@intel.com>
2761 Ilya Tocar <ilya.tocar@intel.com>
2762 Andrey Turetskiy <andrey.turetskiy@intel.com>
2763 Ilya Verbin <ilya.verbin@intel.com>
2764 Kirill Yukhin <kirill.yukhin@intel.com>
2765 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2766
2767 * config/i386/i386.md
2768 (define_attr "isa"): Add avx512dq, noavx512dq.
2769 (define_attr "enabled"): Ditto.
2770 * config/i386/sse.md
2771 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
2772
2773 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2774 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2775 Anna Tikhonova <anna.tikhonova@intel.com>
2776 Ilya Tocar <ilya.tocar@intel.com>
2777 Andrey Turetskiy <andrey.turetskiy@intel.com>
2778 Ilya Verbin <ilya.verbin@intel.com>
2779 Kirill Yukhin <kirill.yukhin@intel.com>
2780 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2781
2782 * config/i386/i386.c
2783 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
2784 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
2785 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
2786 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
2787 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
2788 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
2789 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
2790 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
2791 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
2792 * config/i386/sse.md
2793 (define_mode_iterator VMOVE): Allow V4TI mode.
2794 (define_mode_iterator V_AVX512VL): New.
2795 (define_mode_iterator V): New handling for AVX512VL.
2796 (define_insn "avx512f_load<mode>_mask"): Delete.
2797 (define_insn "<avx512>_load<mode>_mask"): New.
2798 (define_insn "avx512f_store<mode>_mask"): Delete.
2799 (define_insn "<avx512>_store<mode>_mask"): New.
2800
2801
2802 2014-08-18 Yury Gribov <y.gribov@samsung.com>
2803
2804 PR sanitizer/62089
2805 * asan.c (instrument_derefs): Fix bitfield check.
2806
2807 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2808
2809 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
2810 * config/rs6000/htm.md (ttest): Remove clobber.
2811 * config/rs6000/predicates.md (any_mask_operand): New predicate.
2812 (and_operand): Reformat.
2813 (and_2rld_operand): New predicate.
2814 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
2815 parameter.
2816 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
2817 parameter. Handle AND directly.
2818 (rs6000_split_logical_di): Remove last parameter.
2819 (rs6000_split_logical): Remove last parameter. Remove obsolete
2820 comment.
2821 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
2822 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
2823 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
2824 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
2825 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
2826 and 5 anonymous splitters): Delete.
2827 (and<mode>3): New expander.
2828 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
2829 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
2830 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
2831 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
2832 (floatdisf2_internal1): Remove clobbers.
2833 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
2834 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
2835 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
2836 (and<mode>3 for BOOL_128): Remove clobber.
2837 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
2838 rs6000_split_logical.
2839 (*bool<mode>3_internal for BOOL_128): Adjust call of
2840 rs6000_split_logical.
2841 (*boolc<mode>3_internal1 for BOOL_128,
2842 *boolc<mode>3_internal2 for BOOL_128,
2843 *boolcc<mode>3_internal1 for BOOL_128,
2844 *boolcc<mode>3_internal2 for BOOL_128,
2845 *eqv<mode>3_internal1 for BOOL_128,
2846 *eqv<mode>3_internal2 for BOOL_128,
2847 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
2848 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
2849 clobber.
2850 (*vec_reload_and_reg_<mptrsize>): Delete.
2851
2852 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2853
2854 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
2855 and split, *boolccsi3_internal3 and split): Delete.
2856 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
2857 *boolccdi3_internal3 and split): Delete.
2858 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
2859 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
2860
2861 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2862
2863 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
2864 and split, *boolcsi3_internal3 and split): Delete.
2865 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
2866 *boolcdi3_internal3 and split): Delete.
2867 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
2868
2869 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2870
2871 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
2872 <'u'>: Also support printing the low-order 16 bits.
2873 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
2874 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
2875 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
2876 *booldi3_internal3 and split): Delete.
2877 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
2878 *bool<mode>3_dot2): New.
2879 (two anonymous define_splits for non_logical_cint_operand): Merge.
2880
2881 2014-08-17 Marek Polacek <polacek@redhat.com>
2882 Manuel López-Ibáñez <manu@gcc.gnu.org>
2883
2884 PR c/62059
2885 * diagnostic.c (adjust_line): Add gcc_checking_assert.
2886 (diagnostic_show_locus): Don't print caret diagnostic
2887 if a column is larger than the line_width.
2888
2889 2014-08-17 Roman Gareev <gareevroman@gmail.com>
2890
2891 * common.opt: Make the ISL AST generator to be the main code generator
2892 of Graphite.
2893
2894 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
2895
2896 * wide-int.h (generic_wide_int): Declare as class instead of struct.
2897
2898 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
2899
2900 PR target/61641
2901 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
2902 Declare.
2903 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
2904 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
2905 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
2906 Define.
2907 * config/pa/pa.md (begin_brtab): Delete insn.
2908 (end_brtab): Likewise.
2909
2910 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2911
2912 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
2913
2914 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
2915
2916 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
2917 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
2918 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
2919 (get_dynamic_type): Remove.
2920 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
2921 (clear_speculation): Bring to ipa-deivrt.h
2922 (get_class_context): Rename to ...
2923 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
2924 (contains_type_p): Update.
2925 (get_dynamic_type): Rename to ...
2926 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
2927 (possible_polymorphic_call_targets): UPdate.
2928 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
2929 * ipa-prop.c (ipa_analyze_call_uses): Update.
2930
2931 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
2932
2933 * doc/invoke.texi (SH options): Document missing processor variant
2934 options. Remove references to Hitachi. Undocument deprecated mspace
2935 option.
2936
2937 2014-08-15 Jason Merrill <jason@redhat.com>
2938
2939 * tree.c (type_hash_canon): Uncomment assert.
2940
2941 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2942
2943 * input.h (in_system_header_at): Add comment.
2944
2945 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2946
2947 PR fortran/44054
2948 * diagnostic.c (build_message_string): Make it extern.
2949 * diagnostic.h (build_message_string): Make it extern.
2950
2951 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
2952
2953 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
2954 load/store from/to non-floating class pseudo.
2955
2956 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2957
2958 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
2959
2960 2014-08-15 Richard Biener <rguenther@suse.de>
2961
2962 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
2963 (get_constraint_for_ssa_var): Remove dead code.
2964 (get_constraint_for_1): Adjust.
2965 (find_what_var_points_to): Likewise.
2966 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
2967
2968 2014-08-15 Ilya Tocar <tocarip@gmail.com>
2969
2970 PR target/61878
2971 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
2972 (_mm512_mask_cmpge_epu32_mask): Ditto.
2973 (_mm512_cmpge_epu32_mask): Ditto.
2974 (_mm512_mask_cmpge_epi64_mask): Ditto.
2975 (_mm512_cmpge_epi64_mask): Ditto.
2976 (_mm512_mask_cmpge_epu64_mask): Ditto.
2977 (_mm512_cmpge_epu64_mask): Ditto.
2978 (_mm512_mask_cmple_epi32_mask): Ditto.
2979 (_mm512_cmple_epi32_mask): Ditto.
2980 (_mm512_mask_cmple_epu32_mask): Ditto.
2981 (_mm512_cmple_epu32_mask): Ditto.
2982 (_mm512_mask_cmple_epi64_mask): Ditto.
2983 (_mm512_cmple_epi64_mask): Ditto.
2984 (_mm512_mask_cmple_epu64_mask): Ditto.
2985 (_mm512_cmple_epu64_mask): Ditto.
2986 (_mm512_mask_cmplt_epi32_mask): Ditto.
2987 (_mm512_cmplt_epi32_mask): Ditto.
2988 (_mm512_mask_cmplt_epu32_mask): Ditto.
2989 (_mm512_cmplt_epu32_mask): Ditto.
2990 (_mm512_mask_cmplt_epi64_mask): Ditto.
2991 (_mm512_cmplt_epi64_mask): Ditto.
2992 (_mm512_mask_cmplt_epu64_mask): Ditto.
2993 (_mm512_cmplt_epu64_mask): Ditto.
2994 (_mm512_mask_cmpneq_epi32_mask): Ditto.
2995 (_mm512_mask_cmpneq_epu32_mask): Ditto.
2996 (_mm512_cmpneq_epu32_mask): Ditto.
2997 (_mm512_mask_cmpneq_epi64_mask): Ditto.
2998 (_mm512_cmpneq_epi64_mask): Ditto.
2999 (_mm512_mask_cmpneq_epu64_mask): Ditto.
3000 (_mm512_cmpneq_epu64_mask): Ditto.
3001 (_mm512_castpd_ps): Ditto.
3002 (_mm512_castpd_si512): Ditto.
3003 (_mm512_castps_pd): Ditto.
3004 (_mm512_castps_si512): Ditto.
3005 (_mm512_castsi512_ps): Ditto.
3006 (_mm512_castsi512_pd): Ditto.
3007 (_mm512_castpd512_pd128): Ditto.
3008 (_mm512_castps512_ps128): Ditto.
3009 (_mm512_castsi512_si128): Ditto.
3010 (_mm512_castpd512_pd256): Ditto.
3011 (_mm512_castps512_ps256): Ditto.
3012 (_mm512_castsi512_si256): Ditto.
3013 (_mm512_castpd128_pd512): Ditto.
3014 (_mm512_castps128_ps512): Ditto.
3015 (_mm512_castsi128_si512): Ditto.
3016 (_mm512_castpd256_pd512): Ditto.
3017 (_mm512_castps256_ps512): Ditto.
3018 (_mm512_castsi256_si512): Ditto.
3019 (_mm512_cmpeq_epu32_mask): Ditto.
3020 (_mm512_mask_cmpeq_epu32_mask): Ditto.
3021 (_mm512_mask_cmpeq_epu64_mask): Ditto.
3022 (_mm512_cmpeq_epu64_mask): Ditto.
3023 (_mm512_cmpgt_epu32_mask): Ditto.
3024 (_mm512_mask_cmpgt_epu32_mask): Ditto.
3025 (_mm512_mask_cmpgt_epu64_mask): Ditto.
3026 (_mm512_cmpgt_epu64_mask): Ditto.
3027 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
3028 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
3029 * config/i386/i386.c (enum ix86_builtins): Add
3030 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
3031 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
3032 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
3033 (bdesc_args): Add __builtin_ia32_si512_256si,
3034 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
3035 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
3036 __builtin_ia32_pd512_pd.
3037 (ix86_expand_args_builtin): Handle new FTYPEs.
3038 * config/i386/sse.md (castmode): Add 512-bit modes.
3039 (AVX512MODE2P): New.
3040 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
3041 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
3042
3043 2014-08-15 Richard Biener <rguenther@suse.de>
3044
3045 * fold-const.c (tree_swap_operands_p): Put all constants
3046 last, also strip sign-changing NOPs when considering further
3047 canonicalization. Canonicalize also when optimizing for size.
3048
3049 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3050
3051 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
3052 one_match > zero_match case to just before simple_sequence.
3053
3054 2014-08-15 Richard Biener <rguenther@suse.de>
3055
3056 * data-streamer.h (streamer_string_index, string_for_index):
3057 Remove.
3058 * data-streamer-out.c (streamer_string_index): Make static.
3059 * data-streamer-in.c (string_for_index): Likewise.
3060 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
3061 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
3062
3063 2014-08-15 Richard Biener <rguenther@suse.de>
3064
3065 PR tree-optimization/62031
3066 * tree-data-ref.c (dr_analyze_indices): Do not set
3067 DR_UNCONSTRAINED_BASE.
3068 (dr_may_alias_p): All indirect accesses have to go the
3069 formerly DR_UNCONSTRAINED_BASE path.
3070 * tree-data-ref.h (struct indices): Remove
3071 unconstrained_base member.
3072 (DR_UNCONSTRAINED_BASE): Remove.
3073
3074 2014-08-15 Jakub Jelinek <jakub@redhat.com>
3075
3076 PR middle-end/62092
3077 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
3078 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
3079 in OMP_CLAUSE_MAP in some outer target region.
3080
3081 2014-08-15 Bin Cheng <bin.cheng@arm.com>
3082
3083 * tree-ssa-loop-ivopts.c (ivopts_data): New field
3084 name_expansion_cache.
3085 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
3086 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
3087 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
3088 (difference_cannot_overflow_p): New parameter. Use affine
3089 expansion for equality check.
3090 (iv_elimination_compare_lt): Pass new argument.
3091
3092 2014-08-14 DJ Delorie <dj@redhat.com>
3093
3094 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
3095 variables to the accumulator.
3096
3097 * config/rl78/predicates.md (rl78_near_mem_operand): New.
3098 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
3099 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
3100 with far-far moves.
3101
3102 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
3103 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
3104 (umulqihi3_virt): Likewise.
3105 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
3106 (umulqihi3_real): Likewise.
3107
3108 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
3109
3110 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
3111
3112 PR tree-optimization/62091
3113 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
3114 function_entry_reached.
3115 (walk_aliased_vdefs): Clear it here.
3116 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
3117
3118 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
3119
3120 * ipa-utils.h (compare_virtual_tables): Declare.
3121 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
3122
3123 2014-08-14 Marek Polacek <polacek@redhat.com>
3124
3125 DR 458
3126 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
3127 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
3128
3129 2014-08-14 Tom de Vries <tom@codesourcery.com>
3130
3131 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
3132
3133 2014-08-14 Tom de Vries <tom@codesourcery.com>
3134
3135 PR rtl-optimization/62004
3136 PR rtl-optimization/62030
3137 * ifcvt.c (rtx_interchangeable_p): New function.
3138 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
3139 * emit-rtl.h (mem_attrs_eq_p): Declare.
3140
3141 2014-08-14 Roman Gareev <gareevroman@gmail.com>
3142
3143 * graphite-scop-detection.c:
3144 Add inclusion of cp-tree.h.
3145 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
3146 in case they are pointers to object types
3147
3148 2014-08-14 Richard Biener <rguenther@suse.de>
3149
3150 * BASE-VER: Change to 5.0.0
3151
3152 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
3153 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3154 Anna Tikhonova <anna.tikhonova@intel.com>
3155 Ilya Tocar <ilya.tocar@intel.com>
3156 Andrey Turetskiy <andrey.turetskiy@intel.com>
3157 Ilya Verbin <ilya.verbin@intel.com>
3158 Kirill Yukhin <kirill.yukhin@intel.com>
3159 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3160
3161 * config/i386/sse.md (define_mode_attr avx512): New.
3162 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
3163 V4DI modes.
3164 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
3165 (define_mode_attr ssse3_avx2): Ditto.
3166 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
3167 (define_mode_attr avx2_avx512bw): New.
3168 (define_mode_attr ssedoublemodelower): New.
3169 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
3170 V32HI, V64QI modes.
3171 (define_mode_attr ssebytemode): Allow V8DI modes.
3172 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
3173 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
3174 (define_mode_attr ssePSmode2): New.
3175 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
3176 V16HI, V32HI modes.
3177 (define_mode_attr dbpsadbwmode): New.
3178 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
3179 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
3180 (vi8_sse4_1_avx2_avx512): New.
3181 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
3182 mode attribute.
3183 (define_mode_attr blendbits): Move before its immediate use.
3184
3185 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
3186 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3187 Anna Tikhonova <anna.tikhonova@intel.com>
3188 Ilya Tocar <ilya.tocar@intel.com>
3189 Andrey Turetskiy <andrey.turetskiy@intel.com>
3190 Ilya Verbin <ilya.verbin@intel.com>
3191 Kirill Yukhin <kirill.yukhin@intel.com>
3192 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3193
3194 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
3195 * config/i386/subst.md
3196 (define_mode_iterator SUBST_V): Update.
3197 (define_mode_iterator SUBST_A): Ditto.
3198 (define_subst_attr "mask_operand7"): New.
3199 (define_subst_attr "mask_operand10"): New.
3200 (define_subst_attr "mask_operand_arg34") : New.
3201 (define_subst_attr "mask_expand_op3"): New.
3202 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
3203 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
3204 (define_subst_attr "mask_avx512vl_condition"): New.
3205 (define_subst_attr "round_mask_operand4"): Ditto.
3206 (define_subst_attr "round_mask_scalar_op3"): Delete.
3207 (define_subst_attr "round_mask_op4"): New.
3208 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
3209 V16SImode.
3210 (define_subst_attr "round_modev8sf_condition"): New.
3211 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
3212 <MODE>mode.
3213 (define_subst_attr "round_saeonly_mask_operand4"): New.
3214 (define_subst_attr "round_saeonly_mask_op4"): New.
3215 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
3216 V8DImode, V16SImode.
3217 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
3218 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
3219 (define_subst_attr "mask_expand4_args"): New.
3220 (define_subst "mask_expand4"): New.
3221
3222 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
3223 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3224 Anna Tikhonova <anna.tikhonova@intel.com>
3225 Ilya Tocar <ilya.tocar@intel.com>
3226 Andrey Turetskiy <andrey.turetskiy@intel.com>
3227 Ilya Verbin <ilya.verbin@intel.com>
3228 Kirill Yukhin <kirill.yukhin@intel.com>
3229 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3230
3231 * config/i386/i386.md
3232 (define_attr "isa"): Add avx512bw,noavx512bw.
3233 (define_attr "enabled"): Ditto.
3234 (define_split): Add 32/64-bit mask logic.
3235 (define_insn "*k<logic>qi"): New.
3236 (define_insn "*k<logic>hi"): New.
3237 (define_insn "*anddi_1"): Add mask version.
3238 (define_insn "*andsi_1"): Ditto.
3239 (define_insn "*<code><mode>_1"): Ditto.
3240 (define_insn "*<code>hi_1"): Ditto.
3241 (define_insn "kxnor<mode>"): New.
3242 (define_insn "kunpcksi"): New.
3243 (define_insn "kunpckdi"): New.
3244 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
3245 (define_insn "*one_cmplhi2_1"): Ditto.
3246
3247 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
3248 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3249 Anna Tikhonova <anna.tikhonova@intel.com>
3250 Ilya Tocar <ilya.tocar@intel.com>
3251 Andrey Turetskiy <andrey.turetskiy@intel.com>
3252 Ilya Verbin <ilya.verbin@intel.com>
3253 Kirill Yukhin <kirill.yukhin@intel.com>
3254 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3255
3256 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
3257 V32HImode.
3258
3259 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
3260 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3261 Anna Tikhonova <anna.tikhonova@intel.com>
3262 Ilya Tocar <ilya.tocar@intel.com>
3263 Andrey Turetskiy <andrey.turetskiy@intel.com>
3264 Ilya Verbin <ilya.verbin@intel.com>
3265 Kirill Yukhin <kirill.yukhin@intel.com>
3266 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3267
3268 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
3269 registers.
3270 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
3271 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
3272 xmm/ymm16+ when availble.
3273 * config/i386/i386.h
3274 (HARD_REGNO_NREGS): Add mask regs.
3275 (VALID_AVX512F_REG_MODE): Ditto.
3276 (VALID_AVX512F_REG_MODE) : Define.
3277 (VALID_MASK_AVX512BW_MODE): Ditto.
3278 (reg_class) (MASK_REG_P(X)): Define.
3279 * config/i386/i386.md: Do not split long moves with mask register,
3280 use kmovb if avx512bw is availible.
3281 (movdi_internal): Handle mask registers.
3282
3283 2014-08-14 Richard Biener <rguenther@suse.de>
3284
3285 PR tree-optimization/62081
3286 * tree-ssa-loop.c (pass_fix_loops): New pass.
3287 (pass_tree_loop::gate): Do not fixup loops here.
3288 * tree-pass.h (make_pass_fix_loops): Declare.
3289 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
3290
3291 2014-08-14 Richard Biener <rguenther@suse.de>
3292
3293 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
3294 (type_hash_canon): ... this and avoid 2nd lookup for the add.
3295
3296 2014-08-14 Richard Biener <rguenther@suse.de>
3297
3298 PR tree-optimization/62090
3299 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
3300 (fold_builtin_2): Do not fold sprintf.
3301 (fold_builtin_3): Likewise.
3302 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
3303 moved from builtins.c.
3304 (gimple_fold_builtin): Fold sprintf.
3305
3306 2014-08-14 Richard Biener <rguenther@suse.de>
3307
3308 PR rtl-optimization/62079
3309 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
3310 run cleanup_cfg.
3311
3312 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
3313
3314 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
3315 current_function_decl.
3316
3317 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
3318
3319 * cgraph.c (cgraph_node::function_symbol): Fix wrong
3320 cgraph_function_node to cgraph_node::function_symbol
3321 refactoring.
3322
3323 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
3324
3325 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
3326 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
3327
3328 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
3329
3330 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
3331 warning.
3332
3333 2014-08-13 Roman Gareev <gareevroman@gmail.com>
3334
3335 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
3336 generator.
3337
3338 2014-08-12 Jakub Jelinek <jakub@redhat.com>
3339
3340 PR target/62025
3341 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
3342 any registers that are used in mem_insn.
3343
3344 2014-08-12 Steve Ellcey <sellcey@mips.com>
3345
3346 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
3347
3348 2014-08-12 Steve Ellcey <sellcey@mips.com>
3349
3350 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
3351 (MULTILIB_DIRNAMES): Ditto.
3352 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
3353 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
3354 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
3355 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
3356 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
3357 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
3358
3359 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3360
3361 PR target/61413
3362 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
3363 of __ARM_SIZEOF_WCHAR_T.
3364
3365 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3366
3367 PR target/62098
3368 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
3369 Remove unnecessary attributes.
3370
3371 2014-08-12 Yury Gribov <y.gribov@samsung.com>
3372
3373 * internal-fn.c (init_internal_fns): Fix off-by-one.
3374
3375 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
3376 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3377 Anna Tikhonova <anna.tikhonova@intel.com>
3378 Ilya Tocar <ilya.tocar@intel.com>
3379 Andrey Turetskiy <andrey.turetskiy@intel.com>
3380 Ilya Verbin <ilya.verbin@intel.com>
3381 Kirill Yukhin <kirill.yukhin@intel.com>
3382 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3383
3384 * config/i386/i386.c (standard_sse_constant_opcode): Use
3385 vpxord/vpternlog if avx512 is availible.
3386
3387 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
3388
3389 PR middle-end/62103
3390 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
3391 bitfields, that is when size doesn't match the size of type or the
3392 size of the constructor.
3393
3394 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3395
3396 * config/rs6000/constraints.md (wh constraint): New constraint,
3397 for FP registers if direct move is available.
3398 (wi constraint): New constraint, for VSX/FP registers that can
3399 handle 64-bit integers.
3400 (wj constraint): New constraint for VSX/FP registers that can
3401 handle 64-bit integers for direct moves.
3402 (wk constraint): New constraint for VSX/FP registers that can
3403 handle 64-bit doubles for direct moves.
3404 (wy constraint): Make documentation match implementation.
3405
3406 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
3407 scalar_in_vmx_p field to simplify tests of whether SFmode or
3408 DFmode can go in the Altivec registers.
3409 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
3410 (rs6000_setup_reg_addr_masks): Likewise.
3411 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
3412 field, and wh/wi/wj/wk constraints.
3413 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
3414 the wh/wi/wj/wk constraints.
3415 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
3416 upper registers, prefer VSX registers unless the operation is a
3417 memory operation with REG+OFFSET addressing.
3418
3419 * config/rs6000/vsx.md (VSr mode attribute): Add support for
3420 DImode. Change SFmode to use ww constraint instead of d to allow
3421 SF registers in the upper registers.
3422 (VSr2): Likewise.
3423 (VSr3): Likewise.
3424 (VSr5): Fix thinko in comment.
3425 (VSa): New mode attribute that is an alternative to wa, that
3426 returns the VSX register class that a mode can go in, but may not
3427 be the preferred register class.
3428 (VS_64dm): New mode attribute for appropriate register classes for
3429 referencing 64-bit elements of vectors for direct moves and normal
3430 moves.
3431 (VS_64reg): Likewise.
3432 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
3433 register allocator to only registers the data type can handle.
3434 (vsx_le_perm_load_<mode>): Likewise.
3435 (vsx_le_perm_store_<mode>): Likewise.
3436 (vsx_xxpermdi2_le_<mode>): Likewise.
3437 (vsx_xxpermdi4_le_<mode>): Likewise.
3438 (vsx_lxvd2x2_le_<mode>): Likewise.
3439 (vsx_lxvd2x4_le_<mode>): Likewise.
3440 (vsx_stxvd2x2_le_<mode>): Likewise.
3441 (vsx_add<mode>3): Likewise.
3442 (vsx_sub<mode>3): Likewise.
3443 (vsx_mul<mode>3): Likewise.
3444 (vsx_div<mode>3): Likewise.
3445 (vsx_tdiv<mode>3_internal): Likewise.
3446 (vsx_fre<mode>2): Likewise.
3447 (vsx_neg<mode>2): Likewise.
3448 (vsx_abs<mode>2): Likewise.
3449 (vsx_nabs<mode>2): Likewise.
3450 (vsx_smax<mode>3): Likewise.
3451 (vsx_smin<mode>3): Likewise.
3452 (vsx_sqrt<mode>2): Likewise.
3453 (vsx_rsqrte<mode>2): Likewise.
3454 (vsx_tsqrt<mode>2_internal): Likewise.
3455 (vsx_fms<mode>4): Likewise.
3456 (vsx_nfma<mode>4): Likewise.
3457 (vsx_eq<mode>): Likewise.
3458 (vsx_gt<mode>): Likewise.
3459 (vsx_ge<mode>): Likewise.
3460 (vsx_eq<mode>_p): Likewise.
3461 (vsx_gt<mode>_p): Likewise.
3462 (vsx_ge<mode>_p): Likewise.
3463 (vsx_xxsel<mode>): Likewise.
3464 (vsx_xxsel<mode>_uns): Likewise.
3465 (vsx_copysign<mode>3): Likewise.
3466 (vsx_float<VSi><mode>2): Likewise.
3467 (vsx_floatuns<VSi><mode>2): Likewise.
3468 (vsx_fix_trunc<mode><VSi>2): Likewise.
3469 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
3470 (vsx_x<VSv>r<VSs>i): Likewise.
3471 (vsx_x<VSv>r<VSs>ic): Likewise.
3472 (vsx_btrunc<mode>2): Likewise.
3473 (vsx_b2trunc<mode>2): Likewise.
3474 (vsx_floor<mode>2): Likewise.
3475 (vsx_ceil<mode>2): Likewise.
3476 (vsx_<VS_spdp_insn>): Likewise.
3477 (vsx_xscvspdp): Likewise.
3478 (vsx_xvcvspuxds): Likewise.
3479 (vsx_float_fix_<mode>2): Likewise.
3480 (vsx_set_<mode>): Likewise.
3481 (vsx_extract_<mode>_internal1): Likewise.
3482 (vsx_extract_<mode>_internal2): Likewise.
3483 (vsx_extract_<mode>_load): Likewise.
3484 (vsx_extract_<mode>_store): Likewise.
3485 (vsx_splat_<mode>): Likewise.
3486 (vsx_xxspltw_<mode>): Likewise.
3487 (vsx_xxspltw_<mode>_direct): Likewise.
3488 (vsx_xxmrghw_<mode>): Likewise.
3489 (vsx_xxmrglw_<mode>): Likewise.
3490 (vsx_xxsldwi_<mode>): Likewise.
3491 (vsx_xscvdpspn): Tighten constraints to only use register classes
3492 the types use.
3493 (vsx_xscvspdpn): Likewise.
3494 (vsx_xscvdpspn_scalar): Likewise.
3495
3496 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
3497 wj, and wk constraints.
3498 (GPR_REG_CLASS_P): New helper macro for register classes targeting
3499 general purpose registers.
3500
3501 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
3502 direct moves.
3503 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
3504 DImode instead of wm. Use wk constraint for direct move of DFmode
3505 instead of wm.
3506 (extendsidi2_lfiwax): Likewise.
3507 (lfiwax): Likewise.
3508 (lfiwzx): Likewise.
3509 (movdi_internal64): Likewise.
3510
3511 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
3512 wk constraints. Make the wy constraint documentation match them
3513 implementation.
3514
3515 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
3516
3517 Replacement of isl_int by isl_val
3518 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
3519 (compute_bounds_for_param): use isl_val instead of isl_int
3520 (compute_bounds_for_loop): likewise
3521 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
3522 (build_linearized_memory_access): use isl_val instead of isl_int
3523 (pdr_stride_in_loop): likewise
3524 * graphite-optimize-isl.c:
3525 (getPrevectorMap): use isl_val instead of isl_int
3526 * graphite-poly.c:
3527 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
3528 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
3529 (extern the_isl_ctx): declare
3530 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
3531 (extract_affine_gmp): likewise
3532 (wrap): likewise
3533 (build_loop_iteration_domains): likewise
3534 (add_param_constraints): likewise
3535
3536 2014-08-11 Richard Biener <rguenther@suse.de>
3537
3538 PR tree-optimization/62075
3539 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
3540 handle uses in patterns.
3541
3542 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
3543 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3544 Anna Tikhonova <anna.tikhonova@intel.com>
3545 Ilya Tocar <ilya.tocar@intel.com>
3546 Andrey Turetskiy <andrey.turetskiy@intel.com>
3547 Ilya Verbin <ilya.verbin@intel.com>
3548 Kirill Yukhin <kirill.yukhin@intel.com>
3549 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3550
3551 * common/config/i386/i386-common.c
3552 (OPTION_MASK_ISA_AVX512VL_SET): Define.
3553 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
3554 (ix86_handle_option): Handle OPT_mavx512vl.
3555 * config/i386/cpuid.h (bit_AVX512VL): Define.
3556 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
3557 set -mavx512vl accordingly.
3558 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3559 OPTION_MASK_ISA_AVX512VL.
3560 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
3561 (ix86_option_override_internal): Define PTA_AVX512VL, handle
3562 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
3563 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
3564 * config/i386/i386.h (TARGET_AVX512VL): Define.
3565 (TARGET_AVX512VL_P(x)): Ditto.
3566 * config/i386/i386.opt: Add mavx512vl.
3567
3568 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
3569
3570 PR tree-optimization/62073
3571 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
3572 a basic block.
3573
3574 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
3575 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3576 Anna Tikhonova <anna.tikhonova@intel.com>
3577 Ilya Tocar <ilya.tocar@intel.com>
3578 Andrey Turetskiy <andrey.turetskiy@intel.com>
3579 Ilya Verbin <ilya.verbin@intel.com>
3580 Kirill Yukhin <kirill.yukhin@intel.com>
3581 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3582
3583 * common/config/i386/i386-common.c
3584 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
3585 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
3586 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
3587 (ix86_handle_option): Handle OPT_mavx512bw.
3588 * config/i386/cpuid.h (bit_AVX512BW): Define.
3589 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
3590 set -mavx512bw accordingly.
3591 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3592 OPTION_MASK_ISA_AVX512BW.
3593 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
3594 (ix86_option_override_internal): Define PTA_AVX512BW, handle
3595 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
3596 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
3597 * config/i386/i386.h (TARGET_AVX512BW): Define.
3598 (TARGET_AVX512BW_P(x)): Ditto.
3599 * config/i386/i386.opt: Add mavx512bw.
3600
3601 2014-08-11 Richard Biener <rguenther@suse.de>
3602
3603 PR tree-optimization/62070
3604 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
3605 Remove SSA checking.
3606
3607 2014-08-11 Yury Gribov <y.gribov@samsung.com>
3608
3609 * asan.c (asan_check_flags): New enum.
3610 (build_check_stmt_with_calls): Removed function.
3611 (build_check_stmt): Split inlining logic to
3612 asan_expand_check_ifn.
3613 (instrument_derefs): Rename parameter.
3614 (instrument_mem_region_access): Rename parameter.
3615 (instrument_strlen_call): Likewise.
3616 (asan_expand_check_ifn): New function.
3617 (asan_instrument): Remove old code.
3618 (pass_sanopt::execute): Change handling of
3619 asan-instrumentation-with-call-threshold.
3620 (asan_clear_shadow): Fix formatting.
3621 (asan_function_start): Likewise.
3622 (asan_emit_stack_protection): Likewise.
3623 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
3624 Update description.
3625 * internal-fn.c (expand_ASAN_CHECK): New function.
3626 * internal-fn.def (ASAN_CHECK): New internal function.
3627 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
3628 Update description.
3629 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
3630 * tree.c: Small comment fix.
3631
3632 2014-08-11 Yury Gribov <y.gribov@samsung.com>
3633
3634 * gimple.c (gimple_call_fnspec): Support internal functions.
3635 (gimple_call_return_flags): Use const.
3636 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
3637 * internal-fn.def: Add fnspec information.
3638 * internal-fn.h (internal_fn_fnspec): New function.
3639 (init_internal_fns): Declare new function.
3640 * internal-fn.c (internal_fn_fnspec_array): New global variable.
3641 (init_internal_fns): New function.
3642 * tree-core.h: Update macro call.
3643 * tree.c (build_common_builtin_nodes): Initialize internal fns.
3644
3645 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
3646
3647 * lto-streamer.h (struct output_block::symbol): Change from
3648 struct symtab_node to plain symtab_node.
3649 (referenced_from_this_partition_p): Change first parameter
3650 from struct symtab_node to plain symtab_node.
3651
3652 2014-08-10 Marek Polacek <polacek@redhat.com>
3653
3654 PR c/51849
3655 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
3656
3657 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
3658
3659 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
3660 DECL correctly; do not give up on types in static storage.
3661
3662 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
3663
3664 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
3665
3666 2014-08-09 Roman Gareev <gareevroman@gmail.com>
3667
3668 * graphite-isl-ast-to-gimple.c:
3669 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
3670
3671 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
3672
3673 2014-08-08 Guozhi Wei <carrot@google.com>
3674
3675 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
3676
3677 2014-08-08 Cary Coutant <ccoutant@google.com>
3678
3679 * dwarf2out.c (get_skeleton_type_unit): Remove.
3680 (output_skeleton_debug_sections): Remove skeleton type units.
3681 (output_comdat_type_unit): Likewise.
3682 (dwarf2out_finish): Likewise.
3683
3684 2014-08-07 Yi Yang <ahyangyi@google.com>
3685
3686 * predict.c (expr_expected_value_1): Remove the redundant assignment.
3687
3688 2014-08-08 Richard Biener <rguenther@suse.de>
3689
3690 * lto-streamer.h (struct lto_input_block): Make it a class
3691 with a constructor.
3692 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
3693 (struct lto_function_header, struct lto_simple_header,
3694 struct lto_simple_header_with_strings,
3695 struct lto_decl_header, struct lto_function_header): Make
3696 a simple inheritance hieararchy. Remove unused fields.
3697 (struct lto_asm_header): Remove.
3698 * lto-streamer-out.c (produce_asm): Adjust.
3699 (lto_output_toplevel_asms): Likewise.
3700 (produce_asm_for_decls): Likewise.
3701 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
3702 * data-streamer-in.c (string_for_index): Likewise.
3703 * ipa-inline-analysis.c (inline_read_section): Likewise.
3704 * ipa-prop.c (ipa_prop_read_section): Likewise.
3705 (read_replacements_section): Likewise.
3706 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
3707 * lto-section-in.c (lto_create_simple_input_block): Likewise.
3708 (lto_destroy_simple_input_block): Likewise.
3709 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
3710 (lto_input_toplevel_asms): Likewise.
3711
3712 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
3713 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3714 Anna Tikhonova <anna.tikhonova@intel.com>
3715 Ilya Tocar <ilya.tocar@intel.com>
3716 Andrey Turetskiy <andrey.turetskiy@intel.com>
3717 Ilya Verbin <ilya.verbin@intel.com>
3718 Kirill Yukhin <kirill.yukhin@intel.com>
3719 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3720
3721 * common/config/i386/i386-common.c
3722 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
3723 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
3724 (ix86_handle_option): Handle OPT_mavx512dq.
3725 * config/i386/cpuid.h (bit_AVX512DQ): Define.
3726 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
3727 set -mavx512dq accordingly.
3728 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3729 OPTION_MASK_ISA_AVX512DQ.
3730 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
3731 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
3732 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
3733 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
3734 * config/i386/i386.h (TARGET_AVX512DQ): Define.
3735 (TARGET_AVX512DQ_P(x)): Ditto.
3736 * config/i386/i386.opt: Add mavx512dq.
3737
3738 2014-08-08 Richard Biener <rguenther@suse.de>
3739
3740 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
3741 target_percent, target_percent_s): Export.
3742 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
3743 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
3744 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
3745 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
3746 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
3747 Move to gimple-fold.c.
3748 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
3749 strcat and strcpy.
3750 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
3751 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
3752 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
3753 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
3754 (rewrite_call_expr_array): Remove.
3755 (fold_builtin_sprintf_chk): Likewise.
3756 (fold_builtin_snprintf_chk): Likewise.
3757 (fold_builtin_varargs): Remove handling of sprintf_chk,
3758 vsprintf_chk, snprintf_chk and vsnprintf_chk.
3759 (gimple_fold_builtin_sprintf_chk): Remove.
3760 (gimple_fold_builtin_snprintf_chk): Likewise.
3761 (gimple_fold_builtin_varargs): Likewise.
3762 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
3763 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
3764 * gimple.c (gimple_seq_add_seq_without_update): New function.
3765 * gimple.h (gimple_seq_add_seq_without_update): Declare.
3766 * gimple-fold.c: Include output.h.
3767 (gsi_replace_with_seq_vops): New function, split out from ...
3768 (gimplify_and_update_call_from_tree): ... here.
3769 (replace_call_with_value): New function.
3770 (replace_call_with_call_and_fold): Likewise.
3771 (var_decl_component_p): Moved from builtins.c.
3772 (gimple_fold_builtin_memory_op): Moved from builtins.c
3773 fold_builtin_memory_op and rewritten to GIMPLE.
3774 (gimple_fold_builtin_memset): Likewise.
3775 (gimple_fold_builtin_strcpy): Likewise.
3776 (gimple_fold_builtin_strncpy): Likewise.
3777 (gimple_fold_builtin_strcat): Likewise.
3778 (gimple_fold_builtin_fputs): Likewise.
3779 (gimple_fold_builtin_memory_chk): Likewise.
3780 (gimple_fold_builtin_stxcpy_chk): Likewise.
3781 (gimple_fold_builtin_stxncpy_chk): Likewise.
3782 (gimple_fold_builtin_snprintf_chk): Likewise.
3783 (gimple_fold_builtin_sprintf_chk): Likewise.
3784 (gimple_fold_builtin_strlen): New function.
3785 (gimple_fold_builtin_with_strlen): New function split out from
3786 gimple_fold_builtin.
3787 (gimple_fold_builtin): Change signature and handle
3788 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
3789 here. Call gimple_fold_builtin_with_strlen.
3790 (gimple_fold_call): Adjust.
3791
3792 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
3793
3794 * calls.c (precompute_arguments): Check
3795 promoted_for_signed_and_unsigned_p and set the promoted mode.
3796 (promoted_for_signed_and_unsigned_p): New function.
3797 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
3798 and set the promoted mode.
3799 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
3800 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
3801 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
3802
3803
3804 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
3805
3806 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
3807 instead of SUBREG_PROMOTED_UNSIGNED_SET.
3808 (expand_call): Likewise.
3809 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
3810 to get promoted mode.
3811 * combine.c (record_promoted_value): Skip > 0 comparison with
3812 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
3813 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
3814 of SUBREG_PROMOTED_UNSIGNED_P.
3815 (convert_modes): Likewise.
3816 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
3817 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
3818 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
3819 SUBREG_PROMOTED_UNSIGNED_SET.
3820 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
3821 instead of SUBREG_PROMOTED_UNSIGNED_SET.
3822 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
3823 SUBREG_PROMOTED_SET.
3824 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
3825 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
3826 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
3827 of SUBREG_PROMOTED_UNSIGNED_P.
3828 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
3829 (SUBREG_PROMOTED_SET): New define.
3830 (SUBREG_PROMOTED_GET): Likewise.
3831 (SUBREG_PROMOTED_SIGN): Likewise.
3832 (SUBREG_PROMOTED_SIGNED_P): Likewise.
3833 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
3834 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
3835 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
3836 instead of SUBREG_PROMOTED_UNSIGNED_GET.
3837 (nonzero_bits1): Skip > 0 comparison with the results as
3838 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
3839 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
3840 of !SUBREG_PROMOTED_UNSIGNED_P.
3841 * simplify-rtx.c (simplify_unary_operation_1): Use new
3842 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
3843 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
3844 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
3845 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
3846
3847 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
3848
3849 * ipa-devirt.c: Include gimple-pretty-print.h
3850 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
3851 further tests.
3852 (decl_maybe_in_construction_p): Fix conditional on cdtor check
3853 (get_polymorphic_call_info): Fix return value
3854 (type_change_info): New sturcture based on ipa-prop
3855 variant.
3856 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
3857 based on ipa-prop variant.
3858 (extr_type_from_vtbl_ptr_store): New function
3859 based on ipa-prop variant.
3860 (record_known_type): New function.
3861 (check_stmt_for_type_change): New function.
3862 (get_dynamic_type): New function.
3863 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
3864 * tree-ssa-pre.c: ipa-utils.h
3865 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
3866 machinery; sanity check with ipa-prop devirtualization.
3867 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
3868 polymorphic flag.
3869
3870 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3871
3872 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
3873 * alias.c, cfgexpand.c, cgraphbuild.c,
3874 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
3875 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
3876 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
3877 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
3878 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
3879 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
3880 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
3881 dse.c, except.c, gengtype.c, gimple-expr.c,
3882 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
3883 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
3884 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
3885 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
3886 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
3887 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
3888 pointer-set.h.
3889 * pointer-set.c: Remove file.
3890 * pointer-set.h: Remove file.
3891
3892 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3893
3894 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
3895 * config/arm/types.md (f_sels, f_seld): Delete.
3896
3897 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3898
3899 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
3900 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
3901 (aarch64_movdi_<mode>high): Likewise.
3902 (aarch64_mov<mode>high_di): Likewise.
3903 (aarch64_movdi_<mode>low): Likewise.
3904 (aarch64_mov<mode>low_di): Likewise.
3905 (aarch64_movtilow_tilow): Likewise.
3906 Add comment explaining usage of fp,simd attributes and of
3907 TARGET_FLOAT and TARGET_SIMD.
3908
3909 2014-08-07 Ian Bolton <ian.bolton@arm.com>
3910 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3911
3912 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
3913 Use MOVN when one of the half-words is 0xffff.
3914
3915 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
3916
3917 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
3918
3919 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3920
3921 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
3922 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
3923 (rfs_str): String corresponding to RFS_* constants.
3924 (rank_for_schedule_stats_t): New typedef.
3925 (rank_for_schedule_stats): New static variable.
3926 (rfs_result): New static function.
3927 (rank_for_schedule): Track statistics for deciding heuristics.
3928 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
3929 static functions.
3930 (ready_sort): Use them for debug printouts.
3931 (schedule_block): Init statistics state. Print statistics on
3932 rank_for_schedule decisions.
3933
3934 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3935
3936 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
3937
3938 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
3939
3940 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
3941 constraint.
3942
3943 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3944
3945 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
3946 function to not conflict.
3947 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
3948 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
3949 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
3950 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
3951 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
3952 of pointer_map.
3953
3954 2014-08-07 Marek Polacek <polacek@redhat.com>
3955
3956 * fold-const.c (fold_binary_loc): Add folding of
3957 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
3958
3959 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
3960
3961 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
3962 instead of type size.
3963 (ASM_FINISH_DECLARE_OBJECT): Likewise.
3964
3965 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
3966
3967 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
3968 (*thumb1_movqi_insn): Likewise.
3969 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
3970
3971 2014-08-07 Tom de Vries <tom@codesourcery.com>
3972
3973 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
3974 (glibc_2_11_or_earlier): Remove effective-target keywords.
3975
3976 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
3977
3978 * config/arm/arm.c (bdesc_2arg): Fix typo.
3979 (arm_atomic_assign_expand_fenv): Remove The default implementation.
3980
3981 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
3982
3983 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
3984
3985 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
3986
3987 PR debug/61923
3988 * haifa-sched.c (advance_one_cycle): Fix dump.
3989 (schedule_block): Don't advance cycle if we are already at the
3990 beginning of the cycle.
3991
3992 2014-08-06 Martin Jambor <mjambor@suse.cz>
3993
3994 PR ipa/61393
3995 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
3996
3997 2014-08-06 Richard Biener <rguenther@suse.de>
3998
3999 PR lto/62034
4000 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
4001 SCCs here.
4002 (lto_input_tree): Pop SCCs here.
4003
4004 2014-08-06 Richard Biener <rguenther@suse.de>
4005
4006 PR tree-optimization/61320
4007 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
4008 handle misaligned loads.
4009
4010 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
4011
4012 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
4013 (aarch64_expand_vec_perm_const): Check for dup before zip.
4014
4015 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4016
4017 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
4018 CONST_INT_P instead of GET_CODE and compare.
4019 (aarch64_select_cc_mode): Likewise.
4020 (aarch64_print_operand): Likewise.
4021 (aarch64_rtx_costs): Likewise.
4022 (aarch64_simd_valid_immediate): Likewise.
4023 (aarch64_simd_check_vect_par_cnst_half): Likewise.
4024 (aarch64_simd_emit_pair_result_insn): Likewise.
4025
4026 2014-08-05 David Malcolm <dmalcolm@redhat.com>
4027
4028 * gdbhooks.py (find_gcc_source_dir): New helper function.
4029 (class PassNames): New class, locating and parsing passes.def.
4030 (class BreakOnPass): New command "break-on-pass".
4031
4032 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
4033
4034 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
4035 getting olde.
4036
4037 2014-08-05 Richard Biener <rguenther@suse.de>
4038
4039 PR rtl-optimization/61672
4040 * emit-rtl.h (mem_attrs_eq_p): Declare.
4041 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
4042 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
4043 * cfgcleanup.c (merge_memattrs): Likewise.
4044 Include emit-rtl.h.
4045
4046 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4047
4048 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
4049 rather than singleton vectors.
4050 (vqdmlsls_lane_s32): Likewise.
4051
4052 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4053
4054 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
4055 Use VSDQ_HSI mode iterator.
4056 (aarch64_sqrdmulh_laneq<mode>): Likewise.
4057 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
4058 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
4059 Use BUILTIN_VDQHS macro.
4060 (sqrdmulh_laneq): Likewise.
4061 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
4062 (vqdmlals_laneq_s32): Likewise.
4063 (vqdmlslh_laneq_s16): Likewise.
4064 (vqdmlsls_laneq_s32): Likewise.
4065 (vqdmulhh_laneq_s16): Likewise.
4066 (vqdmulhs_laneq_s32): Likewise.
4067 (vqrdmulhh_laneq_s16): Likewise.
4068 (vqrdmulhs_laneq_s32): Likewise.
4069
4070 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4071
4072 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
4073 (vmuld_laneq_f64): Likewise.
4074 (vmuls_laneq_f32): Likewise.
4075 (vmul_n_f64): Likewise.
4076 (vmuld_lane_f64): Reimplement in C.
4077 (vmuls_lane_f32): Likewise.
4078
4079 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4080
4081 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
4082 to reservation.
4083 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
4084
4085 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4086
4087 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
4088 (rbitsi2): Likewise.
4089 (*arm_rev): Set predicable and predicable_short_it attributes.
4090
4091 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4092
4093 * convert.c (convert_to_integer): Guard transformation to lrint by
4094 -fno-math-errno.
4095
4096 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
4097
4098 * config/aarch64/aarch64-builtins.c
4099 (aarch64_simd_builtin_type_mode): Delete.
4100 (v8qi_UP): Remap to V8QImode.
4101 (v4hi_UP): Remap to V4HImode.
4102 (v2si_UP): Remap to V2SImode.
4103 (v2sf_UP): Remap to V2SFmode.
4104 (v1df_UP): Remap to V1DFmode.
4105 (di_UP): Remap to DImode.
4106 (df_UP): Remap to DFmode.
4107 (v16qi_UP):V16QImode.
4108 (v8hi_UP): Remap to V8HImode.
4109 (v4si_UP): Remap to V4SImode.
4110 (v4sf_UP): Remap to V4SFmode.
4111 (v2di_UP): Remap to V2DImode.
4112 (v2df_UP): Remap to V2DFmode.
4113 (ti_UP): Remap to TImode.
4114 (ei_UP): Remap to EImode.
4115 (oi_UP): Remap to OImode.
4116 (ci_UP): Map to CImode.
4117 (xi_UP): Remap to XImode.
4118 (si_UP): Remap to SImode.
4119 (sf_UP): Remap to SFmode.
4120 (hi_UP): Remap to HImode.
4121 (qi_UP): Remap to QImode.
4122 (aarch64_simd_builtin_datum): Make mode a machine_mode.
4123 (VAR1): Build builtin name.
4124 (aarch64_init_simd_builtins): Remove dead code.
4125
4126 2014-08-05 Roman Gareev <gareevroman@gmail.com>
4127
4128 * graphite-isl-ast-to-gimple.c:
4129 (set_options): New function.
4130 (scop_to_isl_ast): Add calling of set_options.
4131
4132 2014-08-05 Jakub Jelinek <jakub@redhat.com>
4133
4134 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
4135 (analyze_iv_to_split_insn): Don't initialize them.
4136 (get_ivts_expr): Removed.
4137 (allocate_basic_variable, insert_base_initialization): Use
4138 SET_SRC instead of *get_ivts_expr.
4139 (split_iv): Use &SET_SRC instead of get_ivts_expr.
4140
4141 2014-08-05 Roman Gareev <gareevroman@gmail.com>
4142
4143 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
4144 (translate_isl_ast_for_loop): Add checking of the
4145 flag_loop_parallelize_all.
4146 (ast_build_before_for): New function.
4147 (scop_to_isl_ast): Add checking of the
4148 flag_loop_parallelize_all.
4149 * graphite-dependences.c: Move the defenition of the
4150 scop_get_dependences from graphite-optimize-isl.c to this file.
4151 (apply_schedule_on_deps): Add checking of the ux's emptiness.
4152 (carries_deps): Add checking of the x's value.
4153 * graphite-optimize-isl.c: Move the defenition of the
4154 scop_get_dependences to graphite-dependences.c.
4155 * graphite-poly.h: Add declarations of scop_get_dependences
4156 and carries_deps.
4157
4158 2014-08-04 Rohit <rohitarulraj@freescale.com>
4159
4160 PR target/60102
4161 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
4162 names.
4163 (alt_reg_names): Likewise.
4164 (rs6000_dwarf_register_span): For SPE high registers, replace
4165 dwarf register numbers with GCC hard register numbers.
4166 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
4167 (rs6000_dbx_register_number): For SPE high registers, return dwarf
4168 register number for the corresponding GCC hard register number.
4169 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
4170 newly added GCC hard register numbers for SPE high registers.
4171 (DWARF_FRAME_REGISTERS): Likewise.
4172 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
4173 (DWARF_FRAME_REGNUM): Likewise.
4174 (FIXED_REGISTERS): Likewise.
4175 (CALL_USED_REGISTERS): Likewise.
4176 (CALL_REALLY_USED_REGISTERS): Likewise.
4177 (REG_ALLOC_ORDER): Likewise.
4178 (enum reg_class): Likewise.
4179 (REG_CLASS_NAMES): Likewise.
4180 (REG_CLASS_CONTENTS): Likewise.
4181 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
4182
4183 2014-08-04 Richard Biener <rguenther@suse.de>
4184
4185 * gimple-fold.h (gimple_fold_builtin): Remove.
4186 * gimple-fold.c (gimple_fold_builtin): Make static.
4187 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
4188 fold_stmt, not gimple_fold_builtin.
4189
4190 2014-08-04 Martin Liska <mliska@suse.cz>
4191
4192 * cgraph.h (csi_end_p): Removed.
4193 (csi_next): Likewise.
4194 (csi_node): Likewise.
4195 (csi_start): Likewise.
4196 (cgraph_node_in_set_p): Likewise.
4197 (cgraph_node_set_size): Likewise.
4198 (vsi_end_p): Likewise.
4199 (vsi_next): Likewise.
4200 (vsi_node): Likewise.
4201 (vsi_start): Likewise.
4202 (varpool_node_set_size): Likewise.
4203 (cgraph_node_set_nonempty_p): Likewise.
4204 (varpool_node_set_nonempty_p): Likewise.
4205 * cgraphunit.c (cgraph_process_new_functions): vec replaces
4206 cgraph_node_set.
4207 * ipa-inline-transform.c: Likewise.
4208 * ipa-utils.c (cgraph_node_set_new): Removed.
4209 (cgraph_node_set_add): Likewise.
4210 (cgraph_node_set_remove): Likewise.
4211 (cgraph_node_set_find): Likewise.
4212 (dump_cgraph_node_set): Likewise.
4213 (debug_cgraph_node_set): Likewise.
4214 (free_cgraph_node_set): Likewise.
4215 (varpool_node_set_new): Likewise.
4216 (varpool_node_set_add): Likewise.
4217 (varpool_node_set_remove): Likewise.
4218 (varpool_node_set_find): Likewise.
4219 (dump_varpool_node_set): Likewise.
4220 (free_varpool_node_set): Likewise.
4221 (debug_varpool_node_set): Likewise.
4222 * tree-emutls.c (struct tls_var_data):
4223 (emutls_index): Removed.
4224 (emutls_decl): Likewise.
4225 (gen_emutls_addr): Function implementation uses newly added
4226 hash_map<varpool_node *, tls_var_data>.
4227 (clear_access_vars): Likewise.
4228 (create_emultls_var): Likewise.
4229 (ipa_lower_emutls): Likewise.
4230 (reset_access): New function.
4231
4232 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4233
4234 * config/i386/i386.c (ix86_option_override_internal): Add
4235 PTA_RDRND and PTA_MOVBE for bdver4.
4236
4237 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4238 James Greenhalgh <james.greenhalgh@arm.com>
4239
4240 * doc/md.texi (clrsb): Document.
4241 (clz): Change reference to x into operand 1.
4242 (ctz): Likewise.
4243 (popcount): Likewise.
4244
4245 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4246
4247 PR target/61713
4248 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
4249 move to subtarget in serial version if result is ignored.
4250
4251 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4252 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4253
4254 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
4255 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
4256 (sched_analyze_insn): Update use of try_group_insn to
4257 sched_macro_fuse_insns.
4258 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
4259 arguments that are not conditional jumps.
4260
4261 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4262
4263 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
4264 family information. Handle BTVER2 cpu with cpuid family value.
4265
4266 2014-08-04 Tom de Vries <tom@codesourcery.com>
4267
4268 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
4269 (glibc_2_11_or_earlier): Document effective-target keywords.
4270
4271 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
4272
4273 * ipa-devirt.c (odr_type_warn_count): Add type.
4274 (possible_polymorphic_call_targets): Set it.
4275 (ipa_devirt): Use it.
4276
4277 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
4278
4279 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
4280 Document.
4281 * ipa-devirt.c: Include hash-map.h
4282 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
4283 (clear_speculation): Break out of ...
4284 (get_class_context): ... here; speed up handling obviously useless
4285 speculations.
4286 (odr_type_warn_count, decl_warn_count): New structures.
4287 (final_warning_record): New structure.
4288 (final_warning_records): New static variable.
4289 (possible_polymorphic_call_targets): Cleanup handling of
4290 speculative info; do not build speculation when user do not care;
4291 record info about warnings when asked for.
4292 (add_decl_warning): New function.
4293 (type_warning_cmp): New function.
4294 (decl_warning_cmp): New function.
4295 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
4296 (gate): Enable pass when warnings are requested.
4297 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
4298 options.
4299
4300 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4301
4302 * hash-map.h (default_hashmap_traits::mark_key_deleted):
4303 Fix cast.
4304 (hash_map::remove): New method.
4305 (hash_map::traverse): New method.
4306 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
4307 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
4308 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
4309 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
4310 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
4311 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
4312 pointer_map.
4313
4314 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4315
4316 * hash-set.h: new File.
4317 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
4318 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
4319 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
4320 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
4321 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
4322 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
4323 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
4324 varpool.c: Use hash_set instead of pointer_set.
4325
4326 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
4327
4328 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
4329
4330 2014-08-01 Jiong Wang <jiong.wang@arm.com>
4331
4332 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
4333 for frame access when strict_p is false.
4334
4335 2014-08-01 Renlin Li <renlin.li@arm.com>
4336 2014-08-01 Jiong Wang <jiong.wang@arm.com>
4337
4338 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
4339 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
4340 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
4341 Declaration.
4342 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
4343 predicate.
4344 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
4345 aarch64_mem_pair_offset.
4346
4347 2014-08-01 Jiong Wang <jiong.wang@arm.com>
4348
4349 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
4350 offset.
4351 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
4352 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
4353
4354 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
4355
4356 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
4357
4358 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
4359
4360 PR regression/61510
4361 * cgraphunit.c (analyze_functions): Use get_create rather than get
4362 for decls which are clones of abstract functions.
4363
4364 2014-08-01 Martin Liska <mliska@suse.cz>
4365
4366 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
4367 * ipa-prop.h (count_formal_params): Global function created from static.
4368 * ipa-prop.c (count_formal_params): Likewise.
4369 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
4370 profiles for semantically equivalent functions.
4371 * passes.c (do_per_function): If we load body of a function
4372 during WPA, this condition should behave same.
4373 * varpool.c (ctor_for_folding): More tolerant assert for variable
4374 aliases created during WPA.
4375
4376 2014-08-01 Martin Liska <mliska@suse.cz>
4377
4378 * doc/invoke.texi (Options That Control Optimization): Documentation
4379 for -foptimize-strlen introduced. Optimization levels default options
4380 fixed.
4381
4382 2014-08-01 Jakub Jelinek <jakub@redhat.com>
4383
4384 * opts.c (common_handle_option): Handle -fsanitize=alignment.
4385 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
4386 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
4387 type to bool.
4388 * stor-layout.h (min_align_of_type): New prototype.
4389 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
4390 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
4391 check.
4392 * ubsan.c: Include builtins.h.
4393 (ubsan_expand_bounds_ifn): Change return type to bool,
4394 always return true.
4395 (ubsan_expand_null_ifn): Change return type to bool, change
4396 argument to gimple_stmt_iterator *. Handle both null and alignment
4397 sanitization, take type from ckind argument's type rather than
4398 first argument.
4399 (instrument_member_call): Removed.
4400 (instrument_mem_ref): Remove t argument, add mem and base arguments.
4401 Handle both null and alignment sanitization, don't say whole
4402 struct access is member access. Build 3 argument IFN_UBSAN_NULL
4403 call instead of 2 argument.
4404 (instrument_null): Adjust instrument_mem_ref caller. Don't
4405 instrument calls here.
4406 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
4407 like SANITIZE_NULL.
4408 * stor-layout.c (min_align_of_type): New function.
4409 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
4410 Or it into SANITIZE_UNDEFINED.
4411 * doc/invoke.texi (-fsanitize=alignment): Document.
4412
4413 2014-07-31 Andi Kleen <ak@linux.intel.com>
4414
4415 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
4416
4417 2014-07-31 Andi Kleen <ak@linux.intel.com>
4418
4419 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
4420 inchash.
4421 (vn_reference_compute_hash): Dito.
4422 (vn_nary_op_compute_hash): Dito.
4423 (vn_phi_compute_hash): Dito.
4424 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
4425
4426 2014-07-31 Andi Kleen <ak@linux.intel.com>
4427
4428 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
4429 Rename to inchash:add_expr_commutative. Convert to inchash.
4430 (iterative_hash_hashable_expr): Rename to
4431 inchash:add_hashable_expr. Convert to inchash.
4432 (avail_expr_hash): Dito.
4433
4434 2014-07-31 Andi Kleen <ak@linux.intel.com>
4435
4436 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
4437 Convert to inchash.
4438
4439 2014-07-31 Andi Kleen <ak@linux.intel.com>
4440
4441 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
4442
4443 2014-07-31 Andi Kleen <ak@linux.intel.com>
4444
4445 * Makefile.in (OBJS): Add rtlhash.o
4446 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
4447 (loc_checksum): Dito.
4448 (loc_checksum_ordered): Dito.
4449 (hash_loc_operands): Dito.
4450 (hash_locs): Dito.
4451 (hash_loc_list): Dito.
4452 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
4453 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
4454 * rtlhash.c: New file.
4455 * rtlhash.h: New file.
4456
4457 2014-07-31 Andi Kleen <ak@linux.intel.com>
4458
4459 * inchash.h (inchash): Change inchash class to namespace.
4460 (class hash): ... Rename from inchash.
4461 (add_object): Move from macro to class template.
4462 * lto-streamer-out.c (hash_tree): Change inchash
4463 to inchash::hash.
4464 * tree.c (build_type_attribute_qual_variant): Dito.
4465 (type_hash_list): Dito.
4466 (attribute_hash_list): Dito.
4467 (iterative_hstate_expr): Rename to inchash::add_expr
4468 (build_range_type_1): Change inchash to inchash::hash
4469 and use hash::add_expr.
4470 (build_array_type_1): Dito.
4471 (build_function_type): Dito
4472 (build_method_type_directly): Dito.
4473 (build_offset_type): Dito.
4474 (build_complex_type): Dito.
4475 (make_vector_type): Dito.
4476 * tree.h (iterative_hash_expr): Dito.
4477
4478 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
4479
4480 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
4481
4482 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
4483
4484 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
4485 correct alphabetical position.
4486 (vpaddd_f64): Rewrite using builtins.
4487 (vpaddd_s64): Move to correct alphabetical position.
4488 (vpaddd_u64): New.
4489
4490 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
4491
4492 PR target/61844
4493 * config/sh/sh.c (sh_legitimate_address_p,
4494 sh_legitimize_reload_address): Handle reg+reg address modes when
4495 ALLOW_INDEXED_ADDRESS is false.
4496 * config/sh/predicates.md (general_movsrc_operand,
4497 general_movdst_operand): Likewise.
4498
4499 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
4500
4501 * config/aarch64/aarch64-builtins.c
4502 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
4503 BYTES_BIG_ENDIAN.
4504
4505 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
4506
4507 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
4508 the generated mask based on BYTES_BIG_ENDIAN.
4509 (aarch64_simd_check_vect_par_cnst_half): New.
4510 * config/aarch64/aarch64-protos.h
4511 (aarch64_simd_check_vect_par_cnst_half): New.
4512 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
4513 the check out to aarch64_simd_check_vect_par_cnst_half.
4514 (vect_par_cnst_lo_half): Likewise.
4515 * config/aarch64/aarch64-simd.md
4516 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
4517 (move_hi_quad_<mode>): Always generate a low mask.
4518
4519 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4520
4521 * doc/invoke.texi (AVR Options): Add documentation about
4522 __AVR_DEVICE_NAME__ built-in macro.
4523
4524 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
4525
4526 PR target/61948
4527 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
4528 constraints are satisfied.
4529 (<shift>di3_neon): Likewise.
4530
4531 2014-07-31 Richard Biener <rguenther@suse.de>
4532
4533 PR tree-optimization/61964
4534 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
4535 by structural equality.
4536
4537 2014-07-31 Yury Gribov <y.gribov@samsung.com>
4538
4539 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
4540 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
4541 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
4542 New enums.
4543 * gcc.c (sanitize_spec_function): Support new option.
4544 (SANITIZER_SPEC): Remove now redundant check.
4545 * opts.c (common_handle_option): Support new option.
4546 (finish_options): Check for incompatibilities.
4547 * toplev.c (process_options): Split userspace-specific checks.
4548
4549 2014-07-31 Richard Biener <rguenther@suse.de>
4550
4551 * lto-streamer.h (struct output_block): Remove global.
4552 (struct data_in): Remove labels, num_named_labels and
4553 num_unnamed_labels.
4554 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
4555 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
4556
4557 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
4558
4559 PR c++/60517
4560 * common.opt (-Wreturn-local-addr): Moved from c.opt.
4561 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
4562 (isolate_path): New argument to avoid inserting a trap.
4563 (find_implicit_erroneous_behaviour): Handle returning the address
4564 of a local variable.
4565 (find_explicit_erroneous_behaviour): Likewise.
4566
4567 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
4568
4569 PR lto/61868
4570 * toplev.c (init_random_seed): Move piece of code never called to
4571 set_random_seed.
4572 (set_random_seed): see above.
4573
4574 2014-07-31 Tom de Vries <tom@codesourcery.com>
4575
4576 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
4577
4578 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
4579
4580 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
4581 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
4582
4583 2014-07-31 Richard Biener <rguenther@suse.de>
4584
4585 * data-streamer.h (streamer_write_data_stream): Declare here,
4586 renamed from ...
4587 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
4588 * lto-cgraph.c (lto_output_node): Adjust.
4589 (lto_output_varpool_node): Likewise.
4590 * data-streamer-out.c (streamer_string_index): Likewise.
4591 (streamer_write_data_stream, lto_append_block): Move from ...
4592 * lto-section-out.c (lto_output_data_stream,
4593 lto_append_block): ... here.
4594
4595 2014-07-30 Mike Stump <mikestump@comcast.net>
4596
4597 * configure.ac: Also check for popen.
4598 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
4599 * configure: Regenerate.
4600 * config.in: Regenerate.
4601
4602 2014-07-30 Martin Jambor <mjambor@suse.cz>
4603
4604 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
4605 parameter to gimple.
4606
4607 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4608
4609 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
4610 address as second parameter to __tpf_eh_return routine.
4611
4612 2014-07-30 Jiong Wang <jiong.wang@arm.com>
4613
4614 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
4615 Thumb2.
4616
4617 2014-07-30 Tom Tromey <tromey@redhat.com>
4618
4619 PR c/59855
4620 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
4621 * doc/extend.texi (Type Attributes): Document designated_init
4622 attribute.
4623
4624 2014-07-30 Roman Gareev <gareevroman@gmail.com>
4625
4626 * graphite-isl-ast-to-gimple.c:
4627 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
4628 (gcc_expression_from_isl_expression): Pass type to
4629 gcc_expression_from_isl_ast_expr_id.
4630
4631 2014-07-30 Richard Biener <rguenther@suse.de>
4632
4633 * lto-streamer.h (lto_write_data): New function.
4634 * langhooks.c (lhd_append_data): Do not free block.
4635 * lto-section-out.c (lto_write_data): New function writing
4636 raw data to the current section.
4637 (lto_write_stream): Adjust for langhook semantic change.
4638 (lto_destroy_simple_output_block): Write header directly.
4639 * lto-opts.c (lto_write_options): Write options directly.
4640 * lto-streamer-out.c (produce_asm): Write heaeder directly.
4641 (lto_output_toplevel_asms): Likewise.
4642 (copy_function_or_variable): Copy data directly.
4643 (write_global_references): Output index table directly.
4644 (lto_output_decl_state_refs): Likewise.
4645 (write_symbol): Write data directly.
4646 (produce_symtab): Adjust.
4647 (produce_asm_for_decls): Output header and refs directly.
4648
4649 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
4650
4651 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
4652 to speculative_targets
4653 (get_class_context): Fix handling of contextes without outer type;
4654 avoid matching non-polymorphic types in LTO.
4655 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
4656 parameter to speculative_targetsp; handle speculation.
4657 (dump_possible_polymorphic_call_targets): Update dumping.
4658
4659 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
4660
4661 * common.opt (Wodr): Enable by default.
4662
4663 2014-07-29 Olivier Hainque <hainque@adacore.com>
4664
4665 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
4666
4667 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
4668
4669 PR bootstrap/61914
4670 * gengtype.c (strtoken): New function.
4671 (create_user_defined_type): Replace strtok with strtoken.
4672
4673 2014-07-29 Nathan Sidwell <nathan@acm.org>
4674
4675 * gcov-io.c (gcov_var): Make hidden.
4676 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
4677 (gcov_do_dump): Declare.
4678 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
4679
4680 2014-07-29 Martin Jambor <mjambor@suse.cz>
4681
4682 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
4683 parameter to gimple.
4684 (sra_modify_assign): Likewise.
4685
4686 2014-07-29 Richard Biener <rguenther@suse.de>
4687
4688 PR middle-end/52478
4689 * expr.c (expand_expr_real_2): Revert last change.
4690
4691 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
4692
4693 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
4694 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
4695 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
4696 call.
4697 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
4698 (contains_type_p): Forward declare.
4699 (polymorphic_call_target_hasher::hash): Hash speculative info.
4700 (polymorphic_call_target_hasher::equal): Compare speculative info.
4701 (get_class_context): Handle speuclation.
4702 (contains_type_p): Update.
4703 (get_polymorphic_call_info_for_decl): Update.
4704 (walk_ssa_copies): Break out from ...
4705 (get_polymorphic_call_info): ... here; set speculative context
4706 before giving up.
4707 * ipa-prop.c (ipa_write_indirect_edge_info,
4708 ipa_read_indirect_edge_info): Stream speculative context.
4709 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
4710 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
4711 SPECULATIVE_MAYBE_DERIVED_TYPE).
4712 (possible_polymorphic_call_targets overriders): Update.
4713 (dump_possible_polymorphic_call_targets overriders): Update.
4714 (dump_possible_polymorphic_call_target_p overriders): Update.
4715
4716 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
4717
4718 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
4719 ipa-devirt path; fix thinko there.
4720
4721 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
4722
4723 * config/i386/i386.c (ix86_return_in_memory): Replace one
4724 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
4725
4726 2014-07-28 Marek Polacek <polacek@redhat.com>
4727
4728 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
4729
4730 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
4731
4732 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
4733 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
4734 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
4735 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
4736 (USE_LD_AS_NEEDED): Likewise.
4737 (ASM_APP_ON): Likewise.
4738 (ASM_APP_OFF): Likewise.
4739 (TARGET_POSIX_IO): Likewise.
4740 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
4741 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
4742 (USE_LD_AS_NEEDED): Likewise.
4743 (ASM_APP_ON): Likewise.
4744 (ASM_APP_OFF): Likewise.
4745 (TARGET_POSIX_IO): Likewise.
4746
4747 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
4748
4749 PR middle-end/61734
4750 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
4751 operators other than the equality operators.
4752
4753 2014-07-28 Richard Biener <rguenther@suse.de>
4754
4755 PR middle-end/52478
4756 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
4757 sure to register SImode ones, not only >= word_mode ones.
4758 * expr.c (expand_expr_real_2): When expanding -ftrapv
4759 binops do not use OPTAB_LIB_WIDEN.
4760
4761 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
4762
4763 PR middle-end/61919
4764 * tree-outof-ssa.c (insert_partition_copy_on_edge)
4765 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
4766 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
4767 inserting them in the insn stream.
4768
4769 2014-07-28 Marek Polacek <polacek@redhat.com>
4770
4771 PR middle-end/61913
4772 * common.opt (Wodr): Add Var.
4773
4774 2014-07-28 Richard Biener <rguenther@suse.de>
4775
4776 PR tree-optimization/61921
4777 * tree-ssa-structalias.c (create_variable_info_for_1): Check
4778 if there is a varpool node before dereferencing it.
4779
4780 2014-07-28 Roman Gareev <gareevroman@gmail.com>
4781
4782 * graphite-sese-to-poly.c:
4783 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
4784 id of the pbb), which contains pointer to the pbb1.
4785
4786 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
4787
4788 2014-07-28 Roman Gareev <gareevroman@gmail.com>
4789
4790 * graphite-isl-ast-to-gimple.c:
4791 (graphite_create_new_guard): New function.
4792 (translate_isl_ast_node_if): New function.
4793 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
4794
4795 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
4796
4797 2014-07-27 Anthony Green <green@moxielogic.com>
4798
4799 * config.gcc: Add moxie-*-moxiebox* configuration.
4800 * config/moxie/moxiebox.h: New file.
4801
4802 2014-07-26 Andrew Pinski <apinski@cavium.com>
4803
4804 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
4805 from the read only register.
4806
4807 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
4808
4809 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
4810 as the allocation class if it isn't likely to be spilled.
4811
4812 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
4813
4814 * rtl.h (tls_referenced_p): Declare.
4815 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
4816 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
4817 (mips_cannot_force_const_mem): Use tls_referenced_p.
4818 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
4819 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
4820 instead of pa_tls_referenced_p.
4821 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
4822 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
4823 (pa_legitimate_constant_p): Likewise.
4824 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
4825 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
4826 (rs6000_cannot_force_const_mem, rs6000_emit_move)
4827 (rs6000_address_for_altivec): Use tls_referenced_p instead of
4828 rs6000_tls_referenced_p.
4829 (rs6000_tls_symbol_ref_1): Delete.
4830
4831 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
4832
4833 PR target/44551
4834 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4835 Optimize inverse of a VEC_CONCAT.
4836
4837 2014-07-25 Xinliang David Li <davidxl@google.com>
4838
4839 * params.def: New parameter.
4840 * coverage.c (get_coverage_counts): Check new flag.
4841 (coverage_compute_profile_id): Check new flag.
4842 (coverage_begin_function): Check new flag.
4843 (coverage_end_function): Check new flag.
4844 * value-prof.c (coverage_node_map_initialized_p): New function.
4845 (init_node_map): Populate map with all functions.
4846 * doc/invoke.texi: Document new parameter.
4847
4848 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
4849 Richard Biener <rguenther@suse.de>
4850
4851 * lto-streamer-out.c (struct sccs): Turn to ...
4852 (class DFS): ... this one; refactor the DFS walk so it can
4853 be re-done on per-SCC basis.
4854 (DFS::DFS): New constructor.
4855 (DFS::~DFS): New destructor.
4856 (hash_tree): Add new MAP argument holding in-SCC hash values;
4857 remove POINTER_TYPE hashing hack.
4858 (scc_entry_compare): Rename to ...
4859 (DFS::scc_entry_compare): ... this one.
4860 (hash_scc): Rename to ...
4861 (DFS::hash_scc): ... this one; pass output_block instead
4862 of streamer_cache; work harder to get unique and stable SCC
4863 hashes.
4864 (DFS_write_tree): Rename to ...
4865 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
4866 (lto_output_tree): Update.
4867
4868 2014-07-25 Andi Kleen <ak@linux.intel.com>
4869
4870 * lto-streamer-out.c (hash_tree): Convert to inchash.
4871
4872 2014-07-25 Andi Kleen <ak@linux.intel.com>
4873
4874 * tree.c (build_type_attribute_qual_variant): Use inchash.
4875 (type_hash_list): Dito.
4876 (attribute_hash_list): Dito
4877 (iterative_hstate_expr): Dito.
4878 (iterative_hash_expr): Dito.
4879 (build_range_type_1): Dito.
4880 (build_array_type_1): Dito.
4881 (build_function_type): Dito.
4882 (build_method_type_directly): Dito.
4883 (build_offset_type): Dito.
4884 (build_complex_type): Dito.
4885 (make_vector_type): Dito.
4886 * tree.h (iterative_hash_expr): Add compat wrapper.
4887 (iterative_hstate_expr): Add.
4888
4889 2014-07-25 Andi Kleen <ak@linux.intel.com>
4890
4891 * Makefile.in (OBJS): Add inchash.o.
4892 (PLUGIN_HEADERS): Add inchash.h.
4893 * ipa-devirt.c: Include inchash.h.
4894 * lto-streamer-out.c: Dito.
4895 * tree-ssa-dom.c: Dito.
4896 * tree-ssa-pre.c: Dito.
4897 * tree-ssa-sccvn.c: Dito.
4898 * tree-ssa-tail-merge.c: Dito.
4899 * asan.c: Dito.
4900 * tree.c (iterative_hash_hashval_t): Move to ...
4901 (iterative_hash_host_wide_int): Move to ...
4902 * inchash.c: Here. New file.
4903 * tree.h (iterative_hash_hashval_t): Move to ...
4904 (iterative_hash_host_wide_int): Move to ...
4905 * inchash.h: Here. New file.
4906
4907 2014-07-25 Richard Biener <rguenther@suse.de>
4908
4909 PR middle-end/61762
4910 PR middle-end/61894
4911 * fold-const.c (native_encode_int): Add and handle offset
4912 parameter to do partial encodings of expr.
4913 (native_encode_fixed): Likewise.
4914 (native_encode_real): Likewise.
4915 (native_encode_complex): Likewise.
4916 (native_encode_vector): Likewise.
4917 (native_encode_string): Likewise.
4918 (native_encode_expr): Likewise.
4919 * fold-const.c (native_encode_expr): Add offset parameter
4920 defaulting to -1.
4921 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
4922 (fold_ctor_reference): Handle all reads from tcc_constant
4923 ctors.
4924
4925 2014-07-25 Richard Biener <rguenther@suse.de>
4926
4927 * tree-inline.c (estimate_move_cost): Mark speed_p argument
4928 as possibly unused.
4929
4930 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4931
4932 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
4933
4934 2014-07-24 Kyle McMartin <kyle@redhat.com>
4935
4936 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
4937
4938 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4939
4940 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
4941 Add prototype.
4942 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
4943 function.
4944 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
4945 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4946 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
4947
4948 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4949
4950 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
4951 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
4952 aggregate types. Instead, *all* aggregate types, except for single-
4953 element or homogeneous float/vector aggregates, are quadword-aligned
4954 if required by their type alignment. Issue -Wpsabi note when a type
4955 is now treated differently than before.
4956
4957 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4958
4959 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
4960 does not fit fully into floating-point registers, and there is still
4961 space in the register parameter area, use GPRs to pass those parts
4962 of the argument. Issue -Wpsabi note if any parameter is now treated
4963 differently than before.
4964 (rs6000_arg_partial_bytes): Update.
4965
4966 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
4967
4968 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
4969
4970 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4971
4972 * rtl.h (target_rtl): Remove lang_dependent_initialized.
4973 * toplev.c (initialize_rtl): Don't use it. Move previously
4974 "language-dependent" calls to...
4975 (backend_init): ...here.
4976 (lang_dependent_init_target): Don't set lang_dependent_initialized.
4977 Assert that RTL initialization hasn't happend yet.
4978
4979 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4980
4981 PR rtl-optimization/61629
4982 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
4983 they have already been initialized.
4984
4985 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4986
4987 PR middle-end/61268
4988 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
4989 DECL_INCOMING_RTL and entry_parm.
4990 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
4991 * calls.c (load_register_parameters): Likewise argument values.
4992 (emit_library_call_value_1, store_one_arg): Likewise argument
4993 save areas.
4994 * config/i386/i386.c (assign_386_stack_local): Likewise the local
4995 stack slot.
4996 * explow.c (validize_mem): Modify the argument in-place.
4997
4998 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4999
5000 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
5001 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
5002
5003 2014-07-24 Jiong Wang <jiong.wang@arm.com>
5004
5005 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
5006 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
5007
5008 2014-07-24 Jiong Wang <jiong.wang@arm.com>
5009
5010 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
5011 (aarch64_save_callee_saves): New parameter "skip_wb".
5012 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
5013
5014 2014-07-24 Jiong Wang <jiong.wang@arm.com>
5015
5016 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
5017 "wb_candidate2".
5018 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
5019
5020 2014-07-24 Roman Gareev <gareevroman@gmail.com>
5021
5022 * graphite-isl-ast-to-gimple.c:
5023 (graphite_create_new_loop): Add calling of isl_id_free to properly
5024 decrement reference counts.
5025
5026 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
5027
5028 2014-07-24 Martin Liska <mliska@suse.cz>
5029 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
5030 function used.
5031 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
5032 (rs6000_code_end): Likewise.
5033
5034 2014-07-24 Martin Liska <mliska@suse.cz>
5035
5036 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
5037 symtab_node funtion used.
5038 (rs6000_xcoff_declare_object_name): Likewise.
5039
5040 2014-07-24 Martin Liska <mliska@suse.cz>
5041
5042 * cgraphunit.c (compile): Correct function used.
5043
5044 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
5045
5046 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
5047 as non-indexable.
5048
5049 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
5050
5051 PR lto/61802
5052 * varasm.c (bss_initializer_p): Handle offlined ctors.
5053 (align_variable, get_variable_align): Likewise.
5054 (make_decl_one_only): Likewise.
5055 (default_binds_local_p_1): Likewise.
5056 (decl_binds_to_current_def_p): Likewise.
5057 (get_variable_section): Get constructor if it is offlined.
5058 (assemble_variable_contents): Sanity check that the caller
5059 streamed in the ctor in LTO.
5060
5061 2014-07-24 Roman Gareev <gareevroman@gmail.com>
5062
5063 * graphite-isl-ast-to-gimple.c:
5064 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
5065 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
5066 isl_ast_op_pdiv_r to the different case.
5067
5068 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
5069
5070 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5071
5072 PR middle-end/61876
5073 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
5074 when flag_errno_math is on.
5075
5076 2014-07-24 Martin Liska <mliska@suse.cz>
5077
5078 * cgraph.h (varpool_node):
5079 (availability get_availability (void)):
5080 created from cgraph_variable_initializer_availability
5081 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
5082 created from: cgraph_variable_initializer_availability
5083 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
5084 (void finalize_named_section_flags (void)):
5085 created from varpool_finalize_named_section_flags
5086 (bool assemble_decl (void)): created from varpool_assemble_decl
5087 (void analyze (void)): created from varpool_analyze_node
5088 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
5089 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
5090 (void remove_initializer (void)): created from varpool_remove_initializer
5091 (tree get_constructor (void)): created from varpool_get_constructor
5092 (bool externally_visible_p (void)): created from varpool_externally_visible_p
5093 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
5094 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
5095 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
5096 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
5097 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
5098 (static bool output_variables (void)): created from varpool_output_variables
5099 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
5100 created from varpool_extra_name_alias
5101 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
5102 (static void dump_varpool (FILE *f)): created from dump_varpool
5103 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
5104 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
5105 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
5106 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
5107 (void assemble_aliases (void)): created from assemble_aliases
5108
5109 2014-07-24 Martin Liska <mliska@suse.cz>
5110
5111 * cgraph.h (symtab_node):
5112 (void register_symbol (void)): created from symtab_register_node
5113 (void remove (void)): created from symtab_remove_node
5114 (void dump (FILE *f)): created from dump_symtab_node
5115 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
5116 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
5117 (struct ipa_ref *add_reference (symtab_node *referred_node,
5118 enum ipa_ref_use use_type)): created from add_reference
5119 (struct ipa_ref *add_reference (symtab_node *referred_node,
5120 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
5121 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
5122 gimple stmt)): created from maybe_add_reference
5123 (bool semantically_equivalent_p (symtab_node *target)): created from
5124 symtab_semantically_equivalent_p
5125 (void remove_from_same_comdat_group (void)): created from
5126 remove_from_same_comdat_group
5127 (void add_to_same_comdat_group (symtab_node *old_node)): created from
5128 symtab_add_to_same_comdat_group
5129 (void dissolve_same_comdat_group_list (void)): created from
5130 symtab_dissolve_same_comdat_group_list
5131 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
5132 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
5133 created from symtab_alias_ultimate_target
5134 (inline symtab_node *next_defined_symbol (void)): created from
5135 symtab_next_defined_symbol
5136 (bool resolve_alias (symtab_node *target)): created from
5137 symtab_resolve_alias
5138 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
5139 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
5140 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
5141 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
5142 (void set_section (const char *section)): created from set_section_1
5143 (enum availability get_availability (void)): created from symtab_node_availability
5144 (void make_decl_local (void)): created from symtab_make_decl_local
5145 (bool real_symbol_p (void)): created from symtab_read_node
5146 (can_be_discarded_p (void)): created from symtab_can_be_discarded
5147 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
5148 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
5149 symtab_in_same_comdat_p;
5150 (bool address_taken_from_non_vtable_p (void)): created from
5151 address_taken_from_non_vtable_p
5152 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
5153 (static void dump_table (FILE *)): created from dump_symtab
5154 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
5155 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
5156 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
5157 symtab_used_from_object_file_p
5158 (void dump_base (FILE *)): created from dump_symtab_base
5159 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
5160 (void unregister (void)): created from symtab_unregister_node
5161 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
5162 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
5163 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
5164 symtab_nonoverwritable_alias_1
5165 * cgraph.h (cgraph_node):
5166 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
5167 created from cgraph_remove_node_and_inline_clones
5168 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
5169 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
5170 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
5171 (cgraph_node *function_symbol (enum availability *avail = NULL)):
5172 created from cgraph_function_node
5173 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
5174 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
5175 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
5176 created from cgraph_create_clone
5177 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
5178 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
5179 created from cgraph_create_virtual_clone
5180 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
5181 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
5182 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
5183 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
5184 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
5185 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
5186 created from cgraph_function_version_info
5187 (struct cgraph_function_version_info *insert_new_function_version (void)):
5188 created from insert_new_cgraph_node_version
5189 (struct cgraph_function_version_info *function_version (void)): created from
5190 get_cgraph_node_version
5191 (void analyze (void)): created from analyze_function
5192 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
5193 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
5194 tree real_alias) cgraph_add_thunk
5195 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
5196 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
5197 created from cgraph_function_or_thunk_node
5198 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
5199 created from expand_thunk
5200 (void reset (void)): created from cgraph_reset_node
5201 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
5202 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
5203 (void remove (void)): created from cgraph_remove_node
5204 (void dump (FILE *f)): created from dump_cgraph_node
5205 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
5206 (bool get_body (void)): created from cgraph_get_body
5207 (void release_body (void)): created from cgraph_release_function_body
5208 (void unnest (void)): created from cgraph_unnest_node
5209 (void make_local (void)): created from cgraph_make_node_local
5210 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
5211 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
5212 gcov_type count, int freq)): created from cgraph_create_edge
5213 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
5214 gcov_type count, int freq)): created from cgraph_create_indirect_edge
5215 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
5216 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
5217 created from cgraph_create_edge_including_clones
5218 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
5219 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
5220 (void remove_callers (void)): created from cgraph_node_remove_callers
5221 (void remove_callees (void)): created from cgraph_node_remove_callees
5222 (enum availability get_availability (void)): created from cgraph_function_body_availability
5223 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
5224 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
5225 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
5226 (void call_duplication_hooks (cgraph_node *node2)): created from
5227 cgraph_call_node_duplication_hooks
5228 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
5229 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
5230 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
5231 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
5232 (void call_function_insertion_hooks (void)):
5233 created from cgraph_call_function_insertion_hooks
5234 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
5235 (bool local_p (void)): created from cgraph_local_node
5236 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
5237 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
5238 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
5239 (inline bool only_called_directly_or_aliased_p (void)):
5240 created from cgraph_only_called_directly_or_aliased_p
5241 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
5242 created from cgraph_will_be_removed_from_program_if_no_direct_calls
5243 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
5244 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
5245 (bool can_remove_if_no_direct_calls_p (void)):
5246 created from cgraph_can_remove_if_no_direct_calls_p
5247 (inline bool has_gimple_body_p (void)):
5248 created from cgraph_function_with_gimple_body_p
5249 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
5250 (static void dump_cgraph (FILE *f)): created from dump_cgraph
5251 (static inline void debug_cgraph (void)): created from debug_cgraph
5252 (static void record_function_versions (tree decl1, tree decl2)):
5253 created from record_function_versions
5254 (static void delete_function_version (tree decl)):
5255 created from delete_function_version
5256 (static void add_new_function (tree fndecl, bool lowered)):
5257 created from cgraph_add_new_function
5258 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
5259 (static cgraph_node * create (tree decl)): created from cgraph_create_node
5260 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
5261 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
5262 (static cgraph_node *get_for_asmname (tree asmname)):
5263 created from cgraph_node_for_asm
5264 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
5265 created from cgraph_same_body_alias
5266 (static bool used_from_object_file_p_worker (cgraph_node *node,
5267 void *): new function
5268 (static bool non_local_p (cgraph_node *node, void *)):
5269 created from cgraph_non_local_node_p_1
5270 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
5271 created from verify_cgraph
5272 (static bool make_local (cgraph_node *node, void *)):
5273 created from cgraph_make_node_local
5274 (static cgraph_node *create_alias (tree alias, tree target)):
5275 created from cgraph_create_function_alias
5276 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
5277 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
5278 created from cgraph_create_edge_1
5279 * cgraph.h (varpool_node):
5280 (void remove (void)): created from varpool_remove_node
5281 (void dump (FILE *f)): created from dump_varpool_node
5282
5283 2014-07-24 Richard Biener <rguenther@suse.de>
5284
5285 PR ipa/61823
5286 * tree-ssa-structalias.c (create_variable_info_for_1):
5287 Use varpool_get_constructor.
5288 (create_variable_info_for): Likewise.
5289
5290 2014-07-24 Jiong Wang <jiong.wang@arm.com>
5291
5292 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
5293 subtract outgoing area size when restoring stack_pointer_rtx.
5294
5295 2014-07-24 Nick Clifton <nickc@redhat.com>
5296
5297 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
5298 that operations are taking place in parallel.
5299 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
5300
5301 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
5302
5303 * omp-low.c (extract_omp_for_data): Add missing break statement.
5304
5305 2014-07-24 Richard Biener <rguenther@suse.de>
5306
5307 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
5308 * tree-inline.c (estimate_move_cost): Add speed_p parameter
5309 and adjust MOVE_RATIO query accordingly.
5310 (estimate_num_insns): Adjust callers.
5311 * ipa-prop.c (ipa_populate_param_decls): Likewise.
5312 * ipa-cp.c (gather_context_independent_values,
5313 estimate_local_effects): Likewise.
5314 * ipa-split.c (consider_split): Likewise.
5315
5316 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
5317
5318 * config/i386/driver-i386.c: Remove names of unused arguments and
5319 unnecessary unused attributes.
5320 * config/i386/host-mingw32.c: Likewise.
5321 * config/i386/i386.c: Likewise.
5322 * config/i386/winnt-stubs.c: Likewise.
5323 * config/i386/winnt.c: Likewise.
5324
5325 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5326
5327 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
5328 (aarch64_gen_loadwb_pair): New helper function.
5329 (aarch64_expand_epilogue): Simplify code using new helper functions.
5330 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
5331
5332 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5333
5334 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
5335 (aarch64_gen_storewb_pair): New helper function.
5336 (aarch64_expand_prologue): Simplify code using new helper functions.
5337 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
5338
5339 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5340
5341 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
5342 Rename to aarch64_save_callee_saves, remove restore code.
5343 (aarch64_restore_callee_saves): New function.
5344
5345 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5346
5347 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
5348 (aarch64_save_callee_saves): New function to handle reg save
5349 for both core and vectore regs.
5350
5351 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5352
5353 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
5354 (aarch64_gen_store_pair): New helper function.
5355 (aarch64_save_or_restore_callee_save_registers)
5356 (aarch64_save_or_restore_fprs): Use new helper functions.
5357
5358 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5359
5360 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
5361 (aarch64_save_or_restore_callee_save_registers)
5362 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
5363
5364 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5365
5366 * config/aarch64/aarch64.c
5367 (aarch64_save_or_restore_callee_save_registers)
5368 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
5369
5370 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5371
5372 * config/aarch64/aarch64.c
5373 (aarch64_save_or_restore_callee_save_registers)
5374 (aarch64_save_or_restore_fprs): Remove 'increment'.
5375
5376 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5377
5378 * config/aarch64/aarch64.c
5379 (aarch64_save_or_restore_callee_save_registers)
5380 (aarch64_save_or_restore_fprs): Use register offset in
5381 cfun->machine->frame.reg_offset.
5382
5383 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5384
5385 * config/aarch64/aarch64.c
5386 (aarch64_save_or_restore_callee_save_registers)
5387 (aarch64_save_or_restore_fprs): Remove base_rtx.
5388
5389 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5390
5391 * config/aarch64/aarch64.c
5392 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
5393 to 'start_offset'. Remove local variable 'start_offset'.
5394
5395 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5396
5397 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
5398 type to HOST_WIDE_INT.
5399
5400 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5401
5402 * config/aarch64/aarch64.c (aarch64_expand_prologue)
5403 (aarch64_save_or_restore_fprs)
5404 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
5405
5406 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
5407
5408 * config/arm/t-rtems-eabi: Add
5409 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
5410 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
5411 mbig-endian/mthumb/march=armv7-r, and
5412 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
5413 multilibs.
5414
5415 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
5416 Chris Johns <chrisj@rtems.org>
5417 Joel Sherrill <joel.sherrill@oarcorp.com>
5418
5419 * config.gcc: Add nios2-*-rtems*.
5420 * config/nios2/rtems.h: New file.
5421 * gcc/config/nios2/t-rtems: New file.
5422
5423 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
5424
5425 PR target/61396
5426 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
5427 constant numbers, not general constants.
5428 (rs6000_expand_vector_init): Ditto.
5429
5430 2014-07-23 Nathan Sidwell <nathan@acm.org>
5431
5432 * gcov-tool.c (gcov_list): Declare here.
5433 (set_gcov_list): Remove.
5434 (gcov_output_files): Set gcov_list directly.
5435
5436 2014-07-23 Host Schirmeier <horst@schirmeier.com>
5437
5438 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
5439
5440 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5441
5442 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
5443 callee-saved registers are available for padding purpose
5444 and r3 is not mandatory, then prefer use those callee-saved
5445 instead of r3.
5446
5447 2014-07-23 Richard Biener <rguenther@suse.de>
5448
5449 * params.def (PARAM_MAX_COMBINE_INSNS): New.
5450 * combine.c: Include statistics.h and params.h.
5451 (combine_instructions): Guard three and four insn combines
5452 with max-combine-insns value. Record statistics for combines
5453 performed.
5454 * doc/invoke.texi (max-combine-insns): Document new param.
5455
5456 2014-07-23 Roman Gareev <gareevroman@gmail.com>
5457
5458 * graphite-isl-ast-to-gimple.c:
5459 (translate_isl_ast_node_block): New function.
5460 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
5461
5462 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
5463 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
5464
5465 2014-07-23 Roman Gareev <gareevroman@gmail.com>
5466
5467 * graphite-isl-ast-to-gimple.c:
5468 (get_max_schedule_dimensions): New function.
5469 (extend_schedule): Likewise.
5470 (generate_isl_schedule): Add calling of extend_schedule and
5471 get_max_schedule_dimensions.
5472
5473 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5474
5475 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
5476 (case UNSPEC): Handle UNSPEC_RBIT.
5477
5478 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5479
5480 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
5481 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
5482
5483 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5484
5485 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
5486
5487 2014-07-22 Roman Gareev <gareevroman@gmail.com>
5488
5489 * graphite-isl-ast-to-gimple.c:
5490 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
5491 (ivs_params_clear):
5492 (build_iv_mapping): New function.
5493 (translate_isl_ast_node_user): Likewise.
5494 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
5495
5496 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
5497 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
5498 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
5499
5500 2014-07-21 Bin Cheng <bin.cheng@arm.com>
5501
5502 PR target/55701
5503 * config/arm/arm.md (setmem): New pattern.
5504 * config/arm/arm-protos.h (struct tune_params): New fields.
5505 (arm_gen_setmem): New prototype.
5506 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
5507 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5508 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5509 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
5510 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
5511 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
5512 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
5513 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5514 (arm_const_inline_cost): New function.
5515 (arm_block_set_max_insns): New function.
5516 (arm_block_set_non_vect_profit_p): New function.
5517 (arm_block_set_vect_profit_p): New function.
5518 (arm_block_set_unaligned_vect): New function.
5519 (arm_block_set_aligned_vect): New function.
5520 (arm_block_set_unaligned_non_vect): New function.
5521 (arm_block_set_aligned_non_vect): New function.
5522 (arm_block_set_vect, arm_gen_setmem): New functions.
5523
5524 2014-07-21 Bin Cheng <bin.cheng@arm.com>
5525
5526 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
5527
5528 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
5529
5530 PR target/61855
5531 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
5532 out of #ifdef __OPTIMIZE__.
5533
5534 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
5535
5536 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
5537 different trapping status if -fnon-call-exceptions is enabled.
5538
5539 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
5540
5541 * expr.c (store_field): Handle VOIDmode for calls that return values
5542 in multiple locations.
5543
5544 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5545
5546 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
5547 (altivec_vsldoi_<mode>): Likewise.
5548
5549 2014-07-20 Roman Gareev <gareevroman@gmail.com>
5550
5551 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
5552 to the number of characters in the line.
5553
5554 2014-07-20 Roman Gareev <gareevroman@gmail.com>
5555
5556 * graphite-isl-ast-to-gimple.c: Add using of
5557 build_nonstandard_integer_type instead of int128_integer_type_node.
5558
5559 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
5560
5561 * toplev.c (output_stack_usage): Adjust the location of the warning.
5562
5563 2014-07-19 Daniel Cederman <cederman@gaisler.com>
5564
5565 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
5566 (*membar_storeload): Disable for LEON3.
5567
5568 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
5569
5570 PR rtl-optimization/61461
5571 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
5572
5573 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
5574
5575 PR target/61794
5576 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
5577 Fix instruction constraint.
5578 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
5579
5580 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
5581
5582 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
5583
5584 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
5585
5586 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
5587 GNU coding standards.
5588 (nds32_register_move_cost): Likewise.
5589 (nds32_memory_move_cost): Likewise.
5590 (nds32_address_cost): Likewise.
5591
5592 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5593
5594 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
5595
5596 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
5597
5598 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
5599 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
5600 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5601 (HAVE_sync_compare_and_swapqi): Define.
5602 (HAVE_sync_compare_and_swaphi): Likewise.
5603 (HAVE_sync_compare_and_swapsi): Likewise.
5604
5605 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
5606
5607 * config/mips/p5600.md: Add missing cpu tests.
5608
5609 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5610
5611 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
5612 (vmla_f64): Likewise.
5613 (vfms_f64): Likewise.
5614 (vmls_f64): Likewise.
5615
5616 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5617
5618 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
5619 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
5620
5621 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5622
5623 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
5624 (vmlal_high_lane_s32): Likewise.
5625 (vmlal_high_lane_u16): Likewise.
5626 (vmlal_high_lane_u32): Likewise.
5627 (vmlsl_high_lane_s16): Likewise.
5628 (vmlsl_high_lane_s32): Likewise.
5629 (vmlsl_high_lane_u16): Likewise.
5630 (vmlsl_high_lane_u32): Likewise.
5631
5632 2014-07-17 Terry Guo <terry.guo@arm.com>
5633
5634 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
5635 (alus_reg): Renamed to alus_sreg.
5636 * config/arm/arm-fixed.md: Change type of non-dsp instructions
5637 from alu_reg to alu_sreg. Change type of dsp instructions from
5638 alu_reg to alu_dsp_reg.
5639 * config/arm/thumb1.md: Likewise.
5640 * config/arm/thumb2.md: Likewise.
5641 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
5642 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
5643 with alu_sreg and alus_sreg.
5644 * config/arm/arm1026ejs.md (alu_op): Likewise.
5645 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
5646 * config/arm/arm926ejs.md (9_alu_op): Likewise.
5647 * config/arm/fa526.md (526_alu_op): Likewise.
5648 * config/arm/fa606te.md (606te_alu_op): Likewise.
5649 * config/arm/fa626te.md (626te_alu_op): Likewise.
5650 * config/arm/fa726te.md (726te_alu_op): Likewise.
5651 * config/arm/fmp626.md (mp626_alu_op): Likewise.
5652 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
5653 alu_sreg, alu_dsp_reg and alus_sreg.
5654 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
5655 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
5656 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
5657 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
5658 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
5659 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
5660 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
5661 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
5662 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
5663 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
5664 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
5665 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
5666 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
5667 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
5668 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
5669 alus_reg to alus_sreg.
5670
5671 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
5672
5673 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
5674 infinity format.
5675
5676 2014-07-17 Richard Biener <rguenther@suse.de>
5677
5678 PR rtl-optimization/61801
5679 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
5680 don't set reg_pending_barrier if it appears in a debug-insn.
5681
5682 2014-07-16 DJ Delorie <dj@redhat.com>
5683
5684 * config/rx/rx.c (rx_option_override): Fix alignment values.
5685 (rx_align_for_label): Likewise.
5686
5687 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
5688
5689 PR target/61737.
5690 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
5691 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5692 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
5693 functions.
5694 (cris_print_index, cris_print_operand, cris_constant_index_p)
5695 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
5696 (cris_address_cost): Ditto last CONSTANT_P.
5697 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
5698 callers changed. Yield cris_offsettable_symbol for non-PIC
5699 constant symbolic expressions including labels. Yield cris_unspec
5700 for all unspecs.
5701 (cris_expand_pic_call_address): New parameter MARKERP. Set its
5702 target to pic_offset_table_rtx for calls that will likely go
5703 through PLT, const0_rtx when they can't. All callers changed.
5704 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
5705 symbolic expressions to be PICified. Remove second, redundant,
5706 assert on can_create_pseudo_p returning non-zero. Use
5707 replace_equiv_address_nv, not replace_equiv_address, for final
5708 operand update.
5709 * config/cris/cris.md ("movsi"): Move variable t to pattern
5710 toplevel. Adjust assert for new cris_symbol_type member. Use
5711 CONSTANT_P instead of CONSTANT_ADDRESS_P.
5712 ("*movsi_internal") <case 9>: Make check for valid unspec operands
5713 for lapc stricter.
5714 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
5715 ("call", "call_value"): Use second incoming operand as a marker
5716 for pic-offset-table-register being used.
5717 ("*expanded_call_non_v32", "*expanded_call_v32")
5718 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
5719 second incoming operand to CALL, match cris_call_type_marker.
5720 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
5721 ("*expanded_call_side"): Ditto. Fix typo in comment.
5722 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
5723 CONSTANT_P.
5724 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
5725 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
5726 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
5727 users changed. Add members cris_offsettable_symbol and cris_unspec.
5728 (cris_symbol_type): Rename from cris_pic_symbol_type.
5729 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
5730 just CONSTANT_P.
5731 * config/cris/cris-protos.h (cris_symbol_type_of,
5732 cris_expand_pic_call_address): Adjust prototypes.
5733 (cris_legitimate_constant_p): New prototype.
5734
5735 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
5736 an existing tmake_file. Don't add t-slibgcc and t-linux.
5737
5738 2014-07-17 Jason Merrill <jason@redhat.com>
5739
5740 PR c++/61623
5741 * symtab.c (symtab_remove_from_same_comdat_group): Also
5742 set_comdat_group to NULL_TREE.
5743 (verify_symtab): Fix diagnostic.
5744
5745 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
5746
5747 PR target/61662
5748 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
5749
5750 2014-07-16 Dodji Seketeli <dodji@redhat.com>
5751
5752 Support location tracking for built-in macro tokens
5753 * input.h (is_location_from_builtin_token): New function declaration.
5754 * input.c (is_location_from_builtin_token): New function definition.
5755 * toplev.c (general_init): Tell libcpp what the pre-defined
5756 spelling location for built-in tokens is.
5757
5758 2014-07-16 Jakub Jelinek <jakub@redhat.com>
5759
5760 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
5761 on the FUNCTION_DECL.
5762
5763 2014-07-16 Richard Biener <rguenther@suse.de>
5764
5765 PR other/61782
5766 * doc/extend.texi (always_inline): Clarify.
5767
5768 2014-07-15 Eric Christopher <echristo@gmail.com>
5769
5770 * doc/invoke.texi (Link Options): Document -z option.
5771
5772 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
5773
5774 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
5775 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
5776
5777 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
5778
5779 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
5780
5781 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
5782
5783 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
5784 varpool_assemble_decl.
5785 * varpool.c (varpool_assemble_decl): Assert that node->definition is
5786 true.
5787
5788 2014-07-15 Michael Matz <matz@suse.de>
5789
5790 PR rtl-optimization/61772
5791 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
5792
5793 2014-07-15 Richard Biener <rguenther@suse.de>
5794
5795 * opts.c (default_options_table): Disable bit-ccp at -Og.
5796
5797 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
5798
5799 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
5800
5801 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
5802
5803 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
5804 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
5805 call langhook for unknown declaration.
5806 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
5807 * tree.h (DECL_ARGUMENTS): Update.
5808 * print-tree.c (print_node): Update.
5809 * tree-core.h (tree_decl_non_common): Remove arguments.
5810 (tree_function_decl): Add arguments.
5811
5812 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
5813
5814 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
5815
5816 2014-07-14 Richard Biener <rguenther@suse.de>
5817
5818 PR tree-optimization/61779
5819 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
5820 simplifying a condition.
5821
5822 2014-07-14 Richard Biener <rguenther@suse.de>
5823
5824 * builtins.c (c_strlen): Make only_value == 2 really only
5825 affect warning generation.
5826
5827 2014-07-14 Richard Biener <rguenther@suse.de>
5828
5829 PR tree-optimization/61757
5830 PR tree-optimization/61783
5831 PR tree-optimization/61787
5832 * tree-ssa-dom.c (record_equality): Revert canonicalization
5833 change and add comment.
5834 (propagate_rhs_into_lhs): Revert previous fix, removing
5835 loop depth restriction again.
5836
5837 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5838
5839 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
5840 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
5841 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
5842 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
5843 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
5844 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
5845 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
5846
5847 2014-07-14 Richard Biener <rguenther@suse.de>
5848
5849 * cgraph.h (decl_in_symtab_p): Make inline.
5850
5851 2014-07-14 Jakub Jelinek <jakub@redhat.com>
5852
5853 PR middle-end/61294
5854 * doc/invoke.texi (-Wmemset-transposed-args): Document.
5855
5856 PR target/61656
5857 * config/i386/i386.c (classify_argument): Don't merge classes above
5858 number of words.
5859
5860 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
5861
5862 * cgraph.h (symtab_node): Add nonzero_address.
5863 (decl_in_symtab_p): Break out from ...
5864 (symtab_get_node): ... here.
5865 * fold-const.c: Include cgraph.h
5866 (tree_single_nonzero_warnv_p): Use symtab to determine
5867 if symbol is non-zero.
5868 * symtab.c (symtab_node::nonzero_address): New method.
5869
5870 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
5871
5872 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
5873 forgotten in previous commit.
5874
5875 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
5876
5877 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
5878 on builtin types.
5879 * ipa-devirt.c: Include stor-layout.h and intl.h
5880 (odr_subtypes_equivalent_p): New function.
5881 (warn_odr): New function.
5882 (warn_type_mismatch): New function.
5883 (odr_types_equivalent_p): New function.
5884 (add_type_duplicate): Use it.
5885 * common.opt (Wodr): New flag.
5886 * doc/invoke.texi (Wodr): Document new warning.
5887
5888 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
5889
5890 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
5891 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
5892 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
5893 (varpool_get_constructor): Push CTORS_IN timevar.
5894 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
5895
5896 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
5897
5898 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
5899 Remove VOID_FTYPE_PUSHORT.
5900 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
5901 Change code to USHORT_FTYPE_VOID.
5902 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
5903 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
5904 (ix86_atomic_assign_expand_fenv): Update for
5905 __builtin_ia32_fnstsw changes.
5906 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
5907 (fnstsw): Change operand 0 to nonimmediate operand.
5908
5909 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
5910
5911 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
5912 (varpool_get_constructor): New function.
5913 (varpool_ctor_useable_for_folding_p): Break out from ...
5914 (ctor_for_folding): ... here; use varpool_get_constructor.
5915 (varpool_assemble_decl): Likewise.
5916 * lto-streamer.h (struct output_block): Turn cgraph_node
5917 to symbol filed.
5918 (lto_input_variable_constructor): Declare.
5919 * ipa-visibility.c (function_and_variable_visibility): Use
5920 varpool_get_constructor.
5921 * cgraph.h (varpool_get_constructor): Declare.
5922 (varpool_ctor_useable_for_folding_p): New function.
5923 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
5924 parameter; return error_mark_node for non-trivial constructors.
5925 (lto_write_tree_1, DFS_write_tree): Update use of
5926 get_symbol_initial_value.
5927 (output_function): Update initialization of symbol.
5928 (output_constructor): New function.
5929 (copy_function): Rename to ..
5930 (copy_function_or_variable): ... this one; handle vars too.
5931 (lto_output): Output variable sections.
5932 * lto-streamer-in.c (input_constructor): New function.
5933 (lto_read_body): Rename from ...
5934 (lto_read_body_or_constructor): ... this one; handle vars too.
5935 (lto_input_variable_constructor): New function.
5936 * ipa-prop.c (ipa_prop_write_jump_functions,
5937 ipa_prop_write_all_agg_replacement): Update.
5938 * lto-cgraph.c (compute_ltrans_boundary): Use it.
5939 (output_cgraph_opt_summary): Set symbol to NULL.
5940
5941 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
5942
5943 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
5944 non-polymorphic types.
5945 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
5946 * ipa-devirt.c (types_same_for_odr): Do not explode when one
5947 of types is not polymorphic.
5948
5949 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
5950
5951 * lra-constraints.c (remove_inheritance_pseudos): Process
5952 destination pseudo too.
5953
5954 2014-07-11 Rong Xu <xur@google.com>
5955
5956 * gcov-tool.c (gcov_output_files): Fix build error introduced in
5957 commit r212448.
5958
5959 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5960
5961 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
5962 * config/avr/avr-devices.c (AVR_MCU): Same.
5963 (avr_mcu_types): add text start value to end of device list.
5964 * config/avr/avr-mcus.def: Add text section start for all devices.
5965 (ata5782): Add new avr5 device.
5966 (ata5831): Same.
5967 * config/avr/avr-tables.opt: Regenerate.
5968 * config/avr/avr.h: Add declaration for text section start handler.
5969 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
5970 SPEC functions.
5971 (LINK_SPEC): Include text section start handler to linker spec.
5972 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
5973 pass -Ttext option to linker if the text section start for the device
5974 is not zero.
5975 * config/avr/t-multilib: Regenerate.
5976 * doc/avr-mmcu.texi: Regenerate.
5977
5978 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
5979
5980 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
5981 * config/rs6000/aix52.h (LINK_SPEC): Same.
5982 * config/rs6000/aix53.h (LINK_SPEC): Same.
5983 * config/rs6000/aix61.h (LINK_SPEC): Same.
5984 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
5985
5986 2014-07-11 Roman Gareev <gareevroman@gmail.com>
5987
5988 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
5989 (graphite_verify): New function.
5990 (ivs_params_clear): New function.
5991 (gcc_expression_from_isl_ast_expr_id): New function.
5992 (gcc_expression_from_isl_expr_int): New function.
5993 (binary_op_to_tree): New function.
5994 (ternary_op_to_tree): New function.
5995 (unary_op_to_tree): New function.
5996 (nary_op_to_tree): New function.
5997 (gcc_expression_from_isl_expr_op): New function.
5998 (gcc_expression_from_isl_expression): New function.
5999 (graphite_create_new_loop): New function.
6000 (translate_isl_ast_for_loop): New function.
6001 (get_upper_bound): New function.
6002 (graphite_create_new_loop_guard): New function.
6003 (translate_isl_ast_node_for): New function.
6004 (translate_isl_ast): New function.
6005 (add_parameters_to_ivs_params): New function.
6006 (scop_to_isl_ast): New parameter ip.
6007 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
6008
6009 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
6010
6011 * config/xtensa/predicates.md (call expander): Update for
6012 DECL_SECTION_NAME being string.
6013
6014 2014-07-11 Richard Biener <rguenther@suse.de>
6015
6016 PR middle-end/61473
6017 * builtins.c (fold_builtin_memory_op): Inline memory moves that
6018 can be implemented with a single load followed by a single store.
6019 (c_strlen): Only warn when only_value is not 2.
6020
6021 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
6022
6023 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
6024
6025 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
6026
6027 PR target/61561
6028 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
6029 (*movhi_bytes): Likewise.
6030 (*arm_movqi_insn): Likewise.
6031
6032 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
6033
6034 PR target/56858
6035 * config/alpha/alpha.c: Include tree-pass.h, context.h
6036 and pass_manager.h.
6037 (pass_data_handle_trap_shadows): New pass.
6038 (pass_handle_trap_shadows::gate): New pass gate function.
6039 (make_pass_handle_trap_shadows): New function.
6040 (rest_of_handle_trap_shadows): Ditto.
6041
6042 (alpha_align_insns_1): Rename from alpha_align_insns.
6043 (pass_data_align_insns): New pass.
6044 (pass_align_insns::gate): New pass gate function.
6045 (make_pass_aling_insns): New function.
6046 (rest_of_align_insns): Ditto.
6047 (alpha_align_insns): Ditto.
6048
6049 (alpha_option_override): Declare handle_trap_shadows info
6050 and align_insns_info. Register handle_trap_shadows and align_insns
6051 passes here.
6052 (alpha_reorg): Do not call alpha_trap_shadows and
6053 alpha_align_insn from here.
6054
6055 (alpha_pad_function_end): Do not skip BARRIERs.
6056
6057 2014-07-10 Rong Xu <xur@google.com>
6058
6059 Add gcov-tool: an offline gcda profile processing tool support.
6060 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
6061 (gcov_is_error): Ditto.
6062 (gcov_read_string): Ditto.
6063 (gcov_read_sync): Ditto.
6064 * gcov-io.h: Move counter defines to gcov-counter.def.
6065 * gcov-dump.c (tag_counters): Use gcov-counter.def.
6066 * coverage.c: Ditto.
6067 * gcov-tool.c: Offline gcda profile processing tool.
6068 (unlink_gcda_file): Remove one gcda file.
6069 (unlink_profile_dir): Remove gcda files from the profile path.
6070 (gcov_output_files): Output gcda files to an output dir.
6071 (profile_merge): Merge two profiles in directory.
6072 (print_merge_usage_message): Print merge usage.
6073 (merge_usage): Print merge usage and exit.
6074 (do_merge): Driver for profile merge sub-command.
6075 (profile_rewrite): Rewrite profile.
6076 (print_rewrite_usage_message): Print rewrite usage.
6077 (rewrite_usage): Print rewrite usage and exit.
6078 (do_rewrite): Driver for profile rewrite sub-command.
6079 (print_usage): Print gcov-info usage and exit.
6080 (print_version): Print gcov-info version.
6081 (process_args): Process arguments.
6082 (main): Main routine for gcov-tool.
6083 * Makefile.in: Build and install gcov-tool.
6084 * gcov-counter.def: New file split from gcov-io.h.
6085 * doc/gcc.texi: Include gcov-tool.texi.
6086 * doc/gcov-tool.texi: Document for gcov-tool.
6087
6088 2014-07-10 Richard Biener <rguenther@suse.de>
6089
6090 PR tree-optimization/61757
6091 * tree-ssa-dom.c (loop_depth_of_name): Restore.
6092 (propagate_rhs_into_lhs): Revert part of last change.
6093
6094 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
6095
6096 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
6097 FUNCTION_DECLs.
6098
6099 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
6100
6101 PR middle-end/53590
6102 * function.c (allocate_struct_function): Revert r188667 change.
6103
6104 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
6105
6106 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
6107
6108 * doc/install.texi: Remove links to defunct package providers for
6109 Solaris.
6110
6111 2014-07-09 Tom de Vries <tom@codesourcery.com>
6112
6113 * final.c (get_call_fndecl): Declare.
6114 (self_recursive_call_p): New function.
6115 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
6116
6117 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6118
6119 * ipa-devirt.c (record_node): Walk through aliases.
6120
6121 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6122
6123 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
6124
6125 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6126
6127 Revert:
6128 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
6129
6130 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6131
6132 * ipa-visibility.c (function_and_variable_visibility): Remove
6133 temporary hack disabling local aliases on AIX.
6134
6135 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6136
6137 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
6138 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
6139
6140 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6141
6142 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
6143 * rs6000/rs6000.c: Inline output of .set instruction.
6144 (declare_alias_data): New struct.
6145 (rs6000_declare_alias): New function.
6146 (rs6000_xcoff_declare_function_name): Use it.
6147 (rs6000_xcoff_declare_object_name): New function.
6148 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
6149 (ASM_OUTPUT_DEF): Turn to empty definition.
6150
6151 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
6152
6153 PR bootstrap/61679
6154 * hash-table.h: use hash_table::value_type instead of
6155 Descriptor::value_type in the return types of several methods.
6156
6157 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
6158
6159 * tree-pass.h (pass_data): Remove has_execute member.
6160 * passes.c (execute_one_pass): Don't check pass->has_execute.
6161 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
6162 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
6163 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
6164 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
6165 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
6166 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
6167 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
6168 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
6169 gimple-low.c, gimple-ssa-isolate-paths.c,
6170 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
6171 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
6172 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
6173 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
6174 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
6175 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
6176 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
6177 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
6178 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
6179 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
6180 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
6181 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
6182 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
6183 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
6184 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
6185 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
6186 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
6187 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
6188 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
6189 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
6190 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
6191 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
6192 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
6193 web.c: Remove initializer for pass_data::has_execute.
6194
6195 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
6196
6197 * graphite-htab.h: Use hash_map instead of hash_table.
6198 * graphite-clast-to-gimple.c: Adjust.
6199 * passes.c: Use hash_map instead of hash_table.
6200 * sese.c: Likewise.
6201 * sese.h: Remove now unused code.
6202
6203 2014-07-08 Sriraman Tallam <tmsriram@google.com>
6204
6205 PR target/61599
6206 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
6207 than zero.
6208
6209 2014-07-08 Jakub Jelinek <jakub@redhat.com>
6210
6211 PR rtl-optimization/61673
6212 * combine.c (simplify_comparison): Test just mode's sign bit
6213 in tmode rather than the sign bit and any bits above it.
6214
6215 2014-07-08 Roman Gareev <gareevroman@gmail.com>
6216
6217 * graphite-isl-ast-to-gimple.c (generate_isl_context):
6218 Add __isl_give to the declaration.
6219 (generate_isl_schedule): Likewise.
6220 (scop_to_isl_ast): Likewise.
6221
6222 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6223
6224 * config/arm/arm.c (cortexa5_extra_costs): New table.
6225 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
6226
6227 2014-07-08 Jakub Jelinek <jakub@redhat.com>
6228
6229 PR tree-optimization/61725
6230 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
6231 range, use range_includes_zerop_p instead of integer_zerop on
6232 vr0->min, only use log2 of max if min is not negative.
6233
6234 2014-07-08 Richard Biener <rguenther@suse.de>
6235
6236 * tree-ssa-dom.h (loop_depth_of_name): Remove.
6237 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
6238 restriction on loop depth difference.
6239 (record_equality): Likewise.
6240 (propagate_rhs_into_lhs): Likewise. Simplify condition.
6241 (loop_depth_of_name): Remove.
6242 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
6243 restriction on loop depth difference.
6244 (init_copy_prop): Likewise.
6245
6246 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6247
6248 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
6249 parameter.
6250 (walk_aliased_vdefs): Likewise.
6251 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
6252 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
6253 (detect_type_change_from_memory_writes): Check if entry was reached.
6254
6255 2014-07-08 Richard Biener <rguenther@suse.de>
6256
6257 PR tree-optimization/61681
6258 * tree-ssa-structalias.c (find_what_var_points_to): Expand
6259 NONLOCAL inside ESCAPED.
6260
6261 2014-07-08 Richard Biener <rguenther@suse.de>
6262
6263 PR tree-optimization/61680
6264 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6265 Handle properly all read-write dependences with group accesses.
6266
6267 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
6268
6269 PR tree-optimization/61576
6270 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
6271 block containing reduction statement is predecessor of phi basi block.
6272
6273 2014-07-08 Marek Polacek <polacek@redhat.com>
6274
6275 PR c/60226
6276 * fold-const.c (round_up_loc): Change the parameter type.
6277 Remove assert.
6278 * fold-const.h (round_up_loc): Adjust declaration.
6279 * stor-layout.c (finalize_record_size): Check for too large types.
6280
6281 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
6282
6283 * symtab.c: Include calls.h.
6284 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
6285
6286 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
6287
6288 * config/rs6000/rs6000.c (output_vec_const_move): Handle
6289 little-endian code generation.
6290 * config/rs6000/spe.md (spe_evmergehi): Rename to...
6291 (vec_perm00_v2si): ... this. Handle little-endian code generation.
6292 (spe_evmergehilo): Rename to...
6293 (vec_perm01_v2si): ... this. Handle little-endian code generation.
6294 (spe_evmergelo): Rename to...
6295 (vec_perm11_v2si): ... this. Handle little-endian code generation.
6296 (spe_evmergelohi): Rename to...
6297 (vec_perm10_v2si): ... this. Handle little-endian code generation.
6298 (spe_evmergehi, spe_evmergehilo): New expanders.
6299 (spe_evmergelo, spe_evmergelohi): Likewise.
6300 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
6301 (*frob_tf_ti): Likewise.
6302 (*frob_<mode>_di_2): Likewise.
6303 (*frob_tf_di_8_2): Likewise.
6304 (*frob_di_<mode>): Likewise.
6305 (*frob_ti_tf): Likewise.
6306 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
6307 (*frob_ti_<mode>_8_2): Likewise.
6308 (*frob_ti_tf_2): Likewise.
6309 (mov_si<mode>_e500_subreg0): Rename to...
6310 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
6311 endianness only.
6312 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
6313 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
6314 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
6315 the big endianness only.
6316 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
6317 (*mov_si<mode>_e500_subreg0_2): Rename to...
6318 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
6319 big big endianness only.
6320 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
6321 (*mov_si<mode>_e500_subreg4): Rename to...
6322 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
6323 endianness only.
6324 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
6325 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
6326 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
6327 the big endianness only.
6328 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
6329 pattern.
6330 (*mov_si<mode>_e500_subreg4_2): Rename to...
6331 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
6332 endianness only.
6333 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
6334 (*mov_sitf_e500_subreg8): Rename to...
6335 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
6336 endianness only.
6337 (*mov_sitf_e500_subreg8_le): New instruction pattern.
6338 (*mov_sitf_e500_subreg8_2): Rename to...
6339 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
6340 endianness only.
6341 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
6342 (*mov_sitf_e500_subreg12): Rename to...
6343 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
6344 endianness only.
6345 (*mov_sitf_e500_subreg12_le): New instruction pattern.
6346 (*mov_sitf_e500_subreg12_2): Rename to...
6347 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
6348 endianness only.
6349 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
6350
6351 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
6352
6353 * asan.c (instrument_strlen_call): Do not instrument first byte
6354 in strlen if already instrumented.
6355
6356 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6357
6358 * config/arm/arm.opt (mwords-little-endian): Delete.
6359 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
6360 of TARGET_LITTLE_WORDS.
6361 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
6362 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
6363 warning.
6364 * doc/invoke.texi: Remove references to -mwords-little-endian.
6365
6366 2014-07-07 Jakub Jelinek <jakub@redhat.com>
6367
6368 * expmed.c (struct init_expmed_rtl): Change all fields but
6369 pow2 and cint from struct rtx_def to rtx.
6370 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
6371 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
6372 at the end again.
6373
6374 2014-07-06 Marek Polacek <polacek@redhat.com>
6375
6376 PR c/6940
6377 * doc/invoke.texi: Document -Wsizeof-array-argument.
6378
6379 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
6380
6381 * wide-int.h (wide_int_storage): Change declaration from struct
6382 to class.
6383
6384 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
6385
6386 * cgraph.c (cgraph_create_indirect_edge): Update call of
6387 get_polymorphic_call_info.
6388 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
6389 (possible_polymorphic_call_targets): Add parameter call.
6390 (decl_maybe_in_construction_p): New predicate.
6391 (get_polymorphic_call_info): Add parameter call;
6392 use decl_maybe_in_construction_p.
6393 * gimple-fold.c (fold_gimple_assign): Update use of
6394 possible_polymorphic_call_targets.
6395 (gimple_fold_call): Likewise.
6396 * ipa-prop.c: Inlcude calls.h
6397 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
6398 (param_type_may_change_p): New predicate.
6399 (detect_type_change_from_memory_writes): Break out from ...
6400 (detect_type_change): ... this one; use param_type_may_change_p.
6401 (detect_type_change_ssa): Use param_type_may_change_p.
6402 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
6403
6404 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
6405
6406 PR target/49423
6407 * config/arm/arm-protos.h (arm_legitimate_address_p,
6408 arm_is_constant_pool_ref): Add prototypes.
6409 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
6410 (arm_is_constant_pool_ref) New function.
6411 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
6412 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
6413 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
6414 operand. Remove pool_range and neg_pool_range attributes.
6415 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
6416 pool_range and neg_pool_range attributes.
6417 * config/arm/constraints.md (Uh): New constraint.
6418 (Uq): Don't allow constant pool references.
6419
6420 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
6421
6422 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
6423 (move_lo_quad_internal_be_<mode>): Likewise.
6424 (move_lo_quad_<mode>): Convert to define_expand.
6425 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
6426 (aarch64_simd_move_hi_quad_be_<mode>): New.
6427 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
6428 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
6429 (aarch64_combinez_be<mode>): New.
6430 (aarch64_combine<mode>): Convert to define_expand.
6431 (aarch64_combine_internal<mode>): New.
6432 (aarch64_simd_combine<mode>): Remove bogus RTL description.
6433
6434 2014-07-04 Tom de Vries <tom@codesourcery.com>
6435
6436 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
6437 combination of earlyclobber and read/write modifiers.
6438
6439 2014-07-04 Tom de Vries <tom@codesourcery.com>
6440
6441 * config/aarch64/aarch64-simd.md
6442 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
6443
6444 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
6445
6446 PR target/61714
6447 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
6448
6449 2014-07-04 Jakub Jelinek <jakub@redhat.com>
6450
6451 PR middle-end/61654
6452 * cgraphunit.c (expand_thunk): Call free_dominance_info.
6453
6454 PR tree-optimization/61684
6455 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
6456 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
6457
6458 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6459 Kito Cheng <kito@0xlab.org>
6460 Monk Chiang <sh.chiang04@gmail.com>
6461
6462 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
6463 (nds32_symbol_load_store_p): Move to ...
6464 (nds32_fp_as_gp_check_available): Move to ...
6465 * config/nds32/nds32-fp-as-gp.c: ... here.
6466 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
6467 extern declaration.
6468
6469 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6470 Kito Cheng <kito@0xlab.org>
6471 Monk Chiang <sh.chiang04@gmail.com>
6472
6473 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
6474 (nds32_expand_store_multiple): Move to ...
6475 (nds32_expand_movmemqi): Move to ...
6476 * config/nds32/nds32-memory-manipulation.c: ... here.
6477
6478 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6479 Kito Cheng <kito@0xlab.org>
6480 Monk Chiang <sh.chiang04@gmail.com>
6481
6482 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
6483 (nds32_output_casesi_pc_relative): Move to ...
6484 (nds32_output_casesi): Move to ...
6485 (nds32_mem_format): Move to ...
6486 (nds32_output_16bit_store): Move to ...
6487 (nds32_output_16bit_load): Move to ...
6488 (nds32_output_32bit_store): Move to ...
6489 (nds32_output_32bit_load): Move to ...
6490 (nds32_output_32bit_load_s): Move to ...
6491 (nds32_output_stack_push): Move to ...
6492 (nds32_output_stack_pop): Move to ...
6493 * config/nds32/nds32-md-auxiliary.c: ... here.
6494
6495 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6496 Ling-Hua Tseng <uranus@tinlans.org>
6497
6498 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
6499 the purpose of this file.
6500
6501 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6502 Kito Cheng <kito@0xlab.org>
6503 Monk Chiang <sh.chiang04@gmail.com>
6504
6505 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
6506 (nds32_address_cost): Move implementation to ...
6507 * config/nds32/nds32-cost.c: ... here.
6508 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
6509 (nds32_address_cost_impl): Declare.
6510
6511 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6512 Kito Cheng <kito@0xlab.org>
6513 Monk Chiang <sh.chiang04@gmail.com>
6514
6515 * config/nds32/nds32.c
6516 (nds32_consecutive_registers_load_store_p): Move to ...
6517 (nds32_valid_multiple_load_store): Move to ...
6518 (nds32_valid_stack_push_pop): Move to ...
6519 (nds32_can_use_bclr_p): Move to ...
6520 (nds32_can_use_bset_p): Move to ...
6521 (nds32_can_use_btgl_p): Move to ...
6522 (nds32_can_use_bitci_p): Move to ...
6523 * config/nds32/nds32-predicates.c: ... here.
6524
6525 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6526 Kito Cheng <kito@0xlab.org>
6527 Monk Chiang <sh.chiang04@gmail.com>
6528
6529 * config/nds32/nds32.c
6530 (nds32_expand_builtin_null_ftype_reg): Move to ...
6531 (nds32_expand_builtin_reg_ftype_imm): Move to ...
6532 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
6533 (nds32_init_builtins): Move implementation to ...
6534 (nds32_expand_builtin): Move implementation to ...
6535 * config/nds32/nds32-intrinsic.c: ... here.
6536 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
6537 (nds32_expand_builtin_impl): Declare.
6538
6539 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6540 Kito Cheng <kito@0xlab.org>
6541 Monk Chiang <sh.chiang04@gmail.com>
6542
6543 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
6544 (nds32_emit_section_tail_template): Move to ...
6545 (nds32_emit_isr_jmptbl_section): Move to ...
6546 (nds32_emit_isr_vector_section): Move to ...
6547 (nds32_emit_isr_reset_conten): Move to ...
6548 (nds32_check_isr_attrs_conflict): Move to ...
6549 (nds32_construct_isr_vectors_information): Move to ...
6550 (nds32_asm_file_start): Move implementation to ...
6551 (nds32_asm_file_end): Move implementation to ...
6552 * config/nds32/nds32-isr.c: ... here.
6553 * config/nds32/nds32-protos.h
6554 (nds32_check_isr_attrs_conflict): Declare.
6555 (nds32_construct_isr_vectors_information): Declare.
6556 (nds32_asm_file_start_for_isr): Declare.
6557 (nds32_asm_file_end_for_isr): Declare.
6558
6559 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6560 Kito Cheng <kito@0xlab.org>
6561 Monk Chiang <sh.chiang04@gmail.com>
6562
6563 * config.gcc (nds32*): Add new modules to extra_objs.
6564 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
6565 (nds32be-*-*): Likewise.
6566 * config/nds32/nds32-cost.c: New file.
6567 * config/nds32/nds32-fp-as-gp.c: New file.
6568 * config/nds32/nds32-intrinsic.c: New file.
6569 * config/nds32/nds32-isr.c: New file.
6570 * config/nds32/nds32-md-auxiliary.c: New file.
6571 * config/nds32/nds32-memory-manipulation.c: New file.
6572 * config/nds32/nds32-pipelines-auxiliary.c: New file.
6573 * config/nds32/nds32-predicates.c: New file.
6574 * config/nds32/t-nds32: New file.
6575
6576 2014-07-03 Jakub Jelinek <jakub@redhat.com>
6577
6578 PR tree-optimization/61682
6579 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
6580 using cases and when one of the operands is equal to 1.
6581
6582 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
6583
6584 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
6585 ashr<mode>3): Correct mode of operands[2].
6586 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
6587 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
6588 Correct mode of operands[2]. Fix split condition.
6589
6590 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
6591
6592 * arm.md (arch): Add armv6_or_vfpv3.
6593 (arch_enabled): Add test for the above.
6594 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
6595 on VFP9.
6596 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
6597
6598 2014-07-03 Jakub Jelinek <jakub@redhat.com>
6599
6600 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
6601 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
6602 HWI 1 and negate the unsigned value.
6603 * expmed.c (expand_sdiv_pow2): For modes wider than word always
6604 use AND instead of shift.
6605 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
6606
6607 2014-07-03 Marek Polacek <polacek@redhat.com>
6608
6609 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
6610 (-fsanitize=float-divide-by-zero): Move to the table with
6611 -fsanitize=undefined suboptions.
6612 (-fsanitize=float-cast-overflow): Likewise.
6613
6614 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
6615
6616 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
6617 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
6618 endianness.
6619
6620 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6621
6622 * loop-invariant.c (struct invariant): Add a new member: eqno;
6623 (find_identical_invariants): Update eqno;
6624 (create_new_invariant): Init eqno;
6625 (get_inv_cost): Compute comp_cost with eqno;
6626
6627 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
6628
6629 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
6630 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
6631 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
6632 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
6633 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
6634
6635 2014-07-02 Christian Bruel <christian.bruel@st.com>
6636
6637 PR target/29349
6638 PR target/53513
6639 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
6640 (make_preds_opaque): Delete.
6641 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
6642 (commit_mode_sets): New function.
6643 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
6644 Process all modes at once.
6645 * basic-block.h (pre_edge_lcm_avs): Declare.
6646 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
6647 Call clear_aux_for_edges. Fix comments.
6648 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
6649 (pre_edge_rev_lcm): Idem.
6650 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
6651 parameter.
6652 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
6653 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
6654 Idem.
6655 * config/i386/i386.c (x96_emit_mode_set): Idem.
6656 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
6657 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
6658 (fpscr_toggle) Disallow from delay slot.
6659 * target.def (emit_mode_set): Add prev_mode parameter.
6660 * doc/tm.texi: Regenerate.
6661
6662 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6663
6664 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
6665 variable i.
6666
6667 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
6668
6669 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
6670 vtable_pointer_value_to_vtable): Constify.
6671 (contains_polymorphic_type_p): Declare.
6672 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
6673 vtable_pointer_value_to_vtable): Constify.
6674 (contains_polymorphic_type_p): New predicate.
6675 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
6676 polymorphic types.
6677 (ipa_set_ancestor_jf): Likewise.
6678 (detect_type_change): Return false in easy cases.
6679 (compute_complex_assign_jump_func): Require type to contain
6680 polymorphic type.
6681 (compute_known_type_jump_func): Likewise.
6682
6683 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
6684
6685 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
6686 Remove.
6687 (type_in_anonymous_namespace_p): Constify argument.
6688 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
6689 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
6690 (main_odr_variant): New function.
6691 (hash_type_name): Make static; update assert; do not ICE on
6692 non-records.
6693 (types_same_for_odr): Bring here from tree.c; simplify and remove
6694 old structural comparing code that doesn't work for templates.
6695 (odr_hasher::equal): Update assert.
6696 (add_type_duplicate): Return true when bases should be computed;
6697 replace incomplete loader by complete; do not output duplicated
6698 warnings; do not ICE on non-records; set odr_violated flag.
6699 (get_odr_type): Be ready to replace incomplete type by complete
6700 one; work on ODR variants instead of main variants; reorder item
6701 in array so bases have still smaller indexes.
6702 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
6703 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
6704
6705 2014-07-01 Cary Coutant <ccoutant@google.com>
6706
6707 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
6708 lookup.
6709 (resolve_addr_in_expr): When replacing the rtx in a location list
6710 entry, get a new address table entry.
6711 (dwarf2out_finish): Call index_location_lists even if there are no
6712 addr_index_table entries yet.
6713
6714 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
6715
6716 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
6717 change for not being obvious.
6718
6719 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
6720
6721 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
6722 unused argument.
6723
6724 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6725
6726 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
6727 (vcagt_f64): Likewise.
6728 (vcale_f64): Likewise.
6729 (vcaled_f64): Likewise.
6730 (vcales_f32): Likewise.
6731 (vcalt_f64): Likewise.
6732 (vcaltd_f64): Likewise.
6733 (vcalts_f32): Likewise.
6734
6735 2014-07-01 Marek Polacek <polacek@redhat.com>
6736
6737 * doc/invoke.texi: Document -Wint-conversion.
6738
6739 2014-07-01 Marek Polacek <polacek@redhat.com>
6740
6741 PR c/58286
6742 * doc/invoke.texi: Document -Wincompatible-pointer-types.
6743
6744 2014-07-01 Martin Liska <mliska@suse.cz>
6745
6746 IPA REF alias refactoring
6747 * cgraph.h (iterate_direct_aliases): New function.
6748 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
6749 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
6750 FOR_EACH_ALIAS added.
6751 (cgraph_for_node_and_aliases): Likewise.
6752 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
6753 * ipa-inline.c (reset_edge_caches): Likewise.
6754 (update_caller_keys): Likewise.
6755 * trans-mem.c (ipa_tm_execute): Likewise.
6756 *varpool.c (varpool_analyze_node): Likewise.
6757 (varpool_for_node_and_aliases): Likewise.
6758 * ipa-ref.h (first_alias): New function.
6759 (last_alias): Likewise.
6760 (has_aliases_p): Likewise.
6761 * ipa-ref.c (ipa_ref::remove_reference): Removal function
6762 is sensitive to IPA_REF_ALIASes.
6763 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
6764 are put at the beginning of the list.
6765 (symtab_node::iterate_direct_aliases): New function.
6766
6767 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6768
6769 Revert:
6770 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
6771 type is complete.
6772 (write_ts_type_common_tree_pointers): Do not stream fields not set
6773 for incomplete types; do not stream duplicated fields for variants;
6774 sanity check that variant and type match.
6775 (write_ts_type_non_common_tree_pointers): Likewise.
6776 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
6777 TYPE_SIZE whether type is complete.
6778 (lto_input_ts_type_common_tree_pointers): Do same changes as in
6779 write_ts_type_common_tree_pointers
6780 (lto_input_ts_type_non_common_tree_pointers): Likewise.
6781
6782 2014-06-30 Joseph Myers <joseph@codesourcery.com>
6783
6784 * var-tracking.c (add_stores): Return instead of asserting if old
6785 and new values for conditional store are the same.
6786
6787 2014-06-30 Richard Henderson <rth@redhat.com>
6788
6789 PR rtl-opt/61608
6790 PR target/39284
6791 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
6792 the cfg if there were any changes.
6793 * passes.def: Revert move of peephole2 after reorder_blocks;
6794 move duplicate_computed_gotos before peephole2.
6795
6796 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
6797
6798 * except.c (emit_note_eh_region_end): New helper function.
6799 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
6800 emit EH_REGION_END note.
6801 * jump.c (cleanup_barriers): Do not split a call and its
6802 corresponding CALL_ARG_LOCATION note.
6803
6804 2014-06-30 Jeff Law <law@redhat.com>
6805
6806 PR tree-optimization/61607
6807 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
6808 deeper into the SSA_NAME_VALUE chain.
6809
6810 2014-06-30 Marek Polacek <polacek@redhat.com>
6811
6812 * convert.c (convert_to_integer): Don't instrument conversions if the
6813 function has no_sanitize_undefined attribute.
6814 * ubsan.c: Don't run the ubsan pass if the function has
6815 no_sanitize_undefined attribute.
6816
6817 2014-06-30 Jakub Jelinek <jakub@redhat.com>
6818
6819 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
6820 -fsanitize=undefined suboptions.
6821
6822 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
6823
6824 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
6825 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
6826 against bigendian and adjust indices.
6827
6828 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
6829
6830 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
6831
6832 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
6833
6834 PR target/61633
6835 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
6836 Add alternative; make early clobber. Adjust both split patterns
6837 to use operand 0 as the working register.
6838
6839 2014-06-30 Jakub Jelinek <jakub@redhat.com>
6840
6841 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
6842 as ira_object_id_map might be NULL, or 1.
6843
6844 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6845
6846 * loop-invariant.c (get_inv_cost): Handle register class.
6847 (gain_for_invariant): Check the register pressure of the inv
6848 and its overlapped register class, other than all.
6849
6850 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
6851
6852 * doc/invoke.texi (Optimize Options): Fix descriptions of
6853 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
6854
6855 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
6856
6857 * doc/extend.texi (Function Attributes): Update 'naked' attribute
6858 documentation.
6859
6860 2014-06-29 Tobias Grosser <tobias@grosser.es>
6861
6862 PR bootstrap/61650
6863 * graphite-isl-ast-to-gimple.c: Add missing guards.
6864
6865 2014-06-29 Roman Gareev <gareevroman@gmail.com>
6866
6867 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
6868 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
6869 * flag-types.h: Add new enum fgraphite_generator.
6870 * graphite-isl-ast-to-gimple.c: New.
6871 * graphite-isl-ast-to-gimple.h: New.
6872 * graphite.c (graphite_transform_loops): Add choice of Graphite
6873 code generator, which depends on flag_graphite_code_gen.
6874
6875 2014-06-29 Roman Gareev <gareevroman@gmail.com>
6876
6877 * graphite-dependences.c (subtract_commutative_associative_deps):
6878 Add NULL checking of the following variables: must_raw_no_source,
6879 may_raw_no_source, must_war_no_source, may_war_no_source,
6880 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
6881 must_war, may_war, must_waw, may_waw.
6882
6883 2014-06-29 Roman Gareev <gareevroman@gmail.com>
6884
6885 * graphite-clast-to-gimple.c: gloog is renamed to
6886 graphite_regenerate_ast_cloog. gloog_error is renamed to
6887 graphite_regenerate_error.
6888 * graphite-clast-to-gimple.h: The definition of the struct
6889 bb_pbb_def is moved to graphite-htab.h.
6890 Add inclusion of the hash-table.h.
6891 * graphite-htab.h: The declaration of the function gloog is moved
6892 to graphite-clast-to-gimple.h and renamed to
6893 graphite_regenerate_ast_cloog.
6894 * graphite.c (graphite_transform_loops): gloog is renamed
6895 to graphite_regenerate_ast_cloog.
6896
6897 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6898
6899 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
6900 type is complete.
6901 (write_ts_type_common_tree_pointers): Do not stream fields not set
6902 for incomplete types; do not stream duplicated fields for variants;
6903 sanity check that variant and type match.
6904 (write_ts_type_non_common_tree_pointers): Likewise.
6905 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
6906 TYPE_SIZE whether type is complete.
6907 (lto_input_ts_type_common_tree_pointers): Do same changes as in
6908 write_ts_type_common_tree_pointers
6909 (lto_input_ts_type_non_common_tree_pointers): Likewise.
6910
6911 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6912
6913 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
6914
6915 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6916
6917 * tree-inline.c (remap_type_1): Do not duplicate fields
6918 that are shared in between type and its main variant.
6919
6920 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6921
6922 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
6923 of the type.
6924 (ipa_set_ancestor_jf) Likewise.
6925 (check_stmt_for_type_change): Check that we work on main variant.
6926 (detect_type_change): Look into main variant.
6927 (compute_known_type_jump_func): Check that main variant has BINFO.
6928
6929 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6930
6931 * ipa-devirt.c (set_type_binfo): New function.
6932 (add_type_duplicate): Use it.
6933 (get_odr_type): Sanity check that binfos points to main variants.
6934 (get_class_context): Be sure the context's outer_type is main variant.
6935 (contains_type_p): Walk main variant.
6936 (get_polymorphic_call_info_for_decl): Set outer_type to be
6937 main variant.
6938 (get_polymorphic_call_info): Likewise.
6939 (possible_polymorphic_call_targets): Sanity check that we operate
6940 on main variant.
6941
6942 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6943
6944 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
6945
6946 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6947
6948 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
6949 accidental change due to wide-int branch merge.
6950
6951 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6952
6953 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
6954 compressed debug support.
6955 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
6956 * configure: Regenerate.
6957 * config.in: Regenerate.
6958 * common.opt (compressed_debug_sections): New enum.
6959 (gz, gz=): New options.
6960 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
6961 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
6962 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
6963 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
6964 LINK_COMPRESS_DEBUG_SPEC.
6965 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
6966 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
6967 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
6968 (Debugging Options): Document -gz[=type].
6969
6970 2014-06-27 Martin Jambor <mjambor@suse.cz>
6971
6972 PR ipa/61160
6973 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
6974 args_to_skip, use those from node instead. Copy args_to_skip and
6975 combined_args_to_skip from node to the new thunk.
6976 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
6977 (cgraph_create_virtual_clone): Moved computation of
6978 combined_args_to_skip...
6979 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
6980
6981 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
6982
6983 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
6984 redundant diagnostic machinary.
6985
6986 2014-06-27 Richard Biener <rguenther@suse.de>
6987
6988 * tree-ssa-math-opts.c (bswap_replace): Fix
6989 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
6990
6991 2014-06-27 Martin Liska <mliska@suse.cz>
6992
6993 * gimple.h (gimple_location_safe): New function introduced.
6994 * cgraphunit.c (walk_polymorphic_call_targets): Usage
6995 of gimple_location_safe replaces gimple_location.
6996 (gimple_fold_call): Likewise.
6997 * ipa-devirt.c (ipa_devirt): Likewise.
6998 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6999 * ipa.c (walk_polymorphic_call_targets): Likewise.
7000 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
7001
7002 2014-06-27 Jakub Jelinek <jakub@redhat.com>
7003
7004 PR tree-optimization/57233
7005 PR tree-optimization/61299
7006 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
7007 functions.
7008 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
7009 would be lowered to scalar shifts, check if corresponding
7010 shifts and vector BIT_IOR_EXPR are supported and don't lower
7011 or lower just to narrower vector type in that case.
7012 * expmed.c (expand_shift_1): Fix up handling of vector
7013 shifts and rotates.
7014
7015 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
7016
7017 PR target/61586
7018 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
7019
7020 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
7021
7022 * doc/invoke.texi (-fsemantic-interposition): Document.
7023 * common.opt (fsemantic-interposition): New flag.
7024 * varasm.c (decl_replaceable_p): Use it.
7025
7026 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7027
7028 PR target/61542
7029 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
7030 extraction other than index 3.
7031
7032 2014-06-26 Teresa Johnson <tejohnson@google.com>
7033
7034 * doc/invoke.texi: Fix typo.
7035 * dumpfile.c: Add support for documented -fdump-* options
7036 optimized/missed/note/optall.
7037
7038 2014-06-26 Martin Jambor <mjambor@suse.cz>
7039
7040 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
7041 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
7042 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
7043 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
7044 * opts.c (default_options_optimization): Set
7045 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
7046 * doc/invoke.texi (allow-load-data-races)
7047 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
7048 (allow-store-data-races): Document the new default.
7049
7050 2014-06-26 Martin Jambor <mjambor@suse.cz>
7051
7052 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
7053 renamed to ipa_impossible_devirt_target. Fix typo.
7054 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
7055 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
7056 ipa_impossible_devirt_target.
7057
7058 2014-06-26 Richard Biener <rguenther@suse.de>
7059
7060 PR tree-optimization/61607
7061 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
7062 explaining why we restrict copies on loop depth.
7063 * tree-ssa-dom.c (cprop_operand): Remove restriction on
7064 on loop depth.
7065 (record_equivalences_from_phis): Instead add it here.
7066
7067 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
7068
7069 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
7070 (LTO_WRAPPER_OBJS): New variable.
7071 (lto-wrapper$(exeext)): Use it.
7072 * collect2.c: Include "collect-utils.h".
7073 (verbose, debug): Remove variables.
7074 (at_file_supplied): No longer static.
7075 (tool_name): New variable.
7076 (do_wait, fork_execute, maybe_unlink): Don't declare.
7077 (tool_cleanup): No longer static.
7078 (notice): Remove function.
7079 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
7080 fork_execute calls.
7081 (collect_wait, do_wait, collect_execute): Remove functions.
7082 (maybe_unlink): No longer static.
7083 * collect2.h (verbose, debug): Don't declare.
7084 (at_file_supplied): Declare.
7085 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
7086 changed.
7087 (collect_execute): Replace with implementation from collect2, plus a
7088 new arg use_atfile. All callers changed.
7089 (collect_wait): Replace with implementation from collect2.
7090 (maybe_unlink_file): Remove function.
7091 (fork_execute): Replace with implementation from collect2, plus a
7092 new arg use_atfile. All callers changed.
7093 (do_wait): Add call to utils_cleanup to the error path.
7094 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
7095 (tool_cleanup): Adjust declarations.
7096 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
7097 * tlink.c: Include "collect-utils.h".
7098 (tlink_execute): New arg use_atfile. All callers changed.
7099 (tlink_init, tlink_execute): Remove declarations.
7100
7101 * collect-utils.c (save_temps): New variable.
7102 (do_wait): Use it instead of debug. Use fatal_error.
7103 * collect-utils.h (save_temps): Declare.
7104 * collect2.c (verbose): Rename from vflag. All uses changed.
7105 (tool_cleanup): New function, copied from collect_atexit.
7106 (collect_atexit, handler): Just call it.
7107 * collect2.h (verbose): Declaration renamed from vflag.
7108 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
7109 debug.
7110
7111 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
7112 (lto-wrapper$(exeext)): Link with collect-utils.o.
7113 * collect-utils.c: New file.
7114 * collect-utils.h: New file.
7115 * lto-wrapper.c: Include "collect-utils.h".
7116 (args_name): Delete variable.
7117 (tool_name): New variable.
7118 (tool_cleanup): New function.
7119 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
7120 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
7121 (fork_execute): Remove functions.
7122
7123 2014-06-26 Nick Clifton <nickc@redhat.com>
7124
7125 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
7126
7127 * doc/extend.texi (Function Attributes): Fix typo in description
7128 of RX vector attribute.
7129
7130 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
7131
7132 * config.gcc (supported_defaults): Error when passing either
7133 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
7134
7135 2014-06-26 Richard Biener <rguenther@suse.de>
7136
7137 * tree-ssa-dom.c (cprop_operand): Remove restriction on
7138 propagating volatile pointers.
7139
7140 2014-06-26 Richard Biener <rguenther@suse.de>
7141
7142 PR tree-optimization/61607
7143 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
7144 loop if we redirected its latch edge.
7145 (thread_block_1): Do not cancel loops prematurely.
7146
7147 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
7148
7149 * toplev.c (backend_init_target): Move init_emit_regs and
7150 init_regs to...
7151 (backend_init) ... here; skip ira_init_once and backend_init_target.
7152 (target_reinit) ... and here; clear
7153 this_target_rtl->lang_dependent_initialized.
7154 (lang_dependent_init_target): Clear
7155 this_target_rtl->lang_dependent_initialized;
7156 break out rtl initialization to ...
7157 (initialize_rtl): ... here; call also backend_init_target
7158 and ira_init_once.
7159 * toplev.h (initialize_rtl): New function.
7160 * function.c: Include toplev.h
7161 (init_function_start): Call initialize_rtl.
7162 * rtl.h (target_rtl): Add target_specific_initialized,
7163 lang_dependent_initialized.
7164
7165 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
7166 Jakub Jelinek <jakub@redhat.com>
7167
7168 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
7169
7170 2014-06-25 Tom de Vries <tom@codesourcery.com>
7171
7172 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
7173
7174 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
7175
7176 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
7177 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
7178 Issue a strict overflow warning if appropriate.
7179
7180 2014-06-25 Martin Liska <mliska@suse.cz>
7181
7182 IPA REF refactoring
7183 * Makefile.in: Removed header file (ipa-ref-inline.h).
7184 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
7185 called.
7186 (cgraph_speculative_call_info): Likewise.
7187 (cgraph_for_node_thunks_and_aliases): Likewise.
7188 (cgraph_for_node_and_aliases): Likewise.
7189 (verify_cgraph_node): Likewise.
7190 * cgraph.h: Batch of IPA REF functions become member functions of
7191 symtab_node: add_reference, maybe_add_reference, clone_references,
7192 clone_referring, clone_reference, find_reference,
7193 remove_stmt_references, remove_all_references,
7194 remove_all_referring, dump_references, dump_referring,
7195 has_alias_p, iterate_reference, iterate_referring.
7196 * cgraphbuild.c (record_reference): New IPA REF function used.
7197 (record_type_list): Likewise.
7198 (record_eh_tables): Likewise.
7199 (mark_address): Likewise.
7200 (mark_load): Likewise.
7201 (mark_store): Likewise.
7202 (pass_build_cgraph_edges): Likewise.
7203 (rebuild_cgraph_edge): Likewise.
7204 (cgraph_rebuild_references): Likewise.
7205 (pass_remove_cgraph_callee_edges): Likewise.
7206 * cgraphclones.c (cgraph_clone_node): Likewise.
7207 (cgraph_create_virtual_clone): Likewise.
7208 (cgraph_materialize_clone): Likewise.
7209 (cgraph_materialize_all_clones): Likewise.
7210 * cgraphunit.c (cgraph_reset_node): Likewise.
7211 (cgraph_reset_node): Likewise.
7212 (analyze_function): Likewise.
7213 (assemble_thunks_and_aliases): Likewise.
7214 (expand_function): Likewise.
7215 * ipa-comdats.c (propagate_comdat_group): Likewise.
7216 (enqueue_references): Likewise.
7217 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
7218 (create_specialized_node): Likewise.
7219 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
7220 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
7221 * ipa-inline.c (reset_edge_caches): Likewise.
7222 (update_caller_keys): Likewise.
7223 (execute): Likewise.
7224 * ipa-prop.c (remove_described_reference): Likewise.
7225 (propagate_controlled_uses): Likewise.
7226 (ipa_edge_duplication_hook): Likewise.
7227 (ipa_modify_call_arguments): Likewise.
7228 * ipa-pure-const.c (propagate_pure_const): Likewise.
7229 * ipa-ref-inline.h: Header file removed, functions moved
7230 to symtab_node class.
7231 * ipa-ref.c (remove_reference): New class member function.
7232 (cannot_lead_to_return): New class member function.
7233 (referring_ref_list): Likewise.
7234 (referred_ref_list): Likewise.
7235 Rest of functions moved to symtab_node class.
7236 * ipa-ref.h: New member functions remove_reference,
7237 cannot_lead_to_return, referring_ref_list, referred_ref_list added
7238 to ipa_ref class.
7239 ipa_ref_list class has new member functions: first_reference,
7240 first_referring, clear, nreferences.
7241 * ipa-reference.c (analyze_function): New IPA REF function used.
7242 (write_node_summary_p): Likewise.
7243 (ipa_reference_write_optimization_summary): Likewise.
7244 * ipa-split.c (split_function): Likewise.
7245 * ipa-utils.c (ipa_reverse_postorder): Likewise.
7246 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
7247 (function_and_variable_visibility): Likewise.
7248 * ipa.c (has_addr_references_p): Likewise.
7249 (process_references): Argument type changed.
7250 (symtab_remove_unreachable_nodes): New IPA REF function used.
7251 (process_references): Likewise.
7252 (set_writeonly_bit): Likewise.
7253 * lto-cgraph.c: Implementation of new symtab_node member functions
7254 that uses new IPA REF functions.
7255 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
7256 function used.
7257 * lto-streamer-out.c (output_symbol_p): Likewise.
7258 * lto-streamer.h (referenced_from_this_partition_p): Argument type
7259 changed.
7260 * symtab.c: Implementation of new IPA REF API.
7261 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
7262 (ipa_tm_create_version): Likewise.
7263 (ipa_tm_execute): Likewise.
7264 * tree-emutls.c (gen_emutls_addr): Likewise.
7265 * tree-inline.c (copy_bb): Likewise.
7266 (delete_unreachable_blocks_update_callgraph): Likewise.
7267 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
7268 (varpool_for_node_and_aliases): Likewise.
7269
7270 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
7271
7272 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
7273
7274 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
7275
7276 PR bootstrap/61598
7277 * fold-const.c (fold_checksum_tree): Use a hash_table of const
7278 tree_node * instead of tree_node *.
7279 (fold): Adjust.
7280 (print_fold_checksum): Likewise.
7281 (fold_check_failed): Likewise.
7282 (debug_fold_checksum): Likewise.
7283 (fold_build1_stat_loc): Likewise.
7284 (fold_build2_stat_loc): Likewise.
7285 (fold_build3_stat_loc): Likewise.
7286 (fold_build_call_array_loc): Likewise.
7287
7288 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
7289
7290 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
7291 implementation with call to...
7292 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
7293 function.
7294 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
7295 Declare.
7296
7297 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
7298
7299 PR tree-optimization/57742
7300 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
7301 after replacing the statement.
7302
7303 2014-06-25 Nick Clifton <nickc@redhat.com>
7304
7305 * config/v850/v850.c (GHS_default_section_names): Change to const
7306 char * type.
7307 (GHS_current_section_names): Likewise.
7308 (v850_insert_attributes): Do not build strings, just assign the
7309 names directly. Change the type of 'chosen_section' to const
7310 char*.
7311 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
7312 directly to the array entry.
7313 * config/v850/v850.h (GHS_default_section_names): Change to const
7314 char * type.
7315 (GHS_current_section_names): Likewise.
7316
7317 2014-06-25 Jakub Jelinek <jakub@redhat.com>
7318
7319 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
7320 (LANG_HOOKS_DECLS): Add it.
7321 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
7322 has correct type.
7323 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
7324 * langhooks.h (struct lang_hooks_for_decls): Add
7325 omp_clause_linear_ctor hook.
7326 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
7327 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
7328 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
7329 combined simd loop use omp_clause_linear_ctor hook.
7330
7331 2014-06-24 Cong Hou <congh@google.com>
7332
7333 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
7334 pattern recognition.
7335 (type_conversion_p): PROMOTION is true if it's a type promotion
7336 conversion, and false otherwise. Return true if the given expression
7337 is a type conversion one.
7338 * tree-vectorizer.h: Adjust the number of patterns.
7339 * tree.def: Add SAD_EXPR.
7340 * optabs.def: Add sad_optab.
7341 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
7342 * expr.c (expand_expr_real_2): Likewise.
7343 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
7344 * gimple.c (get_gimple_rhs_num_ops): Likewise.
7345 * optabs.c (optab_for_tree_code): Likewise.
7346 * tree-cfg.c (estimate_operator_cost): Likewise.
7347 * tree-ssa-operands.c (get_expr_operands): Likewise.
7348 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
7349 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
7350 * doc/generic.texi: Add document for SAD_EXPR.
7351 * doc/md.texi: Add document for ssad and usad.
7352
7353 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
7354
7355 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
7356 qualification in cast.
7357
7358 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
7359
7360 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
7361 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
7362 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
7363 (tree_function_decl): ... here.
7364 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
7365 streaming of vindex to ...
7366 (write_ts_function_decl_tree_pointers): ... here.
7367 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
7368 Do not stream DECL_VINDEX.
7369 (lto_input_ts_function_decl_tree_pointers): Stream it here.
7370
7371 2014-06-24 Catherine Moore <clm@codesourcery.com>
7372 Sandra Loosemore <sandra@codesourcery.com>
7373
7374 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
7375 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
7376 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
7377
7378 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
7379
7380 * doc/invoke.texi (Warning Options): Remove duplicated
7381 -Wmaybe-uninitialized.
7382
7383 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
7384
7385 PR tree-optimization/57742
7386 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
7387 (handle_builtin_malloc, handle_builtin_memset): New functions.
7388 (strlen_optimize_stmt): Call them.
7389 * passes.def: Move strlen after loop+dom but before vrp.
7390
7391 2014-06-24 Jakub Jelinek <jakub@redhat.com>
7392
7393 PR target/61570
7394 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
7395 model family 6 CPU with has_longmode never use a CPU without
7396 64-bit support.
7397
7398 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
7399
7400 PR target/61570
7401 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
7402 the last change.
7403
7404 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
7405
7406 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
7407 * dominance.c (iterate_fix_dominators): Use hash_map instead of
7408 pointer_map.
7409 * hash-map.h: New file.
7410 * ipa-comdats.c: Use hash_map instead of pointer_map.
7411 * ipa.c: Likewise.
7412 * lto-section-out.c: Adjust.
7413 * lto-streamer.h: Replace pointer_map with hash_map.
7414 * symtab.c (verify_symtab): Likewise.
7415 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
7416 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
7417 * tree-streamer.h: Likewise.
7418 * tree-streamer.c: Adjust.
7419 * pointer-set.h: Remove pointer_map.
7420
7421 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
7422
7423 * hash-table.h: Add a template arg to choose between storing values
7424 and storing pointers to values, and then provide partial
7425 specializations for both.
7426 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
7427 should store, not the type values should point to.
7428 * tree-into-ssa.c (var_info_hasher): Likewise.
7429 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
7430 * tree-complex.c: Adjust.
7431 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
7432 table instead of int_tree_map *.
7433 * tree-parloops.c: Adjust.
7434 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
7435 type is being stored.
7436 * tree-vectorizer.c: Adjust.
7437
7438 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
7439
7440 * hash-table.h: Remove a layer of indirection from hash_table so that
7441 it contains the hash table's data instead of a pointer to the data.
7442 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
7443 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
7444 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
7445 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
7446 fold-const.c, gcse.c, ggc-common.c,
7447 gimple-ssa-strength-reduction.c, gimplify.c,
7448 graphite-clast-to-gimple.c, graphite-dependences.c,
7449 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
7450 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
7451 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
7452 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
7453 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
7454 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
7455 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
7456 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
7457 tree-ssa-live.c, tree-ssa-loop-im.c,
7458 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
7459 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
7460 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
7461 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
7462 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
7463 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
7464 vtable-verify.c, vtable-verify.h: Adjust.
7465
7466 2014-06-24 Richard Biener <rguenther@suse.de>
7467
7468 PR tree-optimization/61572
7469 * tree-ssa-sink.c (statement_sink_location): Do not sink
7470 loads from hard registers.
7471
7472 2014-06-24 Jakub Jelinek <jakub@redhat.com>
7473
7474 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
7475 not mentioned in clauses use private clause if the iterator is
7476 declared in #pragma omp for simd, and when adding lastprivate
7477 instead, add it to the outer #pragma omp for too. Diagnose
7478 if the variable is private in outer context. For simd collapse > 1
7479 loops, replace all iterators with temporaries.
7480 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
7481 same even in collapse > 1 loops.
7482
7483 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
7484 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
7485 non-NULL.
7486 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
7487 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
7488 non-NULL.
7489 (gimplify_adjust_omp_clauses): Likewise.
7490 * omp-low.c (lower_rec_simd_input_clauses,
7491 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
7492 safelen the same as safelen(1).
7493 * tree-nested.c (convert_nonlocal_omp_clauses,
7494 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
7495 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
7496 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
7497 Fixup handling of GIMPLE_OMP_TARGET.
7498 (convert_tramp_reference_stmt, convert_gimple_call): Handle
7499 GIMPLE_OMP_TARGET.
7500
7501 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
7502
7503 PR tree-optimization/61554
7504 * tree-ssa-propagate.c: Include "bitmap.h".
7505 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
7506 properly update constructor/destructor.
7507 (substitute_and_fold_dom_walker::before_dom_children):
7508 Remove call to gimple_purge_dead_eh_edges, add bb->index to
7509 need_eh_cleaup instead.
7510 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
7511 need_eh_cleanup.
7512
7513 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
7514
7515 * varpool.c (dump_varpool_node): Dump used_by_single_function.
7516 * tree-pass.h (make_pass_ipa_single_use): New pass.
7517 * cgraph.h (used_by_single_function): New flag.
7518 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
7519 Stream it.
7520 * passes.def (pass_ipa_single_use): Scedule.
7521 * ipa.c (BOTTOM): New macro.
7522 (meet): New function
7523 (propagate_single_user): New function.
7524 (ipa_single_use): New function.
7525 (pass_data_ipa_single_use): New pass.
7526 (pass_ipa_single_use): New pass.
7527 (pass_ipa_single_use::gate): New gate.
7528 (make_pass_ipa_single_use): New function.
7529
7530 2014-06-23 Kai Tietz <ktietz@redhat.com>
7531
7532 PR target/39284
7533 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
7534 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
7535
7536 2014-06-23 Richard Biener <rguenther@suse.de>
7537
7538 * tree-ssa-loop.c (gate_loop): New function.
7539 (pass_tree_loop::gate): Call it.
7540 (pass_data_tree_no_loop, pass_tree_no_loop,
7541 make_pass_tree_no_loop): New.
7542 * tree-vectorizer.c: Include tree-scalar-evolution.c
7543 (pass_slp_vectorize::execute): Initialize loops and SCEV if
7544 required.
7545 (pass_slp_vectorize::clone): New method.
7546 * timevar.def (TV_TREE_NOLOOP): New.
7547 * tree-pass.h (make_pass_tree_no_loop): Declare.
7548 * passes.def (pass_tree_no_loop): New pass group with
7549 SLP vectorizer.
7550
7551 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
7552
7553 PR target/61570
7554 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
7555 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
7556
7557 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
7558
7559 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
7560 "yes" where needed.
7561
7562 2014-06-23 Alan Modra <amodra@gmail.com>
7563
7564 PR bootstrap/61583
7565 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
7566 to zero on debug statements.
7567
7568 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
7569
7570 PR target/60825
7571 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
7572 Ignore third operand if present by marking qualifier_internal.
7573
7574 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
7575
7576 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
7577 vector extension.
7578 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
7579 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
7580 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
7581 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
7582 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
7583 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
7584 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
7585 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
7586 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
7587 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
7588 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
7589 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
7590 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
7591 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
7592 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
7593 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
7594 logic in GCC vector extensions
7595
7596 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
7597 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
7598 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
7599 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
7600 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
7601 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
7602 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
7603 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
7604 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
7605 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
7606
7607 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
7608
7609 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
7610 extensions.
7611
7612 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
7613 (vget_low_s64): Use __GET_LOW macro.
7614 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
7615 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
7616 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
7617 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
7618 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
7619
7620 (vcombine_s64): Use GCC vector extensions; remove cast.
7621 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
7622 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
7623 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
7624 Fix type signature; remove cast.
7625
7626 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
7627
7628 PR target/60825
7629 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
7630 V1DFmode.
7631 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
7632 add V1DFmode
7633 (BUILTIN_VD1): New.
7634 (BUILTIN_VD_RE): Remove.
7635 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
7636 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
7637 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
7638 variant but not df.
7639 (vreinterpretv1df*, vreinterpret*v1df): New.
7640 (vreinterpretdf*, vreinterpret*df): Remove.
7641 * config/aarch64/aarch64-simd.md (aarch64_create,
7642 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
7643 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
7644 (VD1): New.
7645 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
7646 (vcreate_f64): Remove cast, use v1df builtin.
7647 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
7648 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
7649 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
7650 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
7651 vmov_n_f64, vst1_f64): Use gcc vector extensions.
7652 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
7653 add range check using __builtin_aarch64_im_lane_boundsi.
7654 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
7655 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
7656 type signature, use gcc vector extensions.
7657 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
7658 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
7659 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
7660 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
7661 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
7662 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
7663 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
7664 vreinterpret_u64_f64): Use v1df builtin not df.
7665
7666 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
7667
7668 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
7669 vector registers.
7670
7671 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
7672
7673 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
7674 priority directly.
7675
7676 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7677
7678 * loop-invariant.c (pre_check_invariant_p): New function.
7679 (find_invariant_insn): Call pre_check_invariant_p.
7680
7681 2014-06-22 Richard Henderson <rth@redhat.com>
7682
7683 PR target/61565
7684 * compare-elim.c (struct comparison): Add eh_note.
7685 (find_comparison_dom_walker::before_dom_children): Don't eliminate
7686 a redundant comparison in a different EH region. Purge EH edges if
7687 necessary.
7688
7689 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7690
7691 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
7692 (var_shift): Use it.
7693 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
7694 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
7695 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
7696 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
7697 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
7698 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
7699 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
7700 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
7701 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
7702 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
7703 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
7704 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
7705 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
7706 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
7707 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
7708 *rotldi3_internal15be): Use the new attribute. Merge register and
7709 integer alternatives.
7710
7711 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7712
7713 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
7714 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
7715 split, *ashrdi3_internal3 and split): Delete, merge into...
7716 (ashr<mode>3): New expander.
7717 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
7718 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
7719
7720 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7721
7722 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
7723 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
7724 *rotldi3_internal3 and split): Delete, merge into...
7725 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
7726 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
7727 Use "rotlw" extended mnemonic.
7728
7729 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7730
7731 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
7732 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
7733 and split, *ashldi3_internal3 and split): Delete, merge into...
7734 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
7735 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
7736
7737 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7738
7739 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
7740 (lshrsi3, two anonymous define_insns and define_splits,
7741 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
7742 *lshrdi3_internal3 and split): Delete, merge into...
7743 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
7744 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
7745
7746 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7747
7748 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
7749 Remove "O" alternative.
7750
7751 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
7752
7753 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
7754 (mips_move_from_gpr_cost): Likewise.
7755 (mips_register_move_cost): Update accordingly.
7756 (mips_secondary_reload_class): Remove name of in_p.
7757
7758 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
7759
7760 PR target/61503
7761 * config/i386/i386.md (x86_64_shrd, x86_shrd,
7762 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
7763
7764 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7765
7766 * config/nios2/nios2.c: Include "builtins.h".
7767
7768 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
7769
7770 * cgraph.h (tls_model_names): New variable.
7771 * print-tree.c (print_node): Simplify.
7772 * varpool.c (tls_model_names): New variable.
7773 (dump_varpool_node): Output tls model.
7774
7775 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
7776
7777 * ipa-visibility.c (function_and_variable_visibility): Disable
7778 temporarily local aliases for some targets.
7779
7780 2014-06-20 Marek Polacek <polacek@redhat.com>
7781
7782 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
7783 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
7784 into SANITIZE_UNDEFINED.
7785 * doc/invoke.texi: Describe -fsanitize=bounds.
7786 * gimplify.c (gimplify_call_expr): Add gimplification of internal
7787 functions created in the FEs.
7788 * internal-fn.c: Move "internal-fn.h" after "tree.h".
7789 (expand_UBSAN_BOUNDS): New function.
7790 * internal-fn.def (UBSAN_BOUNDS): New internal function.
7791 * internal-fn.h: Don't define internal functions here.
7792 * opts.c (common_handle_option): Add -fsanitize=bounds.
7793 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
7794 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
7795 * tree-core.h: Define internal functions here.
7796 (struct tree_base): Add ifn field.
7797 * tree-pretty-print.c: Include "internal-fn.h".
7798 (dump_generic_node): Handle functions without CALL_EXPR_FN.
7799 * tree.c (get_callee_fndecl): Likewise.
7800 (build_call_expr_internal_loc): New function.
7801 * tree.def (CALL_EXPR): Update description.
7802 * tree.h (CALL_EXPR_IFN): Define.
7803 (build_call_expr_internal_loc): Declare.
7804 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
7805 types.
7806 (ubsan_type_descriptor): Change bool parameter to enum
7807 ubsan_print_style. Adjust the code. Add handling of
7808 UBSAN_PRINT_ARRAY.
7809 (ubsan_expand_bounds_ifn): New function.
7810 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
7811 (ubsan_build_overflow_builtin): Likewise.
7812 (instrument_bool_enum_load): Likewise.
7813 (ubsan_instrument_float_cast): Likewise.
7814 * ubsan.h (enum ubsan_print_style): New enum.
7815 (ubsan_expand_bounds_ifn): Declare.
7816 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
7817
7818 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
7819
7820 * config/rs6000/rs6000.md: Append `DONE' to preparation
7821 statements of `bswap' pattern splitters.
7822
7823 2014-06-20 Tom de Vries <tom@codesourcery.com>
7824
7825 * target.def (call_fusage_contains_non_callee_clobbers): Update
7826 definition.
7827 * doc/tm.texi: Regenerate.
7828
7829 2014-06-20 Yury Gribov <y.gribov@samsung.com>
7830 Max Ostapenko <m.ostapenko@partner.samsung.com>
7831
7832 PR sanitizer/61547
7833 * asan.c (instrument_strlen_call): Fixed instrumentation of
7834 trailing byte.
7835
7836 2014-06-20 Martin Jambor <mjambor@suse.cz>
7837
7838 PR ipa/61540
7839 * ipa-prop.c (impossible_devirt_target): New function.
7840 (try_make_edge_direct_virtual_call): Use it, also instead of
7841 asserting.
7842
7843 2014-06-20 Yury Gribov <y.gribov@samsung.com>
7844 Max Ostapenko <m.ostapenko@partner.samsung.com>
7845
7846 PR sanitizer/61530
7847 * asan.c (build_check_stmt): Add condition.
7848
7849 2014-06-20 Martin Jambor <mjambor@suse.cz>
7850
7851 PR ipa/61211
7852 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
7853 expanded clones.
7854
7855 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7856
7857 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
7858 Update comments.
7859 (VCONQ): Make comment more helpful.
7860 (VCON): Delete.
7861 * config/aarch64/aarch64-simd.md
7862 (aarch64_sqdmulh_lane<mode>):
7863 Use VCOND for operands 2. Update lane checking and flipping logic.
7864 (aarch64_sqrdmulh_lane<mode>): Likewise.
7865 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
7866 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
7867 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
7868 attribute of operand 3 to VCOND.
7869 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
7870 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
7871 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
7872 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
7873 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
7874 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
7875 define_insn.
7876 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
7877 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
7878 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
7879 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
7880 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
7881 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
7882 operand to VCOND. Update lane flipping and bounds checking logic.
7883 (aarch64_sqdmlal2_lane<mode>): Likewise.
7884 (aarch64_sqdmlsl_lane<mode>): Likewise.
7885 (aarch64_sqdmull_lane<mode>): Likewise.
7886 (aarch64_sqdmull2_lane<mode>): Likewise.
7887 (aarch64_sqdmlal_laneq<mode>):
7888 Replace VCON usage with VCONQ.
7889 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
7890 (aarch64_sqdmlal2_laneq<mode>): Emit
7891 aarch64_sqdmlal2_laneq<mode>_internal insn.
7892 Replace VCON with VCONQ.
7893 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
7894 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
7895 (aarch64_sqdmull_laneq<mode>): Emit
7896 aarch64_sqdmull_laneq<mode>_internal insn.
7897 Replace VCON with VCONQ.
7898 (aarch64_sqdmull2_laneq<mode>): Emit
7899 aarch64_sqdmull2_laneq<mode>_internal insn.
7900 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
7901 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
7902 of 3rd argument to int16x4_t.
7903 (vqdmlalh_lane_s16): Likewise.
7904 (vqdmlslh_lane_s16): Likewise.
7905 (vqdmull_high_lane_s16): Likewise.
7906 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
7907 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
7908 (vqdmlsl_lane_s16): Likewise.
7909 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
7910 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
7911 (vqdmlals_lane_s32): Likewise.
7912 (vqdmlsls_lane_s32): Likewise.
7913 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
7914 (vqdmulls_lane_s32): Likewise.
7915 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
7916 (vqdmlsl_lane_s32): Likewise.
7917 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
7918 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
7919 (vqrdmulhh_lane_s16): Likewise.
7920 (vqdmlsl_high_lane_s16): Likewise.
7921 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
7922 (vqdmlsl_high_lane_s32): Likewise.
7923 (vqrdmulhs_lane_s32): Likewise.
7924
7925 2014-06-20 Tom de Vries <tom@codesourcery.com>
7926
7927 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
7928 get_call_reg_set_usage.
7929
7930 2014-06-20 Tom de Vries <tom@codesourcery.com>
7931
7932 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
7933 it contains all call_used_regs.
7934
7935 2014-06-20 Tom de Vries <tom@codesourcery.com>
7936
7937 * final.c (collect_fn_hard_reg_usage): Add and use variable
7938 function_used_regs.
7939
7940 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
7941
7942 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
7943 (set_init_priority, get_init_priority, set_fini_priority,
7944 get_fini_priority): New methods.
7945 * tree.c (init_priority_for_decl): Remove.
7946 (init_ttree): Do not initialize init priority.
7947 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
7948 (decl_priority_info): Remove.
7949 (decl_init_priority_insert): Rewrite.
7950 (decl_fini_priority_insert): Rewrite.
7951 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
7952 tree_priority_map_marked_p): Remove.
7953 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
7954 * lto-streamer-out.c (hash_tree): Do not hash priorities.
7955 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
7956 not output priorities.
7957 (pack_ts_function_decl_value_fields): Likewise.
7958 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7959 not input priorities.
7960 (unpack_ts_function_decl_value_fields): Likewise.
7961 * symtab.c (symbol_priority_map): Declare.
7962 (init_priority_hash): Declare.
7963 (symtab_unregister_node): Unregister from priority hash, too.
7964 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
7965 New methods.
7966 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
7967 (symbol_priority_info): New function.
7968 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
7969 New methods.
7970 * tree-core.h (tree_priority_map): Remove.
7971
7972 2014-06-20 Jakub Jelinek <jakub@redhat.com>
7973
7974 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
7975 0xff to uint64_t before shifting it up.
7976
7977 2014-06-20 Julian Brown <julian@codesourcery.com>
7978 Chung-Lin Tang <cltang@codesourcery.com>
7979
7980 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
7981 TARGET_THUMB1_ONLY. Add comments.
7982
7983 2014-06-19 Tom de Vries <tom@codesourcery.com>
7984
7985 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
7986 return type to void.
7987 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
7988
7989 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7990
7991 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
7992 as "move", from depends_on.
7993
7994 2014-06-19 Terry Guo <terry.guo@arm.com>
7995
7996 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
7997 stage.
7998
7999 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
8000
8001 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
8002 Remove cr5.
8003 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
8004
8005 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
8006
8007 PR target/61550
8008 * config/sh/sh.c (prepare_move_operands): Don't process TLS
8009 addresses here if reload in progress or completed.
8010
8011 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
8012
8013 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
8014 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
8015 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
8016 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
8017 (mips_register_priority): New function that implements the target
8018 hook TARGET_REGISTER_PRIORITY.
8019 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
8020 (mips_lra_p): Likewise for TARGET_LRA_P.
8021 (TARGET_REGISTER_PRIORITY): Define macro.
8022 (TARGET_SPILL_CLASS): Likewise.
8023 (TARGET_LRA_P): Likewise.
8024 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
8025 classes.
8026 (REG_CLASS_NAMES): Likewise.
8027 (REG_CLASS_CONTENTS): Likewise.
8028 (BASE_REG_CLASS): Use M16_SP_REGS.
8029 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
8030 New set attribute to enable alternatives depending on the register
8031 allocator used.
8032 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
8033 (*lea64): Disable pattern for MIPS16.
8034 * config/mips/mips.opt (mlra): New option.
8035
8036 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
8037
8038 * lra-constraints.c (base_to_reg): New function.
8039 (process_address): Use new function.
8040
8041 2014-06-18 Tom de Vries <tom@codesourcery.com>
8042
8043 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
8044 * config/aarch64/aarch64.c
8045 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
8046 (aarch64_emit_call_insn): New function.
8047 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
8048 of emit_call_insn.
8049 * config/aarch64/aarch64.md (define_expand "call_internal")
8050 (define_expand "call_value_internal", define_expand "sibcall_internal")
8051 (define_expand "sibcall_value_internal"): New.
8052 (define_expand "call", define_expand "call_value")
8053 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
8054 expand variant and aarch64_emit_call_insn.
8055
8056 2014-06-18 Radovan Obradovic <robradovic@mips.com>
8057 Tom de Vries <tom@codesourcery.com>
8058
8059 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
8060 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
8061 Redefine to true.
8062 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
8063 clobbers to CALL_INSN_FUNCTION_USAGE.
8064 (define_expand "sibcall_internal")
8065 (define_expand "sibcall_value_internal"): New.
8066 (define_expand "call", define_expand "call_value"): Add argument to
8067 arm_emit_call_insn.
8068 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
8069 (define_expand "sibcall_value"): Use sibcall_value_internal and
8070 arm_emit_call_insn.
8071
8072 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8073
8074 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
8075
8076 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8077
8078 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
8079 __udivmoddi4.
8080
8081 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8082
8083 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
8084 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
8085 annotations. Fix DWARF information.
8086
8087 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8088
8089 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
8090 __udivmoddi4, and fixups for negative operands.
8091
8092 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8093
8094 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
8095
8096 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8097
8098 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
8099 to __udivmoddi4.
8100
8101 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8102
8103 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
8104 manipulation.
8105
8106 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8107
8108 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
8109 describing register usage on function entry and exit.
8110
8111 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8112
8113 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
8114 (__aeabi_ldivmod): Fix whitespace.
8115
8116 2014-06-18 Andreas Schwab <schwab@suse.de>
8117
8118 * doc/md.texi (Standard Names): Use @itemx for grouped items.
8119 Remove blank line after @item.
8120
8121 2014-06-18 Richard Henderson <rth@redhat.com>
8122
8123 PR target/61545
8124 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
8125
8126 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8127
8128 * config/arm/arm.c (neon_vector_mem_operand): Allow register
8129 POST_MODIFY for neon loads and stores.
8130 (arm_print_operand): Output post-index register for neon loads and
8131 stores.
8132
8133 2014-06-18 Richard Biener <rguenther@suse.de>
8134
8135 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
8136
8137 2014-06-18 Richard Biener <rguenther@suse.de>
8138
8139 * tree-pass.h (make_pass_dce_loop): Remove.
8140 * passes.def: Replace pass_dce_loop with pass_dce.
8141 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
8142 changed free niter estimates and reset the scev cache.
8143 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
8144 make_pass_dce_loop): Remove.
8145 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
8146 (fini_copy_prop): Return whether something changed. Always
8147 let substitute_and_fold perform DCE and free niter estimates
8148 and reset the scev cache if so.
8149 (execute_copy_prop): If sth changed schedule cleanup-cfg.
8150 (pass_data_copy_prop): Do not unconditionally schedule
8151 cleanup-cfg or update-ssa.
8152
8153 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
8154
8155 PR tree-optimization/61518
8156 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8157 reduction var is used in reduction stmt or phi-function only.
8158
8159 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8160
8161 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
8162
8163 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
8164
8165 PR tree-optimization/61517
8166 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
8167 whose rhs's first tree is the source expression instead of the
8168 expression itself.
8169 (find_bswap_or_nop): Likewise.
8170 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
8171 gimple stmt whose rhs's first tree is the source. In the memory source
8172 case, move the stmt to be replaced close to one of the original load to
8173 avoid the problem of a store between the load and the stmt's original
8174 location.
8175 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
8176 signature.
8177
8178 2014-06-18 Andreas Schwab <schwab@suse.de>
8179
8180 PR rtl-optimization/54555
8181 * postreload.c (move2add_use_add2_insn): Substitute
8182 STRICT_LOW_PART only if it is cheaper.
8183
8184 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
8185
8186 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
8187 Do not use unspec as call operand. Use memory_operand instead of
8188 memory_nox32_operand and add "m" operand constraint. Disable
8189 pattern for TARGET_X32.
8190 (*sibcall_pop_memory): Ditto.
8191 (*sibcall_value_memory): Ditto.
8192 (*sibcall_value_pop_memory): Ditto.
8193 (sibcall peepholes): Merge SImode and DImode patterns using
8194 W mode iterator. Use memory_operand instead of memory_nox32_operand.
8195 Disable pattern for TARGET_X32. Check if eliminated register is
8196 really dead after call insn. Generate call RTX without unspec operand.
8197 (sibcall_value peepholes): Ditto.
8198 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
8199 instead of memory_nox32_operand. Check if eliminated register is
8200 really dead after call insn. Generate call RTX without unspec operand.
8201 (sibcall_value_pop peepholes): Ditto.
8202 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
8203
8204 2014-06-18 Terry Guo <terry.guo@arm.com>
8205
8206 PR target/61544
8207 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
8208 reach the head.
8209
8210 2014-06-18 Olivier Hainque <hainque@adacore.com>
8211
8212 * tree-core.h (tree_block): Add an "end_locus" field, allowing
8213 memorization of the end of block source location.
8214 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
8215 * gimplify.c (gimplify_bind_expr): Propagate the block start and
8216 end source location info we have on the block entry/exit code we
8217 generate.
8218
8219 2014-06-18 Richard Biener <rguenther@suse.de>
8220
8221 * common.opt (fssa-phiopt): New option.
8222 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
8223 but not with -Og.
8224 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
8225 * doc/invoke.texi (-fssa-phiopt): Document.
8226
8227 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8228
8229 * genattrtab.c (n_bypassed): New variable.
8230 (process_bypasses): Initialise n_bypassed.
8231 Count number of bypassed reservations.
8232 (make_automaton_attrs): Allocate space for bypassed reservations
8233 rather than number of bypasses.
8234
8235 2014-06-18 Richard Biener <rguenther@suse.de>
8236
8237 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
8238 we propagated anything.
8239 (substitute_and_fold_dom_walker::before_dom_children): Something
8240 changed if we propagated into PHI arguments.
8241 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
8242 we removed a stmt.
8243
8244 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
8245
8246 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
8247 vector case.
8248 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
8249 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
8250 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
8251 Introduces alternative way of loads group permutaions.
8252 (vect_transform_grouped_load): Try alternative way of permutations.
8253
8254 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8255
8256 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
8257 changed in ORT_TARGET region, don't jump to do_outer.
8258 (struct gimplify_adjust_omp_clauses_data): New type.
8259 (gimplify_adjust_omp_clauses_1): Adjust for data being
8260 a struct gimplify_adjust_omp_clauses_data pointer instead
8261 of tree *. Pass pre_p as a new argument to
8262 lang_hooks.decls.omp_finish_clause hook.
8263 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
8264 splay_tree_foreach to pass both list_p and pre_p.
8265 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
8266 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
8267 gimplify_adjust_omp_clauses callers.
8268 * langhooks.c (lhd_omp_finish_clause): New function.
8269 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
8270 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
8271 * langhooks.h (struct lang_hooks_for_decls): Add a new
8272 gimple_seq * argument to omp_finish_clause hook.
8273 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
8274 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
8275 (scan_omp_parallel, lower_omp_for): When adding
8276 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
8277 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
8278 * tree-nested.c (convert_nonlocal_omp_clauses,
8279 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
8280 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
8281
8282 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
8283
8284 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
8285 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
8286
8287 2014-06-17 Xinliang David Li <davidxl@google.com>
8288
8289 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
8290 * passes.c (pass_init_dump_file): Do not set initialize
8291 flag to false unconditionally.
8292
8293 2014-06-17 Richard Biener <rguenther@suse.de>
8294
8295 * genopinit.c (main): Use vec<>::qsort method.
8296 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
8297 Likewise.
8298 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
8299
8300 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
8301
8302 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
8303 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
8304 (mips_move_to_gpr_cost): Remove ST_REGS case.
8305 (mips_move_from_gpr_cost): Likewise.
8306 (mips_register_move_cost): Likewise.
8307 (mips_secondary_reload_class): Likewise.
8308
8309 2014-06-17 Richard Biener <rguenther@suse.de>
8310
8311 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
8312 (pass_all_optimizations): Move 3rd copy-prop pass from after
8313 fre to before ifcombine/phiopt.
8314
8315 2014-06-17 Richard Biener <rguenther@suse.de>
8316
8317 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
8318 and allow all blocks to be forwarders.
8319
8320 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
8321
8322 PR target/61483
8323 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
8324 variable 'size'; calculate 'size' right in the front; use
8325 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
8326 pcum->aapcs_stack_words.
8327
8328 2014-06-17 Nick Clifton <nickc@redhat.com>
8329
8330 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
8331 (umulhi3, mulsidi3, umulsidi3): Likewise.
8332
8333 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
8334
8335 PR middle-end/61508
8336 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
8337 check for section name.
8338
8339 2014-06-17 Richard Biener <rguenther@suse.de>
8340
8341 * tree-ssa-propagate.c: Include domwalk.h.
8342 (substitute_and_fold): Outline main worker into a domwalker ...
8343 (substitute_and_fold_dom_walker::before_dom_children): ... here.
8344 Schedule stmts we can fully propagate for removal. Remove
8345 poor-mans DCE.
8346 (substitute_and_fold): Apply a dominator walk to perform
8347 substitution. Process stmts scheduled for removal here.
8348
8349 2014-06-17 Richard Biener <rguenther@suse.de>
8350
8351 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
8352 of PHI node moving.
8353
8354 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
8355
8356 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
8357 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
8358 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
8359 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
8360 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
8361 TARGET_HARD_FLOAT.
8362 (get_fpscr) : Likewise.
8363
8364 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
8365
8366 PR rtl-optimization/61325
8367 * lra-constraints.c (valid_address_p): Add forward declaration.
8368 (simplify_operand_subreg): Check address validity before and after
8369 alter_reg of memory subreg.
8370
8371 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
8372
8373 * config/i386/i386.c (decide_alg): Correctly handle
8374 maximum size of stringop algorithm.
8375
8376 2014-06-16 Yury Gribov <y.gribov@samsung.com>
8377
8378 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
8379
8380 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
8381
8382 PR rtl-optimization/61522
8383 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
8384
8385 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
8386
8387 Revert:
8388 * symtab.c (symtab_node::reset_section): New method.
8389 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
8390 for localization.
8391 * cgraph.h (reset_section): Declare.
8392 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
8393 do not consider comdat locals.
8394 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
8395 for new symbol.
8396 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
8397 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
8398 reset sections of symbols dragged out of the comdats.
8399 (function_and_variable_visibility): Reset sections of
8400 localized symbols.
8401
8402 2014-06-16 Richard Biener <rguenther@suse.de>
8403
8404 PR tree-optimization/61482
8405 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
8406 [-INF(OVF), +INF(OVF)] range.
8407
8408 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8409
8410 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
8411 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
8412 handling 32-bit multiplication.
8413
8414 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
8415
8416 PR middle-end/61430
8417 * lra-lives.c (process_bb_lives): Skip creating copy during
8418 insn scan when src/dest has constrained to same regno.
8419
8420 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
8421
8422 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
8423 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
8424
8425 2014-06-16 Yury Gribov <y.gribov@samsung.com>
8426
8427 * asan.c (check_func): New function.
8428 (maybe_create_ssa_name): Likewise.
8429 (build_check_stmt_with_calls): Likewise.
8430 (use_calls_p): Likewise.
8431 (report_error_func): Change interface.
8432 (build_check_stmt): Allow non-integer lengths; add support
8433 for new parameter.
8434 (asan_instrument): Likewise.
8435 (instrument_mem_region_access): Moved code to build_check_stmt.
8436 (instrument_derefs): Likewise.
8437 (instrument_strlen_call): Likewise.
8438 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
8439 * doc/invoke.texi: Describe new parameter.
8440 * params.def: Define new parameter.
8441 * params.h: Likewise.
8442 * sanitizer.def: Describe new builtins.
8443
8444 2014-06-16 Richard Biener <rguenther@suse.de>
8445
8446 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8447 Make all defs available at the end.
8448 (eliminate): If we remove a PHI node schedule cfg-cleanup.
8449
8450 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8451
8452 PR plugins/45078
8453 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
8454
8455 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
8456
8457 PR bootstrap/61516
8458 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
8459 initialization. Replace remaining use of uid.
8460
8461 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
8462
8463 * c-family/c-common.c (handle_tls_model_attribute): Use
8464 set_decl_tls_model.
8465 * c-family/c-common.c (handle_tls_model_attribute): Use
8466 set_decl_tls_model.
8467 * cgraph.h (struct varpool_node): Add tls_model.
8468 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
8469 * tree.h (DECL_TLS_MODEL): Update.
8470 (DECL_THREAD_LOCAL_P): Check that variable is static.
8471 (decl_tls_model): Declare.
8472 (set_decl_tls_model): Declare.
8473 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
8474 set symbol prorperties.
8475 (get_emutls_init_templ_addr): Cleanup.
8476 (new_emutls_decl): Update.
8477 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
8478 (lto_input_varpool_node): Likewise.
8479 * lto-streamer-out.c (hash_tree): Likewise.
8480 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
8481 not stream DECL_TLS_MODEL.
8482 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
8483 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
8484
8485 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
8486
8487 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
8488
8489 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
8490
8491 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
8492 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
8493 lists.
8494 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
8495 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
8496 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
8497 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
8498 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
8499 (df_get_artificial_defs, df_get_artificial_uses)
8500 (df_single_def, df_single_use): Update accordingly.
8501 (df_refs_chain_dump): Take the first element in a linked list as
8502 parameter, rather than a pointer to an array of pointers.
8503 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
8504 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
8505 (df_chain_create_bb_process_use): Likewise.
8506 (df_md_bb_local_compute_process_def): Likewise.
8507 * fwprop.c (process_defs, process_uses): Likewise.
8508 (register_active_defs, update_uses): Likewise.
8509 (forward_propagate_asm): Update for new df_ref linking.
8510 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
8511 (df_null_ref_rec, df_null_mw_rec): Likewise.
8512 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
8513 explicitly.
8514 (df_scan_free_bb_info): Remove check for null artificial_defs.
8515 (df_install_ref_incremental): Adjust for new df_ref linking.
8516 Use a single-element insertion rather than a full sort.
8517 (df_ref_chain_delete_du_chain): Take the first element
8518 in a linked list as parameter, rather than a pointer to an array of
8519 pointers.
8520 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
8521 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
8522 (df_insn_info_delete): Remove check for null defs and call to
8523 df_scan_free_mws_vec.
8524 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
8525 null rather than df_null_*_rec.
8526 (df_insn_rescan_debug_internal): Likewise, and update null
8527 checks in the same way. Remove check for null defs.
8528 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
8529 Move a single element rather doing a full sort.
8530 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
8531 linking.
8532 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
8533 Initialize df_ref and df_mw_hardreg lists to null rather than
8534 df_null_*_rec.
8535 (df_ref_compare): Take df_refs as parameter, transferring the
8536 old interface to...
8537 (df_ref_ptr_compare): ...this new function.
8538 (df_sort_and_compress_refs): Update accordingly.
8539 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
8540 old interface to...
8541 (df_mw_ptr_compare): ...this new function.
8542 (df_sort_and_compress_mws): Update accordingly.
8543 (df_install_refs, df_install_mws): Return a linked list rather than
8544 an array of pointers.
8545 (df_refs_add_to_chains): Assert that old lists are empty rather
8546 than freeing them.
8547 (df_insn_refs_verify): Don't handle null defs speciailly.
8548 * web.c (union_match_dups): Update for new df_ref linking.
8549
8550 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
8551
8552 * df.h (df_ref_create, df_ref_remove): Delete.
8553 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
8554 (df_ref_remove): Likewise.
8555
8556 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
8557
8558 * df.h (df_single_def, df_single_use): New functions.
8559 * ira.c (find_moveable_pseudos): Use them.
8560
8561 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
8562
8563 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
8564 * df-problems.c (df_note_bb_compute): Use it.
8565 * regstat.c (regstat_bb_compute_ri): Likewise.
8566
8567 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
8568
8569 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
8570 * cse.c (cse_extended_basic_block): Use them.
8571 * dce.c (mark_artificial_use): Likewise.
8572 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
8573 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
8574 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
8575 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
8576 (df_simulate_initialize_backwards): Likewise.
8577 (df_simulate_finalize_backwards): Likewise.
8578 (df_simulate_initialize_forwards): Likewise.
8579 (df_md_simulate_artificial_defs_at_top): Likewise.
8580 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
8581 * regrename.c (init_rename_info): Likewise.
8582 * regstat.c (regstat_bb_compute_ri): Likewise.
8583 (regstat_bb_compute_calls_crossed): Likewise.
8584
8585 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
8586
8587 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
8588 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
8589 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
8590 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
8591 * combine.c (create_log_links): Likewise.
8592 * compare-elim.c (find_flags_uses_in_insn): Likewise.
8593 (try_eliminate_compare): Likewise.
8594 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
8595 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
8596 (remove_reg_equal_equiv_notes_for_defs): Likewise.
8597 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
8598 (word_dce_process_block, dce_process_block): Likewise.
8599 * ddg.c (def_has_ccmode_p): Likewise.
8600 * df-core.c (df_bb_regno_first_def_find): Likewise.
8601 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
8602 * df-problems.c (df_rd_simulate_one_insn): Likewise.
8603 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
8604 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
8605 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
8606 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
8607 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
8608 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
8609 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
8610 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
8611 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
8612 * fwprop.c (local_ref_killed_between_p): Likewise.
8613 (all_uses_available_at, free_load_extend): Likewise.
8614 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
8615 * hw-doloop.c (scan_loop): Likewise.
8616 * ifcvt.c (dead_or_predicable): Likewise.
8617 * init-regs.c (initialize_uninitialized_regs): Likewise.
8618 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
8619 (process_bb_node_lives): Likewise.
8620 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
8621 (find_moveable_pseudos): Likewise.
8622 * loop-invariant.c (check_dependencies, record_uses): Likewise.
8623 * recog.c (peep2_find_free_register): Likewise.
8624 * ree.c (get_defs): Likewise.
8625 * regstat.c (regstat_bb_compute_ri): Likewise.
8626 (regstat_bb_compute_calls_crossed): Likewise.
8627 * sched-deps.c (find_inc, find_mem): Likewise.
8628 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
8629 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
8630 * shrink-wrap.c (requires_stack_frame_p): Likewise.
8631 (prepare_shrink_wrap): Likewise.
8632 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
8633 * web.c (union_defs, pass_web::execute): Likewise.
8634 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
8635 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
8636
8637 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
8638
8639 * lra-assign.c (assign_by_spills): Add code to assign vector regs
8640 to inheritance pseudos.
8641 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
8642
8643 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
8644
8645 PR target/61415
8646 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
8647 (BU_MISC_2): Rename to ...
8648 (BU_LDBL128_2): ... this.
8649 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
8650 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
8651 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
8652 RS6000_BTM_LDBL128.
8653 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
8654 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
8655 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
8656 (unpacktf_1): Likewise.
8657 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
8658 (__builtin_longdouble_dw1): Likewise.
8659 * doc/sourcebuild.texi (longdouble128): Document.
8660
8661 2014-06-13 Jeff Law <law@redhat.com>
8662
8663 PR rtl-optimization/61094
8664 PR rtl-optimization/61446
8665 * ree.c (combine_reaching_defs): Get the mode for the copy from
8666 the extension insn rather than the defining insn.
8667
8668 2014-06-13 Dehao Chen <dehao@google.com>
8669
8670 * dwarf2out.c (add_linkage_name): Emit more linkage name.
8671
8672 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
8673
8674 * doc/install.texi (--enable-linker-plugin-configure-flags)
8675 (--enable-linker-plugin-flags): Document new flags.
8676
8677 2014-06-13 Martin Jambor <mjambor@suse.cz>
8678
8679 PR ipa/61186
8680 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
8681 cache_token if returning early.
8682
8683 2014-06-13 Nick Clifton <nickc@redhat.com>
8684
8685 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
8686 requested alignment is active.
8687 (LABEL_ALIGN): Likewise.
8688 (LOOP_ALIGN): Likewise.
8689
8690 2014-06-13 Richard Biener <rguenther@suse.de>
8691
8692 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8693 Rewrite to propagate the VN result into all uses where
8694 possible and to remove stmts becoming dead because of that.
8695 (eliminate): Generalize stmt removal handling, remove in
8696 reverse dominator order to support proper debug stmt
8697 generation. Update stmts before removing stmts.
8698 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
8699
8700 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8701
8702 PR tree-optimization/61375
8703 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
8704 symbolic number cannot be represented in an uint64_t.
8705 (find_bswap_or_nop_1): Likewise.
8706
8707 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
8708
8709 * symtab.c (symtab_node::reset_section): New method.
8710 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
8711 for localization.
8712 * cgraph.h (reset_section): Declare.
8713 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
8714 do not consider comdat locals.
8715 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
8716 for new symbol.
8717 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
8718 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
8719 reset sections of symbols dragged out of the comdats.
8720 (function_and_variable_visibility): Reset sections of
8721 localized symbols.
8722
8723 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
8724
8725 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
8726 to use symtab and decl_binds_to_current_def_p
8727 * tree-vectorizer.c (increase_alignment): Increase alignment
8728 of alias target, too.
8729
8730 2014-06-12 Jakub Jelinek <jakub@redhat.com>
8731
8732 PR middle-end/61486
8733 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
8734 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
8735 if outer combined construct is distribute.
8736 (gimplify_omp_for): For OMP_DISTRIBUTE set
8737 gimplify_omp_ctxp->distribute.
8738 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
8739 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
8740 mapping into decl map.
8741
8742 2014-06-12 Jason Merrill <jason@redhat.com>
8743
8744 * common.opt (fabi-version): Change default to 0.
8745
8746 2014-06-12 Jason Merrill <jason@redhat.com>
8747
8748 * toplev.c (process_options): Reject -fabi-version=1.
8749
8750 2014-06-12 Jeff Law <law@redhat.com>
8751
8752 PR tree-optimization/61009
8753 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
8754 value when we stop processing a block due to problematic PHIs.
8755
8756 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
8757
8758 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
8759 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
8760 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
8761 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
8762 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
8763 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
8764 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
8765 are not in the spec.
8766
8767 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
8768
8769 PR target/59843
8770 * config/aarch64/aarch64-modes.def: Add V1DFmode.
8771 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
8772 Support V1DFmode.
8773
8774 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
8775
8776 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
8777
8778 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
8779
8780 PR target/61443
8781 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
8782 loading from address spaces.
8783
8784 2014-06-12 Martin Liska <mliska@suse.cz>
8785
8786 PR ipa/61462
8787 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
8788 statement is reachable.
8789
8790 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
8791
8792 * symtab.c (section_hash): New hash.
8793 (symtab_unregister_node): Clear section before freeing.
8794 (hash_section_hash_entry): New haser.
8795 (eq_sections): New function.
8796 (symtab_node::set_section_for_node): New method.
8797 (set_section_1): Update.
8798 (symtab_node::set_section): Take string instead of tree as parameter.
8799 (symtab_resolve_alias): Update.
8800 * cgraph.h (section_hash_entry_d): New structure.
8801 (section_hash_entry): New typedef.
8802 (cgraph_node): Change comdat_group_ to x_comdat_group,
8803 change section_ to x_section and turn into section_hash_entry;
8804 update accestors; put set_section_for_node offline.
8805 * tree.c (decl_section_name): Turn into string.
8806 (set_decl_section_name): Change parameter to be string.
8807 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
8808 * sdbout.c (sdbout_one_type): Update.
8809 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
8810 * varasm.c (IN_NAMED_SECTION, get_named_section,
8811 resolve_unique_section, hot_function_section, get_named_text_section,
8812 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
8813 make_decl_rtl, default_unique_section): Update.
8814 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
8815 (c6x_elf_unique_section): Update.
8816 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
8817 * config/pa/pa.c (pa_function_section): Update.
8818 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
8819 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
8820 * config/arc/arc.c (arc_in_small_data_p): Update.
8821 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
8822 * config/mcore/mcore.c (mcore_unique_section): Update.
8823 * config/mips/mips.c (mips16_build_function_stub): Update.
8824 (mips16_build_call_stub): Update.
8825 (mips_function_rodata_section): Update.
8826 (mips_in_small_data_p): Update.
8827 * config/score/score.c (score_in_small_data_p): Update.
8828 * config/rx/rx.c (rx_in_small_data): Update.
8829 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
8830 (rs6000_xcoff_asm_named_section): Update.
8831 (rs6000_xcoff_unique_section): Update.
8832 * config/frv/frv.c (frv_string_begins_with): Update.
8833 (frv_in_small_data_p): Update.
8834 * config/v850/v850.c (v850_encode_data_area): Update.
8835 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
8836 (bfin_handle_l1_data_attribute): Update.
8837 (bfin_handle_l2_attribute): Update.
8838 * config/mep/mep.c (mep_unique_section): Update.
8839 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
8840 Update.
8841 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
8842 (h8300_handle_tiny_data_attribute): Update.
8843 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
8844 (m32r_in_small_data_p): Update.
8845 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
8846 * config/i386/i386.c (ix86_in_large_data_p): Update.
8847 * config/i386/winnt.c (i386_pe_unique_section): Update.
8848 * config/darwin.c (darwin_function_section): Update.
8849 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
8850 * tree-emutls.c (get_emutls_init_templ_addr): Update.
8851 (new_emutls_decl): Update.
8852 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
8853 input_varpool_node): Update.
8854 (ead_string_cst): Turn to ...
8855 (read_string): ... this one.
8856 * dwarf2out.c (secname_for_decl): Update.
8857 * asan.c (asan_protect_global): Update.
8858
8859 2014-06-11 DJ Delorie <dj@redhat.com>
8860
8861 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
8862 cache lines.
8863 * config/rx/rx.c (rx_option_override): Likewise.
8864 (rx_align_for_label): Likewise.
8865
8866 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
8867
8868 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
8869
8870 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
8871 prototype.
8872
8873 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8874
8875 * common.md: New file.
8876 * doc/md.texi: Update description of generic, machine-independent
8877 constraints.
8878 * config/s390/constraints.md (e): Delete.
8879 * Makefile.in (md_file): Include common.md.
8880 * config/m32c/t-m32c (md_file): Likewise.
8881 * genpreds.c (general_mem): New array.
8882 (generic_constraint_letters): Remove constraints now defined by
8883 common.md.
8884 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
8885 Allow the first character to be '<' or '>' as well.
8886 * genoutput.c (general_mem): New array.
8887 (indep_constraints): Remove constraints now defined by common.md.
8888 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
8889 Remove special handling of 'm'.
8890 * ira-costs.c (record_reg_classes): Remove special handling of
8891 constraints now defined by common.md.
8892 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8893 * ira-lives.c (single_reg_class): Likewise.
8894 (ira_implicitly_set_insn_hard_regs): Likewise.
8895 * lra-constraints.c (reg_class_from_constraints): Likewise.
8896 (process_alt_operands, process_address, curr_insn_transform): Likewise.
8897 * postreload.c (reload_cse_simplify_operands): Likewise.
8898 * reload.c (push_secondary_reload, scratch_reload_class)
8899 (find_reloads, alternative_allows_const_pool_ref): Likewise.
8900 * reload1.c (maybe_fix_stack_asms): Likewise.
8901 * targhooks.c (default_secondary_reload): Likewise.
8902 * stmt.c (parse_output_constraint): Likewise.
8903 * recog.c (preprocess_constraints): Likewise.
8904 (constrain_operands, peep2_find_free_register): Likewise.
8905 (asm_operand_ok): Likewise, but add a comment saying why 'o'
8906 must be handled specially.
8907
8908 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8909
8910 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
8911 * genpreds.c (have_const_dbl_constraints): Delete.
8912 (add_constraint): Don't set it.
8913 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
8914 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
8915 constraints using the lookup_constraint logic.
8916 * ira-lives.c (single_reg_class): Likewise.
8917 * ira.c (ira_setup_alts): Likewise.
8918 * lra-constraints.c (process_alt_operands): Likewise.
8919 * recog.c (asm_operand_ok, constrain_operands): Likewise.
8920 * reload.c (find_reloads): Likewise.
8921
8922 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8923
8924 * genpreds.c (const_int_start, const_int_end): New variables.
8925 (choose_enum_order): Output CONST_INT constraints before memory
8926 constraints.
8927 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
8928 Add CT_CONST_INT.
8929 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
8930 * ira.c (ira_setup_alts): Likewise.
8931 * lra-constraints.c (process_alt_operands): Likewise.
8932 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
8933 * reload.c (find_reloads): Likewise.
8934
8935 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8936
8937 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
8938 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
8939 * recog.c (preprocess_constraints): Update accordingly.
8940
8941 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8942
8943 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
8944 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
8945 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
8946 * genpreds.c (print_type_tree): New function.
8947 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
8948 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
8949 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
8950 Write out enum constraint_type and get_constraint_type.
8951 * lra-constraints.c (satisfies_memory_constraint_p): Take a
8952 constraint_num rather than a constraint string.
8953 (satisfies_address_constraint_p): Likewise.
8954 (reg_class_from_constraints): Avoid old constraint macros.
8955 (process_alt_operands, process_address_1): Likewise.
8956 (curr_insn_transform): Likewise.
8957 * ira-costs.c (record_reg_classes): Likewise.
8958 (record_operand_costs): Likewise.
8959 * ira-lives.c (single_reg_class): Likewise.
8960 (ira_implicitly_set_insn_hard_regs): Likewise.
8961 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8962 * postreload.c (reload_cse_simplify_operands): Likewise.
8963 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
8964 (constrain_operands, peep2_find_free_register): Likewise.
8965 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
8966 (find_reloads, alternative_allows_const_pool_ref): Likewise.
8967 * reload1.c (maybe_fix_stack_asms): Likewise.
8968 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
8969 * targhooks.c (default_secondary_reload): Likewise.
8970 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
8971 to EXTRA_CONSTRAINT_STR.
8972 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
8973
8974 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8975
8976 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
8977 (write_constraint_satisfied_p_array): ...this new function.
8978 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
8979 an array.
8980 (write_insn_preds_c): Update accordingly.
8981
8982 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8983
8984 * genpreds.c (write_lookup_constraint): Rename to...
8985 (write_lookup_constraint_1): ...this.
8986 (write_lookup_constraint_array): New function.
8987 (write_tm_preds_h): Define lookup_constraint as an inline function
8988 that uses write_lookup_constraint_array where possible.
8989 (write_insn_preds_c): Update for the changes above.
8990
8991 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8992
8993 * doc/md.texi (regclass_for_constraint): Rename to...
8994 (reg_class_for_constraint): ...this.
8995 * genpreds.c (num_constraints, enum_order, register_start)
8996 (register_end, satisfied_start, memory_start, memory_end)
8997 (address_start, address_end): New variables.
8998 (add_constraint): Count the number of constraints.
8999 (choose_enum_order): New function.
9000 (write_enum_constraint_num): Iterate over enum_order.
9001 (write_regclass_for_constraint): Rename to...
9002 (write_reg_class_for_constraint_1): ...this and update output
9003 accordingly.
9004 (write_constraint_satisfied_p): Rename to...
9005 (write_constraint_satisfied_p_1): ...this and update output
9006 accordingly. Do nothing if all extra constraints are register
9007 constraints.
9008 (write_insn_extra_memory_constraint): Delete.
9009 (write_insn_extra_address_constraint): Delete.
9010 (write_range_function): New function.
9011 (write_tm_preds_h): Define constraint_satisfied_p and
9012 reg_class_for_constraint as inline functions that do a range check
9013 before calling the out-of-line function. Use write_range_function
9014 to implement insn_extra_{register,memory,address}_constraint,
9015 the first of which is new.
9016 (write_insn_preds_c): Update after above changes to write_* functions.
9017 (main): Call choose_enum_order.
9018
9019 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
9020
9021 PR tree-optimization/61306
9022 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
9023 expression instead of its size.
9024 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
9025 false to prevent optimization when the result is unpredictable due to
9026 arithmetic right shift of signed type with highest byte is set.
9027 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
9028 (init_symbolic_number): Likewise.
9029 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
9030 when the result is unpredictable due to sign extension.
9031
9032 2014-06-11 Terry Guo <terry.guo@arm.com>
9033
9034 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
9035 (*thumb1_addsi3): Ditto.
9036 (*thumb_subdi3): Ditto.
9037 (thumb1_subsi3_insn): Ditto.
9038 (*thumb_mulsi3): Ditto.
9039 (*thumb_mulsi3_v6): Ditto.
9040 (*thumb1_andsi3_insn): Ditto.
9041 (thumb1_bicsi3): Ditto.
9042 (*thumb1_iorsi3_insn): Ditto.
9043 (*thumb1_xorsi3_insn): Ditto.
9044 (*thumb1_ashlsi3): Ditto.
9045 (*thumb1_ashrsi3): Ditto.
9046 (*thumb1_lshrsi3): Ditto.
9047 (*thumb1_rotrsi3): Ditto.
9048 (*thumb1_negdi2): Ditto.
9049 (*thumb1_negsi2): Ditto.
9050 (*thumb1_abssi2): Ditto.
9051 (*thumb1_neg_abssi2): Ditto.
9052 (*thumb1_one_cmplsi2): Ditto.
9053 (*thumb1_zero_extendhisi2): Ditto.
9054 (*thumb1_zero_extendqisi2): Ditto.
9055 (*thumb1_zero_extendqisi2_v6): Ditto.
9056 (thumb1_extendhisi2): Ditto.
9057 (thumb1_extendqisi2): Ditto.
9058 (*thumb1_movdi_insn): Ditto.
9059 (*thumb1_movsi_insn): Ditto.
9060 (*thumb1_movhi_insn): Ditto.
9061 (thumb_movhi_clobber): Ditto.
9062 (*thumb1_movqi_insn): Ditto.
9063 (*thumb1_movhf): Ditto.
9064 (*thumb1_movsf_insn): Ditto.
9065 (*thumb_movdf_insn): Ditto.
9066 (movmem12b): Ditto.
9067 (movmem8b): Ditto.
9068 (cbranchqi4): Ditto.
9069 (cbranchsi4_insn): Ditto.
9070 (cbranchsi4_scratch): Ditto.
9071 (*negated_cbranchsi4): Ditto.
9072 (*tbit_cbranch): Ditto.
9073 (*tlobits_cbranch): Ditto.
9074 (*tstsi3_cbranch): Ditto.
9075 (*cbranchne_decr1): Ditto.
9076 (*addsi3_cbranch): Ditto.
9077 (*addsi3_cbranch_scratch): Ditto.
9078 (*thumb_cmpdi_zero): Ditto.
9079 (cstoresi_eq0_thumb1): Ditto.
9080 (cstoresi_ne0_thumb1): Ditto.
9081 (*cstoresi_eq0_thumb1_insn): Ditto.
9082 (*cstoresi_ne0_thumb1_insn): Ditto.
9083 (cstoresi_nltu_thumb1): Ditto.
9084 (cstoresi_ltu_thumb1): Ditto.
9085 (thumb1_addsi3_addgeu): Ditto.
9086 (*thumb_jump): Ditto.
9087 (*call_reg_thumb1_v5): Ditto.
9088 (*call_reg_thumb1): Ditto.
9089 (*call_value_reg_thumb1_v5): Ditto.
9090 (*call_value_reg_thumb1): Ditto.
9091 (*call_insn): Ditto.
9092 (*call_value_insn): Ditto.
9093 (thumb1_casesi_internal_pic): Ditto.
9094 (thumb1_casesi_dispatch): Ditto.
9095 (*thumb1_indirect_jump): Ditto.
9096 (prologue_thumb1_interwork): Ditto.
9097 (*epilogue_insns): Ditto.
9098 (consttable_1): Ditto.
9099 (consttable_2): Ditto.
9100 (tablejump): Ditto.
9101 (*thumb1_tablejump): Ditto.
9102 (thumb_eh_return): Ditto.
9103 (define_peephole2): Two of them are thumb1 only and got moved into
9104 new file thumb1.md.
9105 (define_split): Six of them are thumb1 only and got moved into new
9106 file thumb1.md.
9107 * config/arm/thumb1.md: New file comprised of above thumb1 only
9108 patterns.
9109
9110 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9111
9112 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
9113 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
9114 dependencies.
9115 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
9116 (aarch64_crc_builtin_datum): New struct.
9117 (aarch64_crc_builtin_data): New.
9118 (aarch64_init_crc32_builtins): New function.
9119 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
9120 (aarch64_crc32_expand_builtin): New.
9121 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
9122 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9123 __ARM_FEATURE_CRC32 when appropriate.
9124 (TARGET_CRC32): Define.
9125 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
9126 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
9127 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
9128 (aarch64_<crc_variant>): New pattern.
9129 * config/aarch64/arm_acle.h: New file.
9130 * config/aarch64/iterators.md (CRC): New int iterator.
9131 (crc_variant, crc_mode): New int attributes.
9132 * doc/aarch64-acle-intrinsics.texi: New file.
9133 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
9134 Include aarch64-acle-intrinsics.texi.
9135
9136 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
9137
9138 * tree-vect-data-refs.c (vect_grouped_store_supported): New
9139 check for stores group of length 3.
9140 (vect_permute_store_chain): New permutations for stores group of
9141 length 3.
9142 * tree-vect-stmts.c (vect_model_store_cost): Change cost
9143 of vec_perm_shuffle for the new permutations.
9144
9145 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
9146
9147 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
9148 table rewriting temporarily on targets not supporting ONE_ONLY.
9149
9150 2014-06-11 Richard Biener <rguenther@suse.de>
9151
9152 PR middle-end/61437
9153 Revert
9154 2014-06-04 Richard Biener <rguenther@suse.de>
9155
9156 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
9157 TREE_PUBLIC and DECL_EXTERNAL decls.
9158
9159 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
9160
9161 * varasm.c (set_implicit_section): New function.
9162 (resolve_unique_section): Use it to set implicit section
9163 for aliases, too.
9164 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
9165 (default_function_section): Likewise.
9166 (decl_binds_to_current_def_p): Constify argument.
9167 * varasm.h (decl_binds_to_current_def_p): Update prototype.
9168 * asan.c (asan_protect_global): Use
9169 symtab_get_node (decl)->implicit_section.
9170 * symtab.c (dump_symtab_base): Dump implicit sections.
9171 (verify_symtab_base): Verify sanity of sectoins and comdats.
9172 (symtab_resolve_alias): Alias share the section of its target.
9173 (set_section_1): New function.
9174 (symtab_node::set_section): Move here, recurse to aliases.
9175 (verify_symtab): Check for duplicated symtab lists.
9176 * tree-core.h (implicit_section_name_p): Remove.
9177 * tree-vect-data-refs.c: Include varasm.h.
9178 (vect_can_force_dr_alignment_p): Fix conditional on when
9179 decl bints to current definition; use
9180 symtab_get_node (decl)->implicit_section.
9181 * cgraph.c (cgraph_make_node_local_1): Fix section set.
9182 * cgraph.h (struct symtab_node): Add implicit_section.
9183 (set_section): Rename to ...
9184 (set_section_for_node): ... this one.
9185 (set_section): Declare.
9186 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
9187 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
9188 input_overwrite_node, input_varpool_node): Stream implicit_section.
9189 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
9190 removal; it will fail in LTO.
9191
9192 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9193
9194 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
9195 Change second alternative type to f_mcr.
9196 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
9197 and 12th alternatives' types to f_mcr and f_mrc.
9198 (*movdi_aarch64): Same for 12th and 13th alternatives.
9199 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
9200 (aarch64_movtilow_tilow): Change type to fmov.
9201
9202 2014-06-10 Jiong Wang <jiong.wang@arm.com>
9203
9204 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
9205 (aarch64_save_or_restore_callee_save_registers): Fix layout.
9206
9207 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9208
9209 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
9210 New expander.
9211 (aarch64_sqrdmulh_lane<mode>): Likewise.
9212 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
9213 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
9214 (aarch64_sqdmulh_laneq<mode>): New expander.
9215 (aarch64_sqrdmulh_laneq<mode>): Likewise.
9216 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
9217 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
9218 (aarch64_sqdmulh_lane<mode>): New expander.
9219 (aarch64_sqrdmulh_lane<mode>): Likewise.
9220 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
9221 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
9222 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
9223 (aarch64_sqdmlal_laneq<mode>): Likewise.
9224 (aarch64_sqdmlsl_lane<mode>): Likewise.
9225 (aarch64_sqdmlsl_laneq<mode>): Likewise.
9226 (aarch64_sqdmlal2_lane<mode>): Likewise.
9227 (aarch64_sqdmlal2_laneq<mode>): Likewise.
9228 (aarch64_sqdmlsl2_lane<mode>): Likewise.
9229 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
9230 (aarch64_sqdmull_lane<mode>): Likewise.
9231 (aarch64_sqdmull_laneq<mode>): Likewise.
9232 (aarch64_sqdmull2_lane<mode>): Likewise.
9233 (aarch64_sqdmull2_laneq<mode>): Likewise.
9234
9235 2014-06-10 Richard Biener <rguenther@suse.de>
9236
9237 PR tree-optimization/61438
9238 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
9239 (eliminate_dom_walker::before_dom_children): Only try to inhibit
9240 insertion of IVs if running PRE.
9241 (eliminate): Adjust.
9242 (pass_pre::execute): Likewise.
9243 (pass_fre::execute): Likewise.
9244
9245 2014-06-10 Richard Biener <rguenther@suse.de>
9246
9247 PR middle-end/61456
9248 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9249 Do not use the main variant for the type comparison.
9250 (ncr_compar): Likewise.
9251 (nonoverlapping_component_refs_p): Likewise.
9252
9253 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
9254
9255 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
9256 REG_CFA_RESTORE mode.
9257
9258 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
9259
9260 * config/i386/i386.c (expand_vec_perm_pblendv): New.
9261 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
9262 expand_vec_perm_pblendv.
9263
9264 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9265
9266 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
9267 available.
9268 Simplify description of __crc32d and __crc32cd intrinsics.
9269 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
9270 availability.
9271
9272 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
9273
9274 PR lto/61334
9275 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
9276 * config.in: Regenerate.
9277 * configure: Likewise.
9278
9279 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
9280
9281 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
9282 and public vars.
9283 (intersect_static_var_sets): Remove.
9284 (propagate): Do not prune local statics.
9285
9286 2014-06-10 Jakub Jelinek <jakub@redhat.com>
9287
9288 PR fortran/60928
9289 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
9290 Set lastprivate_firstprivate even if omp_private_outer_ref
9291 langhook returns true.
9292 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
9293 langhook, call unshare_expr on new_var and call
9294 build_outer_var_ref to get the last argument.
9295
9296 2014-06-10 Marek Polacek <polacek@redhat.com>
9297
9298 PR c/60988
9299 * doc/extend.texi: Add cindex for transparent_union.
9300
9301 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
9302
9303 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
9304 init_symbolic_number ().
9305
9306 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
9307
9308 PR middle-end/61141
9309 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
9310 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
9311 (verify_rtl_sharing): Likewise.
9312
9313 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
9314
9315 PR c++/54442
9316 * tree.c (build_qualified_type): Use a canonical type for
9317 TYPE_CANONICAL.
9318
9319 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9320
9321 * config/arm/arm-modes.def: Remove XFmode.
9322
9323 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
9324
9325 PR target/61062
9326 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
9327 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
9328 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
9329 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
9330 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
9331 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
9332 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
9333 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
9334 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
9335
9336 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
9337
9338 * tree-core.h (tree_decl_with_vis): Remove section_name.
9339
9340 2014-06-09 Kito Cheng <kito@0xlab.org>
9341
9342 * ira.c (ira): Don't call init_caller_save if LRA enabled
9343 since LRA use its own infrastructure to handle that.
9344
9345 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
9346
9347 * symtab.c (dump_symtab_base): Update dumping.
9348 (symtab_make_decl_local): Clear only DECL_COMDAT.
9349 * tree-vect-data-refs.c (Check that variable is static before
9350 tampering with sections.
9351 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
9352 (cgraph_create_virtual_clone): Likewise.
9353 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
9354 (decl_section_name, set_decl_section_name): New accessors.
9355 (find_decls_types_r): Do not walk section name
9356 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
9357 (decl_comdat_group, decl_comdat_group_id): Constify.
9358 (decl_section_name, set_decl_section_name): Update.
9359 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
9360 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
9361 (cgraph_make_node_local_1): Clear section and comdat group.
9362 * cgraph.h (set_comdat_group): Sanity check.
9363 (get_section, set_section): New.
9364 * ipa-comdats.c (ipa_comdats): Use get_section.
9365 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
9366 * lto-streamer-out.c: Do not follow section names.
9367 * c-family/c-common.c (handle_section_attribute): Update.
9368 * lto-cgraph.c (lto_output_node): Output section.
9369 (lto_output_varpool_node): Likewise.
9370 (read_comdat_group): Rename to ...
9371 (read_identifier): ... this one.
9372 (read_string_cst): New function.
9373 (input_node, input_varpool_node): Input section names.
9374 * tree-emutls.c (get_emutls_init_templ_addr): Update.
9375 (new_emutls_decl): Update.
9376 (secname_for_decl): Check section names only of static vars.
9377 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
9378 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
9379 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
9380 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
9381 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
9382 * config/mcore/mcore.c (mcore_unique_section): Likewise.
9383 * config/mips/mips.c (mips16_build_function_stub): Likewise.
9384 * config/v850/v850.c (v850_insert_attributes): Likewise.
9385 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
9386 Likewise.
9387 (h8300_handle_tiny_data_attribute): Likewise.
9388 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
9389 (bfin_handle_l2_attribute): Likewise.
9390
9391 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
9392
9393 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
9394 remove static initializer.
9395
9396 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
9397
9398 * varasm.c (use_blocks_for_decl_p): Check symbol table
9399 instead of alias attribute.
9400 (place_block_symbol): Recurse on aliases.
9401
9402 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
9403
9404 * ipa-visibility.c: Include varasm.h
9405 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
9406
9407 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
9408
9409 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
9410 outputting aliases.
9411
9412 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
9413
9414 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
9415 from test_insn into GGC space escape via SET_SRC.
9416
9417 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
9418
9419 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
9420 call statement, if any.
9421 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
9422 statements, if any. Tidy up.
9423
9424 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9425
9426 PR target/61431
9427 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
9428 iterators, VSX_D that handles 64-bit types, and VSX_LE that
9429 handles swapping the two 64-bit double words on little endian
9430 systems. Include V1TImode and optionally TImode in VSX_LE so that
9431 these types are properly swapped. Change all of the insns and
9432 splits that do the 64-bit swaps to use VSX_LE.
9433 (vsx_le_perm_load_<mode>): Likewise.
9434 (vsx_le_perm_store_<mode>): Likewise.
9435 (splitters for little endian memory operations): Likewise.
9436 (vsx_xxpermdi2_le_<mode>): Likewise.
9437 (vsx_lxvd2x2_le_<mode>): Likewise.
9438 (vsx_stxvd2x2_le_<mode>): Likewise.
9439
9440 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
9441
9442 PR target/61423
9443 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
9444 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
9445 and corresponding splitters. Zero extend general register
9446 or memory input operand to XMM temporary. Enable for
9447 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
9448 (floatunssi<mode>2): Update expander predicate.
9449
9450 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
9451
9452 PR rtl-optimization/61325
9453 * lra-constraints.c (process_address_1): Check scale equal to one
9454 to prevent transformation: base + scale * index => base + new_reg.
9455
9456 2014-06-06 Richard Biener <rguenther@suse.de>
9457
9458 PR tree-optimization/59299
9459 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
9460 a def operand.
9461 (nearest_common_dominator_of_uses): Likewise.
9462 (statement_sink_location): Adjust. Support sinking loads.
9463
9464 2014-06-06 Martin Jambor <mjambor@suse.cz>
9465
9466 * ipa-prop.c (get_place_in_agg_contents_list): New function.
9467 (build_agg_jump_func_from_list): Likewise.
9468 (determine_known_aggregate_parts): Renamed to
9469 determine_locally_known_aggregate_parts. Moved some functionality
9470 to the two functions above, removed bound checks.
9471
9472 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
9473
9474 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
9475 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
9476 (aarch64_progress_pointer): Likewise.
9477 (aarch64_copy_one_part_and_move_pointers): Likewise.
9478 (aarch64_expand_movmen): Likewise.
9479 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
9480 * config/aarch64/aarch64.md (movmem<mode>): New.
9481
9482 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
9483
9484 * targhooks.c (default_add_stmt_cost): Call target specific
9485 hook instead of default one.
9486
9487 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
9488
9489 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
9490 endianness instead of host endianness.
9491 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
9492 comments.
9493
9494 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
9495
9496 PR debug/53927
9497 * function.c (instantiate_decls): Process the saved static chain.
9498 (expand_function_start): If not optimizing, save the static chain
9499 onto the stack.
9500 * tree-nested.c (convert_all_function_calls): Always create the static
9501 chain for nested functions if not optimizing.
9502
9503 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
9504
9505 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
9506
9507 2014-06-06 Richard Biener <rguenther@suse.de>
9508
9509 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
9510 (construct_init_block): Likewise.
9511 (construct_exit_block): Likewise.
9512 (pass_expand::execute): Likewise.
9513 * graphite.c (graphite_transforms): Replace check for current_loops
9514 with a check for > 1 loops.
9515 (pass_graphite_transforms::execute): Adjust.
9516 * ipa-split.c (split_function): Remove check for current_loops.
9517 * omp-low.c (expand_parallel_call): Likewise.
9518 (expand_omp_for_init_counts): Likewise.
9519 (extract_omp_for_update_vars): Likewise.
9520 (expand_omp_for_generic): Likewise.
9521 (expand_omp_sections): Likewise.
9522 (expand_omp_target): Likewise.
9523 * tracer.c (tail_duplicate): Likewise.
9524 (pass_tracer::execute): Likewise.
9525 * trans-mem.c (expand_transaction): Likewise.
9526 * tree-complex.c (expand_complex_div_wide): Likewise.
9527 * tree-eh.c (lower_resx): Likewise.
9528 (cleanup_empty_eh_merge_phis): Likewise.
9529 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
9530 current_loops with a check for > 1 loops.
9531 (pass_predcom::execute): Adjust.
9532 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
9533 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
9534 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
9535 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
9536 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
9537 * tree-switch-conversion.c (process_switch): Likewise.
9538 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
9539 * tree-vrp.c (vrp_visit_phi_node): Likewise.
9540 (execute_vrp): Likewise.
9541 * ubsan.c (ubsan_expand_null_ifn): Likewise.
9542
9543 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
9544
9545 * rtl.h (insn_location): Declare.
9546 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
9547 with UNKNOWN_LOCATION.
9548 * emit-rtl.c (insn_location): New function.
9549 * final.c (notice_source_line): Check that the instruction has a
9550 location before retrieving it and use insn_location.
9551 * modulo-sched.c (loop_single_full_bb_p): Likewise.
9552 * print-rtl.c (print_rtx): Likewise.
9553
9554 2014-06-06 Richard Biener <rguenther@suse.de>
9555
9556 * passes.def: Move 2nd VRP pass before phi-only-cprop.
9557
9558 2014-06-06 Christian Bruel <christian.bruel@st.com>
9559
9560 PR tree-optimization/43934
9561 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
9562 cost.
9563
9564 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
9565
9566 * ira-lives.c (single_reg_class): Add missing break. Explicitly
9567 return NO_REGS for extra address and memory constraints. Handle
9568 operands that match (or are equivalent to something that matches)
9569 extra constant constraints. Ignore other non-register operands.
9570
9571 2014-06-06 Alan Modra <amodra@gmail.com>
9572
9573 PR target/61300
9574 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
9575 * doc/tm.texi: Regenerate.
9576 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
9577 Use throughout in place of REG_PARM_STACK_SPACE.
9578 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
9579 "incoming" param. Pass to rs6000_function_parms_need_stack.
9580 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
9581 prototype_p when incoming. Use function decl when incoming
9582 to handle K&R style functions.
9583 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
9584 (INCOMING_REG_PARM_STACK_SPACE): Define.
9585
9586 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9587
9588 PR target/52472
9589 * cfgexpand.c (expand_debug_expr): Use address space of nested
9590 TREE_TYPE for ADDR_EXPR and MEM_REF.
9591
9592 2014-06-05 Jeff Law <law@redhat.com>
9593
9594 PR tree-optimization/61289
9595 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
9596 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
9597 looking for those which match LHS. All callers changed.
9598 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
9599 parameters and code which manipulated them. All callers changed.
9600 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
9601 and DST_MAP parameters. Simplify invalidation code by just calling
9602 invalidate_equivalences. All callers changed.
9603 (thread_across_edge): Simplify now that we don't need to maintain
9604 the map of equivalences to invalidate.
9605
9606 2014-06-05 Kai Tietz <ktietz@redhat.com>
9607 Richard Henderson <rth@redhat.com>
9608
9609 PR target/46219
9610 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
9611 checking for !TARGET_X32.
9612 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
9613 (sibcall_intern): New define_insn, plus required peepholes.
9614 (sibcall_pop_intern): Likewise.
9615 (sibcall_value_intern): Likewise.
9616 (sibcall_value_pop_intern): Likewise.
9617
9618 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
9619
9620 * tree-inline.c (tree_function_versioning): Check DF info existence
9621 before accessing it.
9622
9623 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9624
9625 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
9626 frame_size.
9627 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
9628 aarch64_frame hard_fp_offset and frame_size.
9629 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
9630 frame_size; remove original_frame_size.
9631 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
9632 (aarch64_initial_elimination_offset): Remove frame_size and
9633 offset. Use aarch64_frame frame_size.
9634
9635 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9636 Jiong Wang <jiong.wang@arm.com>
9637 Renlin <renlin.li@arm.com>
9638
9639 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
9640 initialization of R30 offset. Update offset. Iterate core
9641 regisers upto X30. Remove X29, X30 specific code.
9642
9643 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9644 Jiong Wang <jiong.wang@arm.com>
9645
9646 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
9647 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
9648 (aarch64_register_saved_on_entry): Adjust test.
9649
9650 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9651
9652 * config/aarch64/aarch64.h (machine_function): Move
9653 saved_varargs_size from here...
9654 (aarch64_frame): ... to here.
9655
9656 * config/aarch64/aarch64.c (aarch64_expand_prologue)
9657 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
9658 (aarch64_initial_elimination_offset)
9659 (aarch64_setup_incoming_varargs): Adjust location of
9660 saved_varargs_size.
9661
9662 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9663
9664 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
9665 layout comment.
9666
9667 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
9668 Prachi Godbole <Prachi.Godbole@imgtec.com>
9669
9670 * config/mips/mips-cpus.def: Add definition for p5600. Updated
9671 mips32r5 entry to use PROCESSOR_P5600.
9672 * config/mips/mips-tables.opt: Regenerate.
9673 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
9674 * config/mips/mips.c (mips_fmadd_bypass): New function.
9675 (mips_rtx_cost_data): Add costs for p5600.
9676 (mips_issue_rate): Add support for p5600.
9677 (mips_multipass_dfa_lookahead): Likewise.
9678 * config/mips/mips.h (TUNE_P5600): New define.
9679 (TUNE_MACC_CHAINS): Add TUNE_P5600.
9680 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
9681 * config/mips/mips.md: Include p5600.md.
9682 (processor): Add p5600.
9683 * config/mips/p5600.md: New file.
9684
9685 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
9686
9687 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
9688 * config/i386/predicates.md (palignr_operand): New.
9689 Indicates if permutation is suitable for palignr instruction.
9690
9691 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
9692
9693 PR tree-optimization/61319
9694 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
9695 stmt belongs to loop.
9696
9697 2014-06-05 Richard Biener <rguenther@suse.de>
9698
9699 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
9700 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
9701 (lookup_tmp_var): Adjust.
9702 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
9703
9704 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9705
9706 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
9707
9708 2014-06-05 Marek Polacek <polacek@redhat.com>
9709
9710 PR c/49706
9711 * doc/invoke.texi: Document -Wlogical-not-parentheses.
9712
9713 2014-06-04 Tom de Vries <tom@codesourcery.com>
9714
9715 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
9716 CONST_INT.
9717
9718 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
9719
9720 PR tree-optimization/61385
9721 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
9722
9723 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
9724
9725 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
9726 changed to use fatal_error.
9727 (main): Ensure lto_wrapper_cleanup is run atexit.
9728
9729 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9730
9731 * lra-constraints.c (valid_address_p): Move earlier in file.
9732 (address_eliminator): New structure.
9733 (satisfies_memory_constraint_p): New function.
9734 (satisfies_address_constraint_p): Likewise.
9735 (process_alt_operands, process_address, curr_insn_transform): Use them.
9736
9737 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9738
9739 * lra-int.h (lra_static_insn_data): Make operand_alternative a
9740 const pointer.
9741 (target_lra_int, default_target_lra_int, this_target_lra_int)
9742 (op_alt_data): Delete.
9743 * lra.h (lra_init): Delete.
9744 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
9745 (init_insn_code_data_once): Remove op_alt_data handling.
9746 (finish_insn_code_data_once): Likewise.
9747 (init_op_alt_data): Delete.
9748 (get_static_insn_data): Initialize operand_alternative to null.
9749 (free_insn_recog_data): Cast operand_alternative before freeing it.
9750 (setup_operand_alternative): Take the operand_alternative as
9751 parameter and assume it isn't already cached in the static
9752 insn data.
9753 (lra_set_insn_recog_data): Update accordingly.
9754 (lra_init): Delete.
9755 * ira.c (ira_init): Don't call lra_init.
9756 * target-globals.h (this_target_lra_int): Declare.
9757 (target_globals): Remove lra_int.
9758 (restore_target_globals): Update accordingly.
9759 * target-globals.c: Don't include lra-int.h.
9760 (default_target_globals, save_target_globals): Remove lra_int.
9761
9762 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9763
9764 * recog.h (operand_alternative): Convert reg_class, reject,
9765 matched and matches into bitfields.
9766 (preprocess_constraints): New overload.
9767 (preprocess_insn_constraints): New function.
9768 (preprocess_constraints): Take the insn as parameter.
9769 (recog_op_alt): Change into a pointer.
9770 (target_recog): Add x_op_alt.
9771 * recog.c (asm_op_alt): New variable.
9772 (recog_op_alt): Change into a pointer.
9773 (preprocess_constraints): New overload, replacing the old function
9774 definition with one that doesn't use global state.
9775 (preprocess_insn_constraints): New function.
9776 (preprocess_constraints): Use them. Take the insn as parameter.
9777 Use asm_op_alt for asms.
9778 (recog_init): Free existing x_op_alt entries.
9779 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
9780 pointer const.
9781 (make_early_clobber_and_input_conflicts): Likewise.
9782 (process_bb_node_lives): Pass the insn to process_constraints.
9783 * reg-stack.c (check_asm_stack_operands): Likewise.
9784 (subst_asm_stack_regs): Likewise.
9785 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
9786 * regrename.c (build_def_use): Likewise.
9787 * sched-deps.c (sched_analyze_insn): Likewise.
9788 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
9789 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
9790 (note_invalid_constants): Likewise.
9791 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9792 (ix86_legitimate_combined_insn): Make operand_alternative pointer
9793 const.
9794
9795 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9796
9797 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
9798 * ira-lives.c (check_and_make_def_conflict): Check for disabled
9799 alternatives.
9800 (make_early_clobber_and_input_conflicts): Likewise.
9801 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9802
9803 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9804
9805 * recog.h (alternative_class): New function.
9806 (which_op_alt): Return a const recog_op_alt.
9807 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
9808 (subst_asm_stack_regs): Likewise.
9809 * config/arm/arm.c (note_invalid_constants): Likewise.
9810 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
9811 the operand_alternative; use alternative class instead.
9812 * sel-sched.c (get_reg_class): Likewise.
9813 * regrename.c (build_def_use): Likewise.
9814 (hide_operands, restore_operands, record_out_operands): Update type
9815 accordingly.
9816
9817 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9818
9819 * recog.h (recog_op_alt): Convert to a flat array.
9820 (which_op_alt): New function.
9821 * recog.c (recog_op_alt): Convert to a flat array.
9822 (preprocess_constraints): Update accordingly, grouping all
9823 operands of the same alternative together, rather than the
9824 other way around.
9825 * ira-lives.c (check_and_make_def_conflict): Likewise.
9826 (make_early_clobber_and_input_conflicts): Likewise.
9827 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9828 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
9829 (subst_asm_stack_regs): Likewise.
9830 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
9831 * regrename.c (hide_operands, record_out_operands): Likewise.
9832 (build_def_use): Likewise.
9833 * sel-sched.c (get_reg_class): Likewise.
9834 * config/arm/arm.c (note_invalid_constants): Likewise.
9835
9836 2014-06-04 Jason Merrill <jason@redhat.com>
9837
9838 PR c++/51253
9839 PR c++/61382
9840 * gimplify.c (gimplify_arg): Non-static.
9841 * gimplify.h: Declare it.
9842
9843 2014-06-04 Richard Biener <rguenther@suse.de>
9844
9845 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
9846 TREE_PUBLIC and DECL_EXTERNAL decls.
9847
9848 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
9849
9850 * regcprop.c (copyprop_hardreg_forward_1): Account for
9851 HARD_REGNO_CALL_PART_CLOBBERED.
9852
9853 2014-06-04 Richard Biener <rguenther@suse.de>
9854
9855 * configure.ac: Check whether the underlying type of int64_t
9856 is long or long long.
9857 * configure: Regenerate.
9858 * config.in: Likewise.
9859 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
9860 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9861
9862 2014-06-04 Richard Biener <rguenther@suse.de>
9863
9864 PR tree-optimization/60098
9865 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
9866 we hit a kill.
9867 (dse_optimize_stmt): Simplify, now that we found a kill
9868 earlier.
9869
9870 2014-06-04 Richard Biener <rguenther@suse.de>
9871
9872 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
9873 of accesses with non-invariant address.
9874
9875 2014-06-04 Martin Liska <mliska@suse.cz>
9876
9877 * cgraph.h (cgraph_make_wrapper): New function introduced.
9878 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
9879 * ipa-inline.h (inline_analyze_function): The function is global.
9880 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
9881
9882 2014-06-04 Martin Liska <mliska@suse.cz>
9883
9884 * tree.h (private_lookup_attribute_starting): New function.
9885 (lookup_attribute_starting): Likewise.
9886 * tree.c (private_lookup_attribute_starting): Likewise.
9887
9888 2014-06-04 Martin Liska <mliska@suse.cz>
9889
9890 * cgraph.h (expand_thunk): New argument added.
9891 (address_taken_from_non_vtable_p): New global function.
9892 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
9893 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
9894 * cgraphunit.c (analyze_function): Likewise.
9895 (assemble_thunks_and_aliases): Argument added to call.
9896 (expand_thunk): New argument forces to produce GIMPLE thunk.
9897
9898 2014-06-04 Martin Liska <mliska@suse.cz>
9899
9900 * coverage.h (coverage_compute_cfg_checksum): Argument added.
9901 * coverage.c (coverage_compute_cfg_checksum): Likewise.
9902 * profile.c (branch_prob): Likewise.
9903
9904 2014-06-04 Martin Jambor <mjambor@suse.cz>
9905
9906 PR ipa/61340
9907 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
9908 handler for switch on an ipa_ref_use enum.
9909 * ipa-reference.c (analyze_function): Likewise.
9910
9911 2014-06-04 Kai Tietz <ktietz@redhat.com>
9912
9913 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
9914 from old call-instruction.
9915
9916 2014-06-04 Bin Cheng <bin.cheng@arm.com>
9917
9918 * config/aarch64/aarch64.c (aarch64_classify_address)
9919 (aarch64_legitimize_reload_address): Support full addressing modes
9920 for vector modes.
9921 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
9922 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
9923
9924 2014-06-03 Andrew Pinski <apinski@cavium.com>
9925
9926 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
9927 for OP0.
9928
9929 2014-06-03 Andrew Pinski <apinski@cavium.com>
9930
9931 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
9932 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
9933
9934 2014-06-03 Kai Tietz <ktietz@redhat.com>
9935
9936 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
9937 for 64-bit ms-abi.
9938
9939 2014-06-03 Dehao Chen <dehao@google.com>
9940
9941 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
9942 the same loop.
9943
9944 2014-06-03 Marek Polacek <polacek@redhat.com>
9945
9946 PR c/60439
9947 * doc/invoke.texi: Document -Wswitch-bool.
9948 * function.c (stack_protect_epilogue): Cast controlling expression of
9949 the switch to int.
9950 * gengtype.c (walk_type): Generate switch expression with its
9951 controlling expression cast to int.
9952
9953 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
9954
9955 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
9956 and attiny841.
9957 * config/avr/avr-tables.opt: Regenerate.
9958 * config/avr/t-multilib: Regenerate.
9959 * doc/avr-mmcu.texi: Regenerate.
9960
9961 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
9962 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9963
9964 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
9965 (ata6617c, ata664251): Add new avr35 devices.
9966 (ata6612c): Add new avr4 device.
9967 (ata6613c, ata6614q): Add new avr5 devices.
9968 * config/avr/avr-tables.opt: Regenerate.
9969 * config/avr/t-multilib: Regenerate.
9970 * doc/avr-mmcu.texi: Regenerate.
9971
9972 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9973
9974 * gcc/config/aarch64/aarch64-builtins.c
9975 (aarch64_types_binop_ssu_qualifiers): New static data.
9976 (TYPES_BINOP_SSU): Define.
9977 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
9978 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
9979 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
9980 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
9981 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
9982 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
9983 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
9984 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
9985 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
9986 suffix to builtin function name, remove cast.
9987 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
9988 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
9989 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
9990
9991 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9992
9993 * gcc/config/aarch64/aarch64-builtins.c
9994 (aarch64_types_binop_uus_qualifiers,
9995 aarch64_types_shift_to_unsigned_qualifiers,
9996 aarch64_types_unsigned_shiftacc_qualifiers): Define.
9997 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
9998 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
9999 sqshlu_n, uqshl_n): Update qualifiers.
10000 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
10001 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
10002 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
10003 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
10004 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
10005 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
10006 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
10007 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
10008 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
10009 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
10010 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
10011 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
10012 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
10013 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
10014 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
10015 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
10016 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
10017 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
10018 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
10019 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
10020 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
10021 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
10022 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
10023 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
10024 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
10025 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
10026 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
10027
10028 2014-06-03 Teresa Johnson <tejohnson@google.com>
10029
10030 * tree-sra.c (modify_function): Record caller nodes after rebuild.
10031
10032 2014-06-02 Jason Merrill <jason@redhat.com>
10033
10034 PR c++/61020
10035 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
10036
10037 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
10038
10039 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
10040 location == 0.
10041
10042 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
10043
10044 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
10045 New pattern.
10046 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
10047 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
10048 * config/aarch64/iterators.md (REVERSE): New iterator.
10049 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
10050 (rev_op): New int_attribute.
10051 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
10052 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
10053 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
10054 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
10055 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
10056 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
10057 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
10058 Replace temporary __asm__ with __builtin_shuffle.
10059
10060 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
10061
10062 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
10063 mips64r5.
10064 * config/mips/mips-tables.opt: Regenerate.
10065 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
10066 to use mips_isa_rev rather than ISA_MIPS32R2.
10067 * config/mips/mips.h (ISA_MIPS32R3): New define.
10068 (ISA_MIPS32R5): New define.
10069 (ISA_MIPS64R3): New define.
10070 (ISA_MIPS64R5): New define.
10071 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
10072 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
10073 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
10074 and mips64r5.
10075 (MIPS_ISA_SYNCI_SPEC): Likewise.
10076 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
10077 (LINK_SPEC): Added mips32r3 and mips32r5.
10078 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
10079 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
10080 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
10081 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
10082 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
10083 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
10084 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
10085
10086 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
10087
10088 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
10089 options.
10090 * config/mips/mips.opt (mxpa): New option.
10091 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
10092 assembler.
10093
10094 2014-06-03 Martin Jambor <mjambor@suse.cz>
10095
10096 PR ipa/61160
10097 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
10098 thunks.
10099
10100 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
10101
10102 PR tree-optimization/61328
10103 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
10104 initialization from find_bswap_or_nop_1.
10105 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
10106 in source_expr2 before using the size value the function sets. Also
10107 make use of init_symbolic_number () in both the old place and
10108 find_bswap_or_nop_load () to avoid reading uninitialized memory when
10109 doing recursion in the GIMPLE_BINARY_RHS case.
10110
10111 2014-06-03 Richard Biener <rguenther@suse.de>
10112
10113 PR tree-optimization/61383
10114 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
10115 stmts can't trap.
10116
10117 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
10118
10119 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
10120 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
10121 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
10122 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
10123 in this file.
10124 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
10125 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
10126 * system.h: ...here and make it unconditional.
10127 * target.def (conditional_register_usage): Mention
10128 define_register_constraint instead of old-style constraint macros.
10129 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
10130 * doc/tm.texi: Regenerate.
10131 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
10132 protected by !USE_MD_CONSTRAINTS.
10133 * config/frv/frv.md: Remove quote from old version of documentation.
10134 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
10135 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
10136 CONST_DOUBLE_OK_FOR_LETTER.
10137 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
10138
10139 2014-06-02 Andrew Pinski <apinski@cavium.com>
10140
10141 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
10142 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
10143 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
10144 file whose name depends on -mabi= and -mbig-endian.
10145 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
10146 Handle LP64 better and handle ilp32 too.
10147 (MULTILIB_OPTIONS): Delete.
10148 (MULTILIB_DIRNAMES): Delete.
10149
10150 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
10151
10152 * expr.h: Remove prototypes of functions defined in builtins.c.
10153 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
10154 Remove prototypes of functions defined in builtins.c.
10155 * builtins.h: Update prototype list to include all exported functions.
10156 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
10157 no_c99_libc_has_function): Move to targhooks.c
10158 (build_string_literal, build_call_expr_loc_array,
10159 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
10160 to tree.c.
10161 (expand_builtin_object_size, fold_builtin_object_size): Make static.
10162 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
10163 no_c99_libc_has_function): Relocate from builtins.c.
10164 * tree.c: Include builtins.h.
10165 (build_call_expr_loc_array, build_call_expr_loc_vec,
10166 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
10167 from builtins.c.
10168 * fold-const.h (fold_fma): Move prototype to builtins.h.
10169 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
10170 * asan.c: Include builtins.h.
10171 * cfgexpand.c: Likewise.
10172 * convert.c: Likewise.
10173 * emit-rtl.c: Likewise.
10174 * except.c: Likewise.
10175 * expr.c: Likewise.
10176 * fold-const.c: Likewise.
10177 * gimple-fold.c: Likewise.
10178 * gimple-ssa-strength-reduction.c: Likewise.
10179 * gimplify.c: Likewise.
10180 * ipa-inline.c: Likewise.
10181 * ipa-prop.c: Likewise.
10182 * lto-streamer-out.c: Likewise.
10183 * stmt.c: Likewise.
10184 * tree-inline.c: Likewise.
10185 * tree-object-size.c: Likewise.
10186 * tree-sra.c: Likewise.
10187 * tree-ssa-ccp.c: Likewise.
10188 * tree-ssa-forwprop.c: Likewise.
10189 * tree-ssa-loop-ivcanon.c: Likewise.
10190 * tree-ssa-loop-ivopts.c: Likewise.
10191 * tree-ssa-math-opts.c: Likewise.
10192 * tree-ssa-reassoc.c: Likewise.
10193 * tree-ssa-threadedge.c: Likewise.
10194 * tree-streamer-in.c: Likewise.
10195 * tree-vect-data-refs.c: Likewise.
10196 * tree-vect-patterns.c: Likewise.
10197 * tree-vect-stmts.c: Likewise.
10198 * config/aarch64/aarch64.c: Likewise.
10199 * config/alpha/alpha.c: Likewise.
10200 * config/arc/arc.c: Likewise.
10201 * config/arm/arm.c: Likewise.
10202 * config/avr/avr.c: Likewise.
10203 * config/bfin/bfin.c: Likewise.
10204 * config/c6x/c6x.c: Likewise.
10205 * config/cr16/cr16.c: Likewise.
10206 * config/cris/cris.c: Likewise.
10207 * config/epiphany/epiphany.c: Likewise.
10208 * config/fr30/fr30.c: Likewise.
10209 * config/frv/frv.c: Likewise.
10210 * config/h8300/h8300.c: Likewise.
10211 * config/i386/i386.c: Likewise.
10212 * config/i386/winnt.c: Likewise.
10213 * config/ia64/ia64.c: Likewise.
10214 * config/iq2000/iq2000.c: Likewise.
10215 * config/lm32/lm32.c: Likewise.
10216 * config/m32c/m32c.c: Likewise.
10217 * config/m32r/m32r.c: Likewise.
10218 * config/m68k/m68k.c: Likewise.
10219 * config/mcore/mcore.c: Likewise.
10220 * config/mep/mep.c: Likewise.
10221 * config/microblaze/microblaze.c: Likewise.
10222 * config/mips/mips.c: Likewise.
10223 * config/mmix/mmix.c: Likewise.
10224 * config/mn10300/mn10300.c: Likewise.
10225 * config/moxie/moxie.c: Likewise.
10226 * config/msp430/msp430.c: Likewise.
10227 * config/nds32/nds32.c: Likewise.
10228 * config/pa/pa.c: Likewise.
10229 * config/pdp11/pdp11.c: Likewise.
10230 * config/picochip/picochip.c: Likewise.
10231 * config/rl78/rl78.c: Likewise.
10232 * config/rs6000/rs6000.c: Likewise.
10233 * config/rx/rx.c: Likewise.
10234 * config/s390/s390.c: Likewise.
10235 * config/score/score.c: Likewise.
10236 * config/sh/sh.c: Likewise.
10237 * config/sparc/sparc.c: Likewise.
10238 * config/spu/spu.c: Likewise.
10239 * config/stormy16/stormy16.c: Likewise.
10240 * config/tilegx/tilegx.c: Likewise.
10241 * config/tilepro/tilepro.c: Likewise.
10242 * config/v850/v850.c: Likewise.
10243 * config/vax/vax.c: Likewise.
10244 * config/xtensa/xtensa.c: Likewise.
10245
10246 2014-06-02 Jeff Law <law@redhat.com>
10247
10248 PR rtl-optimization/61094
10249 * ree.c (combine_reaching_defs): Do not reextend an insn if it
10250 was marked as do_no_reextend. If a copy is needed to eliminate
10251 an extension, then mark it as do_not_reextend.
10252
10253 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
10254
10255 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
10256
10257 2014-06-02 Richard Henderson <rth@redhat.com>
10258
10259 PR target/61336
10260 * config/alpha/alpha.c (print_operand_address): Allow symbolic
10261 addresses inside asms. Use output_operand_lossage instead of
10262 gcc_unreachable.
10263
10264 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
10265
10266 PR target/61239
10267 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
10268 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
10269
10270 2014-06-02 Tom de Vries <tom@codesourcery.com>
10271
10272 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
10273 case that x has VOIDmode.
10274
10275 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
10276
10277 * varasm.c (copy_constant): Delete function.
10278 (build_constant_desc): Don't call it.
10279
10280 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10281
10282 PR target/61154
10283 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
10284 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
10285 with immediate_operand.
10286
10287 2014-06-02 Andreas Schwab <schwab@suse.de>
10288
10289 * config/ia64/ia64.c
10290 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
10291 pending_data_specs first.
10292
10293 2014-06-02 Richard Biener <rguenther@suse.de>
10294
10295 PR tree-optimization/61378
10296 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
10297 valueized_anything.
10298
10299 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
10300
10301 * config/i386/constraints.md (Bw): Rename from 'w'.
10302 (Bz): Rename from 'z'.
10303 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
10304
10305 2014-06-01 Kai Tietz <ktietz@redhat.com>
10306
10307 PR target/61377
10308 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
10309 * config/i386/i386.md (sibcall_insn_operand): Use Bs
10310 instead of m constraint.
10311
10312 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
10313
10314 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
10315 a separate alternative where the scratch operand 2 is marked as
10316 early clobber.
10317
10318 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
10319
10320 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
10321 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
10322 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
10323 and __builtins_arm_get_fpscr.
10324 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
10325 __builtins_arm_get_fpscr.
10326 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
10327 __builtins_arm_ldfpscr.
10328 (arm_atomic_assign_expand_fenv): New function.
10329 * config/arm/vfp.md (set_fpscr): New pattern.
10330 (get_fpscr) : Likewise.
10331 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
10332 VUNSPEC_SET_FPSCR.
10333 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10334 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
10335
10336 2014-05-30 Jakub Jelinek <jakub@redhat.com>
10337
10338 * asan.c (report_error_func): Add SLOW_P argument, use
10339 BUILT_IN_ASAN_*_N if set.
10340 (build_check_stmt): Likewise.
10341 (instrument_derefs): If T has insufficient alignment,
10342 force same handling as for odd sizes.
10343
10344 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
10345 BUILT_IN_ASAN_REPORT_STORE_N): New.
10346 * asan.c (struct asan_mem_ref): Change access_size type to
10347 HOST_WIDE_INT.
10348 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
10349 update_mem_ref_hash_table): Likewise.
10350 (asan_mem_ref_hasher::hash): Hash in a HWI.
10351 (report_error_func): Change size_in_bytes argument to HWI.
10352 Use *_N builtins if size_in_bytes is larger than 16 or not power of
10353 two.
10354 (build_shadow_mem_access): New function.
10355 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
10356 Handle size_in_bytes not power of two or larger than 16.
10357 (instrument_derefs): Don't give up if size_in_bytes is not
10358 power of two or is larger than 16.
10359
10360 2014-05-30 Kai Tietz <ktietz@redhat.com>
10361
10362 PR target/60104
10363 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
10364 for sibling-tail-calls.
10365 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
10366 to its use.
10367 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
10368 (sibcall_insn_operand): Add check for sibcall_memory_operand.
10369
10370 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10371
10372 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
10373 * config/avr/avr-tables.opt: Regenerate.
10374 * config/avr/t-multilib: Regenerate.
10375 * doc/avr-mmcu.texi: Regenerate.
10376
10377 2014-05-30 Ian Lance Taylor <iant@google.com>
10378
10379 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
10380 target("sse").
10381
10382 2014-05-30 Tom de Vries <tom@codesourcery.com>
10383
10384 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
10385 Redefine as true.
10386
10387 2014-05-30 Tom de Vries <tom@codesourcery.com>
10388
10389 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
10390 * lra.c (initialize_lra_reg_info_element): Add init of
10391 actual_call_used_reg_set field.
10392 (lra): Call lra_create_live_ranges before lra_inheritance for
10393 -fuse-caller-save.
10394 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
10395 -fuse-caller-save.
10396 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
10397 instead of call_used_reg_set for -fuse-caller-save.
10398 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
10399
10400 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10401
10402 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
10403 to mov_imm.
10404 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
10405
10406 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
10407
10408 * ira.c (ira_get_dup_out_num): Check for output operands at
10409 the start of the loop. Handle cases where an included alternative
10410 follows an excluded one.
10411
10412 2014-05-29 Mike Stump <mikestump@comcast.net>
10413
10414 PR debug/61352
10415 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
10416 post ld passes when lto is used.
10417
10418 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
10419
10420 PR rtl-optimization/61325
10421 * lra-constraints.c (process_address): Rename to process_address_1.
10422 (process_address): New function.
10423
10424 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
10425
10426 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
10427 TYPES_BINOPV): New static data.
10428 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
10429 New builtin.
10430 * config/aarch64/aarch64-simd.md (aarch64_ext,
10431 aarch64_im_lane_boundsi): New patterns.
10432 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
10433 patterns for EXT.
10434 (aarch64_evpc_ext): New function.
10435
10436 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
10437
10438 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
10439 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
10440 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
10441 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
10442 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
10443
10444 2014-05-29 Tom de Vries <tom@codesourcery.com>
10445
10446 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
10447
10448 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
10449 Richard Sandiford <rdsandiford@googlemail.com>
10450
10451 * arm/iterators.md (shiftable_ops): New code iterator.
10452 (t2_binop0, arith_shift_insn): New code attributes.
10453 * arm/predicates.md (shift_nomul_operator): New predicate.
10454 * arm/arm.md (insn_enabled): Delete.
10455 (enabled): Remove insn_enabled test.
10456 (*arith_shiftsi): Delete. Replace with ...
10457 (*<arith_shift_insn>_multsi): ... new pattern.
10458 (*<arith_shift_insn>_shiftsi): ... new pattern.
10459 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
10460
10461 2014-05-29 Radovan Obradovic <robradovic@mips.com>
10462 Tom de Vries <tom@codesourcery.com>
10463
10464 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
10465 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
10466 clobber.
10467 (mips_split_call): Use POST_CALL_TMP_REG.
10468 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
10469
10470 2014-05-29 Tom de Vries <tom@codesourcery.com>
10471
10472 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
10473 with #ifdef STACK_REGS.
10474
10475 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
10476
10477 * varasm.c (get_variable_section): Walk aliases.
10478 (place_block_symbol): Walk aliases.
10479
10480 2014-05-28 Tom de Vries <tom@codesourcery.com>
10481
10482 Revert:
10483 2014-05-28 Tom de Vries <tom@codesourcery.com>
10484
10485 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
10486 * lra.c (initialize_lra_reg_info_element): Add init of
10487 actual_call_used_reg_set field.
10488 (lra): Call lra_create_live_ranges before lra_inheritance for
10489 -fuse-caller-save.
10490 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
10491 -fuse-caller-save.
10492 * lra-constraints.c (need_for_call_save_p): Use
10493 actual_call_used_reg_set instead of call_used_reg_set for
10494 -fuse-caller-save.
10495 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
10496
10497 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10498
10499 * doc/md.texi: Document that the % constraint character must
10500 be at the beginning of the string.
10501 * genoutput.c (validate_insn_alternatives): Check that '=',
10502 '+' and '%' only appear at the beginning of a constraint.
10503 * ira.c (commutative_constraint_p): Delete.
10504 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
10505 at the start of the string.
10506 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
10507 duplicate '='s.
10508 * config/arm/neon.md (bicdi3_neon): Likewise.
10509 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
10510 (slt_si, sltu_si): Likewise.
10511 * config/vax/vax.md (sbcdi3): Likewise.
10512 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
10513 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
10514 (mul64): Move '%' to beginning of constraint.
10515 * config/arm/arm.md (*xordi3_insn): Likewise.
10516 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
10517 (xorsi3): Likewise.
10518
10519 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10520
10521 * doc/md.texi: Document the restrictions on the "enabled" attribute.
10522
10523 2014-05-28 Jason Merrill <jason@redhat.com>
10524
10525 PR c++/47202
10526 * cgraph.h (symtab_node::get_comdat_group_id): New.
10527 * cgraphunit.c (analyze_functions): Call it.
10528 * symtab.c (dump_symtab_node): Likewise.
10529 * tree.c (decl_comdat_group_id): New.
10530 * tree.h: Declare it.
10531 * lto-streamer-out.c (write_symbol): Use it.
10532 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
10533
10534 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10535
10536 PR bootstrap/PR61146
10537 * wide-int.cc: Do not include longlong.h when compiling with clang.
10538
10539 2014-05-28 Richard Biener <rguenther@suse.de>
10540
10541 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
10542 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
10543 (vrp_visit_assignment_or_call): Print less vertical space.
10544 (vrp_visit_stmt): Likewise.
10545 (vrp_visit_phi_node): Likewise. For a PHI argument with
10546 VR_VARYING range consider recording it as copy.
10547
10548 2014-05-28 Richard Biener <rguenther@suse.de>
10549
10550 Revert
10551 2014-05-28 Richard Biener <rguenther@suse.de>
10552
10553 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
10554
10555 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
10556
10557 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
10558 sufficiently aligned and an offset is used at the same time.
10559 (expand_expr_real_1): Likewise.
10560
10561 2014-05-28 Richard Biener <rguenther@suse.de>
10562
10563 PR middle-end/61045
10564 * fold-const.c (fold_comparison): When folding
10565 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
10566 the sign of the remaining constant operand stays the same.
10567
10568 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
10569
10570 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
10571 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
10572 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
10573 to the assembler.
10574 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
10575 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
10576 (m32bit-doubles) Likewise.
10577 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
10578 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
10579 option for RL78.
10580
10581 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10582
10583 * configure.ac ($gcc_cv_ld_clearcap): New test.
10584 * configure: Regenerate.
10585 * config.in: Regenerate.
10586 * config/sol2.opt (mclear-hwcap): New option.
10587 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
10588 * config/sol2-clearcap.map: Moved here from
10589 testsuite/gcc.target/i386/clearcap.map.
10590 * config/sol2-clearcapv2.map: Move here from
10591 gcc.target/i386/clearcapv2.map.
10592 * config/t-sol2 (install): Depend on install-clearcap-map.
10593 (install-clearcap-map): New target.
10594 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
10595 -mclear-hwcap.
10596
10597 2014-05-28 Richard Biener <rguenther@suse.de>
10598
10599 * hwint.h (*_HALF_WIDE_INT*): Move to ...
10600 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
10601 ... here and remove the rest.
10602 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
10603
10604 2014-05-28 Richard Biener <rguenther@suse.de>
10605
10606 PR tree-optimization/61335
10607 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
10608 new range fails, drop to varying.
10609
10610 2014-05-28 Olivier Hainque <hainque@adacore.com>
10611
10612 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
10613 (CPP_SPEC): Add entry for -mcpu=8548.
10614 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
10615 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
10616
10617 2014-05-28 Tom de Vries <tom@codesourcery.com>
10618
10619 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
10620 * lra.c (initialize_lra_reg_info_element): Add init of
10621 actual_call_used_reg_set field.
10622 (lra): Call lra_create_live_ranges before lra_inheritance for
10623 -fuse-caller-save.
10624 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
10625 -fuse-caller-save.
10626 * lra-constraints.c (need_for_call_save_p): Use
10627 actual_call_used_reg_set instead of call_used_reg_set for
10628 -fuse-caller-save.
10629 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
10630
10631 2014-05-28 Radovan Obradovic <robradovic@mips.com>
10632 Tom de Vries <tom@codesourcery.com>
10633
10634 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
10635 to gccoptlist.
10636 (@item -fuse-caller-save): New item.
10637
10638 2014-05-28 Radovan Obradovic <robradovic@mips.com>
10639 Tom de Vries <tom@codesourcery.com>
10640
10641 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
10642 OPT_fuse_caller_save.
10643
10644 2014-05-28 Radovan Obradovic <robradovic@mips.com>
10645 Tom de Vries <tom@codesourcery.com>
10646
10647 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
10648 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
10649 get_call_reg_set_usage.
10650 * resource.c (mark_set_resources, mark_target_live_regs): Use
10651 get_call_reg_set_usage.
10652 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
10653 field.
10654 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
10655 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
10656 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10657 * ira-build.c (ira_create_allocno): Init
10658 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10659 (create_cap_allocno, propagate_allocno_info)
10660 (propagate_some_info_from_allocno)
10661 (copy_info_to_removed_store_destinations): Handle
10662 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10663 * ira-costs.c (ira_tune_allocno_costs): Use
10664 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
10665
10666 2014-05-28 Radovan Obradovic <robradovic@mips.com>
10667 Tom de Vries <tom@codesourcery.com>
10668
10669 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
10670 and function_used_regs_valid fields.
10671 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
10672 find_all_hard_reg_sets.
10673 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
10674 (get_call_reg_set_usage): New function.
10675 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
10676 * regs.h (get_call_reg_set_usage): Declare.
10677
10678 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
10679
10680 PR libgcc/61152
10681 * config/dbx.h (License): Add Runtime Library Exception.
10682 * config/newlib-stdint.h (License): Same.
10683 * config/rtems.h (License): Same
10684 * config/initfini-array.h (License): Same
10685 * config/v850/v850.h (License): Same.
10686 * config/v850/v850-opts.h (License): Same
10687 * config/v850/rtems.h (License): Same.
10688
10689 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
10690
10691 PR target/61044
10692 * doc/extend.texi (Local Labels): Note that label differences are
10693 not supported for AVR.
10694
10695 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10696 Olivier Hainque <hainque@adacore.com>
10697
10698 * rtl.h (set_for_reg_notes): Declare.
10699 * emit-rtl.c (set_for_reg_notes): New function.
10700 (set_unique_reg_note): Use it.
10701 * optabs.c (add_equal_note): Likewise
10702
10703 2014-05-27 Andrew Pinski <apinski@cavium.com>
10704
10705 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
10706 Use <w> for the register in assembly template.
10707 (stack_protect_test): Use the mode of operands[0] for the result.
10708 (stack_protect_test_<mode>): Use <w> for the register
10709 in assembly template.
10710
10711 2014-05-27 DJ Delorie <dj@redhat.com>
10712
10713 * config/rx/rx.c (add_vector_labels): New.
10714 (rx_output_function_prologue): Call it.
10715 (rx_handle_func_attribute): Don't require empty arguments.
10716 (rx_handle_vector_attribute): New.
10717 (rx_attribute_table): Add "vector" attribute.
10718 * doc/extend.texi (interrupt, vector): Document new/changed
10719 RX-specific attributes.
10720
10721 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
10722
10723 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
10724
10725 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
10726 predicate to detect a negative quotient.
10727
10728 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
10729
10730 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
10731 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
10732 Add X - Y CMP 0 to X CMP Y transformation.
10733 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
10734
10735 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
10736
10737 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
10738 before printing.
10739
10740 2014-05-27 Steve Ellcey <sellcey@mips.com>
10741
10742 * config/mips/mips.c: Add include of cgraph.h.
10743
10744 2014-05-27 Richard Biener <rguenther@suse.de>
10745
10746 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
10747
10748 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
10749
10750 PR libgcc/61152
10751 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
10752 * config/arm/arm-cores.def (License): Same.
10753 * config/arm/arm-opts.h (License): Same.
10754 * config/arm/aout.h (License): Same.
10755 * config/arm/bpabi.h (License): Same.
10756 * config/arm/elf.h (License): Same.
10757 * config/arm/linux-elf.h (License): Same.
10758 * config/arm/linux-gas.h (License): Same.
10759 * config/arm/netbsd-elf.h (License): Same.
10760 * config/arm/uclinux-eabi.h (License): Same.
10761 * config/arm/uclinux-elf.h (License): Same.
10762 * config/arm/vxworks.h (License): Same.
10763
10764 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10765
10766 * config/arm/neon.md (neon_bswap<mode>): New pattern.
10767 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
10768 (arm_init_neon_builtins): Handle NEON_BSWAP.
10769 Define required type nodes.
10770 (arm_expand_neon_builtin): Handle NEON_BSWAP.
10771 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
10772 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
10773 * config/arm/iterators.md (VDQHSD): New mode iterator.
10774
10775 2014-05-27 Richard Biener <rguenther@suse.de>
10776
10777 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
10778 Try using literal operands when comparing value-ranges failed.
10779
10780 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
10781
10782 * ira.c (commutative_operand): Adjust for change to recog_data.
10783 [Missing from previous commit.]
10784
10785 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
10786
10787 * system.h (TEST_BIT): New macro.
10788 * recog.h (alternative_mask): New type.
10789 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
10790 (recog_data_d): Replace alternative_enabled_p array with
10791 enabled_alternatives.
10792 (target_recog): New structure.
10793 (default_target_recog, this_target_recog): Declare.
10794 (get_enabled_alternatives, recog_init): Likewise.
10795 * recog.c (default_target_recog, this_target_recog): New variables.
10796 (get_enabled_alternatives): New function.
10797 (extract_insn): Use it.
10798 (recog_init): New function.
10799 (preprocess_constraints, constrain_operands): Adjust for change to
10800 recog_data.
10801 * postreload.c (reload_cse_simplify_operands): Likewise.
10802 * reload.c (find_reloads): Likewise.
10803 * ira-costs.c (record_reg_classes): Likewise.
10804 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
10805 all alternatives after a disabled one would be skipped.
10806 (ira_implicitly_set_insn_hard_regs): Likewise.
10807 * ira.c (ira_setup_alts): Adjust for change to recog_data.
10808 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
10809 with enabled_alternatives.
10810 * lra.c (free_insn_recog_data): Update accordingly.
10811 (lra_update_insn_recog_data): Likewise.
10812 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
10813 * lra-constraints.c (process_alt_operands): Likewise. Handle
10814 only_alternative as part of the enabled mask.
10815 * target-globals.h (this_target_recog): Declare.
10816 (target_globals): Add a recog field.
10817 (restore_target_globals): Restore this_target_recog.
10818 * target-globals.c: Include recog.h.
10819 (default_target_globals): Initialize recog field.
10820 (save_target_globals): Likewise.
10821 * reginfo.c (reinit_regs): Call recog_init.
10822 * toplev.c (backend_init_target): Likewise.
10823
10824 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
10825
10826 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
10827 rather than any named insn's code.
10828
10829 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
10830
10831 PR libgcc/61152
10832 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
10833 * config/arm/arm-cores.def (License): Same.
10834
10835 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
10836
10837 * tree.h (decl_comdat_group): Declare.
10838 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
10839 * tree.c (decl_comdat_group): Here.
10840
10841 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
10842
10843 PR rtl-optimization/61222
10844 * combine.c (simplify_shift_const_1): When moving a PLUS outside
10845 the shift, truncate the PLUS operand to the result mode.
10846
10847 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
10848
10849 PR target/61271
10850 * config/i386/i386.c (ix86_rtx_costs)
10851 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
10852 Fix condition.
10853
10854 2014-05-26 Martin Jambor <mjambor@suse.cz>
10855
10856 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
10857 subreg uses.
10858
10859 2014-05-26 Richard Biener <rguenther@suse.de>
10860
10861 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
10862 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
10863 Provide specializations.
10864 (wi::int_traits <HOST_WIDE_INT>,
10865 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
10866
10867 2014-05-26 Alan Modra <amodra@gmail.com>
10868
10869 PR target/61098
10870 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
10871 params and return a bool. Remove dead code. Update comment.
10872 Assert we have a const_int source. Remove bogus code from
10873 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
10874 handling of constants > 2G and reg_equal note, from..
10875 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
10876 return value. Update comment. If we can, use a new pseudo
10877 for intermediate calculations.
10878 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
10879 prototype.
10880 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
10881 call to rs6000_emit_set_const in splitter.
10882 (movdi_internal64+2, +3): Likewise.
10883
10884 2014-05-26 Richard Biener <rguenther@suse.de>
10885
10886 * system.h: Define __STDC_FORMAT_MACROS before
10887 including inttypes.h.
10888 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
10889 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
10890 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
10891 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
10892 HOST_WIDEST_INT_C): Remove.
10893 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
10894 if C99 inttypes.h is not available.
10895 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
10896 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
10897 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
10898 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
10899 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
10900 (struct output_info): Likewise.
10901 (print_statistics): Adjust.
10902 (dump_bitmap_statistics): Likewise.
10903 * bt-load.c (migrate_btr_defs): Print with PRId64.
10904 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
10905 (MAX_SAFE_MULTIPLIER): Adjust.
10906 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
10907 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
10908 dump_cgraph_node): Likewise.
10909 * final.c (dump_basic_block_info): Likewise.
10910 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
10911 * gcov.c (format_gcov): Likewise.
10912 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
10913 for calculation.
10914 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
10915 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
10916 (inline_small_functions, dump_overall_stats, dump_inline_stats):
10917 Use PRId64 for dumping.
10918 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
10919 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
10920 (add_allocno_hard_regs): Adjust.
10921 * loop-doloop.c (doloop_modify): Print using PRId64.
10922 * loop-iv.c (inverse): Compute in uint64_t.
10923 (determine_max_iter, iv_number_of_iterations): Likewise.
10924 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
10925 Print using PRId64.
10926 * lto-streamer-out.c (write_symbol): Use uint64_t.
10927 * mcf.c (CAP_INFINITY): Use int64_t maximum.
10928 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
10929 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
10930 * modulo-sched.c (const_iteration_count): Use int64_t.
10931 (sms_schedule): Dump using PRId64.
10932 * predict.c (dump_prediction): Likewise.
10933 * pretty-print.h (pp_widest_integer): Remove.
10934 * profile.c (get_working_sets, is_edge_inconsistent,
10935 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
10936 * tree-pretty-print.c (pp_double_int): Remove case handling
10937 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
10938 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
10939 and adjust users.
10940 (pass_optimize_bswap::execute): Remove restriction on hosts.
10941 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
10942 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
10943 * tree.c (widest_int_cst_value): Remove.
10944 * tree.h (widest_int_cst_value): Likewise.
10945 * value-prof.c (dump_histogram_value): Print using PRId64.
10946 * gengtype.c (main): Also inject int64_t.
10947 * ggc-page.c (struct max_alignment): Use int64_t.
10948 * alloc-pool.c (struct allocation_object_def): Likewise.
10949 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
10950 for computation.
10951 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
10952 * doc/tm.texi: Regenerated.
10953 * gengtype-lex.l (IWORD): Handle [u]int64_t.
10954 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
10955 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
10956 mmix_output_register_setting): Use [u]int64_t in prototypes.
10957 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
10958 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
10959 mmix_output_octa, mmix_output_shifted_value): Adjust.
10960 (mmix_intval): Adjust. Remove unreachable case.
10961 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
10962
10963 2014-05-26 Richard Biener <rguenther@suse.de>
10964
10965 * configure.ac: Drop __int64 type check. Insist that we
10966 found uint64_t and int64_t.
10967 * hwint.h (HOST_BITS_PER___INT64): Remove.
10968 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
10969 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
10970 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
10971 (HOST_WIDEST_FAST_INT): Remove __int64 case.
10972 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
10973 for dst_q_src_df_rms_cdt.
10974 * configure: Regenerate.
10975 * config.in: Likewise.
10976
10977 2014-05-26 Michael Tautschnig <mt@debian.org>
10978
10979 PR target/61249
10980 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
10981 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
10982
10983 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10984
10985 PR rtl-optimization/61278
10986 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
10987
10988 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10989
10990 PR rtl-optimization/61220
10991 Part of PR rtl-optimization/61225
10992 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
10993 insn; skip split_edge for a block with only one successor.
10994
10995 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10996
10997 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
10998 for variables.
10999
11000 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11001
11002 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
11003 (update_vtable_references): New function.
11004 (function_and_variable_visibility): Rewrite also vtable initializers.
11005 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
11006
11007 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11008
11009 * ggc.h (ggc_grow): New function.
11010 * ggc-none.c (ggc_grow): New function.
11011 * ggc-page.c (ggc_grow): Likewise.
11012
11013 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11014
11015 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
11016 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
11017 comdat_can_be_unshared_p, cgraph_externally_visible_p,
11018 varpool_externally_visible_p, can_replace_by_local_alias,
11019 update_visibility_by_resolution_info, function_and_variable_visibility,
11020 pass_data_ipa_function_and_variable_visibility,
11021 make_pass_ipa_function_and_variable_visibility,
11022 whole_program_function_and_variable_visibility,
11023 pass_data_ipa_whole_program_visibility,
11024 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
11025 * cgraph.h (cgraph_local_node_p): Declare.
11026 * ipa-visibility.c: New file.
11027 * Makefile.in (OBJS): Add ipa-visiblity.o
11028
11029 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11030
11031 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
11032 that var decl is available.
11033
11034 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11035
11036 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
11037 symtab_node pointer.
11038 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
11039 (find_decls_types_r): Do not walk COMDAT_GROUP.
11040 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
11041 * varasm.c (make_decl_one_only): Use set_comdat_group;
11042 create node if needed.
11043 * ipa-inline-transform.c (save_inline_function_body): Update
11044 way we decl->symtab mapping.
11045 * symtab.c (symtab_hash, hash_node, eq_node
11046 symtab_insert_node_to_hashtable): Remove.
11047 (symtab_register_node): Update.
11048 (symtab_unregister_node): Update.
11049 (symtab_get_node): Reimplement as inline function.
11050 (symtab_add_to_same_comdat_group): Update.
11051 (symtab_dissolve_same_comdat_group_list): Update.
11052 (dump_symtab_base): Update.
11053 (verify_symtab_base): Update.
11054 (symtab_make_decl_local): Update.
11055 (fixup_same_cpp_alias_visibility): Update.
11056 (symtab_nonoverwritable_alias): Update.
11057 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
11058 * ipa.c (update_visibility_by_resolution_info): UPdate.
11059 * bb-reorder.c: Include cgraph.h
11060 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
11061 with comdat groups.
11062 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
11063 * cgraph.c (cgraph_get_create_node): Update.
11064 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
11065 and comdat_group_.
11066 (symtab_get_node): Make inline.
11067 (symtab_insert_node_to_hashtable): Remove.
11068 (symtab_can_be_discarded): Update.
11069 (decl_comdat_group): New function.
11070 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
11071 Update.
11072 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
11073 comdat group name.
11074 (read_comdat_group): New function.
11075 (input_node, input_varpool_node): Use it.
11076 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
11077 comdat groups.
11078 * mips.c (mips_start_unique_function): Likewise.
11079 (ix86_code_end): Likewise.
11080 (rs6000_code_end): Likweise.
11081 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
11082
11083 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11084
11085 * gengtype-state.c (fatal_reading_state): Bring offline.
11086 * optabs.c (widening_optab_handler): Bring offline.
11087 * optabs.h (widening_optab_handler): Likewise.
11088 * final.c (get_attr_length_1): Likewise.
11089
11090 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11091
11092 * sched-int.h (sd_iterator_cond): Manually tail recurse.
11093
11094 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11095
11096 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
11097 (ppc440-compare): Include shift with dot.
11098 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
11099 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
11100 without dot.
11101 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
11102 without dot.
11103 (e6500_sfx2): Include it.
11104 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
11105 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
11106 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
11107 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
11108 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
11109 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
11110 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
11111 *lshiftrt_internal1le, *lshiftrt_internal1be,
11112 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
11113 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
11114 *rotldi3_internal10le, *rotldi3_internal10be,
11115 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
11116 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
11117 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
11118 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
11119 define_insns): Use type "shift" in the appropriate alternatives.
11120
11121 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11122
11123 * config/rs6000/rs6000.md (type): Add "logical". Delete
11124 "fast_compare".
11125 (dot): Adjust comment.
11126 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
11127 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
11128 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
11129 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
11130 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
11131 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
11132 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
11133 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
11134
11135 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
11136 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
11137 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
11138 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
11139 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
11140 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
11141 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
11142 * config/rs6000/8540.md (ppc8540_su): Adjust.
11143 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
11144 cell-cmp-microcoded): Adjust.
11145 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
11146 * config/rs6000/e500mc.md (e500mc_su): Adjust.
11147 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
11148 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
11149 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
11150 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
11151 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
11152 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
11153 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
11154 Adjust.
11155 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
11156 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
11157 Adjust. Adjust comment.
11158 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
11159 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
11160
11161 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11162
11163 * config/rs6000/rs6000.md (type): Add "add".
11164 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
11165 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
11166 define_insns): Use it.
11167 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
11168
11169 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
11170 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
11171 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
11172 * config/rs6000/601.md (ppc601-integer): Adjust.
11173 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
11174 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
11175 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
11176 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
11177 * config/rs6000/8540.md (ppc8540_su): Adjust.
11178 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
11179 cell-cmp-microcoded): Adjust.
11180 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
11181 * config/rs6000/e500mc.md (e500mc_su): Adjust.
11182 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
11183 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
11184 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
11185 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
11186 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
11187 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
11188 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
11189 Adjust.
11190 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
11191 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
11192 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
11193 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
11194
11195 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11196
11197 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
11198 "delayed_compare", "var_delayed_compare".
11199 (var_shift): New attribute.
11200 (cell_micro): Adjust.
11201 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
11202 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
11203 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
11204 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11205 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11206 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11207 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11208 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
11209 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
11210 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
11211 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
11212 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
11213 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
11214 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
11215 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
11216 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
11217 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
11218 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
11219 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
11220 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
11221 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
11222 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
11223 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
11224 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11225 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
11226
11227 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
11228 * config/rs6000/440.md (ppc440-integer): Adjust.
11229 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
11230 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
11231 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
11232 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
11233 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
11234 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
11235 * config/rs6000/8540.md (ppc8540_su): Adjust.
11236 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
11237 cell-cmp-microcoded): Adjust.
11238 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
11239 * config/rs6000/e500mc.md (e500mc_su): Adjust.
11240 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
11241 e500mc64_delayed): Adjust.
11242 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
11243 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
11244 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
11245 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
11246 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
11247 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
11248 power6-delayed-compare, power6-var-delayed-compare): Adjust.
11249 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
11250 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
11251 Adjust comment.
11252 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
11253 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
11254
11255 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11256
11257 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
11258 (bits): New mode_attr.
11259 (idiv_ldiv): Delete mode_attr.
11260 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
11261 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11262 rs6000_adjust_priority, is_nonpipeline_insn,
11263 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
11264
11265 * config/rs6000/40x.md (ppc403-idiv): Adjust.
11266 * config/rs6000/440.md (ppc440-idiv): Adjust.
11267 * config/rs6000/476.md (ppc476-idiv): Adjust.
11268 * config/rs6000/601.md (ppc601-idiv): Adjust.
11269 * config/rs6000/603.md (ppc603-idiv): Adjust.
11270 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
11271 ppc620-ldiv): Adjust.
11272 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
11273 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
11274 * config/rs6000/8540.md (ppc8540_divide): Adjust.
11275 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
11276 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
11277 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
11278 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
11279 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
11280 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
11281 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
11282 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
11283 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
11284 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
11285 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
11286 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
11287 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
11288 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
11289 * config/rs6000/titan.md (titan_fxu_div): Adjust.
11290
11291 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11292
11293 * config/rs6000/rs6000.md (type): Delete "insert_word",
11294 "insert_dword". Add "insert".
11295 (size): Update comment.
11296 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11297 insn_must_be_first_in_group): Adjust.
11298 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
11299 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
11300 *insvsi_internal6, insvdi_internal): Adjust.
11301
11302 * config/rs6000/40x.md (ppc403-integer): Adjust.
11303 * config/rs6000/440.md (ppc440-integer): Adjust.
11304 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
11305 * config/rs6000/601.md (ppc601-integer): Adjust.
11306 * config/rs6000/603.md (ppc603-integer): Adjust.
11307 * config/rs6000/6xx.md (ppc604-integer): Adjust.
11308 * config/rs6000/7450.md (ppc7450-integer): Adjust.
11309 * config/rs6000/7xx.md (ppc750-integer): Adjust.
11310 * config/rs6000/8540.md (ppc8540_su): Adjust.
11311 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
11312 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
11313 * config/rs6000/e500mc.md (e500mc_su): Adjust.
11314 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
11315 * config/rs6000/e5500.md (e5500_sfx): Adjust.
11316 * config/rs6000/e6500.md (e6500_sfx): Adjust.
11317 * config/rs6000/mpc.md (mpccore-integer): Adjust.
11318 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
11319 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
11320 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
11321 * config/rs6000/power7.md (power7-integer): Adjust.
11322 * config/rs6000/power8.md (power8-1cyc): Adjust.
11323 * config/rs6000/rs64.md (rs64a-integer): Adjust.
11324 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
11325
11326 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11327
11328 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
11329 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
11330 (size): New attribute.
11331 (dot): New attribute.
11332 (cell_micro): Adjust.
11333 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
11334 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
11335 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
11336 umuldi3_highpart): Adjust.
11337 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11338 rs6000_adjust_priority, is_nonpipeline_insn,
11339 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
11340
11341 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
11342 ppc405-imul3): Adjust.
11343 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
11344 * config/rs6000/476.md (ppc476-imul): Adjust.
11345 * config/rs6000/601.md (ppc601-imul): Adjust.
11346 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
11347 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
11348 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
11349 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
11350 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
11351 Adjust.
11352 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
11353 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
11354 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
11355 cell-imul): Adjust.
11356 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
11357 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
11358 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
11359 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
11360 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
11361 * config/rs6000/mpc.md (mpccore-imul): Adjust.
11362 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
11363 power4-lmul, power4-imul, power4-imul3): Adjust.
11364 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
11365 power5-lmul, power5-imul, power5-imul3): Adjust.
11366 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
11367 power6-lmul, power6-imul, power6-imul3): Adjust.
11368 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
11369 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
11370
11371 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
11372 rs64a-lmul): Adjust.
11373 * config/rs6000/titan.md (titan_imul): Adjust.
11374
11375 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11376
11377 * config/rs6000/rs6000.md (type): Add new value "halfmul".
11378 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
11379 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
11380 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
11381 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
11382 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
11383 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
11384 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
11385 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
11386 * config/rs6000/titan.md: Delete nonsensical comment.
11387 (titan_imul): Add type imul3.
11388 (titan_mulhw): Remove type imul3; add type halfmul.
11389
11390 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11391
11392 * config/rs6000/rs6000.md (type): Reorder, reformat.
11393
11394 2014-05-23 Martin Jambor <mjambor@suse.cz>
11395
11396 PR tree-optimization/53787
11397 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
11398 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
11399 analysis_done, update all uses.
11400 * ipa-prop.c: Include domwalk.h
11401 (param_analysis_info): Removed.
11402 (param_aa_status): New type.
11403 (ipa_bb_info): Likewise.
11404 (func_body_info): Likewise.
11405 (ipa_get_bb_info): New function.
11406 (aa_overwalked): Likewise.
11407 (find_dominating_aa_status): Likewise.
11408 (parm_bb_aa_status_for_bb): Likewise.
11409 (parm_preserved_before_stmt_p): Changed to use new param AA info.
11410 (load_from_unmodified_param): Accept func_body_info as a parameter
11411 instead of parms_ainfo.
11412 (parm_ref_data_preserved_p): Changed to use new param AA info.
11413 (parm_ref_data_pass_through_p): Likewise.
11414 (ipa_load_from_parm_agg_1): Likewise. Update callers.
11415 (compute_complex_assign_jump_func): Changed to use new param AA info.
11416 (compute_complex_ancestor_jump_func): Likewise.
11417 (ipa_compute_jump_functions_for_edge): Likewise.
11418 (ipa_compute_jump_functions): Removed.
11419 (ipa_compute_jump_functions_for_bb): New function.
11420 (ipa_analyze_indirect_call_uses): Likewise, moved variable
11421 declarations down.
11422 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
11423 and info, moved variable declarations down.
11424 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
11425 node and info.
11426 (ipa_analyze_stmt_uses): Likewise.
11427 (ipa_analyze_params_uses): Removed.
11428 (ipa_analyze_params_uses_in_bb): New function.
11429 (ipa_analyze_controlled_uses): Likewise.
11430 (free_ipa_bb_info): Likewise.
11431 (analysis_dom_walker): New class.
11432 (ipa_analyze_node): Handle node-specific forbidden analysis,
11433 initialize and free func_body_info, use dominator walker.
11434 (ipcp_modif_dom_walker): New class.
11435 (ipcp_transform_function): Create and free func_body_info, use
11436 ipcp_modif_dom_walker, moved a lot of functionality there.
11437
11438 2014-05-23 Marek Polacek <polacek@redhat.com>
11439 Jakub Jelinek <jakub@redhat.com>
11440
11441 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
11442 * gcc.c (sanitize_spec_function): Likewise.
11443 * convert.c (convert_to_integer): Include "ubsan.h". Add
11444 floating-point to integer instrumentation.
11445 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
11446 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
11447 SANITIZE_NONDEFAULT.
11448 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
11449 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
11450 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
11451 * ubsan.c: Include "realmpfr.h" and "dfp.h".
11452 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
11453 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
11454 float/double/long double.
11455 (ubsan_instrument_float_cast): New function.
11456 * ubsan.h (ubsan_instrument_float_cast): Declare.
11457
11458 2014-05-23 Jiong Wang <jiong.wang@arm.com>
11459
11460 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
11461 predicate.
11462 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
11463 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
11464 Adjust for tailcalling through registers.
11465 * config/aarch64/aarch64.h (enum reg_class): New caller save
11466 register class.
11467 (REG_CLASS_NAMES): Likewise.
11468 (REG_CLASS_CONTENTS): Likewise.
11469 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
11470 Allow tailcalling without decls.
11471
11472 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
11473
11474 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
11475 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
11476
11477 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
11478 gsi, and variables v_* to v*.
11479
11480 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
11481
11482 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
11483
11484 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
11485
11486 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
11487 * omp-low.c: Update accordingly.
11488
11489 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
11490 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
11491 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
11492 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
11493 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
11494 GF_OMP_TARGET_KIND_UPDATE.
11495
11496 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
11497 Explicitly enumerate the expected region types.
11498
11499 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
11500
11501 PR other/56955
11502 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
11503 documentation; the old documentation didn't clearly state the
11504 constraints on the contents of the pointed-to storage.
11505
11506 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11507
11508 Fix bootstrap error on ia64
11509 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
11510 Return default value.
11511
11512 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
11513
11514 PR tree-optimization/54733
11515 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
11516 (CMPNOP): Define.
11517 (find_bswap_or_nop_load): New.
11518 (find_bswap_1): Renamed to ...
11519 (find_bswap_or_nop_1): This. Also add support for memory source.
11520 (find_bswap): Renamed to ...
11521 (find_bswap_or_nop): This. Also add support for memory source and
11522 detection of bitwise operations equivalent to load in target
11523 endianness.
11524 (execute_optimize_bswap): Likewise. Also move its leading comment back
11525 in place and split statement transformation into ...
11526 (bswap_replace): This.
11527
11528 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
11529
11530 PR rtl-optimization/61215
11531 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
11532 simplify_gen_subreg until final substitution.
11533
11534 2014-05-23 Alan Modra <amodra@gmail.com>
11535
11536 PR target/61231
11537 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
11538 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
11539 Use "Y" constraint rather than "m".
11540
11541 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11542
11543 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
11544 define.
11545 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
11546 New function declaration.
11547 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
11548 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
11549 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
11550 (aarch64_init_builtins) : Initialize builtins
11551 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
11552 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
11553 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
11554 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
11555 and __builtins_aarch64_set_fpsr.
11556 (aarch64_atomic_assign_expand_fenv): New function.
11557 * config/aarch64/aarch64.md (set_fpcr): New pattern.
11558 (get_fpcr) : Likewise.
11559 (set_fpsr) : Likewise.
11560 (get_fpsr) : Likewise.
11561 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
11562 and UNSPECV_SET_FPSR.
11563 * doc/extend.texi (AARCH64 Built-in Functions) : Document
11564 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
11565 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
11566
11567 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
11568
11569 PR rtl-optimization/60969
11570 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
11571 constraints. Set up mem cost for NO_REGS case.
11572
11573 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
11574
11575 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
11576
11577 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
11578
11579 * config/darwin.c: Include "lto-section-names.h".
11580 (LTO_SEGMENT_NAME): Don't define.
11581 * config/i386/winnt.c: Include "lto-section-names.h".
11582 * lto-streamer.c: Include "lto-section-names.h".
11583 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
11584 * lto-wrapper.c: Include "lto-section-names.h".
11585 (LTO_SECTION_NAME_PREFIX): Don't define.
11586 * lto-section-names.h: New file.
11587 * cgraphunit.c: Include "lto-section-names.h".
11588
11589 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
11590
11591 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
11592
11593 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
11594
11595 PR target/61208
11596 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
11597
11598 2014-05-22 Nick Clifton <nickc@redhat.com>
11599
11600 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
11601
11602 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
11603
11604 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
11605 -> (T)A transformation to integer types.
11606
11607 2014-05-22 Teresa Johnson <tejohnson@google.com>
11608
11609 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
11610 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
11611 (gcov_rewrite): Use gcov_nonruntime_assert.
11612 (gcov_open): Ditto.
11613 (gcov_write_words): Ditto.
11614 (gcov_write_length): Ditto.
11615 (gcov_read_words): Use gcov_nonruntime_assert, and remove
11616 gcc_assert from IN_LIBGCOV code.
11617 (gcov_read_summary): Use gcov_error to flag profile corruption.
11618 (gcov_sync): Use gcov_nonruntime_assert.
11619 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
11620 (gcov_histo_index): Use gcov_nonruntime_assert.
11621 (static void gcov_histogram_merge): Ditto.
11622 (compute_working_sets): Ditto.
11623 * gcov-io.h (gcov_nonruntime_assert): Define.
11624 (gcov_error): Define for !IN_LIBGCOV
11625
11626 2014-05-22 Richard Biener <rguenther@suse.de>
11627
11628 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
11629 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
11630 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
11631 and deallocation site.
11632 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11633 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
11634 passing through the incoming points-to set.
11635 (handle_lhs_call): Use flags argument instead of recomputing it.
11636 (find_func_aliases_for_call): Call handle_lhs_call with proper
11637 call return flags.
11638
11639 2014-05-22 Jakub Jelinek <jakub@redhat.com>
11640
11641 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
11642 all padding bits in REAL_VALUE_TYPE are cleared.
11643
11644 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11645
11646 Cleanup and improve multipass_dfa_lookahead_guard
11647 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
11648 (core2i7_first_cycle_multipass_begin,)
11649 (core2i7_first_cycle_multipass_issue,)
11650 (core2i7_first_cycle_multipass_backtrack): Update signature.
11651 * config/ia64/ia64.c
11652 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
11653 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
11654 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
11655 hook definition.
11656 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
11657 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
11658 values.
11659 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
11660 return values.
11661 * doc/tm.texi: Regenerate.
11662 * doc/tm.texi.in
11663 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
11664 * haifa-sched.c (ready_try): Make signed to allow negative values.
11665 (rebug_ready_list_1): Update.
11666 (choose_ready): Simplify.
11667 (sched_extend_ready_list): Update.
11668
11669 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11670
11671 Remove IA64 speculation tweaking flags
11672 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
11673 speculation tuning flags.
11674 (msched-prefer-non-data-spec-insns,)
11675 (msched-prefer-non-control-spec-insns): Obsolete options.
11676 * haifa-sched.c (choose_ready): Remove handling of
11677 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
11678 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
11679 and PREFER_NON_DATA_SPEC.
11680 * sel-sched.c (process_spec_exprs): Remove handling of
11681 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
11682
11683 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11684
11685 Improve scheduling debug output
11686 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
11687 (advance_one_cycle): Update.
11688 (schedule_insn, queue_to_ready): Add debug printouts.
11689 (debug_ready_list_1): New static function.
11690 (debug_ready_list): Update.
11691 (max_issue): Add debug printouts.
11692 (dump_insn_stream): New static function.
11693 (schedule_block): Use it. Also better indent printouts.
11694
11695 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11696
11697 Fix sched_insn debug counter
11698 * haifa-sched.c (schedule_insn): Update.
11699 (struct haifa_saved_data): Add nonscheduled_insns_begin.
11700 (save_backtrack_point, restore_backtrack_point): Update.
11701 (first_nonscheduled_insn): New static function.
11702 (queue_to_ready, choose_ready): Use it.
11703 (schedule_block): Init nonscheduled_insns_begin.
11704 (sched_emit_insn): Update.
11705
11706
11707 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
11708
11709 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
11710 to GENERAL_REGS.
11711 (aarch64_secondary_reload) : LikeWise.
11712 (aarch64_class_max_nregs) : Remove CORE_REGS.
11713 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
11714 (REG_CLASS_NAMES) : Likewise.
11715 (REG_CLASS_CONTENTS) : LikeWise.
11716 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
11717
11718 2014-05-21 Guozhi Wei <carrot@google.com>
11719
11720 PR target/61202
11721 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
11722 constraint.
11723 (vqdmulhq_n_s16): Likewise.
11724
11725 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11726
11727 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
11728
11729 2014-05-21 Marek Polacek <polacek@redhat.com>
11730
11731 PR sanitizer/61272
11732 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
11733
11734 2014-05-21 Martin Jambor <mjambor@suse.cz>
11735
11736 * doc/invoke.texi (Optimize Options): Document parameters
11737 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
11738 ipa-cp-array-index-hint-bonus.
11739
11740 2014-05-21 Mark Wielaard <mjw@redhat.com>
11741
11742 PR debug/16063
11743 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
11744 version >= 3 or not strict DWARF.
11745 * langhooks.h (struct lang_hooks_for_types): Add
11746 enum_underlying_base_type.
11747 * langhooks.c (lhd_enum_underlying_base_type): New function.
11748 * gcc/langhooks.h (struct lang_hooks_for_types): Add
11749 enum_underlying_base_type.
11750 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
11751 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
11752 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
11753
11754 2014-05-21 Richard Biener <rguenther@suse.de>
11755
11756 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
11757
11758 2014-05-21 John Marino <gnugcc@marino.st>
11759
11760 * config.gcc (*-*-dragonfly*): New target.
11761 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
11762 * configure: Regenerate.
11763 * config/dragonfly-stdint.h: New.
11764 * config/dragonfly.h: New.
11765 * config/dragonfly.opt: New.
11766 * config/i386/dragonfly.h: New.
11767 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
11768
11769 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
11770
11771 * tree.def (VOID_CST): New.
11772 * tree-core.h (TI_VOID): New.
11773 * tree.h (void_node): New.
11774 * tree.c (tree_node_structure_for_code, tree_code_size)
11775 (iterative_hash_expr): Handle VOID_CST.
11776 (build_common_tree_nodes): Initialize void_node.
11777
11778 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
11779
11780 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
11781 functions.
11782 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
11783
11784 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
11785 more places.
11786
11787 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
11788 flag_reorder_blocks_and_partition.
11789 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
11790
11791 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
11792
11793 PR target/54236
11794 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
11795 constraints.
11796 (*addc_r_t): Add new insn_and_split.
11797
11798 2014-05-21 Jakub Jelinek <jakub@redhat.com>
11799
11800 PR middle-end/61252
11801 * omp-low.c (handle_simd_reference): New function.
11802 (lower_rec_input_clauses): Use it. Defer adding reference
11803 initialization even for reduction without placeholder if in simd,
11804 handle it properly later on.
11805
11806 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11807
11808 PR tree-optimization/60899
11809 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
11810 assume all static symbols will have definition wile parsing and
11811 check the do have definition later in compilation; check that
11812 variable referring symbol will be output before concluding that
11813 reference is safe; be conservative for referring local statics;
11814 be more precise about when comdat is output in other partition.
11815
11816 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11817
11818 PR bootstrap/60984
11819 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
11820 parameter.
11821 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
11822 (ipa_inline): Loop inline_to_all_callers until no more aliases
11823 are removed.
11824
11825 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11826
11827 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
11828 set writeonly flag only for vars actually written to.
11829
11830 2014-05-20 Dehao Chen <dehao@google.com>
11831
11832 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
11833 and callee count to get clone count.
11834 * tree-inline.c (expand_call_inline): Use callee count instead of bb
11835 count in copy_body.
11836
11837 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
11838
11839 PR rtl-optimization/61243
11840 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
11841
11842 2014-05-20 Xinliang David Li <davidxl@google.com>
11843
11844 * cgraphunit.c (walk_polymorphic_call_targets): Add
11845 dbgcnt and fopt-info support.
11846 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
11847 * ipa-devirt.c (ipa_devirt): Ditto.
11848 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
11849 * ipa.c (walk_polymorphic_call_targets): Ditto.
11850 * gimple-fold.c (fold_gimple_assign): Ditto.
11851 (gimple_fold_call): Ditto.
11852 * dbgcnt.def: New counter.
11853
11854 2014-05-20 DJ Delorie <dj@redhat.com>
11855
11856 * config/msp430/msp430.md (split): Don't allow subregs when
11857 splitting SImode adds.
11858 (andneghi): Fix subtraction logic.
11859 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
11860
11861 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11862
11863 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
11864 symbols.
11865 * except.c (switch_to_exception_section, resolve_unique_section,
11866 get_named_text_section, default_function_rodata_section,
11867 align_variable, get_block_for_decl, default_section_type_flags):
11868 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
11869 * symtab.c (symtab_add_to_same_comdat_group,
11870 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
11871 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
11872 Likewise.
11873 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
11874 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
11875 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
11876 (c6x_function_in_section_p): Likewise.
11877 * config/darwin.c (machopic_select_section): Likewise.
11878 * config/arm/arm.c (arm_function_in_section_p): Likewise.
11879 * config/mips/mips.c (mips_function_rodata_section): Likewise.
11880 * config/mep/mep.c (mep_select_section): LIkewise.
11881 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
11882
11883 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
11884
11885 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
11886 EH region of calls to pure functions that can throw an exception.
11887 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
11888 (copy_reference_ops_from_call): Also copy the EH region of the call if
11889 it can throw an exception.
11890
11891 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11892
11893 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
11894 nested VEC_SELECTs that are inverses of each other.
11895
11896 2014-05-20 Richard Biener <rguenther@suse.de>
11897
11898 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
11899 (extract_and_process_scc_for_name): not here.
11900 (cond_dom_walker::before_dom_children): Only process
11901 stmts that end the BB in interesting ways.
11902 (run_scc_vn): Mark param uses as visited.
11903
11904 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11905
11906 * config/arm/arm.md (arith_shiftsi): Do not predicate for
11907 arm_restrict_it.
11908
11909 2014-05-20 Nick Clifton <nickc@redhat.com>
11910
11911 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
11912 (msp430_gimplify_va_arg_expr): New function.
11913 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
11914
11915 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
11916 operand 0 in order to prevent confusion about the number of
11917 registers involved.
11918
11919 2014-05-20 Richard Biener <rguenther@suse.de>
11920
11921 PR tree-optimization/61221
11922 * tree-ssa-pre.c (el_to_update): Remove.
11923 (eliminate_dom_walker::before_dom_children): Handle released
11924 VDEFs by value-numbering them to the associated VUSE. Update
11925 stmt immediately for substituted call address.
11926 (eliminate): Remove delayed stmt updating code.
11927 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
11928 possibly late re-numbered vuses.
11929 (vn_reference_lookup_2): Adjust.
11930 (vn_reference_lookup_pieces): Likewise.
11931 (vn_reference_lookup): Likewise.
11932
11933 2014-05-20 Richard Biener <rguenther@suse.de>
11934
11935 * config.gcc: Remove need_64bit_hwint.
11936 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
11937 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
11938 it to be true.
11939 * config.in: Regenerate.
11940 * configure: Likewise.
11941
11942 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
11943
11944 * doc/extend.texi: Create Label Attributes section,
11945 move all label attributes into it and reference it.
11946
11947 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
11948
11949 * arm.c (thumb1_reorg): When scanning backwards skip anything
11950 that's not a proper insn.
11951
11952 2014-05-19 Richard Biener <rguenther@suse.de>
11953
11954 PR tree-optimization/61221
11955 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11956 Do nothing for unreachable blocks.
11957 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
11958 Improve unreachability detection.
11959
11960 2014-05-19 Richard Biener <rguenther@suse.de>
11961
11962 PR tree-optimization/61209
11963 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
11964
11965 2014-05-19 Nick Clifton <nickc@redhat.com>
11966
11967 * except.c (init_eh): Fix computation of builtin setjmp buffer
11968 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
11969
11970 2014-05-19 Richard Biener <rguenther@suse.de>
11971
11972 PR tree-optimization/61184
11973 * tree-vrp.c (is_negative_overflow_infinity): Use
11974 TREE_OVERFLOW_P and do that check first.
11975 (is_positive_overflow_infinity): Likewise.
11976 (is_overflow_infinity): Likewise.
11977 (vrp_operand_equal_p): Properly treat operands with
11978 differing overflow as not equal.
11979
11980 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
11981
11982 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
11983 shift simplification where it was intended.
11984
11985 2014-05-19 Christian Bruel <christian.bruel@st.com>
11986
11987 PR target/61195
11988 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
11989
11990 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
11991
11992 PR target/61084
11993 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
11994 than wide_int.
11995
11996 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
11997
11998 * reg-notes.def (CROSSING_JUMP): Likewise.
11999 * rtl.h (rtx_def): Update comment for jump flag.
12000 (CROSSING_JUMP_P): Define.
12001 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
12002 of a REG_CROSSING_JUMP note.
12003 * cfghooks.c (tidy_fallthru_edges): Likewise.
12004 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
12005 * emit-rtl.c (try_split): Likewise.
12006 * haifa-sched.c (sched_create_recovery_edges): Likewise.
12007 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
12008 * jump.c (redirect_jump_2): Likewise.
12009 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
12010 (relax_delay_slots): Likewise.
12011 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
12012 (bbit_di): Likewise.
12013 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
12014 * config/sh/sh.md (jump_compact): Likewise.
12015 * bb-reorder.c (rotate_loop): Likewise.
12016 (pass_duplicate_computed_gotos::execute): Likewise.
12017 (add_reg_crossing_jump_notes): Rename to...
12018 (update_crossing_jump_flags): ...this.
12019 (pass_partition_blocks::execute): Update accordingly.
12020
12021 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
12022
12023 * tree.h: Remove extraneous template <>.
12024
12025 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
12026
12027 * ipa.c (symtab_remove_unreachable_nodes): Remove
12028 symbol from comdat group if its body was eliminated.
12029 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
12030 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
12031 (symtab_unregister_node): ... this one.
12032 (verify_symtab_base): More strict checking of comdats.
12033 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
12034
12035 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
12036
12037 * tree-pass.h (make_pass_ipa_comdats): New pass.
12038 * timevar.def (TV_IPA_COMDATS): New timevar.
12039 * passes.def (pass_ipa_comdats): Add.
12040 * Makefile.in (OBJS): Add ipa-comdats.o
12041 * ipa-comdats.c: New file.
12042
12043 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
12044
12045 * ipa.c (update_visibility_by_resolution_info): New function.
12046 (function_and_variable_visibility): Use it.
12047
12048 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
12049
12050 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
12051 New functions.
12052 (FOR_EACH_DEFINED_SYMBOL): New macro.
12053 (varpool_first_static_initializer, varpool_next_static_initializer,
12054 varpool_first_defined_variable, varpool_next_defined_variable):
12055 Fix comments.
12056 (symtab_in_same_comdat_p): Correctly deal with inline functions.
12057
12058 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
12059
12060 * ggc-page.c (ggc_handle_finalizers): Add comment.
12061
12062 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
12063
12064 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
12065 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
12066 (ggc_internal_cleared_alloc): Likewise.
12067 * ggc-page.c (finalizer): New class.
12068 (vec_finalizer): Likewise.
12069 (globals::finalizers): New member.
12070 (globals::vec_finalizers): Likewise.
12071 (ggc_internal_alloc): Record the finalizer if any for the block being
12072 allocated.
12073 (ggc_handle_finalizers): New function.
12074 (ggc_collect): Call ggc_handle_finalizers.
12075 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
12076 finalizer.
12077 (ggc_internal_cleared_alloc): Likewise.
12078 (finalize): New function.
12079 (need_finalization_p): Likewise.
12080 (ggc_alloc): Install the type's destructor as the finalizer if it
12081 might do something.
12082 (ggc_cleared_alloc): Likewise.
12083 (ggc_vec_alloc): Likewise.
12084 (ggc_cleared_vec_alloc): Likewise.
12085
12086 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
12087
12088 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
12089
12090 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
12091
12092 * alias.c (record_alias_subset): Adjust.
12093 * bitmap.c (bitmap_element_allocate): Likewise.
12094 (bitmap_gc_alloc_stat): Likewise.
12095 * cfg.c (init_flow): Likewise.
12096 (alloc_block): Likewise.
12097 (unchecked_make_edge): Likewise.
12098 * cfgloop.c (alloc_loop): Likewise.
12099 (flow_loops_find): Likewise.
12100 (rescan_loop_exit): Likewise.
12101 * cfgrtl.c (init_rtl_bb_info): Likewise.
12102 * cgraph.c (insert_new_cgraph_node_version): Likewise.
12103 (cgraph_allocate_node): Likewise.
12104 (cgraph_create_edge_1): Likewise.
12105 (cgraph_allocate_init_indirect_info): Likewise.
12106 * cgraphclones.c (cgraph_clone_edge): Likewise.
12107 * cgraphunit.c (add_asm_node): Likewise.
12108 (init_lowered_empty_function): Likewise.
12109 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
12110 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
12111 (alpha_use_linkage): Likewise.
12112 * config/arc/arc.c (arc_init_machine_status): Likewise.
12113 * config/arm/arm.c (arm_init_machine_status): Likewise.
12114 * config/avr/avr.c (avr_init_machine_status): Likewise.
12115 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
12116 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
12117 * config/cris/cris.c (cris_init_machine_status): Likewise.
12118 * config/darwin.c (machopic_indirection_name): Likewise.
12119 (darwin_build_constant_cfstring): Likewise.
12120 (darwin_enter_string_into_cfstring_table): Likewise.
12121 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
12122 * config/frv/frv.c (frv_init_machine_status): Likewise.
12123 * config/i386/i386.c (get_dllimport_decl): Likewise.
12124 (ix86_init_machine_status): Likewise.
12125 (assign_386_stack_local): Likewise.
12126 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
12127 (i386_pe_maybe_record_exported_symbol): Likewise.
12128 (i386_pe_record_stub): Likewise.
12129 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
12130 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
12131 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
12132 (m32c_note_pragma_address): Likewise.
12133 * config/mep/mep.c (mep_init_machine_status): Likewise.
12134 (mep_note_pragma_flag): Likewise.
12135 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
12136 (mips16_local_alias): Likewise.
12137 (mips_init_machine_status): Likewise.
12138 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
12139 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
12140 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
12141 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
12142 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
12143 * config/pa/pa.c (pa_init_machine_status): Likewise.
12144 (pa_get_deferred_plabel): Likewise.
12145 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
12146 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
12147 (rs6000_init_machine_status): Likewise.
12148 (output_toc): Likewise.
12149 * config/s390/s390.c (s390_init_machine_status): Likewise.
12150 * config/score/score.c (score_output_external): Likewise.
12151 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
12152 * config/spu/spu.c (spu_init_machine_status): Likewise.
12153 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
12154 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
12155 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
12156 * coverage.c (coverage_end_function): Likewise.
12157 * dbxout.c (dbxout_init): Likewise.
12158 * doc/gty.texi: Don't mention variable_size attribute.
12159 * dwarf2cfi.c (new_cfi): Adjust.
12160 (new_cfi_row): Likewise.
12161 (copy_cfi_row): Likewise.
12162 (create_cie_data): Likewise.
12163 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
12164 (new_loc_descr): Likewise.
12165 (find_AT_string_in_table): Likewise.
12166 (add_addr_table_entry): Likewise.
12167 (new_die): Likewise.
12168 (add_var_loc_to_decl): Likewise.
12169 (clone_die): Likewise.
12170 (clone_as_declaration): Likewise.
12171 (break_out_comdat_types): Likewise.
12172 (new_loc_list): Likewise.
12173 (add_loc_descr_to_each): Likewise.
12174 (add_location_or_const_value_attribute): Likewise.
12175 (add_linkage_name): Likewise.
12176 (lookup_filename): Likewise.
12177 (dwarf2out_var_location): Likewise.
12178 (new_line_info_table): Likewise.
12179 (dwarf2out_init): Likewise.
12180 (mem_loc_descriptor): Likewise.
12181 (loc_descriptor): Likewise.
12182 (add_const_value_attribute): Likewise.
12183 (tree_add_const_value_attribute): Likewise.
12184 (comp_dir_string): Likewise.
12185 (dwarf2out_vms_debug_main_pointer): Likewise.
12186 (string_cst_pool_decl): Likewise.
12187 * emit-rtl.c (set_mem_attrs): Likewise.
12188 (get_reg_attrs): Likewise.
12189 (start_sequence): Likewise.
12190 (init_emit): Likewise.
12191 (init_emit_regs): Likewise.
12192 * except.c (init_eh_for_function): Likewise.
12193 (gen_eh_region): Likewise.
12194 (gen_eh_region_catch): Likewise.
12195 (gen_eh_landing_pad): Likewise.
12196 (add_call_site): Likewise.
12197 * function.c (add_frame_space): Likewise.
12198 (insert_temp_slot_address): Likewise.
12199 (assign_stack_temp_for_type): Likewise.
12200 (get_hard_reg_initial_val): Likewise.
12201 (allocate_struct_function): Likewise.
12202 (prepare_function_start): Likewise.
12203 (types_used_by_var_decl_insert): Likewise.
12204 * gengtype.c (variable_size_p): Remove function.
12205 (enum alloc_quantity): Remove enum.
12206 (write_typed_alloc_def): Remove function.
12207 (write_typed_struct_alloc_def): Likewise.
12208 (write_typed_typedef_alloc_def): Likewise.
12209 (write_typed_alloc_defns): Likewise.
12210 (main): Adjust.
12211 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
12212 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
12213 * ggc.h (ggc_alloc): new function.
12214 (ggc_cleared_alloc): Likewise.
12215 (ggc_vec_alloc): Template on type of vector element, and remove
12216 element size argument.
12217 (ggc_cleared_vec_alloc): Likewise.
12218 * gimple.c (gimple_build_omp_for): Adjust.
12219 (gimple_copy): Likewise.
12220 * ipa-cp.c (get_replacement_map): Likewise.
12221 (find_aggregate_values_for_callers_subset): Likewise.
12222 (known_aggs_to_agg_replacement_list): Likewise.
12223 * ipa-devirt.c (get_odr_type): Likewise.
12224 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
12225 (read_agg_replacement_chain): Likewise.
12226 * loop-iv.c (get_simple_loop_desc): Likewise.
12227 * lto-cgraph.c (input_node_opt_summary): Likewise.
12228 * lto-section-in.c (lto_new_in_decl_state): Likewise.
12229 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
12230 (input_eh_region): Likewise.
12231 (input_eh_lp): Likewise.
12232 (input_cfg): Likewise.
12233 * optabs.c (set_optab_libfunc): Likewise.
12234 (init_tree_optimization_optabs): Likewise.
12235 (set_conv_libfunc): Likewise.
12236 * passes.c (do_per_function_toporder): Likewise.
12237 * rtl.h: Don't use variable_size gty attribute.
12238 * sese.c (if_region_set_false_region): Adjust.
12239 * stringpool.c (gt_pch_save_stringpool): Likewise.
12240 * target-globals.c (save_target_globals): Likewise.
12241 * toplev.c (general_init): Likewise.
12242 * trans-mem.c (record_tm_replacement): Likewise.
12243 (split_bb_make_tm_edge): Likewise.
12244 * tree-cfg.c (move_sese_region_to_fn): Likewise.
12245 * tree-data-ref.h (lambda_vector_new): Likewise.
12246 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
12247 * tree-iterator.c (tsi_link_before): Likewise.
12248 (tsi_link_after): Likewise.
12249 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
12250 * tree-ssa-loop-niter.c (record_estimate): Likewise.
12251 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
12252 * tree-ssa-operands.h: Don't use variable_size gty attribute.
12253 * tree-ssa.c (init_tree_ssa): Adjust.
12254 * tree-ssanames.c (set_range_info): Likewise.
12255 (get_ptr_info): Likewise.
12256 (duplicate_ssa_name_ptr_info): Likewise.
12257 (duplicate_ssa_name_range_info): Likewise.
12258 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
12259 (unpack_ts_fixed_cst_value_fields): Likewise.
12260 * tree.c (build_fixed): Likewise.
12261 (build_real): Likewise.
12262 (build_string): Likewise.
12263 (decl_priority_info): Likewise.
12264 (decl_debug_expr_insert): Likewise.
12265 (decl_value_expr_insert): Likewise.
12266 (decl_debug_args_insert): Likewise.
12267 (type_hash_add): Likewise.
12268 (build_omp_clause): Likewise.
12269 * ubsan.c (decl_for_type_insert): Likewise.
12270 * varasm.c (get_unnamed_section): Likewise.
12271 (get_noswitch_section): Likewise.
12272 (get_section): Likewise.
12273 (get_block_for_section): Likewise.
12274 (create_block_symbol): Likewise.
12275 (build_constant_desc): Likewise.
12276 (create_constant_pool): Likewise.
12277 (force_const_mem): Likewise.
12278 (record_tm_clone_pair): Likewise.
12279 * varpool.c (varpool_create_empty_node): Likewise.
12280
12281 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
12282
12283 * dwarf2out.c (tree_add_const_value_attribute): Call
12284 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
12285 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
12286 instead of ggc_internal_<x>alloc_stat.
12287 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
12288 (ggc_realloc): Likewise.
12289 * ggc-none.c (ggc_internal_alloc): Likewise.
12290 (ggc_internal_cleared_alloc): Likewise.
12291 * ggc-page.c: Likewise.
12292 * ggc.h (ggc_internal_alloc_stat): Likewise.
12293 (ggc_internal_alloc): Remove macro.
12294 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
12295 (ggc_internal_cleared_alloc): Remove macro.
12296 (GGC_RESIZEVEC): Adjust.
12297 (ggc_resizevar): Remove macro.
12298 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
12299 (ggc_internal_cleared_vec_alloc_stat): Likewise.
12300 (ggc_internal_vec_cleared_alloc): Remove macro.
12301 (ggc_alloc_atomic_stat): Drop _stat suffix.
12302 (ggc_alloc_atomic): Remove macro.
12303 (ggc_alloc_cleared_atomic): Remove macro.
12304 (ggc_alloc_string_stat): Drop _stat suffix.
12305 (ggc_alloc_string): Remove macro.
12306 (ggc_alloc_rtx_def_stat): Adjust.
12307 (ggc_alloc_tree_node_stat): Likewise.
12308 (ggc_alloc_cleared_tree_node_stat): Likewise.
12309 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
12310 (ggc_alloc_cleared_simd_clone_stat): Likewise.
12311 * gimple.c (gimple_build_omp_for): Likewise.
12312 (gimple_copy): Likewise.
12313 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
12314 * toplev.c (realloc_for_line_map): Adjust.
12315 * tree-data-ref.h (lambda_vector_new): Likewise.
12316 * tree-phinodes.c (allocate_phi_node): Likewise.
12317 * tree.c (grow_tree_vec_stat): Likewise.
12318 * vec.h (va_gc::reserve): Adjust.
12319
12320 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
12321
12322 * config/microblaze/microblaze.c (break_handler): New Declaration.
12323 (microblaze_break_function_p,microblaze_is_break_handler): New.
12324 (compute_frame_size): Use microblaze_break_function_p.
12325 Add the test of break_handler.
12326 (microblaze_function_prologue) : Add the test of variable
12327 break_handler. Check the fnname by BREAK_HANDLER_NAME.
12328 (microblaze_function_epilogue) : Add the test of break_handler.
12329 (microblaze_globalize_label) : Add the test of break_handler.
12330 Check the name by BREAK_HANDLER_NAME.
12331
12332 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
12333
12334 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
12335 microblaze_is_break_handler test.
12336 (call_internal1,call_value_intern): Use microblaze_break_function_p.
12337 Use SYMBOL_REF_DECL.
12338
12339 * config/microblaze/microblaze-protos.h
12340 (microblaze_break_function_p,microblaze_is_break_handler):
12341 New Declaration.
12342
12343 * doc/extend.texi (MicroBlaze break_handler Functions): Document
12344 new MicroBlaze break_handler functions.
12345
12346 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
12347
12348 * doc/extend.texi (Size of an asm): Move node text according
12349 to its @menu entry position.
12350
12351 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
12352
12353 PR tree-optimization/61140
12354 PR tree-optimization/61150
12355 PR tree-optimization/61197
12356 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
12357
12358 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
12359
12360 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
12361
12362 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
12363
12364 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
12365 __SIZEOF_INT128__ is defined.
12366
12367 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
12368
12369 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
12370 (rs6000_delegitimize_address): Use it.
12371
12372 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
12373
12374 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
12375 inplace argument. Store the new address in the original MEM when true.
12376 * emit-rtl.c (change_address_1): Likewise.
12377 (adjust_address_1, adjust_automodify_address_1, offset_address):
12378 Update accordingly.
12379 * rtl.h (plus_constant): Add an inplace argument.
12380 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
12381 when true. Avoid generating (plus X (const_int 0)).
12382 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
12383 in-place. Pass true to plus_constant.
12384 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
12385
12386 2014-05-16 Dehao Chen <dehao@google.com>
12387
12388 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
12389
12390 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
12391
12392 PR target/54089
12393 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
12394 patterns.
12395 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
12396
12397 2014-05-16 Dehao Chen <dehao@google.com>
12398
12399 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
12400 optimize_function_for_size_p.
12401 * regs.h (REG_FREQ_FROM_BB): Likewise.
12402
12403 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
12404
12405 PR target/51244
12406 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
12407 negt_reg_operand cases.
12408 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
12409 predicate.
12410 * config/sh/predicates.md (cbranch_treg_value): Simplify.
12411
12412 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
12413
12414 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
12415 target variants.
12416
12417 2014-05-16 David Malcolm <dmalcolm@redhat.com>
12418
12419 Revert:
12420 2014-04-29 David Malcolm <dmalcolm@redhat.com>
12421
12422 * tree-cfg.c (dump_function_to_file): Dump the return type of
12423 functions, in a line to itself before the function body, mimicking
12424 the layout of a C function.
12425
12426 2014-05-16 Dehao Chen <dehao@google.com>
12427
12428 * cfghooks.c (make_forwarder_block): Use direct computation to
12429 get fall-through edge's count and frequency.
12430
12431 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
12432
12433 * config/arc/arc.c (arc_init): Fix typo in error message.
12434 * config/i386/i386.c (ix86_expand_builtin): Likewise.
12435 (split_stack_prologue_scratch_regno): Likewise.
12436 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
12437 word from error message.
12438
12439 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
12440
12441 * ira-costs.c: Fix typo in comment.
12442
12443 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
12444
12445 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
12446
12447 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
12448
12449 * varpool.c (dump_varpool_node): Dump write-only flag.
12450 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
12451 write-only flag.
12452 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
12453 write-only variables.
12454 * ipa.c (process_references): New function.
12455 (set_readonly_bit): New function.
12456 (set_writeonly_bit): New function.
12457 (clear_addressable_bit): New function.
12458 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
12459 fix handling of aliases.
12460 * cgraph.h (struct varpool_node): Add writeonly flag.
12461
12462 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
12463
12464 PR rtl-optimization/60969
12465 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
12466 Calculate costs for this case.
12467
12468 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
12469
12470 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
12471 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
12472
12473 2014-05-16 Richard Biener <rguenther@suse.de>
12474
12475 PR tree-optimization/61194
12476 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
12477 bool patterns ending in a COND_EXPR.
12478
12479 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12480
12481 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
12482
12483 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12484
12485 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
12486 where we were unable to cost an RTX.
12487
12488 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12489
12490 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
12491 HIGH, LO_SUM.
12492
12493 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12494 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12495
12496 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
12497
12498 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12499 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12500
12501 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
12502 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
12503
12504 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12505 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12506
12507 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
12508 operators.
12509
12510 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12511 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12512
12513 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
12514 DIV/MOD.
12515
12516 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12517 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12518
12519 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
12520 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
12521
12522 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12523 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12524
12525 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
12526 rotates and shifts.
12527
12528 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12529 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12530
12531 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
12532 ZERO_EXTEND and SIGN_EXTEND better.
12533
12534 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12535 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12536
12537 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
12538 logical operations.
12539
12540 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12541 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12542
12543 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
12544 costs when costing loads and stores to memory.
12545
12546 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12547 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
12548
12549 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
12550 for SET RTX.
12551
12552 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12553
12554 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
12555
12556 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12557 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12558
12559 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
12560 to...
12561 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
12562 well formed.
12563 (aarch64_rtx_mult_cost): New.
12564 (aarch64_rtx_costs): Use it, refactor as appropriate.
12565
12566 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12567 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12568
12569 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
12570 emit instructions, return number of instructions which would
12571 be emitted.
12572 (aarch64_add_constant): Update call to aarch64_build_constant.
12573 (aarch64_output_mi_thunk): Likewise.
12574 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
12575 a CONST_DOUBLE.
12576
12577 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12578
12579 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
12580 (TARGET_RTX_COSTS): Call it.
12581
12582 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12583
12584 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
12585 (cortexa57_vector_cost): Likewise.
12586 (cortexa57_tunings): Use them.
12587
12588 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12589
12590 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
12591 (cpu_addrcost_table): Use it.
12592 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
12593 (aarch64_address_cost): Rewrite using aarch64_classify_address,
12594 move it.
12595
12596 2014-05-16 Richard Biener <rguenther@suse.de>
12597
12598 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
12599 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
12600 (visit_phi): Ignore edges marked as not executable.
12601 (class cond_dom_walker): New.
12602 (cond_dom_walker::before_dom_children): Value-number
12603 control statements and mark successor edges as not
12604 executable if possible.
12605 (run_scc_vn): First walk all control statements in
12606 dominator order, marking edges as not executable.
12607 * tree-inline.c (copy_edges_for_bb): Be not confused
12608 about random edge flags.
12609
12610 2014-05-16 Richard Biener <rguenther@suse.de>
12611
12612 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
12613
12614 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
12615
12616 PR target/61193
12617 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
12618 (__TM_simple_begin): Use it.
12619 (__TM_begin): Likewise.
12620
12621 2014-05-15 Martin Jambor <mjambor@suse.cz>
12622
12623 PR ipa/61085
12624 * ipa-prop.c (update_indirect_edges_after_inlining): Check
12625 type_preserved flag when the indirect edge is polymorphic.
12626
12627 2014-05-15 Martin Jambor <mjambor@suse.cz>
12628
12629 PR tree-optimization/61090
12630 * tree-sra.c (sra_modify_expr): Pass the current gsi to
12631 build_ref_for_model.
12632
12633 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12634
12635 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
12636 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
12637
12638 2014-05-15 Jakub Jelinek <jakub@redhat.com>
12639
12640 PR tree-optimization/61158
12641 * fold-const.c (fold_binary_loc): If X is zero-extended and
12642 shiftc >= prec, make sure zerobits is all ones instead of
12643 invoking undefined behavior.
12644
12645 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12646
12647 * regcprop.h: New file.
12648 * regcprop.c (skip_debug_insn_p): New decl.
12649 (replace_oldest_value_reg): Check skip_debug_insn_p.
12650 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
12651 * shrink-wrap.c: Include regcprop.h.
12652 (prepare_shrink_wrap): Call
12653 copyprop_hardreg_forward_bb_without_debug_insn.
12654
12655 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12656
12657 * shrink-wrap.h: Update comment.
12658 * shrink-wrap.c: Update comment.
12659 (next_block_for_reg): Rename to live_edge_for_reg.
12660 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
12661 (move_insn_for_shrink_wrap): Split live_edge.
12662 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
12663
12664 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
12665
12666 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
12667 Delete.
12668 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
12669 * config/sparc/sparc.md (fptype_ut699): New attribute.
12670 (in_branch_delay): Return false if -mfix-ut699 is specified and
12671 fptype_ut699 is set to single.
12672 (truncdfsf2): Add fptype_ut699 attribute.
12673 (fix_truncdfsi2): Likewise.
12674 (floatsisf2): Change fptype attribute.
12675 (fix_truncsfsi2): Likewise.
12676 (negtf2_notv9): Delete.
12677 (negtf2_v9): Likewise.
12678 (negtf2_hq): New instruction.
12679 (negtf2): New instruction and splitter.
12680 (negdf2_notv9): Rewrite.
12681 (abstf2_notv9): Delete.
12682 (abstf2_hq_v9): Likewise.
12683 (abstf2_v9): Likewise.
12684 (abstf2_hq): New instruction.
12685 (abstf2): New instruction and splitter.
12686 (absdf2_notv9): Rewrite.
12687
12688 2014-05-14 Cary Coutant <ccoutant@google.com>
12689
12690 PR debug/61013
12691 * opts.c (common_handle_option): Don't special-case "-g".
12692 (set_debug_level): Default to at least level 2 with "-g".
12693
12694 2014-05-14 DJ Delorie <dj@redhat.com>
12695
12696 * config/msp430/msp430.c (msp430_builtin): Add
12697 MSP430_BUILTIN_DELAY_CYCLES.
12698 (msp430_init_builtins): Register void __delay_cycles(long long).
12699 (msp430_builtin_decl): Add it.
12700 (cg_magic_constant): New.
12701 (msp430_expand_delay_cycles): New.
12702 (msp430_expand_builtin): Call it.
12703 (msp430_print_operand_raw): Change integer printing from "int" to
12704 HOST_WIDE_INT.
12705 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
12706 (delay_cycles_start): New.
12707 (delay_cycles_end): New.
12708 (delay_cycles_32): New.
12709 (delay_cycles_32x): New.
12710 (delay_cycles_16): New.
12711 (delay_cycles_16x): New.
12712 (delay_cycles_2): New.
12713 (delay_cycles_1): New.
12714 * doc/extend.texi: Document __delay_cycles().
12715
12716 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
12717
12718 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
12719 length attribute computation.
12720
12721 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
12722
12723 PR debug/61188
12724 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
12725
12726 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
12727
12728 PR target/61084
12729 * config/sparc/sparc.md: Fix types of low and high in DI constant
12730 splitter. Use gen_int_mode in some other splitters.
12731
12732 2014-05-14 Martin Jambor <mjambor@suse.cz>
12733
12734 PR ipa/60897
12735 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
12736
12737 2014-05-14 James Norris <jnorris@codesourcery.com>
12738
12739 * omp-low.c (expand_parallel_call): Remove shadow variable.
12740 (expand_omp_taskreg): Likewise.
12741
12742 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
12743
12744 * common/config/i386/i386-common.c
12745 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
12746 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
12747 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
12748 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
12749 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
12750 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
12751 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
12752 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
12753 xsavecintrin.h, xsavesintrin.h.
12754 (x86_64-*-*): Ditto.
12755 * config/i386/clflushoptintrin.h: New.
12756 * config/i386/xsavecintrin.h: Ditto.
12757 * config/i386/xsavesintrin.h: Ditto.
12758 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
12759 (bit_XSAVES): Ditto.
12760 (bit_XSAVES): Ditto.
12761 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
12762 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
12763 -mno-clflushopt.
12764 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12765 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
12766 OPTION_MASK_ISA_XSAVES.
12767 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
12768 -mxsavec, -mxsaves.
12769 (PTA_CLFLUSHOPT) Define.
12770 (PTA_XSAVEC): Ditto.
12771 (PTA_XSAVES): Ditto.
12772 (ix86_option_override_internal): Handle new options.
12773 (ix86_valid_target_attribute_inner_p): Ditto.
12774 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
12775 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
12776 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
12777 (bdesc_special_args): Add __builtin_ia32_xsaves,
12778 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
12779 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
12780 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
12781 (ix86_expand_builtin): Handle new builtins.
12782 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
12783 (TARGET_CLFLUSHOPT_P): Ditto.
12784 (TARGET_XSAVEC): Ditto.
12785 (TARGET_XSAVEC_P): Ditto.
12786 (TARGET_XSAVES): Ditto.
12787 (TARGET_XSAVES_P): Ditto.
12788 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
12789 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
12790 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
12791 (ANY_XRSTOR): New.
12792 (ANY_XRSTOR64): Ditto.
12793 (xrstor): Ditto.
12794 (xrstor): Change into <xrstor>.
12795 (xrstor_rex64): Change into <xrstor>_rex64.
12796 (xrstor64): Change into <xrstor>64
12797 (clflushopt): New.
12798 * config/i386/i386.opt (mclflushopt): New.
12799 (mxsavec): Ditto.
12800 (mxsaves): Ditto.
12801 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
12802 xsavecintrin.h.
12803 * doc/invoke.texi: Document new options.
12804
12805 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
12806
12807 PR rtl-optimization/60866
12808 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
12809 Default it to -1. Pass it down to init_simplejump_data.
12810 (init_simplejump_data): New parameter old_seqno. Pass it down
12811 to get_seqno_for_a_jump.
12812 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
12813 initializing new jump seqno as a last resort. Add comment.
12814 (sel_redirect_edge_and_branch): Save old seqno of the conditional
12815 jump and pass it down to sel_init_new_insn.
12816 (sel_redirect_edge_and_branch_force): Likewise.
12817
12818 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
12819
12820 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
12821 shifted values to avoid build warning.
12822
12823 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
12824
12825 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
12826 * cfgrtl.c (rtl_merge_blocks): Fix comment.
12827 (cfg_layout_merge_blocks): Likewise.
12828 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
12829
12830 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
12831
12832 PR rtl-optimization/60901
12833 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
12834 bb predecessor belongs to the same scheduling region. Adjust comment.
12835
12836 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
12837
12838 * doc/sourcebuild.texi: (dfp_hw): Document.
12839 (p8vector_hw): Likewise.
12840 (powerpc_eabi_ok): Likewise.
12841 (powerpc_elfv2): Likewise.
12842 (powerpc_htm_ok): Likewise.
12843 (ppc_recip_hw): Likewise.
12844 (vsx_hw): Likewise.
12845
12846 2014-05-13 Cary Coutant <ccoutant@google.com>
12847
12848 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
12849
12850 2014-05-13 David Malcolm <dmalcolm@redhat.com>
12851
12852 * gengtype-parse.c (require3): Eliminate in favor of...
12853 (require4): New.
12854 (require_template_declaration): Update to support optional single *
12855 on a type.
12856
12857 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
12858 (create_user_defined_type): Handle a single level of explicit
12859 pointerness within template arguments.
12860 (struct write_types_data): Add field "kind".
12861 (filter_type_name): Handle "*" character.
12862 (write_user_func_for_structure_ptr): Require a write_types_data
12863 rather than just a prefix string, so that we can look up the kind
12864 of the wtd and use it as an index into wrote_user_func_for_ptr,
12865 ensuring that such functions are written at most once. Support
12866 subclasses by invoking the marking function of the ultimate base class.
12867 (write_user_func_for_structure_body): Require a write_types_data
12868 rather than just a prefix string, so that we can pass this to
12869 write_user_func_for_structure_ptr.
12870 (write_func_for_structure): Likewise.
12871 (ggc_wtd): Add initializer of new "kind" field.
12872 (pch_wtd): Likewise.
12873
12874 * gengtype.h (enum write_types_kinds): New.
12875 (struct type): Add field wrote_user_func_for_ptr to the "s"
12876 union member.
12877
12878 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
12879
12880 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
12881 instead of const_binop.
12882 (fold_binary_loc): Likewise.
12883
12884 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
12885
12886 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
12887 calculation to match get_ref_base_and_extent.
12888
12889 2014-05-13 Catherine Moore <clm@codesourcery.com>
12890 Sandra Loosemore <sandra@codesourcery.com>
12891
12892 * configure.ac: Fix assembly for explicit JALR relocation check.
12893 * configure: Regenerate.
12894
12895 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12896
12897 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
12898 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
12899 Remove associated type declarations and initialisations.
12900 (arm_expand_neon_builtin): Likewise.
12901 (neon_emit_pair_result_insn): Delete.
12902 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
12903 * config/arm/neon.md (neon_vtrn<mode>): Delete.
12904 (neon_vzip<mode>): Likewise.
12905 (neon_vuzp<mode>): Likewise.
12906
12907 2014-05-13 Richard Biener <rguenther@suse.de>
12908
12909 PR ipa/60973
12910 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
12911 it needs revisiting whether the call still may be tail-called.
12912
12913 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12914
12915 * rtl.def (SYMBOL_REF): Remove middle "0" field.
12916 * rtl.h (block_symbol): Reduce number of fields to 2.
12917 (rtx_def): Add u2.symbol_ref_flags.
12918 (SYMBOL_REF_FLAGS): Use it.
12919 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
12920 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
12921 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
12922 Lower index of SYMBOL_REF_DATA.
12923 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
12924 Print SYMBOL_REF_FLAGS at the same time.
12925 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
12926
12927 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12928
12929 * rtl.def (VAR_LOCATION): Remove "i" field.
12930 * rtl.h (rtx_def): Add u2.var_location_status.
12931 (PAT_VAR_LOCATION_STATUS): Use it.
12932 (gen_rtx_VAR_LOCATION): Declare.
12933 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
12934 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
12935 * var-tracking.c (emit_note_insn_var_location): Remove casts.
12936
12937 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12938
12939 * rtl.def (scratch): Fix outdated comment and remove "0" field.
12940 * gengtype.c (adjust_field_rtx_def): Update accordingly.
12941
12942 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12943
12944 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
12945 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
12946 * rtl.h (rtx_def): Add insn_uid to u2 field.
12947 (RTX_FLAG_CHECK8): Delete in favor of...
12948 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
12949 (INSN_DELETED_P): Update accordingly.
12950 (INSN_UID): Use u2.insn_uid.
12951 (INSN_CHAIN_CODE_P): Define.
12952 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
12953 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
12954 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
12955 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
12956 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
12957 indices accordingly.
12958 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
12959 Update indices for insn-chain rtxes.
12960 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
12961 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
12962 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
12963 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
12964 * combine.c (try_combine): Likewise.
12965 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12966
12967 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12968
12969 * rtl.def (REG): Remove middle field.
12970 * rtl.h (rtx_def): Add orignal_regno to u2.
12971 (ORIGINAL_REGNO): Use it instead of field 1.
12972 (REG_ATTRS): Lower field index accordingly.
12973 * gengtype.c (adjust_field_rtx_def): Remove handling of
12974 ORIGINAL_REGNO. Move REG_ATTRS index down.
12975 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
12976 code that prints the REGNO.
12977
12978 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12979
12980 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
12981 GENERATOR_FILE.
12982
12983 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12984
12985 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
12986
12987 2014-05-13 Bin Cheng <bin.cheng@arm.com>
12988
12989 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
12990 (alloc_iv): Lower base expressions containing ADDR_EXPR.
12991
12992 2014-05-13 Ian Bolton <ian.bolton@arm.com>
12993
12994 * config/aarch64/aarch64-protos.h
12995 (aarch64_hard_regno_caller_save_mode): New prototype.
12996 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
12997 New function.
12998 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
12999
13000 2014-05-13 Christian Bruel <christian.bruel@st.com>
13001
13002 * target.def (mode_switching): New hook vector.
13003 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
13004 (mode_exit, modepriority_to_mode): Likewise.
13005 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
13006 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
13007 * target.h: Include tm.h and hard-reg-set.h.
13008 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
13009 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
13010 * doc/tm.texi Regenerate.
13011 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
13012 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
13013 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
13014 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
13015 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
13016 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
13017 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
13018 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
13019 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
13020 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
13021 (ix86_emit_mode_set): Hookify.
13022 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
13023 Delete.
13024 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
13025 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
13026 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
13027 (epiphany_mode_priority_to_mode): Remove declaration.
13028 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
13029 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
13030 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
13031 Likewise.
13032 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
13033 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
13034 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
13035
13036 2014-05-13 Jakub Jelinek <jakub@redhat.com>
13037
13038 PR target/61060
13039 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
13040 is const0_rtx, return immediately. Don't test count == 0 when
13041 it is always true.
13042
13043 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13044
13045 * Makefile.in: add shrink-wrap.o.
13046 * config/i386/i386.c: include "shrink-wrap.h"
13047 * function.c: Likewise.
13048 (requires_stack_frame_p, next_block_for_reg,
13049 move_insn_for_shrink_wrap, prepare_shrink_wrap,
13050 dup_block_and_redirect): Move to shrink-wrap.c
13051 (thread_prologue_and_epilogue_insns): Extract three code segments
13052 as functions in shrink-wrap.c
13053 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
13054 shrink-wrap.h
13055 * shrink-wrap.c: New file.
13056 * shrink-wrap.h: New file.
13057
13058 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
13059
13060 * doc/extend.texi: Reflect current numbers of pragmas. Remove
13061 reference to Solaris.
13062
13063 2014-05-12 Mike Stump <mikestump@comcast.net>
13064
13065 PR other/31778
13066 * genattrtab.c (filename): Add.
13067 (convert_set_attr_alternative): Improve error message.
13068 (check_defs): Restore read_md_filename for error messages.
13069 (gen_insn): Save filename.
13070
13071 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
13072
13073 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
13074 -fno-local-ivars and -fivar-visibility.
13075 * c-family/c.opt: Make -Wshadow also implicitly enable
13076 -Wshadow-ivar.
13077
13078 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
13079
13080 * doc/tm.texi: Remove reference to deleted macro.
13081 * doc/tm.texi.in: Likewise.
13082
13083 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13084
13085 PR target/60991
13086 * config/avr/avr.c (avr_out_store_psi): Use correct constant
13087 to restore Y.
13088
13089 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
13090
13091 PR libgcc/61152
13092 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
13093 * config/arm/aout.h (License): Same.
13094 * config/arm/bpabi.h (License): Same.
13095 * config/arm/elf.h (License): Same.
13096 * config/arm/linux-elf.h (License): Same.
13097 * config/arm/linux-gas.h (License): Same.
13098 * config/arm/netbsd-elf.h (License): Same.
13099 * config/arm/uclinux-eabi.h (License): Same.
13100 * config/arm/uclinux-elf.h (License): Same.
13101 * config/arm/vxworks.h (License): Same.
13102
13103 2014-05-11 Jakub Jelinek <jakub@redhat.com>
13104
13105 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
13106 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
13107 number of operands to 3.
13108 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
13109 * tree-nested.c (convert_nonlocal_omp_clauses,
13110 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
13111 * gimplify.c (gimplify_scan_omp_clauses): Handle
13112 OMP_CLAUSE_LINEAR_STMT.
13113 * omp-low.c (lower_rec_input_clauses): Fix typo.
13114 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
13115 cast between Fortran boolean_type_node and C _Bool if
13116 needed.
13117
13118 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
13119
13120 PR tree-optimization/61136
13121 * wide-int.h (multiple_of_p): Define a version that doesn't return
13122 the quotient.
13123 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
13124 integer_zerop/const_binop pair.
13125 (multiple_of_p): Likewise, converting both operands to widest_int
13126 precision.
13127
13128 2014-05-09 Teresa Johnson <tejohnson@google.com>
13129
13130 * cgraphunit.c (analyze_functions): Use correct dump file.
13131
13132 2014-05-09 Florian Weimer <fweimer@redhat.com>
13133
13134 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
13135 expand_used_vars.
13136 (stack_protect_return_slot_p): New function.
13137 (expand_used_vars): Call stack_protect_decl_p and
13138 stack_protect_return_slot_p for -fstack-protector-strong.
13139
13140 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
13141 Andrew Haley <aph@redhat.com>
13142 Richard Sandiford <rdsandiford@googlemail.com>
13143
13144 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
13145 pages.
13146
13147 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
13148
13149 PR middle-end/61111
13150 * fold-const.c (fold_binary_loc): Changed width of mask.
13151
13152 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
13153
13154 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
13155 unsigned int initializers for regno_in, regno_out.
13156
13157 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
13158
13159 PR target/61055
13160 * config/avr/avr.md (cc): Add new attribute set_vzn.
13161 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
13162 Set cc insn attribute to set_vzn instead of set_zn for alternatives
13163 with INC, DEC or NEG.
13164 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
13165 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
13166 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
13167
13168 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13169
13170 Revert:
13171 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13172
13173 * wide-int.cc (UTItype): Define.
13174 (UDWtype): Define for appropriate W_TYPE_SIZE.
13175
13176 2014-05-09 Richard Biener <rguenther@suse.de>
13177
13178 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
13179 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
13180 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
13181 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
13182 ssa_propagate): Adjust.
13183
13184 2014-05-08 Jeff Law <law@redhat.com>
13185
13186 PR tree-optimization/61009
13187 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
13188 tri-state rather than a boolean. When a block is too big to
13189 thread through, inform caller via negative return value.
13190 (thread_across_edge): If a block was too big for normal threading,
13191 then it's too big for a joiner too, so remove temporary equivalences
13192 and return immediately.
13193
13194 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
13195 Matthias Klose <doko@ubuntu.com>
13196
13197 PR driver/61106
13198 * optc-gen.awk: Fix option handling for -Wunused-parameter.
13199
13200 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
13201
13202 PR target/59952
13203 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
13204
13205 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
13206
13207 PR target/61092
13208 * config/alpha/alpha.c: Include gimple-iterator.h.
13209 (alpha_gimple_fold_builtin): New function. Move
13210 ALPHA_BUILTIN_UMULH folding from ...
13211 (alpha_fold_builtin): ... here.
13212 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
13213
13214 2014-05-08 Wei Mi <wmi@google.com>
13215
13216 PR target/58066
13217 * config/i386/i386.c (ix86_compute_frame_layout): Update
13218 preferred_stack_boundary for call, expanded from tls descriptor.
13219 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
13220 to depend on SP register.
13221 (*tls_local_dynamic_base_32_gnu): Ditto.
13222 (*tls_local_dynamic_32_once): Ditto.
13223 (tls_global_dynamic_64_<mode>): Set
13224 ix86_tls_descriptor_calls_expanded_in_cfun.
13225 (tls_local_dynamic_base_64_<mode>): Ditto.
13226 (tls_global_dynamic_32): Set
13227 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
13228 to depend on SP register.
13229 (tls_local_dynamic_base_32): Ditto.
13230
13231 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13232
13233 * config/arm/arm_neon.h: Update comment.
13234 * config/arm/neon-docgen.ml: Delete.
13235 * config/arm/neon-gen.ml: Delete.
13236 * doc/arm-neon-intrinsics.texi: Update comment.
13237
13238 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13239
13240 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
13241 and v4sf versions.
13242 (vand, vorr, veor, vorn, vbic): Remove.
13243 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
13244 iterator.
13245 (neon_vsub_unspec): Likewise.
13246 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
13247
13248 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13249
13250 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
13251 (vadd_s16): Likewise.
13252 (vadd_s32): Likewise.
13253 (vadd_f32): Likewise.
13254 (vadd_u8): Likewise.
13255 (vadd_u16): Likewise.
13256 (vadd_u32): Likewise.
13257 (vadd_s64): Likewise.
13258 (vadd_u64): Likewise.
13259 (vaddq_s8): Likewise.
13260 (vaddq_s16): Likewise.
13261 (vaddq_s32): Likewise.
13262 (vaddq_s64): Likewise.
13263 (vaddq_f32): Likewise.
13264 (vaddq_u8): Likewise.
13265 (vaddq_u16): Likewise.
13266 (vaddq_u32): Likewise.
13267 (vaddq_u64): Likewise.
13268 (vmul_s8): Likewise.
13269 (vmul_s16): Likewise.
13270 (vmul_s32): Likewise.
13271 (vmul_f32): Likewise.
13272 (vmul_u8): Likewise.
13273 (vmul_u16): Likewise.
13274 (vmul_u32): Likewise.
13275 (vmul_p8): Likewise.
13276 (vmulq_s8): Likewise.
13277 (vmulq_s16): Likewise.
13278 (vmulq_s32): Likewise.
13279 (vmulq_f32): Likewise.
13280 (vmulq_u8): Likewise.
13281 (vmulq_u16): Likewise.
13282 (vmulq_u32): Likewise.
13283 (vsub_s8): Likewise.
13284 (vsub_s16): Likewise.
13285 (vsub_s32): Likewise.
13286 (vsub_f32): Likewise.
13287 (vsub_u8): Likewise.
13288 (vsub_u16): Likewise.
13289 (vsub_u32): Likewise.
13290 (vsub_s64): Likewise.
13291 (vsub_u64): Likewise.
13292 (vsubq_s8): Likewise.
13293 (vsubq_s16): Likewise.
13294 (vsubq_s32): Likewise.
13295 (vsubq_s64): Likewise.
13296 (vsubq_f32): Likewise.
13297 (vsubq_u8): Likewise.
13298 (vsubq_u16): Likewise.
13299 (vsubq_u32): Likewise.
13300 (vsubq_u64): Likewise.
13301 (vand_s8): Likewise.
13302 (vand_s16): Likewise.
13303 (vand_s32): Likewise.
13304 (vand_u8): Likewise.
13305 (vand_u16): Likewise.
13306 (vand_u32): Likewise.
13307 (vand_s64): Likewise.
13308 (vand_u64): Likewise.
13309 (vandq_s8): Likewise.
13310 (vandq_s16): Likewise.
13311 (vandq_s32): Likewise.
13312 (vandq_s64): Likewise.
13313 (vandq_u8): Likewise.
13314 (vandq_u16): Likewise.
13315 (vandq_u32): Likewise.
13316 (vandq_u64): Likewise.
13317 (vorr_s8): Likewise.
13318 (vorr_s16): Likewise.
13319 (vorr_s32): Likewise.
13320 (vorr_u8): Likewise.
13321 (vorr_u16): Likewise.
13322 (vorr_u32): Likewise.
13323 (vorr_s64): Likewise.
13324 (vorr_u64): Likewise.
13325 (vorrq_s8): Likewise.
13326 (vorrq_s16): Likewise.
13327 (vorrq_s32): Likewise.
13328 (vorrq_s64): Likewise.
13329 (vorrq_u8): Likewise.
13330 (vorrq_u16): Likewise.
13331 (vorrq_u32): Likewise.
13332 (vorrq_u64): Likewise.
13333 (veor_s8): Likewise.
13334 (veor_s16): Likewise.
13335 (veor_s32): Likewise.
13336 (veor_u8): Likewise.
13337 (veor_u16): Likewise.
13338 (veor_u32): Likewise.
13339 (veor_s64): Likewise.
13340 (veor_u64): Likewise.
13341 (veorq_s8): Likewise.
13342 (veorq_s16): Likewise.
13343 (veorq_s32): Likewise.
13344 (veorq_s64): Likewise.
13345 (veorq_u8): Likewise.
13346 (veorq_u16): Likewise.
13347 (veorq_u32): Likewise.
13348 (veorq_u64): Likewise.
13349 (vbic_s8): Likewise.
13350 (vbic_s16): Likewise.
13351 (vbic_s32): Likewise.
13352 (vbic_u8): Likewise.
13353 (vbic_u16): Likewise.
13354 (vbic_u32): Likewise.
13355 (vbic_s64): Likewise.
13356 (vbic_u64): Likewise.
13357 (vbicq_s8): Likewise.
13358 (vbicq_s16): Likewise.
13359 (vbicq_s32): Likewise.
13360 (vbicq_s64): Likewise.
13361 (vbicq_u8): Likewise.
13362 (vbicq_u16): Likewise.
13363 (vbicq_u32): Likewise.
13364 (vbicq_u64): Likewise.
13365 (vorn_s8): Likewise.
13366 (vorn_s16): Likewise.
13367 (vorn_s32): Likewise.
13368 (vorn_u8): Likewise.
13369 (vorn_u16): Likewise.
13370 (vorn_u32): Likewise.
13371 (vorn_s64): Likewise.
13372 (vorn_u64): Likewise.
13373 (vornq_s8): Likewise.
13374 (vornq_s16): Likewise.
13375 (vornq_s32): Likewise.
13376 (vornq_s64): Likewise.
13377 (vornq_u8): Likewise.
13378 (vornq_u16): Likewise.
13379 (vornq_u32): Likewise.
13380 (vornq_u64): Likewise.
13381
13382 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13383
13384 * wide-int.cc (UTItype): Define.
13385 (UDWtype): Define for appropriate W_TYPE_SIZE.
13386
13387 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
13388
13389 PR tree-optimization/59100
13390 * tree-ssa-phiopt.c: Include tree-inline.h.
13391 (neutral_element_p, absorbing_element_p): New functions.
13392 (value_replacement): Handle conditional binary operations with a
13393 neutral or absorbing element.
13394
13395 2014-05-08 Richard Biener <rguenther@suse.de>
13396
13397 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
13398 folding the expression.
13399 (valueize_expr): Remove.
13400 (visit_reference_op_load): Do not valueize the result of
13401 vn_get_expr_for.
13402 (simplify_binary_expression): Likewise.
13403 (simplify_unary_expression): Likewise.
13404
13405 2014-05-08 Richard Biener <rguenther@suse.de>
13406
13407 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
13408 looking at TYPE_ARG_TYPES.
13409
13410 2014-05-08 Richard Biener <rguenther@suse.de>
13411
13412 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
13413 pointer propagation special-case.
13414
13415 2014-05-08 Bin Cheng <bin.cheng@arm.com>
13416
13417 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
13418 core part of address expressions.
13419
13420 2014-05-08 Alan Modra <amodra@gmail.com>
13421
13422 PR target/60737
13423 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
13424 loads and stores when -mno-strict-align at any alignment.
13425 (expand_block_clear): Similarly. Also correct calculation of
13426 instruction count.
13427
13428 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
13429
13430 PR middle-end/39246
13431 * tree-complex.c (expand_complex_move): Keep line info when expanding
13432 complex move.
13433 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
13434 of complex expression. Use new argument to display correct location
13435 for values coming from phi statement.
13436 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
13437 (warn_uninitialized_phi): Pass location of phi argument to
13438 warn_uninit.
13439 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
13440 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
13441
13442 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
13443
13444 * config/rs6000/predicates.md (indexed_address_mem): New.
13445 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
13446 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
13447 fpstore_ux, fpstore_u.
13448 (sign_extend, indexed, update): New.
13449 (cell_micro): Adjust.
13450 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
13451 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
13452 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
13453 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
13454 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
13455 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
13456 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
13457 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
13458 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
13459 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
13460 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
13461 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
13462 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
13463 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
13464 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
13465
13466 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
13467 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
13468 *vsx_extract_<mode>_store): Adjust.
13469 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
13470 is_cracked_insn, insn_must_be_first_in_group,
13471 insn_must_be_last_in_group): Adjust.
13472
13473 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
13474 Adjust.
13475 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
13476 ppc440-fpstore): Adjust.
13477 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
13478 ppc476-fpstore): Adjust.
13479 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
13480 ppc601-fpstore): Adjust.
13481 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
13482 Adjust.
13483 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
13484 Adjust.
13485 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
13486 ppc7450-fpstore): Adjust.
13487 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
13488 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
13489 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
13490 Adjust.
13491 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
13492 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
13493 cell-fpstore, cell-fpstore-update): Adjust.
13494 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
13495 ppce300c3_store, ppce300c3_fpstore): Adjust.
13496 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
13497 e500mc_fpstore): Adjust.
13498 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
13499 e500mc64_store, e500mc64_fpstore): Adjust.
13500 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
13501 e5500_fpstore): Adjust.
13502 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
13503 e6500_fpstore): Adjust.
13504 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
13505 Adjust.
13506 * config/rs6000/power4.md (power4-load, power4-load-ext,
13507 power4-load-ext-update, power4-load-ext-update-indexed,
13508 power4-load-update-indexed, power4-load-update, power4-fpload,
13509 power4-fpload-update, power4-store, power4-store-update,
13510 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
13511 Adjust.
13512 * config/rs6000/power5.md (power5-load, power5-load-ext,
13513 power5-load-ext-update, power5-load-ext-update-indexed,
13514 power5-load-update-indexed, power5-load-update, power5-fpload,
13515 power5-fpload-update, power5-store, power5-store-update,
13516 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
13517 Adjust.
13518 * config/rs6000/power6.md (power6-load, power6-load-ext,
13519 power6-load-update, power6-load-update-indexed,
13520 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
13521 power6-fpload-update, power6-store, power6-store-update,
13522 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
13523 Adjust.
13524 * config/rs6000/power7.md (power7-load, power7-load-ext,
13525 power7-load-update, power7-load-update-indexed,
13526 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
13527 power7-fpload-update, power7-store, power7-store-update,
13528 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
13529 Adjust.
13530 * config/rs6000/power8.md (power8-load, power8-load-update,
13531 power8-load-ext, power8-load-ext-update, power8-fpload,
13532 power8-fpload-update, power8-store, power8-store-update-indexed,
13533 power8-fpstore, power8-fpstore-update): Adjust.
13534 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
13535 Adjust.
13536 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
13537 titan_lsu_store, titan_lsu_fpstore): Adjust.
13538 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
13539
13540 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
13541
13542 PR target/60884
13543 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
13544 unrolled byte insns. Emit address increments after move insns.
13545
13546 2014-05-07 David Malcolm <dmalcolm@redhat.com>
13547
13548 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
13549 const_gimple, rather than a gimple.
13550 (gimple_call_builtin_p): Likewise, for the three variants.
13551
13552 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
13553 (gimple_call_builtin_p): Likewise, for the three variants.
13554
13555 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13556
13557 PR tree-optimization/61095
13558 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
13559
13560 2014-05-07 Richard Biener <rguenther@suse.de>
13561
13562 PR tree-optimization/61034
13563 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
13564 (maybe_skip_until): Use translate to take into account
13565 lattices when trying to do disambiguations.
13566 (get_continuation_for_phi_1): Likewise.
13567 (get_continuation_for_phi): Adjust for added translate arguments.
13568 (walk_non_aliased_vuses): Likewise.
13569 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
13570 (walk_non_aliased_vuses): Likewise.
13571 (call_may_clobber_ref_p_1): Declare.
13572 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
13573 calls. Stop early if we are only supposed to disambiguate.
13574 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
13575
13576 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
13577
13578 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
13579 Emit an error when the function has arguments.
13580
13581 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
13582
13583 * cfgloop.h (unswitch_loops): Remove.
13584 * doc/passes.texi: Remove references to loop-unswitch.c
13585 * timevar.def (TV_LOOP_UNSWITCH): Remove.
13586
13587 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
13588
13589 * tree-vect-data-refs.c (vect_grouped_load_supported): New
13590 check for loads group of length 3.
13591 (vect_permute_load_chain): New permutations for loads group of
13592 length 3.
13593 * tree-vect-stmts.c (vect_model_load_cost): Change cost
13594 of vec_perm_shuffle for the new permutations.
13595
13596 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
13597
13598 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
13599 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
13600 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
13601 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
13602 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
13603 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
13604 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
13605 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
13606
13607 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
13608
13609 * loop-unswitch.c: Delete.
13610
13611 2014-05-07 Richard Biener <rguenther@suse.de>
13612
13613 * config.gcc: Always set need_64bit_hwint to yes.
13614
13615 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
13616
13617 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
13618 of using optimize_size.
13619
13620 2014-05-06 Mike Stump <mikestump@comcast.net>
13621
13622 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
13623
13624 2014-05-06 Joseph Myers <joseph@codesourcery.com>
13625
13626 * config/i386/sse.md (*mov<mode>_internal)
13627 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
13628 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
13629 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
13630 (*<code><mode>3, *andnot<mode>3<mask_name>)
13631 (<mask_codefor><code><mode>3<mask_name>): Only consider
13632 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
13633
13634 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
13635
13636 Revert:
13637 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13638
13639 * lra-constraints.c (valid_address_p): Move earlier in file.
13640 Add a constraint argument to the address_info version.
13641 (satisfies_memory_constraint_p): New function.
13642 (satisfies_address_constraint_p): Likewise.
13643 (process_alt_operands, curr_insn_transform): Use them.
13644 (process_address): Pass the constraint to valid_address_p when
13645 checking address operands.
13646
13647 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
13648
13649 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
13650 to their respective blocks. Fix inadvertent use of "node".
13651
13652 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
13653
13654 * emit-rtl.c (init_derived_machine_modes): New functionm, split
13655 out from...
13656 (init_emit_once): ...here.
13657 * rtl.h (init_derived_machine_modes): Declare.
13658 * toplev.c (do_compile): Call it even if no_backend.
13659
13660 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
13661 Mike Stump <mikestump@comcast.net>
13662 Richard Sandiford <rdsandiford@googlemail.com>
13663 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13664
13665 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
13666 (rtx_equal_for_memref_p): Update comment.
13667 (adjust_offset_for_component_ref): Use wide-int interfaces.
13668 * builtins.c (get_object_alignment_2): Likewise.
13669 (c_readstr): Likewise.
13670 (target_char_cast): Add comment.
13671 (determine_block_size): Use wide-int interfaces.
13672 (expand_builtin_signbit): Likewise.
13673 (fold_builtin_int_roundingfn): Likewise.
13674 (fold_builtin_bitop): Likewise.
13675 (fold_builtin_bswap): Likewise.
13676 (fold_builtin_logarithm): Use signop.
13677 (fold_builtin_pow): Likewise.
13678 (fold_builtin_memory_op): Use wide-int interfaces.
13679 (fold_builtin_object_size): Likewise.
13680 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
13681 nb_iterations_estimate.
13682 (record_niter_bound): Use wide-int interfaces.
13683 (get_estimated_loop_iterations_int): Likewise.
13684 (get_estimated_loop_iterations): Likewise.
13685 (get_max_loop_iterations): Likewise.
13686 * cfgloop.h: Include wide-int.h.
13687 (struct nb_iter_bound): Change bound to widest_int.
13688 (struct loop): Change nb_iterations_upper_bound and
13689 nb_iterations_estimate to widest_int.
13690 (record_niter_bound): Switch to use widest_int.
13691 (get_estimated_loop_iterations): Likewise.
13692 (get_max_loop_iterations): Likewise.
13693 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
13694 update for wide-int.
13695 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
13696 * combine.c (try_combine): Likewise.
13697 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
13698 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
13699 interfaces.
13700 (aarch64_float_const_representable_p): Likewise.
13701 * config/arc/arc.c: Include wide-int.h.
13702 (arc_can_use_doloop_p): Use wide-int interfaces.
13703 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
13704 (vfp3_const_double_index): Likewise.
13705 * config/avr/avr.c (avr_out_round): Likewise.
13706 (avr_fold_builtin): Likewise.
13707 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
13708 (bfin_can_use_doloop_p): Likewise.
13709 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
13710 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
13711 * config/i386/i386.c: Include wide-int.h.
13712 (ix86_data_alignment): Use wide-int interfaces.
13713 (ix86_local_alignment): Likewise.
13714 (ix86_emit_swsqrtsf): Update real_from_integer.
13715 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
13716 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
13717 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
13718 (zero_constant): Likewise.
13719 (input_operand): Likewise.
13720 (splat_input_operand): Likewise.
13721 (non_logical_cint_operand): Change const_double to const_wide_int.
13722 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
13723 (easy_altivec_constant): Remove comment.
13724 (paired_expand_vector_init): Use CONSTANT_P.
13725 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
13726 (rs6000_emit_move): Update checks.
13727 (rs6000_aggregate_candidate): Use wide-int interfaces.
13728 (rs6000_expand_ternop_builtin): Likewise.
13729 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
13730 (rs6000_assemble_integer): Likewise.
13731 (rs6000_hash_constant): Likewise.
13732 (output_toc): Likewise.
13733 (rs6000_rtx_costs): Likewise.
13734 (rs6000_emit_swrsqrt); Update call to real_from_integer.
13735 * config/rs6000/rs6000-c.c: Include wide-int.h.
13736 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
13737 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
13738 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
13739 Handle CONST_WIDE_INT.
13740 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
13741 Use tree_fits_uhwi_p.
13742 * config/sparc/sparc.c: Include wide-int.h.
13743 (sparc_fold_builtin): Use wide-int interfaces.
13744 * config/vax/vax.c: Include wide-int.h.
13745 (vax_float_literal): Use real_from_integer.
13746 * coretypes.h (struct hwivec_def): New.
13747 (hwivec): New.
13748 (const_hwivec): New.
13749 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
13750 (equiv_constant): Handle CONST_WIDE_INT.
13751 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
13752 (cselib_hash_rtx): Handle CONST_WIDE_INT.
13753 * dbxout.c (stabstr_U): Use wide-int interfaces.
13754 (dbxout_type): Update to use cst_fits_shwi_p.
13755 * defaults.h (LOG2_BITS_PER_UNIT): Define.
13756 (TARGET_SUPPORTS_WIDE_INT): Add default.
13757 * dfp.c: Include wide-int.h.
13758 (decimal_real_to_integer2): Use wide-int interfaces and rename to
13759 decimal_real_to_integer.
13760 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
13761 decimal_real_to_integer.
13762 * doc/generic.texi (Constant expressions): Update for wide_int.
13763 * doc/rtl.texi (const_double): Likewise.
13764 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
13765 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
13766 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
13767 (REAL_VALUE_FROM_INT): Remove.
13768 (TARGET_SUPPORTS_WIDE_INT): New.
13769 * doc/tm.texi: Regenerate.
13770 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
13771 * double-int.h: Include wide-int.h.
13772 (struct wi::int_traits): New.
13773 * dwarf2out.c (get_full_len): New.
13774 (dw_val_equal_p): Add case dw_val_class_wide_int.
13775 (size_of_loc_descr): Likewise.
13776 (output_loc_operands): Likewise.
13777 (insert_double): Remove.
13778 (insert_wide_int): New.
13779 (add_AT_wide): New.
13780 (print_die): Add case dw_val_class_wide_int.
13781 (attr_checksum): Likewise.
13782 (attr_checksum_ordered): Likewise.
13783 (same_dw_val_p): Likewise.
13784 (size_of_die): Likewise.
13785 (value_format): Likewise.
13786 (output_die): Likewise.
13787 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
13788 Use wide-int.
13789 (clz_loc_descriptor): Use wide-int interfaces.
13790 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
13791 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
13792 (round_up_to_align): Use wide-int interfaces.
13793 (field_byte_offset): Likewise.
13794 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
13795 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
13796 CONST_DOUBLE handling. Use wide-int interfaces.
13797 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
13798 (gen_enumeration_type_die): Use add_AT_wide.
13799 (hash_loc_operands): Add case dw_val_class_wide_int.
13800 (compare_loc_operands): Likewise.
13801 * dwarf2out.h: Include wide-int.h.
13802 (wide_int_ptr): New.
13803 (enum dw_val_class): Add dw_val_class_wide_int.
13804 (struct dw_val_struct): Add val_wide.
13805 * emit-rtl.c (const_wide_int_htab): New.
13806 (const_wide_int_htab_hash): New.
13807 (const_wide_int_htab_eq): New.
13808 (lookup_const_wide_int): New.
13809 (const_double_htab_hash): Use wide-int interfaces.
13810 (const_double_htab_eq): Likewise.
13811 (rtx_to_double_int): Conditionally compile for wide-int.
13812 (immed_double_int_const): Rename to immed_wide_int_const and
13813 update for wide-int.
13814 (immed_double_const): Conditionally compile for wide-int.
13815 (init_emit_once): Use wide-int interfaces.
13816 * explow.c (plus_constant): Likewise.
13817 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
13818 (lshift_value): Use wide-int interfaces.
13819 (expand_mult): Likewise.
13820 (choose_multiplier): Likewise.
13821 (expand_smod_pow2): Likewise.
13822 (make_tree): Likewise.
13823 * expr.c (convert_modes): Consolidate handling of constants.
13824 Use wide-int interfaces.
13825 (emit_group_load_1): Add note.
13826 (store_expr): Update comment.
13827 (get_inner_reference): Use wide-int interfaces.
13828 (expand_constructor): Update comment.
13829 (expand_expr_real_2): Use wide-int interfaces.
13830 (expand_expr_real_1): Likewise.
13831 (reduce_to_bit_field_precision): Likewise.
13832 (const_vector_from_tree): Likewise.
13833 * final.c: Include wide-int-print.h.
13834 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
13835 * fixed-value.c: Include wide-int.h.
13836 (fixed_from_string): Use wide-int interfaces.
13837 (fixed_to_decimal): Likewise.
13838 (fixed_convert_from_real): Likewise.
13839 (real_convert_from_fixed): Likewise.
13840 * fold-const.h (mem_ref_offset): Return an offset_int.
13841 (div_if_zero_remainder): Remove code parameter.
13842 * fold-const.c (div_if_zero_remainder): Remove code parameter.
13843 Use wide-int interfaces.
13844 (may_negate_without_overflow_p): Use wide-int interfaces.
13845 (negate_expr_p): Likewise.
13846 (fold_negate_expr): Likewise.
13847 (int_const_binop_1): Likewise.
13848 (const_binop): Likewise.
13849 (fold_convert_const_int_from_int): Likewise.
13850 (fold_convert_const_int_from_real): Likewise.
13851 (fold_convert_const_int_from_fixed): Likewise.
13852 (fold_convert_const_fixed_from_int): Likewise.
13853 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
13854 (sign_bit_p): Use wide-int interfaces.
13855 (make_range_step): Likewise.
13856 (build_range_check): Likewise. Pass an integer of the correct type
13857 instead of using integer_one_node.
13858 (range_predecessor): Pass an integer of the correct type instead
13859 of using integer_one_node.
13860 (range_successor): Likewise.
13861 (merge_ranges): Likewise.
13862 (unextend): Use wide-int interfaces.
13863 (extract_muldiv_1): Likewise.
13864 (fold_div_compare): Likewise.
13865 (fold_single_bit_test): Likewise.
13866 (fold_sign_changed_comparison): Likewise.
13867 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
13868 (fold_plusminus_mult_expr): Use wide-int interfaces.
13869 (native_encode_int): Likewise.
13870 (native_interpret_int): Likewise.
13871 (fold_unary_loc): Likewise.
13872 (pointer_may_wrap_p): Likewise.
13873 (size_low_cst): Likewise.
13874 (mask_with_tz): Likewise.
13875 (fold_binary_loc): Likewise.
13876 (fold_ternary_loc): Likewise.
13877 (multiple_of_p): Likewise.
13878 (tree_call_nonnegative_warnv_p): Update calls to
13879 tree_int_cst_min_precision and real_from_integer.
13880 (fold_negate_const): Use wide-int interfaces.
13881 (fold_abs_const): Likewise.
13882 (fold_relational_const): Use tree_int_cst_lt.
13883 (round_up_loc): Use wide-int interfaces.
13884 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
13885 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
13886 * gengtype.c: Remove include of double-int.h.
13887 (do_typedef): Use wide-int interfaces.
13888 (open_base_files): Add wide-int.h.
13889 (main): Add offset_int and widest_int typedefs.
13890 * gengtype-lex.l: Handle "^".
13891 (CXX_KEYWORD): Add "static".
13892 * gengtype-parse.c (require3): New.
13893 (require_template_declaration): Handle constant template arguments
13894 and nested templates.
13895 * gengtype-state.c: Don't include "double-int.h".
13896 * genpreds.c (write_one_predicate_function): Update comment.
13897 (write_tm_constrs_h): Add check for hval and lval use in
13898 CONST_WIDE_INT.
13899 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
13900 (add_to_sequence): Likewise.
13901 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
13902 and const_double_operand.
13903 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
13904 interfaces.
13905 * gimple-fold.c (get_base_constructor): Likewise.
13906 (fold_array_ctor_reference): Likewise.
13907 (fold_nonarray_ctor_reference): Likewise.
13908 (fold_const_aggregate_ref_1): Likewise.
13909 (gimple_val_nonnegative_real_p): Likewise.
13910 (gimple_fold_indirect_ref): Likewise.
13911 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
13912 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
13913 (struct slsr_cand_d): Change index to be widest_int.
13914 (struct incr_info_d): Change incr to be widest_int.
13915 (alloc_cand_and_find_basis): Use wide-int interfaces.
13916 (slsr_process_phi): Likewise.
13917 (backtrace_base_for_ref): Likewise. Return a widest_int.
13918 (restructure_reference): Take a widest_int instead of a double_int.
13919 (slsr_process_ref): Use wide-int interfaces.
13920 (create_mul_ssa_cand): Likewise.
13921 (create_mul_imm_cand): Likewise.
13922 (create_add_ssa_cand): Likewise.
13923 (create_add_imm_cand): Take a widest_int instead of a double_int.
13924 (slsr_process_add): Use wide-int interfaces.
13925 (slsr_process_cast): Likewise.
13926 (slsr_process_copy): Likewise.
13927 (dump_candidate): Likewise.
13928 (dump_incr_vec): Likewise.
13929 (replace_ref): Likewise.
13930 (cand_increment): Likewise. Return a widest_int.
13931 (cand_abs_increment): Likewise.
13932 (replace_mult_candidate): Take a widest_int instead of a double_int.
13933 (replace_unconditional_candidate): Use wide-int interfaces.
13934 (incr_vec_index): Take a widest_int instead of a double_int.
13935 (create_add_on_incoming_edge): Likewise.
13936 (create_phi_basis): Use wide-int interfaces.
13937 (replace_conditional_candidate): Likewise.
13938 (record_increment): Take a widest_int instead of a double_int.
13939 (record_phi_increments): Use wide-int interfaces.
13940 (phi_incr_cost): Take a widest_int instead of a double_int.
13941 (lowest_cost_path): Likewise.
13942 (total_savings): Likewise.
13943 (analyze_increments): Use wide-int interfaces.
13944 (ncd_with_phi): Take a widest_int instead of a double_int.
13945 (ncd_of_cand_and_phis): Likewise.
13946 (nearest_common_dominator_for_cands): Likewise.
13947 (insert_initializers): Use wide-int interfaces.
13948 (all_phi_incrs_profitable): Likewise.
13949 (replace_one_candidate): Likewise.
13950 (replace_profitable_candidates): Likewise.
13951 * godump.c: Include wide-int-print.h.
13952 (go_output_typedef): Use wide-int interfaces.
13953 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
13954 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
13955 (build_loop_iteration_domains): Likewise.
13956 * hooks.h: Include wide-int.h rather than double-int.h.
13957 (hook_bool_dint_dint_uint_bool_true): Delete.
13958 (hook_bool_wint_wint_uint_bool_true): Declare.
13959 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
13960 (hook_bool_wint_wint_uint_bool_true): New.
13961 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
13962 interfaces.
13963 (ubsan_expand_si_overflow_mul_check): Likewise.
13964 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
13965 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
13966 (get_ancestor_addr_info): Likewise.
13967 (ipa_modify_call_arguments): Likewise.
13968 * loop-doloop.c (doloop_modify): Likewise.
13969 (doloop_optimize): Likewise.
13970 * loop-iv.c (iv_number_of_iterations): Likewise.
13971 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
13972 (unroll_loop_constant_iterations): Likewise.
13973 (decide_unroll_runtime_iterations): Likewise.
13974 (unroll_loop_runtime_iterations): Likewise.
13975 (decide_peel_simple): Likewise.
13976 (decide_unroll_stupid): Likewise.
13977 * lto-streamer-in.c (streamer_read_wi): Add.
13978 (input_cfg): Use wide-int interfaces.
13979 (lto_input_tree_1): Likewise.
13980 * lto-streamer-out.c (streamer_write_wi): Add.
13981 (hash_tree): Use wide-int interfaces.
13982 (output_cfg): Likewise.
13983 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
13984 (GTFILES): Add wide-int.h and signop.h.
13985 (TAGS): Look for .cc files too.
13986 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
13987 * optabs.c (expand_subword_shift): Likewise.
13988 (expand_doubleword_shift): Likewise.
13989 (expand_absneg_bit): Likewise.
13990 (expand_copysign_absneg): Likewise.
13991 (expand_copysign_bit): Likewise.
13992 * postreload.c (reload_cse_simplify_set): Likewise.
13993 * predict.c (predict_iv_comparison): Likewise.
13994 * pretty-print.h: Include wide-int-print.h.
13995 (pp_wide_int) New.
13996 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
13997 * print-tree.c: Include wide-int-print.h.
13998 (print_node_brief): Use wide-int interfaces.
13999 (print_node): Likewise.
14000 * read-rtl.c (validate_const_wide_int): New.
14001 (read_rtx_code): Add CONST_WIDE_INT case.
14002 * real.c: Include wide-int.h.
14003 (real_to_integer2): Delete.
14004 (real_to_integer): New function, returning a wide_int.
14005 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
14006 (ten_to_ptwo): Update call to real_from_integer.
14007 (real_digit): Likewise.
14008 * real.h: Include signop.h, wide-int.h and insn-modes.h.
14009 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
14010 (REAL_VALUE_TO_INT): Delete.
14011 (real_to_integer): Declare a wide-int form.
14012 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
14013 * recog.c (const_int_operand): Improve comment.
14014 (const_scalar_int_operand): New.
14015 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
14016 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
14017 (split_double): Likewise.
14018 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
14019 (rtx_size): Likewise.
14020 (rtx_alloc_stat_v): New.
14021 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
14022 (cwi_output_hex): New.
14023 (iterative_hash_rtx): Handle CONST_WIDE_INT.
14024 (cwi_check_failed_bounds): New.
14025 * rtl.def (CONST_WIDE_INT): New.
14026 * rtl.h: Include <utility> and wide-int.h.
14027 (struct hwivec_def): New.
14028 (CWI_GET_NUM_ELEM): New.
14029 (CWI_PUT_NUM_ELEM): New.
14030 (struct rtx_def): Add num_elem and hwiv.
14031 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
14032 (CASE_CONST_UNIQUE): Likewise.
14033 (CASE_CONST_ANY): Likewise.
14034 (CONST_SCALAR_INT_P): Likewise.
14035 (CONST_WIDE_INT_P): New.
14036 (CWI_ELT): New.
14037 (HWIVEC_CHECK): New.
14038 (cwi_check_failed_bounds): New.
14039 (CWI_ELT): New.
14040 (HWIVEC_CHECK): New.
14041 (CONST_WIDE_INT_VEC) New.
14042 (CONST_WIDE_INT_NUNITS) New.
14043 (CONST_WIDE_INT_ELT) New.
14044 (rtx_mode_t): New type.
14045 (wi::int_traits <rtx_mode_t>): New.
14046 (wi::shwi): New.
14047 (wi::min_value): New.
14048 (wi::max_value): New.
14049 (rtx_alloc_v) New.
14050 (const_wide_int_alloc): New.
14051 (immed_wide_int_const): New.
14052 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
14053 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
14054 * signop.h: New file.
14055 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
14056 (simplify_const_unary_operation): Use wide-int interfaces.
14057 (simplify_binary_operation_1): Likewise.
14058 (simplify_const_binary_operation): Likewise.
14059 (simplify_const_relational_operation): Likewise.
14060 (simplify_immed_subreg): Likewise.
14061 * stmt.c (expand_case): Likewise.
14062 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
14063 signop rather than a bool.
14064 * stor-layout.c (layout_type): Use wide-int interfaces.
14065 (initialize_sizetypes): Update calls to
14066 set_min_and_max_values_for_integral_type.
14067 (set_min_and_max_values_for_integral_type): Take a signop rather
14068 than a bool. Use wide-int interfaces.
14069 (fixup_signed_type): Update accordingly. Remove
14070 HOST_BITS_PER_DOUBLE_INT limit.
14071 (fixup_unsigned_type): Likewise.
14072 * system.h (STATIC_CONSTANT_P): New.
14073 (STATIC_ASSERT): New.
14074 * target.def (can_use_doloop_p): Take widest_ints rather than
14075 double_ints.
14076 * target.h: Include wide-int.h rather than double-int.h.
14077 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
14078 than double_ints.
14079 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
14080 rather than INT_CST_LT_UNSIGNED.
14081 (can_use_doloop_if_innermost): Take widest_ints rather than
14082 double_ints.
14083 * tree-affine.c: Include wide-int-print.h.
14084 (double_int_ext_for_comb): Delete.
14085 (wide_int_ext_for_comb): New.
14086 (aff_combination_zero): Use wide-int interfaces.
14087 (aff_combination_const): Take a widest_int instead of a double_int.
14088 (aff_combination_elt): Use wide-int interfaces.
14089 (aff_combination_scale): Take a widest_int instead of a double_int.
14090 (aff_combination_add_elt): Likewise.
14091 (aff_combination_add_cst): Likewise.
14092 (aff_combination_add): Use wide-int interfaces.
14093 (aff_combination_convert): Likewise.
14094 (tree_to_aff_combination): Likewise.
14095 (add_elt_to_tree): Take a widest_int instead of a double_int.
14096 (aff_combination_to_tree): Use wide-int interfaces.
14097 (aff_combination_remove_elt): Likewise.
14098 (aff_combination_add_product): Take a widest_int instead of
14099 a double_int.
14100 (aff_combination_mult): Use wide-int interfaces.
14101 (aff_combination_expand): Likewise.
14102 (double_int_constant_multiple_p): Delete.
14103 (wide_int_constant_multiple_p): New.
14104 (aff_combination_constant_multiple_p): Take a widest_int pointer
14105 instead of a double_int pointer.
14106 (print_aff): Use wide-int interfaces.
14107 (get_inner_reference_aff): Take a widest_int pointer
14108 instead of a double_int pointer.
14109 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
14110 * tree-affine.h: Include wide-int.h.
14111 (struct aff_comb_elt): Change type of coef to widest_int.
14112 (struct affine_tree_combination): Change type of offset to widest_int.
14113 (double_int_ext_for_comb): Delete.
14114 (wide_int_ext_for_comb): New.
14115 (aff_combination_const): Use widest_int instead of double_int.
14116 (aff_combination_scale): Likewise.
14117 (aff_combination_add_elt): Likewise.
14118 (aff_combination_constant_multiple_p): Likewise.
14119 (get_inner_reference_aff): Likewise.
14120 (aff_comb_cannot_overlap_p): Likewise.
14121 (aff_combination_zero_p): Use wide-int interfaces.
14122 * tree.c: Include tree.h.
14123 (init_ttree): Use make_int_cst.
14124 (tree_code_size): Removed code for INTEGER_CST case.
14125 (tree_size): Add INTEGER_CST case.
14126 (make_node_stat): Update comment.
14127 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
14128 (build_int_cst_type): Use wide-int interfaces.
14129 (double_int_to_tree): Likewise.
14130 (double_int_fits_to_tree_p): Delete.
14131 (force_fit_type_double): Delete.
14132 (force_fit_type): New.
14133 (int_cst_hash_hash): Use wide-int interfaces.
14134 (int_cst_hash_eq): Likewise.
14135 (build_int_cst_wide): Delete.
14136 (wide_int_to_tree): New.
14137 (cache_integer_cst): Use wide-int interfaces.
14138 (build_low_bits_mask): Likewise.
14139 (cst_and_fits_in_hwi): Likewise.
14140 (real_value_from_int_cst): Likewise.
14141 (make_int_cst_stat): New.
14142 (integer_zerop): Use wide_int interfaces.
14143 (integer_onep): Likewise.
14144 (integer_all_onesp): Likewise.
14145 (integer_pow2p): Likewise.
14146 (integer_nonzerop): Likewise.
14147 (tree_log2): Likewise.
14148 (tree_floor_log2): Likewise.
14149 (tree_ctz): Likewise.
14150 (int_size_in_bytes): Likewise.
14151 (mem_ref_offset): Return an offset_int rather than a double_int.
14152 (build_type_attribute_qual_variant): Use wide_int interfaces.
14153 (type_hash_eq): Likewise
14154 (tree_int_cst_equal): Likewise.
14155 (tree_int_cst_lt): Delete.
14156 (tree_int_cst_compare): Likewise.
14157 (tree_fits_shwi_p): Use wide_int interfaces.
14158 (tree_fits_uhwi_p): Likewise.
14159 (tree_int_cst_sign_bit): Likewise.
14160 (tree_int_cst_sgn): Likewise.
14161 (tree_int_cst_min_precision): Take a signop rather than a bool.
14162 (simple_cst_equal): Use wide_int interfaces.
14163 (compare_tree_int): Likewise.
14164 (iterative_hash_expr): Likewise.
14165 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
14166 INT_CST_LT.
14167 (get_type_static_bounds): Use wide_int interfaces.
14168 (tree_int_cst_elt_check_failed): New.
14169 (build_common_tree_nodes): Reordered to set prec before filling in
14170 value.
14171 (int_cst_value): Check cst_and_fits_in_hwi.
14172 (widest_int_cst_value): Use wide_int interfaces.
14173 (upper_bound_in_type): Likewise.
14174 (lower_bound_in_type): Likewise.
14175 (num_ending_zeros): Likewise.
14176 (drop_tree_overflow): Likewise.
14177 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
14178 (gen_conditions_for_pow_cst_base): Likewise.
14179 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
14180 (group_case_labels_stmt): Use wide-int interfaces.
14181 (verify_gimple_assign_binary): Likewise.
14182 (print_loop): Likewise.
14183 * tree-chrec.c (tree_fold_binomial): Likewise.
14184 * tree-core.h (struct tree_base): Add int_length.
14185 (struct tree_int_cst): Change rep of value.
14186 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
14187 (dr_may_alias_p): Likewise.
14188 (max_stmt_executions_tree): Likewise.
14189 * tree.def (INTEGER_CST): Update comment.
14190 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
14191 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
14192 * tree-dump.c: Include wide-int.h and wide-int-print.h.
14193 (dequeue_and_dump): Use wide-int interfaces.
14194 * tree.h: Include wide-int.h.
14195 (NULL_TREE): Moved to earlier loc in file.
14196 (TREE_INT_CST_ELT_CHECK): New.
14197 (tree_int_cst_elt_check_failed): New.
14198 (TYPE_SIGN): New.
14199 (TREE_INT_CST): Delete.
14200 (TREE_INT_CST_LOW): Use wide-int interfaces.
14201 (TREE_INT_CST_HIGH): Delete.
14202 (TREE_INT_CST_NUNITS): New.
14203 (TREE_INT_CST_EXT_NUNITS): Likewise.
14204 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
14205 (TREE_INT_CST_ELT): Likewise.
14206 (INT_CST_LT): Delete.
14207 (tree_int_cst_elt_check): New (two forms).
14208 (type_code_size): Update comment.
14209 (make_int_cst_stat, make_int_cst): New.
14210 (tree_to_double_int): Delete.
14211 (double_int_fits_to_tree_p): Delete.
14212 (force_fit_type_double): Delete.
14213 (build_int_cstu): Replace with out-of-line function.
14214 (build_int_cst_wide): Delete.
14215 (tree_int_cst_lt): Define inline.
14216 (tree_int_cst_le): New.
14217 (tree_int_cst_compare): Define inline.
14218 (tree_int_cst_min_precision): Take a signop rather than a bool.
14219 (wi::int_traits <const_tree>): New.
14220 (wi::int_traits <tree>): New.
14221 (wi::extended_tree): New.
14222 (wi::int_traits <wi::extended_tree>): New.
14223 (wi::to_widest): New.
14224 (wi::to_offset): New.
14225 (wi::fits_to_tree_p): New.
14226 (wi::min_value): New.
14227 (wi::max_value): New.
14228 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
14229 (copy_tree_body_r): Likewise.
14230 * tree-object-size.c (compute_object_offset): Likewise.
14231 (addr_object_size): Likewise.
14232 * tree-predcom.c: Include wide-int-print.h.
14233 (struct dref_d): Change type of offset to widest_int.
14234 (dump_dref): Call wide-int printer.
14235 (aff_combination_dr_offset): Use wide-int interfaces.
14236 (determine_offset): Take a widest_int pointer rather than a
14237 double_int pointer.
14238 (split_data_refs_to_components): Use wide-int interfaces.
14239 (suitable_component_p): Likewise.
14240 (order_drefs): Likewise.
14241 (add_ref_to_chain): Likewise.
14242 (valid_initializer_p): Likewise.
14243 (determine_roots_comp): Likewise.
14244 * tree-pretty-print.c: Include wide-int-print.h.
14245 (dump_generic_node): Use wide-int interfaces.
14246 * tree-sra.c (sra_ipa_modify_expr): Likewise.
14247 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
14248 (move_fixed_address_to_symbol): Likewise.
14249 (move_hint_to_base): Likewise.
14250 (move_pointer_to_base): Likewise.
14251 (move_variant_to_index): Likewise.
14252 (most_expensive_mult_to_index): Likewise.
14253 (addr_to_parts): Likewise.
14254 (copy_ref_info): Likewise.
14255 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
14256 (indirect_refs_may_alias_p): Likewise.
14257 (stmt_kills_ref_p_1): Likewise.
14258 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
14259 * tree-ssa-ccp.c: Update comment at top of file. Include
14260 wide-int-print.h.
14261 (struct prop_value_d): Change type of mask to widest_int.
14262 (extend_mask): New function.
14263 (dump_lattice_value): Use wide-int interfaces.
14264 (get_default_value): Likewise.
14265 (set_constant_value): Likewise.
14266 (set_value_varying): Likewise.
14267 (valid_lattice_transition): Likewise.
14268 (set_lattice_value): Likewise.
14269 (value_to_double_int): Delete.
14270 (value_to_wide_int): New.
14271 (get_value_from_alignment): Use wide-int interfaces.
14272 (get_value_for_expr): Likewise.
14273 (do_dbg_cnt): Likewise.
14274 (ccp_finalize): Likewise.
14275 (ccp_lattice_meet): Likewise.
14276 (bit_value_unop_1): Use widest_ints rather than double_ints.
14277 (bit_value_binop_1): Likewise.
14278 (bit_value_unop): Use wide-int interfaces.
14279 (bit_value_binop): Likewise.
14280 (bit_value_assume_aligned): Likewise.
14281 (evaluate_stmt): Likewise.
14282 (ccp_fold_stmt): Likewise.
14283 (visit_cond_stmt): Likewise.
14284 (ccp_visit_stmt): Likewise.
14285 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
14286 (constant_pointer_difference): Likewise.
14287 (associate_pointerplus): Likewise.
14288 (combine_conversions): Likewise.
14289 * tree-ssa-loop.h: Include wide-int.h.
14290 (struct tree_niter_desc): Change type of max to widest_int.
14291 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
14292 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
14293 (remove_redundant_iv_tests): Likewise.
14294 (canonicalize_loop_induction_variables): Likewise.
14295 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
14296 (constant_multiple_of): Take a widest_int pointer instead of
14297 a double_int pointer.
14298 (get_computation_aff): Use wide-int interfaces.
14299 (ptr_difference_cost): Likewise.
14300 (difference_cost): Likewise.
14301 (get_loop_invariant_expr_id): Likewise.
14302 (get_computation_cost_at): Likewise.
14303 (iv_elimination_compare_lt): Likewise.
14304 (may_eliminate_iv): Likewise.
14305 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
14306 instead of double_int.
14307 (max_loop_iterations): Likewise.
14308 (max_stmt_executions): Likewise.
14309 (estimated_stmt_executions): Likewise.
14310 * tree-ssa-loop-niter.c: Include wide-int-print.h.
14311 (split_to_var_and_offset): Use wide-int interfaces.
14312 (determine_value_range): Likewise.
14313 (bound_difference_of_offsetted_base): Likewise.
14314 (bounds_add): Take a widest_int instead of a double_int.
14315 (number_of_iterations_ne_max): Use wide-int interfaces.
14316 (number_of_iterations_ne): Likewise.
14317 (number_of_iterations_lt_to_ne): Likewise.
14318 (assert_loop_rolls_lt): Likewise.
14319 (number_of_iterations_lt): Likewise.
14320 (number_of_iterations_le): Likewise.
14321 (number_of_iterations_cond): Likewise.
14322 (number_of_iterations_exit): Likewise.
14323 (finite_loop_p): Likewise.
14324 (derive_constant_upper_bound_assign): Likewise.
14325 (derive_constant_upper_bound): Return a widest_int.
14326 (derive_constant_upper_bound_ops): Likewise.
14327 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
14328 (record_estimate): Take a widest_int rather than a double_int.
14329 (record_nonwrapping_iv): Use wide-int interfaces.
14330 (double_int_cmp): Delete.
14331 (wide_int_cmp): New.
14332 (bound_index): Take a widest_int rather than a double_int.
14333 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
14334 (maybe_lower_iteration_bound): Likewise.
14335 (estimate_numbers_of_iterations_loop): Likewise.
14336 (estimated_loop_iterations): Take a widest_int pointer than than
14337 a double_int pointer.
14338 (estimated_loop_iterations_int): Use wide-int interfaces.
14339 (max_loop_iterations): Take a widest_int pointer than than
14340 a double_int pointer.
14341 (max_loop_iterations_int): Use wide-int interfaces.
14342 (max_stmt_executions): Take a widest_int pointer than than
14343 a double_int pointer.
14344 (estimated_stmt_executions): Likewise.
14345 (n_of_executions_at_most): Use wide-int interfaces.
14346 (scev_probably_wraps_p): Likewise.
14347 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
14348 to real_to_integer.
14349 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
14350 interfaces.
14351 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
14352 double_ints. Adjust for trailing_wide_ints <3> representation.
14353 (set_nonzero_bits): Likewise.
14354 (get_range_info): Return wide_ints rather than double_ints.
14355 Adjust for trailing_wide_ints <3> representation.
14356 (get_nonzero_bits): Likewise.
14357 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
14358 representation.
14359 * tree-ssanames.h (struct range_info_def): Replace min, max and
14360 nonzero_bits with a trailing_wide_ints <3>.
14361 (set_range_info): Use wide_int_refs rather than double_ints.
14362 (set_nonzero_bits): Likewise.
14363 (get_range_info): Return wide_ints rather than double_ints.
14364 (get_nonzero_bits): Likewise.
14365 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
14366 * tree-ssa-pre.c (phi_translate_1): Likewise.
14367 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
14368 (acceptable_pow_call): Likewise.
14369 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
14370 interfaces.
14371 (vn_reference_fold_indirect): Likewise.
14372 (vn_reference_maybe_forwprop_address): Likewise.
14373 (valueize_refs_1): Likewise.
14374 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
14375 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
14376 tree_int_cst_lt and tree_int_cst_le.
14377 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
14378 interfaces.
14379 (streamer_alloc_tree): Likewise.
14380 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
14381 (streamer_write_tree_header): Likewise.
14382 (streamer_write_integer_cst): Likewise.
14383 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
14384 (build_constructors): Likewise.
14385 (array_value_type): Likewise.
14386 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
14387 (vect_check_gather): Likewise.
14388 * tree-vect-generic.c (build_replicated_const): Likewise.
14389 (expand_vector_divmod): Likewise.
14390 * tree-vect-loop.c (vect_transform_loop): Likewise.
14391 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
14392 (vect_do_peeling_for_alignment): Likewise.
14393 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
14394 * tree-vrp.c: Include wide-int.h.
14395 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
14396 (extract_range_from_assert): Use wide-int interfaces.
14397 (vrp_int_const_binop): Likewise.
14398 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
14399 double_int pointers.
14400 (ranges_from_anti_range): Use wide-int interfaces.
14401 (quad_int_cmp): Delete.
14402 (quad_int_pair_sort): Likewise.
14403 (extract_range_from_binary_expr_1): Use wide-int interfaces.
14404 (extract_range_from_unary_expr_1): Likewise.
14405 (adjust_range_with_scev): Likewise.
14406 (masked_increment): Take and return wide_ints rather than double_ints.
14407 (register_edge_assert_for_2): Use wide-int interfaces.
14408 (check_array_ref): Likewise.
14409 (search_for_addr_array): Likewise.
14410 (maybe_set_nonzero_bits): Likewise.
14411 (union_ranges): Pass an integer of the correct type instead of
14412 using integer_one_node.
14413 (intersect_ranges): Likewise.
14414 (simplify_truth_ops_using_ranges): Likewise.
14415 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
14416 (range_fits_type_p): Likewise.
14417 (simplify_cond_using_ranges): Likewise. Take a signop rather than
14418 a bool.
14419 (simplify_conversion_using_ranges): Use wide-int interfaces.
14420 (simplify_float_conversion_using_ranges): Likewise.
14421 (vrp_finalize): Likewise.
14422 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
14423 (gimple_stringops_transform): Likewise.
14424 * varasm.c (decode_addr_const): Likewise.
14425 (const_hash_1): Likewise.
14426 (const_rtx_hash_1): Likewise
14427 (output_constant): Likewise.
14428 (array_size_for_constructor): Likewise.
14429 (output_constructor_regular_field): Likewise.
14430 (output_constructor_bitfield): Likewise.
14431 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
14432 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
14433 GENERATOR_FILEs.
14434 * gencheck.c: Define BITS_PER_UNIT.
14435 * wide-int.cc: New.
14436 * wide-int.h: New.
14437 * wide-int-print.cc: New.
14438 * wide-int-print.h: New.
14439
14440 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14441
14442 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
14443
14444 2014-05-06 Richard Biener <rguenther@suse.de>
14445
14446 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
14447 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
14448 (TODO_verify_all): Adjust.
14449 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
14450 TODO_verify_stmts and TODO_verify_rtl_sharing.
14451 * bb-reorder.c: Likewise.
14452 * cfgexpand.c: Likewise.
14453 * cprop.c: Likewise.
14454 * cse.c: Likewise.
14455 * function.c: Likewise.
14456 * fwprop.c: Likewise.
14457 * gcse.c: Likewise.
14458 * gimple-ssa-isolate-paths.c: Likewise.
14459 * gimple-ssa-strength-reduction.c: Likewise.
14460 * ipa-split.c: Likewise.
14461 * loop-init.c: Likewise.
14462 * loop-unroll.c: Likewise.
14463 * lower-subreg.c: Likewise.
14464 * modulo-sched.c: Likewise.
14465 * postreload-gcse.c: Likewise.
14466 * predict.c: Likewise.
14467 * recog.c: Likewise.
14468 * sched-rgn.c: Likewise.
14469 * store-motion.c: Likewise.
14470 * tracer.c: Likewise.
14471 * trans-mem.c: Likewise.
14472 * tree-call-cdce.c: Likewise.
14473 * tree-cfg.c: Likewise.
14474 * tree-cfgcleanup.c: Likewise.
14475 * tree-complex.c: Likewise.
14476 * tree-eh.c: Likewise.
14477 * tree-emutls.c: Likewise.
14478 * tree-if-conv.c: Likewise.
14479 * tree-into-ssa.c: Likewise.
14480 * tree-loop-distribution.c: Likewise.
14481 * tree-object-size.c: Likewise.
14482 * tree-parloops.c: Likewise.
14483 * tree-pass.h: Likewise.
14484 * tree-sra.c: Likewise.
14485 * tree-ssa-ccp.c: Likewise.
14486 * tree-ssa-copy.c: Likewise.
14487 * tree-ssa-copyrename.c: Likewise.
14488 * tree-ssa-dce.c: Likewise.
14489 * tree-ssa-dom.c: Likewise.
14490 * tree-ssa-dse.c: Likewise.
14491 * tree-ssa-forwprop.c: Likewise.
14492 * tree-ssa-ifcombine.c: Likewise.
14493 * tree-ssa-loop-ch.c: Likewise.
14494 * tree-ssa-loop-ivcanon.c: Likewise.
14495 * tree-ssa-loop.c: Likewise.
14496 * tree-ssa-math-opts.c: Likewise.
14497 * tree-ssa-phiopt.c: Likewise.
14498 * tree-ssa-phiprop.c: Likewise.
14499 * tree-ssa-pre.c: Likewise.
14500 * tree-ssa-reassoc.c: Likewise.
14501 * tree-ssa-sink.c: Likewise.
14502 * tree-ssa-strlen.c: Likewise.
14503 * tree-ssa-tail-merge.c: Likewise.
14504 * tree-ssa-uncprop.c: Likewise.
14505 * tree-switch-conversion.c: Likewise.
14506 * tree-tailcall.c: Likewise.
14507 * tree-vect-generic.c: Likewise.
14508 * tree-vectorizer.c: Likewise.
14509 * tree-vrp.c: Likewise.
14510 * tsan.c: Likewise.
14511 * var-tracking.c: Likewise.
14512 * bt-load.c: Likewise.
14513 * cfgcleanup.c: Likewise.
14514 * combine-stack-adj.c: Likewise.
14515 * combine.c: Likewise.
14516 * compare-elim.c: Likewise.
14517 * config/epiphany/resolve-sw-modes.c: Likewise.
14518 * config/i386/i386.c: Likewise.
14519 * config/mips/mips.c: Likewise.
14520 * config/s390/s390.c: Likewise.
14521 * config/sh/sh_treg_combine.cc: Likewise.
14522 * config/sparc/sparc.c: Likewise.
14523 * dce.c: Likewise.
14524 * dse.c: Likewise.
14525 * final.c: Likewise.
14526 * ifcvt.c: Likewise.
14527 * mode-switching.c: Likewise.
14528 * passes.c: Likewise.
14529 * postreload.c: Likewise.
14530 * ree.c: Likewise.
14531 * reg-stack.c: Likewise.
14532 * regcprop.c: Likewise.
14533 * regrename.c: Likewise.
14534 * web.c: Likewise.
14535
14536 2014-05-06 Richard Biener <rguenther@suse.de>
14537
14538 PR middle-end/61070
14539 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
14540 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
14541
14542 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
14543
14544 PR ipa/60965
14545 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
14546
14547 2014-05-05 Radovan Obradovic <robradovic@mips.com>
14548 Tom de Vries <tom@codesourcery.com>
14549
14550 * target.def (call_fusage_contains_non_callee_clobbers): New
14551 DEFHOOKPOD.
14552 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
14553 Hooks to @menu.
14554 (@node Miscellaneous Register Hooks): New node.
14555 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
14556 * doc/tm.texi: Regenerate.
14557
14558 2014-05-05 Marek Polacek <polacek@redhat.com>
14559
14560 PR driver/61065
14561 * opts.c (common_handle_option): Call error_at instead of warning_at.
14562
14563 2014-05-05 Richard Biener <rguenther@suse.de>
14564
14565 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
14566 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
14567 under the TODO_verify_il umbrella.
14568
14569 2014-05-05 Richard Biener <rguenther@suse.de>
14570
14571 * passes.c (execute_function_todo): Move TODO_verify_flow under
14572 the TODO_verify_ul umbrella.
14573
14574 2014-05-05 Richard Biener <rguenther@suse.de>
14575
14576 PR middle-end/61010
14577 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
14578 X & CST away from a CST that is the mask of a mode.
14579
14580 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14581
14582 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
14583 int argument to enum machine_mode.
14584 (picochip_class_max_nregs): Ditto.
14585 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
14586 (picochip_class_max_nregs): Ditto.
14587
14588 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14589
14590 * target.def: Add new target hook.
14591 * doc/tm.texi: Regenerate.
14592 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
14593 * targhooks.c (default_keep_leaf_when_profiled): New function.
14594
14595 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
14596 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
14597
14598 2014-05-05 Bin Cheng <bin.cheng@arm.com>
14599
14600 PR tree-optimization/60363
14601 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
14602 (copy_phi_args): New parameters. Call get_value_locus_in_path.
14603 (update_destination_phis): New parameter.
14604 (create_edge_and_update_destination_phis): Ditto.
14605 (ssa_fix_duplicate_block_edges): Pass new arguments.
14606 (thread_single_edge): Ditto.
14607
14608 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
14609
14610 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
14611 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
14612 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
14613 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
14614 Use RS6000_BTM_HARD_FLOAT.
14615 (BU_MISC_2): Likewise.
14616 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
14617 RS6000_BTM_HARD_FLOAT.
14618 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
14619 is explicitly used.
14620 (rs6000_invalid_builtin): Add hard floating builtin support.
14621 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
14622 hard float builtins.
14623 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
14624
14625 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14626
14627 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
14628 Add missing function* argument.
14629
14630 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
14631
14632 * lra-constraints.c (valid_address_p): Move earlier in file.
14633 Add a constraint argument to the address_info version.
14634 (satisfies_memory_constraint_p): New function.
14635 (satisfies_address_constraint_p): Likewise.
14636 (process_alt_operands, curr_insn_transform): Use them.
14637 (process_address): Pass the constraint to valid_address_p when
14638 checking address operands.
14639
14640 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
14641
14642 * config/mips/mips.c (mips_isa_rev): New variable.
14643 (mips_set_architecture): Set it.
14644 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
14645 from mips_isa_rev.
14646 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
14647 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
14648 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
14649 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
14650 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
14651 conditions in terms of mips_isa_rev.
14652 (mips_isa_rev): Declare.
14653
14654 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14655
14656 * config/sh/sh-mem.cc: Use tabs instead of spaces.
14657 (prob_unlikely, prob_likely): Make variables const.
14658
14659 2014-05-03 Denis Chertykov <chertykov@gmail.com>
14660
14661 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
14662
14663 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14664
14665 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
14666
14667 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14668
14669 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
14670 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
14671 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
14672 functions.
14673 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
14674 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
14675 sh_pass_in_reg_p.
14676 Replace usage of ROUND_REG with sh_round_reg.
14677 Use CEIL instead of ROUND_ADVANCE.
14678
14679 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14680
14681 PR target/61026
14682 * config/sh/sh.c: Include stdlib headers before everything else.
14683
14684 2014-05-02 Jakub Jelinek <jakub@redhat.com>
14685
14686 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
14687 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
14688 (gimplify_adjust_omp_clauses): Simd region is never
14689 directly nested in combined parallel. Instead, for linear
14690 with copyin/copyout, if in combined for simd loop, make decl
14691 firstprivate/lastprivate on OMP_FOR.
14692 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
14693 expand_omp_for_static_chunk): When setting endvar, also set
14694 fd->loop.v to the same value.
14695
14696 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14697
14698 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
14699
14700 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
14701
14702 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
14703 expression.
14704
14705 2014-05-02 Marek Polacek <polacek@redhat.com>
14706
14707 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
14708
14709 2014-05-02 Kito Cheng <kito@0xlab.org>
14710
14711 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
14712 to a C expression marco.
14713 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
14714 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
14715 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
14716 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
14717 HONOR_REG_ALLOC_ORDER.
14718 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
14719
14720 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14721
14722 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
14723
14724 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14725
14726 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
14727
14728 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
14729
14730 * tree-if-conv.c (is_cond_scalar_reduction): New function.
14731 (convert_scalar_cond_reduction): Likewise.
14732 (predicate_scalar_phi): Add recognition and transformation
14733 of simple conditioanl reduction to be vectorizable.
14734
14735 2014-05-01 Marek Polacek <polacek@redhat.com>
14736
14737 PR c/43245
14738 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
14739
14740 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
14741
14742 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
14743 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
14744 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
14745 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
14746 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
14747 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
14748 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
14749 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
14750
14751 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
14752
14753 * config/arc/arc.opt (mlra): Move comment above option name
14754 to avoid mis-parsing as language options.
14755
14756 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14757
14758 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
14759 * config/sol2.h: ... here.
14760 * config/sol2-10.h: Remove.
14761
14762 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
14763 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
14764 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
14765 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
14766 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
14767 * config/sol2.h: ... here.
14768 (SECTION_NAME_FORMAT): Don't redefine.
14769 (STARTFILE_ARCH32_SPEC): Rename to ...
14770 (STARTFILE_ARCH_SPEC): ... this.
14771 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14772 * config/sparc/sol2.h: ... here.
14773 (SECTION_NAME_FORMAT): Don't undef.
14774 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
14775 (SUBTARGET_EXTRA_SPECS): Remove.
14776 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
14777
14778 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
14779 (MD_STARTFILE_PREFIX): Remove.
14780 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
14781 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
14782 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
14783 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
14784 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
14785 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
14786 * config/i386/sol2.h: ... here.
14787 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
14788 * config/i386/sol2-bi.h: Remove.
14789 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
14790 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
14791
14792 * config/i386/t-sol2-64: Rename to ...
14793 * config/i386/t-sol2: ... this.
14794 * config/sparc/t-sol2-64: Rename to ...
14795 * config/sparc/t-sol2: ... this.
14796
14797 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
14798 sol2_tm_file_head, sol2_tm_file_tail.
14799 Include ${cpu_type}/sol2.h before sol2.h.
14800 Remove sol2-10.h.
14801 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
14802 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
14803 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
14804 Reflect i386/t-sol2-64 renaming.
14805 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
14806 Reflect sparc/t-sol2-64 renaming.
14807
14808 2014-04-30 Richard Biener <rguenther@suse.de>
14809
14810 * passes.c (execute_function_todo): Move TODO_verify_stmts
14811 and TODO_verify_ssa under the TODO_verify_il umbrella.
14812 * tree-ssa.h (verify_ssa): Adjust prototype.
14813 * tree-ssa.c (verify_ssa): Add parameter to tell whether
14814 we should verify SSA operands.
14815 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
14816 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
14817 whether we should verify whether not throwing stmts have EH info.
14818 * graphite-scop-detection.c (create_sese_edges): Adjust.
14819 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
14820 * tree-eh.c (lower_try_finally_switch): Do not add the
14821 default case label twice.
14822
14823 2014-04-30 Marek Polacek <polacek@redhat.com>
14824
14825 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
14826 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
14827 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
14828 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
14829
14830 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
14831
14832 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
14833 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
14834 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
14835 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
14836 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
14837 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
14838 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
14839 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
14840
14841 2014-04-29 David Malcolm <dmalcolm@redhat.com>
14842
14843 * tree-cfg.c (dump_function_to_file): Dump the return type of
14844 functions, in a line to itself before the function body, mimicking
14845 the layout of a C function.
14846
14847 2014-04-29 Jakub Jelinek <jakub@redhat.com>
14848
14849 PR tree-optimization/60971
14850 * tree-tailcall.c (process_assignment): Reject conversions which
14851 reduce precision.
14852
14853 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
14854
14855 * calls.c (initialize_argument_information): Always treat
14856 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
14857 (expand_call): Likewise.
14858 (emit_library_call_calue_1): Likewise.
14859 * expr.c (PUSH_ARGS_REVERSED): Do not define.
14860 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
14861 code accordingly.
14862
14863 2014-04-29 Nick Clifton <nickc@redhat.com>
14864
14865 * config/msp430/msp430.md (umulsidi): Fix typo.
14866 (mulhisi3): Enable even inside interrupt handlers.
14867 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
14868 bigger return address pushed in large mode.
14869
14870 2014-04-29 Nick Clifton <nickc@redhat.com>
14871
14872 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
14873 (arc_init_reg_tables): Use a machine_mode enum to iterate over
14874 available modes.
14875 * config/m32r/m32r.c (init_reg_tables): Likewise.
14876 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
14877 enum to hold the modes.
14878
14879 2014-04-29 Richard Biener <rguenther@suse.de>
14880
14881 * dominance.c (free_dominance_info): Add overload with
14882 function parameter.
14883 (dom_info_state): Likewise.
14884 (dom_info_available_p): Likewise.
14885 * basic-block.h (free_dominance_info, dom_info_state,
14886 dom_info_available_p): Declare overloads.
14887 * passes.c (execute_function_todo): Verify that verifiers
14888 don't change dominator info state. Drop dominator info
14889 for IPA pass invocations.
14890 * cgraph.c (release_function_body): Restore asserts that
14891 dominator information is released.
14892
14893 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
14894
14895 * doc/invoke.texi: Fix typo.
14896 * tree-vrp.c: Fix typos.
14897 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
14898
14899 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14900
14901 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
14902
14903 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
14904
14905 * config/aarch64/aarch64-builtins.c
14906 (aarch64_types_storestruct_lane_qualifiers): New.
14907 (TYPES_STORESTRUCT_LANE): Likewise.
14908 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
14909 (st3_lane): Likewise.
14910 (st4_lane): Likewise.
14911 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
14912 (vec_store_lanesci_lane<mode>): Likewise.
14913 (vec_store_lanesxi_lane<mode>): Likewise.
14914 (aarch64_st2_lane<VQ:mode>): Likewise.
14915 (aarch64_st3_lane<VQ:mode>): Likewise.
14916 (aarch64_st4_lane<VQ:mode>): Likewise.
14917 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
14918 * config/aarch64/arm_neon.h
14919 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
14920 use new macro arguments.
14921 (__ST3_LANE_FUNC): Likewise.
14922 (__ST4_LANE_FUNC): Likewise.
14923 * config/aarch64/iterators.md (V_TWO_ELEM): New.
14924 (V_THREE_ELEM): Likewise.
14925 (V_FOUR_ELEM): Likewise.
14926
14927 2014-04-28 David Malcolm <dmalcolm@redhat.com>
14928
14929 * doc/gimple.texi: Replace the description of the now-defunct
14930 union gimple_statement_d with a diagram showing the
14931 gimple_statement_base class hierarchy and its relationships to
14932 the GSS_ and GIMPLE_ enums.
14933
14934 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
14935
14936 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
14937 * config/aarch64/aarch64.c
14938 (aarch64_cannot_change_mode_class): Weaken conditions.
14939 (aarch64_modes_tieable_p): New.
14940 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
14941
14942 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
14943
14944 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
14945 (loadsync_<mode>): Change mode.
14946 (load_quadpti, store_quadpti): New.
14947 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
14948 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
14949
14950 2014-04-28 Martin Jambor <mjambor@suse.cz>
14951
14952 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
14953 same alias type as the original statement.
14954 (subreplacement_assignment_data): New type.
14955 (handle_unscalarized_data_in_subtree): New type of parameter,
14956 generate new memory accesses with same alias type as the original
14957 statement.
14958 (load_assign_lhs_subreplacements): Likewise.
14959 (sra_modify_constructor_assign): Generate new memory accesses with
14960 same alias type as the original statement.
14961
14962 2014-04-28 Richard Biener <rguenther@suse.de>
14963
14964 * tree-pass.h (TODO_verify_il): Define.
14965 (TODO_verify_all): Complete properly.
14966 * passes.c (execute_function_todo): Move existing loop-closed
14967 SSA verification under TODO_verify_il.
14968 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
14969 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
14970 Fix tree sharing issue.
14971
14972 2014-04-28 Richard Biener <rguenther@suse.de>
14973
14974 PR middle-end/60092
14975 * builtins.def (DEF_C11_BUILTIN): Add.
14976 (BUILT_IN_ALIGNED_ALLOC): Likewise.
14977 * coretypes.h (enum function_class): Add function_c11_misc.
14978 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14979 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
14980 (call_may_clobber_ref_p_1): Likewise.
14981 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14982 (mark_all_reaching_defs_necessary_1): Likewise.
14983 (propagate_necessity): Likewise.
14984 (eliminate_unnecessary_stmts): Likewise.
14985 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
14986
14987 2014-04-28 Richard Biener <rguenther@suse.de>
14988
14989 * tree-vrp.c (vrp_var_may_overflow): Remove.
14990 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
14991 with overflow immediately bump to one before that value and
14992 let iteration figure out overflow status.
14993
14994 2014-04-28 Richard Biener <rguenther@suse.de>
14995
14996 * configure.ac: Do valgrind header checks unconditionally.
14997 Add --enable-valgrind-annotations.
14998 * system.h: Guard valgrind header inclusion with
14999 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
15000 * alloc-pool.c (pool_alloc, pool_free): Use
15001 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
15002 to guard possibly dead code.
15003 * config.in: Regenerated.
15004 * configure: Likewise.
15005
15006 2014-04-28 Jeff Law <law@redhat.com>
15007
15008 PR tree-optimization/60902
15009 * tree-ssa-threadedge.c
15010 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
15011 over real defs when invalidating outputs from statements that do not
15012 produce useful outputs for threading.
15013
15014 2014-04-28 Richard Biener <rguenther@suse.de>
15015
15016 PR tree-optimization/60979
15017 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
15018 SCOPs that end in a block with a successor with abnormal
15019 predecessors.
15020
15021 2014-04-28 Richard Biener <rguenther@suse.de>
15022
15023 * tree-pass.h (execute_pass_list): Adjust prototype.
15024 * passes.c (pass_manager::execute_early_local_passes): Adjust.
15025 (do_per_function): Change callback signature, push all actual
15026 work to the callbals.
15027 (do_per_function_toporder): Likewise.
15028 (execute_function_dump): Adjust.
15029 (execute_function_todo): Likewise.
15030 (clear_last_verified): Likewise.
15031 (verify_curr_properties): Likewise.
15032 (update_properties_after_pass): Likewise.
15033 (execute_pass_list_1): Split out from ...
15034 (execute_pass_list): ... here. Adjust.
15035 (execute_ipa_pass_list): Likewise.
15036 * cgraphunit.c (cgraph_add_new_function): Adjust.
15037 (analyze_function): Likewise.
15038 (expand_function): Likewise.
15039 * cgraph.c (release_function_body): Free dominance info
15040 here instead of asserting it was magically freed elsewhere.
15041
15042 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
15043
15044 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
15045 * configure: Regenerate.
15046 * config/sparc/sparc.opt (muser-mode): New option.
15047 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
15048 for LEON3.
15049 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
15050 * doc/invoke.texi (SPARC options): Document -muser-mode.
15051
15052 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
15053
15054 * cselib.c (find_slot_memmode): Delete.
15055 (cselib_hasher): Change compare_type to a struct.
15056 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
15057 constants.
15058 (preserve_constants_and_equivs): Adjust for new compare_type.
15059 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
15060 (wrap_constant): Delete.
15061 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
15062
15063 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
15064
15065 * doc/install.texi (Building with profile feedback): Remove
15066 outdated sentence.
15067
15068 2014-04-26 Tom de Vries <tom@codesourcery.com>
15069
15070 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
15071 array accesses.
15072
15073 2014-04-25 Cary Coutant <ccoutant@google.com>
15074
15075 PR debug/60929
15076 * dwarf2out.c (should_move_die_to_comdat): A type definition
15077 can contain a subprogram definition, but don't move it to a
15078 comdat unit.
15079 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
15080 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
15081 from original DIE.
15082 (clone_tree_hash): Rename to...
15083 (clone_tree_partial): ...this; change callers. Copy
15084 DW_TAG_subprogram DIEs as declarations.
15085 (copy_decls_walk): Don't copy children of a declaration into a
15086 type unit.
15087
15088 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
15089
15090 PR target/60969
15091 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
15092 alternative 12.
15093
15094 2014-04-25 Jiong Wang <jiong.wang@arm.com>
15095
15096 * config/arm/predicates.md (call_insn_operand): Add long_call check.
15097 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
15098 reg for long_call.
15099 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
15100 restriction.
15101
15102 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15103
15104 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
15105
15106 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15107
15108 PR tree-optimization/60930
15109 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
15110 creating a multiply candidate by folding two constant
15111 multiplicands when the result overflows.
15112
15113 2014-04-25 Jakub Jelinek <jakub@redhat.com>
15114
15115 PR tree-optimization/60960
15116 * tree-vect-generic.c (expand_vector_operation): Only call
15117 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
15118
15119 2014-04-25 Tom de Vries <tom@codesourcery.com>
15120
15121 * expr.c (clobber_reg_mode): New function.
15122 * expr.h (clobber_reg): New function.
15123
15124 2014-04-25 Tom de Vries <tom@codesourcery.com>
15125
15126 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
15127 clobbers.
15128
15129 2014-04-25 Radovan Obradovic <robradovic@mips.com>
15130 Tom de Vries <tom@codesourcery.com>
15131
15132 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
15133 handle.
15134 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
15135 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
15136 new argument to find_all_hard_reg_sets call.
15137
15138 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15139
15140 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
15141 Use HOST_WIDE_INT_C for mask literal.
15142 (aarch_rev16_shleft_mask_imm_p): Likewise.
15143
15144 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
15145
15146 PR target/60941
15147 * config/sparc/sparc.md (ashlsi3_extend): Delete.
15148
15149 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
15150
15151 PR preprocessor/56540
15152 * config/i386/i386-c.c (ix86_target_macros): Define
15153 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
15154
15155 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15156
15157 * configure.ac (tga_func): Remove.
15158 (LIB_TLS_SPEC): Remove.
15159 * configure: Regenerate.
15160 * config.in: Regenerate.
15161 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
15162
15163 2014-04-25 Richard Biener <rguenther@suse.de>
15164
15165 PR ipa/60912
15166 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
15167 call stmt use/clobber sets during stmt walk instead of
15168 walking the possibly incomplete set of caller edges.
15169
15170 2014-04-25 Richard Biener <rguenther@suse.de>
15171
15172 PR ipa/60911
15173 * passes.c (apply_ipa_transforms): Inline into only caller ...
15174 (execute_one_pass): ... here. Properly bring in function
15175 bodies for nodes we want to apply IPA transforms to.
15176
15177 2014-04-24 Cong Hou <congh@google.com>
15178
15179 PR tree-optimization/60896
15180 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
15181 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
15182 (vect_mark_pattern_stmts): Set the def type of all statements in
15183 PATTERN_DEF_SEQ as vect_internal_def.
15184
15185 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15186
15187 * doc/extend.texi (PowerPC Built-in Functions): Document new
15188 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
15189 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
15190
15191 * config/rs6000/predicates.md (const_0_to_3_operand): New
15192 predicate to match 0..3 integer constants.
15193
15194 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
15195 to support adding miscellaneous builtin functions.
15196 (BU_DFP_MISC_2): Likewise.
15197 (BU_P7_MISC_1): Likewise.
15198 (BU_P7_MISC_2): Likewise.
15199 (BU_P8V_MISC_3): Likewise.
15200 (BU_MISC_1): Likewise.
15201 (BU_MISC_2): Likewise.
15202 (DIVWE): Add extended divide builtin functions.
15203 (DIVWEO): Likewise.
15204 (DIVWEU): Likewise.
15205 (DIVWEUO): Likewise.
15206 (DIVDE): Likewise.
15207 (DIVDEO): Likewise.
15208 (DIVDEU): Likewise.
15209 (DIVDEUO): Likewise.
15210 (DXEX): Add decimal floating-point builtin functions.
15211 (DXEXQ): Likewise.
15212 (DDEDPD): Likewise.
15213 (DDEDPDQ): Likewise.
15214 (DENBCD): Likewise.
15215 (DENBCDQ): Likewise.
15216 (DIEX): Likewise.
15217 (DIEXQ): Likewise.
15218 (DSCLI): Likewise.
15219 (DSCLIQ): Likewise.
15220 (DSCRI): Likewise.
15221 (DSCRIQ): Likewise.
15222 (CDTBCD): Add new BCD builtin functions.
15223 (CBCDTD): Likewise.
15224 (ADDG6S): Likewise.
15225 (BCDADD): Likewise.
15226 (BCDADD_LT): Likewise.
15227 (BCDADD_EQ): Likewise.
15228 (BCDADD_GT): Likewise.
15229 (BCDADD_OV): Likewise.
15230 (BCDSUB): Likewise.
15231 (BCDSUB_LT): Likewise.
15232 (BCDSUB_EQ): Likewise.
15233 (BCDSUB_GT): Likewise.
15234 (BCDSUB_OV): Likewise.
15235 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
15236 (UNPACK_TD): Likewise.
15237 (PACK_TF): Likewise.
15238 (UNPACK_TF): Likewise.
15239 (UNPACK_TF_0): Likewise.
15240 (UNPACK_TF_1): Likewise.
15241 (PACK_V1TI): Likewise.
15242 (UNPACK_V1TI): Likewise.
15243
15244 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
15245 support for decimal floating point builtin functions.
15246 (rs6000_expand_ternop_builtin): Add checks for the new builtin
15247 functions that take constant arguments.
15248 (rs6000_invalid_builtin): Add decimal floating point builtin support.
15249 (rs6000_init_builtins): Setup long double, _Decimal64, and
15250 _Decimal128 types for new builtin functions.
15251 (builtin_function_type): Set the unsigned flags appropriately for
15252 the new builtin functions.
15253 (rs6000_opt_masks): Add support for decimal floating point builtin
15254 functions.
15255
15256 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
15257 floating point builtin functions.
15258 (RS6000_BTM_COMMON): Likewise.
15259 (RS6000_BTI_long_double): Likewise.
15260 (RS6000_BTI_dfloat64): Likewise.
15261 (RS6000_BTI_dfloat128): Likewise.
15262 (long_double_type_internal_node): Likewise.
15263 (dfloat64_type_internal_node): Likewise.
15264 (dfloat128_type_internal_node): Likewise.
15265
15266 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
15267 2.07 bcd arithmetic instructions.
15268 (UNSPEC_BCDSUB): Likewise.
15269 (UNSPEC_BCD_OVERFLOW): Likewise.
15270 (UNSPEC_BCD_ADD_SUB): Likewise.
15271 (bcd_add_sub): Likewise.
15272 (BCD_TEST): Likewise.
15273 (bcd<bcd_add_sub>): Likewise.
15274 (bcd<bcd_add_sub>_test): Likewise.
15275 (bcd<bcd_add_sub>_test2): Likewise.
15276 (bcd<bcd_add_sub>_<code>): Likewise.
15277 (peephole2 for combined bcd ops): Likewise.
15278
15279 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
15280 decimal floating point builtin functions.
15281 (UNSPEC_DENBCD): Likewise.
15282 (UNSPEC_DXEX): Likewise.
15283 (UNSPEC_DIEX): Likewise.
15284 (UNSPEC_DSCLI): Likewise.
15285 (UNSPEC_DSCRI): Likewise.
15286 (D64_D128): Likewise.
15287 (dfp_suffix): Likewise.
15288 (dfp_ddedpd_<mode>): Likewise.
15289 (dfp_denbcd_<mode>): Likewise.
15290 (dfp_dxex_<mode>): Likewise.
15291 (dfp_diex_<mode>): Likewise.
15292 (dfp_dscli_<mode>): Likewise.
15293 (dfp_dscri_<mode>): Likewise.
15294
15295 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
15296 builtin functions.
15297 (UNSPEC_CDTBCD): Likewise.
15298 (UNSPEC_CBCDTD): Likewise.
15299 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
15300 (UNSPEC_DIVEO): Likewise.
15301 (UNSPEC_DIVEU): Likewise.
15302 (UNSPEC_DIVEUO): Likewise.
15303 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
15304 pack/unpack 128-bit types.
15305 (UNSPEC_PACK_128BIT): Likewise.
15306 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
15307 (udiv<mode>3): Use idiv_ldiv mode attribute.
15308 (div<mode>3): Likewise.
15309 (addg6s): Add new BCD builtin functions.
15310 (cdtbcd): Likewise.
15311 (cbcdtd): Likewise.
15312 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
15313 (div_extend): Likewise.
15314 (div<div_extend>_<mode>"): Likewise.
15315 (FP128_64): Add support for new builtin functions to pack/unpack
15316 128-bit types.
15317 (unpack<mode>): Likewise.
15318 (unpacktf_0): Likewise.
15319 (unpacktf_1): Likewise.
15320 (unpack<mode>_dm): Likewise.
15321 (unpack<mode>_nodm): Likewise.
15322 (pack<mode>): Likewise.
15323 (unpackv1ti): Likewise.
15324 (packv1ti): Likewise.
15325
15326 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
15327
15328 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
15329 is disabled.
15330
15331 2014-04-24 Jakub Jelinek <jakub@redhat.com>
15332
15333 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
15334 * gimplify.c (omp_is_private): Change last argument's type to int.
15335 Only diagnose lastprivate if the simd argument is 1, only diagnose
15336 linear if the simd argument is 2.
15337 (gimplify_omp_for): Adjust omp_is_private callers. When adding
15338 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
15339 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
15340 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
15341 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
15342 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
15343 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
15344 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
15345 * tree-nested.c (convert_nonlocal_omp_clauses,
15346 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
15347
15348 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
15349
15350 PR target/60822
15351 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
15352 operand 1.
15353
15354 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
15355
15356 * flag-types.h (enum ivar_visibility): Add.
15357
15358 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
15359
15360 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
15361 function * argument.
15362
15363 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
15364
15365 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
15366
15367 2014-04-24 Radovan Obradovic <robradovic@mips.com>
15368 Tom de Vries <tom@codesourcery.com>
15369
15370 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
15371 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
15372 reg-note.
15373 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
15374 * emit-rtl.c (try_split): Same.
15375
15376 2014-04-24 Radovan Obradovic <robradovic@mips.com>
15377 Tom de Vries <tom@codesourcery.com>
15378
15379 * common.opt (fuse-caller-save): New option.
15380
15381 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
15382
15383 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
15384 elements for big-endian.
15385
15386 2014-04-24 Richard Biener <rguenther@suse.de>
15387
15388 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
15389 during TER and instead use the sepops interface for expanding
15390 non-GIMPLE_SINGLE_RHS.
15391
15392 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15393
15394 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
15395 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
15396
15397 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15398
15399 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
15400 assembler 64-bit option.
15401 * configure: Regenerate.
15402
15403 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15404
15405 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
15406 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
15407 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
15408 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
15409 (TARGET_CRYPTO): Take TARGET_SIMD into account.
15410
15411 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15412
15413 * config/aarch64/aarch64-builtins.c
15414 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
15415 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
15416 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
15417 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
15418 builtins.
15419 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
15420 (Vrevsuff): New mode attribute.
15421
15422 2014-04-24 Terry Guo <terry.guo@arm.com>
15423
15424 * config/arm/arm.h (machine_function): Define variable
15425 after_arm_reorg here.
15426 * config/arm/arm.c (after_arm_reorg): Remove the definition.
15427 (arm_split_constant): Update the way to access variable
15428 after_arm_reorg.
15429 (arm_reorg): Ditto.
15430 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
15431
15432 2014-04-23 Tom de Vries <tom@codesourcery.com>
15433
15434 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
15435
15436 2014-04-23 David Malcolm <dmalcolm@redhat.com>
15437
15438 * is-a.h: Update comments to reflect the following changes to the
15439 "pointerness" of the API, making the template parameter match the
15440 return type, allowing use of is-a.h with typedefs of pointers.
15441 (is_a_helper::cast): Return a T rather then a pointer to a T, so
15442 that the return type matches the parameter to the is_a_helper.
15443 (as_a): Likewise.
15444 (dyn_cast): Likewise.
15445
15446 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
15447 pointer from the is-a.h API.
15448
15449 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
15450 (is_a_helper <cgraph_node *>::test): ...this, matching change to
15451 is-a.h API.
15452 (is_a_helper <varpool_node>::test): Likewise, convert to...
15453 (is_a_helper <varpool_node *>::test): ...this.
15454
15455 (varpool_first_variable): Update for removal of implicit pointer
15456 from the is-a.h API.
15457 (varpool_next_variable): Likewise.
15458 (varpool_first_static_initializer): Likewise.
15459 (varpool_next_static_initializer): Likewise.
15460 (varpool_first_defined_variable): Likewise.
15461 (varpool_next_defined_variable): Likewise.
15462 (cgraph_first_defined_function): Likewise.
15463 (cgraph_next_defined_function): Likewise.
15464 (cgraph_first_function): Likewise.
15465 (cgraph_next_function): Likewise.
15466 (cgraph_first_function_with_gimple_body): Likewise.
15467 (cgraph_next_function_with_gimple_body): Likewise.
15468 (cgraph_alias_target): Likewise.
15469 (varpool_alias_target): Likewise.
15470 (cgraph_function_or_thunk_node): Likewise.
15471 (varpool_variable_node): Likewise.
15472 (symtab_real_symbol_p): Likewise.
15473 * cgraphunit.c (referred_to_p): Likewise.
15474 (analyze_functions): Likewise.
15475 (handle_alias_pairs): Likewise.
15476 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
15477 * gimple-ssa.h (gimple_vuse_op): Likewise.
15478 (gimple_vdef_op): Likewise.
15479 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
15480 * gimple.c (gimple_build_asm_1): Likewise.
15481 (gimple_build_try): Likewise.
15482 (gimple_build_resx): Likewise.
15483 (gimple_build_eh_dispatch): Likewise.
15484 (gimple_build_omp_for): Likewise.
15485 (gimple_omp_for_set_clauses): Likewise.
15486
15487 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
15488 (is_a_helper <gimple_statement_asm *>::test): ...this.
15489 (is_a_helper <gimple_statement_bind>::test): Convert to...
15490 (is_a_helper <gimple_statement_bind *>::test): ...this.
15491 (is_a_helper <gimple_statement_call>::test): Convert to...
15492 (is_a_helper <gimple_statement_call *>::test): ...this.
15493 (is_a_helper <gimple_statement_catch>::test): Convert to...
15494 (is_a_helper <gimple_statement_catch *>::test): ...this.
15495 (is_a_helper <gimple_statement_resx>::test): Convert to...
15496 (is_a_helper <gimple_statement_resx *>::test): ...this.
15497 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
15498 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
15499 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
15500 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
15501 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
15502 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
15503 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
15504 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
15505 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
15506 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
15507 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
15508 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
15509 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
15510 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
15511 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
15512 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
15513 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
15514 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
15515 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
15516 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
15517 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
15518 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
15519 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
15520 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
15521 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
15522 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
15523 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
15524 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
15525 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
15526 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
15527 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
15528 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
15529 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
15530 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
15531 (is_a_helper <gimple_statement_phi>::test): Convert to...
15532 (is_a_helper <gimple_statement_phi *>::test): ...this.
15533 (is_a_helper <gimple_statement_transaction>::test): Convert to...
15534 (is_a_helper <gimple_statement_transaction *>::test): ...this.
15535 (is_a_helper <gimple_statement_try>::test): Convert to...
15536 (is_a_helper <gimple_statement_try *>::test): ...this.
15537 (is_a_helper <gimple_statement_wce>::test): Convert to...
15538 (is_a_helper <gimple_statement_wce *>::test): ...this.
15539 (is_a_helper <const gimple_statement_asm>::test): Convert to...
15540 (is_a_helper <const gimple_statement_asm *>::test): ...this.
15541 (is_a_helper <const gimple_statement_bind>::test): Convert to...
15542 (is_a_helper <const gimple_statement_bind *>::test): ...this.
15543 (is_a_helper <const gimple_statement_call>::test): Convert to...
15544 (is_a_helper <const gimple_statement_call *>::test): ...this.
15545 (is_a_helper <const gimple_statement_catch>::test): Convert to...
15546 (is_a_helper <const gimple_statement_catch *>::test): ...this.
15547 (is_a_helper <const gimple_statement_resx>::test): Convert to...
15548 (is_a_helper <const gimple_statement_resx *>::test): ...this.
15549 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
15550 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
15551 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
15552 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
15553 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
15554 Convert to...
15555 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
15556 ...this.
15557 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
15558 Convert to...
15559 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
15560 ...this.
15561 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
15562 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
15563 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
15564 to...
15565 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
15566 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
15567 to...
15568 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
15569 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
15570 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
15571 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
15572 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
15573 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
15574 to...
15575 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
15576 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
15577 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
15578 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
15579 to...
15580 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
15581 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
15582 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
15583 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
15584 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
15585 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
15586 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
15587 (is_a_helper <const gimple_statement_phi>::test): Convert to...
15588 (is_a_helper <const gimple_statement_phi *>::test): ...this.
15589 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
15590 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
15591 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
15592 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
15593 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
15594 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
15595 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
15596 to...
15597 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
15598 ...this.
15599 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
15600 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
15601
15602 (gimple_use_ops): Update for removal of implicit pointer from the
15603 is-a.h API.
15604 (gimple_set_use_ops): Likewise.
15605 (gimple_vuse): Likewise.
15606 (gimple_vdef): Likewise.
15607 (gimple_vuse_ptr): Likewise.
15608 (gimple_vdef_ptr): Likewise.
15609 (gimple_set_vuse): Likewise.
15610 (gimple_set_vdef): Likewise.
15611 (gimple_omp_return_set_lhs): Likewise.
15612 (gimple_omp_return_lhs): Likewise.
15613 (gimple_omp_return_lhs_ptr): Likewise.
15614 (gimple_call_fntype): Likewise.
15615 (gimple_call_set_fntype): Likewise.
15616 (gimple_call_set_internal_fn): Likewise.
15617 (gimple_call_use_set): Likewise.
15618 (gimple_call_clobber_set): Likewise.
15619 (gimple_bind_vars): Likewise.
15620 (gimple_bind_set_vars): Likewise.
15621 (gimple_bind_body_ptr): Likewise.
15622 (gimple_bind_set_body): Likewise.
15623 (gimple_bind_add_stmt): Likewise.
15624 (gimple_bind_block): Likewise.
15625 (gimple_bind_set_block): Likewise.
15626 (gimple_asm_ninputs): Likewise.
15627 (gimple_asm_noutputs): Likewise.
15628 (gimple_asm_nclobbers): Likewise.
15629 (gimple_asm_nlabels): Likewise.
15630 (gimple_asm_input_op): Likewise.
15631 (gimple_asm_input_op_ptr): Likewise.
15632 (gimple_asm_output_op): Likewise.
15633 (gimple_asm_output_op_ptr): Likewise.
15634 (gimple_asm_set_output_op): Likewise.
15635 (gimple_asm_clobber_op): Likewise.
15636 (gimple_asm_set_clobber_op): Likewise.
15637 (gimple_asm_label_op): Likewise.
15638 (gimple_asm_set_label_op): Likewise.
15639 (gimple_asm_string): Likewise.
15640 (gimple_catch_types): Likewise.
15641 (gimple_catch_types_ptr): Likewise.
15642 (gimple_catch_handler_ptr): Likewise.
15643 (gimple_catch_set_types): Likewise.
15644 (gimple_catch_set_handler): Likewise.
15645 (gimple_eh_filter_types): Likewise.
15646 (gimple_eh_filter_types_ptr): Likewise.
15647 (gimple_eh_filter_failure_ptr): Likewise.
15648 (gimple_eh_filter_set_types): Likewise.
15649 (gimple_eh_filter_set_failure): Likewise.
15650 (gimple_eh_must_not_throw_fndecl): Likewise.
15651 (gimple_eh_must_not_throw_set_fndecl): Likewise.
15652 (gimple_eh_else_n_body_ptr): Likewise.
15653 (gimple_eh_else_e_body_ptr): Likewise.
15654 (gimple_eh_else_set_n_body): Likewise.
15655 (gimple_eh_else_set_e_body): Likewise.
15656 (gimple_try_eval_ptr): Likewise.
15657 (gimple_try_cleanup_ptr): Likewise.
15658 (gimple_try_set_eval): Likewise.
15659 (gimple_try_set_cleanup): Likewise.
15660 (gimple_wce_cleanup_ptr): Likewise.
15661 (gimple_wce_set_cleanup): Likewise.
15662 (gimple_phi_capacity): Likewise.
15663 (gimple_phi_num_args): Likewise.
15664 (gimple_phi_result): Likewise.
15665 (gimple_phi_result_ptr): Likewise.
15666 (gimple_phi_set_result): Likewise.
15667 (gimple_phi_arg): Likewise.
15668 (gimple_phi_set_arg): Likewise.
15669 (gimple_resx_region): Likewise.
15670 (gimple_resx_set_region): Likewise.
15671 (gimple_eh_dispatch_region): Likewise.
15672 (gimple_eh_dispatch_set_region): Likewise.
15673 (gimple_omp_critical_name): Likewise.
15674 (gimple_omp_critical_name_ptr): Likewise.
15675 (gimple_omp_critical_set_name): Likewise.
15676 (gimple_omp_for_clauses): Likewise.
15677 (gimple_omp_for_clauses_ptr): Likewise.
15678 (gimple_omp_for_set_clauses): Likewise.
15679 (gimple_omp_for_collapse): Likewise.
15680 (gimple_omp_for_index): Likewise.
15681 (gimple_omp_for_index_ptr): Likewise.
15682 (gimple_omp_for_set_index): Likewise.
15683 (gimple_omp_for_initial): Likewise.
15684 (gimple_omp_for_initial_ptr): Likewise.
15685 (gimple_omp_for_set_initial): Likewise.
15686 (gimple_omp_for_final): Likewise.
15687 (gimple_omp_for_final_ptr): Likewise.
15688 (gimple_omp_for_set_final): Likewise.
15689 (gimple_omp_for_incr): Likewise.
15690 (gimple_omp_for_incr_ptr): Likewise.
15691 (gimple_omp_for_set_incr): Likewise.
15692 (gimple_omp_for_pre_body_ptr): Likewise.
15693 (gimple_omp_for_set_pre_body): Likewise.
15694 (gimple_omp_parallel_clauses): Likewise.
15695 (gimple_omp_parallel_clauses_ptr): Likewise.
15696 (gimple_omp_parallel_set_clauses): Likewise.
15697 (gimple_omp_parallel_child_fn): Likewise.
15698 (gimple_omp_parallel_child_fn_ptr): Likewise.
15699 (gimple_omp_parallel_set_child_fn): Likewise.
15700 (gimple_omp_parallel_data_arg): Likewise.
15701 (gimple_omp_parallel_data_arg_ptr): Likewise.
15702 (gimple_omp_parallel_set_data_arg): Likewise.
15703 (gimple_omp_task_clauses): Likewise.
15704 (gimple_omp_task_clauses_ptr): Likewise.
15705 (gimple_omp_task_set_clauses): Likewise.
15706 (gimple_omp_task_child_fn): Likewise.
15707 (gimple_omp_task_child_fn_ptr): Likewise.
15708 (gimple_omp_task_set_child_fn): Likewise.
15709 (gimple_omp_task_data_arg): Likewise.
15710 (gimple_omp_task_data_arg_ptr): Likewise.
15711 (gimple_omp_task_set_data_arg): Likewise.
15712 (gimple_omp_taskreg_clauses): Likewise.
15713 (gimple_omp_taskreg_clauses_ptr): Likewise.
15714 (gimple_omp_taskreg_set_clauses): Likewise.
15715 (gimple_omp_taskreg_child_fn): Likewise.
15716 (gimple_omp_taskreg_child_fn_ptr): Likewise.
15717 (gimple_omp_taskreg_set_child_fn): Likewise.
15718 (gimple_omp_taskreg_data_arg): Likewise.
15719 (gimple_omp_taskreg_data_arg_ptr): Likewise.
15720 (gimple_omp_taskreg_set_data_arg): Likewise.
15721 (gimple_omp_task_copy_fn): Likewise.
15722 (gimple_omp_task_copy_fn_ptr): Likewise.
15723 (gimple_omp_task_set_copy_fn): Likewise.
15724 (gimple_omp_task_arg_size): Likewise.
15725 (gimple_omp_task_arg_size_ptr): Likewise.
15726 (gimple_omp_task_set_arg_size): Likewise.
15727 (gimple_omp_task_arg_align): Likewise.
15728 (gimple_omp_task_arg_align_ptr): Likewise.
15729 (gimple_omp_task_set_arg_align): Likewise.
15730 (gimple_omp_single_clauses): Likewise.
15731 (gimple_omp_single_clauses_ptr): Likewise.
15732 (gimple_omp_single_set_clauses): Likewise.
15733 (gimple_omp_target_clauses): Likewise.
15734 (gimple_omp_target_clauses_ptr): Likewise.
15735 (gimple_omp_target_set_clauses): Likewise.
15736 (gimple_omp_target_child_fn): Likewise.
15737 (gimple_omp_target_child_fn_ptr): Likewise.
15738 (gimple_omp_target_set_child_fn): Likewise.
15739 (gimple_omp_target_data_arg): Likewise.
15740 (gimple_omp_target_data_arg_ptr): Likewise.
15741 (gimple_omp_target_set_data_arg): Likewise.
15742 (gimple_omp_teams_clauses): Likewise.
15743 (gimple_omp_teams_clauses_ptr): Likewise.
15744 (gimple_omp_teams_set_clauses): Likewise.
15745 (gimple_omp_sections_clauses): Likewise.
15746 (gimple_omp_sections_clauses_ptr): Likewise.
15747 (gimple_omp_sections_set_clauses): Likewise.
15748 (gimple_omp_sections_control): Likewise.
15749 (gimple_omp_sections_control_ptr): Likewise.
15750 (gimple_omp_sections_set_control): Likewise.
15751 (gimple_omp_for_set_cond): Likewise.
15752 (gimple_omp_for_cond): Likewise.
15753 (gimple_omp_atomic_store_set_val): Likewise.
15754 (gimple_omp_atomic_store_val): Likewise.
15755 (gimple_omp_atomic_store_val_ptr): Likewise.
15756 (gimple_omp_atomic_load_set_lhs): Likewise.
15757 (gimple_omp_atomic_load_lhs): Likewise.
15758 (gimple_omp_atomic_load_lhs_ptr): Likewise.
15759 (gimple_omp_atomic_load_set_rhs): Likewise.
15760 (gimple_omp_atomic_load_rhs): Likewise.
15761 (gimple_omp_atomic_load_rhs_ptr): Likewise.
15762 (gimple_omp_continue_control_def): Likewise.
15763 (gimple_omp_continue_control_def_ptr): Likewise.
15764 (gimple_omp_continue_set_control_def): Likewise.
15765 (gimple_omp_continue_control_use): Likewise.
15766 (gimple_omp_continue_control_use_ptr): Likewise.
15767 (gimple_omp_continue_set_control_use): Likewise.
15768 (gimple_transaction_body_ptr): Likewise.
15769 (gimple_transaction_label): Likewise.
15770 (gimple_transaction_label_ptr): Likewise.
15771 (gimple_transaction_set_body): Likewise.
15772 (gimple_transaction_set_label): Likewise.
15773
15774 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
15775 * ipa-inline-analysis.c (inline_write_summary): Likewise.
15776 * ipa-ref.c (ipa_record_reference): Likewise.
15777 * ipa-reference.c (analyze_function): Likewise.
15778 (ipa_reference_write_optimization_summary): Likewise.
15779 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
15780 (address_taken_from_non_vtable_p): Likewise.
15781 (comdat_can_be_unshared_p_1): Likewise.
15782 * lto-cgraph.c (lto_output_ref): Likewise.
15783 (add_references): Likewise.
15784 (compute_ltrans_boundary): Likewise.
15785 (output_symtab): Likewise.
15786 (input_ref): Likewise.
15787 (input_cgraph_1): Likewise.
15788 (output_cgraph_opt_summary): Likewise.
15789 * lto-streamer-out.c (lto_output): Likewise.
15790 (output_symbol_p): Likewise.
15791 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
15792 (lsei_start_function_in_partition): Likewise.
15793 (lsei_next_variable_in_partition): Likewise.
15794 (lsei_start_variable_in_partition): Likewise.
15795 * symtab.c (insert_to_assembler_name_hash): Likewise.
15796 (unlink_from_assembler_name_hash): Likewise.
15797 (symtab_unregister_node): Likewise.
15798 (symtab_remove_node): Likewise.
15799 (dump_symtab_node): Likewise.
15800 (verify_symtab_base): Likewise.
15801 (verify_symtab_node): Likewise.
15802 (symtab_make_decl_local): Likewise.
15803 (symtab_alias_ultimate_target): Likewise.
15804 (symtab_resolve_alias): Likewise.
15805 (symtab_get_symbol_partitioning_class): Likewise.
15806 * tree-phinodes.c (allocate_phi_node): Likewise.
15807 (reserve_phi_args_for_new_edge): Likewise.
15808 (remove_phi_args): Likewise.
15809 * varpool.c (varpool_node_for_asm): Likewise.
15810 (varpool_remove_unreferenced_decls): Likewise.
15811
15812 2014-04-23 Jeff Law <law@redhat.com>
15813
15814 PR tree-optimization/60902
15815 * tree-ssa-threadedge.c
15816 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
15817 invalidate outputs from statements that do not produce useful
15818 outputs for threading.
15819
15820 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
15821
15822 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
15823 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
15824 machine descriptions for Stack Smashing Protector.
15825
15826 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
15827
15828 * aarch64.md (<optab>_rol<mode>3): New pattern.
15829 (<optab>_rolsi3_uxtw): Likewise.
15830 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
15831
15832 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
15833
15834 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
15835 (arm_cortex_a12_tune): Likewise.
15836
15837 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15838
15839 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
15840
15841 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15842
15843 * config/arm/arm.md (arm_rev16si2): New pattern.
15844 (arm_rev16si2_alt): Likewise.
15845 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
15846
15847 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15848
15849 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
15850 (rev16<mode>2_alt): Likewise.
15851 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
15852 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
15853 (aarch_rev16_shleft_mask_imm_p): Likewise.
15854 (aarch_rev16_p_1): Likewise.
15855 (aarch_rev16_p): Likewise.
15856 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
15857 (aarch_rev16_shright_mask_imm_p): Likewise.
15858 (aarch_rev16_shleft_mask_imm_p): Likewise.
15859
15860 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15861
15862 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
15863 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
15864 rev cost.
15865 (cortex_a53_extra_costs): Likewise.
15866 (cortex_a57_extra_costs): Likewise.
15867 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
15868 (cortexa7_extra_costs): Likewise.
15869 (cortexa8_extra_costs): Likewise.
15870 (cortexa12_extra_costs): Likewise.
15871 (cortexa15_extra_costs): Likewise.
15872 (v7m_extra_costs): Likewise.
15873 (arm_new_rtx_costs): Handle BSWAP.
15874
15875 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15876
15877 * config/arm/arm.c (cortexa8_extra_costs): New table.
15878 (arm_cortex_a8_tune): New tuning struct.
15879 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
15880
15881 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15882
15883 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
15884
15885 2014-04-23 Richard Biener <rguenther@suse.de>
15886
15887 * Makefile.in (OBJS): Remove loop-unswitch.o.
15888 * tree-pass.h (make_pass_rtl_unswitch): Remove.
15889 * passes.def (pass_rtl_unswitch): Likewise.
15890 * loop-init.c (gate_rtl_unswitch): Likewise.
15891 (rtl_unswitch): Likewise.
15892 (pass_data_rtl_unswitch): Likewise.
15893 (pass_rtl_unswitch): Likewise.
15894 (make_pass_rtl_unswitch): Likewise.
15895 * rtl.h (reversed_condition): Likewise.
15896 (compare_and_jump_seq): Likewise.
15897 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
15898 and make static.
15899 * loop-unroll.c (compare_and_jump_seq): Likewise.
15900
15901 2014-04-23 Richard Biener <rguenther@suse.de>
15902
15903 PR tree-optimization/60903
15904 * tree-ssa-loop-im.c (analyze_memory_references): Remove
15905 commented code block.
15906 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
15907 loop flags to newly created BBs and edges.
15908
15909 2014-04-23 Nick Clifton <nickc@redhat.com>
15910
15911 * config/msp430/msp430.c (msp430_handle_option): Move function
15912 to msp430-common.c
15913 (msp430_option_override): Simplify mcu and mcpu option handling.
15914 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
15915 support for -mhwmult command line option.
15916 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
15917 -mhwmult command line option.
15918 (msp430_hwmult_enabled): Delete.
15919 (msp43o_output_labelref): Add support for -mhwmult command line option.
15920 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
15921 (umulsidi3): Likewise.
15922 * config/msp430/msp430.opt (mmcu): Add Report attribute.
15923 (mcpu, mlarge, msmall): Likewise.
15924 (mhwmult): New option.
15925 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
15926 prototype.
15927 (msp430_is_f5_mcu): Remove prototype.
15928 (msp430_use_f5_series_hwmult): Add prototype.
15929 * config/msp430/msp430-opts.h: New file.
15930 * common/config/msp430: New directory.
15931 * common/config/msp430/msp430-common.c: New file.
15932 * config.gcc (msp430): Remove target_has_targetm_common.
15933 * doc/invoke.texi: Document -mhwmult command line option.
15934
15935 2014-04-23 Nick Clifton <nickc@redhat.com>
15936
15937 * config/i386/cygwin.h (ENDFILE_SPEC): Include
15938 default-manifest.o if it can be found in the search path.
15939 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
15940
15941 2014-04-23 Terry Guo <terry.guo@arm.com>
15942
15943 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
15944
15945 2014-04-23 Richard Biener <rguenther@suse.de>
15946
15947 PR middle-end/60895
15948 * tree-inline.c (declare_return_variable): Use mark_addressable.
15949
15950 2014-04-23 Richard Biener <rguenther@suse.de>
15951
15952 PR middle-end/60891
15953 * loop-init.c (loop_optimizer_init): Make sure to apply
15954 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
15955
15956 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15957
15958 PR sanitizer/60275
15959 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
15960 New options.
15961 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
15962 if flag_sanitize_undefined_trap_on_error.
15963 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
15964 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
15965 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
15966 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
15967 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
15968 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
15969 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
15970 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
15971 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
15972 * ubsan.c (ubsan_instrument_unreachable): Return
15973 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
15974 (ubsan_expand_null_ifn): Emit __builtin_trap ()
15975 if flag_sanitize_undefined_trap_on_error and
15976 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
15977 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
15978 instrument_bool_enum_load): Emit __builtin_trap () if
15979 flag_sanitize_undefined_trap_on_error and
15980 __builtin_handle_*_abort () if !flag_sanitize_recover.
15981 * doc/invoke.texi (-fsanitize-recover,
15982 -fsanitize-undefined-trap-on-error): Document.
15983
15984 2014-04-22 Christian Bruel <christian.bruel@st.com>
15985
15986 * config/sh/sh.md (mov<mode>): Replace movQIHI.
15987 Force immediates to SImode.
15988
15989 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
15990
15991 * config/nios2/nios2.md (UNSPEC_ROUND): New.
15992 (lroundsfsi2): New.
15993 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
15994 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
15995 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
15996 (nios2_fpu_insn): Add entry for round.
15997 (N2FPU_NO_ERRNO_P): Define.
15998 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
15999 flag_errno_math.
16000 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
16001
16002 2014-04-22 Richard Henderson <rth@redhat.com>
16003
16004 * config/aarch64/aarch64 (addti3, subti3): New expanders.
16005 (add<GPI>3_compare0): Remove leading * from name.
16006 (add<GPI>3_carryin): Likewise.
16007 (sub<GPI>3_compare0): Likewise.
16008 (sub<GPI>3_carryin): Likewise.
16009 (<su_optab>mulditi3): New expander.
16010 (multi3): New expander.
16011 (madd<GPI>): Remove leading * from name.
16012
16013 2014-04-22 Martin Jambor <mjambor@suse.cz>
16014
16015 * cgraphclones.c (cgraph_function_versioning): Copy
16016 ipa_transforms_to_apply instead of asserting it is empty.
16017
16018 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
16019
16020 PR target/60868
16021 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
16022 on count_exp to get mode.
16023
16024 2014-04-22 Andrew Pinski <apinski@cavium.com>
16025
16026 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16027 Handle TLS for ILP32.
16028 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
16029 (tlsie_small_<mode>): this and handle PTR.
16030 (tlsie_small_sidi): New pattern.
16031 (tlsle_small): Change to an expand to handle ILP32.
16032 (tlsle_small_<mode>): New pattern.
16033 (tlsdesc_small): Rename to ...
16034 (tlsdesc_small_<mode>): this and handle PTR.
16035
16036 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16037
16038 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
16039
16040 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
16041
16042 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
16043 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
16044 (aarch64_types_signed_poly_qualifiers): Likewise.
16045 (aarch64_types_unsigned_signed_qualifiers): Likewise.
16046 (aarch64_types_poly_signed_qualifiers): Likewise.
16047 (TYPES_REINTERP_SS): Type macro added.
16048 (TYPES_REINTERP_SU): Likewise.
16049 (TYPES_REINTERP_SP): Likewise.
16050 (TYPES_REINTERP_US): Likewise.
16051 (TYPES_REINTERP_PS): Likewise.
16052 (aarch64_fold_builtin): New expression folding added.
16053 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
16054 Declarations removed.
16055 (REINTERP_SS): Declarations added.
16056 (REINTERP_US): Likewise.
16057 (REINTERP_PS): Likewise.
16058 (REINTERP_SU): Likewise.
16059 (REINTERP_SP): Likewise.
16060 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
16061 (vreinterpretq_p8_f64): Likewise.
16062 (vreinterpret_p16_f64): Likewise.
16063 (vreinterpretq_p16_f64): Likewise.
16064 (vreinterpret_f32_f64): Likewise.
16065 (vreinterpretq_f32_f64): Likewise.
16066 (vreinterpret_f64_f32): Likewise.
16067 (vreinterpret_f64_p8): Likewise.
16068 (vreinterpret_f64_p16): Likewise.
16069 (vreinterpret_f64_s8): Likewise.
16070 (vreinterpret_f64_s16): Likewise.
16071 (vreinterpret_f64_s32): Likewise.
16072 (vreinterpret_f64_s64): Likewise.
16073 (vreinterpret_f64_u8): Likewise.
16074 (vreinterpret_f64_u16): Likewise.
16075 (vreinterpret_f64_u32): Likewise.
16076 (vreinterpret_f64_u64): Likewise.
16077 (vreinterpretq_f64_f32): Likewise.
16078 (vreinterpretq_f64_p8): Likewise.
16079 (vreinterpretq_f64_p16): Likewise.
16080 (vreinterpretq_f64_s8): Likewise.
16081 (vreinterpretq_f64_s16): Likewise.
16082 (vreinterpretq_f64_s32): Likewise.
16083 (vreinterpretq_f64_s64): Likewise.
16084 (vreinterpretq_f64_u8): Likewise.
16085 (vreinterpretq_f64_u16): Likewise.
16086 (vreinterpretq_f64_u32): Likewise.
16087 (vreinterpretq_f64_u64): Likewise.
16088 (vreinterpret_s64_f64): Likewise.
16089 (vreinterpretq_s64_f64): Likewise.
16090 (vreinterpret_u64_f64): Likewise.
16091 (vreinterpretq_u64_f64): Likewise.
16092 (vreinterpret_s8_f64): Likewise.
16093 (vreinterpretq_s8_f64): Likewise.
16094 (vreinterpret_s16_f64): Likewise.
16095 (vreinterpretq_s16_f64): Likewise.
16096 (vreinterpret_s32_f64): Likewise.
16097 (vreinterpretq_s32_f64): Likewise.
16098 (vreinterpret_u8_f64): Likewise.
16099 (vreinterpretq_u8_f64): Likewise.
16100 (vreinterpret_u16_f64): Likewise.
16101 (vreinterpretq_u16_f64): Likewise.
16102 (vreinterpret_u32_f64): Likewise.
16103 (vreinterpretq_u32_f64): Likewise.
16104
16105 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
16106
16107 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
16108 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
16109 (vreinterpret_p8_s8): Likewise.
16110 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
16111 (vreinterpret_p8_s16): Likewise.
16112 (vreinterpret_p8_s32): Likewise.
16113 (vreinterpret_p8_s64): Likewise.
16114 (vreinterpret_p8_f32): Likewise.
16115 (vreinterpret_p8_u8): Likewise.
16116 (vreinterpret_p8_u16): Likewise.
16117 (vreinterpret_p8_u32): Likewise.
16118 (vreinterpret_p8_u64): Likewise.
16119 (vreinterpret_p8_p16): Likewise.
16120 (vreinterpretq_p8_s8): Likewise.
16121 (vreinterpretq_p8_s16): Likewise.
16122 (vreinterpretq_p8_s32): Likewise.
16123 (vreinterpretq_p8_s64): Likewise.
16124 (vreinterpretq_p8_f32): Likewise.
16125 (vreinterpretq_p8_u8): Likewise.
16126 (vreinterpretq_p8_u16): Likewise.
16127 (vreinterpretq_p8_u32): Likewise.
16128 (vreinterpretq_p8_u64): Likewise.
16129 (vreinterpretq_p8_p16): Likewise.
16130 (vreinterpret_p16_s8): Likewise.
16131 (vreinterpret_p16_s16): Likewise.
16132 (vreinterpret_p16_s32): Likewise.
16133 (vreinterpret_p16_s64): Likewise.
16134 (vreinterpret_p16_f32): Likewise.
16135 (vreinterpret_p16_u8): Likewise.
16136 (vreinterpret_p16_u16): Likewise.
16137 (vreinterpret_p16_u32): Likewise.
16138 (vreinterpret_p16_u64): Likewise.
16139 (vreinterpret_p16_p8): Likewise.
16140 (vreinterpretq_p16_s8): Likewise.
16141 (vreinterpretq_p16_s16): Likewise.
16142 (vreinterpretq_p16_s32): Likewise.
16143 (vreinterpretq_p16_s64): Likewise.
16144 (vreinterpretq_p16_f32): Likewise.
16145 (vreinterpretq_p16_u8): Likewise.
16146 (vreinterpretq_p16_u16): Likewise.
16147 (vreinterpretq_p16_u32): Likewise.
16148 (vreinterpretq_p16_u64): Likewise.
16149 (vreinterpretq_p16_p8): Likewise.
16150 (vreinterpret_f32_s8): Likewise.
16151 (vreinterpret_f32_s16): Likewise.
16152 (vreinterpret_f32_s32): Likewise.
16153 (vreinterpret_f32_s64): Likewise.
16154 (vreinterpret_f32_u8): Likewise.
16155 (vreinterpret_f32_u16): Likewise.
16156 (vreinterpret_f32_u32): Likewise.
16157 (vreinterpret_f32_u64): Likewise.
16158 (vreinterpret_f32_p8): Likewise.
16159 (vreinterpret_f32_p16): Likewise.
16160 (vreinterpretq_f32_s8): Likewise.
16161 (vreinterpretq_f32_s16): Likewise.
16162 (vreinterpretq_f32_s32): Likewise.
16163 (vreinterpretq_f32_s64): Likewise.
16164 (vreinterpretq_f32_u8): Likewise.
16165 (vreinterpretq_f32_u16): Likewise.
16166 (vreinterpretq_f32_u32): Likewise.
16167 (vreinterpretq_f32_u64): Likewise.
16168 (vreinterpretq_f32_p8): Likewise.
16169 (vreinterpretq_f32_p16): Likewise.
16170 (vreinterpret_s64_s8): Likewise.
16171 (vreinterpret_s64_s16): Likewise.
16172 (vreinterpret_s64_s32): Likewise.
16173 (vreinterpret_s64_f32): Likewise.
16174 (vreinterpret_s64_u8): Likewise.
16175 (vreinterpret_s64_u16): Likewise.
16176 (vreinterpret_s64_u32): Likewise.
16177 (vreinterpret_s64_u64): Likewise.
16178 (vreinterpret_s64_p8): Likewise.
16179 (vreinterpret_s64_p16): Likewise.
16180 (vreinterpretq_s64_s8): Likewise.
16181 (vreinterpretq_s64_s16): Likewise.
16182 (vreinterpretq_s64_s32): Likewise.
16183 (vreinterpretq_s64_f32): Likewise.
16184 (vreinterpretq_s64_u8): Likewise.
16185 (vreinterpretq_s64_u16): Likewise.
16186 (vreinterpretq_s64_u32): Likewise.
16187 (vreinterpretq_s64_u64): Likewise.
16188 (vreinterpretq_s64_p8): Likewise.
16189 (vreinterpretq_s64_p16): Likewise.
16190 (vreinterpret_u64_s8): Likewise.
16191 (vreinterpret_u64_s16): Likewise.
16192 (vreinterpret_u64_s32): Likewise.
16193 (vreinterpret_u64_s64): Likewise.
16194 (vreinterpret_u64_f32): Likewise.
16195 (vreinterpret_u64_u8): Likewise.
16196 (vreinterpret_u64_u16): Likewise.
16197 (vreinterpret_u64_u32): Likewise.
16198 (vreinterpret_u64_p8): Likewise.
16199 (vreinterpret_u64_p16): Likewise.
16200 (vreinterpretq_u64_s8): Likewise.
16201 (vreinterpretq_u64_s16): Likewise.
16202 (vreinterpretq_u64_s32): Likewise.
16203 (vreinterpretq_u64_s64): Likewise.
16204 (vreinterpretq_u64_f32): Likewise.
16205 (vreinterpretq_u64_u8): Likewise.
16206 (vreinterpretq_u64_u16): Likewise.
16207 (vreinterpretq_u64_u32): Likewise.
16208 (vreinterpretq_u64_p8): Likewise.
16209 (vreinterpretq_u64_p16): Likewise.
16210 (vreinterpret_s8_s16): Likewise.
16211 (vreinterpret_s8_s32): Likewise.
16212 (vreinterpret_s8_s64): Likewise.
16213 (vreinterpret_s8_f32): Likewise.
16214 (vreinterpret_s8_u8): Likewise.
16215 (vreinterpret_s8_u16): Likewise.
16216 (vreinterpret_s8_u32): Likewise.
16217 (vreinterpret_s8_u64): Likewise.
16218 (vreinterpret_s8_p8): Likewise.
16219 (vreinterpret_s8_p16): Likewise.
16220 (vreinterpretq_s8_s16): Likewise.
16221 (vreinterpretq_s8_s32): Likewise.
16222 (vreinterpretq_s8_s64): Likewise.
16223 (vreinterpretq_s8_f32): Likewise.
16224 (vreinterpretq_s8_u8): Likewise.
16225 (vreinterpretq_s8_u16): Likewise.
16226 (vreinterpretq_s8_u32): Likewise.
16227 (vreinterpretq_s8_u64): Likewise.
16228 (vreinterpretq_s8_p8): Likewise.
16229 (vreinterpretq_s8_p16): Likewise.
16230 (vreinterpret_s16_s8): Likewise.
16231 (vreinterpret_s16_s32): Likewise.
16232 (vreinterpret_s16_s64): Likewise.
16233 (vreinterpret_s16_f32): Likewise.
16234 (vreinterpret_s16_u8): Likewise.
16235 (vreinterpret_s16_u16): Likewise.
16236 (vreinterpret_s16_u32): Likewise.
16237 (vreinterpret_s16_u64): Likewise.
16238 (vreinterpret_s16_p8): Likewise.
16239 (vreinterpret_s16_p16): Likewise.
16240 (vreinterpretq_s16_s8): Likewise.
16241 (vreinterpretq_s16_s32): Likewise.
16242 (vreinterpretq_s16_s64): Likewise.
16243 (vreinterpretq_s16_f32): Likewise.
16244 (vreinterpretq_s16_u8): Likewise.
16245 (vreinterpretq_s16_u16): Likewise.
16246 (vreinterpretq_s16_u32): Likewise.
16247 (vreinterpretq_s16_u64): Likewise.
16248 (vreinterpretq_s16_p8): Likewise.
16249 (vreinterpretq_s16_p16): Likewise.
16250 (vreinterpret_s32_s8): Likewise.
16251 (vreinterpret_s32_s16): Likewise.
16252 (vreinterpret_s32_s64): Likewise.
16253 (vreinterpret_s32_f32): Likewise.
16254 (vreinterpret_s32_u8): Likewise.
16255 (vreinterpret_s32_u16): Likewise.
16256 (vreinterpret_s32_u32): Likewise.
16257 (vreinterpret_s32_u64): Likewise.
16258 (vreinterpret_s32_p8): Likewise.
16259 (vreinterpret_s32_p16): Likewise.
16260 (vreinterpretq_s32_s8): Likewise.
16261 (vreinterpretq_s32_s16): Likewise.
16262 (vreinterpretq_s32_s64): Likewise.
16263 (vreinterpretq_s32_f32): Likewise.
16264 (vreinterpretq_s32_u8): Likewise.
16265 (vreinterpretq_s32_u16): Likewise.
16266 (vreinterpretq_s32_u32): Likewise.
16267 (vreinterpretq_s32_u64): Likewise.
16268 (vreinterpretq_s32_p8): Likewise.
16269 (vreinterpretq_s32_p16): Likewise.
16270 (vreinterpret_u8_s8): Likewise.
16271 (vreinterpret_u8_s16): Likewise.
16272 (vreinterpret_u8_s32): Likewise.
16273 (vreinterpret_u8_s64): Likewise.
16274 (vreinterpret_u8_f32): Likewise.
16275 (vreinterpret_u8_u16): Likewise.
16276 (vreinterpret_u8_u32): Likewise.
16277 (vreinterpret_u8_u64): Likewise.
16278 (vreinterpret_u8_p8): Likewise.
16279 (vreinterpret_u8_p16): Likewise.
16280 (vreinterpretq_u8_s8): Likewise.
16281 (vreinterpretq_u8_s16): Likewise.
16282 (vreinterpretq_u8_s32): Likewise.
16283 (vreinterpretq_u8_s64): Likewise.
16284 (vreinterpretq_u8_f32): Likewise.
16285 (vreinterpretq_u8_u16): Likewise.
16286 (vreinterpretq_u8_u32): Likewise.
16287 (vreinterpretq_u8_u64): Likewise.
16288 (vreinterpretq_u8_p8): Likewise.
16289 (vreinterpretq_u8_p16): Likewise.
16290 (vreinterpret_u16_s8): Likewise.
16291 (vreinterpret_u16_s16): Likewise.
16292 (vreinterpret_u16_s32): Likewise.
16293 (vreinterpret_u16_s64): Likewise.
16294 (vreinterpret_u16_f32): Likewise.
16295 (vreinterpret_u16_u8): Likewise.
16296 (vreinterpret_u16_u32): Likewise.
16297 (vreinterpret_u16_u64): Likewise.
16298 (vreinterpret_u16_p8): Likewise.
16299 (vreinterpret_u16_p16): Likewise.
16300 (vreinterpretq_u16_s8): Likewise.
16301 (vreinterpretq_u16_s16): Likewise.
16302 (vreinterpretq_u16_s32): Likewise.
16303 (vreinterpretq_u16_s64): Likewise.
16304 (vreinterpretq_u16_f32): Likewise.
16305 (vreinterpretq_u16_u8): Likewise.
16306 (vreinterpretq_u16_u32): Likewise.
16307 (vreinterpretq_u16_u64): Likewise.
16308 (vreinterpretq_u16_p8): Likewise.
16309 (vreinterpretq_u16_p16): Likewise.
16310 (vreinterpret_u32_s8): Likewise.
16311 (vreinterpret_u32_s16): Likewise.
16312 (vreinterpret_u32_s32): Likewise.
16313 (vreinterpret_u32_s64): Likewise.
16314 (vreinterpret_u32_f32): Likewise.
16315 (vreinterpret_u32_u8): Likewise.
16316 (vreinterpret_u32_u16): Likewise.
16317 (vreinterpret_u32_u64): Likewise.
16318 (vreinterpret_u32_p8): Likewise.
16319 (vreinterpret_u32_p16): Likewise.
16320 (vreinterpretq_u32_s8): Likewise.
16321 (vreinterpretq_u32_s16): Likewise.
16322 (vreinterpretq_u32_s32): Likewise.
16323 (vreinterpretq_u32_s64): Likewise.
16324 (vreinterpretq_u32_f32): Likewise.
16325 (vreinterpretq_u32_u8): Likewise.
16326 (vreinterpretq_u32_u16): Likewise.
16327 (vreinterpretq_u32_u64): Likewise.
16328 (vreinterpretq_u32_p8): Likewise.
16329 (vreinterpretq_u32_p16): Likewise.
16330
16331 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
16332
16333 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
16334 Pattern extended.
16335 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
16336 (sqabs): Likewise.
16337 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
16338 (vqnegd_s64): Likewise.
16339 (vqabs_s64): Likewise.
16340 (vqabsd_s64): Likewise.
16341
16342 2014-04-22 Richard Henderson <rth@redhat.com>
16343
16344 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
16345 computation to the top of the loop.
16346
16347 2014-04-22 Renlin <renlin.li@arm.com>
16348 Jiong Wang <jiong.wang@arm.com>
16349
16350 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
16351 * config/aarch64/aarch64.c (aarch64_layout_frame)
16352 (aarch64_initial_elimination_offset): Likewise.
16353
16354 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
16355
16356 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
16357 Fix indentation.
16358
16359 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
16360
16361 * machmode.h (bitwise_mode_for_mode): Declare.
16362 * stor-layout.h (bitwise_type_for_mode): Likewise.
16363 * stor-layout.c (bitwise_mode_for_mode): New function.
16364 (bitwise_type_for_mode): Likewise.
16365 * builtins.c (fold_builtin_memory_op): Use it instead of
16366 int_mode_for_mode and build_nonstandard_integer_type.
16367
16368 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16369
16370 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
16371 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
16372 (*-*-solaris2*): Simplify.
16373 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
16374 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
16375 *-*-solaris2.9* handling.
16376
16377 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
16378 as bug.
16379 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
16380 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
16381 handling, simplify.
16382 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
16383 * configure: Regenerate.
16384
16385 * config/i386/sol2-9.h: Remove.
16386
16387 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
16388 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
16389 Remove Solaris 9 references.
16390
16391 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
16392
16393 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
16394 (floatuns<GPI:mode><GPF:mode>2): Remove.
16395 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
16396 and floatuns conversions.
16397 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
16398 and floatuns conversions.
16399 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
16400 (w1,w2): New mode attributes for inequal width conversions.
16401
16402 2014-04-22 Renlin Li <Renlin.Li@arm.com>
16403
16404 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
16405 the output asm format.
16406
16407 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
16408
16409 * config/aarch64/aarch64-simd.md
16410 (aarch64_cm<optab>di): Always split.
16411 (*aarch64_cm<optab>di): New.
16412 (aarch64_cmtstdi): Always split.
16413 (*aarch64_cmtstdi): New.
16414
16415 2014-04-22 Jakub Jelinek <jakub@redhat.com>
16416
16417 PR tree-optimization/60823
16418 * omp-low.c (ipa_simd_modify_function_body): Go through
16419 all SSA_NAMEs and for those refering to vector arguments
16420 which are going to be replaced adjust SSA_NAME_VAR and,
16421 if it is a default definition, change it into a non-default
16422 definition assigned at the beginning of function from new_decl.
16423 (ipa_simd_modify_stmt_ops): Rewritten.
16424 * tree-dfa.c (set_ssa_default_def): When removing default def,
16425 check for NULL loc instead of NULL *loc.
16426
16427 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16428
16429 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
16430 restrictions on core registers for DImode values in Thumb2.
16431
16432 2014-04-22 Ian Bolton <ian.bolton@arm.com>
16433
16434 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
16435 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
16436
16437 2014-04-22 Ian Bolton <ian.bolton@arm.com>
16438
16439 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
16440 (*iordi_notzesidi_di): Likewise.
16441 (*iordi_notsesidi_di): Likewise.
16442
16443 2014-04-22 Ian Bolton <ian.bolton@arm.com>
16444
16445 * config/arm/arm-protos.h (tune_params): New struct members.
16446 * config/arm/arm.c: Initialise tune_params per processor.
16447 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
16448 for speed, based on new tune_params.
16449
16450 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
16451
16452 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
16453 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
16454 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
16455 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
16456 * config/aarch64/arm_neon.h (vrnd_f64): Added.
16457 (vrnda_f64): Likewise.
16458 (vrndi_f64): Likewise.
16459 (vrndm_f64): Likewise.
16460 (vrndn_f64): Likewise.
16461 (vrndp_f64): Likewise.
16462 (vrndx_f64): Likewise.
16463
16464 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16465
16466 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
16467 GET_MODE_SIZE argument is enum machine_mode.
16468
16469 2014-04-22 Jakub Jelinek <jakub@redhat.com>
16470
16471 PR target/60910
16472 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
16473 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
16474
16475 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
16476
16477 PR middle-end/60281
16478 * asan.c (asan_emit_stack_protection): Force the base to align to
16479 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
16480 appropriate bits if STRICT_ALIGNMENT.
16481 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
16482 when asan is on.
16483 (expand_used_vars): Leave a space in the stack frame for alignment
16484 if STRICT_ALIGNMENT.
16485
16486 2014-04-21 David Malcolm <dmalcolm@redhat.com>
16487
16488 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
16489 than a gimple.
16490 (gimple_store_p): Likewise.
16491 (gimple_assign_load_p): Likewise.
16492 (gimple_assign_cast_p): Likewise.
16493 (gimple_clobber_p): Likewise.
16494
16495 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
16496 rather than a gimple.
16497 (gimple_assign_cast_p): Likewise.
16498
16499 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16500
16501 PR target/60735
16502 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
16503 If mode is DDmode and TARGET_E500_DOUBLE allow move.
16504
16505 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
16506 more debug information for E500 if -mdebug=reg.
16507
16508 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
16509
16510 PR target/60909
16511 * config/i386/i386.c (ix86_expand_builtin)
16512 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
16513 register for target RTX.
16514 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
16515
16516 2014-04-18 Cong Hou <congh@google.com>
16517
16518 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
16519 the widen-mult pattern by handling two operands with different sizes,
16520 and operands whose size is smaller than half of the result type.
16521
16522 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
16523
16524 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
16525 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
16526 (do_estimate_edge_time): Compute it.
16527 * ipa-inline.c (want_inline_small_function_p): Bypass
16528 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
16529
16530 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
16531
16532 * ipa-inline.c (spec_rem): New static variable.
16533 (dump_overall_stats): New function.
16534 (dump_inline_stats): New function.
16535
16536 2014-04-18 Richard Henderson <rth@redhat.com>
16537
16538 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
16539 to GET_MODE_SIZE, not a reg_class_t.
16540
16541 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16542
16543 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
16544 (vsx_xxmrglw_<mode>): Likewise.
16545
16546 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
16547
16548 PR target/60876
16549 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
16550 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
16551 (rs6000_init_hard_regno_mode_ok): Likewise.
16552
16553 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
16554
16555 * ipa-inline.c (inline_small_functions): Account only non-cold
16556 functions.
16557 * doc/invoke.texi (inline-unit-growth): Update documentation.
16558
16559 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
16560
16561 * config/rs6000/rs6000.md (addti3, subti3): New.
16562
16563 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
16564
16565 PR target/60863
16566 * config/i386/i386.c (ix86_expand_clear): Remove outdated
16567 comment. Check optimize_insn_for_size_p instead of
16568 optimize_insn_for_speed_p.
16569
16570 2014-04-17 Martin Jambor <mjambor@suse.cz>
16571
16572 * gimple-iterator.c (gsi_start_edge): New function.
16573 * gimple-iterator.h (gsi_start_edge): Declare.
16574 * tree-sra.c (single_non_eh_succ): New function.
16575 (disqualify_ops_if_throwing_stmt): Renamed to
16576 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
16577 having one non-EH successor BB.
16578 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
16579 generate loads into replacements.
16580 (sra_modify_assign): Likewise and and also use the simple path for
16581 such statements.
16582 (sra_modify_function_body): Commit statements on edges.
16583
16584 2014-04-17 Richard Biener <rguenther@suse.de>
16585
16586 PR middle-end/60849
16587 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
16588 comparison results and add clarifying comment.
16589
16590 2014-04-17 Jakub Jelinek <jakub@redhat.com>
16591
16592 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
16593 (blank_mode): Initialize it.
16594 (emit_mode_size_inline, emit_mode_nunits_inline,
16595 emit_mode_inner_inline): New functions.
16596 (emit_insn_modes_h): Call them and surround their output with
16597 #if GCC_VERSION >= 4001 ... #endif.
16598 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
16599 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
16600 mode_* arrays if the argument is __builtin_constant_p.
16601 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
16602 is enum machine_mode.
16603
16604 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16605
16606 * passes.c (opt_pass::execute): Adjust.
16607 (pass_manager::execute_pass_mode_switching): Likewise.
16608 (early_local_passes::execute): Likewise.
16609 (execute_one_pass): Pass cfun to the pass's execute method.
16610 * tree-pass.h (opt_pass::execute): Add function * argument.
16611 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
16612 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
16613 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
16614 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16615 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
16616 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
16617 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
16618 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
16619 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
16620 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
16621 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
16622 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
16623 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
16624 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
16625 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
16626 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
16627 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
16628 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
16629 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16630 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16631 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16632 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16633 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16634 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16635 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16636 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16637 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
16638 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
16639 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
16640 Adjust.
16641
16642 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16643
16644 * passes.c (opt_pass::gate): Take function * argument.
16645 (gate_all_early_local_passes): Merge into
16646 (early_local_passes::gate): this.
16647 (gate_all_early_optimizations): Merge into
16648 (all_early_optimizations::gate): this.
16649 (gate_all_optimizations): Mege into
16650 (all_optimizations::gate): this.
16651 (gate_all_optimizations_g): Merge into
16652 (all_optimizations_g::gate): this.
16653 (gate_rest_of_compilation): Mege into
16654 (rest_of_compilation::gate): this.
16655 (gate_postreload): Merge into
16656 (postreload::gate): this.
16657 (dump_one_pass): Pass cfun to the pass's gate method.
16658 (execute_ipa_summary_passes): Likewise.
16659 (execute_one_pass): Likewise.
16660 (ipa_write_summaries_2): Likewise.
16661 (ipa_write_optimization_summaries_1): Likewise.
16662 (ipa_read_summaries_1): Likewise.
16663 (ipa_read_optimization_summaries_1): Likewise.
16664 (execute_ipa_stmt_fixups): Likewise.
16665 * tree-pass.h (opt_pass::gate): Add function * argument.
16666 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
16667 combine-stack-adj.c, combine.c, compare-elim.c,
16668 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16669 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
16670 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
16671 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
16672 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
16673 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
16674 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
16675 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
16676 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
16677 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
16678 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
16679 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
16680 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
16681 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
16682 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16683 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16684 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16685 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16686 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16687 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16688 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16689 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16690 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
16691 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
16692 var-tracking.c, vtable-verify.c, web.c: Adjust.
16693
16694 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16695
16696 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
16697 * configure: Regenerate.
16698
16699 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16700
16701 * passes.c (dump_one_pass): don't check pass->has_gate.
16702 (execute_ipa_summary_passes): Likewise.
16703 (execute_one_pass): Likewise.
16704 (ipa_write_summaries_2): Likewise.
16705 (ipa_write_optimization_summaries_1): Likewise.
16706 (ipa_read_optimization_summaries_1): Likewise.
16707 (execute_ipa_stmt_fixups): Likewise.
16708 * tree-pass.h (pass_data::has_gate): Remove.
16709 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
16710 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
16711 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
16712 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16713 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
16714 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
16715 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
16716 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
16717 gimple-low.c, gimple-ssa-isolate-paths.c,
16718 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
16719 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
16720 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
16721 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
16722 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
16723 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
16724 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
16725 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
16726 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
16727 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
16728 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
16729 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16730 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16731 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16732 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16733 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16734 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16735 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16736 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16737 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
16738 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
16739 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
16740 Adjust.
16741
16742 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16743
16744 * pass_manager.h (pass_manager::register_dump_files_1): Remove
16745 declaration.
16746 * passes.c (pass_manager::register_dump_files_1): Merge into
16747 (pass_manager::register_dump_files): this, and remove its handling of
16748 properties since the pass always has the properties anyway.
16749 (pass_manager::pass_manager): Adjust.
16750
16751 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16752
16753 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
16754 * passes.c (pass_manager::register_dump_files_1): Remove dead code
16755 dealing with properties.
16756 (pass_manager::register_dump_files): Adjust.
16757
16758 2014-03-20 Mark Wielaard <mjw@redhat.com>
16759
16760 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
16761 then represent the bound as normal constant value.
16762
16763 2014-04-17 Jakub Jelinek <jakub@redhat.com>
16764
16765 PR target/60847
16766 Forward port from 4.8 branch
16767 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
16768
16769 * config/i386/bmiintrin.h (_blsi_u32): New.
16770 (_blsi_u64): Ditto.
16771 (_blsr_u32): Ditto.
16772 (_blsr_u64): Ditto.
16773 (_blsmsk_u32): Ditto.
16774 (_blsmsk_u64): Ditto.
16775 (_tzcnt_u32): Ditto.
16776 (_tzcnt_u64): Ditto.
16777
16778 2014-04-17 Kito Cheng <kito@0xlab.org>
16779
16780 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
16781
16782 2014-04-17 Richard Biener <rguenther@suse.de>
16783
16784 PR middle-end/60849
16785 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
16786 boolean results for comparisons.
16787
16788 2014-04-17 Richard Biener <rguenther@suse.de>
16789
16790 PR tree-optimization/60836
16791 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
16792 initial PHI args to be gimple values.
16793
16794 2014-04-17 Richard Biener <rguenther@suse.de>
16795
16796 PR tree-optimization/60841
16797 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
16798 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
16799 of stmts to SLP build.
16800 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
16801 (vect_analyze_slp): Likewise.
16802 (vect_analyze_slp_instance): Likewise.
16803 (vect_build_slp_tree): Limit overall SLP tree growth.
16804 * tree-vectorizer.h (vect_analyze_data_refs,
16805 vect_analyze_slp): Adjust prototypes.
16806
16807 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
16808
16809 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
16810 Silvermont.
16811
16812 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
16813
16814 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
16815 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
16816 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
16817 for TARGET_SLOW_PSHUFB
16818
16819 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
16820
16821 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
16822 * config/i386/i386.c (intel_cost): Ditto.
16823
16824 2014-04-17 Joey Ye <joey.ye@arm.com>
16825
16826 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
16827
16828 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
16829
16830 * opts.c (common_handle_option): Disable -fipa-reference coorectly
16831 with -fuse-profile.
16832
16833 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
16834
16835 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
16836 (type_all_derivations_known_p): New predicate.
16837 (type_all_ctors_visible_p): New predicate.
16838 (type_possibly_instantiated_p): New predicate.
16839 (get_odr_type): Compute all_derivations_known.
16840 (dump_odr_type): Dump the flag.
16841 (maybe_record_type): Cleanup.
16842 (record_target_from_binfo): Add bases_to_consider array;
16843 record bases for types w/o instances and skip CXX destructor.
16844 (possible_polymorphic_call_targets_1): Add bases_to_consider
16845 and consider_construction parameters; check if type may have instance.
16846 (get_polymorphic_call_info): Set maybe_in_construction to true
16847 when we know nothing.
16848 (record_targets_from_bases): Skip CXX destructors; they are
16849 never called for types in construction.
16850 (possible_polymorphic_call_targets): Do not record target when
16851 type may not have instance.
16852
16853 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
16854
16855 PR ipa/60854
16856 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
16857 external aliases alive, too.
16858
16859 2014-04-16 Andrew Pinski <apinski@cavium.com>
16860
16861 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
16862 definition.
16863
16864 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
16865
16866 * final.c (compute_alignments): Do not apply loop alignment to a block
16867 falling through to the exit.
16868
16869 2014-04-16 Catherine Moore <clm@codesourcery.com>
16870
16871 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
16872 Adjust constraints for microMIPS store patterns.
16873
16874 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
16875
16876 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
16877
16878 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
16879
16880 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
16881 (append_use): Run at -O0.
16882 (append_vdef): Likewise.
16883 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
16884 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
16885
16886 2014-04-16 Jakub Jelinek <jakub@redhat.com>
16887
16888 PR tree-optimization/60844
16889 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
16890 (propagate_op_to_single_use, remove_visited_stmt_chain,
16891 linearize_expr, repropagate_negates, reassociate_bb): Use it
16892 instead of gsi_remove.
16893
16894 2014-04-16 Martin Jambor <mjambor@suse.cz>
16895
16896 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
16897 ipa_transforms_to_apply.
16898 (cgraph_function_versioning): Assert that old_node has empty
16899 ipa_transforms_to_apply.
16900 * trans-mem.c (ipa_tm_create_version): Likewise.
16901 * tree-inline.c (tree_function_versioning): Do not duplicate
16902 ipa_transforms_to_apply.
16903
16904 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16905
16906 PR target/60817
16907 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
16908 x86_64-*-* cases.
16909 Pass necessary as flags on 64-bit Solaris/x86.
16910 Use lowercase relocs for x86_64-*-*.
16911 * configure: Regenerate.
16912
16913 2014-04-15 Jan Hubicka <jh@suse.cz>
16914
16915 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
16916 (maybe_record_node, likely_target_p): Use it.
16917
16918 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16919
16920 PR target/60839
16921 Revert following patch
16922
16923 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16924
16925 PR target/60735
16926 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16927 software floating point or no floating point registers, do not
16928 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16929 in GPRs that occurs after we tested for GPRs that would never be
16930 true.
16931
16932 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16933 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16934 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16935 specifically allow DDmode, since that does not use the SPE SIMD
16936 instructions.
16937
16938 2014-03-21 Mark Wielaard <mjw@redhat.com>
16939
16940 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
16941 as unsigned or int depending on type and value used.
16942
16943 2014-04-15 Richard Biener <rguenther@suse.de>
16944
16945 PR rtl-optimization/56965
16946 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
16947 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
16948 ... here.
16949 * alias.c (true_dependence_1): Do not call
16950 nonoverlapping_component_refs_p.
16951 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
16952 nonoverlapping_component_refs_p.
16953 (indirect_refs_may_alias_p): Likewise.
16954
16955 2014-04-15 Teresa Johnson <tejohnson@google.com>
16956
16957 * cfg.c (dump_bb_info): Fix flags check.
16958 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
16959
16960 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16961
16962 PR rtl-optimization/60663
16963 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
16964 avoid 0 cost.
16965
16966 2014-04-15 Richard Biener <rguenther@suse.de>
16967
16968 * lto-streamer.h (LTO_major_version): Bump to 4.
16969
16970 2014-04-15 Richard Biener <rguenther@suse.de>
16971
16972 * common.opt (lto_partition_model): New enum.
16973 (flto-partition=): Merge separate options with a single with argument,
16974 add -flto-partition=one support.
16975 * flag-types.h (enum lto_partition_model): Declare.
16976 * opts.c (finish_options): Remove duplicate -flto-partition=
16977 option check.
16978 * lto-wrapper.c (run_gcc): Adjust.
16979
16980 2014-04-15 Richard Biener <rguenther@suse.de>
16981
16982 * alias.c (ncr_compar): New function.
16983 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
16984
16985 2014-04-15 Richard Biener <rguenther@suse.de>
16986
16987 * alias.c (record_component_aliases): Do not walk BINFOs.
16988
16989 2014-04-15 Richard Biener <rguenther@suse.de>
16990
16991 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16992 Add struct function argument and adjust.
16993 (find_func_aliases_for_call): Likewise.
16994 (find_func_aliases): Likewise.
16995 (find_func_clobbers): Likewise.
16996 (intra_create_variable_infos): Likewise.
16997 (compute_points_to_sets): Likewise.
16998 (ipa_pta_execute): Adjust. Do not push/pop cfun.
16999
17000 2014-04-15 Richard Biener <rguenther@suse.de>
17001
17002 * tree.c (iterative_hash_expr): Use enum tree_code_class
17003 to store TREE_CODE_CLASS.
17004 (tree_block): Likewise.
17005 (tree_set_block): Likewise.
17006 * tree.h (fold_build_pointer_plus_loc): Use
17007 convert_to_ptrofftype_loc.
17008
17009 2014-04-15 Jakub Jelinek <jakub@redhat.com>
17010
17011 PR plugins/59335
17012 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
17013 added in 4.9.
17014
17015 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
17016
17017 * cfgloop.h (struct loop): Move force_vectorize down.
17018 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
17019 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
17020 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
17021 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
17022 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
17023 * tree-core.h (enum annot_expr_kind): Add new kind values.
17024 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
17025 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
17026 kinds.
17027 * tree.def (ANNOTATE_EXPR): Tweak comment.
17028
17029 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
17030
17031 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
17032 cxa_pure_virtual).
17033
17034 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
17035
17036 * tree.h (TYPE_IDENTIFIER): Declare.
17037 * tree.c (subrange_type_for_debug_p): Use it.
17038 * godump.c (go_format_type): Likewise.
17039 * dwarf2out.c (is_cxx_auto, modified_type_die,
17040 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
17041 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
17042
17043 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
17044
17045 PR lto/60820
17046 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
17047
17048 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
17049
17050 * config/i386/i386.c (examine_argument): Return bool. Return true if
17051 parameter should be passed in memory.
17052 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
17053 (construct_container): Update calls to examine_argument.
17054 (function_arg_advance_64): Ditto.
17055 (return_in_memory_32): Merge with ix86_return_in_memory.
17056 (return_in_memory_64): Ditto.
17057 (return_in_memory_ms_64): Ditto.
17058
17059 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
17060
17061 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
17062 * coverage.c (coverage_compute_profile_id): Handle externally visible
17063 symbols.
17064
17065 2014-04-14 Martin Jambor <mjambor@suse.cz>
17066
17067 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
17068 DECL_DISREGARD_INLINE_LIMITS functions.
17069
17070 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
17071
17072 PR target/60827
17073 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
17074
17075 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
17076
17077 PR target/60827
17078 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
17079 optimize_insn_for_speed_p instead of
17080 optimize_function_for_speed_p.
17081
17082 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
17083
17084 * doc/invoke.texi (free): Document AArch64.
17085
17086 2014-04-14 Richard Biener <rguenther@suse.de>
17087
17088 PR tree-optimization/60042
17089 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
17090 (insert_into_preds_of_block): Do not prevent PHI insertion
17091 for REFERENCE exprs here ...
17092 (eliminate_dom_walker::before_dom_children): ... but prevent
17093 their use here under similar conditions when applied to the
17094 IL after PRE optimizations.
17095
17096 2014-04-14 Richard Biener <rguenther@suse.de>
17097
17098 * passes.def: Move early points-to after early SRA.
17099
17100 2014-04-14 Richard Biener <rguenther@suse.de>
17101
17102 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
17103 check for which sign-changes we allow when forwarding
17104 a converted value into a switch.
17105
17106 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
17107
17108 * stor-layout.c (place_field): Finalize non-constant offset for the
17109 field, if any.
17110
17111 2014-04-14 Richard Biener <rguenther@suse.de>
17112
17113 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
17114 as argument.
17115 (expand_switch_using_bit_tests_p): Likewise.
17116 (process_switch): Compute and pass on speed_p based on the
17117 switch stmt.
17118 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
17119 optimize_bb_for_speed_p.
17120
17121 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
17122
17123 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
17124 * function.h (struct function): Rename has_force_vect_loops into
17125 has_force_vectorize_loops.
17126 * lto-streamer-in.c (input_cfg): Adjust for renaming.
17127 (input_struct_function_base): Likewise.
17128 * lto-streamer-out.c (output_cfg): Likewise.
17129 (output_struct_function_base): Likewise.
17130 * omp-low.c (expand_omp_simd): Likewise.
17131 * tree-cfg.c (move_sese_region_to_fn): Likewise.
17132 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
17133 (version_loop_for_if_conversion): Likewise.
17134 (tree_if_conversion): Likewise.
17135 (main_tree_if_conversion): Likewise.
17136 (gate_tree_if_conversion): Likewise.
17137 * tree-inline.c (copy_loops): Likewise.
17138 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
17139 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
17140 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
17141 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
17142 * tree-vectorizer.c (vectorize_loops): Likewise.
17143 * tree-vectorizer.h (unlimited_cost_model): Likewise.
17144
17145 2014-04-14 Richard Biener <rguenther@suse.de>
17146
17147 PR lto/60720
17148 * lto-streamer-out.c (wrap_refs): New function.
17149 (lto_output): Wrap symbol references in global initializes in
17150 type-preserving MEM_REFs.
17151
17152 2014-04-14 Christian Bruel <christian.bruel@st.com>
17153
17154 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
17155
17156 2014-04-14 Christian Bruel <christian.bruel@st.com>
17157
17158 * config/sh/sh.md (setmemqi): New expand pattern.
17159 * config/sh/sh.h (CLEAR_RATIO): Define.
17160 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
17161 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
17162
17163 2014-04-14 Richard Biener <rguenther@suse.de>
17164
17165 PR middle-end/55022
17166 * fold-const.c (negate_expr_p): Don't negate directional rounding
17167 division.
17168 (fold_negate_expr): Likewise.
17169
17170 2014-04-14 Richard Biener <rguenther@suse.de>
17171
17172 PR tree-optimization/59817
17173 PR tree-optimization/60453
17174 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
17175 recursion to catch all CHRECs in the scalar evolution and restrict
17176 the predicate for the remains appropriately.
17177
17178 2014-04-12 Catherine Moore <clm@codesourcery.com>
17179
17180 * config/mips/constraints.md: Add new register constraint "kb".
17181 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
17182 (*movhi_internal): Likewise.
17183 (*movqi_internal): Likewise.
17184 * config/mips/mips.h (M16_STORE_REGS): New register class.
17185 (REG_CLASS_NAMES): Add M16_STORE_REGS.
17186 (REG_CLASS_CONTENTS): Likewise.
17187 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
17188
17189 2014-04-11 Tobias Burnus <burnus@net-b.de>
17190
17191 PR c/60194
17192 * doc/invoke.texi (-Wformat-signedness): Document it.
17193 (Wformat=2): Mention that this enables -Wformat-signedness.
17194
17195 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
17196
17197 * common/config/epiphany/epiphany-common.c
17198 (epiphany_option_optimization_table): Enable section anchors by
17199 default at -O1 or higher.
17200 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
17201 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
17202 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
17203 carries no extra cost.
17204 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
17205 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
17206 * config/epiphany/predicates.md (memclob_operand): New predicate.
17207 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
17208 Use memclob_operand predicate and X constraint for operand 3.
17209
17210 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
17211
17212 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
17213 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
17214 its operands.
17215
17216 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
17217
17218 PR rtl-optimization/60651
17219 * mode-switching.c (optimize_mode_switching): Make sure to emit
17220 sets of a lower numbered entity before sets of a higher numbered
17221 entity to a mode of the same or lower priority.
17222 When creating a seginfo for a basic block that starts with a code
17223 label, move the insertion point past the code label.
17224 (new_seginfo): Document and enforce requirement that
17225 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
17226 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
17227 * doc/tm.texi: Regenerate.
17228
17229 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
17230
17231 PR target/60811
17232 * config/arc/arc.c (arc_save_restore): Fix assert typo.
17233
17234 2013-04-11 Jakub Jelinek <jakub@redhat.com>
17235
17236 * BASE-VER: Set to 4.10.0.
17237
17238 2014-04-11 Tobias Burnus <burnus@net-b.de>
17239
17240 PR other/59055
17241 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
17242 * doc/gcc.texi (Service): Update description in the @menu
17243 * doc/invoke.texi (Option Summary): Remove misplaced and
17244 duplicated @menu.
17245
17246 2014-04-11 Steve Ellcey <sellcey@mips.com>
17247 Jakub Jelinek <jakub@redhat.com>
17248
17249 PR middle-end/60556
17250 * expr.c (convert_move): Use emit_store_flag_force instead of
17251 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
17252 argument to it.
17253
17254 2014-04-11 Richard Biener <rguenther@suse.de>
17255
17256 PR middle-end/60797
17257 * varasm.c (assemble_alias): Avoid endless error reporting
17258 recursion by setting TREE_ASM_WRITTEN.
17259
17260 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17261
17262 * config/s390/s390.md: Add a splitter for NOT rtx.
17263
17264 2014-04-11 Jakub Jelinek <jakub@redhat.com>
17265
17266 PR rtl-optimization/60663
17267 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
17268
17269 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
17270 Jakub Jelinek <jakub@redhat.com>
17271
17272 PR lto/60567
17273 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
17274 flag from decl_node to node.
17275
17276 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17277
17278 PR debug/60655
17279 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
17280 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
17281 ameliorating the cases where it can be.
17282
17283 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
17284
17285 Revert
17286 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
17287
17288 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
17289 (loadsync_<mode>): Change mode.
17290 (load_quadpti, store_quadpti): New.
17291 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
17292 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
17293 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
17294
17295 2014-04-09 Cong Hou <congh@google.com>
17296
17297 PR testsuite/60773
17298 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
17299 documentation.
17300
17301 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17302
17303 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
17304 instead of vnor to exploit possible fusion opportunity in the
17305 future.
17306 (altivec_expand_vec_perm_const_le): Likewise.
17307
17308 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
17309
17310 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
17311 (loadsync_<mode>): Change mode.
17312 (load_quadpti, store_quadpti): New.
17313 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
17314 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
17315
17316 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
17317
17318 PR target/60763
17319 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
17320 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
17321 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
17322
17323 2014-04-08 Richard Biener <rguenther@suse.de>
17324
17325 PR middle-end/60706
17326 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
17327 a 64bit widest int print double-int similar to on HWI64 hosts.
17328
17329 2014-04-08 Richard Biener <rguenther@suse.de>
17330
17331 PR tree-optimization/60785
17332 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
17333 default defs properly.
17334
17335 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
17336
17337 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
17338 (Weffc++): Likewise.
17339
17340 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
17341
17342 * ipa-devirt.c (maybe_record_node): When node is not recorded,
17343 set completep to false rather than true.
17344
17345 2014-04-07 Douglas B Rupp <rupp@adacore.com>
17346
17347 PR target/60504
17348 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
17349 ARM_TARGET2_DWARF_FORMAT.
17350
17351 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
17352
17353 PR target/60609
17354 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
17355 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
17356 ADDR_DIFF_VEC.
17357
17358 2014-04-07 Richard Biener <rguenther@suse.de>
17359
17360 PR tree-optimization/60766
17361 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
17362 (may_eliminate_iv): Convert cand_value_at result to desired type.
17363
17364 2014-04-07 Jason Merrill <jason@redhat.com>
17365
17366 PR c++/60731
17367 * common.opt (-fno-gnu-unique): Add.
17368 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
17369
17370 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17371
17372 * haifa-sched.c: Fix outdated function reference and minor
17373 grammar errors in introductory comment.
17374
17375 2014-04-07 Richard Biener <rguenther@suse.de>
17376
17377 PR middle-end/60750
17378 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
17379 for noreturn calls.
17380 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
17381
17382 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
17383
17384 PR debug/55794
17385 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
17386 size accounting for thunks.
17387 (pa_asm_output_mi_thunk): Use final_start_function() and
17388 final_end_function() to output function start and end directives.
17389
17390 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
17391
17392 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
17393 device specific ISA/ feature information. Remove short_sp and
17394 errata_skip ds. Add avr_device_specific_features enum to have device
17395 specific info.
17396 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
17397 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
17398 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
17399 updated device specific info.
17400 * config/avr/avr-mcus.def: Merge device specific details to
17401 dev_attribute field.
17402 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
17403 errata_skip.
17404 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
17405 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
17406 assembler if RMW isa supported by current device.
17407 * config/avr/genmultilib.awk: Update as device info structure changed.
17408 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
17409
17410 2014-04-04 Cong Hou <congh@google.com>
17411
17412 PR tree-optimization/60656
17413 * tree-vect-stmts.c (supportable_widening_operation):
17414 Fix a bug that elements in a vector with vect_used_by_reduction
17415 property are incorrectly reordered when the operation on it is not
17416 consistant with the one in reduction operation.
17417
17418 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
17419
17420 PR rtl-optimization/60155
17421 * gcse.c (record_set_data): New function.
17422 (single_set_gcse): New function.
17423 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
17424 (hoist_code): Likewise.
17425 (get_pressure_class_and_nregs): Likewise.
17426
17427 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
17428
17429 * explow.c (probe_stack_range): Emit a final optimization blockage.
17430
17431 2014-04-04 Anthony Green <green@moxielogic.com>
17432
17433 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
17434 typos.
17435
17436 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
17437
17438 PR ipa/59626
17439 * lto-cgraph.c (input_overwrite_node): Check that partitioning
17440 flags are set only during streaming.
17441 * ipa.c (process_references, walk_polymorphic_call_targets,
17442 symtab_remove_unreachable_nodes): Drop bodies of always inline
17443 after early inlining.
17444 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
17445
17446 2014-04-04 Jakub Jelinek <jakub@redhat.com>
17447 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17448
17449 PR debug/60655
17450 * dwarf2out.c (const_ok_for_output_1): Reject expressions
17451 containing a NOT.
17452
17453 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17454
17455 PR bootstrap/60743
17456 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
17457 duration.
17458 (cortex_a53_fdivd): Likewise.
17459
17460 2014-04-04 Martin Jambor <mjambor@suse.cz>
17461
17462 PR ipa/60640
17463 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
17464 Adjust all callers.
17465 * cgraph.c (clone_of_p): Also return true if thunks match.
17466 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
17467 cgraph_function_or_thunk_node and an obsolete comment.
17468 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
17469 file.
17470 (build_function_decl_skip_args): Likewise.
17471 (set_new_clone_decl_and_node_flags): New function.
17472 (duplicate_thunk_for_node): Likewise.
17473 (redirect_edge_duplicating_thunks): Likewise.
17474 (cgraph_clone_node): New parameter args_to_skip, pass it to
17475 redirect_edge_duplicating_thunks which is called instead of
17476 cgraph_redirect_edge_callee.
17477 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
17478 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
17479
17480 2014-04-04 Jeff Law <law@redhat.com>
17481
17482 PR target/60657
17483 * config/arm/predicates.md (const_int_I_operand): New predicate.
17484 (const_int_M_operand): Similarly.
17485 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
17486 const_int_operand.
17487 (insv_t2, extv_reg, extzv_t2): Likewise.
17488 (load_multiple_with_writeback): Similarly for const_int_I_operand.
17489 (pop_multiple_with_writeback_and_return): Likewise.
17490 (vfp_pop_multiple_with_writeback): Likewise
17491
17492 2014-04-04 Richard Biener <rguenther@suse.de>
17493
17494 PR ipa/60746
17495 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
17496 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
17497 non-GIMPLE_LABELs.
17498 * gimplify.h (gimple_add_tmp_var_fn): Declare.
17499 * gimplify.c (gimple_add_tmp_var_fn): New function.
17500 * gimple-expr.h (create_tmp_reg_fn): Declare.
17501 * gimple-expr.c (create_tmp_reg_fn): New function.
17502 * gimple-low.c (record_vars_into): Don't change cfun.
17503 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
17504 code generation without cfun.
17505
17506 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
17507
17508 PR bootstrap/60719
17509 * Makefile.in (install-driver): Fix shell scripting.
17510
17511 2014-04-03 Cong Hou <congh@google.com>
17512
17513 PR tree-optimization/60505
17514 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
17515 threshold of number of iterations below which no vectorization
17516 will be done.
17517 * tree-vect-loop.c (new_loop_vec_info):
17518 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
17519 * tree-vect-loop.c (vect_analyze_loop_operations):
17520 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
17521 * tree-vect-loop.c (vect_transform_loop):
17522 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
17523 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
17524 of iterations of the loop and see if we should build the epilogue.
17525
17526 2014-04-03 Richard Biener <rguenther@suse.de>
17527
17528 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
17529 (streamer_tree_cache_create): Adjust.
17530 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
17531 to allow optional nodes array.
17532 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
17533 (streamer_tree_cache_append): Likewise.
17534 (streamer_tree_cache_create): Create nodes array optionally
17535 as specified by parameter.
17536 * lto-streamer-out.c (create_output_block): Avoid maintaining
17537 the node array in the writer cache.
17538 (DFS_write_tree): Remove assertion.
17539 (produce_asm_for_decls): Free the out decl state hash table early.
17540 * lto-streamer-in.c (lto_data_in_create): Adjust for
17541 streamer_tree_cache_create prototype change.
17542
17543 2014-04-03 Richard Biener <rguenther@suse.de>
17544
17545 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
17546 set TREE_CHAIN to NULL_TREE.
17547
17548 2014-04-03 Richard Biener <rguenther@suse.de>
17549
17550 PR tree-optimization/60740
17551 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
17552 over all GIMPLE_COND operands.
17553
17554 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
17555
17556 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
17557 (Weffc++): Remove Scott's numbering, merge lists and reference
17558 Wnon-virtual-dtor.
17559
17560 2014-04-03 Nick Clifton <nickc@redhat.com>
17561
17562 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
17563 properly.
17564
17565 2014-04-03 Martin Jambor <mjambor@suse.cz>
17566
17567 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
17568 mention gcc_unreachable before failing.
17569 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
17570 removed symbols.
17571
17572 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
17573
17574 PR ipa/60659
17575 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
17576 inconsistent code and instead mark the context inconsistent.
17577 (possible_polymorphic_call_targets): For inconsistent contexts
17578 return empty complete list.
17579
17580 2014-04-02 Anthony Green <green@moxielogic.com>
17581
17582 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
17583 (extendqisi2, extendhisi2): Define.
17584 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
17585 (WCHAR_TYPE): Change to unsigned int.
17586
17587 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17588
17589 PR tree-optimization/60733
17590 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
17591 insertion point for PHI candidates to be the end of the feeding
17592 block for the PHI argument.
17593
17594 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
17595
17596 PR rtl-optimization/60650
17597 * lra-constraints.c (process_alt_operands): Decrease reject for
17598 earlyclobber matching.
17599
17600 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17601
17602 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
17603
17604 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17605
17606 * config/spu/spu.c (pad_bb): Do not crash when the last
17607 insn is CODE_FOR_blockage.
17608
17609 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17610
17611 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
17612 lies outside the target mode.
17613
17614 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17615
17616 PR target/60735
17617 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
17618 software floating point or no floating point registers, do not
17619 allow any type in the FPRs. Eliminate a test for SPE SIMD types
17620 in GPRs that occurs after we tested for GPRs that would never be
17621 true.
17622
17623 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
17624 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
17625 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
17626 specifically allow DDmode, since that does not use the SPE SIMD
17627 instructions.
17628
17629 2014-04-02 Richard Biener <rguenther@suse.de>
17630
17631 PR middle-end/60729
17632 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
17633 MODE_INTs. Properly use negv_optab.
17634 (expand_abs): Likewise.
17635
17636 2014-04-02 Richard Biener <rguenther@suse.de>
17637
17638 PR bootstrap/60719
17639 * Makefile.in (install-driver): Guard extra installs with special
17640 names properly.
17641
17642 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17643
17644 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17645 Document vec_vgbbd.
17646
17647 2014-04-01 Richard Henderson <rth@redhat.com>
17648
17649 PR target/60704
17650 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
17651 alternative enabled before register allocation.
17652
17653 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
17654
17655 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
17656 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
17657 typo.
17658 (nios2_large_got_address): Remove unneeded 'sym' parameter.
17659 (nios2_got_address): Update nios2_large_got_address call site.
17660 (nios2_delegitimize_address): New function.
17661 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
17662 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
17663 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
17664
17665 2014-04-01 Martin Husemann <martin@duskware.de>
17666
17667 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
17668 for -mabi=32.
17669
17670 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
17671
17672 PR rtl-optimization/60604
17673 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
17674 check from register_operand.
17675 (register_operand): Redefine in terms of general_operand.
17676 (nonmemory_operand): Use register_operand for the non-constant cases.
17677
17678 2014-04-01 Richard Biener <rguenther@suse.de>
17679
17680 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
17681
17682 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
17683
17684 * doc/invoke.texi (mapp-regs): Clarify.
17685
17686 2014-03-31 Ulrich Drepper <drepper@gmail.com>
17687
17688 * config/i386/avx512fintrin.h (__v32hi): Define type.
17689 (__v64qi): Likewise.
17690 (_mm512_set1_epi8): Define.
17691 (_mm512_set1_epi16): Define.
17692 (_mm512_set4_epi32): Define.
17693 (_mm512_set4_epi64): Define.
17694 (_mm512_set4_pd): Define.
17695 (_mm512_set4_ps): Define.
17696 (_mm512_setr4_epi64): Define.
17697 (_mm512_setr4_epi32): Define.
17698 (_mm512_setr4_pd): Define.
17699 (_mm512_setr4_ps): Define.
17700 (_mm512_setzero_epi32): Define.
17701
17702 2014-03-31 Martin Jambor <mjambor@suse.cz>
17703
17704 PR middle-end/60647
17705 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
17706 callsite_arguments_match_p. Updated all callers. Also check types of
17707 corresponding formal parameters and actual arguments.
17708 (not_all_callers_have_enough_arguments_p) Renamed to
17709 some_callers_have_mismatched_arguments_p.
17710
17711 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
17712
17713 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
17714
17715 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17716
17717 PR target/60034
17718 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
17719 section anchor.
17720
17721 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
17722
17723 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
17724 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
17725 Split out
17726 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
17727 Use FMAMODE_NOVF512 mode iterator.
17728 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
17729 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
17730 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
17731 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
17732 Split out
17733 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
17734 Use VF_128_256 mode iterator.
17735 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
17736 Ditto.
17737
17738 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
17739
17740 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
17741 static chain if needed.
17742
17743 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
17744
17745 PR target/60697
17746 * lra-constraints.c (index_part_to_reg): New.
17747 (process_address): Use it.
17748
17749 2014-03-27 Jeff Law <law@redhat.com>
17750 Jakub Jelinek <jakub@redhat.com>
17751
17752 PR target/60648
17753 * expr.c (do_tablejump): Use simplify_gen_binary rather than
17754 gen_rtx_{PLUS,MULT} to build up the address expression.
17755
17756 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
17757 creating non-canonical RTL.
17758
17759 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
17760
17761 PR ipa/60243
17762 * ipa-inline.c (want_inline_small_function_p): Short circuit large
17763 functions; reorganize to make cheap checks first.
17764 (inline_small_functions): Do not estimate growth when dumping;
17765 it is expensive.
17766 * ipa-inline.h (inline_summary): Add min_size.
17767 (growth_likely_positive): New function.
17768 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
17769 (set_cond_stmt_execution_predicate): Cleanup.
17770 (estimate_edge_size_and_time): Compute min_size.
17771 (estimate_calls_size_and_time): Likewise.
17772 (estimate_node_size_and_time): Likewise.
17773 (inline_update_overall_summary): Update min_size.
17774 (do_estimate_edge_time): Likewise.
17775 (do_estimate_edge_size): Update.
17776 (do_estimate_edge_hints): Update.
17777 (growth_likely_positive): New function.
17778
17779 2014-03-28 Jakub Jelinek <jakub@redhat.com>
17780
17781 PR target/60693
17782 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
17783 also if addr has VOIDmode.
17784
17785 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17786
17787 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
17788 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
17789 Declare extern.
17790 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
17791 instructions as well as AdvancedSIMD loads.
17792
17793 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17794
17795 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
17796 Use crypto_aese type.
17797 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
17798 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
17799 crypto_aese, crypto_aesmc. Move to types.md.
17800 * config/arm/types.md (crypto_aes): Split into crypto_aese,
17801 crypto_aesmc.
17802 * config/arm/iterators.md (crypto_type): Likewise.
17803
17804 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
17805
17806 * cgraph.c: Include expr.h and tree-dfa.h.
17807 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
17808 remove LHS.
17809
17810 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
17811
17812 PR target/60675
17813 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
17814 regs from checking multi-reg pseudos.
17815
17816 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17817
17818 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
17819
17820 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17821
17822 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
17823 if it would clobber the stack pointer, even temporarily.
17824
17825 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
17826
17827 * mode-switching.c: Make small adjustments to the top comment.
17828
17829 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
17830
17831 * config/rs6000/constraints.md (wD constraint): New constraint to
17832 match the constant integer to get the top DImode/DFmode out of a
17833 vector in a VSX register.
17834
17835 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
17836 match the constant integer to get the top DImode/DFmode out of a
17837 vector in a VSX register.
17838
17839 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
17840 for ISA 2.07.
17841
17842 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17843 vbpermq builtins.
17844
17845 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
17846 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
17847
17848 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
17849 Optimize vec_extract of 64-bit values, where the value being
17850 extracted is in the top word, where we can use scalar
17851 instructions. Add direct move and store support. Combine the big
17852 endian/little endian vector select load support into a single insn.
17853 (vsx_extract_<mode>_internal1): Likewise.
17854 (vsx_extract_<mode>_internal2): Likewise.
17855 (vsx_extract_<mode>_load): Likewise.
17856 (vsx_extract_<mode>_store): Likewise.
17857 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
17858 combined into vsx_extract_<mode>_load.
17859 (vsx_extract_<mode>_one_le): Likewise.
17860
17861 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
17862 define the top 64-bit vector element.
17863
17864 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
17865 constraint.
17866
17867 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17868 Document vec_vbpermq builtin.
17869
17870 PR target/60672
17871 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
17872 enable use of xxsldwi and xxpermdi builtin functions.
17873 (vec_xxpermdi): Likewise.
17874
17875 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17876 Document use of vec_xxsldwi and vec_xxpermdi builtins.
17877
17878 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
17879
17880 PR rtl-optimization/60650
17881 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
17882 first_p. Use it.
17883 (find_spills_for): New.
17884 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
17885 Spill all pseudos on the second iteration.
17886
17887 2014-03-27 Marek Polacek <polacek@redhat.com>
17888
17889 PR c/50347
17890 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
17891 types.
17892
17893 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17894
17895 * config/s390/s390.c (s390_can_use_return_insn): Check for
17896 call-saved FPRs on 31 bit.
17897
17898 2014-03-27 Jakub Jelinek <jakub@redhat.com>
17899
17900 PR middle-end/60682
17901 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
17902 if they need regimplification, just drop them instead of
17903 calling gimple_regimplify_operands on them.
17904
17905 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
17906
17907 PR target/60580
17908 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
17909 (aarch64_frame_pointer_required): Adjust logic.
17910 (aarch64_can_eliminate): Adjust logic.
17911 (aarch64_override_options_after_change): Adjust logic.
17912
17913 2014-03-27 Dehao Chen <dehao@google.com>
17914
17915 * ipa-inline.c (early_inliner): Update node's inline info.
17916
17917 2014-03-26 Dehao Chen <dehao@google.com>
17918
17919 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
17920 compiler inserted conditional jumps for NAN float check.
17921
17922 2014-03-26 Jakub Jelinek <jakub@redhat.com>
17923
17924 * ubsan.h (ubsan_create_data): Change second argument's type
17925 to const location_t *.
17926 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
17927 _("<unknown>").
17928 (ubsan_create_data): Change second argument to const location_t *PLOC.
17929 Create Loc field whenever PLOC is non-NULL.
17930 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
17931 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
17932 callers.
17933
17934 PR other/59545
17935 * real.c (real_to_integer2): Change type of low to UHWI.
17936
17937 2014-03-26 Tobias Burnus <burnus@net-b.de>
17938
17939 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
17940 (CILK_SELF_SPECS): New define.
17941 (driver_self_specs): Use it.
17942
17943 2014-03-26 Richard Biener <rguenther@suse.de>
17944
17945 * tree-pretty-print.c (percent_K_format): Implement special
17946 case for LTO and its stripped down BLOCK tree.
17947
17948 2014-03-26 Jakub Jelinek <jakub@redhat.com>
17949
17950 PR sanitizer/60636
17951 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
17952
17953 * tree-vrp.c (simplify_internal_call_using_ranges): If only
17954 one range is range_int_cst_p, but not both, at least optimize
17955 addition/subtraction of 0 and multiplication by 0 or 1.
17956 * gimple-fold.c (gimple_fold_call): Fold
17957 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
17958 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
17959 INTEGER_CSTs, try to fold at least x * 0 and y - y.
17960
17961 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
17962
17963 PR rtl-optimization/60452
17964 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
17965 <case REG>: Return 1 for invalid offsets from the frame pointer.
17966
17967 2014-03-26 Marek Polacek <polacek@redhat.com>
17968
17969 PR c/37428
17970 * doc/extend.texi (C Extensions): Mention variable-length arrays in
17971 a structure/union.
17972
17973 2014-03-26 Marek Polacek <polacek@redhat.com>
17974
17975 PR c/39525
17976 * doc/extend.texi (Designated Inits): Describe what happens to omitted
17977 field members.
17978
17979 2014-03-26 Marek Polacek <polacek@redhat.com>
17980
17981 PR other/59545
17982 * ira-color.c (update_conflict_hard_regno_costs): Perform the
17983 multiplication in unsigned type.
17984
17985 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
17986
17987 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
17988
17989 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
17990
17991 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
17992
17993 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
17994
17995 PR ipa/60315
17996 * cif-code.def (UNREACHABLE) New code.
17997 * ipa-inline.c (inline_small_functions): Skip edges to
17998 __builtlin_unreachable.
17999 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
18000 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
18001 predicate to __bulitin_unreachable.
18002 (set_cond_stmt_execution_predicate): Fix issue when
18003 invert_tree_comparison returns ERROR_MARK.
18004 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
18005 propagate to inline clones.
18006 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
18007 to unreachable.
18008 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
18009 * cgraphclones.c (cgraph_clone_node): If call destination is already
18010 ureachable, do not redirect it back.
18011 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
18012 unreachable.
18013
18014 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
18015
18016 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
18017 Do not modify inline clones.
18018
18019 2014-03-25 Jakub Jelinek <jakub@redhat.com>
18020
18021 * config/i386/i386.md (general_sext_operand): New mode attr.
18022 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
18023 don't generate (sign_extend (const_int)).
18024 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
18025 operands[2]. Use We constraint instead of <i> and
18026 <general_sext_operand> predicate instead of <general_operand>.
18027 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
18028 * config/i386/constraints.md (We): New constraint.
18029 * config/i386/predicates.md (x86_64_sext_operand,
18030 sext_operand): New predicates.
18031
18032 2014-03-25 Martin Jambor <mjambor@suse.cz>
18033
18034 PR ipa/60600
18035 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
18036 inconsistent devirtualizations to __builtin_unreachable.
18037
18038 2014-03-25 Marek Polacek <polacek@redhat.com>
18039
18040 PR c/35449
18041 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
18042
18043 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
18044
18045 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
18046 order of elements for big-endian.
18047
18048 2014-03-25 Richard Biener <rguenther@suse.de>
18049
18050 PR middle-end/60635
18051 * gimplify-me.c (gimple_regimplify_operands): Update the
18052 re-gimplifed stmt.
18053
18054 2014-03-25 Martin Jambor <mjambor@suse.cz>
18055
18056 PR ipa/59176
18057 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
18058 (lto_output_varpool_node): Likewise.
18059 (input_overwrite_node): Likewise.
18060 (input_varpool_node): Likewise.
18061
18062 2014-03-25 Richard Biener <rguenther@suse.de>
18063
18064 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
18065 (run_gcc): Likewise.
18066
18067 2014-03-25 Jakub Jelinek <jakub@redhat.com>
18068
18069 * combine.c (simplify_compare_const): Add MODE argument.
18070 Handle mode_width 0 as very large mode_width.
18071 (try_combine, simplify_comparison): Adjust callers.
18072
18073 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
18074 type to avoid signed integer overflow.
18075 * explow.c (plus_constant): Likewise.
18076
18077 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
18078
18079 * doc/generic.texi: Correct typos.
18080
18081 2014-03-24 Tobias Burnus <burnus@net-b.de>
18082
18083 * doc/invoke.texi (-flto): Expand section about
18084 using static libraries with LTO.
18085
18086 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18087
18088 PR rtl-optimization/60501
18089 * optabs.def (addptr3_optab): New optab.
18090 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
18091 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
18092 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
18093
18094 * lra.c (emit_add3_insn): Use the addptr pattern if available.
18095
18096 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
18097
18098 2014-03-24 Ulrich Drepper <drepper@gmail.com>
18099
18100 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
18101 _mm512_set1_pd.
18102
18103 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
18104 (_mm256_undefined_ps): Define.
18105 (_mm256_undefined_pd): Define.
18106 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
18107 (_mm_undefined_pd): Define.
18108 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
18109 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
18110 (_mm512_undefined_ps): Define.
18111 (_mm512_undefined_pd): Define.
18112 Use _mm*_undefined_*.
18113 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
18114
18115 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
18116
18117 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
18118 (lshr_simd): DI mode added.
18119 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
18120 (aarch64_ushr_simddi): Likewise.
18121 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
18122 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
18123 (vshrd_n_u64): Likewise.
18124
18125 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18126
18127 * Makefile.in (s-macro_list): Depend on cc1.
18128
18129 2014-03-23 Teresa Johnson <tejohnson@google.com>
18130
18131 * ipa-utils.c (ipa_print_order): Use specified dump file.
18132
18133 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
18134
18135 PR rtl-optimization/60601
18136 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
18137
18138 * gcc.c (eval_spec_function): Initialize save_growing_value.
18139
18140 2014-03-22 Jakub Jelinek <jakub@redhat.com>
18141
18142 PR sanitizer/60613
18143 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
18144 code == MINUS_EXPR, never swap op0 with op1.
18145
18146 * toplev.c (init_local_tick): Avoid signed integer multiplication
18147 overflow.
18148 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
18149 shift by first operand's bitsize.
18150
18151 2014-03-21 Jakub Jelinek <jakub@redhat.com>
18152
18153 PR target/60610
18154 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
18155 redefine to 1 or 0.
18156 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
18157 TARGET_ISA_64BIT_P(x).
18158
18159 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18160
18161 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
18162 pattern for vector nor instead of subtract from splat(-1).
18163 (altivec_expand_vec_perm_const_le): Likewise.
18164
18165 2014-03-21 Richard Henderson <rth@twiddle.net>
18166
18167 PR target/60598
18168 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
18169 related insns after epilogue_completed.
18170
18171 2014-03-21 Martin Jambor <mjambor@suse.cz>
18172
18173 PR ipa/59176
18174 * cgraph.h (symtab_node): New flag body_removed.
18175 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
18176 when removing bodies.
18177 * symtab.c (dump_symtab_base): Dump body_removed flag.
18178 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
18179 had their bodies removed.
18180
18181 2014-03-21 Martin Jambor <mjambor@suse.cz>
18182
18183 PR ipa/60419
18184 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
18185 in the border.
18186
18187 2014-03-21 Richard Biener <rguenther@suse.de>
18188
18189 PR tree-optimization/60577
18190 * tree-core.h (struct tree_base): Document nothrow_flag use
18191 in DECL_NONALIASED.
18192 * tree.h (DECL_NONALIASED): New.
18193 (may_be_aliased): Adjust.
18194 * coverage.c (build_var): Set DECL_NONALIASED.
18195
18196 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
18197
18198 * expr.c (expand_expr_real_1): Remove outdated comment.
18199
18200 2014-03-20 Jakub Jelinek <jakub@redhat.com>
18201
18202 PR middle-end/60597
18203 * ira.c (adjust_cleared_regs): Call copy_rtx on
18204 *reg_equiv[REGNO (loc)].src_p before passing it to
18205 simplify_replace_fn_rtx.
18206
18207 PR target/60568
18208 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
18209 into CONST, put pic register as first operand of PLUS. Use
18210 gen_const_mem for both 32-bit and 64-bit PIC got loads.
18211
18212 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18213
18214 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
18215
18216 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
18217
18218 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
18219 around for store forwarding issue in the FPU on the UT699.
18220 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
18221 loads and operations if -mfix-ut699 is specified.
18222 (divtf3_hq): Tweak attribute.
18223 (sqrttf2_hq): Likewise.
18224
18225 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
18226
18227 * calls.c (store_one_arg): Remove incorrect const qualification on the
18228 type of the temporary.
18229 * cfgexpand.c (expand_return): Likewise.
18230 * expr.c (expand_constructor): Likewise.
18231 (expand_expr_real_1): Likewise.
18232
18233 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18234
18235 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
18236 of parts.
18237
18238 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
18239
18240 PR target/60039
18241 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
18242
18243 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
18244
18245 * config/arm/aarch-common-protos.h
18246 (alu_cost_table): Fix spelling of "extend".
18247 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
18248
18249 2014-03-19 Richard Biener <rguenther@suse.de>
18250
18251 PR middle-end/60553
18252 * tree-core.h (tree_type_common): Re-order pointer members
18253 to reduce recursion depth during GC walks.
18254
18255 2014-03-19 Marek Polacek <polacek@redhat.com>
18256
18257 PR sanitizer/60569
18258 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
18259 before accessing it.
18260
18261 2014-03-19 Richard Biener <rguenther@suse.de>
18262
18263 PR lto/59543
18264 * lto-streamer-in.c (input_function): In WPA stage do not drop
18265 debug stmts.
18266
18267 2014-03-19 Jakub Jelinek <jakub@redhat.com>
18268
18269 PR tree-optimization/60559
18270 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
18271 with build_zero_cst assignment.
18272
18273 2014-03-18 Kai Tietz <ktietz@redhat.com>
18274
18275 PR rtl-optimization/56356
18276 * sdbout.c (sdbout_parms): Verify that parms'
18277 incoming argument is valid.
18278 (sdbout_reg_parms): Likewise.
18279
18280 2014-03-18 Richard Henderson <rth@redhat.com>
18281
18282 PR target/60562
18283 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
18284 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
18285 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
18286
18287 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
18288
18289 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
18290 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
18291 Italicize plugin event names in description. Explain that
18292 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
18293 Remind that no GCC functions should be called after PLUGIN_FINISH.
18294 Explain what pragmas with expansion are.
18295
18296 2014-03-18 Martin Liska <mliska@suse.cz>
18297
18298 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
18299 gimple call statement is update.
18300 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
18301 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
18302
18303 2014-03-18 Jakub Jelinek <jakub@redhat.com>
18304
18305 PR sanitizer/60557
18306 * ubsan.c (ubsan_instrument_unreachable): Call
18307 initialize_sanitizer_builtins.
18308 (ubsan_pass): Likewise.
18309
18310 PR sanitizer/60535
18311 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
18312 varpool_finalize_decl instead of rest_of_decl_compilation.
18313
18314 2014-03-18 Richard Biener <rguenther@suse.de>
18315
18316 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
18317 by using bitmap_and_compl instead of bitmap_and_compl_into.
18318 (df_rd_transfer_function): Likewise.
18319
18320 2014-03-18 Richard Biener <rguenther@suse.de>
18321
18322 * doc/lto.texi (fresolution): Fix typo.
18323
18324 2014-03-18 Richard Biener <rguenther@suse.de>
18325
18326 * doc/invoke.texi (flto): Update for changes in 4.9.
18327
18328 2014-03-18 Richard Biener <rguenther@suse.de>
18329
18330 * doc/loop.texi: Remove section on the removed lambda framework.
18331 Update loop docs with recent changes in preserving loop structure.
18332
18333 2014-03-18 Richard Biener <rguenther@suse.de>
18334
18335 * doc/lto.texi (-fresolution): Document.
18336
18337 2014-03-18 Richard Biener <rguenther@suse.de>
18338
18339 * doc/contrib.texi: Adjust my name.
18340
18341 2014-03-18 Jakub Jelinek <jakub@redhat.com>
18342
18343 PR ipa/58721
18344 * internal-fn.c: Include diagnostic-core.h.
18345 (expand_BUILTIN_EXPECT): New function.
18346 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
18347 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
18348 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
18349 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
18350 IFN_BUILTIN_EXPECT.
18351 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
18352 Revert 3 argument __builtin_expect code.
18353 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
18354 * gimple-fold.c (gimple_fold_call): Likewise.
18355 * tree.h (fold_builtin_expect): New prototype.
18356 * builtins.c (build_builtin_expect_predicate): Add predictor
18357 argument, if non-NULL, create 3 argument __builtin_expect.
18358 (fold_builtin_expect): No longer static. Add ARG2 argument,
18359 pass it through to build_builtin_expect_predicate.
18360 (fold_builtin_2): Adjust caller.
18361 (fold_builtin_3): Handle BUILT_IN_EXPECT.
18362 * internal-fn.def (BUILTIN_EXPECT): New.
18363
18364 2014-03-18 Tobias Burnus <burnus@net-b.de>
18365
18366 PR ipa/58721
18367 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
18368 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
18369 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
18370
18371 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
18372
18373 PR ipa/58721
18374 * predict.c (combine_predictions_for_bb): Fix up formatting.
18375 (expr_expected_value_1, expr_expected_value): Add predictor argument,
18376 fill what it points to if non-NULL.
18377 (tree_predict_by_opcode): Adjust caller, use the predictor.
18378 * predict.def (PRED_COMPARE_AND_SWAP): Add.
18379
18380 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
18381
18382 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
18383 proper constant for the store mode.
18384
18385 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
18386
18387 * symtab.c (change_decl_assembler_name): Fix transparent alias
18388 chain construction.
18389
18390 2014-03-16 Renlin Li <Renlin.Li@arm.com>
18391
18392 * config/aarch64/aarch64.c: Correct the comments about the
18393 aarch64 stack layout.
18394
18395 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
18396
18397 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
18398 check for GF_OMP_FOR_KIND_FOR.
18399
18400 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
18401
18402 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
18403 ymm and zmm register names.
18404
18405 2014-03-17 Jakub Jelinek <jakub@redhat.com>
18406
18407 PR target/60516
18408 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
18409 note creation for the 2010-08-31 changes.
18410
18411 2014-03-17 Marek Polacek <polacek@redhat.com>
18412
18413 PR middle-end/60534
18414 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
18415 as -fno-tree-loop-vectorize.
18416 (expand_omp_simd): Likewise.
18417
18418 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
18419
18420 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
18421 (eligible_for_call_delay): New prototype.
18422 * config/sparc/sparc.c (tls_call_delay): Rename into...
18423 (eligible_for_call_delay): ...this. Return false if the instruction
18424 cannot be put in the delay slot of a branch.
18425 (eligible_for_restore_insn): Simplify.
18426 (eligible_for_return_delay): Return false if the instruction cannot be
18427 put in the delay slot of a branch and simplify.
18428 (eligible_for_sibcall_delay): Return false if the instruction cannot be
18429 put in the delay slot of a branch.
18430 * config/sparc/sparc.md (fix_ut699): New attribute.
18431 (tls_call_delay): Delete.
18432 (in_call_delay): Reimplement.
18433 (eligible_for_sibcall_delay): Rename into...
18434 (in_sibcall_delay): ...this.
18435 (eligible_for_return_delay): Rename into...
18436 (in_return_delay): ...this.
18437 (in_branch_delay): Reimplement.
18438 (in_uncond_branch_delay): Delete.
18439 (in_annul_branch_delay): Delete.
18440
18441 2014-03-14 Richard Henderson <rth@redhat.com>
18442
18443 PR target/60525
18444 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
18445 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
18446 (*floathi<X87MODEF>2_i387_with_temp): Remove.
18447 (floathi splitters): Remove.
18448 (float<SWI48x>xf2): New pattern.
18449 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
18450 code that tried to handle DImode for 32-bit, but which was excluded
18451 by the pattern's condition. Drop allocation of stack temporary.
18452 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
18453 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
18454 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
18455 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
18456 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
18457 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
18458 (*float<SWI48><MODEF>2_sse_interunit): Remove.
18459 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
18460 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
18461 (*float<SWI48x><X87MODEF>2_i387): Remove.
18462 (all float _with_temp splitters): Remove.
18463 (*float<SWI48x><MODEF>2_i387): New pattern.
18464 (*float<SWI48><MODEF>2_sse): New pattern.
18465 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
18466 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
18467
18468 2014-03-14 Jakub Jelinek <jakub@redhat.com>
18469 Marek Polacek <polacek@redhat.com>
18470
18471 PR middle-end/60484
18472 * common.opt (dump_base_name_prefixed): New Variable.
18473 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
18474 if x_dump_base_name_prefixed is already set, set it at the end.
18475
18476 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
18477
18478 PR rtl-optimization/60508
18479 * lra-constraints.c (get_reload_reg): Add new parameter
18480 in_subreg_p.
18481 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
18482 Pass the new parameter values.
18483
18484 2014-03-14 Richard Biener <rguenther@suse.de>
18485
18486 * common.opt: Revert unintented changes from r205065.
18487 * opts.c: Likewise.
18488
18489 2014-03-14 Richard Biener <rguenther@suse.de>
18490
18491 PR middle-end/60518
18492 * cfghooks.c (split_block): Properly adjust all loops the
18493 block was a latch of.
18494
18495 2014-03-14 Martin Jambor <mjambor@suse.cz>
18496
18497 PR lto/60461
18498 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
18499 and simplify it.
18500
18501 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
18502
18503 PR target/59396
18504 * config/avr/avr.c (avr_set_current_function): Pass function name
18505 through default_strip_name_encoding before sanity checking instead
18506 of skipping the first char of the assembler name.
18507
18508 2014-03-13 Richard Henderson <rth@redhat.com>
18509
18510 PR debug/60438
18511 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
18512 (ix86_force_to_memory, ix86_free_from_memory): Remove.
18513 * config/i386/i386-protos.h: Likewise.
18514 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
18515 in the expander instead of a splitter.
18516 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
18517 any possibility of requiring a memory.
18518 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
18519 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
18520 (fp branch splitters): Update for ix86_split_fp_branch.
18521 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
18522 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
18523 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
18524 (*fop_<MODEF>_2_i387): Remove f/r alternative.
18525 (*fop_<MODEF>_3_i387): Likewise.
18526 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
18527 (splitters for the fop_* register patterns): Remove.
18528 (fscalexf4_i387): Rename from *fscalexf4_i387.
18529 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
18530
18531 2014-03-13 Jakub Jelinek <jakub@redhat.com>
18532
18533 PR tree-optimization/59779
18534 * tree-dfa.c (get_ref_base_and_extent): Use double_int
18535 type for bitsize and maxsize instead of HOST_WIDE_INT.
18536
18537 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
18538
18539 PR rtl-optimization/57320
18540 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
18541 the CFG after thread_prologue_and_epilogue_insns.
18542
18543 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
18544
18545 PR rtl-optimization/57189
18546 * lra-constraints.c (process_alt_operands): Disfavor spilling
18547 vector pseudos.
18548
18549 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
18550
18551 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
18552
18553 2014-03-13 Jakub Jelinek <jakub@redhat.com>
18554
18555 PR tree-optimization/59025
18556 PR middle-end/60418
18557 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
18558 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
18559
18560 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
18561
18562 PR target/60486
18563 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
18564 calls of avr_out_plus_1.
18565
18566 2014-03-13 Bin Cheng <bin.cheng@arm.com>
18567
18568 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
18569 BB's single pred and update the father loop's latch info later.
18570
18571 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18572
18573 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
18574 (VEC_M): Likewise.
18575 (VEC_N): Likewise.
18576 (VEC_R): Likewise.
18577 (VEC_base): Likewise.
18578 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
18579 registers, we need to swap double words in little endian mode.
18580
18581 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
18582 to be a container mode for 128-bit integer operations added in ISA
18583 2.07. Unlike TImode and PTImode, the preferred register set is
18584 the Altivec/VMX registers for the 128-bit operations.
18585
18586 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
18587 declarations.
18588 (rs6000_split_128bit_ok_p): Likewise.
18589
18590 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
18591 macros for creating ISA 2.07 normal and overloaded builtin
18592 functions with 3 arguments.
18593 (BU_P8V_OVERLOAD_3): Likewise.
18594 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
18595 for use as overloaded functions.
18596 (VPERM_1TI_UNS): Likewise.
18597 (VSEL_1TI): Likewise.
18598 (VSEL_1TI_UNS): Likewise.
18599 (ST_INTERNAL_1ti): Likewise.
18600 (LD_INTERNAL_1ti): Likewise.
18601 (XXSEL_1TI): Likewise.
18602 (XXSEL_1TI_UNS): Likewise.
18603 (VPERM_1TI): Likewise.
18604 (VPERM_1TI_UNS): Likewise.
18605 (XXPERMDI_1TI): Likewise.
18606 (SET_1TI): Likewise.
18607 (LXVD2X_V1TI): Likewise.
18608 (STXVD2X_V1TI): Likewise.
18609 (VEC_INIT_V1TI): Likewise.
18610 (VEC_SET_V1TI): Likewise.
18611 (VEC_EXT_V1TI): Likewise.
18612 (EQV_V1TI): Likewise.
18613 (NAND_V1TI): Likewise.
18614 (ORC_V1TI): Likewise.
18615 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
18616 added in ISA 2.07. Add both normal 'altivec' builtins, and the
18617 overloaded builtin.
18618 (VADDUQM): Likewise.
18619 (VSUBCUQ): Likewise.
18620 (VADDEUQM): Likewise.
18621 (VADDECUQ): Likewise.
18622 (VSUBEUQM): Likewise.
18623 (VSUBECUQ): Likewise.
18624
18625 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
18626 __int128_t and __uint128_t types.
18627 (__uint128_type): Likewise.
18628 (altivec_categorize_keyword): Add support for vector __int128_t,
18629 vector __uint128_t, vector __int128, and vector unsigned __int128
18630 as a container type for TImode operations that need to be done in
18631 VSX/Altivec registers.
18632 (rs6000_macro_to_expand): Likewise.
18633 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
18634 to support 128-bit integer instructions vaddcuq, vadduqm,
18635 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
18636 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
18637
18638 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
18639 for V1TImode, and set up preferences to use VSX/Altivec registers.
18640 Setup VSX reload handlers.
18641 (rs6000_debug_reg_global): Likewise.
18642 (rs6000_init_hard_regno_mode_ok): Likewise.
18643 (rs6000_preferred_simd_mode): Likewise.
18644 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
18645 (easy_altivec_constant): Likewise.
18646 (output_vec_const_move): Likewise.
18647 (rs6000_expand_vector_set): Convert V1TImode set and extract to
18648 simple move.
18649 (rs6000_expand_vector_extract): Likewise.
18650 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
18651 addressing.
18652 (rs6000_const_vec): Add support for V1TImode.
18653 (rs6000_emit_le_vsx_load): Swap double words when loading or
18654 storing TImode/V1TImode.
18655 (rs6000_emit_le_vsx_store): Likewise.
18656 (rs6000_emit_le_vsx_move): Likewise.
18657 (rs6000_emit_move): Add support for V1TImode.
18658 (altivec_expand_ld_builtin): Likewise.
18659 (altivec_expand_st_builtin): Likewise.
18660 (altivec_expand_vec_init_builtin): Likewise.
18661 (altivec_expand_builtin): Likewise.
18662 (rs6000_init_builtins): Add support for V1TImode type. Add
18663 support for ISA 2.07 128-bit integer builtins. Define type names
18664 for the VSX/Altivec vector types.
18665 (altivec_init_builtins): Add support for overloaded vector
18666 functions with V1TImode type.
18667 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
18668 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
18669 external function.
18670 (rs6000_split_128bit_ok_p): Likewise.
18671 (rs6000_handle_altivec_attribute): Create V1TImode from vector
18672 __int128_t and vector __uint128_t.
18673
18674 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
18675 and mode attributes.
18676 (VSX_M): Likewise.
18677 (VSX_M2): Likewise.
18678 (VSm): Likewise.
18679 (VSs): Likewise.
18680 (VSr): Likewise.
18681 (VSv): Likewise.
18682 (VS_scalar): Likewise.
18683 (VS_double): Likewise.
18684 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
18685
18686 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
18687 we support the ISA 2.07 128-bit integer arithmetic instructions.
18688 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
18689 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
18690 and TImode types for use with the builtin functions.
18691 (V1TI_type_node): Likewise.
18692 (unsigned_V1TI_type_node): Likewise.
18693 (intTI_type_internal_node): Likewise.
18694 (uintTI_type_internal_node): Likewise.
18695
18696 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
18697 128-bit builtin functions.
18698 (UNSPEC_VADDEUQM): Likewise.
18699 (UNSPEC_VADDECUQ): Likewise.
18700 (UNSPEC_VSUBCUQ): Likewise.
18701 (UNSPEC_VSUBEUQM): Likewise.
18702 (UNSPEC_VSUBECUQ): Likewise.
18703 (VM): Add V1TImode to vector mode iterators.
18704 (VM2): Likewise.
18705 (VI_unit): Likewise.
18706 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
18707 (altivec_vaddcuq): Likewise.
18708 (altivec_vsubuqm): Likewise.
18709 (altivec_vsubcuq): Likewise.
18710 (altivec_vaddeuqm): Likewise.
18711 (altivec_vaddecuq): Likewise.
18712 (altivec_vsubeuqm): Likewise.
18713 (altivec_vsubecuq): Likewise.
18714
18715 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
18716 mode iterators.
18717 (BOOL_128): Likewise.
18718 (BOOL_REGS_OUTPUT): Likewise.
18719 (BOOL_REGS_OP1): Likewise.
18720 (BOOL_REGS_OP2): Likewise.
18721 (BOOL_REGS_UNARY): Likewise.
18722 (BOOL_REGS_AND_CR0): Likewise.
18723
18724 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
18725 128-bit integer builtin support.
18726 (vec_vadduqm): Likewise.
18727 (vec_vaddecuq): Likewise.
18728 (vec_vaddeuqm): Likewise.
18729 (vec_vsubecuq): Likewise.
18730 (vec_vsubeuqm): Likewise.
18731 (vec_vsubcuq): Likewise.
18732 (vec_vsubuqm): Likewise.
18733
18734 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
18735 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
18736 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
18737 128-bit integer add/subtract to ISA 2.07.
18738
18739 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
18740
18741 * config/arc/arc.c (arc_predicate_delay_insns):
18742 Fix third argument passed to conditionalize_nonjump.
18743
18744 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
18745
18746 * config/aarch64/aarch64-builtins.c
18747 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
18748 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
18749 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
18750 instead of __builtin_lfloor.
18751 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
18752
18753 2014-03-12 Jakub Jelinek <jakub@redhat.com>
18754
18755 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
18756 (tree_ssa_ifcombine_bb_1): New function.
18757 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
18758 is an empty forwarder block to then_bb or vice versa and then_bb
18759 and else_bb are effectively swapped.
18760
18761 2014-03-12 Christian Bruel <christian.bruel@st.com>
18762
18763 PR target/60264
18764 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
18765 REG_CFA_DEF_CFA note.
18766 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
18767 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
18768
18769 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
18770
18771 PR tree-optimization/60454
18772 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
18773
18774 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18775
18776 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
18777 Do not define target_cpu_default2 to generic.
18778 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
18779 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
18780 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
18781
18782 2014-03-12 Jakub Jelinek <jakub@redhat.com>
18783 Marc Glisse <marc.glisse@inria.fr>
18784
18785 PR tree-optimization/60502
18786 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
18787 instead of build_low_bits_mask.
18788
18789 2014-03-12 Jakub Jelinek <jakub@redhat.com>
18790
18791 PR middle-end/60482
18792 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
18793 if there are multiple uses, but op doesn't live on E edge.
18794 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
18795 clobber stmts before __builtin_unreachable.
18796
18797 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
18798
18799 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
18800 hard_frame_pointer_rtx.
18801 * cse.c (cse_insn): Remove volatile check.
18802 * cselib.c (cselib_process_insn): Likewise.
18803 * dse.c (scan_insn): Likewise.
18804
18805 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
18806
18807 * config/arc/arc.c (conditionalize_nonjump): New function,
18808 broken out of ...
18809 (arc_ifcvt): ... this.
18810 (arc_predicate_delay_insns): Use it.
18811
18812 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
18813
18814 * config/arc/predicates.md (extend_operand): During/after reload,
18815 allow const_int_operand.
18816 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
18817 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
18818 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
18819 to "i".
18820 (umulsi3_highpart_i): Likewise.
18821
18822 2014-03-11 Richard Biener <rguenther@suse.de>
18823
18824 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
18825 Add asserts to guard possible wrong-code bugs.
18826
18827 2014-03-11 Richard Biener <rguenther@suse.de>
18828
18829 PR tree-optimization/60429
18830 PR tree-optimization/60485
18831 * tree-ssa-structalias.c (set_union_with_increment): Properly
18832 take into account all fields that overlap the shifted vars.
18833 (do_sd_constraint): Likewise.
18834 (do_ds_constraint): Likewise.
18835 (get_constraint_for_ptr_offset): Likewise.
18836
18837 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
18838
18839 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
18840 (nios2_compute_frame_layout):
18841 Add calculation of cfun->machine->fp_save_offset.
18842 (nios2_expand_prologue): Correct setting of frame pointer register
18843 in prologue.
18844 (nios2_expand_epilogue): Update recovery of stack pointer from
18845 frame pointer accordingly.
18846 (nios2_initial_elimination_offset): Update calculation of offset
18847 for eliminating to HARD_FRAME_POINTER_REGNUM.
18848
18849 2014-03-10 Jakub Jelinek <jakub@redhat.com>
18850
18851 PR ipa/60457
18852 * ipa.c (symtab_remove_unreachable_nodes): Don't call
18853 cgraph_get_create_node on VAR_DECLs.
18854
18855 2014-03-10 Richard Biener <rguenther@suse.de>
18856
18857 PR middle-end/60474
18858 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
18859
18860 2014-03-08 Douglas B Rupp <rupp@gnat.com>
18861
18862 * config/vms/vms.opt (vms_float_format): New variable.
18863
18864 2014-03-08 Tobias Burnus <burnus@net-b.de>
18865
18866 * doc/invoke.texi (-fcilkplus): Update implementation status.
18867
18868 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
18869 Richard Biener <rguenther@suse.de>
18870
18871 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
18872 consistently accross all TUs.
18873 (run_gcc): Enable -fshort-double automatically at link at link-time
18874 and disallow override.
18875
18876 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
18877
18878 PR target/58271
18879 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
18880 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
18881 if they can't be used.
18882
18883 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18884
18885 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
18886 for Solaris 11/x86 ld.
18887 * configure: Regenerate.
18888
18889 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18890
18891 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
18892 (LIB_TLS_SPEC): Save as ld_tls_libs.
18893 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
18894 (HAVE_AS_IX86_TLSLDM): New test.
18895 * configure, config.in: Regenerate.
18896 * config/i386/i386.c (legitimize_tls_address): Fall back to
18897 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
18898 cannot support TLS_MODEL_LOCAL_DYNAMIC.
18899 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
18900 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
18901
18902 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
18903
18904 * common.opt (fira-loop-pressure): Mark as optimization.
18905
18906 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
18907
18908 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
18909 an OpenMP mappable type.
18910
18911 2014-03-06 Matthias Klose <doko@ubuntu.com>
18912
18913 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
18914 MULTILIB_OSDIRNAMES is not defined.
18915
18916 2014-03-06 Jakub Jelinek <jakub@redhat.com>
18917 Meador Inge <meadori@codesourcery.com>
18918
18919 PR target/58595
18920 * config/arm/arm.c (arm_tls_symbol_p): Remove.
18921 (arm_legitimize_address): Call legitimize_tls_address for any
18922 arm_tls_referenced_p expression, handle constant addend. Call it
18923 before testing for !TARGET_ARM.
18924 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
18925
18926 2014-03-06 Richard Biener <rguenther@suse.de>
18927
18928 PR middle-end/60445
18929 PR lto/60424
18930 PR lto/60427
18931 Revert
18932 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
18933
18934 * tree-streamer.c (record_common_node): Assert we don't record
18935 nodes with type double.
18936 (preload_common_node): Skip type double, complex double and double
18937 pointer since it is now frontend dependent due to fshort-double option.
18938
18939 2014-03-06 Richard Biener <rguenther@suse.de>
18940
18941 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
18942 or -fno-lto is specified and the linker has full plugin support.
18943 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
18944 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
18945 * lto-wrapper.c (merge_and_complain): Merge compile-time
18946 optimization levels.
18947 (run_gcc): And pass it through to the link options.
18948
18949 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
18950
18951 PR debug/60381
18952 Revert:
18953 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18954 PR debug/59992
18955 * cselib.c (remove_useless_values): Skip to avoid quadratic
18956 behavior if the condition moved from...
18957 (cselib_process_insn): ... here holds.
18958
18959 2014-03-05 Jakub Jelinek <jakub@redhat.com>
18960
18961 PR plugins/59335
18962 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
18963 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
18964
18965 PR plugins/59335
18966 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
18967 (TM_H): Add x86-tune.def.
18968
18969 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18970
18971 * config/aarch64/aarch64.c (generic_tunings):
18972 Use cortexa57_extra_costs.
18973
18974 2014-03-05 Jakub Jelinek <jakub@redhat.com>
18975
18976 PR lto/60404
18977 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
18978 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
18979 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
18980 cost for in_lto_p.
18981
18982 2014-03-04 Heiher <r@hev.cc>
18983
18984 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
18985 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
18986
18987 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
18988
18989 * config/i386/predicates.md (const2356_operand): Change to ...
18990 (const2367_operand): ... this.
18991 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
18992 const2367_operand.
18993 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18994 (*avx512pf_scatterpf<mode>sf): Ditto.
18995 (avx512pf_scatterpf<mode>df): Ditto.
18996 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18997 (*avx512pf_scatterpf<mode>df): Ditto.
18998 * config/i386/i386.c (ix86_expand_builtin): Update
18999 incorrect hint operand error message.
19000
19001 2014-03-04 Richard Biener <rguenther@suse.de>
19002
19003 * lto-section-in.c (lto_get_section_data): Fix const cast.
19004
19005 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
19006
19007 * tree-streamer.c (record_common_node): Assert we don't record
19008 nodes with type double.
19009 (preload_common_node): Skip type double, complex double and double
19010 pointer since it is now frontend dependent due to fshort-double option.
19011
19012 2014-03-04 Richard Biener <rguenther@suse.de>
19013
19014 PR lto/60405
19015 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
19016 (lto_input_toplevel_asms): Likewise.
19017 * lto-section-in.c (lto_get_section_data): Instead do it here
19018 for every section.
19019
19020 2014-03-04 Richard Biener <rguenther@suse.de>
19021
19022 PR tree-optimization/60382
19023 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
19024 dead PHIs a reduction.
19025
19026 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
19027
19028 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
19029 hint value.
19030 (_mm_prefetch): Move out of GCC target("sse") pragma.
19031 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
19032 GCC target("prfchw") pragma.
19033 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
19034 for locality <= 2.
19035 * config/i386/i386.c (ix86_option_override_internal): Enable
19036 -mprfchw with -mprefetchwt1.
19037
19038 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
19039
19040 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
19041 Mark as varying.
19042
19043 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
19044
19045 * opts.h (CL_PCH_IGNORE): Define.
19046 * targhooks.c (option_affects_pch_p):
19047 Return false for options that have CL_PCH_IGNORE set.
19048 * opt-functions.awk: Process PchIgnore.
19049 * doc/options.texi: Document PchIgnore.
19050
19051 * config/arc/arc.opt (misize): Add PchIgnore property.
19052
19053 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19054
19055 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
19056 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
19057 constraint on constants to permit them being loaded into
19058 GENERAL_REGS or BASE_REGS.
19059
19060 2014-03-03 Nick Clifton <nickc@redhat.com>
19061
19062 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
19063 anti-cacnonical alternatives.
19064 (negandhi3_real): New pattern.
19065 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
19066
19067 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19068
19069 * config/avr/avr-mcus.def: Remove atxmega16x1.
19070 * config/avr/avr-tables.opt: Regenerate.
19071 * config/avr/t-multilib: Regenerate.
19072 * doc/avr-mmcu.texi: Regenerate.
19073
19074 2014-03-03 Tobias Grosser <tobias@grosser.es>
19075 Mircea Namolaru <mircea.namolaru@inria.fr>
19076
19077 PR tree-optimization/58028
19078 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
19079 scalar dimensions.
19080
19081 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19082
19083 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
19084 not handled by recognizers.
19085
19086 2014-03-03 Jakub Jelinek <jakub@redhat.com>
19087
19088 PR middle-end/60175
19089 * function.c (expand_function_end): Don't emit
19090 clobber_return_register sequence if clobber_after is a BARRIER.
19091 * cfgexpand.c (construct_exit_block): Append instructions before
19092 return_label to prev_bb.
19093
19094 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19095
19096 * config/rs6000/constraints.md: Document reserved use of "wc".
19097
19098 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
19099
19100 PR ipa/60150
19101 * ipa.c (function_and_variable_visibility): When dissolving comdat
19102 group, also set all symbols to local.
19103
19104 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
19105
19106 PR ipa/60306
19107
19108 Revert:
19109 2013-12-14 Jan Hubicka <jh@suse.cz>
19110 PR middle-end/58477
19111 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
19112
19113 2014-03-02 Jon Beniston <jon@beniston.com>
19114
19115 PR bootstrap/48230
19116 PR bootstrap/50927
19117 PR bootstrap/52466
19118 PR target/46898
19119 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
19120 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
19121 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
19122 (simple_return, *simple_return): New patterns
19123 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
19124 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
19125
19126 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
19127
19128 * dwarf2out.c (gen_subprogram_die): Tidy.
19129
19130 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
19131
19132 PR target/60071
19133 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
19134 (*mov_t_msb_neg_negc): ... this new insn.
19135
19136 2014-02-28 Jason Merrill <jason@redhat.com>
19137
19138 PR c++/58678
19139 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
19140 function.
19141
19142 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
19143
19144 PR c++/60314
19145 * dwarf2out.c (decltype_auto_die): New static.
19146 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
19147 (gen_type_die_with_usage): Handle 'decltype(auto)'.
19148 (is_cxx_auto): Likewise.
19149
19150 2014-02-28 Ian Bolton <ian.bolton@arm.com>
19151
19152 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
19153 we are not using general regs only.
19154
19155 2014-02-28 Richard Biener <rguenther@suse.de>
19156
19157 PR target/60280
19158 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
19159 previous fix and only allow to remove trivial pre-headers
19160 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
19161 (remove_forwarder_block): Properly update the latch of a loop.
19162
19163 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
19164
19165 PR debug/59992
19166 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
19167 (cselib_preserved_hash_table): New.
19168 (preserve_constants_and_equivs): Move preserved vals to it.
19169 (cselib_find_slot): Look it up first.
19170 (cselib_init): Initialize it.
19171 (cselib_finish): Release it.
19172 (dump_cselib_table): Dump it.
19173
19174 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
19175
19176 PR debug/59992
19177 * cselib.c (remove_useless_values): Skip to avoid quadratic
19178 behavior if the condition moved from...
19179 (cselib_process_insn): ... here holds.
19180
19181 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
19182
19183 PR debug/57232
19184 * var-tracking.c (vt_initialize): Apply the same condition to
19185 preserve the CFA base value.
19186
19187 2014-02-28 Joey Ye <joey.ye@arm.com>
19188
19189 PR target/PR60169
19190 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
19191 if reload in progress or completed.
19192
19193 2014-02-28 Tobias Burnus <burnus@net-b.de>
19194
19195 PR middle-end/60147
19196 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
19197 NAMELIST_DECL.
19198
19199 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
19200
19201 * doc/tm.texi.in (Condition Code Status): Update documention for
19202 relative locations of cc0-setter and cc0-user.
19203
19204 2014-02-27 Jeff Law <law@redhat.com>
19205
19206 PR rtl-optimization/52714
19207 * combine.c (try_combine): When splitting an unrecognized PARALLEL
19208 into two independent simple sets, if I3 is a jump, ensure the
19209 pattern we place into I3 is a (set (pc) ...).
19210
19211 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
19212 Jeff Law <law@redhat.com>
19213
19214 PR rtl-optimization/49847
19215 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
19216 are in different blocks.
19217 * doc/tm.texi (Condition Code Status): Update documention for
19218 relative locations of cc0-setter and cc0-user.
19219
19220 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
19221
19222 PR target/59222
19223 * lra.c (lra_emit_add): Check SUBREG too.
19224
19225 2014-02-27 Andreas Schwab <schwab@suse.de>
19226
19227 * config/m68k/m68k.c (m68k_option_override): Disable
19228 -flive-range-shrinkage for classic m68k.
19229 (m68k_override_options_after_change): Likewise.
19230
19231 2014-02-27 Marek Polacek <polacek@redhat.com>
19232
19233 PR middle-end/59223
19234 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
19235 -Wmaybe-uninitialized.
19236
19237 2014-02-27 Alan Modra <amodra@gmail.com>
19238
19239 PR target/57936
19240 * reload1.c (emit_input_reload_insns): When reload_override_in,
19241 set old to rl->in_reg when rl->in_reg is a subreg.
19242
19243 2014-02-26 Richard Biener <rguenther@suse.de>
19244
19245 PR bootstrap/60343
19246 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
19247
19248 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
19249
19250 * common/config/i386/predicates.md (const1256_operand): Remove.
19251 (const2356_operand): New.
19252 (const_1_to_2_operand): Remove.
19253 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
19254 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19255 (*avx512pf_gatherpf<mode>sf): Ditto.
19256 (avx512pf_gatherpf<mode>df): Ditto.
19257 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19258 (*avx512pf_gatherpf<mode>df): Ditto.
19259 (avx512pf_scatterpf<mode>sf): Ditto.
19260 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19261 (*avx512pf_scatterpf<mode>sf): Ditto.
19262 (avx512pf_scatterpf<mode>df): Ditto.
19263 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19264 (*avx512pf_scatterpf<mode>df): Ditto.
19265 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
19266
19267 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
19268
19269 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
19270 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
19271 (_mm512_mask_testn_epi64_mask): Move to ...
19272 * config/i386/avx512cdintrin.h: Here.
19273 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
19274 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
19275 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
19276 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
19277 TARGET_AVX512F from TARGET_AVX512CD.
19278
19279 2014-02-26 Richard Biener <rguenther@suse.de>
19280
19281 PR ipa/60327
19282 * ipa.c (walk_polymorphic_call_targets): Properly guard
19283 call to inline_update_overall_summary.
19284
19285 2014-02-26 Bin Cheng <bin.cheng@arm.com>
19286
19287 PR target/60280
19288 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
19289 and latches only if requested. Fix latch if it is removed.
19290 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
19291 LOOPS_HAVE_PREHEADERS.
19292
19293 2014-02-25 Andrew Pinski <apinski@cavium.com>
19294
19295 * builtins.c (expand_builtin_thread_pointer): Create a new target
19296 when the target is NULL.
19297
19298 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
19299
19300 PR rtl-optimization/60317
19301 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
19302 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
19303 * lra-assigns.c: Include params.h.
19304 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
19305 other reload pseudos considerations.
19306
19307 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19308
19309 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
19310 to use canonical form for nor<mode>3.
19311
19312 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19313
19314 PR target/55426
19315 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
19316 conversions.
19317
19318 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
19319
19320 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
19321 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
19322 (ix86_handle_option): Handle OPT_mprefetchwt1.
19323 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
19324 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19325 PREFETCHWT1 CPUID.
19326 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19327 OPTION_MASK_ISA_PREFETCHWT1.
19328 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
19329 (PTA_PREFETCHWT1): New.
19330 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
19331 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
19332 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
19333 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
19334 (*prefetch_avx512pf_<mode>_: Change into ...
19335 (*prefetch_prefetchwt1_<mode>: This.
19336 * config/i386/i386.opt (mprefetchwt1): New.
19337 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
19338 (_mm_prefetch): Handle intent to write.
19339 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
19340
19341 2014-02-25 Richard Biener <rguenther@suse.de>
19342
19343 PR middle-end/60291
19344 * emit-rtl.c (mem_attrs_htab): Remove.
19345 (mem_attrs_htab_hash): Likewise.
19346 (mem_attrs_htab_eq): Likewise.
19347 (set_mem_attrs): Always allocate new mem-attrs when something changed.
19348 (init_emit_once): Do not allocate mem_attrs_htab.
19349
19350 2014-02-25 Richard Biener <rguenther@suse.de>
19351
19352 PR lto/60319
19353 * lto-opts.c (lto_write_options): Output non-explicit conservative
19354 -fwrapv, -fno-trapv and -fno-strict-overflow.
19355 * lto-wrapper.c (merge_and_complain): Handle merging those options.
19356 (run_gcc): And pass them through.
19357
19358 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
19359
19360 * sel-sched.c (calculate_new_fences): New parameter ptime.
19361 Calculate it as a maximum over all fence cycles.
19362 (sel_sched_region_2): Adjust the call to calculate_new_fences.
19363 Print the final schedule timing when sched_verbose.
19364
19365 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
19366
19367 PR rtl-optimization/60292
19368 * sel-sched.c (fill_vec_av_set): Do not reset target availability
19369 bit fot the fence instruction.
19370
19371 2014-02-24 Alangi Derick <alangiderick@gmail.com>
19372
19373 * calls.h: Fix typo in comment.
19374
19375 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
19376
19377 * config/pa/pa.c (pa_output_move_double): Don't valididate when
19378 adjusting offsetable addresses.
19379
19380 2014-02-24 Guozhi Wei <carrot@google.com>
19381
19382 * sparseset.h (sparseset_pop): Fix the wrong index.
19383
19384 2014-02-24 Walter Lee <walt@tilera.com>
19385
19386 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
19387 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
19388 triplet.
19389 * common/config/tilegx/tilegx-common.c
19390 (TARGET_DEFAULT_TARGET_FLAGS): Define.
19391 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
19392 (LINK_SPEC): Ditto.
19393 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
19394 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
19395 (tilegx_gimplify_va_arg_expr): Handle big endian.
19396 (tilegx_expand_unaligned_load): Ditto.
19397 (tilegx_expand_unaligned_store): Ditto.
19398 (TARGET_RETURN_IN_MSB): New.
19399 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
19400 (TARGET_ENDIAN_DEFAULT): New.
19401 (TARGET_BIG_ENDIAN): Handle big endian.
19402 (BYTES_BIG_ENDIAN): Ditto.
19403 (WORDS_BIG_ENDIAN): Ditto.
19404 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
19405 (ENDIAN_SPEC): New.
19406 (EXTRA_SPECS): New.
19407 * config/tilegx/tilegx.md (extv): Handle big endian.
19408 (extzv): Ditto.
19409 (insn_st<n>): Ditto.
19410 (insn_st<n>_add<bitsuffix>): Ditto.
19411 (insn_stnt<n>): Ditto.
19412 (insn_stnt<n>_add<bitsuffix>):Ditto.
19413 (vec_interleave_highv8qi): Handle big endian.
19414 (vec_interleave_highv8qi_be): New.
19415 (vec_interleave_highv8qi_le): New.
19416 (insn_v1int_h): Handle big endian.
19417 (vec_interleave_lowv8qi): Handle big endian.
19418 (vec_interleave_lowv8qi_be): New.
19419 (vec_interleave_lowv8qi_le): New.
19420 (insn_v1int_l): Handle big endian.
19421 (vec_interleave_highv4hi): Handle big endian.
19422 (vec_interleave_highv4hi_be): New.
19423 (vec_interleave_highv4hi_le): New.
19424 (insn_v2int_h): Handle big endian.
19425 (vec_interleave_lowv4hi): Handle big endian.
19426 (vec_interleave_lowv4hi_be): New.
19427 (vec_interleave_lowv4hi_le): New.
19428 (insn_v2int_l): Handle big endian.
19429 (vec_interleave_highv2si): Handle big endian.
19430 (vec_interleave_highv2si_be): New.
19431 (vec_interleave_highv2si_le): New.
19432 (insn_v4int_h): Handle big endian.
19433 (vec_interleave_lowv2si): Handle big endian.
19434 (vec_interleave_lowv2si_be): New.
19435 (vec_interleave_lowv2si_le): New.
19436 (insn_v4int_l): Handle big endian.
19437 * config/tilegx/tilegx.opt (mbig-endian): New option.
19438 (mlittle-endian): New option.
19439 * doc/install.texi: Document tilegxbe-linux.
19440 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
19441
19442 2014-02-24 Martin Jambor <mjambor@suse.cz>
19443
19444 PR ipa/60266
19445 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
19446 there are no parameter descriptors.
19447
19448 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
19449
19450 PR rtl-optimization/60268
19451 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
19452 initialization to ...
19453 (sched_rgn_init): ... here.
19454 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
19455
19456 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
19457
19458 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
19459 names.
19460
19461 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
19462
19463 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
19464 definition.
19465
19466 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
19467
19468 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
19469 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
19470
19471 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
19472
19473 * config/microblaze/predicates.md: Add cmp_op predicate.
19474 * config/microblaze/microblaze.md: Add branch_compare instruction
19475 which uses cmp_op predicate and emits cmp insn before branch.
19476 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
19477 to microblaze_expand_conditional_branch and consolidate logic.
19478 (microblaze_expand_conditional_branch): emit branch_compare
19479 insn instead of handling cmp op separate from branch insn.
19480
19481 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19482
19483 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
19484 to permit subregs.
19485
19486 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19487
19488 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
19489 define_insn with define_expand and new define_insn
19490 *altivec_lve<VI_char>x_internal.
19491 (altivec_stve<VI_char>x): Replace define_insn with define_expand
19492 and new define_insn *altivec_stve<VI_char>x_internal.
19493 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
19494 prototype.
19495 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
19496 lve*x built-ins.
19497 (altivec_expand_stvex_be): New function.
19498
19499 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
19500
19501 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
19502 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
19503 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
19504 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
19505
19506 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
19507
19508 PR target/60298
19509 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
19510 instead of emit_move_insn.
19511
19512 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19513
19514 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
19515 vspltw with vsldoi.
19516 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
19517 gen_altivec_vsumsws.
19518
19519 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19520
19521 * config/rs6000/altivec.md (altivec_lvxl): Rename as
19522 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
19523 (altivec_lvxl_<mode>): New define_expand incorporating
19524 -maltivec=be semantics where needed.
19525 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
19526 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
19527 semantics where needed.
19528 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
19529 (altivec_stvx_<mode>): New define_expand incorporating
19530 -maltivec=be semantics where needed.
19531 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
19532 VM2 iterator instead of V4SI.
19533 (altivec_stvxl_<mode>): New define_expand incorporating
19534 -maltivec=be semantics where needed.
19535 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
19536 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
19537 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
19538 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
19539 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
19540 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
19541 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
19542 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
19543 ALTIVEC_BUILTIN_STVXL.
19544 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
19545 (altivec_expand_stvx_be): Likewise.
19546 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
19547 (altivec_expand_lvx_be): Likewise.
19548 (altivec_expand_stvx_be): Likewise.
19549 (altivec_expand_builtin): Add cases for
19550 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
19551 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
19552 (altivec_init_builtins): Add definitions for
19553 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
19554 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
19555
19556 2014-02-21 Catherine Moore <clm@codesourcery.com>
19557
19558 * doc/invoke.texi (mvirt, mno-virt): Document.
19559 * config/mips/mips.opt (mvirt): New option.
19560 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
19561
19562 2014-02-21 Richard Biener <rguenther@suse.de>
19563
19564 PR tree-optimization/60276
19565 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
19566 (STMT_VINFO_MIN_NEG_DIST): New macro.
19567 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
19568 STMT_VINFO_MIN_NEG_DIST.
19569 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
19570 made for negative dependence distances still hold.
19571
19572 2014-02-21 Richard Biener <rguenther@suse.de>
19573
19574 PR middle-end/60291
19575 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
19576 DECL_INITIAL for globals not in the current function context.
19577
19578 2014-02-21 Jakub Jelinek <jakub@redhat.com>
19579
19580 PR tree-optimization/56490
19581 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
19582 * tree-ssa-uninit.c: Include params.h.
19583 (compute_control_dep_chain): Add num_calls argument, return false
19584 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
19585 num_calls to recursive call.
19586 (find_predicates): Change dep_chain into normal array,
19587 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
19588 variable and adjust compute_control_dep_chain caller.
19589 (find_def_preds): Likewise.
19590
19591 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
19592
19593 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
19594 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
19595
19596 2014-02-21 Nick Clifton <nickc@redhat.com>
19597
19598 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
19599 (pushhi1): Likewise.
19600 (popqi1): Add mode to pre_dec.
19601 (pophi1): Likewise.
19602
19603 2014-02-21 Jakub Jelinek <jakub@redhat.com>
19604
19605 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
19606 mode for mask of V8SFmode permutation.
19607
19608 2014-02-20 Richard Henderson <rth@redhat.com>
19609
19610 PR c++/60272
19611 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
19612 a new pseudo for OLDVAL.
19613
19614 2014-02-20 Jakub Jelinek <jakub@redhat.com>
19615
19616 PR target/57896
19617 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
19618 gen_reg_rtx if d->testing_p.
19619 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
19620 if d->testing_p and we will certainly return true.
19621 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
19622 if d->testing_p.
19623
19624 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
19625
19626 * emit-rtl.c (gen_reg_rtx): Assert that
19627 crtl->emit.regno_pointer_align_length is non-zero.
19628
19629 2014-02-20 Richard Henderson <rth@redhat.com>
19630
19631 PR c++/60272
19632 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
19633 on failure the store back into EXPECT.
19634
19635 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
19636 Sandra Loosemore <sandra@codesourcery.com>
19637
19638 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
19639 * config/nios2/nios2.c (nios2_function_profiler): Add
19640 -fPIC (flag_pic == 2) support.
19641 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
19642 (nios2_large_offset_p): New function.
19643 (nios2_unspec_reloc_p): Move up position, update to use
19644 nios2_large_offset_p.
19645 (nios2_unspec_address): Remove function.
19646 (nios2_unspec_offset): New function.
19647 (nios2_large_got_address): New function.
19648 (nios2_got_address): Add large offset support.
19649 (nios2_legitimize_tls_address): Update usage of removed and new
19650 functions.
19651 (nios2_symbol_binds_local_p): New function.
19652 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
19653 (nios2_legitimize_address): Update to use nios2_large_offset_p.
19654 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
19655 (nios2_print_operand): Merge H/L processing, add hiadj/lo
19656 processing for (const (unspec ...)).
19657 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
19658
19659 2014-02-20 Richard Biener <rguenther@suse.de>
19660
19661 * tree-cfg.c (replace_uses_by): Mark altered BBs before
19662 doing the substitution.
19663 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
19664
19665 2014-02-20 Martin Jambor <mjambor@suse.cz>
19666
19667 PR ipa/55260
19668 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
19669 info when checking whether lattices are bottom.
19670
19671 2014-02-20 Richard Biener <rguenther@suse.de>
19672
19673 PR middle-end/60221
19674 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
19675 regions at -O0.
19676
19677 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
19678
19679 PR ipa/58555
19680 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
19681 parameter specifying the scaling.
19682 (inline_call): Update.
19683 (want_inline_recursively): Guard division by zero.
19684 (recursive_inlining): Update.
19685 * ipa-inline.h (clone_inlined_nodes): Update.
19686
19687 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
19688
19689 PR target/60204
19690 * config/i386/i386.c (classify_argument): Pass structures of size
19691 64 bytes or less in register.
19692
19693 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
19694 Kirill Yukhin <kirill.yukhin@intel.com>
19695
19696 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
19697 (_mm_rcp28_round_ss): Ditto.
19698 (_mm_rsqrt28_round_sd): Ditto.
19699 (_mm_rsqrt28_round_ss): Ditto.
19700 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
19701 (_mm_rcp14_round_ss): Ditto.
19702 (_mm_rsqrt14_round_sd): Ditto.
19703 (_mm_rsqrt14_round_ss): Ditto.
19704 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
19705 the first input operand, get rid of match_dup.
19706 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
19707 attribute to sse.
19708 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
19709 Ditto.
19710 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
19711 operand as the first input operand, set type attribute.
19712 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
19713 Set type attribute.
19714 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
19715 operand as the first input operand, set type attribute.
19716
19717 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19718
19719 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
19720 bit of zero.
19721
19722 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
19723
19724 PR target/60207
19725 * config/i386/i386.c (construct_container): Remove TFmode check
19726 for X86_64_INTEGER_CLASS.
19727
19728 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
19729
19730 PR target/59794
19731 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
19732 only when -Wpsabi is enabled.
19733
19734 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
19735
19736 PR target/59799
19737 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
19738 passing arrays in registers are the same as for structs, so remove the
19739 special case for them.
19740
19741 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
19742
19743 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
19744 destination type, extract only the valid bits if the source type is not
19745 integral and has a different mode.
19746
19747 2014-02-19 Richard Biener <rguenther@suse.de>
19748
19749 PR ipa/60243
19750 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
19751 for all calls.
19752
19753 2014-02-19 Richard Biener <rguenther@suse.de>
19754
19755 PR ipa/60243
19756 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
19757 (ipa_modify_call_arguments): Emit an argument load explicitely and
19758 preserve virtual SSA form there and for the replacement call.
19759 Do not update SSA form nor free dominance info.
19760
19761 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
19762
19763 * ipa.c (function_and_variable_visibility): Also clear WEAK
19764 flag when disolving COMDAT_GROUP.
19765
19766 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
19767
19768 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
19769 * ipa-prop.c (ipa_set_jf_known_type): Return early when
19770 not devirtualizing.
19771 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
19772 do more sanity checks.
19773 (detect_type_change): Return true when giving up early.
19774 (compute_complex_assign_jump_func): Fix type parameter of
19775 ipa_set_ancestor_jf.
19776 (compute_complex_ancestor_jump_func): Likewise.
19777 (update_jump_functions_after_inlining): Fix updating of
19778 ancestor function.
19779 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
19780
19781 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
19782
19783 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
19784 inline clones when edge disappears.
19785
19786 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
19787
19788 PR target/60203
19789 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
19790 Split 64-bit moves into 2 patterns. Do not allow the use of
19791 direct move for TDmode in little endian, since the decimal value
19792 has little endian bytes within a word, but the 64-bit pieces are
19793 ordered in a big endian fashion, and normal subreg's of TDmode are
19794 not allowed.
19795 (mov<mode>_64bit_dm): Likewise.
19796 (movtd_64bit_nodm): Likewise.
19797
19798 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
19799
19800 PR tree-optimization/60174
19801 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
19802 statement of an SSA_NAME that occurs in an abnormal PHI node.
19803
19804 2014-02-18 Jakub Jelinek <jakub@redhat.com>
19805
19806 PR sanitizer/60142
19807 * final.c (SEEN_BB): Remove.
19808 (SEEN_NOTE, SEEN_EMITTED): Renumber.
19809 (final_scan_insn): Don't force_source_line on second
19810 NOTE_INSN_BASIC_BLOCK.
19811
19812 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
19813
19814 PR target/60205
19815 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
19816 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
19817 (type_natural_mode): Warn ABI change when %zmm register is not
19818 available for AVX512F vector value passing.
19819
19820 2014-02-18 Kai Tietz <ktietz@redhat.com>
19821
19822 PR target/60193
19823 * config/i386/i386.c (ix86_expand_prologue): Use value in
19824 rax register as displacement when restoring %r10 or %rax.
19825 Fix wrong offset when restoring both registers.
19826
19827 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
19828
19829 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
19830 assertion with conditional return.
19831
19832 2014-02-18 Jakub Jelinek <jakub@redhat.com>
19833 Uros Bizjak <ubizjak@gmail.com>
19834
19835 PR driver/60233
19836 * config/i386/driver-i386.c (host_detect_local_cpu): If
19837 YMM state is not saved by the OS, also clear has_f16c. Move
19838 CPUID 0x80000001 handling before YMM state saving checking.
19839
19840 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
19841
19842 PR rtl-optimization/58960
19843 * haifa-sched.c (alloc_global_sched_pressure_data): New,
19844 factored out from ...
19845 (sched_init): ... here.
19846 (free_global_sched_pressure_data): New, factored out from ...
19847 (sched_finish): ... here.
19848 * sched-int.h (free_global_sched_pressure_data): Declare.
19849 * sched-rgn.c (nr_regions_initial): New static global.
19850 (haifa_find_rgns): Initialize it.
19851 (schedule_region): Disable sched-pressure for the newly
19852 generated regions.
19853
19854 2014-02-17 Richard Biener <rguenther@suse.de>
19855
19856 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
19857 release SSA defs of pattern stmts.
19858
19859 2014-02-17 Richard Biener <rguenther@suse.de>
19860
19861 * tree-inline.c (expand_call_inline): Release the virtual
19862 operand defined by the call we are about to inline.
19863
19864 2014-02-17 Richard Biener <rguenther@suse.de>
19865
19866 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
19867
19868 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
19869 Ilya Tocar <ilya.tocar@intel.com>
19870
19871 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
19872 arguments order in builtin.
19873 (_mm512_permutexvar_epi64): Ditto.
19874 (_mm512_mask_permutexvar_epi64): Ditto
19875 (_mm512_maskz_permutexvar_epi32): Ditto
19876 (_mm512_permutexvar_epi32): Ditto
19877 (_mm512_mask_permutexvar_epi32): Ditto
19878
19879 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19880
19881 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
19882 (p8_vmrgow): Likewise.
19883
19884 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19885
19886 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
19887 endian targets.
19888
19889 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
19890
19891 PR target/60203
19892 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
19893 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
19894 into 64-bit and 32-bit moves. On 64-bit moves, add support for
19895 using direct move instructions on ISA 2.07. Also adjust
19896 instruction length for 64-bit.
19897 (mov<mode>_64bit, TFmode/TDmode): Likewise.
19898 (mov<mode>_32bit, TFmode/TDmode): Likewise.
19899
19900 2014-02-15 Alan Modra <amodra@gmail.com>
19901
19902 PR target/58675
19903 PR target/57935
19904 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
19905 find_replacement on parts of insn rtl that might be reloaded.
19906
19907 2014-02-15 Richard Biener <rguenther@suse.de>
19908
19909 PR tree-optimization/60183
19910 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
19911 (tree_ssa_phiprop): Calculate and free post-dominators.
19912
19913 2014-02-14 Jeff Law <law@redhat.com>
19914
19915 PR rtl-optimization/60131
19916 * ree.c (get_extended_src_reg): New function.
19917 (combine_reaching_defs): Use it rather than assuming location of REG.
19918 (find_and_remove_re): Verify first operand of extension is
19919 a REG before adding the insns to the copy list.
19920
19921 2014-02-14 Roland McGrath <mcgrathr@google.com>
19922
19923 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
19924 * configure: Regenerated.
19925 * config.in: Regenerated.
19926 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
19927 instead of ASM_SHORT.
19928
19929 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
19930 Richard Earnshaw <rearnsha@arm.com>
19931
19932 PR rtl-optimization/59535
19933 * lra-constraints.c (process_alt_operands): Encourage alternative
19934 when unassigned pseudo class is superset of the alternative class.
19935 (inherit_reload_reg): Don't inherit when optimizing for code size.
19936 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
19937 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
19938 modes not less than 4 for Thumb1.
19939
19940 2014-02-14 Kyle McMartin <kyle@redhat.com>
19941
19942 PR pch/60010
19943 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
19944
19945 2014-02-14 Richard Biener <rguenther@suse.de>
19946
19947 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
19948 (get_frame_arg): Drop the assert with langhook types_compatible_p.
19949 Do not strip INDIRECT_REFs.
19950
19951 2014-02-14 Richard Biener <rguenther@suse.de>
19952
19953 PR lto/60179
19954 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
19955 DECL_FUNCTION_SPECIFIC_TARGET.
19956 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
19957 * tree-streamer-out.c (pack_ts_target_option): Remove.
19958 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
19959 (write_ts_function_decl_tree_pointers): Do not stream
19960 DECL_FUNCTION_SPECIFIC_TARGET.
19961 * tree-streamer-in.c (unpack_ts_target_option): Remove.
19962 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
19963 (lto_input_ts_function_decl_tree_pointers): Do not stream
19964 DECL_FUNCTION_SPECIFIC_TARGET.
19965
19966 2014-02-14 Jakub Jelinek <jakub@redhat.com>
19967
19968 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
19969 (get_initial_def_for_induction, vectorizable_induction): Ignore
19970 debug stmts when looking for exit_phi.
19971 (vectorizable_live_operation): Fix up condition.
19972
19973 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19974
19975 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
19976 nreverse() because it changes the content of original tree list.
19977
19978 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19979
19980 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
19981 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
19982
19983 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19984
19985 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
19986 GNU coding standards.
19987
19988 2014-02-13 Jakub Jelinek <jakub@redhat.com>
19989
19990 PR debug/60152
19991 * dwarf2out.c (gen_subprogram_die): Don't call
19992 add_calling_convention_attribute if subr_die is old_die.
19993
19994 2014-02-13 Sharad Singhai <singhai@google.com>
19995
19996 * doc/optinfo.texi: Fix order of nodes.
19997
19998 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
19999
20000 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
20001 operands[2], not operands[3].
20002
20003 2014-02-13 Richard Biener <rguenther@suse.de>
20004
20005 PR bootstrap/59878
20006 * doc/install.texi (ISL): Update recommended version to 0.12.2,
20007 mention the possibility of an in-tree build.
20008 (CLooG): Update recommended version to 0.18.1, mention the
20009 possibility of an in-tree build and clarify that the ISL
20010 bundled with CLooG does not work.
20011
20012 2014-02-13 Jakub Jelinek <jakub@redhat.com>
20013
20014 PR target/43546
20015 * expr.c (compress_float_constant): If x is a hard register,
20016 extend into a pseudo and then move to x.
20017
20018 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
20019
20020 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
20021 caused by bad second argument to warning_at() with -mhotpatch and
20022 nested functions (e.g. with gfortran).
20023
20024 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
20025
20026 * opts.c (option_name): Remove "enabled by default" rider.
20027
20028 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
20029
20030 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
20031
20032 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
20033 Uros Bizjak <ubizjak@gmail.com>
20034
20035 PR target/60151
20036 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
20037 * configure: Regenerated.
20038
20039 2014-02-12 Richard Biener <rguenther@suse.de>
20040
20041 * vec.c (vec_prefix::calculate_allocation): Move as
20042 inline variant to vec.h.
20043 (vec_prefix::calculate_allocation_1): New out-of-line version.
20044 * vec.h (vec_prefix::calculate_allocation_1): Declare.
20045 (vec_prefix::m_has_auto_buf): Rename to ...
20046 (vec_prefix::m_using_auto_storage): ... this.
20047 (vec_prefix::calculate_allocation): Inline the easy cases
20048 and dispatch to calculate_allocation_1 which doesn't need the
20049 prefix address.
20050 (va_heap::reserve): Use gcc_checking_assert.
20051 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
20052 m_using_auto_storage.
20053 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
20054 member and adjust.
20055 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
20056 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
20057 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
20058
20059 2014-02-12 Richard Biener <rguenther@suse.de>
20060
20061 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
20062 when we found a dependence.
20063
20064 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
20065
20066 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
20067 common code...
20068 (maybe_fold_stmt): ... into this new function.
20069 * omp-low.c (lower_omp): Update comment.
20070
20071 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
20072 last use.
20073
20074 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
20075 dereference.
20076
20077 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
20078
20079 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
20080 identifiers in comments.
20081 (cortexa53_extra_costs): Likewise.
20082 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
20083 (cortexa7_extra_costs): Likewise.
20084 (cortexa12_extra_costs): Likewise.
20085 (cortexa15_extra_costs): Likewise.
20086 (v7m_extra_costs): Likewise.
20087
20088 2014-02-12 Richard Biener <rguenther@suse.de>
20089
20090 PR middle-end/60092
20091 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
20092 of posix_memalign being successful.
20093 (lower_stmt): Restrict lowering of posix_memalign to when
20094 -ftree-bit-ccp is enabled.
20095
20096 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20097
20098 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
20099 arg_loc.
20100 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
20101
20102 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
20103
20104 PR rtl-optimization/60116
20105 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
20106 other_insn once the combination has been validated.
20107
20108 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
20109
20110 PR lto/59468
20111 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
20112 and wrapper.
20113 * ipa-devirt.c: Include demangle.h
20114 (odr_violation_reported): New static variable.
20115 (add_type_duplicate): Update odr_violations.
20116 (maybe_record_node): Add completep parameter; update it.
20117 (record_target_from_binfo): Add COMPLETEP parameter;
20118 update it as needed.
20119 (possible_polymorphic_call_targets_1): Likewise.
20120 (struct polymorphic_call_target_d): Add nonconstruction_targets;
20121 rename FINAL to COMPLETE.
20122 (record_targets_from_bases): Sanity check we found the binfo;
20123 fix COMPLETEP updating.
20124 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
20125 parameter, fix computing of COMPLETEP.
20126 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
20127 at LTO time do demangling.
20128 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
20129 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
20130 parameter.
20131 (gimple_get_virt_method_for_binfo): Likewise.
20132 * gimple-fold.h (gimple_get_virt_method_for_binfo,
20133 gimple_get_virt_method_for_vtable): Update prototypes.
20134
20135 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
20136
20137 PR target/49008
20138 * genautomata.c (add_presence_absence): Fix typo with
20139 {final_}presence_list.
20140
20141 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
20142
20143 PR target/60137
20144 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
20145 for VSX/Altivec vectors that land in GPR registers.
20146
20147 2014-02-11 Richard Henderson <rth@redhat.com>
20148 Jakub Jelinek <jakub@redhat.com>
20149
20150 PR debug/59776
20151 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
20152 around drhs if type conversion to lacc->type is not useless.
20153
20154 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20155
20156 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
20157 tuning struct.
20158 (cortex-a57.cortex-a53): Likewise.
20159 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
20160
20161 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20162
20163 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
20164 arm_restrict_it.
20165
20166 2014-02-11 Renlin Li <Renlin.Li@arm.com>
20167
20168 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
20169 add_options_for_arm_vfp3.
20170
20171 2014-02-11 Jeff Law <law@redhat.com>
20172
20173 PR middle-end/54041
20174 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
20175 object with an undesirable mode.
20176
20177 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20178
20179 PR libgomp/60107
20180 * config/i386/sol2-9.h: New file.
20181 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
20182 *-*-solaris2.9*): Use it.
20183
20184 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
20185
20186 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
20187 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
20188
20189 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
20190
20191 * config/microblaze/microblaze.c: Extend mcpu version format
20192
20193 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
20194
20195 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
20196
20197 2014-02-10 Richard Henderson <rth@redhat.com>
20198
20199 PR target/59927
20200 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
20201 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
20202 ms-abi vs -mno-accumulate-outgoing-args.
20203 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
20204 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
20205 respect to ms-abi.
20206
20207 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20208
20209 PR middle-end/60080
20210 * cfgexpand.c (expand_asm_operands): Attach source location to
20211 ASM_INPUT rtx objects.
20212 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
20213
20214 2014-02-10 Nick Clifton <nickc@redhat.com>
20215
20216 * config/mn10300/mn10300.c (popcount): New function.
20217 (mn10300_expand_prologue): Include saved registers in stack usage
20218 count.
20219
20220 2014-02-10 Jeff Law <law@redhat.com>
20221
20222 PR middle-end/52306
20223 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
20224 when changing the SET_DEST of a prior insn to avoid an input reload.
20225
20226 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20227
20228 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
20229 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
20230 -mcall-openbsd, or -mcall-linux.
20231 (CC1_ENDIAN_BIG_SPEC): Remove.
20232 (CC1_ENDIAN_LITTLE_SPEC): Remove.
20233 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
20234 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
20235 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
20236 and %cc1_endian_default.
20237 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
20238
20239 2014-02-10 Richard Biener <rguenther@suse.de>
20240
20241 PR tree-optimization/60115
20242 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
20243 MEM_REF handling. Properly verify that the accesses are not
20244 out of the objects bound.
20245
20246 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20247
20248 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
20249 coretex to cortex.
20250
20251 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
20252
20253 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
20254 proper constants and fix formatting.
20255 (possible_polymorphic_call_targets): Fix formatting.
20256
20257 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
20258 Ilya Tocar <ilya.tocar@intel.com>
20259
20260 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
20261 (_mm512_loadu_epi32): Renamed into...
20262 (_mm512_loadu_si512): This.
20263 (_mm512_storeu_epi32): Renamed into...
20264 (_mm512_storeu_si512): This.
20265 (_mm512_maskz_ceil_ps): Removed.
20266 (_mm512_maskz_ceil_pd): Ditto.
20267 (_mm512_maskz_floor_ps): Ditto.
20268 (_mm512_maskz_floor_pd): Ditto.
20269 (_mm512_floor_round_ps): Ditto.
20270 (_mm512_floor_round_pd): Ditto.
20271 (_mm512_ceil_round_ps): Ditto.
20272 (_mm512_ceil_round_pd): Ditto.
20273 (_mm512_mask_floor_round_ps): Ditto.
20274 (_mm512_mask_floor_round_pd): Ditto.
20275 (_mm512_mask_ceil_round_ps): Ditto.
20276 (_mm512_mask_ceil_round_pd): Ditto.
20277 (_mm512_maskz_floor_round_ps): Ditto.
20278 (_mm512_maskz_floor_round_pd): Ditto.
20279 (_mm512_maskz_ceil_round_ps): Ditto.
20280 (_mm512_maskz_ceil_round_pd): Ditto.
20281 (_mm512_expand_pd): Ditto.
20282 (_mm512_expand_ps): Ditto.
20283 * config/i386/i386.c (ix86_builtins): Remove
20284 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
20285 (bdesc_args): Ditto.
20286 * config/i386/predicates.md (const1256_operand): New.
20287 (const_1_to_2_operand): Ditto.
20288 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
20289 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
20290 (*avx512pf_gatherpf<mode>sf): Ditto.
20291 (avx512pf_gatherpf<mode>df): Ditto.
20292 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20293 (*avx512pf_gatherpf<mode>df): Ditto.
20294 (avx512pf_scatterpf<mode>sf): Ditto.
20295 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
20296 (*avx512pf_scatterpf<mode>sf): Ditto.
20297 (avx512pf_scatterpf<mode>df): Ditto.
20298 (*avx512pf_scatterpf<mode>df_mask): Ditto.
20299 (*avx512pf_scatterpf<mode>df): Ditto.
20300 (avx512f_expand<mode>): Removed.
20301 (<shift_insn><mode>3<mask_name>): Change predicate type.
20302
20303 2014-02-08 Jakub Jelinek <jakub@redhat.com>
20304
20305 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
20306 not at the end of datarefs vector use ordered_remove to avoid
20307 reordering datarefs vector.
20308
20309 PR c/59984
20310 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
20311 mark local addressable non-static vars as GOVD_PRIVATE
20312 instead of GOVD_LOCAL.
20313 * omp-low.c (lower_omp_for): Move gimple_bind_vars
20314 and BLOCK_VARS of gimple_bind_block to new_stmt rather
20315 than copying them.
20316
20317 PR middle-end/60092
20318 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
20319 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
20320 assume_aligned or alloc_align attributes.
20321 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
20322 arguments. Handle also assume_aligned and alloc_align attributes.
20323 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
20324 calls to functions with assume_aligned or alloc_align attributes.
20325 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
20326
20327 2014-02-08 Terry Guo <terry.guo@arm.com>
20328
20329 * doc/invoke.texi: Document ARM -march=armv7e-m.
20330
20331 2014-02-08 Jakub Jelinek <jakub@redhat.com>
20332
20333 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
20334 flag on __cilkrts_rethrow builtin.
20335
20336 PR ipa/60026
20337 * ipa-cp.c (determine_versionability): Fail at -O0
20338 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
20339 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
20340
20341 Revert:
20342 2014-02-04 Jakub Jelinek <jakub@redhat.com>
20343
20344 PR ipa/60026
20345 * tree-inline.c (copy_forbidden): Fail for
20346 __attribute__((optimize (0))) functions.
20347
20348 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
20349
20350 * varpool.c: Include pointer-set.h.
20351 (varpool_remove_unreferenced_decls): Variables in other partitions
20352 will not be output; be however careful to not lose information
20353 about partitioning.
20354
20355 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
20356
20357 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
20358 lookup in the vtable constructor.
20359
20360 2014-02-07 Jeff Law <law@redhat.com>
20361
20362 PR target/40977
20363 * config/m68k/m68k.md (ashldi_extsi): Turn into a
20364 define_insn_and_split.
20365
20366 * ipa-inline.c (inline_small_functions): Fix typos.
20367
20368 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20369
20370 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
20371 (s390_can_use_return_insn): Declare.
20372 * config/s390/s390.h (EPILOGUE_USES): Define.
20373 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
20374 instructions.
20375 (s390_chunkify_start): Handle return JUMP_LABELs.
20376 (s390_early_mach): Emit a main_pool instruction on the entry edge.
20377 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
20378 (s390_can_use_return_insn): New functions.
20379 (s390_fix_long_loop_prediction): Handle conditional returns.
20380 (TARGET_SET_UP_BY_PROLOGUE): Define.
20381 * config/s390/s390.md (ANY_RETURN): New code iterator.
20382 (*creturn, *csimple_return, return, simple_return): New patterns.
20383
20384 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20385
20386 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
20387 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
20388 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
20389 REG_CFA_RESTORE list when deciding not to restore a register.
20390
20391 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20392
20393 * config/s390/s390.c: Include tree-pass.h and context.h.
20394 (s390_early_mach): New function, split out from...
20395 (s390_emit_prologue): ...here.
20396 (pass_data_s390_early_mach): New pass structure.
20397 (pass_s390_early_mach): New class.
20398 (s390_option_override): Create and register early_mach pass.
20399 Move to end of file.
20400
20401 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20402
20403 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
20404 to match for the exit block.
20405
20406 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20407
20408 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
20409 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
20410 Reject misaligned operands.
20411
20412 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20413
20414 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
20415
20416 2014-02-07 Richard Biener <rguenther@suse.de>
20417
20418 PR middle-end/60092
20419 * gimple-low.c (lower_builtin_posix_memalign): New function.
20420 (lower_stmt): Call it to lower posix_memalign in a way
20421 to make alignment info accessible.
20422
20423 2014-02-07 Jakub Jelinek <jakub@redhat.com>
20424
20425 PR c++/60082
20426 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
20427 __builtin_setjmp_receiver.
20428
20429 2014-02-07 Richard Biener <rguenther@suse.de>
20430
20431 PR middle-end/60092
20432 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
20433 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
20434 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20435 Handle BUILT_IN_POSIX_MEMALIGN.
20436 (find_func_clobbers): Likewise.
20437 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
20438 (call_may_clobber_ref_p_1): Likewise.
20439
20440 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
20441
20442 PR ipa/59918
20443 * ipa-devirt.c (record_target_from_binfo): Remove overactive
20444 sanity check.
20445
20446 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
20447
20448 PR ipa/59469
20449 * lto-cgraph.c (lto_output_node): Use
20450 symtab_get_symbol_partitioning_class.
20451 (lto_output_varpool_node): likewise.
20452 (symtab_get_symbol_partitioning_class): Move here from
20453 lto/lto-partition.c
20454 * cgraph.h (symbol_partitioning_class): Likewise.
20455 (symtab_get_symbol_partitioning_class): Declare.
20456
20457 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
20458
20459 * ggc.h (ggc_internal_cleared_alloc): New macro.
20460 * vec.h (vec_safe_copy): Handle memory stats.
20461 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
20462 * target-globals.c (save_target_globals): Likewise.
20463
20464 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
20465
20466 PR target/60077
20467 * expr.c (emit_move_resolve_push): Export; be bit more selective
20468 on when to clear alias set.
20469 * expr.h (emit_move_resolve_push): Declare.
20470 * function.h (struct function): Add tail_call_marked.
20471 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
20472 * config/i386/i386-protos.h (ix86_expand_push): Remove.
20473 * config/i386/i386.md (TImode move expander): De not call
20474 ix86_expand_push.
20475 (FP push expanders): Preserve memory attributes.
20476 * config/i386/sse.md (push<mode>1): Remove.
20477 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
20478 (ix86_expand_push): Remove.
20479 * config/i386/mmx.md (push<mode>1): Remove.
20480
20481 2014-02-06 Jakub Jelinek <jakub@redhat.com>
20482
20483 PR rtl-optimization/60030
20484 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
20485 lopart with paradoxical subreg before shifting it up by hprec.
20486
20487 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20488
20489 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
20490 Remove extra newline at end of file.
20491 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
20492 (arm_issue_rate): Handle cortexa57.
20493 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
20494 (cortex-a57.cortex-a53): Likewise.
20495
20496 2014-02-06 Jakub Jelinek <jakub@redhat.com>
20497
20498 PR target/59575
20499 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
20500 don't record in REG_FRAME_RELATED_EXPR registers not set in that
20501 bitmask.
20502 (arm_expand_prologue): Adjust all callers.
20503 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
20504 info, registers also at the lowest numbered registers side. Use
20505 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
20506 XEXP.
20507
20508 PR debug/59992
20509 * var-tracking.c (adjust_mems): Before adding a SET to
20510 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
20511
20512 2014-02-06 Alan Modra <amodra@gmail.com>
20513
20514 PR target/60032
20515 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
20516 change SDmode to DDmode when lra_in_progress.
20517
20518 2014-02-06 Jakub Jelinek <jakub@redhat.com>
20519
20520 PR middle-end/59150
20521 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
20522 free_data_ref on the dr first, and before goto again also set dr
20523 to the next dr. For simd_lane_access, free old datarefs[i] before
20524 overwriting it. For get_vectype_for_scalar_type failure, don't
20525 free_data_ref if simd_lane_access.
20526
20527 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
20528
20529 PR target/60062
20530 * tree.h (opts_for_fn): New inline function.
20531 (opt_for_fn): Define.
20532 * config/i386/i386.c (ix86_function_regparm): Use
20533 opt_for_fn (decl, optimize) instead of optimize.
20534
20535 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
20536
20537 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
20538 for SYMBOL_REF in large memory model.
20539
20540 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20541
20542 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
20543 and crypto support.
20544 (cortex-a57): Likewise.
20545 (cortex-a57.cortex-a53): Likewise.
20546
20547 2014-02-06 Yury Gribov <y.gribov@samsung.com>
20548 Kugan Vivekanandarajah <kuganv@linaro.org>
20549
20550 * config/arm/arm.c (arm_vector_alignment_reachable): Check
20551 unaligned_access.
20552 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
20553
20554 2014-02-06 Richard Biener <rguenther@suse.de>
20555
20556 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
20557 set_loop_copy and initialize_original_copy_tables.
20558
20559 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
20560
20561 * config/aarch64/aarch64-simd.md
20562 (aarch64_ashr_simddi): Change QI to SI.
20563
20564 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
20565 Jakub Jelinek <jakub@redhat.com>
20566
20567 PR middle-end/60013
20568 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
20569 of the dataflow.
20570
20571 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20572
20573 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
20574 CODE_FOR_altivec_vpku[hw]um to
20575 CODE_FOR_altivec_vpku[hw]um_direct.
20576 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
20577 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
20578 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
20579 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
20580
20581 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20582
20583 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
20584 generation for -maltivec=be.
20585 (altivec_vsumsws): Simplify redundant test.
20586
20587 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20588
20589 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
20590 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
20591 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
20592 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
20593 gen_altivec_vpkuwum.
20594 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
20595 BYTES_BIG_ENDIAN.
20596 (altivec_vpks<VI_char>ss): Likewise.
20597 (altivec_vpks<VI_char>us): Likewise.
20598 (altivec_vpku<VI_char>us): Likewise.
20599 (altivec_vpku<VI_char>um): Likewise.
20600 (altivec_vpku<VI_char>um_direct): New (copy of
20601 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
20602 internal use).
20603 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
20604 target is little endian and -maltivec=be is not specified.
20605 (*altivec_vupkhs<VU_char>_direct): New (copy of
20606 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
20607 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
20608 target is little endian and -maltivec=be is not specified.
20609 (*altivec_vupkls<VU_char>_direct): New (copy of
20610 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
20611 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
20612 little endian and -maltivec=be is not specified.
20613 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
20614 little endian and -maltivec=be is not specified.
20615
20616 2014-02-05 Richard Henderson <rth@redhat.com>
20617
20618 PR debug/52727
20619 * combine-stack-adj.c: Revert r206943.
20620 * sched-int.h (struct deps_desc): Add last_args_size.
20621 * sched-deps.c (init_deps): Initialize it.
20622 (sched_analyze_insn): Add OUTPUT dependencies between insns that
20623 contain REG_ARGS_SIZE notes.
20624
20625 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
20626
20627 * lto-cgraph.c (asm_nodes_output): Make global.
20628 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
20629 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
20630 (driver_handle_option): Handle OPT_fwpa.
20631
20632 2014-02-05 Jakub Jelinek <jakub@redhat.com>
20633
20634 PR ipa/59947
20635 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
20636 a comment typo and formatting issue. If odr_hash hasn't been
20637 created, return vNULL and set *completep to false.
20638
20639 PR middle-end/57499
20640 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
20641 bb with no successors.
20642
20643 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
20644
20645 PR target/59718
20646 * doc/invoke.texi (-march): Clarify documentation for ARM.
20647 (-mtune): Likewise.
20648 (-mcpu): Likewise.
20649
20650 2014-02-05 Richard Biener <rguenther@suse.de>
20651
20652 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
20653 when not vectorizing because of too many alias checks.
20654 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20655 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
20656
20657 2014-02-05 Nick Clifton <nickc@redhat.com>
20658
20659 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
20660 accept extended registers in any mode when compiling for the MN10300.
20661
20662 2014-02-05 Yury Gribov <y.gribov@samsung.com>
20663
20664 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
20665 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
20666 sanitization attributes.
20667 (can_inline_edge_p): Likewise.
20668 (sanitize_attrs_match_for_inline_p): New function.
20669
20670 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
20671
20672 * ipa-prop.c (detect_type_change): Shor circuit testing of
20673 type changes on THIS pointer.
20674
20675 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
20676
20677 PR target/59777
20678 * config/pa/pa.c (legitimize_tls_address): Return original address
20679 if not passed a SYMBOL_REF rtx.
20680 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
20681 addresses.
20682 (pa_emit_move_sequence): Simplify TLS source operands.
20683 (pa_legitimate_constant_p): Reject all TLS constants.
20684 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
20685 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
20686
20687 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
20688
20689 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
20690 groups when we know they are controlled by LTO.
20691 * varasm.c (default_binds_local_p_1): If object is in other partition,
20692 it will be resolved locally.
20693
20694 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
20695
20696 * config/host-linux.c (linux_gt_pch_use_address): Don't
20697 use SSIZE_MAX because it is not always defined.
20698
20699 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
20700
20701 PR bootstrap/59913
20702 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
20703 threshold for pseudo splitting.
20704 (update_ebb_live_info): Process call argument hard registers and
20705 hard registers from insn definition too.
20706 (max_small_class_regs_num): New constant.
20707 (inherit_in_ebb): Update live hard regs through EBBs. Update
20708 reloads_num only for small register classes. Don't split for
20709 outputs of jumps.
20710
20711 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
20712
20713 PR ipa/60058
20714 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
20715 is non-null.
20716
20717 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
20718
20719 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
20720 visibility is safe.
20721
20722 2014-02-04 Marek Polacek <polacek@redhat.com>
20723
20724 * gdbinit.in (pel): Define.
20725
20726 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
20727
20728 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
20729 behavior.
20730
20731 2014-02-04 Richard Biener <rguenther@suse.de>
20732
20733 PR lto/59723
20734 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
20735 in function context local.
20736 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
20737 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
20738 similar to LTO_imported_decl_ref.
20739
20740 2014-02-04 Jakub Jelinek <jakub@redhat.com>
20741
20742 PR tree-optimization/60002
20743 * cgraphclones.c (build_function_decl_skip_args): Clear
20744 DECL_LANG_SPECIFIC.
20745
20746 PR tree-optimization/60023
20747 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
20748 false to gsi_replace.
20749 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
20750 has been in some EH region and vec_stmt could throw, add
20751 vec_stmt into the same EH region.
20752 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
20753 has no lhs, ignore it.
20754 * internal-fn.c (expand_MASK_LOAD): Likewise.
20755
20756 PR ipa/60026
20757 * tree-inline.c (copy_forbidden): Fail for
20758 __attribute__((optimize (0))) functions.
20759
20760 PR other/58712
20761 * omp-low.c (simd_clone_struct_copy): If from->inbranch
20762 is set, copy one less argument.
20763 (expand_simd_clones): Don't subtract clone_info->inbranch
20764 from simd_clone_struct_alloc argument.
20765
20766 PR rtl-optimization/57915
20767 * recog.c (simplify_while_replacing): If all unary/binary/relational
20768 operation arguments are constant, attempt to simplify those.
20769
20770 PR middle-end/59261
20771 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
20772 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
20773
20774 2014-02-04 Richard Biener <rguenther@suse.de>
20775
20776 PR tree-optimization/60012
20777 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
20778 TBAA disambiguation to all DDRs.
20779
20780 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20781
20782 PR target/59788
20783 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
20784 (LINK_SPEC): Use it for -shared, -shared-libgcc.
20785
20786 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20787
20788 PR ipa/59882
20789 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
20790
20791 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20792
20793 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
20794 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
20795
20796 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20797
20798 PR ipa/59831
20799 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
20800 to figure out targets of polymorphic calls with known decl.
20801 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20802 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
20803 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
20804 (get_polymorphic_call_info): ... here.
20805 (get_polymorphic_call_info_from_invariant): New function.
20806
20807 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20808
20809 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
20810 lookup via vtable pointer; check for type consistency
20811 and turn inconsitent facts into UNREACHABLE.
20812 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20813 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
20814 type inconsistent querries; return UNREACHABLE instead.
20815
20816 2014-02-03 Richard Henderson <rth@twiddle.net>
20817
20818 PR tree-opt/59924
20819 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
20820 already processed this node.
20821 (normalize_one_pred_1): Pass along mark_set.
20822 (normalize_one_pred): Create and destroy a pointer_set_t.
20823 (normalize_one_pred_chain): Likewise.
20824
20825 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
20826
20827 PR gcov-profile/58602
20828 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
20829
20830 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20831
20832 PR ipa/59831
20833 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
20834 -fno-devirtualize; try to devirtualize by the knowledge of
20835 virtual table pointer given by aggregate propagation.
20836 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20837 (ipa_print_node_jump_functions): Dump also offset that
20838 is relevant for polymorphic calls.
20839 (determine_known_aggregate_parts): Add arg_type parameter; use it
20840 instead of determining the type from pointer type.
20841 (ipa_compute_jump_functions_for_edge): Update call of
20842 determine_known_aggregate_parts.
20843 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
20844 (gimple_get_virt_method_for_binfo): ... here; simplify using
20845 vtable_pointer_value_to_vtable.
20846 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
20847 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
20848 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
20849 (vtable_pointer_value_to_vtable): Break out from ...; handle also
20850 POINTER_PLUS_EXPR.
20851 (vtable_pointer_value_to_binfo): ... here.
20852 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
20853
20854 2014-02-03 Teresa Johnson <tejohnson@google.com>
20855
20856 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
20857 redef of outer loop index variable.
20858
20859 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
20860
20861 PR c++/53017
20862 PR c++/59211
20863 * doc/extend.texi (Function Attributes): Typo.
20864
20865 2014-02-03 Cong Hou <congh@google.com>
20866
20867 PR tree-optimization/60000
20868 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
20869 if the vectorized statement is a store. A store statement can only
20870 appear at the end of pattern statements.
20871
20872 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
20873
20874 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
20875 (ix86_option_override_internal): Default long double to 64-bit for
20876 32-bit Bionic and to 128-bit for 64-bit Bionic.
20877
20878 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
20879 TARGET_LONG_DOUBLE_128 is true.
20880 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
20881
20882 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
20883 (mlong-double-64): Negate -mlong-double-128.
20884 (mlong-double-128): New option.
20885
20886 * config/i386/i386-c.c (ix86_target_macros): Define
20887 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
20888
20889 * doc/invoke.texi: Document -mlong-double-128.
20890
20891 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
20892
20893 PR rtl-optimization/60024
20894 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
20895
20896 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
20897
20898 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
20899
20900 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
20901
20902 PR rtl-optimization/57662
20903 * sel-sched.c (code_motion_path_driver): Do not mark already not
20904 existing blocks in the visiting bitmap.
20905
20906 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
20907
20908 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
20909 on the insn being emitted.
20910
20911 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
20912 Will Deacon <will.deacon@arm.com>
20913
20914 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
20915
20916 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20917
20918 * config/arm/arm-tables.opt: Regenerate.
20919
20920 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20921
20922 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
20923 for vector types other than V16QImode.
20924 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
20925 define_expand, and call altivec_expand_vec_perm_le when producing
20926 code with little endian element order.
20927 (*altivec_vperm_<mode>_internal): New insn having previous
20928 behavior of altivec_vperm_<mode>.
20929 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
20930 altivec_expand_vec_perm_le when producing code with little endian
20931 element order.
20932 (*altivec_vperm_<mode>_uns_internal): New insn having previous
20933 behavior of altivec_vperm_<mode>_uns.
20934
20935 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20936
20937 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
20938 (altivec_vsumsws): Add handling for -maltivec=be with a little
20939 endian target.
20940 (altivec_vsumsws_direct): New.
20941 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
20942 gen_altivec_vsumsws.
20943
20944 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
20945
20946 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
20947 vtable_pointer_value_to_binfo): New functions.
20948 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
20949 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
20950
20951 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
20952
20953 * config/nios2/nios2.md (load_got_register): Initialize GOT
20954 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
20955 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
20956
20957 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
20958
20959 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
20960 preserverd by passthrough, do not propagate the type.
20961
20962 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
20963
20964 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
20965 (mips_atomic_assign_expand_fenv): New function.
20966 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
20967
20968 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
20969
20970 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
20971 (__builtin_mips_set_fcsr): Likewise.
20972 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
20973 MIPS_USI_FTYPE_VOID.
20974 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
20975 (mips16_expand_set_fcsr): Likewise.
20976 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
20977 (mips16_set_fcsr_stub): Likewise.
20978 (mips16_get_fcsr_one_only_stub): New class.
20979 (mips16_set_fcsr_one_only_stub): Likewise.
20980 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
20981 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
20982 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
20983 (hard_float): New availability predicate.
20984 (mips_builtins): Add get_fcsr and set_fcsr.
20985 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
20986 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
20987 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
20988 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
20989 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
20990 patterns.
20991
20992 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
20993
20994 * config/mips/mips.c (mips_one_only_stub): New class.
20995 (mips_need_mips16_rdhwr_p): Replace with...
20996 (mips16_rdhwr_stub): ...this new variable.
20997 (mips16_stub_call_address): New function.
20998 (mips16_rdhwr_one_only_stub): New class.
20999 (mips_expand_thread_pointer): Use mips16_stub_call_address.
21000 (mips_output_mips16_rdhwr): Delete.
21001 (mips_finish_stub): New function.
21002 (mips_code_end): Use it to handle rdhwr stubs.
21003
21004 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
21005
21006 PR target/60017
21007 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
21008 when calculating size of integer atomic types.
21009
21010 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
21011
21012 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
21013
21014 2014-02-01 Jakub Jelinek <jakub@redhat.com>
21015
21016 PR tree-optimization/60003
21017 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
21018 * profile.c (branch_prob): Use gimple_call_builtin_p
21019 to check for BUILT_IN_SETJMP_RECEIVER.
21020 * tree-inline.c (copy_bb): Call notice_special_calls.
21021
21022 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
21023
21024 PR bootstrap/59985
21025 * lra-constraints.c (process_alt_operands): Update reload_sum only
21026 on the first pass.
21027
21028 2014-01-31 Richard Henderson <rth@redhat.com>
21029
21030 PR middle-end/60004
21031 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
21032 until after else_eh is processed.
21033
21034 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
21035
21036 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
21037 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
21038 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
21039 in smmintrin.h, remove them.
21040 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
21041 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
21042 * config/i386/i386.md (ROUND_SAE): Fix value.
21043 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
21044 (const48_operand): New.
21045 * config/i386/subst.md (round), (round_expand): Use
21046 const_4_or_8_to_11_operand.
21047 (round_saeonly), (round_saeonly_expand): Use const48_operand.
21048
21049 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
21050
21051 * config/i386/constraints.md (Yk): Swap meaning with k.
21052 * config/i386/i386.md (movhi_internal): Change Yk to k.
21053 (movqi_internal): Ditto.
21054 (*k<logic><mode>): Ditto.
21055 (*andhi_1): Ditto.
21056 (*andqi_1): Ditto.
21057 (kandn<mode>): Ditto.
21058 (*<code>hi_1): Ditto.
21059 (*<code>qi_1): Ditto.
21060 (kxnor<mode>): Ditto.
21061 (kortestzhi): Ditto.
21062 (kortestchi): Ditto.
21063 (kunpckhi): Ditto.
21064 (*one_cmplhi2_1): Ditto.
21065 (*one_cmplqi2_1): Ditto.
21066 * config/i386/sse.md (): Change k to Yk.
21067 (avx512f_load<mode>_mask): Ditto.
21068 (avx512f_blendm<mode>): Ditto.
21069 (avx512f_store<mode>_mask): Ditto.
21070 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
21071 (avx512f_storedqu<mode>_mask): Ditto.
21072 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
21073 Ditto.
21074 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
21075 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
21076 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
21077 (avx512f_maskcmp<mode>3): Ditto.
21078 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
21079 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
21080 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
21081 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
21082 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
21083 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
21084 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
21085 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
21086 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
21087 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
21088 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
21089 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
21090 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
21091 (vec_extract_lo_<mode>_maskm): Ditto.
21092 (vec_extract_hi_<mode>_maskm): Ditto.
21093 (avx512f_vternlog<mode>_mask): Ditto.
21094 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
21095 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
21096 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
21097 (avx512f_<code>v8div16qi2_mask): Ditto.
21098 (avx512f_<code>v8div16qi2_mask_store): Ditto.
21099 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
21100 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
21101 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
21102 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
21103 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
21104 (*avx512pf_gatherpf<mode>df_mask): Ditto.
21105 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
21106 (*avx512pf_scatterpf<mode>df_mask): Ditto.
21107 (avx512cd_maskb_vec_dupv8di): Ditto.
21108 (avx512cd_maskw_vec_dupv16si): Ditto.
21109 (avx512f_vpermi2var<mode>3_maskz): Ditto.
21110 (avx512f_vpermi2var<mode>3_mask): Ditto.
21111 (avx512f_vpermi2var<mode>3_mask): Ditto.
21112 (avx512f_vpermt2var<mode>3_maskz): Ditto.
21113 (*avx512f_gathersi<mode>): Ditto.
21114 (*avx512f_gathersi<mode>_2): Ditto.
21115 (*avx512f_gatherdi<mode>): Ditto.
21116 (*avx512f_gatherdi<mode>_2): Ditto.
21117 (*avx512f_scattersi<mode>): Ditto.
21118 (*avx512f_scatterdi<mode>): Ditto.
21119 (avx512f_compress<mode>_mask): Ditto.
21120 (avx512f_compressstore<mode>_mask): Ditto.
21121 (avx512f_expand<mode>_mask): Ditto.
21122 * config/i386/subst.md (mask): Change k to Yk.
21123 (mask_scalar_merge): Ditto.
21124 (sd): Ditto.
21125
21126 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
21127
21128 * doc/extend.texi (Vector Extensions): Document ?: in C++.
21129
21130 2014-01-31 Richard Biener <rguenther@suse.de>
21131
21132 PR middle-end/59990
21133 * builtins.c (fold_builtin_memory_op): Make sure to not
21134 use a floating-point mode or a boolean or enumeral type for
21135 the copy operation.
21136
21137 2014-01-30 DJ Delorie <dj@redhat.com>
21138
21139 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
21140 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
21141 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
21142 whenever main() has an epilogue.
21143
21144 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21145
21146 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
21147 unused variable "field".
21148 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
21149 (vsx_mergeh_<mode>): Likewise.
21150 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
21151 (altivec_vmrghh): Likewise.
21152 (altivec_vmrghw): Likewise.
21153 (altivec_vmrglb): Likewise.
21154 (altivec_vmrglh): Likewise.
21155 (altivec_vmrglw): Likewise.
21156 (altivec_vspltb): Add missing uses.
21157 (altivec_vsplth): Likewise.
21158 (altivec_vspltw): Likewise.
21159 (altivec_vspltsf): Likewise.
21160
21161 2014-01-30 Jakub Jelinek <jakub@redhat.com>
21162
21163 PR target/59923
21164 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
21165 frame related instructions.
21166
21167 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
21168
21169 PR rtl-optimization/59959
21170 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
21171 any reload of register whose subreg is invalid.
21172
21173 2014-01-30 Jakub Jelinek <jakub@redhat.com>
21174
21175 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
21176 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
21177 Add missing return type - void.
21178
21179 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21180
21181 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
21182 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
21183 remove element index adjustment for endian (now handled in vsx.md
21184 and altivec.md).
21185 (altivec_expand_vec_perm_const): Use
21186 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
21187 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
21188 (vsx_xxspltw_<mode>): Adjust element index for little endian.
21189 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
21190 define_expand and a new define_insn *altivec_vspltb_internal;
21191 adjust for -maltivec=be on a little endian target.
21192 (altivec_vspltb_direct): New.
21193 (altivec_vsplth): Divide into a define_expand and a new
21194 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
21195 little endian target.
21196 (altivec_vsplth_direct): New.
21197 (altivec_vspltw): Divide into a define_expand and a new
21198 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
21199 little endian target.
21200 (altivec_vspltw_direct): New.
21201 (altivec_vspltsf): Divide into a define_expand and a new
21202 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
21203 a little endian target.
21204
21205 2014-01-30 Richard Biener <rguenther@suse.de>
21206
21207 PR tree-optimization/59993
21208 * tree-ssa-forwprop.c (associate_pointerplus): Check we
21209 can propagate form the earlier stmt and avoid the transform
21210 when the intermediate result is needed.
21211
21212 2014-01-30 Alangi Derick <alangiderick@gmail.com>
21213
21214 * README.Portability: Fix typo.
21215
21216 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
21217
21218 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
21219 comparison_operator with ordered_comparison_operator.
21220
21221 2014-01-30 Nick Clifton <nickc@redhat.com>
21222
21223 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
21224 Rename to mn10300_store_multiple_regs.
21225 * config/mn10300/mn10300.c: Likewise.
21226 * config/mn10300/mn10300.md (store_movm): Fix typo: call
21227 store_multiple_regs.
21228 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
21229 Call mn10300_store_multiple_regs.
21230
21231 2014-01-30 Nick Clifton <nickc@redhat.com>
21232 DJ Delorie <dj@redhat.com>
21233
21234 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
21235 %fp 2 to keep registers after it properly word-aligned.
21236 (rl78_alloc_physical_registers_umul): Handle the case where both
21237 input operands are the same.
21238
21239 2014-01-30 Richard Biener <rguenther@suse.de>
21240
21241 PR tree-optimization/59903
21242 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
21243 check properly.
21244
21245 2014-01-30 Jason Merrill <jason@redhat.com>
21246
21247 PR c++/59633
21248 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
21249
21250 PR c++/59645
21251 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
21252
21253 2014-01-30 Richard Biener <rguenther@suse.de>
21254
21255 PR tree-optimization/59951
21256 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
21257
21258 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
21259
21260 PR target/59784
21261 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
21262 SFmode to DFmode case.
21263
21264 2014-01-29 DJ Delorie <dj@redhat.com>
21265
21266 * config/msp430/msp430.opt (-minrt): New.
21267 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
21268 if -minrt given.
21269 (ENDFILE_SPEC): Likewise.
21270
21271 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
21272
21273 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
21274 (estimate_function_body_sizes): Use it.
21275
21276 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
21277
21278 PR c++/58561
21279 * dwarf2out.c (is_cxx_auto): New.
21280 (is_base_type): Use it.
21281 (gen_type_die_with_usage): Likewise.
21282
21283 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21284
21285 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
21286 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
21287 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
21288 -maltivec=be with LE targets.
21289 (vsx_mergeh_<mode>): Likewise.
21290 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
21291 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
21292 (altivec_vmrghb): Replace with define_expand and new
21293 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
21294 (altivec_vmrghb_direct): New define_insn.
21295 (altivec_vmrghh): Replace with define_expand and new
21296 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
21297 (altivec_vmrghh_direct): New define_insn.
21298 (altivec_vmrghw): Replace with define_expand and new
21299 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
21300 (altivec_vmrghw_direct): New define_insn.
21301 (*altivec_vmrghsf): Adjust for endianness.
21302 (altivec_vmrglb): Replace with define_expand and new
21303 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
21304 (altivec_vmrglb_direct): New define_insn.
21305 (altivec_vmrglh): Replace with define_expand and new
21306 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
21307 (altivec_vmrglh_direct): New define_insn.
21308 (altivec_vmrglw): Replace with define_expand and new
21309 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
21310 (altivec_vmrglw_direct): New define_insn.
21311 (*altivec_vmrglsf): Adjust for endianness.
21312 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
21313 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
21314 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
21315 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
21316 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
21317 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
21318 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
21319 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
21320
21321 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
21322
21323 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
21324 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
21325 whitespace.
21326
21327 2014-01-29 Richard Biener <rguenther@suse.de>
21328
21329 PR tree-optimization/58742
21330 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
21331 associate_pointerplus_align.
21332 (associate_pointerplus_diff): New function.
21333 (associate_pointerplus): Likewise. Call associate_pointerplus_align
21334 and associate_pointerplus_diff.
21335
21336 2014-01-29 Richard Biener <rguenther@suse.de>
21337
21338 * lto-streamer.h (LTO_major_version): Bump to 3.
21339 (LTO_minor_version): Reset to 0.
21340
21341 2014-01-29 Renlin Li <Renlin.Li@arm.com>
21342
21343 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
21344 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
21345 (arm_file_start): Generate correct asm header for armv7ve.
21346 * config/arm/bpabi.h: Add multilib support for armv7ve.
21347 * config/arm/driver-arm.c: Change the architectures of cortex-a7
21348 and cortex-a15 to armv7ve.
21349 * config/arm/t-aprofile: Add multilib support for armv7ve.
21350 * doc/invoke.texi: Document -march=armv7ve.
21351
21352 2014-01-29 Richard Biener <rguenther@suse.de>
21353
21354 PR tree-optimization/58742
21355 * tree-ssa-forwprop.c (associate_plusminus): Return true
21356 if we changed sth, defer EH cleanup to ...
21357 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
21358 (simplify_mult): New function.
21359
21360 2014-01-29 Jakub Jelinek <jakub@redhat.com>
21361
21362 PR middle-end/59917
21363 PR tree-optimization/59920
21364 * tree.c (build_common_builtin_nodes): Remove
21365 __builtin_setjmp_dispatcher initialization.
21366 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
21367 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
21368 instead of gsi_after_labels + manually skipping debug stmts.
21369 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
21370 ignore bbs with IFN_ABNORMAL_DISPATCHER.
21371 * tree-inline.c (copy_edges_for_bb): Remove
21372 can_make_abnormal_goto argument, instead add abnormal_goto_dest
21373 argument. Ignore computed_goto_p stmts. Don't call
21374 make_abnormal_goto_edges. If a call might need abnormal edges
21375 for non-local gotos, see if it already has an edge to
21376 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
21377 with true argument, don't do anything then, otherwise add
21378 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
21379 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
21380 caller.
21381 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
21382 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
21383 (lower_stmt): Don't set data->calls_builtin_setjmp.
21384 (lower_builtin_setjmp): Adjust comment.
21385 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
21386 * tree-cfg.c (found_computed_goto): Remove.
21387 (factor_computed_gotos): Remove.
21388 (make_goto_expr_edges): Return bool, true for computed gotos.
21389 Don't call make_abnormal_goto_edges.
21390 (build_gimple_cfg): Don't set found_computed_goto, don't call
21391 factor_computed_gotos.
21392 (computed_goto_p): No longer static.
21393 (make_blocks): Don't set found_computed_goto.
21394 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
21395 (make_edges): If make_goto_expr_edges returns true, push bb
21396 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
21397 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
21398 vector. Record mapping between bbs and OpenMP regions if there
21399 are any, adjust make_gimple_omp_edges caller. Call
21400 handle_abnormal_edges.
21401 (make_abnormal_goto_edges): Remove.
21402 * tree-cfg.h (make_abnormal_goto_edges): Remove.
21403 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
21404 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
21405 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
21406 * internal-fn.def (ABNORMAL_DISPATCHER): New.
21407 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
21408 filling *region also set *region_idx to (*region)->entry->index.
21409
21410 PR other/58712
21411 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
21412 For REGs set ORIGINAL_REGNO.
21413
21414 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
21415
21416 * doc/md.texi: Mention that a target shouldn't implement
21417 vec_widen_(s|u)mul_even/odd pair if it is less efficient
21418 than hi/lo pair.
21419
21420 2014-01-29 Jakub Jelinek <jakub@redhat.com>
21421
21422 PR tree-optimization/59594
21423 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
21424 a copy of the datarefs vector rather than the vector itself.
21425
21426 2014-01-28 Jason Merrill <jason@redhat.com>
21427
21428 PR c++/53756
21429 * dwarf2out.c (auto_die): New static.
21430 (gen_type_die_with_usage): Handle C++1y 'auto'.
21431 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
21432 on definition.
21433
21434 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
21435
21436 PR target/59672
21437 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
21438 (SPEC_X32): Likewise.
21439 (SPEC_64): Likewise.
21440 * config/i386/i386.c (ix86_option_override_internal): Turn off
21441 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
21442 for TARGET_16BIT.
21443 (x86_file_start): Output .code16gcc for TARGET_16BIT.
21444 * config/i386/i386.h (TARGET_16BIT): New macro.
21445 (TARGET_16BIT_P): Likewise.
21446 * config/i386/i386.opt: Add m16.
21447 * doc/invoke.texi: Document -m16.
21448
21449 2014-01-28 Jakub Jelinek <jakub@redhat.com>
21450
21451 PR preprocessor/59935
21452 * input.c (location_get_source_line): Bail out on when line number
21453 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
21454
21455 2014-01-28 Richard Biener <rguenther@suse.de>
21456
21457 PR tree-optimization/58742
21458 * tree-ssa-forwprop.c (associate_plusminus): Handle
21459 pointer subtraction of the form (T)(P + A) - (T)P.
21460
21461 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21462
21463 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
21464 at const_int_cost.
21465
21466 2014-01-28 Richard Biener <rguenther@suse.de>
21467
21468 Revert
21469 2014-01-28 Richard Biener <rguenther@suse.de>
21470
21471 PR rtl-optimization/45364
21472 PR rtl-optimization/59890
21473 * var-tracking.c (local_get_addr_clear_given_value): Handle
21474 already cleared slot.
21475 (val_reset): Handle not allocated local_get_addr_cache.
21476 (vt_find_locations): Use post-order on the inverted CFG.
21477
21478 2014-01-28 Richard Biener <rguenther@suse.de>
21479
21480 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
21481
21482 2014-01-28 Richard Biener <rguenther@suse.de>
21483
21484 PR rtl-optimization/45364
21485 PR rtl-optimization/59890
21486 * var-tracking.c (local_get_addr_clear_given_value): Handle
21487 already cleared slot.
21488 (val_reset): Handle not allocated local_get_addr_cache.
21489 (vt_find_locations): Use post-order on the inverted CFG.
21490
21491 2014-01-28 Alan Modra <amodra@gmail.com>
21492
21493 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
21494 * configure.ac <recursive call for build != host>: Define
21495 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
21496 and LD_FOR_BUILD too.
21497 * configure: Regenerate.
21498
21499 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
21500
21501 * config/i386/i386.c (get_builtin_code_for_version): Separate
21502 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
21503 Broadwell from Haswell.
21504
21505 2014-01-27 Steve Ellcey <sellcey@mips.com>
21506
21507 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
21508 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
21509 * config/mips/mips.c (mips_option_override): Change setting
21510 of TARGET_DSP.
21511 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
21512 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
21513 Change from Mask to Var.
21514
21515 2014-01-27 Jeff Law <law@redhat.com>
21516
21517 * ipa-inline.c (inline_small_functions): Fix typo.
21518
21519 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
21520
21521 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
21522 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
21523 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
21524 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
21525 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
21526 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
21527 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
21528 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
21529 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
21530 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
21531 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
21532 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
21533 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
21534 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
21535 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
21536 (_mm512_storeu_epi64): Ditto.
21537 (_mm512_cmpge_epi32_mask): Ditto.
21538 (_mm512_cmpge_epu32_mask): Ditto.
21539 (_mm512_cmpge_epi64_mask): Ditto.
21540 (_mm512_cmpge_epu64_mask): Ditto.
21541 (_mm512_cmple_epi32_mask): Ditto.
21542 (_mm512_cmple_epu32_mask): Ditto.
21543 (_mm512_cmple_epi64_mask): Ditto.
21544 (_mm512_cmple_epu64_mask): Ditto.
21545 (_mm512_cmplt_epi32_mask): Ditto.
21546 (_mm512_cmplt_epu32_mask): Ditto.
21547 (_mm512_cmplt_epi64_mask): Ditto.
21548 (_mm512_cmplt_epu64_mask): Ditto.
21549 (_mm512_cmpneq_epi32_mask): Ditto.
21550 (_mm512_cmpneq_epu32_mask): Ditto.
21551 (_mm512_cmpneq_epi64_mask): Ditto.
21552 (_mm512_cmpneq_epu64_mask): Ditto.
21553 (_mm512_expand_pd): Ditto.
21554 (_mm512_expand_ps): Ditto.
21555 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
21556 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
21557 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
21558 * config/i386/i386.c (ix86_builtins): Add
21559 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
21560 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
21561 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
21562 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
21563 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
21564 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
21565 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
21566 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
21567 IX86_BUILTIN_PMOVUSQW512_MEM.
21568 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
21569 __builtin_ia32_pmovsqd512mem_mask,
21570 __builtin_ia32_pmovqd512mem_mask,
21571 __builtin_ia32_pmovusqw512mem_mask,
21572 __builtin_ia32_pmovsqw512mem_mask,
21573 __builtin_ia32_pmovqw512mem_mask,
21574 __builtin_ia32_pmovusdw512mem_mask,
21575 __builtin_ia32_pmovsdw512mem_mask,
21576 __builtin_ia32_pmovdw512mem_mask,
21577 __builtin_ia32_pmovqb512mem_mask,
21578 __builtin_ia32_pmovusqb512mem_mask,
21579 __builtin_ia32_pmovsqb512mem_mask,
21580 __builtin_ia32_pmovusdb512mem_mask,
21581 __builtin_ia32_pmovsdb512mem_mask,
21582 __builtin_ia32_pmovdb512mem_mask.
21583 (bdesc_args): Add __builtin_ia32_expanddf512,
21584 __builtin_ia32_expandsf512.
21585 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
21586 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
21587 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
21588 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
21589 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
21590 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
21591 (avx512f_<code>v8div16qi2_mask_store): This.
21592 (avx512f_expand<mode>): New.
21593
21594 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
21595
21596 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
21597 New.
21598 (_mm512_mask_prefetch_i64gather_pd): Ditto.
21599 (_mm512_prefetch_i32scatter_pd): Ditto.
21600 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
21601 (_mm512_prefetch_i64scatter_pd): Ditto.
21602 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
21603 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
21604 (_mm512_mask_prefetch_i64gather_ps): Ditto.
21605 (_mm512_prefetch_i32scatter_ps): Ditto.
21606 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
21607 (_mm512_prefetch_i64scatter_ps): Ditto.
21608 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
21609 * config/i386/i386-builtin-types.def: Define
21610 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
21611 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
21612 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
21613 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
21614 IX86_BUILTIN_SCATTERPFQPD.
21615 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
21616 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
21617 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
21618 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
21619 __builtin_ia32_scatterpfqps.
21620 (ix86_expand_builtin): Expand new built-ins.
21621 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
21622 fix memory access data type.
21623 (*avx512pf_gatherpf<mode>_mask): Ditto.
21624 (*avx512pf_gatherpf<mode>): Ditto.
21625 (avx512pf_scatterpf<mode>): Ditto.
21626 (*avx512pf_scatterpf<mode>_mask): Ditto.
21627 (*avx512pf_scatterpf<mode>): Ditto.
21628 (GATHER_SCATTER_SF_MEM_MODE): New.
21629 (avx512pf_gatherpf<mode>df): Ditto.
21630 (*avx512pf_gatherpf<mode>df_mask): Ditto.
21631 (*avx512pf_scatterpf<mode>df): Ditto.
21632
21633 2014-01-27 Jakub Jelinek <jakub@redhat.com>
21634
21635 PR bootstrap/59934
21636 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
21637 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
21638 reached.
21639
21640 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
21641
21642 * common/config/arm/arm-common.c
21643 (arm_rewrite_mcpu): Handle multiple names.
21644 * config/arm/arm.h
21645 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
21646
21647 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
21648
21649 * gimple-builder.h (create_gimple_tmp): Delete.
21650
21651 2014-01-27 Christian Bruel <christian.bruel@st.com>
21652
21653 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
21654 words comparisons.
21655
21656 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
21657
21658 * config/pa/pa.md (call): Generate indirect long calls to non-local
21659 functions when outputing 32-bit code.
21660 (call_value): Likewise except for special call to buggy powf function.
21661
21662 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
21663 portable runtime and PIC indirect calls.
21664 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
21665 and PIC call sequences. Use ldo instead of blr to set return register
21666 in PIC call sequence.
21667
21668 2014-01-25 Walter Lee <walt@tilera.com>
21669
21670 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
21671 avoid clobbering a live register.
21672
21673 2014-01-25 Walter Lee <walt@tilera.com>
21674
21675 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
21676 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
21677 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
21678 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
21679
21680 2014-01-25 Walter Lee <walt@tilera.com>
21681
21682 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
21683 arguments on even registers.
21684 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
21685 STACK_BOUNDARY.
21686 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
21687 (BIGGEST_ALIGNMENT): Ditto.
21688 (BIGGEST_FIELD_ALIGNMENT): Ditto.
21689
21690 2014-01-25 Walter Lee <walt@tilera.com>
21691
21692 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
21693 insns before bundling.
21694 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
21695
21696 2014-01-25 Walter Lee <walt@tilera.com>
21697
21698 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
21699 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
21700 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
21701
21702 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
21703
21704 * config/mips/constraints.md (kl): Delete.
21705 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
21706 define expands, using...
21707 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
21708 instructions for MIPS16.
21709 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
21710 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
21711
21712 2014-01-25 Walter Lee <walt@tilera.com>
21713
21714 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
21715 (clzdi2): Ditto.
21716 (ffsdi2): Ditto.
21717
21718 2014-01-25 Walter Lee <walt@tilera.com>
21719
21720 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
21721 (TARGET_EXPAND_TO_RTL_HOOK): Define.
21722
21723 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
21724
21725 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
21726 Handle XOR.
21727
21728 2014-01-25 Jakub Jelinek <jakub@redhat.com>
21729
21730 * print-rtl.c (in_call_function_usage): New var.
21731 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
21732 EXPR_LIST mode as mode and not as reg note name.
21733
21734 PR middle-end/59561
21735 * cfgloopmanip.c (copy_loop_info): If
21736 loop->warned_aggressive_loop_optimizations, make sure
21737 the flag is set in target loop too.
21738
21739 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
21740
21741 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
21742 flag_cilkplus.
21743 * builtins.def: Likewise.
21744 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
21745 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
21746 * ira.c (ira_setup_eliminable_regset): Likewise.
21747 * omp-low.c (gate_expand_omp): Likewise.
21748 (execute_lower_omp): Likewise.
21749 (diagnose_sb_0): Likewise.
21750 (gate_diagnose_omp_blocks): Likewise.
21751 (simd_clone_clauses_extract): Likewise.
21752 (gate): Likewise.
21753
21754 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21755
21756 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
21757 correction for little endian...
21758 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
21759 here.
21760
21761 2014-01-24 Jeff Law <law@redhat.com>
21762
21763 PR tree-optimization/59919
21764 * tree-vrp.c (find_assert_locations_1): Do not register asserts
21765 for non-returning calls.
21766
21767 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
21768
21769 * common/config/aarch64/aarch64-common.c
21770 (aarch64_rewrite_mcpu): Handle multiple names.
21771 * config/aarch64/aarch64.h
21772 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
21773
21774 2014-01-24 Dodji Seketeli <dodji@redhat.com>
21775
21776 * input.c (add_file_to_cache_tab): Handle the case where fopen
21777 returns NULL.
21778
21779 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
21780
21781 PR target/59929
21782 * config/i386/i386.md (pushsf splitter): Get stack adjustment
21783 from push operand if code of push isn't PRE_DEC.
21784
21785 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21786
21787 PR target/59909
21788 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
21789 -mquad-memory-atomic. Update -mquad-memory documentation to say
21790 it is only used for non-atomic loads/stores.
21791
21792 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
21793 -mquad-memory or -mquad-memory-atomic switches.
21794
21795 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
21796 -mquad-memory-atomic to ISA 2.07 support.
21797
21798 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
21799 to separate support of normal quad word memory operations (ldq, stq)
21800 from the atomic quad word memory operations.
21801
21802 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
21803 support to separate non-atomic quad word operations from atomic
21804 quad word operations. Disable non-atomic quad word operations in
21805 little endian mode so that we don't have to swap words after the
21806 load and before the store.
21807 (quad_load_store_p): Add comment about atomic quad word support.
21808 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
21809 options printed with -mdebug=reg.
21810
21811 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
21812 -mquad-memory-atomic as the test for whether we have quad word
21813 atomic instructions.
21814 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
21815 or -mp8-vector are used, allow byte/half-word atomic operations.
21816
21817 * config/rs6000/sync.md (load_lockedti): Insure that the address
21818 is a proper indexed or indirect address for the lqarx instruction.
21819 On little endian systems, swap the hi/lo registers after the lqarx
21820 instruction.
21821 (load_lockedpti): Use indexed_or_indirect_operand predicate to
21822 insure the address is valid for the lqarx instruction.
21823 (store_conditionalti): Insure that the address is a proper indexed
21824 or indirect address for the stqcrx. instruction. On little endian
21825 systems, swap the hi/lo registers before doing the stqcrx.
21826 instruction.
21827 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
21828 insure the address is valid for the stqcrx. instruction.
21829
21830 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
21831 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
21832 type of quad memory support is available.
21833
21834 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
21835
21836 PR regression/59915
21837 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
21838 there is a danger of looping.
21839
21840 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
21841
21842 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
21843 force flag_ira_loop_pressure if set via command line.
21844
21845 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
21846
21847 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
21848 (ashr_simd): New builtin handling DI mode.
21849 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
21850 (aarch64_sshr_simddi): New match pattern.
21851 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
21852 (vshrd_n_s64): Likewise.
21853 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
21854
21855 2014-01-23 Nick Clifton <nickc@redhat.com>
21856
21857 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
21858 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
21859 favour of mcu specific scripts.
21860 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
21861 430x multilibs.
21862
21863 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
21864 Alex Velenko <Alex.Velenko@arm.com>
21865
21866 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
21867 (vaddv_s16): Likewise.
21868 (vaddv_s32): Likewise.
21869 (vaddv_u8): Likewise.
21870 (vaddv_u16): Likewise.
21871 (vaddv_u32): Likewise.
21872 (vaddvq_s8): Likewise.
21873 (vaddvq_s16): Likewise.
21874 (vaddvq_s32): Likewise.
21875 (vaddvq_s64): Likewise.
21876 (vaddvq_u8): Likewise.
21877 (vaddvq_u16): Likewise.
21878 (vaddvq_u32): Likewise.
21879 (vaddvq_u64): Likewise.
21880 (vaddv_f32): Likewise.
21881 (vaddvq_f32): Likewise.
21882 (vaddvq_f64): Likewise.
21883 (vmaxv_f32): Likewise.
21884 (vmaxv_s8): Likewise.
21885 (vmaxv_s16): Likewise.
21886 (vmaxv_s32): Likewise.
21887 (vmaxv_u8): Likewise.
21888 (vmaxv_u16): Likewise.
21889 (vmaxv_u32): Likewise.
21890 (vmaxvq_f32): Likewise.
21891 (vmaxvq_f64): Likewise.
21892 (vmaxvq_s8): Likewise.
21893 (vmaxvq_s16): Likewise.
21894 (vmaxvq_s32): Likewise.
21895 (vmaxvq_u8): Likewise.
21896 (vmaxvq_u16): Likewise.
21897 (vmaxvq_u32): Likewise.
21898 (vmaxnmv_f32): Likewise.
21899 (vmaxnmvq_f32): Likewise.
21900 (vmaxnmvq_f64): Likewise.
21901 (vminv_f32): Likewise.
21902 (vminv_s8): Likewise.
21903 (vminv_s16): Likewise.
21904 (vminv_s32): Likewise.
21905 (vminv_u8): Likewise.
21906 (vminv_u16): Likewise.
21907 (vminv_u32): Likewise.
21908 (vminvq_f32): Likewise.
21909 (vminvq_f64): Likewise.
21910 (vminvq_s8): Likewise.
21911 (vminvq_s16): Likewise.
21912 (vminvq_s32): Likewise.
21913 (vminvq_u8): Likewise.
21914 (vminvq_u16): Likewise.
21915 (vminvq_u32): Likewise.
21916 (vminnmv_f32): Likewise.
21917 (vminnmvq_f32): Likewise.
21918 (vminnmvq_f64): Likewise.
21919
21920 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
21921
21922 * config/aarch64/aarch64-simd.md
21923 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
21924 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
21925 (*aarch64_mul3_elt<mode>): Likewise.
21926 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
21927 (*aarch64_mul3_elt_to_64v2df): Likewise.
21928 (*aarch64_mla_elt<mode>): Likewise.
21929 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
21930 (*aarch64_mls_elt<mode>): Likewise.
21931 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
21932 (*aarch64_fma4_elt<mode>): Likewise.
21933 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
21934 (*aarch64_fma4_elt_to_64v2df): Likewise.
21935 (*aarch64_fnma4_elt<mode>): Likewise.
21936 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
21937 (*aarch64_fnma4_elt_to_64v2df): Likewise.
21938 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
21939 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
21940 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
21941 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
21942 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
21943 (aarch64_sqdmull_lane<mode>_internal): Likewise.
21944 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
21945
21946 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
21947
21948 * config/aarch64/aarch64-simd.md
21949 (aarch64_be_checked_get_lane<mode>): New define_expand.
21950 * config/aarch64/aarch64-simd-builtins.def
21951 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
21952 New builtin definition.
21953 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
21954 Use new safe be builtin.
21955
21956 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
21957
21958 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
21959 New define_insn.
21960 (aarch64_be_st1<mode>): Likewise.
21961 (aarch_ld1<VALL:mode>): Define_expand modified.
21962 (aarch_st1<VALL:mode>): Likewise.
21963 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
21964 (UNSPEC_ST1): Likewise.
21965
21966 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
21967
21968 * config/microblaze/microblaze.md: Add trap insn and attribute
21969
21970 2014-01-23 Dodji Seketeli <dodji@redhat.com>
21971
21972 PR preprocessor/58580
21973 * input.h (location_get_source_line): Take an additional line_size
21974 parameter.
21975 (void diagnostics_file_cache_fini): Declare new function.
21976 * input.c (struct fcache): New type.
21977 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
21978 New static constants.
21979 (diagnostic_file_cache_init, total_lines_num)
21980 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
21981 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
21982 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
21983 (get_next_line, read_next_line, goto_next_line, read_line_num):
21984 New static function definitions.
21985 (diagnostic_file_cache_fini): New function.
21986 (location_get_source_line): Take an additional output line_len
21987 parameter. Re-write using lookup_or_add_file_to_cache_tab and
21988 read_line_num.
21989 * diagnostic.c (diagnostic_finish): Call
21990 diagnostic_file_cache_fini.
21991 (adjust_line): Take an additional input parameter for the length
21992 of the line, rather than calculating it with strlen.
21993 (diagnostic_show_locus): Adjust the use of
21994 location_get_source_line and adjust_line with respect to their new
21995 signature. While displaying a line now, do not stop at the first
21996 null byte. Rather, display the zero byte as a space and keep
21997 going until we reach the size of the line.
21998 * Makefile.in: Add vec.o to OBJS-libcommon
21999
22000 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
22001 Ilya Tocar <ilya.tocar@intel.com>
22002
22003 * config/i386/avx512fintrin.h (_mm512_kmov): New.
22004 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
22005 (__builtin_ia32_kmov16): Ditto.
22006 * config/i386/i386.md (UNSPEC_KMOV): New.
22007 (kmovw): Ditto.
22008
22009 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
22010
22011 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
22012 (_mm512_storeu_si512): Ditto.
22013
22014 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
22015
22016 PR target/52125
22017 * rtl.h (get_referenced_operands): Declare.
22018 * recog.c (get_referenced_operands): New function.
22019 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
22020 operands have been referenced when recording LO_SUM references.
22021
22022 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
22023
22024 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
22025
22026 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
22027
22028 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
22029 Enable for generic and recent AMD targets.
22030
22031 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
22032
22033 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
22034 ARG_SIZE note when adjustment was eliminated.
22035
22036 2014-01-22 Jeff Law <law@redhat.com>
22037
22038 PR tree-optimization/59597
22039 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
22040 in file. Accept new argument REGISTERING and use it to modify
22041 dump output appropriately.
22042 (register_jump_thread): Corresponding changes.
22043 (mark_threaded_blocks): Reinstate code to cancel unprofitable
22044 thread paths involving joiner blocks. Add code to dump cancelled
22045 jump threading paths.
22046
22047 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
22048
22049 PR rtl-optimization/59477
22050 * lra-constraints.c (inherit_in_ebb): Process call for living hard
22051 regs. Update reloads_num and potential_reload_hard_regs for all insns.
22052
22053 2014-01-22 Tom Tromey <tromey@redhat.com>
22054
22055 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
22056 PARAMS.
22057 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
22058
22059 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
22060
22061 PR rtl-optimization/59896
22062 * lra-constraints.c (process_alt_operands): Check unused note for
22063 matched operands of insn with no output reloads.
22064
22065 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
22066
22067 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
22068 (mips_move_from_gpr_cost): Likewise.
22069
22070 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
22071
22072 PR rtl-optimization/59858
22073 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
22074 ira_class_hard_regs_num.
22075 (process_alt_operands): Increase reject for dying matched operand.
22076
22077 2014-01-21 Jakub Jelinek <jakub@redhat.com>
22078
22079 PR target/59003
22080 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
22081 smaller than size, perform several stores or loads and stores
22082 at dst + count - size to store or copy all of size bytes, rather
22083 than just last modesize bytes.
22084
22085 2014-01-20 DJ Delorie <dj@redhat.com>
22086
22087 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
22088 that CLOBBERs are REGs before propogating their values.
22089
22090 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
22091
22092 PR middle-end/59789
22093 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
22094 (cgraph_inline_failed_type): New function.
22095 * cgraph.h (DEFCIFCODE): Add type.
22096 (cgraph_inline_failed_type_t): New enum.
22097 (cgraph_inline_failed_type): New prototype.
22098 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
22099 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
22100 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
22101 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
22102 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
22103 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
22104 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
22105 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
22106 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
22107 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
22108 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
22109 OPTIMIZATION_MISMATCH.
22110 * tree-inline.c (expand_call_inline): Emit errors during
22111 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
22112
22113 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
22114
22115 PR target/59685
22116 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
22117 mode attribute in insn output.
22118
22119 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
22120
22121 * output.h (output_constant): Delete.
22122 * varasm.c (output_constant): Make private.
22123
22124 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
22125
22126 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
22127
22128 2014-01-20 Jakub Jelinek <jakub@redhat.com>
22129
22130 PR middle-end/59860
22131 * tree.h (fold_builtin_strcat): New prototype.
22132 * builtins.c (fold_builtin_strcat): No longer static. Add len
22133 argument, if non-NULL, don't call c_strlen. Optimize
22134 directly into __builtin_memcpy instead of __builtin_strcpy.
22135 (fold_builtin_2): Adjust fold_builtin_strcat caller.
22136 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
22137
22138 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
22139
22140 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
22141 for SImode_address_operand operands, having only a REG argument.
22142
22143 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
22144
22145 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
22146 loader name using mbig-endian.
22147 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
22148
22149 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
22150
22151 * doc/invoke.texi (-march): Clarify documentation for AArch64.
22152 (-mtune): Likewise.
22153 (-mcpu): Likewise.
22154
22155 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
22156
22157 * config/aarch64/aarch64-protos.h
22158 (aarch64_cannot_change_mode_class_ptr): Declare.
22159 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
22160 aarch64_cannot_change_mode_class_ptr): New.
22161 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
22162 backend hook aarch64_cannot_change_mode_class.
22163
22164 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
22165
22166 * common/config/aarch64/aarch64-common.c
22167 (aarch64_handle_option): Don't handle any option order logic here.
22168 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
22169 selected_cpu, warn on architecture version mismatch.
22170 (aarch64_override_options): Fix parsing order for option strings.
22171
22172 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22173 Iain Sandoe <iain@codesourcery.com>
22174
22175 PR bootstrap/59496
22176 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
22177 warning. Amend comment to reflect current functionality.
22178
22179 2014-01-20 Richard Biener <rguenther@suse.de>
22180
22181 PR middle-end/59860
22182 * builtins.c (fold_builtin_strcat): Remove case better handled
22183 by tree-ssa-strlen.c.
22184
22185 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
22186
22187 * config/aarch64/aarch64.opt
22188 (mcpu, march, mtune): Make case-insensitive.
22189
22190 2014-01-20 Jakub Jelinek <jakub@redhat.com>
22191
22192 PR target/59880
22193 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
22194 if operands[1] is a REG or ZERO_EXTEND of a REG.
22195
22196 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
22197
22198 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
22199
22200 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
22201
22202 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
22203 long non-pic millicode calls.
22204
22205 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22206
22207 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
22208
22209 2014-01-19 Kito Cheng <kito@0xlab.org>
22210
22211 * builtins.c (expand_movstr): Check movstr expand done or fail.
22212
22213 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
22214 H.J. Lu <hongjiu.lu@intel.com>
22215
22216 PR target/59379
22217 * config/i386/i386.md (*lea<mode>): Zero-extend return register
22218 to DImode for zero-extended addresses.
22219
22220 2014-01-19 Jakub Jelinek <jakub@redhat.com>
22221
22222 PR rtl-optimization/57763
22223 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
22224 on the new indirect jump_insn and increment LABEL_NUSES (label).
22225
22226 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
22227
22228 PR bootstrap/59580
22229 PR bootstrap/59583
22230 * config.gcc (x86_archs): New variable.
22231 (x86_64_archs): Likewise.
22232 (x86_cpus): Likewise.
22233 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
22234 --with-arch/--with-cpu= options.
22235 Support --with-arch=/--with-cpu={nehalem,westmere,
22236 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
22237
22238 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
22239
22240 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
22241 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
22242
22243 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
22244
22245 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
22246
22247 2014-01-18 Jakub Jelinek <jakub@redhat.com>
22248
22249 PR target/58944
22250 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
22251 clear cpp_get_options (parse_in)->warn_unused_macros for
22252 ix86_target_macros_internal with cpp_define.
22253
22254 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
22255
22256 * jump.c (delete_related_insns): Keep (use (insn))s.
22257 * reorg.c (redundant_insn): Check for barriers too.
22258
22259 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
22260
22261 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
22262
22263 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
22264
22265 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
22266 call to $$dyncall when TARGET_LONG_CALLS is true.
22267
22268 2014-01-17 Jeff Law <law@redhat.com>
22269
22270 * ree.c (combine_set_extension): Temporarily disable test for
22271 changing number of hard registers.
22272
22273 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
22274
22275 PR middle-end/58125
22276 * ipa-inline-analysis.c (inline_free_summary):
22277 Do not free summary of aliases.
22278
22279 2014-01-17 Jakub Jelinek <jakub@redhat.com>
22280
22281 PR middle-end/59706
22282 * gimplify.c (gimplify_expr): Use create_tmp_var
22283 instead of create_tmp_var_raw. If cond doesn't have
22284 integral type, don't add the IFN_ANNOTATE builtin at all.
22285
22286 2014-01-17 Martin Jambor <mjambor@suse.cz>
22287
22288 PR ipa/59736
22289 * ipa-cp.c (prev_edge_clone): New variable.
22290 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
22291 Also resize prev_edge_clone vector.
22292 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
22293 (ipcp_edge_removal_hook): New function.
22294 (ipcp_driver): Register ipcp_edge_removal_hook.
22295
22296 2014-01-17 Andrew Pinski <apinski@cavium.com>
22297 Steve Ellcey <sellcey@mips.com>
22298
22299 PR target/59462
22300 * config/mips/mips.c (mips_print_operand): Check operand mode instead
22301 of operator mode.
22302
22303 2014-01-17 Jeff Law <law@redhat.com>
22304
22305 PR middle-end/57904
22306 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
22307 so that pass_ccp runs first.
22308
22309 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
22310
22311 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
22312 (ix86_adjust_cost): Use !TARGET_XXX.
22313 (do_reorder_for_imul): Likewise.
22314 (swap_top_of_ready_list): Likewise.
22315 (ix86_sched_reorder): Likewise.
22316
22317 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
22318
22319 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22320 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
22321 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
22322 (intel_memset): New. Duplicate slm_memset.
22323 (intel_cost): New. Duplicate slm_cost.
22324 (m_INTEL): New macro.
22325 (processor_target_table): Add "intel".
22326 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
22327 with PROCESSOR_INTEL for "intel".
22328 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
22329 PROCESSOR_SILVERMONT.
22330 (ix86_issue_rate): Likewise.
22331 (ix86_adjust_cost): Likewise.
22332 (ia32_multipass_dfa_lookahead): Likewise.
22333 (swap_top_of_ready_list): Likewise.
22334 (ix86_sched_reorder): Likewise.
22335 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
22336 instead of TARGET_OPT_AGU.
22337 * config/i386/i386.h (TARGET_INTEL): New.
22338 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
22339 (processor_type): Add PROCESSOR_INTEL.
22340 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
22341 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
22342
22343 2014-01-17 Marek Polacek <polacek@redhat.com>
22344
22345 PR c/58346
22346 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
22347 size is zero.
22348
22349 2014-01-17 Richard Biener <rguenther@suse.de>
22350
22351 PR tree-optimization/46590
22352 * opts.c (default_options_table): Add entries for
22353 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
22354 all enabled at -O1 but not for -Og.
22355 * common.opt (fbranch-count-reg): Remove Init(1).
22356 (fmove-loop-invariants): Likewise.
22357 (ftree-pta): Likewise.
22358
22359 2014-01-17 Jakub Jelinek <jakub@redhat.com>
22360
22361 * config/i386/i386.c (ix86_data_alignment): For compatibility with
22362 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
22363 decls to at least the GCC 4.8 used alignments.
22364
22365 PR fortran/59440
22366 * tree-nested.c (convert_nonlocal_reference_stmt,
22367 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
22368 of GIMPLE_BIND stmts, adjust associated decls.
22369
22370 2014-01-17 Richard Biener <rguenther@suse.de>
22371
22372 PR tree-optimization/46590
22373 * vec.h (vec<>::bseach): New member function implementing
22374 binary search according to C89 bsearch.
22375 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
22376 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
22377 bitmap pointer again. Make accesses_in_loop a flat array.
22378 (mem_ref_obstack): New global.
22379 (outermost_indep_loop): Adjust for mem_ref->stored changes.
22380 (mark_ref_stored): Likewise.
22381 (ref_indep_loop_p_2): Likewise.
22382 (set_ref_stored_in_loop): New helper function.
22383 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
22384 (memref_free): Adjust.
22385 (record_mem_ref_loc): Simplify.
22386 (gather_mem_refs_stmt): Adjust.
22387 (sort_locs_in_loop_postorder_cmp): New function.
22388 (analyze_memory_references): Sort accesses_in_loop after
22389 loop postorder number.
22390 (find_ref_loc_in_loop_cmp): New function.
22391 (for_all_locs_in_loop): Find relevant cluster of locs in
22392 accesses_in_loop and iterate without recursion.
22393 (execute_sm): Avoid uninit warning.
22394 (struct ref_always_accessed): Simplify.
22395 (ref_always_accessed::operator ()): Likewise.
22396 (ref_always_accessed_p): Likewise.
22397 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
22398 loop postorder numbers here.
22399 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
22400 numbers.
22401
22402 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
22403
22404 PR c++/57945
22405 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
22406 on decls for which assemble_alias has been called.
22407
22408 2014-01-17 Nick Clifton <nickc@redhat.com>
22409
22410 * config/msp430/msp430.opt: (mcpu): New option.
22411 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
22412 (msp430_option_override): Parse target_cpu. If the MCU name
22413 matches a generic string, clear target_mcu.
22414 (msp430_attr): Allow numeric interrupt values up to 63.
22415 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
22416 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
22417 option.
22418 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
22419 Add mcpu matches.
22420 * config/msp430/msp430.md (popm): Use %J rather than %I.
22421 (addsi3): Use msp430_nonimmediate_operand for operand 2.
22422 (addhi_cy_i): Use immediate_operand for operand 2.
22423 * doc/invoke.texi: Document -mcpu option.
22424
22425 2014-01-17 Richard Biener <rguenther@suse.de>
22426
22427 PR rtl-optimization/38518
22428 * df.h (df_analyze_loop): Declare.
22429 * df-core.c: Include cfgloop.h.
22430 (df_analyze_1): Split out main part of df_analyze.
22431 (df_analyze): Adjust.
22432 (loop_inverted_post_order_compute): New function.
22433 (loop_post_order_compute): Likewise.
22434 (df_analyze_loop): New function avoiding whole-function
22435 postorder computes.
22436 * loop-invariant.c (find_defs): Use df_analyze_loop.
22437 (find_invariants): Adjust.
22438 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
22439
22440 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
22441
22442 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
22443 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
22444
22445 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
22446
22447 * ipa-ref.c (ipa_remove_stmt_references): Fix references
22448 traversal when removing references.
22449
22450 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
22451
22452 PR ipa/59775
22453 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
22454
22455 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
22456
22457 PR middle-end/56791
22458 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
22459 pushing a reload for an autoinc when we had previously reloaded an
22460 inner part of the address.
22461
22462 2014-01-16 Jakub Jelinek <jakub@redhat.com>
22463
22464 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
22465 field.
22466 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
22467 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
22468 when not giving up or versioning for alias only because of
22469 loop->safelen.
22470 (vect_analyze_data_ref_dependences): Set to true.
22471 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
22472 is a GIMPLE_PHI.
22473 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
22474 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
22475 to the condition.
22476
22477 PR middle-end/58344
22478 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
22479
22480 PR target/59839
22481 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
22482 operand 0 predicate for gathers, use a new pseudo as subtarget.
22483
22484 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
22485
22486 PR middle-end/59609
22487 * lra-constraints.c (process_alt_operands): Add printing debug info.
22488 Check absence of input/output reloads for matched operands too.
22489
22490 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
22491
22492 PR rtl-optimization/59835
22493 * ira.c (ira_init_register_move_cost): Increase cost for
22494 impossible modes.
22495
22496 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
22497
22498 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
22499
22500 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
22501
22502 PR target/59780
22503 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
22504 non-register objects. Use gen_(high/low)part more consistently.
22505 Fix assertions.
22506
22507 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
22508
22509 PR target/59844
22510 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
22511 endian support, remove tests for WORDS_BIG_ENDIAN.
22512 (p8_mfvsrd_3_<mode>): Likewise.
22513 (reload_gpr_from_vsx<mode>): Likewise.
22514 (reload_gpr_from_vsxsf): Likewise.
22515 (p8_mfvsrd_4_disf): Likewise.
22516
22517 2014-01-16 Richard Biener <rguenther@suse.de>
22518
22519 PR rtl-optimization/46590
22520 * lcm.c (compute_antinout_edge): Use postorder iteration.
22521 (compute_laterin): Use inverted postorder iteration.
22522
22523 2014-01-16 Nick Clifton <nickc@redhat.com>
22524
22525 PR middle-end/28865
22526 * varasm.c (output_constant): Return the number of bytes actually
22527 emitted.
22528 (output_constructor_array_range): Update the field size with the
22529 number of bytes emitted by output_constant.
22530 (output_constructor_regular_field): Likewise. Also do not
22531 complain if the total number of bytes emitted is now greater
22532 than the expected fieldpos.
22533 * output.h (output_constant): Update prototype and descriptive comment.
22534
22535 2014-01-16 Marek Polacek <polacek@redhat.com>
22536
22537 PR middle-end/59827
22538 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
22539 it is error_mark_node.
22540
22541 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
22542
22543 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
22544 VALID_AVX256_REG_OR_OI_MODE.
22545
22546 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
22547
22548 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
22549 current procedure should be profiled.
22550
22551 2014-01-15 Andrew Pinski <apinski@cavium.com>
22552
22553 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
22554 of moving from/to the STACK_REG register class.
22555
22556 2014-01-15 Richard Henderson <rth@redhat.com>
22557
22558 PR debug/54694
22559 * reginfo.c (global_regs_decl): Globalize.
22560 * rtl.h (global_regs_decl): Declare.
22561 * ira.c (do_reload): Diagnose frame_pointer_needed and it
22562 reserved via global_regs.
22563
22564 2014-01-15 Teresa Johnson <tejohnson@google.com>
22565
22566 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
22567
22568 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22569
22570 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
22571 and vmulosh rather than call gen_vec_widen_smult_*.
22572 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
22573 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
22574 (vec_widen_smult_even_v16qi): Likewise.
22575 (vec_widen_umult_even_v8hi): Likewise.
22576 (vec_widen_smult_even_v8hi): Likewise.
22577 (vec_widen_umult_odd_v16qi): Likewise.
22578 (vec_widen_smult_odd_v16qi): Likewise.
22579 (vec_widen_umult_odd_v8hi): Likewise.
22580 (vec_widen_smult_odd_v8hi): Likewise.
22581 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
22582 vmuloub rather than call gen_vec_widen_umult_*.
22583 (vec_widen_umult_lo_v16qi): Likewise.
22584 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
22585 vmulosb rather than call gen_vec_widen_smult_*.
22586 (vec_widen_smult_lo_v16qi): Likewise.
22587 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
22588 rather than call gen_vec_widen_umult_*.
22589 (vec_widen_umult_lo_v8hi): Likewise.
22590 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
22591 rather than call gen_vec_widen_smult_*.
22592 (vec_widen_smult_lo_v8hi): Likewise.
22593
22594 2014-01-15 Jeff Law <law@redhat.com>
22595
22596 PR tree-optimization/59747
22597 * ree.c (find_and_remove_re): Properly handle case where a second
22598 eliminated extension requires widening a copy created for elimination
22599 of a prior extension.
22600 (combine_set_extension): Ensure that the number of hard regs needed
22601 for a destination register does not change when we widen it.
22602
22603 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
22604
22605 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
22606 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
22607 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
22608 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
22609 (avr-*-rtems*): Likewise.
22610 (bfin*-rtems*): Likewise.
22611 (moxie-*-rtems*): Likewise.
22612 (h8300-*-rtems*): Likewise.
22613 (i[34567]86-*-rtems*): Likewise.
22614 (lm32-*-rtems*): Likewise.
22615 (m32r-*-rtems*): Likewise.
22616 (m68k-*-rtems*): Likewise.
22617 (microblaze*-*-rtems*): Likewise.
22618 (mips*-*-rtems*): Likewise.
22619 (powerpc-*-rtems*): Likewise.
22620 (sh-*-rtems*): Likewise.
22621 (sparc-*-rtems*): Likewise.
22622 (sparc64-*-rtems*): Likewise.
22623 (v850-*-rtems*): Likewise.
22624 (m32c-*-rtems*): Likewise.
22625
22626 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
22627
22628 PR rtl-optimization/59511
22629 * ira.c (ira_init_register_move_cost): Use memory costs for some
22630 cases of register move cost calculations.
22631 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
22632 instead of BB frequency.
22633 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
22634 * lra-assigns.c (find_hard_regno_for): Ditto.
22635
22636 2014-01-15 Richard Biener <rguenther@suse.de>
22637
22638 PR tree-optimization/59822
22639 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
22640 (vectorizable_load): Use it to hoist defs of uses of invariant
22641 loads out of the loop.
22642
22643 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
22644 Kugan Vivekanandarajah <kuganv@linaro.org>
22645
22646 PR target/59695
22647 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
22648 truncation.
22649
22650 2014-01-15 Richard Biener <rguenther@suse.de>
22651
22652 PR rtl-optimization/59802
22653 * lcm.c (compute_available): Use inverted postorder to seed
22654 the initial worklist.
22655
22656 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22657
22658 PR target/59803
22659 * config/s390/s390.c (s390_preferred_reload_class): Don't return
22660 ADDR_REGS for invalid symrefs in non-PIC code.
22661
22662 2014-01-15 Jakub Jelinek <jakub@redhat.com>
22663
22664 PR other/58712
22665 * builtins.c (determine_block_size): Initialize *probable_max_size
22666 even if len_rtx is CONST_INT.
22667
22668 2014-01-14 Andrew Pinski <apinski@cavium.com>
22669
22670 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
22671 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
22672 (cortexa53_tunings): Likewise.
22673 (aarch64_sched_issue_rate): New function.
22674 (TARGET_SCHED_ISSUE_RATE): Define.
22675
22676 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
22677
22678 * ira-costs.c (find_costs_and_classes): Add missed
22679 ira_init_register_move_cost_if_necessary.
22680
22681 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
22682
22683 PR target/59787
22684 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
22685
22686 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
22687
22688 PR target/59794
22689 * config/i386/i386.c (type_natural_mode): Add a bool parameter
22690 to indicate if type is used for function return value. Warn ABI
22691 change if the vector mode isn't available for function return value.
22692 (ix86_function_arg_advance): Pass false to type_natural_mode.
22693 (ix86_function_arg): Likewise.
22694 (ix86_gimplify_va_arg): Likewise.
22695 (function_arg_32): Don't warn ABI change.
22696 (ix86_function_value): Pass true to type_natural_mode.
22697 (ix86_return_in_memory): Likewise.
22698 (ix86_struct_value_rtx): Removed.
22699 (TARGET_STRUCT_VALUE_RTX): Likewise.
22700
22701 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22702
22703 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
22704 converting a conditional jump into a conditional return.
22705
22706 2014-01-14 Richard Biener <rguenther@suse.de>
22707
22708 PR tree-optimization/58921
22709 PR tree-optimization/59006
22710 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
22711 hoisting invariant stmts.
22712 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
22713 invariant loads on the preheader edge if possible.
22714
22715 2014-01-14 Joey Ye <joey.ye@arm.com>
22716
22717 * doc/plugin.texi (Building GCC plugins): Update to C++.
22718
22719 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
22720
22721 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
22722 (_mm_rcp28_round_ss): Ditto.
22723 (_mm_rsqrt28_round_sd): Ditto.
22724 (_mm_rsqrt28_round_ss): Ditto.
22725 (_mm_rcp28_sd): Ditto.
22726 (_mm_rcp28_ss): Ditto.
22727 (_mm_rsqrt28_sd): Ditto.
22728 (_mm_rsqrt28_ss): Ditto.
22729 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
22730 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
22731 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
22732 (IX86_BUILTIN_RCP28SD): Ditto.
22733 (IX86_BUILTIN_RCP28SS): Ditto.
22734 (IX86_BUILTIN_RSQRT28SD): Ditto.
22735 (IX86_BUILTIN_RSQRT28SS): Ditto.
22736 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
22737 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
22738 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
22739 (ix86_expand_special_args_builtin): Expand new FTYPE.
22740 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
22741 (srcp14<mode>): Make insn unary.
22742 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
22743 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
22744 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
22745 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
22746 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
22747 Fix rounding: make it SAE only.
22748 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22749 Ditto.
22750 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22751 Ditto.
22752 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
22753 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
22754 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
22755 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
22756 (round_saeonly_mask_scalar_operand4): Ditto.
22757 (round_saeonly_mask_scalar_op3): Ditto.
22758 (round_saeonly_mask_scalar_op4): Ditto.
22759
22760 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22761
22762 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22763 Implement -maltivec=be for vec_insert and vec_extract.
22764
22765 2014-01-10 DJ Delorie <dj@redhat.com>
22766
22767 * config/msp430/msp430.md (call_internal): Don't allow memory
22768 references with SP as the base register.
22769 (call_value_internal): Likewise.
22770 * config/msp430/constraints.md (Yc): New. For memory references
22771 that don't use SP as a base register.
22772
22773 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
22774 "an integer without a # prefix"
22775 * config/msp430/msp430.md (epilogue_helper): Use it.
22776
22777 2014-01-13 Jakub Jelinek <jakub@redhat.com>
22778
22779 PR target/59617
22780 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
22781 AVX512F gather builtins.
22782 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
22783 on gather decls with INTEGER_TYPE masktype.
22784 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
22785 directly into the builtin rather than hoisting it before loop.
22786
22787 PR tree-optimization/59387
22788 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
22789 (scev_const_prop): If folded_casts and type has undefined overflow,
22790 use force_gimple_operand instead of force_gimple_operand_gsi and
22791 for each added stmt if it is assign with
22792 arith_code_with_undefined_signed_overflow, call
22793 rewrite_to_defined_overflow.
22794 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
22795 gimple-fold.h instead.
22796 (arith_code_with_undefined_signed_overflow,
22797 rewrite_to_defined_overflow): Moved to ...
22798 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
22799 rewrite_to_defined_overflow): ... here. No longer static.
22800 Include gimplify-me.h.
22801 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
22802 rewrite_to_defined_overflow): New prototypes.
22803
22804 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22805
22806 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
22807
22808 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
22809
22810 * builtins.c (get_object_alignment_2): Minor tweak.
22811 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
22812
22813 2014-01-13 Christian Bruel <christian.bruel@st.com>
22814
22815 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
22816 optimized non constant lengths.
22817
22818 2014-01-13 Jakub Jelinek <jakub@redhat.com>
22819
22820 PR libgomp/59194
22821 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
22822 load as __atomic_load_N if possible.
22823
22824 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
22825
22826 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
22827 target parameter.
22828 (rs6000_expand_builtin): Adjust call.
22829
22830 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
22831
22832 PR target/58115
22833 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
22834 * config/rs6000/rs6000.c: Include target-globals.h.
22835 (rs6000_set_current_function): Instead of doing target_reinit
22836 unconditionally, use save_target_globals_default_opts and
22837 restore_target_globals.
22838
22839 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
22840 FPSCR.
22841 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
22842 (rs6000_expand_builtin): Handle mffs and mtfsf.
22843 (rs6000_init_builtins): Define mffs and mtfsf.
22844 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
22845 (rs6000_mffs): New pattern.
22846 (rs6000_mtfsf): New pattern.
22847
22848 2014-01-11 Bin Cheng <bin.cheng@arm.com>
22849
22850 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
22851 Start narrowing with START. Apply candidate-use pair
22852 and check overall cost in narrowing.
22853 (iv_ca_prune): Pass new argument.
22854
22855 2014-01-10 Jeff Law <law@redhat.com>
22856
22857 PR middle-end/59743
22858 * ree.c (combine_reaching_defs): Ensure the defining statement
22859 occurs before the extension when optimizing extensions with
22860 different source and destination hard registers.
22861
22862 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
22863
22864 PR ipa/58585
22865 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
22866 vtables into the type inheritance graph.
22867
22868 2014-01-10 Jakub Jelinek <jakub@redhat.com>
22869
22870 PR rtl-optimization/59754
22871 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
22872 modes in the REGNO != REGNO case.
22873
22874 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22875
22876 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
22877
22878 2014-01-10 Jakub Jelinek <jakub@redhat.com>
22879
22880 PR tree-optimization/59745
22881 * tree-predcom.c (tree_predictive_commoning_loop): Call
22882 free_affine_expand_cache if giving up because components is NULL.
22883
22884 * target-globals.c (save_target_globals): Allocate < 4KB structs using
22885 GC in payload of target_globals struct instead of allocating them on
22886 the heap and the larger structs separately using GC.
22887 * target-globals.h (struct target_globals): Make regs, hard_regs,
22888 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
22889 of GTY((skip)) and change type to void *.
22890 (reset_target_globals): Cast loads from those fields to corresponding
22891 types.
22892
22893 2014-01-10 Steve Ellcey <sellcey@mips.com>
22894
22895 PR plugins/59335
22896 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
22897 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
22898 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
22899
22900 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
22901
22902 PR target/59744
22903 * aarch64-modes.def (CC_Zmode): New flags mode.
22904 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
22905 represents an equality.
22906 (aarch64_get_condition_code): Handle CC_Zmode.
22907 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
22908
22909 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22910
22911 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
22912 extraction in good case.
22913
22914 2014-01-10 Richard Biener <rguenther@suse.de>
22915
22916 PR tree-optimization/59374
22917 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
22918 checking after SLP discovery. Mark stmts not participating
22919 in any SLP instance properly.
22920
22921 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22922
22923 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
22924 when handling a SET rtx.
22925
22926 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22927
22928 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
22929 (cortex-a57): Likewise.
22930 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
22931
22932 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22933
22934 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
22935 non-iwmmxt builtins.
22936
22937 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
22938
22939 PR ipa/58252
22940 PR ipa/59226
22941 * ipa-devirt.c record_target_from_binfo): Take as argument
22942 stack of binfos and lookup matching one for virtual inheritance.
22943 (possible_polymorphic_call_targets_1): Update.
22944
22945 2014-01-10 Huacai Chen <chenhc@lemote.com>
22946
22947 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
22948 kernel strings for Loongson-2E/2F/3A.
22949
22950 2014-01-10 Jakub Jelinek <jakub@redhat.com>
22951
22952 PR middle-end/59670
22953 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
22954 is_gimple_call before calling gimple_call_internal_p.
22955
22956 2014-01-09 Steve Ellcey <sellcey@mips.com>
22957
22958 * Makefile.in (TREE_FLOW_H): Remove.
22959 (TREE_SSA_H): Add file names from tree-flow.h.
22960 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
22961 * tree.h: Remove tree-flow.h reference.
22962 * hash-table.h: Remove tree-flow.h reference.
22963 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
22964 reference with tree-ssa-loop.h.
22965
22966 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22967
22968 * doc/invoke.texi: Add -maltivec={be,le} options, and document
22969 default element-order behavior for -maltivec.
22970 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
22971 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
22972 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
22973 when targeting big endian, at least for now.
22974 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
22975
22976 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22977
22978 PR middle-end/47735
22979 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
22980 var satisfies use_register_for_decl, just take into account type
22981 alignment, rather than decl alignment.
22982
22983 PR tree-optimization/59622
22984 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
22985 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
22986 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
22987 Don't devirtualize for inplace at all. For targets.length () == 1,
22988 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
22989
22990 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
22991
22992 * config/i386/i386.md (cpu): Remove the unused btver1.
22993
22994 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
22995
22996 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
22997
22998 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22999
23000 PR target/58115
23001 * tree-core.h (struct target_globals): New forward declaration.
23002 (struct tree_target_option): Add globals field.
23003 * tree.h (TREE_TARGET_GLOBALS): Define.
23004 (prepare_target_option_nodes_for_pch): New prototype.
23005 * target-globals.h (struct target_globals): Define even if
23006 !SWITCHABLE_TARGET.
23007 * tree.c (prepare_target_option_node_for_pch,
23008 prepare_target_option_nodes_for_pch): New functions.
23009 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
23010 * config/i386/i386.c: Include target-globals.h.
23011 (ix86_set_current_function): Instead of doing target_reinit
23012 unconditionally, use save_target_globals_default_opts and
23013 restore_target_globals.
23014
23015 2014-01-09 Richard Biener <rguenther@suse.de>
23016
23017 PR tree-optimization/59715
23018 * tree-cfg.h (split_critical_edges): Declare.
23019 * tree-cfg.c (split_critical_edges): Export.
23020 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
23021
23022 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
23023
23024 * cfgexpand.c (expand_stack_vars): Optionally disable
23025 asan stack protection.
23026 (expand_used_vars): Likewise.
23027 (partition_stack_vars): Likewise.
23028 * asan.c (asan_emit_stack_protection): Optionally disable
23029 after return stack usage.
23030 (instrument_derefs): Optionally disable memory access instrumentation.
23031 (instrument_builtin_call): Likewise.
23032 (instrument_strlen_call): Likewise.
23033 (asan_protect_global): Optionally disable global variables protection.
23034 * doc/invoke.texi: Added doc for new options.
23035 * params.def: Added new options.
23036 * params.h: Likewise.
23037
23038 2014-01-09 Jakub Jelinek <jakub@redhat.com>
23039
23040 PR rtl-optimization/59724
23041 * ifcvt.c (cond_exec_process_if_block): Don't call
23042 flow_find_head_matching_sequence with 0 longest_match.
23043 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
23044 non-active insns if !stop_after.
23045 (try_head_merge_bb): Revert 2014-01-07 changes.
23046
23047 2014-01-08 Jeff Law <law@redhat.com>
23048
23049 * ree.c (get_sub_rtx): New function, extracted from...
23050 (merge_def_and_ext): Here.
23051 (combine_reaching_defs): Use get_sub_rtx.
23052
23053 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
23054
23055 * cgraph.h (varpool_variable_node): Do not choke on null node.
23056
23057 2014-01-08 Catherine Moore <clm@codesourcery.com>
23058
23059 * config/mips/mips.md (simple_return): Attempt to use JRC
23060 for microMIPS.
23061 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
23062
23063 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
23064
23065 PR rtl-optimization/59137
23066 * reorg.c (steal_delay_list_from_target): Call update_block for
23067 elided insns.
23068 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
23069
23070 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23071
23072 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
23073 two duplicate entries.
23074
23075 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
23076
23077 Revert:
23078 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
23079
23080 * config/mips/mips.c (mips_truncated_op_cost): New function.
23081 (mips_rtx_costs): Adjust test for BADDU.
23082 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
23083
23084 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
23085
23086 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
23087 (*baddu_si): ...this new pattern.
23088
23089 2014-01-08 Jakub Jelinek <jakub@redhat.com>
23090
23091 PR ipa/59722
23092 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
23093
23094 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
23095
23096 PR middle-end/57748
23097 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
23098 inner_reference_p.
23099 (expand_expr, expand_normal): Adjust.
23100 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
23101 inner_reference_p. Use inner_reference_p to expand inner references.
23102 (store_expr): Adjust.
23103 * cfgexpand.c (expand_call_stmt): Adjust.
23104
23105 2014-01-08 Rong Xu <xur@google.com>
23106
23107 * gcov-io.c (gcov_var): Move from gcov-io.h.
23108 (gcov_position): Ditto.
23109 (gcov_is_error): Ditto.
23110 (gcov_rewrite): Ditto.
23111 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
23112 only part to libgcc/libgcov.h.
23113
23114 2014-01-08 Marek Polacek <polacek@redhat.com>
23115
23116 PR middle-end/59669
23117 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
23118
23119 2014-01-08 Marek Polacek <polacek@redhat.com>
23120
23121 PR sanitizer/59667
23122 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
23123
23124 2014-01-08 Jakub Jelinek <jakub@redhat.com>
23125
23126 PR rtl-optimization/59649
23127 * stor-layout.c (get_mode_bounds): For BImode return
23128 0 and STORE_FLAG_VALUE.
23129
23130 2014-01-08 Richard Biener <rguenther@suse.de>
23131
23132 PR middle-end/59630
23133 * gimple.h (is_gimple_builtin_call): Remove.
23134 (gimple_builtin_call_types_compatible_p): New.
23135 (gimple_call_builtin_p): New overload.
23136 * gimple.c (is_gimple_builtin_call): Remove.
23137 (validate_call): Rename to ...
23138 (gimple_builtin_call_types_compatible_p): ... this and export. Also
23139 check return types.
23140 (validate_type): New static function.
23141 (gimple_call_builtin_p): New overload and adjust.
23142 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
23143 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
23144 (gimple_fold_stmt_to_constant_1): Likewise.
23145 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
23146
23147 2014-01-08 Richard Biener <rguenther@suse.de>
23148
23149 PR middle-end/59471
23150 * gimplify.c (gimplify_expr): Gimplify register-register type
23151 VIEW_CONVERT_EXPRs to separate stmts.
23152
23153 2014-01-07 Jeff Law <law@redhat.com>
23154
23155 PR middle-end/53623
23156 * ree.c (combine_set_extension): Handle case where source
23157 and destination registers in an extension insn are different.
23158 (combine_reaching_defs): Allow source and destination registers
23159 in extension to be different under limited circumstances.
23160 (add_removable_extension): Remove restriction that the
23161 source and destination registers in the extension are the same.
23162 (find_and_remove_re): Emit a copy from the extension's
23163 destination to its source after the defining insn if
23164 the source and destination registers are different.
23165
23166 PR middle-end/59285
23167 * ifcvt.c (merge_if_block): If we are merging a block with more than
23168 one successor with a block with no successors, remove any BARRIER
23169 after the second block.
23170
23171 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
23172
23173 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
23174
23175 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
23176
23177 PR target/59652
23178 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
23179 for 14-bit register offsets when INT14_OK_STRICT is false.
23180
23181 2014-01-07 Roland Stigge <stigge@antcom.de>
23182 Michael Meissner <meissner@linux.vnet.ibm.com>
23183
23184 PR 57386/target
23185 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
23186 Only check TFmode for SPE constants. Don't check TImode or TDmode.
23187
23188 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
23189
23190 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
23191 -mcpu.
23192
23193 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
23194
23195 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
23196 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
23197 rtx is const0_rtx or not.
23198
23199 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
23200
23201 PR target/58115
23202 * target-globals.c (save_target_globals): Remove this_fn_optab
23203 handling.
23204 * toplev.c: Include optabs.h.
23205 (target_reinit): Temporarily restore the global options if another
23206 set of options are in force.
23207
23208 2014-01-07 Jakub Jelinek <jakub@redhat.com>
23209
23210 PR rtl-optimization/58668
23211 * cfgcleanup.c (flow_find_cross_jump): Don't count
23212 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
23213 to determine what is counted.
23214 (flow_find_head_matching_sequence): Use active_insn_p to determine
23215 what is counted.
23216 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
23217 counting change.
23218 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
23219 determine what is counted.
23220
23221 PR tree-optimization/59643
23222 * tree-predcom.c (split_data_refs_to_components): If one dr is
23223 read and one write, determine_offset fails and the write isn't
23224 in the bad component, just put the read into the bad component.
23225
23226 2014-01-07 Mike Stump <mikestump@comcast.net>
23227 Jakub Jelinek <jakub@redhat.com>
23228
23229 PR pch/59436
23230 * tree-core.h (struct tree_optimization_option): Change optabs
23231 type from unsigned char * to void *.
23232 * optabs.c (init_tree_optimization_optabs): Adjust
23233 TREE_OPTIMIZATION_OPTABS initialization.
23234
23235 2014-01-06 Jakub Jelinek <jakub@redhat.com>
23236
23237 PR target/59644
23238 * config/i386/i386.h (struct machine_function): Add
23239 no_drap_save_restore field.
23240 * config/i386/i386.c (ix86_save_reg): Use
23241 !cfun->machine->no_drap_save_restore instead of
23242 crtl->stack_realign_needed.
23243 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
23244 this function clears frame_pointer_needed. Set
23245 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
23246 and DRAP reg is needed.
23247
23248 2014-01-06 Marek Polacek <polacek@redhat.com>
23249
23250 PR c/57773
23251 * doc/implement-c.texi: Mention that other integer types are
23252 permitted as bit-field types in strictly conforming mode.
23253
23254 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
23255
23256 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
23257 is newly allocated.
23258
23259 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
23260
23261 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
23262
23263 2014-01-06 Martin Jambor <mjambor@suse.cz>
23264
23265 PR ipa/59008
23266 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
23267 to int.
23268 * ipa-prop.c (ipa_print_node_params): Fix indentation.
23269
23270 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
23271
23272 PR debug/59350
23273 PR debug/59510
23274 * var-tracking.c (add_stores): Preserve the value of the source even if
23275 we don't record the store.
23276
23277 2014-01-06 Terry Guo <terry.guo@arm.com>
23278
23279 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
23280
23281 2014-01-05 Iain Sandoe <iain@codesourcery.com>
23282
23283 PR bootstrap/59541
23284 * config/darwin.c (darwin_function_section): Adjust return values to
23285 correspond to optimisation changes made in r206070.
23286
23287 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
23288
23289 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
23290 from prefetch_block tune setting.
23291 (nocona_cost): Correct size of prefetch block to 64.
23292
23293 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
23294
23295 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
23296 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
23297 used to save the static chain register in the computation of the offset
23298 from which the FP registers need to be restored.
23299
23300 2014-01-04 Jakub Jelinek <jakub@redhat.com>
23301
23302 PR tree-optimization/59519
23303 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
23304 ICE if get_current_def (current_new_name) is already non-NULL, as long
23305 as it is a phi result of some other phi in *new_exit_bb that has
23306 the same argument.
23307
23308 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
23309 or vmovdqu* for misaligned_operand.
23310 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
23311 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
23312 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
23313 aligned_mem for AVX512F masked aligned load and store builtins and for
23314 non-temporal moves.
23315
23316 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
23317
23318 PR tree-optimization/59651
23319 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
23320 Address range for negative step should be added by TYPE_SIZE_UNIT.
23321
23322 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
23323
23324 * config/m68k/m68k.c (handle_move_double): Handle pushes with
23325 overlapping registers also for registers other than the stack pointer.
23326
23327 2014-01-03 Marek Polacek <polacek@redhat.com>
23328
23329 PR other/59661
23330 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
23331 __builtin_FILE.
23332
23333 2014-01-03 Jakub Jelinek <jakub@redhat.com>
23334
23335 PR target/59625
23336 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
23337 asm goto as jump.
23338
23339 * config/i386/i386.md (MODE_SIZE): New mode attribute.
23340 (push splitter): Use <P:MODE_SIZE> instead of
23341 GET_MODE_SIZE (<P:MODE>mode).
23342 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
23343 (mov -1, reg peephole2): Likewise.
23344 * config/i386/sse.md (*mov<mode>_internal,
23345 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
23346 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
23347 *<code><mode>3, *andnot<mode>3<mask_name>,
23348 <mask_codefor><code><mode>3<mask_name>): Likewise.
23349 * config/i386/subst.md (mask_mode512bit_condition,
23350 sd_mask_mode512bit_condition): Likewise.
23351
23352 2014-01-02 Xinliang David Li <davidxl@google.com>
23353
23354 PR tree-optimization/59303
23355 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
23356 (dump_predicates): Better output format.
23357 (pred_equal_p): New function.
23358 (is_neq_relop_p): Ditto.
23359 (is_neq_zero_form_p): Ditto.
23360 (pred_expr_equal_p): Ditto.
23361 (pred_neg_p): Ditto.
23362 (simplify_pred): Ditto.
23363 (simplify_preds_2): Ditto.
23364 (simplify_preds_3): Ditto.
23365 (simplify_preds_4): Ditto.
23366 (simplify_preds): Ditto.
23367 (push_pred): Ditto.
23368 (push_to_worklist): Ditto.
23369 (get_pred_info_from_cmp): Ditto.
23370 (is_degenerated_phi): Ditto.
23371 (normalize_one_pred_1): Ditto.
23372 (normalize_one_pred): Ditto.
23373 (normalize_one_pred_chain): Ditto.
23374 (normalize_preds): Ditto.
23375 (normalize_cond_1): Remove function.
23376 (normalize_cond): Ditto.
23377 (is_gcond_subset_of): Ditto.
23378 (is_subset_of_any): Ditto.
23379 (is_or_set_subset_of): Ditto.
23380 (is_and_set_subset_of): Ditto.
23381 (is_norm_cond_subset_of): Ditto.
23382 (pred_chain_length_cmp): Ditto.
23383 (convert_control_dep_chain_into_preds): Type change.
23384 (find_predicates): Ditto.
23385 (find_def_preds): Ditto.
23386 (destroy_predicates_vecs): Ditto.
23387 (find_matching_predicates_in_rest_chains): Ditto.
23388 (use_pred_not_overlap_with_undef_path_pred): Ditto.
23389 (is_pred_expr_subset): Ditto.
23390 (is_pred_chain_subset_of): Ditto.
23391 (is_included_in): Ditto.
23392 (is_superset_of): Ditto.
23393
23394 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
23395
23396 Update copyright years.
23397
23398 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
23399
23400 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
23401 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
23402 config/arc/arc.md, config/arc/arc.opt,
23403 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
23404 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
23405 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
23406 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
23407 config/linux-protos.h, config/linux.c, config/winnt-c.c,
23408 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
23409 vtable-verify.c, vtable-verify.h: Use the standard form for the
23410 copyright notice.
23411
23412 2014-01-02 Tobias Burnus <burnus@net-b.de>
23413
23414 * gcc.c (process_command): Update copyright notice dates.
23415 * gcov-dump.c: Ditto.
23416 * gcov.c: Ditto.
23417 * doc/cpp.texi: Bump @copying's copyright year.
23418 * doc/cppinternals.texi: Ditto.
23419 * doc/gcc.texi: Ditto.
23420 * doc/gccint.texi: Ditto.
23421 * doc/gcov.texi: Ditto.
23422 * doc/install.texi: Ditto.
23423 * doc/invoke.texi: Ditto.
23424
23425 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23426
23427 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
23428
23429 2014-01-01 Jakub Jelinek <jakub@redhat.com>
23430
23431 * config/i386/sse.md (*mov<mode>_internal): Guard
23432 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
23433
23434 PR rtl-optimization/59647
23435 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
23436 new_rtx into UNSIGNED_FLOAT rtxes.
23437 \f
23438 Copyright (C) 2014 Free Software Foundation, Inc.
23439
23440 Copying and distribution of this file, with or without modification,
23441 are permitted in any medium without royalty provided the copyright
23442 notice and this notice are preserved.