cprop.c: Use rtx_insn
[gcc.git] / gcc / ChangeLog
1 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2
3 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4 rtx_insn *.
5 (reg_available_p): Likewise for param "insn".
6 (insert_set_in_table): Likewise.
7 (hash_scan_set): Likewise.
8 (hash_scan_insn): Likewise.
9 (make_set_regs_unavailable): Likewise.
10 (compute_hash_table_work): Likewise for local "insn".
11 (reg_not_set_p): Strengthen param "insn" from const_rtx to
12 const rtx_insn *.
13 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
14 (try_replace_reg): Likewise.
15 (find_avail_set): Likewise.
16 (cprop_jump): Likewise for params "setcc", "jump".
17 (constprop_register): Likewise for param "insn".
18 (cprop_insn): Likewise.
19 (do_local_cprop): Likewise.
20 (local_cprop_pass): Likewise for local "insn".
21 (bypass_block): Likewise for params "setcc" and "jump".
22 (bypass_conditional_jumps): Likewise for locals "setcc" and
23 "insn".
24 (one_cprop_pass): Likewise for local "insn".
25
26 2014-08-22 David Malcolm <dmalcolm@redhat.com>
27
28 * compare-elim.c (struct comparison_use): Strengthen field "insn"
29 from rtx to rtx_insn *.
30 (struct comparison): Likewise, also for field "prev_clobber".
31 (conforming_compare): Likewise for param "insn".
32 (arithmetic_flags_clobber_p): Likewise.
33 (find_flags_uses_in_insn): Likewise.
34 (find_comparison_dom_walker::before_dom_children): Likewise for
35 locals "insn", "next", "last_clobber".
36 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
37
38 2014-08-22 David Malcolm <dmalcolm@redhat.com>
39
40 * combine-stack-adj.c (struct csa_reflist): Strengthen field
41 "insn" from rtx to rtx_insn *.
42 (single_set_for_csa): Likewise for param "insn".
43 (record_one_stack_ref): Likewise.
44 (try_apply_stack_adjustment): Likewise.
45 (struct record_stack_refs_data): Likewise for field "insn".
46 (maybe_move_args_size_note): Likewise for params "last" and "insn".
47 (prev_active_insn_bb): Likewise for return type and param "insn".
48 (next_active_insn_bb): Likewise.
49 (force_move_args_size_note): Likewise for params "prev" and "last"
50 and locals "test", "next_candidate", "prev_candidate".
51 (combine_stack_adjustments_for_block): Strengthen locals
52 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
53 rtx_insn *.
54
55 2014-08-21 David Malcolm <dmalcolm@redhat.com>
56
57 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
58 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
59 (subst_insn): Likewise for this variable.
60 (added_links_insn): Likewise.
61 (struct insn_link): Likewise for field "insn".
62 (alloc_insn_link): Likewise for param "insn".
63 (struct undobuf): Likewise for field "other_insn".
64 (find_single_use): Likewise for param "insn" and local "next".
65 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
66 (delete_noop_moves): Likewise for locals "insn", "next".
67 (create_log_links): Likewise for locals "insn", "use_insn".
68 Strengthen local "next_use" from rtx * to rtx_insn **.
69 (insn_a_feeds_b): Likewise for params "a", "b".
70 (combine_instructions): Likewise for param "f" and locals "insn",
71 "next", "prev", "first", "last_combined_insn", "link", "link1",
72 "temp". Replace use of NULL_RTX with NULL when referring to
73 insns.
74 (setup_incoming_promotions): Likewise for param "first"
75 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
76 (can_combine_p): Likewise for params "insn", "i3", "pred",
77 "pred2", "succ", "succ2" and for local "p".
78 (combinable_i3pat): Likewise for param "i3".
79 (cant_combine_insn_p): Likewise for param "insn".
80 (likely_spilled_retval_p): Likewise.
81 (adjust_for_new_dest): Likewise.
82 (update_cfg_for_uncondjump): Likewise, also for local "insn".
83 (try_combine): Likewise for return type and for params "i3", "i2",
84 "i1", "i0", "last_combined_insn", and for locals "insn",
85 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
86 "i0_insn". Eliminate local "tem" in favor of new locals
87 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
88 checked cast for now to rtx_insn * on the return type of
89 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
90 insns.
91 (find_split_point): Strengthen param "insn" from rtx to
92 rtx_insn *.
93 (simplify_set): Likewise for local "other_insn".
94 (recog_for_combine): Likewise for param "insn".
95 (record_value_for_reg): Likewise.
96 (record_dead_and_set_regs_1): Likewise for local
97 "record_dead_insn".
98 (record_dead_and_set_regs): Likewise for param "insn".
99 (record_promoted_value): Likewise.
100 (check_promoted_subreg): Likewise.
101 (get_last_value_validate): Likewise.
102 (reg_dead_at_p): Likewise.
103 (move_deaths): Likewise for param "to_insn".
104 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
105 and locals "place", "place2", "cc0_setter". Eliminate local "tem
106 in favor of new locals "tem_note" and "tem_insn", the latter being
107 an rtx_insn *.
108 (distribute_links): Strengthen locals "place", "insn" from rtx to
109 rtx_insn *.
110
111 2014-08-21 David Malcolm <dmalcolm@redhat.com>
112
113 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
114 than a const_rtx.
115 (can_delete_label_p): Require a const rtx_code_label * rather than
116 a const_rtx.
117 (delete_insn): Add checked cast to rtx_code_label * when we know
118 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
119 rtx to rtx_insn *.
120 (delete_insn_chain): Strengthen locals "prev" and "current" from
121 rtx to rtx_insn *. Add a checked cast when assigning from
122 "finish" (strengthening the params will come later). Add a
123 checked cast to rtx_note * in region where we know
124 NOTE_P (current).
125 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
126 rtx_insn *.
127 (compute_bb_for_insn): Likewise.
128 (free_bb_for_insn): Likewise for local "insn".
129 (compute_bb_for_insn): Likewise.
130 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
131 local "insn" from rtx to rtx_insn *
132 (flow_active_insn_p): Require a const rtx_insn * rather than a
133 const_rtx.
134 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
135 rtx_insn *.
136 (can_fallthru): Likewise for locals "insn" and "insn2".
137 (bb_note): Likewise for local "note".
138 (first_insn_after_basic_block_note): Likewise for local "note" and
139 for return type.
140 (rtl_split_block): Likewise for locals "insn" and "next".
141 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
142 "end".
143 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
144 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
145 "prev", "tmp".
146 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
147 them), "kill_from", "barrier", "new_insn".
148 (patch_jump_insn): Likewise for params "insn", "old_label".
149 (redirect_branch_edge): Likewise for locals "old_label", "insn".
150 (force_nonfallthru_and_redirect): Likewise for locals "insn",
151 "old_label", "new_label".
152 (rtl_tidy_fallthru_edge): Likewise for local "q".
153 (rtl_split_edge): Likewise for locals "before", "last".
154 (commit_one_edge_insertion): Likewise for locals "before",
155 "after", "insns", "tmp", "last", adding a checked cast where
156 currently necessary.
157 (commit_edge_insertions): Likewise.
158 (rtl_dump_bb): Likewise for locals "insn", "last".
159 (print_rtl_with_bb): Likewise for local "x".
160 (rtl_verify_bb_insns): Likewise for local "x".
161 (rtl_verify_bb_pointers): Likewise for local "insn".
162 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
163 "head", "end".
164 (rtl_verify_fallthru): Likewise for local "insn".
165 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
166 (purge_dead_edges): Likewise for local "insn".
167 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
168 (skip_insns_after_block): Likewise for return type and for locals
169 "insn", "last_insn", "next_head", "prev".
170 (record_effective_endpoints): Likewise for locals "next_insn",
171 "insn", "end".
172 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
173 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
174 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
175 (duplicate_insn_chain): For now, add checked cast from rtx to
176 rtx_insn * when returning insn.
177 (cfg_layout_duplicate_bb): Likewise for local "insn".
178 (cfg_layout_delete_block): Likewise for locals "insn", "next",
179 "prev", "remaints".
180 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
181 (rtl_block_empty_p): Likewise.
182 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
183 "split_point", "last".
184 (rtl_block_ends_with_call_p): Likewise for local "insn".
185 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
186 const rtx_insn *.
187 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
188 "split_at_insn" from rtx to rtx_insn *.
189 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
190 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
191 to const rtx_insn *.
192 (rtl_account_profile_record): Likewise.
193
194 2014-08-21 David Malcolm <dmalcolm@redhat.com>
195
196 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
197 rtx to rtx_insn *.
198 (average_num_loop_insns): Likewise.
199 (init_set_costs): Likewise for local "seq".
200 (seq_cost): Likewise for param "seq", from const_rtx to const
201 rtx_insn *.
202
203 2014-08-21 David Malcolm <dmalcolm@redhat.com>
204
205 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
206 rtx to rtx_insn *.
207
208 2014-08-21 David Malcolm <dmalcolm@redhat.com>
209
210 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
211 "f1" and "f2" from rtx * to rtx_insn **.
212 (flow_find_head_matching_sequence): Likewise.
213
214 * cfgcleanup.c (try_simplify_condjump): Strengthen local
215 "cbranch_insn" from rtx to rtx_insn *.
216 (thread_jump): Likewise for local "insn".
217 (try_forward_edges): Likewise for local "last".
218 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
219 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
220 "real_b_end".
221 (can_replace_by): Likewise for params "i1", "i2".
222 (old_insns_match_p): Likewise.
223 (merge_notes): Likewise.
224 (walk_to_nondebug_insn): Likewise for param "i1".
225 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
226 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
227 "afterlast1", "afterlast2" from rtx to rtx_insn *.
228 (flow_find_head_matching_sequence): Strengthen params "f1" and
229 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
230 "last1", "last2", "beforelast1", "beforelast2" from rtx to
231 rtx_insn *.
232 (outgoing_edges_match): Likewise for locals "last1", "last2".
233 (try_crossjump_to_edge): Likewise for local "insn".
234 Replace call to for_each_rtx with for_each_rtx_in_insn.
235
236 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
237 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
238 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
239 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
240 (try_optimize_cfg): Strengthen local "last" from rtx to
241 rtx_insn *.
242 (delete_dead_jumptables): Likewise for locals "insn", "next",
243 "label".
244
245 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
246 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
247 "rtx else_first_tail", to reflect the basic-block.h changes above.
248
249 2014-08-21 David Malcolm <dmalcolm@redhat.com>
250
251 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
252 rtx_insn *.
253 (purge_dead_tablejump_edges): Likewise.
254 (find_bb_boundaries): Likewise for locals "insn", "end",
255 "flow_transfer_insn".
256
257 2014-08-21 David Malcolm <dmalcolm@redhat.com>
258
259 * caller-save.c (save_call_clobbered_regs): Strengthen locals
260 "ins" and "prev" from rtx to rtx_insn *.
261
262 2014-08-21 David Malcolm <dmalcolm@redhat.com>
263
264 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
265 rtx_insn *.
266 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
267 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
268 "scan_start".
269 (load_register_parameters): Likewise for local "before_arg".
270 (check_sibcall_argument_overlap): Likewise for param "insn".
271 (expand_call): Likewise for locals "normal_call_insns",
272 "tail_call_insns", "insns", "before_call", "after_args",
273 "before_arg", "last", "prev". Strengthen one of the "last" from
274 rtx to rtx_call_insn *.
275 (fixup_tail_calls): Strengthen local "insn" from rtx to
276 rtx_insn *.
277 (emit_library_call_value_1): Likewise for locals "before_call" and
278 "last".
279
280 2014-08-21 David Malcolm <dmalcolm@redhat.com>
281
282 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
283 and "last" from rtx to rtx_insn *.
284 (expand_builtin_nonlocal_goto): Likewise for local "insn".
285 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
286 rtx_call_insn *.
287 (expand_errno_check): Strengthen local "lab" from rtx to
288 rtx_code_label *.
289 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
290 rtx_insn *.
291 (expand_builtin_mathfn_2): Likewise.
292 (expand_builtin_mathfn_ternary): Likewise.
293 (expand_builtin_mathfn_3): Likewise.
294 (expand_builtin_interclass_mathfn): Likewise for local "last".
295 (expand_builtin_int_roundingfn): Likewise for local "insns".
296 (expand_builtin_int_roundingfn_2): Likewise.
297 (expand_builtin_strlen): Likewise for local "before_strlen".
298 (expand_builtin_strncmp): Likewise for local "seq".
299 (expand_builtin_signbit): Likewise for local "last".
300 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
301 from rtx to rtx_code_label *.
302 (expand_stack_restore): Strengthen local "prev" from rtx to
303 rtx_insn *.
304
305 2014-08-21 David Malcolm <dmalcolm@redhat.com>
306
307 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
308 to rtx_insn *.
309 (struct btr_def_s): Likewise.
310 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
311 const rtx_insn *.
312 (add_btr_def): Likewise.
313 (new_btr_user): Likewise.
314 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
315 rtx to rtx_insn *.
316 (link_btr_uses): Likewise.
317 (move_btr_def): Likewise for locals "insp", "old_insn",
318 "new_insn". Add checked cast to rtx_insn * for now on result of
319 gen_move_insn.
320 (can_move_up): Strengthen param "insn" from const_rtx to
321 const rtx_insn *.
322
323 2014-08-21 David Malcolm <dmalcolm@redhat.com>
324
325 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
326 rtx_insn *.
327 (get_uncond_jump_length): Likewise for locals "label", "jump".
328 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
329 "jump", "insn".
330 (add_labels_and_missing_jumps): Likewise for local "new_jump".
331 (fix_up_fall_thru_edges): Likewise for local "old_jump".
332 (find_jump_block): Likewise for local "insn".
333 (fix_crossing_conditional_branches): Likewise for locals
334 "old_jump", "new_jump".
335 (fix_crossing_unconditional_branches): Likewise for locals
336 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
337 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
338
339 2014-08-21 David Malcolm <dmalcolm@redhat.com>
340
341 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
342 rtx to rtx_insn *.
343 (struct mem_insn): Likewise for field "insn".
344 (reg_next_use): Strengthen from rtx * to rtx_insn **.
345 (reg_next_inc_use): Likewise.
346 (reg_next_def): Likewise.
347 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
348 from rtx to rtx_insn *.
349 (move_insn_before): Likewise for param "next_insn" and local "insns".
350 (attempt_change): Likewise for local "mov_insn".
351 (try_merge): Likewise for param "last_insn".
352 (get_next_ref): Likewise for return type and local "insn".
353 Strengthen param "next_array" from rtx * to rtx_insn **.
354 (parse_add_or_inc): Strengthen param "insn" from rtx to
355 rtx_insn *.
356 (find_inc): Likewise for locals "insn" and "other_insn" (three of
357 the latter).
358 (merge_in_block): Likewise for locals "insn", "curr",
359 "other_insn".
360 (pass_inc_dec::execute): Update allocations of the arrays to
361 reflect the stronger types.
362
363 2014-08-21 David Malcolm <dmalcolm@redhat.com>
364
365 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
366 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
367 from rtx to rtx_code_label *.
368
369 2014-08-21 David Malcolm <dmalcolm@redhat.com>
370
371 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
372 to rtx_insn *.
373
374 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
375
376 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
377 generated a warning and prevented bootstrapping the compiler.
378
379 2014-08-21 David Malcolm <dmalcolm@redhat.com>
380
381 * rtl.h (delete_related_insns): Strengthen return type from rtx to
382 rtx_insn *.
383
384 * jump.c (delete_related_insns): Likewise, also for locals "next"
385 and "prev".
386
387 2014-08-21 David Malcolm <dmalcolm@redhat.com>
388
389 * genautomata.c (output_internal_insn_latency_func): When writing
390 the function "internal_insn_latency" to insn-automata.c,
391 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
392 allowing the optional guard function of (define_bypass) clauses to
393 expect a pair of rtx_insn *, rather than a pair of rtx.
394 (output_insn_latency_func): When writing the function
395 "insn_latency", add an "uncast_" prefix to params "insn" and
396 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
397 using checked casts from the params, thus enabling the above
398 change to the generated "internal_insn_latency" function.
399
400 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
401
402 PR tree-optimization/62091
403 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
404 handle correctly arrays.
405 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
406 inheritance binfos.
407 (record_known_type): Walk into inner type.
408 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
409 condition on no type changes.
410
411 2014-08-21 David Malcolm <dmalcolm@redhat.com>
412
413 * genattrtab.c (write_attr_get): Within the generated get_attr_
414 functions, rename param "insn" to "uncast_insn" and reintroduce
415 "insn" as an local rtx_insn * using a checked cast, so that "insn"
416 is an rtx_insn * within insn-attrtab.c
417
418 2014-08-21 David Malcolm <dmalcolm@redhat.com>
419
420 * output.h (peephole): Strengthen return type from rtx to
421 rtx_insn *.
422 * rtl.h (delete_for_peephole): Likewise for both params.
423 * genpeep.c (main): In generated "peephole" function, strengthen
424 return type and local "insn" from rtx to rtx_insn *. For now,
425 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
426 rtx_insn *, with a checked cast.
427 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
428 locals "insn", "next", "prev" from rtx to rtx_insn *.
429
430 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
431
432 PR tree-optimization/62112
433 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
434 * gimple-iterator.h (gsi_replace): Return bool.
435 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
436 moved from ref_may_alias_global_p.
437 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
438 New overloads.
439 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
440 (stmt_kills_ref_p_1): Rename...
441 (stmt_kills_ref_p): ... to this.
442 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
443 stmt_kills_ref_p): Declare.
444 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
445 Move the self-assignment case...
446 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
447
448 2014-08-21 David Malcolm <dmalcolm@redhat.com>
449
450 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
451
452 * emit-rtl.c (try_split): Likewise, also for locals "before" and
453 "after". For now, don't strengthen param "trial", which requires
454 adding checked casts when returning it.
455
456 2014-08-21 David Malcolm <dmalcolm@redhat.com>
457
458 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
459 "label" from rtx to rtx_code_label *. Strengthen param 1 of
460 "var_location" hook from rtx to rtx_insn *.
461 (debug_nothing_rtx): Delete in favor of...
462 (debug_nothing_rtx_code_label): New prototype.
463 (debug_nothing_rtx_rtx): Delete unused prototype.
464 (debug_nothing_rtx_insn): New prototype.
465
466 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
467 invoking debug_hooks->var_location (in two places, one in a NOTE
468 case of a switch statement, the other guarded by a CALL_P
469 conditional. Add checked cast to rtx_code_label * when invoking
470 debug_hooks->label (within CODE_LABEL case of switch statement).
471
472 * dbxout.c (dbx_debug_hooks): Update "label" hook from
473 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
474 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
475 (xcoff_debug_hooks): Likewise.
476 * debug.c (do_nothing_debug_hooks): Likewise.
477 (debug_nothing_rtx): Delete in favor of...
478 (debug_nothing_rtx_insn): New function.
479 (debug_nothing_rtx_rtx): Delete unused function.
480 (debug_nothing_rtx_code_label): New function.
481 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
482 debug_nothing_rtx to debug_nothing_rtx_code_label.
483 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
484 to rtx_insn *.
485 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
486 debug_nothing_rtx to debug_nothing_rtx_insn.
487 (sdbout_label): Strengthen param "insn" from rtx to
488 rtx_code_label *.
489 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
490 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
491 "var_location" hook from debug_nothing_rtx to
492 debug_nothing_rtx_insn.
493
494 2014-08-21 David Malcolm <dmalcolm@redhat.com>
495
496 * recog.h (insn_output_fn): Update this function typedef to match
497 the changes below to the generated output functions, strengthening
498 the 2nd param from rtx to rtx_insn *.
499
500 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
501 insn when invoking an output function, to match the new signature
502 of insn_output_fn with a stronger second param.
503
504 * genconditions.c (write_header): In the generated code for
505 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
506 to match the other changes in this patch.
507
508 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
509 the generated "gen_" functions from rtx to rtx_insn * within their
510 implementations.
511
512 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
513 the subfunctions within the generated "recog_", "split", "peephole2"
514 function trees from rtx to rtx_insn *. For now, the top-level
515 generated functions ("recog", "split", "peephole2") continue to
516 take a plain rtx for "insn", to avoid introducing dependencies on
517 other patches. Rename this 2nd param from "insn" to
518 "uncast_insn", and reintroduce "insn" as a local variable of type
519 rtx_insn *, initialized at the top of the generated function with
520 a checked cast on "uncast_insn".
521 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
522 the generated "gen_" functions from rtx to rtx_insn * within their
523 prototypes.
524
525 * genoutput.c (process_template): Strengthen the 2nd param within
526 the generated "output_" functions "insn" from rtx to rtx_insn *.
527
528 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
529
530 * tree-profile.c (tree_profiling): Skip external functions
531 when doing coverage instrumentation.
532 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
533
534 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
535
536 * config/rs6000/altivec.h (vec_cpsgn): New #define.
537 (vec_mergee): Likewise.
538 (vec_mergeo): Likewise.
539 (vec_cntlz): Likewise.
540 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
541 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
542 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
543 VMRGEW, and VMRGOW.
544 * doc/extend.texi: Document various forms of vec_cpsgn,
545 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
546 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
547 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
548 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
549 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
550
551 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
552
553 * config/rs6000/rs6000.c (context.h): New include.
554 (tree-pass.h): Likewise.
555 (make_pass_analyze_swaps): New decl.
556 (rs6000_option_override): Register pass_analyze_swaps.
557 (swap_web_entry): New subsclass of web_entry_base (df.h).
558 (special_handling_values): New enum.
559 (union_defs): New function.
560 (union_uses): Likewise.
561 (insn_is_load_p): Likewise.
562 (insn_is_store_p): Likewise.
563 (insn_is_swap_p): Likewise.
564 (rtx_is_swappable_p): Likewise.
565 (insn_is_swappable_p): Likewise.
566 (chain_purpose): New enum.
567 (chain_contains_only_swaps): New function.
568 (mark_swaps_for_removal): Likewise.
569 (swap_const_vector_halves): Likewise.
570 (adjust_subreg_index): Likewise.
571 (permute_load): Likewise.
572 (permute_store): Likewise.
573 (handle_special_swappables): Likewise.
574 (replace_swap_with_copy): Likewise.
575 (dump_swap_insn_table): Likewise.
576 (rs6000_analyze_swaps): Likewise.
577 (pass_data_analyze_swaps): New pass_data.
578 (pass_analyze_swaps): New rtl_opt_pass.
579 (make_pass_analyze_swaps): New function.
580 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
581
582 2014-08-21 David Malcolm <dmalcolm@redhat.com>
583
584 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
585 type from rtx to rtx_insn *.
586 (create_copy_of_insn_rtx): Likewise.
587 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
588 (create_copy_of_insn_rtx): Likewise, also for local "res".
589
590 2014-08-21 David Malcolm <dmalcolm@redhat.com>
591
592 * rtl.h (find_first_parameter_load): Strengthen return type from
593 rtx to rtx_insn *.
594 * rtlanal.c (find_first_parameter_load): Strengthen return type
595 from rtx to rtx_insn *. Add checked cast for now, to postpone
596 strengthening the params.
597
598 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
599
600 PR fortran/44054
601 * diagnostic.c: Set default caret.
602 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
603 line is needed.
604 * diagnostic.h (struct diagnostic_context):
605
606 2014-08-21 David Malcolm <dmalcolm@redhat.com>
607
608 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
609 (sel_bb_head): Strengthen return type insn_t (currently just an
610 rtx) to rtx_insn *.
611 (sel_bb_end): Likewise.
612
613 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
614 (sel_bb_head): Strengthen return type and local "head" from
615 insn_t (currently just an rtx) to rtx_insn *.
616 (sel_bb_end): Likewise for return type.
617 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
618 working with insn.
619
620 2014-08-21 David Malcolm <dmalcolm@redhat.com>
621
622 * basic-block.h (get_last_bb_insn): Strengthen return type from
623 rtx to rtx_insn *.
624 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
625 end".
626
627 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
628
629 PR fortran/44054
630 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
631 to here ...
632 (diagnostic_report_diagnostic): ... from here.
633 * toplev.c (general_init): Move code to c-family.
634
635 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
636
637 * df.h (web_entry_base): Replace existing struct web_entry with a
638 new class web_entry_base with only the predecessor member.
639 (unionfind_root): Remove declaration and move to class member.
640 (unionfind_union): Remove declaration and move to friend
641 function.
642 (union_defs): Remove declaration.
643 * web.c (web_entry_base::unionfind_root): Modify to be member
644 function and adjust accessors.
645 (unionfind_union): Modify to be friend function and adjust
646 accessors.
647 (web_entry): New subclass of web_entry_base containing the reg
648 member.
649 (union_match_dups): Modify for struct -> class changes.
650 (union_defs): Likewise.
651 (entry_register): Likewise.
652 (pass_web::execute): Likewise.
653
654 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
655
656 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
657 builtin define __VEC_ELEMENT_REG_ORDER__.
658
659 2014-08-20 Martin Jambor <mjambor@suse.cz>
660 Wei Mi <wmi@google.com>
661
662 PR ipa/60449
663 PR middle-end/61776
664 * tree-ssa-operands.c (update_stmt_operands): Remove
665 MODIFIED_NORETURN_CALLS.
666 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
667 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
668 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
669 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
670 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
671 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
672 (gimple_call_set_ctrl_altering): New func.
673 (gimple_call_ctrl_altering_p): Ditto.
674 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
675 (make_blocks): Use gimple_call_initialize_ctrl_altering.
676 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
677 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
678 remove MODIFIED_NORETURN_CALLS.
679
680 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
681
682 * coverage.c (coverage_compute_profile_id): Return non-0;
683 also handle symbols with unique name.
684 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
685
686 2014-08-20 Steve Ellcey <sellcey@mips.com>
687
688 PR middle-end/49191
689 * doc/sourcebuild.texi (non_strict_align): New.
690
691 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
692
693 * cgraphunit.c (ipa_passes, compile): Reshedule
694 symtab_remove_unreachable_nodes passes; update comments.
695 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
696 TODO_remove_functions before the pass; the functions ought to be
697 already removed.
698 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
699 TODO_remove_functions.
700 * passes.c (pass_data_early_local_passes): Do not schedule function
701 removal.
702 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
703
704 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
705
706 PR c/59304
707 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
708 before setting the option.
709 * diagnostic.c (diagnostic_classify_diagnostic): Record
710 command-line status.
711
712 2014-08-20 Richard Biener <rguenther@suse.de>
713
714 PR lto/62190
715 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
716 to build uint{16,32,64}_type_node.
717
718 2014-08-20 Terry Guo <terry.guo@arm.com>
719
720 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
721 with immediate_operand.
722
723 2014-08-20 David Malcolm <dmalcolm@redhat.com>
724
725 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
726 "insn" from an as_a to a safe_as_a, for the case when "insn" is
727 NULL.
728
729 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
730
731 PR preprocessor/51303
732 * incpath.c (remove_duplicates): Use cpp_warning.
733
734 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
735
736 PR c/60975
737 PR c/53063
738 * doc/options.texi (CPP): Document it.
739 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
740 * optc-gen.awk: Handle CPP.
741 * opth-gen.awk: Likewise.
742
743 2014-08-19 David Malcolm <dmalcolm@redhat.com>
744
745 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
746 rtx_insn *.
747 (duplicate_insn_chain): Likewise.
748 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
749 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
750 checked cast for now (until we can strengthen the params in the
751 same way).
752 (duplicate_insn_chain): Likewise.
753
754 2014-08-19 David Malcolm <dmalcolm@redhat.com>
755
756 * rtl.h (next_cc0_user): Strengthen return type from rtx to
757 rtx_insn *.
758 (prev_cc0_setter): Likewise.
759
760 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
761 rtx_insn *, adding checked casts for now as necessary.
762 (prev_cc0_setter): Likewise.
763
764 2014-08-19 David Malcolm <dmalcolm@redhat.com>
765
766 * expr.h (emit_move_insn): Strengthen return type from rtx to
767 rtx_insn *.
768 (emit_move_insn_1): Likewise.
769 (emit_move_complex_push): Likewise.
770 (emit_move_complex_parts): Likewise.
771
772 * expr.c (emit_move_via_integer): Strengthen return type from rtx
773 to rtx_insn *. Replace use of NULL_RTX with NULL when working
774 with insns.
775 (emit_move_complex_push): Strengthen return type from rtx to
776 rtx_insn *.
777 (emit_move_complex): Likewise, also for local "ret".
778 (emit_move_ccmode): Likewise.
779 (emit_move_multi_word): Likewise for return type and locals
780 "last_insn", "seq".
781 (emit_move_insn_1): Likewise for return type and locals "result",
782 "ret".
783 (emit_move_insn): Likewise for return type and local "last_insn".
784 (compress_float_constant): Likewise.
785
786 2014-08-19 David Malcolm <dmalcolm@redhat.com>
787
788 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
789 from rtx to rtx_insn *.
790
791 * rtl.h (emit_insn_before): Likewise.
792 (emit_insn_before_noloc): Likewise.
793 (emit_insn_before_setloc): Likewise.
794 (emit_jump_insn_before): Likewise.
795 (emit_jump_insn_before_noloc): Likewise.
796 (emit_jump_insn_before_setloc): Likewise.
797 (emit_call_insn_before): Likewise.
798 (emit_call_insn_before_noloc): Likewise.
799 (emit_call_insn_before_setloc): Likewise.
800 (emit_debug_insn_before): Likewise.
801 (emit_debug_insn_before_noloc): Likewise.
802 (emit_debug_insn_before_setloc): Likewise.
803 (emit_label_before): Likewise.
804 (emit_insn_after): Likewise.
805 (emit_insn_after_noloc): Likewise.
806 (emit_insn_after_setloc): Likewise.
807 (emit_jump_insn_after): Likewise.
808 (emit_jump_insn_after_noloc): Likewise.
809 (emit_jump_insn_after_setloc): Likewise.
810 (emit_call_insn_after): Likewise.
811 (emit_call_insn_after_noloc): Likewise.
812 (emit_call_insn_after_setloc): Likewise.
813 (emit_debug_insn_after): Likewise.
814 (emit_debug_insn_after_noloc): Likewise.
815 (emit_debug_insn_after_setloc): Likewise.
816 (emit_label_after): Likewise.
817 (emit_insn): Likewise.
818 (emit_debug_insn): Likewise.
819 (emit_jump_insn): Likewise.
820 (emit_call_insn): Likewise.
821 (emit_label): Likewise.
822 (gen_clobber): Likewise.
823 (emit_clobber): Likewise.
824 (gen_use): Likewise.
825 (emit_use): Likewise.
826 (emit): Likewise.
827
828 (emit_barrier_before): Strengthen return type from rtx to
829 rtx_barrier *.
830 (emit_barrier_after): Likewise.
831 (emit_barrier): Likewise.
832
833 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
834 from rtx to rtx_insn *. Add checked casts for now when converting
835 "last" from rtx to rtx_insn *.
836 (emit_insn_before_noloc): Likewise for return type.
837 (emit_jump_insn_before_noloc): Likewise.
838 (emit_call_insn_before_noloc): Likewise.
839 (emit_debug_insn_before_noloc): Likewise.
840 (emit_barrier_before): Strengthen return type and local "insn"
841 from rtx to rtx_barrier *.
842 (emit_label_before): Strengthen return type from rtx to
843 rtx_insn *. Add checked cast for now when returning param
844 (emit_pattern_after_noloc): Strengthen return type from rtx to
845 rtx_insn *. Add checked casts for now when converting "last" from
846 rtx to rtx_insn *.
847 (emit_insn_after_noloc): Strengthen return type from rtx to
848 rtx_insn *.
849 (emit_jump_insn_after_noloc): Likewise.
850 (emit_call_insn_after_noloc): Likewise.
851 (emit_debug_insn_after_noloc): Likewise.
852 (emit_barrier_after): Strengthen return type from rtx to
853 rtx_barrier *.
854 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
855 Add checked cast for now when converting "label" from rtx to
856 rtx_insn *.
857 (emit_pattern_after_setloc): Strengthen return type from rtx to
858 rtx_insn *. Add checked casts for now when converting "last" from
859 rtx to rtx_insn *.
860 (emit_pattern_after): Strengthen return type from rtx to
861 rtx_insn *.
862 (emit_insn_after_setloc): Likewise.
863 (emit_insn_after): Likewise.
864 (emit_jump_insn_after_setloc): Likewise.
865 (emit_jump_insn_after): Likewise.
866 (emit_call_insn_after_setloc): Likewise.
867 (emit_call_insn_after): Likewise.
868 (emit_debug_insn_after_setloc): Likewise.
869 (emit_debug_insn_after): Likewise.
870 (emit_pattern_before_setloc): Likewise. Add checked casts for now
871 when converting "last" from rtx to rtx_insn *.
872 (emit_pattern_before): Strengthen return type from rtx to
873 rtx_insn *.
874 (emit_insn_before_setloc): Likewise.
875 (emit_insn_before): Likewise.
876 (emit_jump_insn_before_setloc): Likewise.
877 (emit_jump_insn_before): Likewise.
878 (emit_call_insn_before_setloc): Likewise.
879 (emit_call_insn_before): Likewise.
880 (emit_debug_insn_before_setloc): Likewise.
881 (emit_debug_insn_before): Likewise.
882 (emit_insn): Strengthen return type and locals "last", "insn",
883 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
884 within cases where we know we have an insn.
885 (emit_debug_insn): Likewise.
886 (emit_jump_insn): Likewise.
887 (emit_call_insn): Strengthen return type and local "insn" from rtx
888 to rtx_insn *.
889 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
890 a checked cast to rtx_insn * for now on "label".
891 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
892 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
893 (emit_use): Likewise.
894 (gen_use): Likewise, also for local "seq".
895 (emit): Likewise for return type and local "insn".
896 (rtx_insn): Likewise for return type and local "new_rtx".
897
898 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
899 from rtx to rtx_barrier *.
900
901 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
902 changed return type from rtx to rtx_insn *, we must update
903 "emit_fn" type, and this in turn means updating...
904 (frame_insn): ...this. Strengthen return type from rtx to
905 rtx_insn *. Introduce a new local "insn" of the appropriate type.
906
907 2014-08-19 David Malcolm <dmalcolm@redhat.com>
908
909 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
910 rtx to rtx_jump_table_data *. Also for local.
911 * rtl.h (emit_jump_table_data): Likewise.
912
913 2014-08-19 David Malcolm <dmalcolm@redhat.com>
914
915 * basic-block.h (create_basic_block_structure): Strengthen third
916 param "bb_note" from rtx to rtx_note *.
917 * rtl.h (emit_note_before): Strengthen return type from rtx to
918 rtx_note *.
919 (emit_note_after): Likewise.
920 (emit_note): Likewise.
921 (emit_note_copy): Likewise. Also, strengthen param similarly.
922 * function.h (struct rtl_data): Strengthen field
923 "x_stack_check_probe_note" from rtx to rtx_note *.
924
925 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
926 from rtx to rtx_note *.
927 * cfgrtl.c (create_basic_block_structure): Strengthen third param
928 "bb_note" from rtx to rtx_note *.
929 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
930 when calling emit_note_copy.
931 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
932 rtx_note *.
933 (emit_note_after): Likewise.
934 (emit_note_before): Likewise.
935 (emit_note_copy): Likewise. Also, strengthen param similarly.
936 (emit_note): Likewise.
937 * except.c (emit_note_eh_region_end): Likewise for return type.
938 Strengthen local "next" from rtx to rtx_insn *.
939 (convert_to_eh_region_ranges): Strengthen local "note"
940 from rtx to rtx_note *.
941 * final.c (change_scope): Likewise.
942 (reemit_insn_block_notes): Likewise, for both locals named "note".
943 Also, strengthen local "insn" from rtx to rtx_insn *.
944 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
945 rtx to rtx_note *.
946 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
947 strengthen local "seq" from rtx to rtx_insn *.
948 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
949 to rtx_note *.
950 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
951 vec<rtx_note *>.
952 (get_bb_note_from_pool): Strengthen return type from rtx to
953 rtx_note *.
954 (sel_create_basic_block): Strengthen local "new_bb_note" from
955 insn_t to rtx_note *.
956 * var-tracking.c (emit_note_insn_var_location): Strengthen local
957 "note" from rtx to rtx_note *.
958 (emit_notes_in_bb): Likewise.
959
960 2014-08-19 David Malcolm <dmalcolm@redhat.com>
961
962 * function.h (struct rtl_data): Strengthen field
963 "x_parm_birth_insn" from rtx to rtx_insn *.
964 * function.c (struct assign_parm_data_all): Strengthen fields
965 "first_conversion_insn" and "last_conversion_insn" from rtx to
966 rtx_insn *.
967
968 2014-08-19 David Malcolm <dmalcolm@redhat.com>
969
970 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
971 to rtx_insn *; also for local "var_end_seq".
972 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
973 (maybe_cleanup_end_of_block): Likewise for param "last" and local
974 "insn".
975 (expand_gimple_cond): Likewise for locals "last2" and "last".
976 (mark_transaction_restart_calls): Likewise for local "insn".
977 (expand_gimple_stmt): Likewise for return type and locals "last"
978 and "insn".
979 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
980 (avoid_complex_debug_insns): Likewise for param "insn".
981 (expand_debug_locations): Likewise for locals "insn", "last",
982 "prev_insn" and "insn2".
983 (expand_gimple_basic_block): Likewise for local "last".
984 (construct_exit_block): Likewise for locals "head", "end",
985 "orig_end".
986 (pass_expand::execute): Likewise for locals "var_seq",
987 "var_ret_seq", "next".
988
989 2014-08-19 David Malcolm <dmalcolm@redhat.com>
990
991 * asan.h (asan_emit_stack_protection): Strengthen return type from
992 rtx to rtx_insn *.
993 * asan.c (asan_emit_stack_protection): Likewise. Add local
994 "insns" to hold the return value.
995
996 2014-08-19 David Malcolm <dmalcolm@redhat.com>
997
998 * basic-block.h (bb_note): Strengthen return type from rtx to
999 rtx_note *.
1000 * sched-int.h (bb_note): Likewise.
1001 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
1002
1003 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1004
1005 * rtl.h (make_insn_raw): Strengthen return type from rtx to
1006 rtx_insn *.
1007
1008 * emit-rtl.c (make_insn_raw): Strengthen return type and local
1009 "insn" from rtx to rtx_insn *.
1010 (make_debug_insn_raw): Strengthen return type from rtx to
1011 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
1012 (make_jump_insn_raw): Strengthen return type from rtx to
1013 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
1014 (make_call_insn_raw): Strengthen return type from rtx to
1015 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
1016 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
1017 callback from rtx to rtx_insn *; likewise for local "insn" and
1018 "next", adding a checked cast to rtx_insn in the relevant cases of
1019 the switch statement.
1020 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
1021 callback from rtx to rtx_insn *.
1022 (emit_pattern_after_setloc): Likewise.
1023 (emit_pattern_after): Likewise.
1024 (emit_pattern_before_setloc): Likewise.
1025 (emit_pattern_before): Likewise.
1026
1027 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1028
1029 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
1030 rtx_call_insn *.
1031 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
1032 accepting an rtx_insn *.
1033 (last_call_insn): Strengthen return type from rtx to
1034 rtx_call_insn *.
1035
1036 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1037
1038 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
1039 "insns" from rtx to rtx_insn *.
1040 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
1041 locals "insn" and "prev".
1042
1043 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1044
1045 * rtl.h (tablejump_p): Strengthen third param from rtx * to
1046 rtx_jump_table_data **.
1047
1048 * cfgbuild.c (make_edges): Introduce local "table", using it in
1049 place of "tmp" for jump table data.
1050 (find_bb_boundaries): Strengthen local "table" from rtx to
1051 rtx_jump_table_data *.
1052 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1053 (outgoing_edges_match): Likewise for locals "table1" and "table2".
1054 (try_crossjump_to_edge): Likewise.
1055 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
1056 "table".
1057 (patch_jump_insn): Introduce local "table", using it in place of
1058 "tmp" for jump table data.
1059 (force_nonfallthru_and_redirect): Introduce local "table", so that
1060 call to tablejump_p can receive an rtx_jump_table_data **. Update
1061 logic around the call to overwrite "note" appropriately if
1062 tablejump_p returns non-zero.
1063 (get_last_bb_insn): Introduce local "table", using it in place of
1064 "tmp" for jump table data.
1065 * dwarf2cfi.c (create_trace_edges): Likewise.
1066
1067 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
1068 from rtx to rtx_jump_table_data *.
1069 (create_fix_barrier): Strengthen local "tmp" from rtx to
1070 rtx_jump_table_data *.
1071 (arm_reorg): Likewise for local "table".
1072
1073 * config/s390/s390.c (s390_chunkify_start): Likewise.
1074
1075 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
1076
1077 * jump.c (delete_related_insns): Strengthen local "lab_next" from
1078 rtx to rtx_jump_table_data *.
1079
1080 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
1081 rtx_jump_table_data **. Add a checked cast when writing through
1082 the pointer: we know there that local "table" is non-NULL and that
1083 JUMP_TABLE_DATA_P (table) holds.
1084 (label_is_jump_target_p): Introduce local "table", using it in
1085 place of "tmp" for jump table data.
1086
1087 2014-08-19 Marek Polacek <polacek@redhat.com>
1088
1089 PR c++/62153
1090 * doc/invoke.texi: Document -Wbool-compare.
1091
1092 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1093
1094 * rtl.h (entry_of_function): Strengthen return type from rtx to
1095 rtx_insn *.
1096 * cfgrtl.c (entry_of_function): Likewise.
1097
1098 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1099
1100 * emit-rtl.h (get_insns): Strengthen return type from rtx to
1101 rtx_insn *, adding a checked cast for now.
1102 (get_last_insn): Likewise.
1103
1104 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1105
1106 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
1107 rtx_code_label *.
1108
1109 * emit-rtl.c (gen_label_rtx): Likewise.
1110
1111 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1112
1113 * rtl.h (previous_insn): Strengthen return type from rtx to
1114 rtx_insn *.
1115 (next_insn): Likewise.
1116 (prev_nonnote_insn): Likewise.
1117 (prev_nonnote_insn_bb): Likewise.
1118 (next_nonnote_insn): Likewise.
1119 (next_nonnote_insn_bb): Likewise.
1120 (prev_nondebug_insn): Likewise.
1121 (next_nondebug_insn): Likewise.
1122 (prev_nonnote_nondebug_insn): Likewise.
1123 (next_nonnote_nondebug_insn): Likewise.
1124 (prev_real_insn): Likewise.
1125 (next_real_insn): Likewise.
1126 (prev_active_insn): Likewise.
1127 (next_active_insn): Likewise.
1128
1129 * emit-rtl.c (next_insn): Strengthen return type from rtx to
1130 rtx_insn *, adding a checked cast.
1131 (previous_insn): Likewise.
1132 (next_nonnote_insn): Likewise.
1133 (next_nonnote_insn_bb): Likewise.
1134 (prev_nonnote_insn): Likewise.
1135 (prev_nonnote_insn_bb): Likewise.
1136 (next_nondebug_insn): Likewise.
1137 (prev_nondebug_insn): Likewise.
1138 (next_nonnote_nondebug_insn): Likewise.
1139 (prev_nonnote_nondebug_insn): Likewise.
1140 (next_real_insn): Likewise.
1141 (prev_real_insn): Likewise.
1142 (next_active_insn): Likewise.
1143 (prev_active_insn): Likewise.
1144
1145 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
1146 param "stepfunc" so that it returns an rtx_insn * rather than an
1147 rtx, to track the change to prev_nonnote_insn_bb, which is the
1148 only function this is called with.
1149 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
1150
1151 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
1152
1153 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
1154 assert.
1155
1156 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1157
1158 * coretypes.h (class rtx_debug_insn): Add forward declaration.
1159 (class rtx_nonjump_insn): Likewise.
1160 (class rtx_jump_insn): Likewise.
1161 (class rtx_call_insn): Likewise.
1162 (class rtx_jump_table_data): Likewise.
1163 (class rtx_barrier): Likewise.
1164 (class rtx_code_label): Likewise.
1165 (class rtx_note): Likewise.
1166
1167 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
1168 adding the invariant DEBUG_INSN_P (X).
1169 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
1170 the invariant NONJUMP_INSN_P (X).
1171 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
1172 the invariant JUMP_P (X).
1173 (class rtx_call_insn): New, a subclass of rtx_insn, adding
1174 the invariant CALL_P (X).
1175 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
1176 invariant JUMP_TABLE_DATA_P (X).
1177 (class rtx_barrier): New, a subclass of rtx_insn, adding the
1178 invariant BARRIER_P (X).
1179 (class rtx_code_label): New, a subclass of rtx_insn, adding
1180 the invariant LABEL_P (X).
1181 (class rtx_note): New, a subclass of rtx_insn, adding
1182 the invariant NOTE_P(X).
1183 (is_a_helper <rtx_debug_insn *>::test): New.
1184 (is_a_helper <rtx_nonjump_insn *>::test): New.
1185 (is_a_helper <rtx_jump_insn *>::test): New.
1186 (is_a_helper <rtx_call_insn *>::test): New.
1187 (is_a_helper <rtx_jump_table_data *>::test): New functions,
1188 overloaded for both rtx and rtx_insn *.
1189 (is_a_helper <rtx_barrier *>::test): New.
1190 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
1191 for both rtx and rtx_insn *.
1192 (is_a_helper <rtx_note *>::test): New.
1193
1194 2014-08-19 Marek Polacek <polacek@redhat.com>
1195
1196 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
1197 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
1198 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
1199 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
1200
1201 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1202
1203 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
1204 rtx_insn *. To help with transition, for now, convert from an
1205 access macro into a pair of functions: BND_TO, returning an
1206 rtx_insn *, and...
1207 (SET_BND_TO): New function, for use where BND_TO is used as an
1208 lvalue.
1209
1210 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
1211 SET_BND_TO.
1212 (BND_TO): New function, adding a checked cast.
1213 (SET_BND_TO): New function.
1214
1215 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
1216 SET_BND_TO.
1217 (compute_av_set_on_boundaries): Likewise.
1218
1219 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
1220
1221 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
1222 destination if it is used in source.
1223 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
1224 (*popcount<mode>2_falsedep_1): Likewise.
1225
1226 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
1227
1228 PR other/62168
1229 * configure.ac: Set install_gold_as_default to no first.
1230 * configure: Regenerated.
1231
1232 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1233
1234 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
1235 "note_list" field will eventually be an rtx_insn *. To help with
1236 transition, for now, convert from an access macro into a pair of
1237 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
1238 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
1239 used as an lvalue.
1240
1241 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
1242 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
1243
1244 * sel-sched-ir.c (init_bb): Likewise.
1245 (sel_restore_notes): Likewise.
1246 (move_bb_info): Likewise.
1247 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
1248 (SET_BB_NOTE_LIST): New function.
1249
1250 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1251
1252 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
1253 field will eventually be an rtx_insn *. To help with transition,
1254 for now, convert from an access macro into a pair of functions:
1255 VINSN_INSN_RTX, returning an rtx_insn *, and...
1256 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
1257 is used as an lvalue.
1258
1259 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
1260 SET_VINSN_INSN_RTX where it's used as an lvalue.
1261 (VINSN_INSN_RTX): New function.
1262 (SET_VINSN_INSN_RTX): New function.
1263
1264 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1265
1266 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
1267 eventually be rtx_insn *, but to help with transition, for now,
1268 convert from an access macro into a pair of functions: DEP_PRO
1269 returning an rtx_insn * and...
1270 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
1271 lvalue, returning an rtx&.
1272 (DEP_CON): Analogous changes to DEP_PRO above.
1273 (SET_DEP_CON): Likewise.
1274
1275 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
1276 an lvalue to SET_DEP_CON.
1277 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
1278 (sd_copy_back_deps): Likewise for DEP_CON.
1279 (DEP_PRO): New function, adding a checked cast for now.
1280 (DEP_CON): Likewise.
1281 (SET_DEP_PRO): New function.
1282 (SET_DEP_CON): Likewise.
1283
1284 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
1285
1286 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
1287 (extra_options): Add i386/cygwin.opt.
1288 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
1289 (CPP_SPEC): Accept -pthread.
1290 (LINK_SPEC): Ditto.
1291 (GOMP_SELF_SPECS): Update comment.
1292 * config/i386/cygwin.opt: New file for -pthread flag.
1293
1294 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1295
1296 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
1297 * df.h (DF_REF_INSN): Convert from a macro to a function, so
1298 that we can return an rtx_insn *.
1299
1300 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
1301
1302 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
1303 when building executables, not DLLs. Add --large-address-aware
1304 under the same conditions.
1305 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
1306 when building executables, not DLLs. Add --large-address-aware
1307 under the same conditions when using -m32.
1308
1309 * config/i386/cygwin-stdint.h: Throughout, make type
1310 definitions dependent on target architecture, not host.
1311
1312 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1313
1314 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
1315 the return type from rtx to rtx_insn *, which will enable various
1316 conversions in followup patches. For now this is is done by a
1317 checked cast.
1318 (NEXT_INSN): Likewise.
1319 (SET_PREV_INSN): Convert to an inline function. This is intended
1320 for use as an lvalue, and so returns an rtx& to allow in-place
1321 modification.
1322 (SET_NEXT_INSN): Likewise.
1323
1324 2014-07-08 Mark Wielaard <mjw@redhat.com>
1325
1326 PR debug/59051
1327 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
1328
1329 2014-08-19 Marek Polacek <polacek@redhat.com>
1330
1331 PR c/61271
1332 * cgraphunit.c (handle_alias_pairs): Fix condition.
1333
1334 2014-08-19 Richard Biener <rguenther@suse.de>
1335
1336 * gimple-fold.c (fold_gimple_assign): Properly build a
1337 null-pointer constant when devirtualizing addresses.
1338
1339 2014-07-07 Mark Wielaard <mjw@redhat.com>
1340
1341 * dwarf2out.c (decl_quals): New function.
1342 (modified_type_die): Take one cv_quals argument instead of two,
1343 one for const and one for volatile.
1344 (add_type_attribute): Likewise.
1345 (generic_parameter_die): Call add_type_attribute with one modifier
1346 argument.
1347 (base_type_for_mode): Likewise.
1348 (add_bounds_info): Likewise.
1349 (add_subscript_info): Likewise.
1350 (gen_array_type_die): Likewise.
1351 (gen_descr_array_type_die): Likewise.
1352 (gen_entry_point_die): Likewise.
1353 (gen_enumeration_type_die): Likewise.
1354 (gen_formal_parameter_die): Likewise.
1355 (gen_subprogram_die): Likewise.
1356 (gen_variable_die): Likewise.
1357 (gen_const_die): Likewise.
1358 (gen_field_die): Likewise.
1359 (gen_pointer_type_die): Likewise.
1360 (gen_reference_type_die): Likewise.
1361 (gen_ptr_to_mbr_type_die): Likewise.
1362 (gen_inheritance_die): Likewise.
1363 (gen_subroutine_type_die): Likewise.
1364 (gen_typedef_die): Likewise.
1365 (force_type_die): Likewise.
1366
1367 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1368
1369 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
1370 if unset.
1371 * configure: Regenerate.
1372
1373 2014-08-19 Richard Biener <rguenther@suse.de>
1374
1375 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
1376 DECL_EXTERNALs in BLOCKs as non-references.
1377 * tree-streamer-out.c (streamer_write_chain): Likewise.
1378
1379 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
1380 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1381 Anna Tikhonova <anna.tikhonova@intel.com>
1382 Ilya Tocar <ilya.tocar@intel.com>
1383 Andrey Turetskiy <andrey.turetskiy@intel.com>
1384 Ilya Verbin <ilya.verbin@intel.com>
1385 Kirill Yukhin <kirill.yukhin@intel.com>
1386 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1387
1388 * config/i386/sse.md
1389 (define_mode_iterator VI48_AVX512F): Delete.
1390 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
1391 (define_mode_iterator VI2_AVX512VL): Ditto.
1392 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
1393 Delete.
1394 (define_insn
1395 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
1396 New.
1397 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
1398 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
1399 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1400 with VI48_AVX512F_AVX512VL): New.
1401 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1402 with VI2_AVX512VL): Ditto.
1403
1404 2014-08-19 Marek Polacek <polacek@redhat.com>
1405
1406 * doc/invoke.texi: Document -Wc99-c11-compat.
1407
1408 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1409
1410 * rtl.h (PREV_INSN): Split macro in two: the existing one,
1411 for rvalues, and...
1412 (SET_PREV_INSN): New macro, for use as an lvalue.
1413 (NEXT_INSN, SET_NEXT_INSN): Likewise.
1414
1415 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
1416 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
1417 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1418 (fixup_abnormal_edges): Likewise.
1419 (unlink_insn_chain): Likewise.
1420 (fixup_reorder_chain): Likewise.
1421 (cfg_layout_delete_block): Likewise.
1422 (cfg_layout_merge_blocks): Likewise.
1423 * combine.c (update_cfg_for_uncondjump): Likewise.
1424 * emit-rtl.c (link_insn_into_chain): Likewise.
1425 (remove_insn): Likewise.
1426 (delete_insns_since): Likewise.
1427 (reorder_insns_nobb): Likewise.
1428 (emit_insn_after_1): Likewise.
1429 * final.c (rest_of_clean_state): Likewise.
1430 (final_scan_insn): Likewise.
1431 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
1432 * haifa-sched.c (concat_note_lists): Likewise.
1433 (remove_notes): Likewise.
1434 (restore_other_notes): Likewise.
1435 (move_insn): Likewise.
1436 (unlink_bb_notes): Likewise.
1437 (restore_bb_notes): Likewise.
1438 * jump.c (delete_for_peephole): Likewise.
1439 * optabs.c (emit_libcall_block_1): Likewise.
1440 * reorg.c (emit_delay_sequence): Likewise.
1441 (fill_simple_delay_slots): Likewise.
1442 * sel-sched-ir.c (sel_move_insn): Likewise.
1443 (sel_remove_insn): Likewise.
1444 (get_bb_note_from_pool): Likewise.
1445 * sel-sched.c (move_nop_to_previous_block): Likewise.
1446
1447 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
1448 * config/c6x/c6x.c (gen_one_bundle): Likewise.
1449 (c6x_gen_bundles): Likewise.
1450 (hwloop_optimize): Likewise.
1451 * config/frv/frv.c (frv_function_prologue): Likewise.
1452 (frv_register_nop): Likewise.
1453 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
1454 (ia64_reorg): Likewise.
1455 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
1456 (mep_make_bundle): Likewise.
1457 (mep_bundle_insns): Likewise.
1458 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1459 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
1460 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
1461
1462 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1463
1464 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
1465 return type from rtx to rtx_insn *.
1466 (BB_END): Likewise.
1467 (BB_HEADER): Likewise.
1468 (BB_FOOTER): Likewise.
1469 (SET_BB_HEAD): Convert to a function.
1470 (SET_BB_END): Likewise.
1471 (SET_BB_HEADER): Likewise.
1472 (SET_BB_FOOTER): Likewise.
1473
1474 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
1475 Strengthen the return type from rtx to rtx_insn *. For now, this
1476 is done by adding a checked cast, but this will eventually
1477 become a field lookup.
1478 (BB_END): Likewise.
1479 (BB_HEADER): Likewise.
1480 (BB_FOOTER): Likewise.
1481 (SET_BB_HEAD): New function, from macro of same name. This is
1482 intended for use as an lvalue, and so returns an rtx& to allow
1483 in-place modification.
1484 (SET_BB_END): Likewise.
1485 (SET_BB_HEADER): Likewise.
1486 (SET_BB_FOOTER): Likewise.
1487
1488 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1489
1490 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
1491 for rvalues, and...
1492 (SET_BB_HEAD): New macro, for use as a lvalue.
1493 (BB_END, SET_BB_END): Likewise.
1494 (BB_HEADER, SET_BB_HEADER): Likewise.
1495 (BB_FOOTER, SET_BB_FOOTER): Likewise.
1496
1497 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
1498 of BB_* macros into SET_BB_* macros.
1499 (fix_crossing_unconditional_branches): Likewise.
1500 * caller-save.c (save_call_clobbered_regs): Likewise.
1501 (insert_one_insn): Likewise.
1502 * cfgbuild.c (find_bb_boundaries): Likewise.
1503 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1504 (outgoing_edges_match): Likewise.
1505 (try_optimize_cfg): Likewise.
1506 * cfgexpand.c (expand_gimple_cond): Likewise.
1507 (expand_gimple_tailcall): Likewise.
1508 (expand_gimple_basic_block): Likewise.
1509 (construct_exit_block): Likewise.
1510 * cfgrtl.c (delete_insn): Likewise.
1511 (create_basic_block_structure): Likewise.
1512 (rtl_delete_block): Likewise.
1513 (rtl_split_block): Likewise.
1514 (emit_nop_for_unique_locus_between): Likewise.
1515 (rtl_merge_blocks): Likewise.
1516 (block_label): Likewise.
1517 (try_redirect_by_replacing_jump): Likewise.
1518 (emit_barrier_after_bb): Likewise.
1519 (fixup_abnormal_edges): Likewise.
1520 (record_effective_endpoints): Likewise.
1521 (relink_block_chain): Likewise.
1522 (fixup_reorder_chain): Likewise.
1523 (fixup_fallthru_exit_predecessor): Likewise.
1524 (cfg_layout_duplicate_bb): Likewise.
1525 (cfg_layout_split_block): Likewise.
1526 (cfg_layout_delete_block): Likewise.
1527 (cfg_layout_merge_blocks): Likewise.
1528 * combine.c (update_cfg_for_uncondjump): Likewise.
1529 * emit-rtl.c (add_insn_after): Likewise.
1530 (remove_insn): Likewise.
1531 (reorder_insns): Likewise.
1532 (emit_insn_after_1): Likewise.
1533 * haifa-sched.c (get_ebb_head_tail): Likewise.
1534 (restore_other_notes): Likewise.
1535 (move_insn): Likewise.
1536 (sched_extend_bb): Likewise.
1537 (fix_jump_move): Likewise.
1538 * ifcvt.c (noce_process_if_block): Likewise.
1539 (dead_or_predicable): Likewise.
1540 * ira.c (update_equiv_regs): Likewise.
1541 * reg-stack.c (change_stack): Likewise.
1542 * sel-sched-ir.c (sel_move_insn): Likewise.
1543 * sel-sched.c (move_nop_to_previous_block): Likewise.
1544
1545 * config/c6x/c6x.c (hwloop_optimize): Likewise.
1546 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1547
1548 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1549
1550 * rtl.h (for_each_rtx_in_insn): New function.
1551 * rtlanal.c (for_each_rtx_in_insn): Likewise.
1552
1553 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1554
1555 * coretypes.h (class rtx_insn): Add forward declaration.
1556
1557 * rtl.h: Include is-a.h.
1558 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
1559 workaround to ensure gengtype knows inheritance is occurring,
1560 whilst continuing to use the pre-existing special-casing for
1561 rtx_def.
1562 (class rtx_insn): New subclass of rtx_def, adding the
1563 invariant that we're dealing with something we can sanely use
1564 INSN_UID, NEXT_INSN, PREV_INSN on.
1565 (is_a_helper <rtx_insn *>::test): New.
1566 (is_a_helper <const rtx_insn *>::test): New.
1567
1568 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1569
1570 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
1571
1572 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1573
1574 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
1575 comdats as extern.
1576
1577 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1578
1579 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
1580 to BUILT_IN_UNREACHABLE.
1581
1582 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
1583
1584 PR target/62011
1585 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1586 New tune flag.
1587 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1588 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1589 (ffs<mode>2): Do not expand with tzcnt for
1590 TARGET_AVOID_FALSE_DEP_FOR_BMI.
1591 (ffssi2_no_cmove): Ditto.
1592 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1593 (ctz<mode>2): New expander.
1594 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1595 (*ctz<mode>2_falsedep): New insn.
1596 (*ctz<mode>2): Rename from ctz<mode>2.
1597 (clz<mode>2_lzcnt): New expander.
1598 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1599 (*clz<mode>2_lzcnt_falsedep): New insn.
1600 (*clz<mode>2): Rename from ctz<mode>2.
1601 (popcount<mode>2): New expander.
1602 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1603 (*popcount<mode>2_falsedep): New insn.
1604 (*popcount<mode>2): Rename from ctz<mode>2.
1605 (*popcount<mode>2_cmp): Remove.
1606 (*popcountsi2_cmp_zext): Ditto.
1607
1608 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
1609
1610 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
1611 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
1612 * config/microblaze/microblaze.h
1613 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
1614
1615 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
1616
1617 PR other/62168
1618 * configure.ac: Set install_gold_as_default to no for
1619 --enable-gold=no.
1620 * configure: Regenerated.
1621
1622 2014-08-18 Roman Gareev <gareevroman@gmail.com>
1623
1624 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
1625 * config.in: Add undef of HAVE_isl.
1626 * configure: Regenerate.
1627 * configure.ac: Add definition of HAVE_isl.
1628 * graphite-blocking.c: Add checking of HAVE_isl.
1629 * graphite-dependences.c: Likewise.
1630 * graphite-interchange.c: Likewise.
1631 * graphite-isl-ast-to-gimple.c: Likewise.
1632 * graphite-optimize-isl.c: Likewise.
1633 * graphite-poly.c: Likewise.
1634 * graphite-scop-detection.c: Likewise.
1635 * graphite-sese-to-poly.c: Likewise.
1636 * graphite.c: Likewise.
1637 * toplev.c: Replace the checking of HAVE_cloog with the checking
1638 of HAVE_isl.
1639
1640 2014-08-18 Richard Biener <rguenther@suse.de>
1641
1642 PR tree-optimization/62090
1643 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
1644 (fold_builtin_3): Do not fold snprintf.
1645 (fold_builtin_4): Likewise.
1646 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
1647 moved from builtins.c.
1648 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
1649 (gimple_fold_builtin): Do not fold sprintf here.
1650
1651 2014-08-18 Richard Biener <rguenther@suse.de>
1652
1653 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
1654 code to ...
1655 (maybe_canonicalize_mem_ref_addr): ... this function.
1656 (fold_stmt_1): Apply it here before all simplification.
1657
1658 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
1659
1660 PR ipa/61800
1661 * cgraph.h (cgraph_node::create_indirect_edge): Add
1662 compute_indirect_info param.
1663 * cgraph.c (cgraph_node::create_indirect_edge): Compute
1664 indirect_info only when it is required.
1665 * cgraphclones.c (cgraph_clone_edge): Do not recompute
1666 indirect_info fore cloned indirect edge.
1667
1668 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1669 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1670 Anna Tikhonova <anna.tikhonova@intel.com>
1671 Ilya Tocar <ilya.tocar@intel.com>
1672 Andrey Turetskiy <andrey.turetskiy@intel.com>
1673 Ilya Verbin <ilya.verbin@intel.com>
1674 Kirill Yukhin <kirill.yukhin@intel.com>
1675 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1676
1677 * config/i386/sse.md
1678 (define_mode_iterator VI8_AVX2_AVX512BW): New.
1679 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
1680
1681 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1682 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1683 Anna Tikhonova <anna.tikhonova@intel.com>
1684 Ilya Tocar <ilya.tocar@intel.com>
1685 Andrey Turetskiy <andrey.turetskiy@intel.com>
1686 Ilya Verbin <ilya.verbin@intel.com>
1687 Kirill Yukhin <kirill.yukhin@intel.com>
1688 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1689
1690 * config/i386/sse.md
1691 (define_mode_iterator VF1_AVX512VL): New.
1692 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
1693 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
1694 New.
1695
1696 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1697 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1698 Anna Tikhonova <anna.tikhonova@intel.com>
1699 Ilya Tocar <ilya.tocar@intel.com>
1700 Andrey Turetskiy <andrey.turetskiy@intel.com>
1701 Ilya Verbin <ilya.verbin@intel.com>
1702 Kirill Yukhin <kirill.yukhin@intel.com>
1703 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1704
1705 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
1706 * config/i386/i386.md
1707 (define_code_iterator any_float): New.
1708 (define_code_attr floatsuffix): New.
1709 * config/i386/sse.md
1710 (define_mode_iterator VF1_128_256VL): New.
1711 (define_mode_iterator VF2_512_256VL): New.
1712 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
1713 TARGET check.
1714 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
1715 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
1716 New.
1717 (define_mode_attr qq2pssuff): New.
1718 (define_mode_attr sselongvecmode): New.
1719 (define_mode_attr sselongvecmodelower): New.
1720 (define_mode_attr sseintvecmode3): New.
1721 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
1722 New.
1723 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
1724 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
1725 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
1726 (define_insn "ufloatv2siv2df2<mask_name>"): New.
1727
1728 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1729 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1730 Anna Tikhonova <anna.tikhonova@intel.com>
1731 Ilya Tocar <ilya.tocar@intel.com>
1732 Andrey Turetskiy <andrey.turetskiy@intel.com>
1733 Ilya Verbin <ilya.verbin@intel.com>
1734 Kirill Yukhin <kirill.yukhin@intel.com>
1735 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1736
1737 * config/i386/sse.md
1738 (define_mode_iterator VF2_AVX512VL): New.
1739 (define_mode_attr sseintvecmode2): New.
1740 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
1741 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
1742 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
1743 (define_insn
1744 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
1745 Ditto.
1746 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1747 Ditto.
1748 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1749 Ditto.
1750
1751 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1752 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1753 Anna Tikhonova <anna.tikhonova@intel.com>
1754 Ilya Tocar <ilya.tocar@intel.com>
1755 Andrey Turetskiy <andrey.turetskiy@intel.com>
1756 Ilya Verbin <ilya.verbin@intel.com>
1757 Kirill Yukhin <kirill.yukhin@intel.com>
1758 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1759
1760 * config/i386/i386.md
1761 (define_insn "*movoi_internal_avx"): Add evex version.
1762 (define_insn "*movti_internal"): Ditto.
1763
1764 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1765 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1766 Anna Tikhonova <anna.tikhonova@intel.com>
1767 Ilya Tocar <ilya.tocar@intel.com>
1768 Andrey Turetskiy <andrey.turetskiy@intel.com>
1769 Ilya Verbin <ilya.verbin@intel.com>
1770 Kirill Yukhin <kirill.yukhin@intel.com>
1771 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1772
1773 * config/i386/i386.md
1774 (define_attr "isa"): Add avx512dq, noavx512dq.
1775 (define_attr "enabled"): Ditto.
1776 * config/i386/sse.md
1777 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
1778
1779 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1780 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1781 Anna Tikhonova <anna.tikhonova@intel.com>
1782 Ilya Tocar <ilya.tocar@intel.com>
1783 Andrey Turetskiy <andrey.turetskiy@intel.com>
1784 Ilya Verbin <ilya.verbin@intel.com>
1785 Kirill Yukhin <kirill.yukhin@intel.com>
1786 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1787
1788 * config/i386/i386.c
1789 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
1790 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
1791 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
1792 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
1793 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
1794 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
1795 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
1796 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
1797 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
1798 * config/i386/sse.md
1799 (define_mode_iterator VMOVE): Allow V4TI mode.
1800 (define_mode_iterator V_AVX512VL): New.
1801 (define_mode_iterator V): New handling for AVX512VL.
1802 (define_insn "avx512f_load<mode>_mask"): Delete.
1803 (define_insn "<avx512>_load<mode>_mask"): New.
1804 (define_insn "avx512f_store<mode>_mask"): Delete.
1805 (define_insn "<avx512>_store<mode>_mask"): New.
1806
1807
1808 2014-08-18 Yury Gribov <y.gribov@samsung.com>
1809
1810 PR sanitizer/62089
1811 * asan.c (instrument_derefs): Fix bitfield check.
1812
1813 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1814
1815 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
1816 * config/rs6000/htm.md (ttest): Remove clobber.
1817 * config/rs6000/predicates.md (any_mask_operand): New predicate.
1818 (and_operand): Reformat.
1819 (and_2rld_operand): New predicate.
1820 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
1821 parameter.
1822 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
1823 parameter. Handle AND directly.
1824 (rs6000_split_logical_di): Remove last parameter.
1825 (rs6000_split_logical): Remove last parameter. Remove obsolete
1826 comment.
1827 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
1828 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
1829 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
1830 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
1831 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
1832 and 5 anonymous splitters): Delete.
1833 (and<mode>3): New expander.
1834 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
1835 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
1836 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
1837 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
1838 (floatdisf2_internal1): Remove clobbers.
1839 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
1840 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
1841 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
1842 (and<mode>3 for BOOL_128): Remove clobber.
1843 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
1844 rs6000_split_logical.
1845 (*bool<mode>3_internal for BOOL_128): Adjust call of
1846 rs6000_split_logical.
1847 (*boolc<mode>3_internal1 for BOOL_128,
1848 *boolc<mode>3_internal2 for BOOL_128,
1849 *boolcc<mode>3_internal1 for BOOL_128,
1850 *boolcc<mode>3_internal2 for BOOL_128,
1851 *eqv<mode>3_internal1 for BOOL_128,
1852 *eqv<mode>3_internal2 for BOOL_128,
1853 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
1854 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
1855 clobber.
1856 (*vec_reload_and_reg_<mptrsize>): Delete.
1857
1858 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1859
1860 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
1861 and split, *boolccsi3_internal3 and split): Delete.
1862 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
1863 *boolccdi3_internal3 and split): Delete.
1864 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
1865 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
1866
1867 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1868
1869 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
1870 and split, *boolcsi3_internal3 and split): Delete.
1871 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
1872 *boolcdi3_internal3 and split): Delete.
1873 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
1874
1875 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1876
1877 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
1878 <'u'>: Also support printing the low-order 16 bits.
1879 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
1880 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
1881 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
1882 *booldi3_internal3 and split): Delete.
1883 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
1884 *bool<mode>3_dot2): New.
1885 (two anonymous define_splits for non_logical_cint_operand): Merge.
1886
1887 2014-08-17 Marek Polacek <polacek@redhat.com>
1888 Manuel López-Ibáñez <manu@gcc.gnu.org>
1889
1890 PR c/62059
1891 * diagnostic.c (adjust_line): Add gcc_checking_assert.
1892 (diagnostic_show_locus): Don't print caret diagnostic
1893 if a column is larger than the line_width.
1894
1895 2014-08-17 Roman Gareev <gareevroman@gmail.com>
1896
1897 * common.opt: Make the ISL AST generator to be the main code generator
1898 of Graphite.
1899
1900 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
1901
1902 * wide-int.h (generic_wide_int): Declare as class instead of struct.
1903
1904 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
1905
1906 PR target/61641
1907 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
1908 Declare.
1909 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
1910 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
1911 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
1912 Define.
1913 * config/pa/pa.md (begin_brtab): Delete insn.
1914 (end_brtab): Likewise.
1915
1916 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1917
1918 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
1919
1920 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
1921
1922 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1923 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1924 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1925 (get_dynamic_type): Remove.
1926 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1927 (clear_speculation): Bring to ipa-deivrt.h
1928 (get_class_context): Rename to ...
1929 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1930 (contains_type_p): Update.
1931 (get_dynamic_type): Rename to ...
1932 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1933 (possible_polymorphic_call_targets): UPdate.
1934 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1935 * ipa-prop.c (ipa_analyze_call_uses): Update.
1936
1937 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
1938
1939 * doc/invoke.texi (SH options): Document missing processor variant
1940 options. Remove references to Hitachi. Undocument deprecated mspace
1941 option.
1942
1943 2014-08-15 Jason Merrill <jason@redhat.com>
1944
1945 * tree.c (type_hash_canon): Uncomment assert.
1946
1947 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1948
1949 * input.h (in_system_header_at): Add comment.
1950
1951 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1952
1953 PR fortran/44054
1954 * diagnostic.c (build_message_string): Make it extern.
1955 * diagnostic.h (build_message_string): Make it extern.
1956
1957 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
1958
1959 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
1960 load/store from/to non-floating class pseudo.
1961
1962 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1963
1964 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
1965
1966 2014-08-15 Richard Biener <rguenther@suse.de>
1967
1968 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
1969 (get_constraint_for_ssa_var): Remove dead code.
1970 (get_constraint_for_1): Adjust.
1971 (find_what_var_points_to): Likewise.
1972 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
1973
1974 2014-08-15 Ilya Tocar <tocarip@gmail.com>
1975
1976 PR target/61878
1977 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
1978 (_mm512_mask_cmpge_epu32_mask): Ditto.
1979 (_mm512_cmpge_epu32_mask): Ditto.
1980 (_mm512_mask_cmpge_epi64_mask): Ditto.
1981 (_mm512_cmpge_epi64_mask): Ditto.
1982 (_mm512_mask_cmpge_epu64_mask): Ditto.
1983 (_mm512_cmpge_epu64_mask): Ditto.
1984 (_mm512_mask_cmple_epi32_mask): Ditto.
1985 (_mm512_cmple_epi32_mask): Ditto.
1986 (_mm512_mask_cmple_epu32_mask): Ditto.
1987 (_mm512_cmple_epu32_mask): Ditto.
1988 (_mm512_mask_cmple_epi64_mask): Ditto.
1989 (_mm512_cmple_epi64_mask): Ditto.
1990 (_mm512_mask_cmple_epu64_mask): Ditto.
1991 (_mm512_cmple_epu64_mask): Ditto.
1992 (_mm512_mask_cmplt_epi32_mask): Ditto.
1993 (_mm512_cmplt_epi32_mask): Ditto.
1994 (_mm512_mask_cmplt_epu32_mask): Ditto.
1995 (_mm512_cmplt_epu32_mask): Ditto.
1996 (_mm512_mask_cmplt_epi64_mask): Ditto.
1997 (_mm512_cmplt_epi64_mask): Ditto.
1998 (_mm512_mask_cmplt_epu64_mask): Ditto.
1999 (_mm512_cmplt_epu64_mask): Ditto.
2000 (_mm512_mask_cmpneq_epi32_mask): Ditto.
2001 (_mm512_mask_cmpneq_epu32_mask): Ditto.
2002 (_mm512_cmpneq_epu32_mask): Ditto.
2003 (_mm512_mask_cmpneq_epi64_mask): Ditto.
2004 (_mm512_cmpneq_epi64_mask): Ditto.
2005 (_mm512_mask_cmpneq_epu64_mask): Ditto.
2006 (_mm512_cmpneq_epu64_mask): Ditto.
2007 (_mm512_castpd_ps): Ditto.
2008 (_mm512_castpd_si512): Ditto.
2009 (_mm512_castps_pd): Ditto.
2010 (_mm512_castps_si512): Ditto.
2011 (_mm512_castsi512_ps): Ditto.
2012 (_mm512_castsi512_pd): Ditto.
2013 (_mm512_castpd512_pd128): Ditto.
2014 (_mm512_castps512_ps128): Ditto.
2015 (_mm512_castsi512_si128): Ditto.
2016 (_mm512_castpd512_pd256): Ditto.
2017 (_mm512_castps512_ps256): Ditto.
2018 (_mm512_castsi512_si256): Ditto.
2019 (_mm512_castpd128_pd512): Ditto.
2020 (_mm512_castps128_ps512): Ditto.
2021 (_mm512_castsi128_si512): Ditto.
2022 (_mm512_castpd256_pd512): Ditto.
2023 (_mm512_castps256_ps512): Ditto.
2024 (_mm512_castsi256_si512): Ditto.
2025 (_mm512_cmpeq_epu32_mask): Ditto.
2026 (_mm512_mask_cmpeq_epu32_mask): Ditto.
2027 (_mm512_mask_cmpeq_epu64_mask): Ditto.
2028 (_mm512_cmpeq_epu64_mask): Ditto.
2029 (_mm512_cmpgt_epu32_mask): Ditto.
2030 (_mm512_mask_cmpgt_epu32_mask): Ditto.
2031 (_mm512_mask_cmpgt_epu64_mask): Ditto.
2032 (_mm512_cmpgt_epu64_mask): Ditto.
2033 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
2034 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
2035 * config/i386/i386.c (enum ix86_builtins): Add
2036 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
2037 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
2038 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
2039 (bdesc_args): Add __builtin_ia32_si512_256si,
2040 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
2041 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
2042 __builtin_ia32_pd512_pd.
2043 (ix86_expand_args_builtin): Handle new FTYPEs.
2044 * config/i386/sse.md (castmode): Add 512-bit modes.
2045 (AVX512MODE2P): New.
2046 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
2047 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
2048
2049 2014-08-15 Richard Biener <rguenther@suse.de>
2050
2051 * fold-const.c (tree_swap_operands_p): Put all constants
2052 last, also strip sign-changing NOPs when considering further
2053 canonicalization. Canonicalize also when optimizing for size.
2054
2055 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2056
2057 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
2058 one_match > zero_match case to just before simple_sequence.
2059
2060 2014-08-15 Richard Biener <rguenther@suse.de>
2061
2062 * data-streamer.h (streamer_string_index, string_for_index):
2063 Remove.
2064 * data-streamer-out.c (streamer_string_index): Make static.
2065 * data-streamer-in.c (string_for_index): Likewise.
2066 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
2067 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
2068
2069 2014-08-15 Richard Biener <rguenther@suse.de>
2070
2071 PR tree-optimization/62031
2072 * tree-data-ref.c (dr_analyze_indices): Do not set
2073 DR_UNCONSTRAINED_BASE.
2074 (dr_may_alias_p): All indirect accesses have to go the
2075 formerly DR_UNCONSTRAINED_BASE path.
2076 * tree-data-ref.h (struct indices): Remove
2077 unconstrained_base member.
2078 (DR_UNCONSTRAINED_BASE): Remove.
2079
2080 2014-08-15 Jakub Jelinek <jakub@redhat.com>
2081
2082 PR middle-end/62092
2083 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
2084 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
2085 in OMP_CLAUSE_MAP in some outer target region.
2086
2087 2014-08-15 Bin Cheng <bin.cheng@arm.com>
2088
2089 * tree-ssa-loop-ivopts.c (ivopts_data): New field
2090 name_expansion_cache.
2091 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
2092 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
2093 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
2094 (difference_cannot_overflow_p): New parameter. Use affine
2095 expansion for equality check.
2096 (iv_elimination_compare_lt): Pass new argument.
2097
2098 2014-08-14 DJ Delorie <dj@redhat.com>
2099
2100 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
2101 variables to the accumulator.
2102
2103 * config/rl78/predicates.md (rl78_near_mem_operand): New.
2104 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
2105 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
2106 with far-far moves.
2107
2108 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
2109 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
2110 (umulqihi3_virt): Likewise.
2111 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
2112 (umulqihi3_real): Likewise.
2113
2114 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
2115
2116 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
2117
2118 PR tree-optimization/62091
2119 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
2120 function_entry_reached.
2121 (walk_aliased_vdefs): Clear it here.
2122 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
2123
2124 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
2125
2126 * ipa-utils.h (compare_virtual_tables): Declare.
2127 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
2128
2129 2014-08-14 Marek Polacek <polacek@redhat.com>
2130
2131 DR 458
2132 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
2133 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
2134
2135 2014-08-14 Tom de Vries <tom@codesourcery.com>
2136
2137 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
2138
2139 2014-08-14 Tom de Vries <tom@codesourcery.com>
2140
2141 PR rtl-optimization/62004
2142 PR rtl-optimization/62030
2143 * ifcvt.c (rtx_interchangeable_p): New function.
2144 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
2145 * emit-rtl.h (mem_attrs_eq_p): Declare.
2146
2147 2014-08-14 Roman Gareev <gareevroman@gmail.com>
2148
2149 * graphite-scop-detection.c:
2150 Add inclusion of cp-tree.h.
2151 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
2152 in case they are pointers to object types
2153
2154 2014-08-14 Richard Biener <rguenther@suse.de>
2155
2156 * BASE-VER: Change to 5.0.0
2157
2158 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2159 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2160 Anna Tikhonova <anna.tikhonova@intel.com>
2161 Ilya Tocar <ilya.tocar@intel.com>
2162 Andrey Turetskiy <andrey.turetskiy@intel.com>
2163 Ilya Verbin <ilya.verbin@intel.com>
2164 Kirill Yukhin <kirill.yukhin@intel.com>
2165 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2166
2167 * config/i386/sse.md (define_mode_attr avx512): New.
2168 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
2169 V4DI modes.
2170 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
2171 (define_mode_attr ssse3_avx2): Ditto.
2172 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
2173 (define_mode_attr avx2_avx512bw): New.
2174 (define_mode_attr ssedoublemodelower): New.
2175 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
2176 V32HI, V64QI modes.
2177 (define_mode_attr ssebytemode): Allow V8DI modes.
2178 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
2179 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
2180 (define_mode_attr ssePSmode2): New.
2181 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
2182 V16HI, V32HI modes.
2183 (define_mode_attr dbpsadbwmode): New.
2184 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
2185 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
2186 (vi8_sse4_1_avx2_avx512): New.
2187 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
2188 mode attribute.
2189 (define_mode_attr blendbits): Move before its immediate use.
2190
2191 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2192 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2193 Anna Tikhonova <anna.tikhonova@intel.com>
2194 Ilya Tocar <ilya.tocar@intel.com>
2195 Andrey Turetskiy <andrey.turetskiy@intel.com>
2196 Ilya Verbin <ilya.verbin@intel.com>
2197 Kirill Yukhin <kirill.yukhin@intel.com>
2198 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2199
2200 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
2201 * config/i386/subst.md
2202 (define_mode_iterator SUBST_V): Update.
2203 (define_mode_iterator SUBST_A): Ditto.
2204 (define_subst_attr "mask_operand7"): New.
2205 (define_subst_attr "mask_operand10"): New.
2206 (define_subst_attr "mask_operand_arg34") : New.
2207 (define_subst_attr "mask_expand_op3"): New.
2208 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
2209 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
2210 (define_subst_attr "mask_avx512vl_condition"): New.
2211 (define_subst_attr "round_mask_operand4"): Ditto.
2212 (define_subst_attr "round_mask_scalar_op3"): Delete.
2213 (define_subst_attr "round_mask_op4"): New.
2214 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
2215 V16SImode.
2216 (define_subst_attr "round_modev8sf_condition"): New.
2217 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
2218 <MODE>mode.
2219 (define_subst_attr "round_saeonly_mask_operand4"): New.
2220 (define_subst_attr "round_saeonly_mask_op4"): New.
2221 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
2222 V8DImode, V16SImode.
2223 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
2224 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
2225 (define_subst_attr "mask_expand4_args"): New.
2226 (define_subst "mask_expand4"): New.
2227
2228 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2229 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2230 Anna Tikhonova <anna.tikhonova@intel.com>
2231 Ilya Tocar <ilya.tocar@intel.com>
2232 Andrey Turetskiy <andrey.turetskiy@intel.com>
2233 Ilya Verbin <ilya.verbin@intel.com>
2234 Kirill Yukhin <kirill.yukhin@intel.com>
2235 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2236
2237 * config/i386/i386.md
2238 (define_attr "isa"): Add avx512bw,noavx512bw.
2239 (define_attr "enabled"): Ditto.
2240 (define_split): Add 32/64-bit mask logic.
2241 (define_insn "*k<logic>qi"): New.
2242 (define_insn "*k<logic>hi"): New.
2243 (define_insn "*anddi_1"): Add mask version.
2244 (define_insn "*andsi_1"): Ditto.
2245 (define_insn "*<code><mode>_1"): Ditto.
2246 (define_insn "*<code>hi_1"): Ditto.
2247 (define_insn "kxnor<mode>"): New.
2248 (define_insn "kunpcksi"): New.
2249 (define_insn "kunpckdi"): New.
2250 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
2251 (define_insn "*one_cmplhi2_1"): Ditto.
2252
2253 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2254 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2255 Anna Tikhonova <anna.tikhonova@intel.com>
2256 Ilya Tocar <ilya.tocar@intel.com>
2257 Andrey Turetskiy <andrey.turetskiy@intel.com>
2258 Ilya Verbin <ilya.verbin@intel.com>
2259 Kirill Yukhin <kirill.yukhin@intel.com>
2260 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2261
2262 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
2263 V32HImode.
2264
2265 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2266 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2267 Anna Tikhonova <anna.tikhonova@intel.com>
2268 Ilya Tocar <ilya.tocar@intel.com>
2269 Andrey Turetskiy <andrey.turetskiy@intel.com>
2270 Ilya Verbin <ilya.verbin@intel.com>
2271 Kirill Yukhin <kirill.yukhin@intel.com>
2272 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2273
2274 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
2275 registers.
2276 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
2277 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
2278 xmm/ymm16+ when availble.
2279 * config/i386/i386.h
2280 (HARD_REGNO_NREGS): Add mask regs.
2281 (VALID_AVX512F_REG_MODE): Ditto.
2282 (VALID_AVX512F_REG_MODE) : Define.
2283 (VALID_MASK_AVX512BW_MODE): Ditto.
2284 (reg_class) (MASK_REG_P(X)): Define.
2285 * config/i386/i386.md: Do not split long moves with mask register,
2286 use kmovb if avx512bw is availible.
2287 (movdi_internal): Handle mask registers.
2288
2289 2014-08-14 Richard Biener <rguenther@suse.de>
2290
2291 PR tree-optimization/62081
2292 * tree-ssa-loop.c (pass_fix_loops): New pass.
2293 (pass_tree_loop::gate): Do not fixup loops here.
2294 * tree-pass.h (make_pass_fix_loops): Declare.
2295 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
2296
2297 2014-08-14 Richard Biener <rguenther@suse.de>
2298
2299 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
2300 (type_hash_canon): ... this and avoid 2nd lookup for the add.
2301
2302 2014-08-14 Richard Biener <rguenther@suse.de>
2303
2304 PR tree-optimization/62090
2305 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
2306 (fold_builtin_2): Do not fold sprintf.
2307 (fold_builtin_3): Likewise.
2308 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
2309 moved from builtins.c.
2310 (gimple_fold_builtin): Fold sprintf.
2311
2312 2014-08-14 Richard Biener <rguenther@suse.de>
2313
2314 PR rtl-optimization/62079
2315 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
2316 run cleanup_cfg.
2317
2318 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
2319
2320 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
2321 current_function_decl.
2322
2323 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
2324
2325 * cgraph.c (cgraph_node::function_symbol): Fix wrong
2326 cgraph_function_node to cgraph_node::function_symbol
2327 refactoring.
2328
2329 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
2330
2331 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
2332 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
2333
2334 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
2335
2336 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
2337 warning.
2338
2339 2014-08-13 Roman Gareev <gareevroman@gmail.com>
2340
2341 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
2342 generator.
2343
2344 2014-08-12 Jakub Jelinek <jakub@redhat.com>
2345
2346 PR target/62025
2347 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
2348 any registers that are used in mem_insn.
2349
2350 2014-08-12 Steve Ellcey <sellcey@mips.com>
2351
2352 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
2353
2354 2014-08-12 Steve Ellcey <sellcey@mips.com>
2355
2356 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
2357 (MULTILIB_DIRNAMES): Ditto.
2358 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
2359 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
2360 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
2361 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
2362 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
2363 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
2364
2365 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2366
2367 PR target/61413
2368 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
2369 of __ARM_SIZEOF_WCHAR_T.
2370
2371 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2372
2373 PR target/62098
2374 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
2375 Remove unnecessary attributes.
2376
2377 2014-08-12 Yury Gribov <y.gribov@samsung.com>
2378
2379 * internal-fn.c (init_internal_fns): Fix off-by-one.
2380
2381 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2382 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2383 Anna Tikhonova <anna.tikhonova@intel.com>
2384 Ilya Tocar <ilya.tocar@intel.com>
2385 Andrey Turetskiy <andrey.turetskiy@intel.com>
2386 Ilya Verbin <ilya.verbin@intel.com>
2387 Kirill Yukhin <kirill.yukhin@intel.com>
2388 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2389
2390 * config/i386/i386.c (standard_sse_constant_opcode): Use
2391 vpxord/vpternlog if avx512 is availible.
2392
2393 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
2394
2395 PR middle-end/62103
2396 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
2397 bitfields, that is when size doesn't match the size of type or the
2398 size of the constructor.
2399
2400 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2401
2402 * config/rs6000/constraints.md (wh constraint): New constraint,
2403 for FP registers if direct move is available.
2404 (wi constraint): New constraint, for VSX/FP registers that can
2405 handle 64-bit integers.
2406 (wj constraint): New constraint for VSX/FP registers that can
2407 handle 64-bit integers for direct moves.
2408 (wk constraint): New constraint for VSX/FP registers that can
2409 handle 64-bit doubles for direct moves.
2410 (wy constraint): Make documentation match implementation.
2411
2412 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
2413 scalar_in_vmx_p field to simplify tests of whether SFmode or
2414 DFmode can go in the Altivec registers.
2415 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
2416 (rs6000_setup_reg_addr_masks): Likewise.
2417 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
2418 field, and wh/wi/wj/wk constraints.
2419 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
2420 the wh/wi/wj/wk constraints.
2421 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
2422 upper registers, prefer VSX registers unless the operation is a
2423 memory operation with REG+OFFSET addressing.
2424
2425 * config/rs6000/vsx.md (VSr mode attribute): Add support for
2426 DImode. Change SFmode to use ww constraint instead of d to allow
2427 SF registers in the upper registers.
2428 (VSr2): Likewise.
2429 (VSr3): Likewise.
2430 (VSr5): Fix thinko in comment.
2431 (VSa): New mode attribute that is an alternative to wa, that
2432 returns the VSX register class that a mode can go in, but may not
2433 be the preferred register class.
2434 (VS_64dm): New mode attribute for appropriate register classes for
2435 referencing 64-bit elements of vectors for direct moves and normal
2436 moves.
2437 (VS_64reg): Likewise.
2438 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
2439 register allocator to only registers the data type can handle.
2440 (vsx_le_perm_load_<mode>): Likewise.
2441 (vsx_le_perm_store_<mode>): Likewise.
2442 (vsx_xxpermdi2_le_<mode>): Likewise.
2443 (vsx_xxpermdi4_le_<mode>): Likewise.
2444 (vsx_lxvd2x2_le_<mode>): Likewise.
2445 (vsx_lxvd2x4_le_<mode>): Likewise.
2446 (vsx_stxvd2x2_le_<mode>): Likewise.
2447 (vsx_add<mode>3): Likewise.
2448 (vsx_sub<mode>3): Likewise.
2449 (vsx_mul<mode>3): Likewise.
2450 (vsx_div<mode>3): Likewise.
2451 (vsx_tdiv<mode>3_internal): Likewise.
2452 (vsx_fre<mode>2): Likewise.
2453 (vsx_neg<mode>2): Likewise.
2454 (vsx_abs<mode>2): Likewise.
2455 (vsx_nabs<mode>2): Likewise.
2456 (vsx_smax<mode>3): Likewise.
2457 (vsx_smin<mode>3): Likewise.
2458 (vsx_sqrt<mode>2): Likewise.
2459 (vsx_rsqrte<mode>2): Likewise.
2460 (vsx_tsqrt<mode>2_internal): Likewise.
2461 (vsx_fms<mode>4): Likewise.
2462 (vsx_nfma<mode>4): Likewise.
2463 (vsx_eq<mode>): Likewise.
2464 (vsx_gt<mode>): Likewise.
2465 (vsx_ge<mode>): Likewise.
2466 (vsx_eq<mode>_p): Likewise.
2467 (vsx_gt<mode>_p): Likewise.
2468 (vsx_ge<mode>_p): Likewise.
2469 (vsx_xxsel<mode>): Likewise.
2470 (vsx_xxsel<mode>_uns): Likewise.
2471 (vsx_copysign<mode>3): Likewise.
2472 (vsx_float<VSi><mode>2): Likewise.
2473 (vsx_floatuns<VSi><mode>2): Likewise.
2474 (vsx_fix_trunc<mode><VSi>2): Likewise.
2475 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
2476 (vsx_x<VSv>r<VSs>i): Likewise.
2477 (vsx_x<VSv>r<VSs>ic): Likewise.
2478 (vsx_btrunc<mode>2): Likewise.
2479 (vsx_b2trunc<mode>2): Likewise.
2480 (vsx_floor<mode>2): Likewise.
2481 (vsx_ceil<mode>2): Likewise.
2482 (vsx_<VS_spdp_insn>): Likewise.
2483 (vsx_xscvspdp): Likewise.
2484 (vsx_xvcvspuxds): Likewise.
2485 (vsx_float_fix_<mode>2): Likewise.
2486 (vsx_set_<mode>): Likewise.
2487 (vsx_extract_<mode>_internal1): Likewise.
2488 (vsx_extract_<mode>_internal2): Likewise.
2489 (vsx_extract_<mode>_load): Likewise.
2490 (vsx_extract_<mode>_store): Likewise.
2491 (vsx_splat_<mode>): Likewise.
2492 (vsx_xxspltw_<mode>): Likewise.
2493 (vsx_xxspltw_<mode>_direct): Likewise.
2494 (vsx_xxmrghw_<mode>): Likewise.
2495 (vsx_xxmrglw_<mode>): Likewise.
2496 (vsx_xxsldwi_<mode>): Likewise.
2497 (vsx_xscvdpspn): Tighten constraints to only use register classes
2498 the types use.
2499 (vsx_xscvspdpn): Likewise.
2500 (vsx_xscvdpspn_scalar): Likewise.
2501
2502 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
2503 wj, and wk constraints.
2504 (GPR_REG_CLASS_P): New helper macro for register classes targeting
2505 general purpose registers.
2506
2507 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
2508 direct moves.
2509 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
2510 DImode instead of wm. Use wk constraint for direct move of DFmode
2511 instead of wm.
2512 (extendsidi2_lfiwax): Likewise.
2513 (lfiwax): Likewise.
2514 (lfiwzx): Likewise.
2515 (movdi_internal64): Likewise.
2516
2517 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
2518 wk constraints. Make the wy constraint documentation match them
2519 implementation.
2520
2521 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
2522
2523 Replacement of isl_int by isl_val
2524 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
2525 (compute_bounds_for_param): use isl_val instead of isl_int
2526 (compute_bounds_for_loop): likewise
2527 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
2528 (build_linearized_memory_access): use isl_val instead of isl_int
2529 (pdr_stride_in_loop): likewise
2530 * graphite-optimize-isl.c:
2531 (getPrevectorMap): use isl_val instead of isl_int
2532 * graphite-poly.c:
2533 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
2534 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
2535 (extern the_isl_ctx): declare
2536 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
2537 (extract_affine_gmp): likewise
2538 (wrap): likewise
2539 (build_loop_iteration_domains): likewise
2540 (add_param_constraints): likewise
2541
2542 2014-08-11 Richard Biener <rguenther@suse.de>
2543
2544 PR tree-optimization/62075
2545 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
2546 handle uses in patterns.
2547
2548 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2549 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2550 Anna Tikhonova <anna.tikhonova@intel.com>
2551 Ilya Tocar <ilya.tocar@intel.com>
2552 Andrey Turetskiy <andrey.turetskiy@intel.com>
2553 Ilya Verbin <ilya.verbin@intel.com>
2554 Kirill Yukhin <kirill.yukhin@intel.com>
2555 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2556
2557 * common/config/i386/i386-common.c
2558 (OPTION_MASK_ISA_AVX512VL_SET): Define.
2559 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
2560 (ix86_handle_option): Handle OPT_mavx512vl.
2561 * config/i386/cpuid.h (bit_AVX512VL): Define.
2562 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
2563 set -mavx512vl accordingly.
2564 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2565 OPTION_MASK_ISA_AVX512VL.
2566 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
2567 (ix86_option_override_internal): Define PTA_AVX512VL, handle
2568 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
2569 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
2570 * config/i386/i386.h (TARGET_AVX512VL): Define.
2571 (TARGET_AVX512VL_P(x)): Ditto.
2572 * config/i386/i386.opt: Add mavx512vl.
2573
2574 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
2575
2576 PR tree-optimization/62073
2577 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
2578 a basic block.
2579
2580 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2581 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2582 Anna Tikhonova <anna.tikhonova@intel.com>
2583 Ilya Tocar <ilya.tocar@intel.com>
2584 Andrey Turetskiy <andrey.turetskiy@intel.com>
2585 Ilya Verbin <ilya.verbin@intel.com>
2586 Kirill Yukhin <kirill.yukhin@intel.com>
2587 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2588
2589 * common/config/i386/i386-common.c
2590 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
2591 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
2592 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
2593 (ix86_handle_option): Handle OPT_mavx512bw.
2594 * config/i386/cpuid.h (bit_AVX512BW): Define.
2595 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
2596 set -mavx512bw accordingly.
2597 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2598 OPTION_MASK_ISA_AVX512BW.
2599 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
2600 (ix86_option_override_internal): Define PTA_AVX512BW, handle
2601 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
2602 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
2603 * config/i386/i386.h (TARGET_AVX512BW): Define.
2604 (TARGET_AVX512BW_P(x)): Ditto.
2605 * config/i386/i386.opt: Add mavx512bw.
2606
2607 2014-08-11 Richard Biener <rguenther@suse.de>
2608
2609 PR tree-optimization/62070
2610 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
2611 Remove SSA checking.
2612
2613 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2614
2615 * asan.c (asan_check_flags): New enum.
2616 (build_check_stmt_with_calls): Removed function.
2617 (build_check_stmt): Split inlining logic to
2618 asan_expand_check_ifn.
2619 (instrument_derefs): Rename parameter.
2620 (instrument_mem_region_access): Rename parameter.
2621 (instrument_strlen_call): Likewise.
2622 (asan_expand_check_ifn): New function.
2623 (asan_instrument): Remove old code.
2624 (pass_sanopt::execute): Change handling of
2625 asan-instrumentation-with-call-threshold.
2626 (asan_clear_shadow): Fix formatting.
2627 (asan_function_start): Likewise.
2628 (asan_emit_stack_protection): Likewise.
2629 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
2630 Update description.
2631 * internal-fn.c (expand_ASAN_CHECK): New function.
2632 * internal-fn.def (ASAN_CHECK): New internal function.
2633 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
2634 Update description.
2635 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
2636 * tree.c: Small comment fix.
2637
2638 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2639
2640 * gimple.c (gimple_call_fnspec): Support internal functions.
2641 (gimple_call_return_flags): Use const.
2642 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
2643 * internal-fn.def: Add fnspec information.
2644 * internal-fn.h (internal_fn_fnspec): New function.
2645 (init_internal_fns): Declare new function.
2646 * internal-fn.c (internal_fn_fnspec_array): New global variable.
2647 (init_internal_fns): New function.
2648 * tree-core.h: Update macro call.
2649 * tree.c (build_common_builtin_nodes): Initialize internal fns.
2650
2651 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
2652
2653 * lto-streamer.h (struct output_block::symbol): Change from
2654 struct symtab_node to plain symtab_node.
2655 (referenced_from_this_partition_p): Change first parameter
2656 from struct symtab_node to plain symtab_node.
2657
2658 2014-08-10 Marek Polacek <polacek@redhat.com>
2659
2660 PR c/51849
2661 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
2662
2663 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
2664
2665 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
2666 DECL correctly; do not give up on types in static storage.
2667
2668 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
2669
2670 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
2671
2672 2014-08-09 Roman Gareev <gareevroman@gmail.com>
2673
2674 * graphite-isl-ast-to-gimple.c:
2675 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
2676
2677 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
2678
2679 2014-08-08 Guozhi Wei <carrot@google.com>
2680
2681 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
2682
2683 2014-08-08 Cary Coutant <ccoutant@google.com>
2684
2685 * dwarf2out.c (get_skeleton_type_unit): Remove.
2686 (output_skeleton_debug_sections): Remove skeleton type units.
2687 (output_comdat_type_unit): Likewise.
2688 (dwarf2out_finish): Likewise.
2689
2690 2014-08-07 Yi Yang <ahyangyi@google.com>
2691
2692 * predict.c (expr_expected_value_1): Remove the redundant assignment.
2693
2694 2014-08-08 Richard Biener <rguenther@suse.de>
2695
2696 * lto-streamer.h (struct lto_input_block): Make it a class
2697 with a constructor.
2698 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
2699 (struct lto_function_header, struct lto_simple_header,
2700 struct lto_simple_header_with_strings,
2701 struct lto_decl_header, struct lto_function_header): Make
2702 a simple inheritance hieararchy. Remove unused fields.
2703 (struct lto_asm_header): Remove.
2704 * lto-streamer-out.c (produce_asm): Adjust.
2705 (lto_output_toplevel_asms): Likewise.
2706 (produce_asm_for_decls): Likewise.
2707 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2708 * data-streamer-in.c (string_for_index): Likewise.
2709 * ipa-inline-analysis.c (inline_read_section): Likewise.
2710 * ipa-prop.c (ipa_prop_read_section): Likewise.
2711 (read_replacements_section): Likewise.
2712 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
2713 * lto-section-in.c (lto_create_simple_input_block): Likewise.
2714 (lto_destroy_simple_input_block): Likewise.
2715 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
2716 (lto_input_toplevel_asms): Likewise.
2717
2718 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2719 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2720 Anna Tikhonova <anna.tikhonova@intel.com>
2721 Ilya Tocar <ilya.tocar@intel.com>
2722 Andrey Turetskiy <andrey.turetskiy@intel.com>
2723 Ilya Verbin <ilya.verbin@intel.com>
2724 Kirill Yukhin <kirill.yukhin@intel.com>
2725 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2726
2727 * common/config/i386/i386-common.c
2728 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
2729 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
2730 (ix86_handle_option): Handle OPT_mavx512dq.
2731 * config/i386/cpuid.h (bit_AVX512DQ): Define.
2732 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
2733 set -mavx512dq accordingly.
2734 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2735 OPTION_MASK_ISA_AVX512DQ.
2736 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
2737 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
2738 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
2739 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
2740 * config/i386/i386.h (TARGET_AVX512DQ): Define.
2741 (TARGET_AVX512DQ_P(x)): Ditto.
2742 * config/i386/i386.opt: Add mavx512dq.
2743
2744 2014-08-08 Richard Biener <rguenther@suse.de>
2745
2746 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
2747 target_percent, target_percent_s): Export.
2748 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
2749 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
2750 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
2751 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
2752 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
2753 Move to gimple-fold.c.
2754 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
2755 strcat and strcpy.
2756 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
2757 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
2758 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
2759 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
2760 (rewrite_call_expr_array): Remove.
2761 (fold_builtin_sprintf_chk): Likewise.
2762 (fold_builtin_snprintf_chk): Likewise.
2763 (fold_builtin_varargs): Remove handling of sprintf_chk,
2764 vsprintf_chk, snprintf_chk and vsnprintf_chk.
2765 (gimple_fold_builtin_sprintf_chk): Remove.
2766 (gimple_fold_builtin_snprintf_chk): Likewise.
2767 (gimple_fold_builtin_varargs): Likewise.
2768 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
2769 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
2770 * gimple.c (gimple_seq_add_seq_without_update): New function.
2771 * gimple.h (gimple_seq_add_seq_without_update): Declare.
2772 * gimple-fold.c: Include output.h.
2773 (gsi_replace_with_seq_vops): New function, split out from ...
2774 (gimplify_and_update_call_from_tree): ... here.
2775 (replace_call_with_value): New function.
2776 (replace_call_with_call_and_fold): Likewise.
2777 (var_decl_component_p): Moved from builtins.c.
2778 (gimple_fold_builtin_memory_op): Moved from builtins.c
2779 fold_builtin_memory_op and rewritten to GIMPLE.
2780 (gimple_fold_builtin_memset): Likewise.
2781 (gimple_fold_builtin_strcpy): Likewise.
2782 (gimple_fold_builtin_strncpy): Likewise.
2783 (gimple_fold_builtin_strcat): Likewise.
2784 (gimple_fold_builtin_fputs): Likewise.
2785 (gimple_fold_builtin_memory_chk): Likewise.
2786 (gimple_fold_builtin_stxcpy_chk): Likewise.
2787 (gimple_fold_builtin_stxncpy_chk): Likewise.
2788 (gimple_fold_builtin_snprintf_chk): Likewise.
2789 (gimple_fold_builtin_sprintf_chk): Likewise.
2790 (gimple_fold_builtin_strlen): New function.
2791 (gimple_fold_builtin_with_strlen): New function split out from
2792 gimple_fold_builtin.
2793 (gimple_fold_builtin): Change signature and handle
2794 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
2795 here. Call gimple_fold_builtin_with_strlen.
2796 (gimple_fold_call): Adjust.
2797
2798 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2799
2800 * calls.c (precompute_arguments): Check
2801 promoted_for_signed_and_unsigned_p and set the promoted mode.
2802 (promoted_for_signed_and_unsigned_p): New function.
2803 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2804 and set the promoted mode.
2805 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2806 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2807 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2808
2809
2810 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2811
2812 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
2813 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2814 (expand_call): Likewise.
2815 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
2816 to get promoted mode.
2817 * combine.c (record_promoted_value): Skip > 0 comparison with
2818 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
2819 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
2820 of SUBREG_PROMOTED_UNSIGNED_P.
2821 (convert_modes): Likewise.
2822 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
2823 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
2824 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
2825 SUBREG_PROMOTED_UNSIGNED_SET.
2826 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
2827 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2828 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
2829 SUBREG_PROMOTED_SET.
2830 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
2831 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
2832 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
2833 of SUBREG_PROMOTED_UNSIGNED_P.
2834 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
2835 (SUBREG_PROMOTED_SET): New define.
2836 (SUBREG_PROMOTED_GET): Likewise.
2837 (SUBREG_PROMOTED_SIGN): Likewise.
2838 (SUBREG_PROMOTED_SIGNED_P): Likewise.
2839 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
2840 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
2841 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
2842 instead of SUBREG_PROMOTED_UNSIGNED_GET.
2843 (nonzero_bits1): Skip > 0 comparison with the results as
2844 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
2845 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
2846 of !SUBREG_PROMOTED_UNSIGNED_P.
2847 * simplify-rtx.c (simplify_unary_operation_1): Use new
2848 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
2849 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
2850 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
2851 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
2852
2853 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
2854
2855 * ipa-devirt.c: Include gimple-pretty-print.h
2856 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
2857 further tests.
2858 (decl_maybe_in_construction_p): Fix conditional on cdtor check
2859 (get_polymorphic_call_info): Fix return value
2860 (type_change_info): New sturcture based on ipa-prop
2861 variant.
2862 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
2863 based on ipa-prop variant.
2864 (extr_type_from_vtbl_ptr_store): New function
2865 based on ipa-prop variant.
2866 (record_known_type): New function.
2867 (check_stmt_for_type_change): New function.
2868 (get_dynamic_type): New function.
2869 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
2870 * tree-ssa-pre.c: ipa-utils.h
2871 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
2872 machinery; sanity check with ipa-prop devirtualization.
2873 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
2874 polymorphic flag.
2875
2876 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2877
2878 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
2879 * alias.c, cfgexpand.c, cgraphbuild.c,
2880 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
2881 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
2882 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
2883 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
2884 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
2885 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2886 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
2887 dse.c, except.c, gengtype.c, gimple-expr.c,
2888 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
2889 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
2890 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
2891 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
2892 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2893 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
2894 pointer-set.h.
2895 * pointer-set.c: Remove file.
2896 * pointer-set.h: Remove file.
2897
2898 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2899
2900 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
2901 * config/arm/types.md (f_sels, f_seld): Delete.
2902
2903 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2904
2905 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
2906 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
2907 (aarch64_movdi_<mode>high): Likewise.
2908 (aarch64_mov<mode>high_di): Likewise.
2909 (aarch64_movdi_<mode>low): Likewise.
2910 (aarch64_mov<mode>low_di): Likewise.
2911 (aarch64_movtilow_tilow): Likewise.
2912 Add comment explaining usage of fp,simd attributes and of
2913 TARGET_FLOAT and TARGET_SIMD.
2914
2915 2014-08-07 Ian Bolton <ian.bolton@arm.com>
2916 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2917
2918 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
2919 Use MOVN when one of the half-words is 0xffff.
2920
2921 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2922
2923 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
2924
2925 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2926
2927 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
2928 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
2929 (rfs_str): String corresponding to RFS_* constants.
2930 (rank_for_schedule_stats_t): New typedef.
2931 (rank_for_schedule_stats): New static variable.
2932 (rfs_result): New static function.
2933 (rank_for_schedule): Track statistics for deciding heuristics.
2934 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
2935 static functions.
2936 (ready_sort): Use them for debug printouts.
2937 (schedule_block): Init statistics state. Print statistics on
2938 rank_for_schedule decisions.
2939
2940 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2941
2942 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
2943
2944 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
2945
2946 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
2947 constraint.
2948
2949 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2950
2951 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
2952 function to not conflict.
2953 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
2954 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
2955 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
2956 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
2957 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
2958 of pointer_map.
2959
2960 2014-08-07 Marek Polacek <polacek@redhat.com>
2961
2962 * fold-const.c (fold_binary_loc): Add folding of
2963 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
2964
2965 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
2966
2967 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
2968 instead of type size.
2969 (ASM_FINISH_DECLARE_OBJECT): Likewise.
2970
2971 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2972
2973 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
2974 (*thumb1_movqi_insn): Likewise.
2975 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
2976
2977 2014-08-07 Tom de Vries <tom@codesourcery.com>
2978
2979 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2980 (glibc_2_11_or_earlier): Remove effective-target keywords.
2981
2982 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2983
2984 * config/arm/arm.c (bdesc_2arg): Fix typo.
2985 (arm_atomic_assign_expand_fenv): Remove The default implementation.
2986
2987 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
2988
2989 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
2990
2991 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
2992
2993 PR debug/61923
2994 * haifa-sched.c (advance_one_cycle): Fix dump.
2995 (schedule_block): Don't advance cycle if we are already at the
2996 beginning of the cycle.
2997
2998 2014-08-06 Martin Jambor <mjambor@suse.cz>
2999
3000 PR ipa/61393
3001 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
3002
3003 2014-08-06 Richard Biener <rguenther@suse.de>
3004
3005 PR lto/62034
3006 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
3007 SCCs here.
3008 (lto_input_tree): Pop SCCs here.
3009
3010 2014-08-06 Richard Biener <rguenther@suse.de>
3011
3012 PR tree-optimization/61320
3013 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
3014 handle misaligned loads.
3015
3016 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
3017
3018 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
3019 (aarch64_expand_vec_perm_const): Check for dup before zip.
3020
3021 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3022
3023 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
3024 CONST_INT_P instead of GET_CODE and compare.
3025 (aarch64_select_cc_mode): Likewise.
3026 (aarch64_print_operand): Likewise.
3027 (aarch64_rtx_costs): Likewise.
3028 (aarch64_simd_valid_immediate): Likewise.
3029 (aarch64_simd_check_vect_par_cnst_half): Likewise.
3030 (aarch64_simd_emit_pair_result_insn): Likewise.
3031
3032 2014-08-05 David Malcolm <dmalcolm@redhat.com>
3033
3034 * gdbhooks.py (find_gcc_source_dir): New helper function.
3035 (class PassNames): New class, locating and parsing passes.def.
3036 (class BreakOnPass): New command "break-on-pass".
3037
3038 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
3039
3040 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
3041 getting olde.
3042
3043 2014-08-05 Richard Biener <rguenther@suse.de>
3044
3045 PR rtl-optimization/61672
3046 * emit-rtl.h (mem_attrs_eq_p): Declare.
3047 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
3048 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
3049 * cfgcleanup.c (merge_memattrs): Likewise.
3050 Include emit-rtl.h.
3051
3052 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3053
3054 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
3055 rather than singleton vectors.
3056 (vqdmlsls_lane_s32): Likewise.
3057
3058 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3059
3060 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
3061 Use VSDQ_HSI mode iterator.
3062 (aarch64_sqrdmulh_laneq<mode>): Likewise.
3063 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
3064 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
3065 Use BUILTIN_VDQHS macro.
3066 (sqrdmulh_laneq): Likewise.
3067 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
3068 (vqdmlals_laneq_s32): Likewise.
3069 (vqdmlslh_laneq_s16): Likewise.
3070 (vqdmlsls_laneq_s32): Likewise.
3071 (vqdmulhh_laneq_s16): Likewise.
3072 (vqdmulhs_laneq_s32): Likewise.
3073 (vqrdmulhh_laneq_s16): Likewise.
3074 (vqrdmulhs_laneq_s32): Likewise.
3075
3076 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3077
3078 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
3079 (vmuld_laneq_f64): Likewise.
3080 (vmuls_laneq_f32): Likewise.
3081 (vmul_n_f64): Likewise.
3082 (vmuld_lane_f64): Reimplement in C.
3083 (vmuls_lane_f32): Likewise.
3084
3085 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3086
3087 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
3088 to reservation.
3089 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
3090
3091 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3092
3093 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
3094 (rbitsi2): Likewise.
3095 (*arm_rev): Set predicable and predicable_short_it attributes.
3096
3097 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3098
3099 * convert.c (convert_to_integer): Guard transformation to lrint by
3100 -fno-math-errno.
3101
3102 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
3103
3104 * config/aarch64/aarch64-builtins.c
3105 (aarch64_simd_builtin_type_mode): Delete.
3106 (v8qi_UP): Remap to V8QImode.
3107 (v4hi_UP): Remap to V4HImode.
3108 (v2si_UP): Remap to V2SImode.
3109 (v2sf_UP): Remap to V2SFmode.
3110 (v1df_UP): Remap to V1DFmode.
3111 (di_UP): Remap to DImode.
3112 (df_UP): Remap to DFmode.
3113 (v16qi_UP):V16QImode.
3114 (v8hi_UP): Remap to V8HImode.
3115 (v4si_UP): Remap to V4SImode.
3116 (v4sf_UP): Remap to V4SFmode.
3117 (v2di_UP): Remap to V2DImode.
3118 (v2df_UP): Remap to V2DFmode.
3119 (ti_UP): Remap to TImode.
3120 (ei_UP): Remap to EImode.
3121 (oi_UP): Remap to OImode.
3122 (ci_UP): Map to CImode.
3123 (xi_UP): Remap to XImode.
3124 (si_UP): Remap to SImode.
3125 (sf_UP): Remap to SFmode.
3126 (hi_UP): Remap to HImode.
3127 (qi_UP): Remap to QImode.
3128 (aarch64_simd_builtin_datum): Make mode a machine_mode.
3129 (VAR1): Build builtin name.
3130 (aarch64_init_simd_builtins): Remove dead code.
3131
3132 2014-08-05 Roman Gareev <gareevroman@gmail.com>
3133
3134 * graphite-isl-ast-to-gimple.c:
3135 (set_options): New function.
3136 (scop_to_isl_ast): Add calling of set_options.
3137
3138 2014-08-05 Jakub Jelinek <jakub@redhat.com>
3139
3140 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
3141 (analyze_iv_to_split_insn): Don't initialize them.
3142 (get_ivts_expr): Removed.
3143 (allocate_basic_variable, insert_base_initialization): Use
3144 SET_SRC instead of *get_ivts_expr.
3145 (split_iv): Use &SET_SRC instead of get_ivts_expr.
3146
3147 2014-08-05 Roman Gareev <gareevroman@gmail.com>
3148
3149 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
3150 (translate_isl_ast_for_loop): Add checking of the
3151 flag_loop_parallelize_all.
3152 (ast_build_before_for): New function.
3153 (scop_to_isl_ast): Add checking of the
3154 flag_loop_parallelize_all.
3155 * graphite-dependences.c: Move the defenition of the
3156 scop_get_dependences from graphite-optimize-isl.c to this file.
3157 (apply_schedule_on_deps): Add checking of the ux's emptiness.
3158 (carries_deps): Add checking of the x's value.
3159 * graphite-optimize-isl.c: Move the defenition of the
3160 scop_get_dependences to graphite-dependences.c.
3161 * graphite-poly.h: Add declarations of scop_get_dependences
3162 and carries_deps.
3163
3164 2014-08-04 Rohit <rohitarulraj@freescale.com>
3165
3166 PR target/60102
3167 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
3168 names.
3169 (alt_reg_names): Likewise.
3170 (rs6000_dwarf_register_span): For SPE high registers, replace
3171 dwarf register numbers with GCC hard register numbers.
3172 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
3173 (rs6000_dbx_register_number): For SPE high registers, return dwarf
3174 register number for the corresponding GCC hard register number.
3175 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
3176 newly added GCC hard register numbers for SPE high registers.
3177 (DWARF_FRAME_REGISTERS): Likewise.
3178 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
3179 (DWARF_FRAME_REGNUM): Likewise.
3180 (FIXED_REGISTERS): Likewise.
3181 (CALL_USED_REGISTERS): Likewise.
3182 (CALL_REALLY_USED_REGISTERS): Likewise.
3183 (REG_ALLOC_ORDER): Likewise.
3184 (enum reg_class): Likewise.
3185 (REG_CLASS_NAMES): Likewise.
3186 (REG_CLASS_CONTENTS): Likewise.
3187 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
3188
3189 2014-08-04 Richard Biener <rguenther@suse.de>
3190
3191 * gimple-fold.h (gimple_fold_builtin): Remove.
3192 * gimple-fold.c (gimple_fold_builtin): Make static.
3193 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
3194 fold_stmt, not gimple_fold_builtin.
3195
3196 2014-08-04 Martin Liska <mliska@suse.cz>
3197
3198 * cgraph.h (csi_end_p): Removed.
3199 (csi_next): Likewise.
3200 (csi_node): Likewise.
3201 (csi_start): Likewise.
3202 (cgraph_node_in_set_p): Likewise.
3203 (cgraph_node_set_size): Likewise.
3204 (vsi_end_p): Likewise.
3205 (vsi_next): Likewise.
3206 (vsi_node): Likewise.
3207 (vsi_start): Likewise.
3208 (varpool_node_set_size): Likewise.
3209 (cgraph_node_set_nonempty_p): Likewise.
3210 (varpool_node_set_nonempty_p): Likewise.
3211 * cgraphunit.c (cgraph_process_new_functions): vec replaces
3212 cgraph_node_set.
3213 * ipa-inline-transform.c: Likewise.
3214 * ipa-utils.c (cgraph_node_set_new): Removed.
3215 (cgraph_node_set_add): Likewise.
3216 (cgraph_node_set_remove): Likewise.
3217 (cgraph_node_set_find): Likewise.
3218 (dump_cgraph_node_set): Likewise.
3219 (debug_cgraph_node_set): Likewise.
3220 (free_cgraph_node_set): Likewise.
3221 (varpool_node_set_new): Likewise.
3222 (varpool_node_set_add): Likewise.
3223 (varpool_node_set_remove): Likewise.
3224 (varpool_node_set_find): Likewise.
3225 (dump_varpool_node_set): Likewise.
3226 (free_varpool_node_set): Likewise.
3227 (debug_varpool_node_set): Likewise.
3228 * tree-emutls.c (struct tls_var_data):
3229 (emutls_index): Removed.
3230 (emutls_decl): Likewise.
3231 (gen_emutls_addr): Function implementation uses newly added
3232 hash_map<varpool_node *, tls_var_data>.
3233 (clear_access_vars): Likewise.
3234 (create_emultls_var): Likewise.
3235 (ipa_lower_emutls): Likewise.
3236 (reset_access): New function.
3237
3238 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3239
3240 * config/i386/i386.c (ix86_option_override_internal): Add
3241 PTA_RDRND and PTA_MOVBE for bdver4.
3242
3243 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3244 James Greenhalgh <james.greenhalgh@arm.com>
3245
3246 * doc/md.texi (clrsb): Document.
3247 (clz): Change reference to x into operand 1.
3248 (ctz): Likewise.
3249 (popcount): Likewise.
3250
3251 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3252
3253 PR target/61713
3254 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
3255 move to subtarget in serial version if result is ignored.
3256
3257 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3258 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3259
3260 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
3261 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
3262 (sched_analyze_insn): Update use of try_group_insn to
3263 sched_macro_fuse_insns.
3264 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
3265 arguments that are not conditional jumps.
3266
3267 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3268
3269 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
3270 family information. Handle BTVER2 cpu with cpuid family value.
3271
3272 2014-08-04 Tom de Vries <tom@codesourcery.com>
3273
3274 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
3275 (glibc_2_11_or_earlier): Document effective-target keywords.
3276
3277 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
3278
3279 * ipa-devirt.c (odr_type_warn_count): Add type.
3280 (possible_polymorphic_call_targets): Set it.
3281 (ipa_devirt): Use it.
3282
3283 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
3284
3285 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
3286 Document.
3287 * ipa-devirt.c: Include hash-map.h
3288 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
3289 (clear_speculation): Break out of ...
3290 (get_class_context): ... here; speed up handling obviously useless
3291 speculations.
3292 (odr_type_warn_count, decl_warn_count): New structures.
3293 (final_warning_record): New structure.
3294 (final_warning_records): New static variable.
3295 (possible_polymorphic_call_targets): Cleanup handling of
3296 speculative info; do not build speculation when user do not care;
3297 record info about warnings when asked for.
3298 (add_decl_warning): New function.
3299 (type_warning_cmp): New function.
3300 (decl_warning_cmp): New function.
3301 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
3302 (gate): Enable pass when warnings are requested.
3303 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
3304 options.
3305
3306 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3307
3308 * hash-map.h (default_hashmap_traits::mark_key_deleted):
3309 Fix cast.
3310 (hash_map::remove): New method.
3311 (hash_map::traverse): New method.
3312 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
3313 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
3314 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
3315 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
3316 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
3317 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
3318 pointer_map.
3319
3320 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3321
3322 * hash-set.h: new File.
3323 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
3324 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
3325 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
3326 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
3327 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
3328 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
3329 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
3330 varpool.c: Use hash_set instead of pointer_set.
3331
3332 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
3333
3334 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
3335
3336 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3337
3338 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
3339 for frame access when strict_p is false.
3340
3341 2014-08-01 Renlin Li <renlin.li@arm.com>
3342 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3343
3344 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
3345 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
3346 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
3347 Declaration.
3348 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
3349 predicate.
3350 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
3351 aarch64_mem_pair_offset.
3352
3353 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3354
3355 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
3356 offset.
3357 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
3358 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
3359
3360 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
3361
3362 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
3363
3364 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
3365
3366 PR regression/61510
3367 * cgraphunit.c (analyze_functions): Use get_create rather than get
3368 for decls which are clones of abstract functions.
3369
3370 2014-08-01 Martin Liska <mliska@suse.cz>
3371
3372 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
3373 * ipa-prop.h (count_formal_params): Global function created from static.
3374 * ipa-prop.c (count_formal_params): Likewise.
3375 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
3376 profiles for semantically equivalent functions.
3377 * passes.c (do_per_function): If we load body of a function
3378 during WPA, this condition should behave same.
3379 * varpool.c (ctor_for_folding): More tolerant assert for variable
3380 aliases created during WPA.
3381
3382 2014-08-01 Martin Liska <mliska@suse.cz>
3383
3384 * doc/invoke.texi (Options That Control Optimization): Documentation
3385 for -foptimize-strlen introduced. Optimization levels default options
3386 fixed.
3387
3388 2014-08-01 Jakub Jelinek <jakub@redhat.com>
3389
3390 * opts.c (common_handle_option): Handle -fsanitize=alignment.
3391 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
3392 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
3393 type to bool.
3394 * stor-layout.h (min_align_of_type): New prototype.
3395 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
3396 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
3397 check.
3398 * ubsan.c: Include builtins.h.
3399 (ubsan_expand_bounds_ifn): Change return type to bool,
3400 always return true.
3401 (ubsan_expand_null_ifn): Change return type to bool, change
3402 argument to gimple_stmt_iterator *. Handle both null and alignment
3403 sanitization, take type from ckind argument's type rather than
3404 first argument.
3405 (instrument_member_call): Removed.
3406 (instrument_mem_ref): Remove t argument, add mem and base arguments.
3407 Handle both null and alignment sanitization, don't say whole
3408 struct access is member access. Build 3 argument IFN_UBSAN_NULL
3409 call instead of 2 argument.
3410 (instrument_null): Adjust instrument_mem_ref caller. Don't
3411 instrument calls here.
3412 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
3413 like SANITIZE_NULL.
3414 * stor-layout.c (min_align_of_type): New function.
3415 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
3416 Or it into SANITIZE_UNDEFINED.
3417 * doc/invoke.texi (-fsanitize=alignment): Document.
3418
3419 2014-07-31 Andi Kleen <ak@linux.intel.com>
3420
3421 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
3422
3423 2014-07-31 Andi Kleen <ak@linux.intel.com>
3424
3425 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
3426 inchash.
3427 (vn_reference_compute_hash): Dito.
3428 (vn_nary_op_compute_hash): Dito.
3429 (vn_phi_compute_hash): Dito.
3430 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
3431
3432 2014-07-31 Andi Kleen <ak@linux.intel.com>
3433
3434 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
3435 Rename to inchash:add_expr_commutative. Convert to inchash.
3436 (iterative_hash_hashable_expr): Rename to
3437 inchash:add_hashable_expr. Convert to inchash.
3438 (avail_expr_hash): Dito.
3439
3440 2014-07-31 Andi Kleen <ak@linux.intel.com>
3441
3442 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
3443 Convert to inchash.
3444
3445 2014-07-31 Andi Kleen <ak@linux.intel.com>
3446
3447 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
3448
3449 2014-07-31 Andi Kleen <ak@linux.intel.com>
3450
3451 * Makefile.in (OBJS): Add rtlhash.o
3452 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
3453 (loc_checksum): Dito.
3454 (loc_checksum_ordered): Dito.
3455 (hash_loc_operands): Dito.
3456 (hash_locs): Dito.
3457 (hash_loc_list): Dito.
3458 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
3459 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
3460 * rtlhash.c: New file.
3461 * rtlhash.h: New file.
3462
3463 2014-07-31 Andi Kleen <ak@linux.intel.com>
3464
3465 * inchash.h (inchash): Change inchash class to namespace.
3466 (class hash): ... Rename from inchash.
3467 (add_object): Move from macro to class template.
3468 * lto-streamer-out.c (hash_tree): Change inchash
3469 to inchash::hash.
3470 * tree.c (build_type_attribute_qual_variant): Dito.
3471 (type_hash_list): Dito.
3472 (attribute_hash_list): Dito.
3473 (iterative_hstate_expr): Rename to inchash::add_expr
3474 (build_range_type_1): Change inchash to inchash::hash
3475 and use hash::add_expr.
3476 (build_array_type_1): Dito.
3477 (build_function_type): Dito
3478 (build_method_type_directly): Dito.
3479 (build_offset_type): Dito.
3480 (build_complex_type): Dito.
3481 (make_vector_type): Dito.
3482 * tree.h (iterative_hash_expr): Dito.
3483
3484 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
3485
3486 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
3487
3488 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3489
3490 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
3491 correct alphabetical position.
3492 (vpaddd_f64): Rewrite using builtins.
3493 (vpaddd_s64): Move to correct alphabetical position.
3494 (vpaddd_u64): New.
3495
3496 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
3497
3498 PR target/61844
3499 * config/sh/sh.c (sh_legitimate_address_p,
3500 sh_legitimize_reload_address): Handle reg+reg address modes when
3501 ALLOW_INDEXED_ADDRESS is false.
3502 * config/sh/predicates.md (general_movsrc_operand,
3503 general_movdst_operand): Likewise.
3504
3505 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3506
3507 * config/aarch64/aarch64-builtins.c
3508 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
3509 BYTES_BIG_ENDIAN.
3510
3511 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3512
3513 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
3514 the generated mask based on BYTES_BIG_ENDIAN.
3515 (aarch64_simd_check_vect_par_cnst_half): New.
3516 * config/aarch64/aarch64-protos.h
3517 (aarch64_simd_check_vect_par_cnst_half): New.
3518 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
3519 the check out to aarch64_simd_check_vect_par_cnst_half.
3520 (vect_par_cnst_lo_half): Likewise.
3521 * config/aarch64/aarch64-simd.md
3522 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
3523 (move_hi_quad_<mode>): Always generate a low mask.
3524
3525 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3526
3527 * doc/invoke.texi (AVR Options): Add documentation about
3528 __AVR_DEVICE_NAME__ built-in macro.
3529
3530 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
3531
3532 PR target/61948
3533 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
3534 constraints are satisfied.
3535 (<shift>di3_neon): Likewise.
3536
3537 2014-07-31 Richard Biener <rguenther@suse.de>
3538
3539 PR tree-optimization/61964
3540 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
3541 by structural equality.
3542
3543 2014-07-31 Yury Gribov <y.gribov@samsung.com>
3544
3545 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
3546 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
3547 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
3548 New enums.
3549 * gcc.c (sanitize_spec_function): Support new option.
3550 (SANITIZER_SPEC): Remove now redundant check.
3551 * opts.c (common_handle_option): Support new option.
3552 (finish_options): Check for incompatibilities.
3553 * toplev.c (process_options): Split userspace-specific checks.
3554
3555 2014-07-31 Richard Biener <rguenther@suse.de>
3556
3557 * lto-streamer.h (struct output_block): Remove global.
3558 (struct data_in): Remove labels, num_named_labels and
3559 num_unnamed_labels.
3560 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
3561 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
3562
3563 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
3564
3565 PR c++/60517
3566 * common.opt (-Wreturn-local-addr): Moved from c.opt.
3567 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
3568 (isolate_path): New argument to avoid inserting a trap.
3569 (find_implicit_erroneous_behaviour): Handle returning the address
3570 of a local variable.
3571 (find_explicit_erroneous_behaviour): Likewise.
3572
3573 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
3574
3575 PR lto/61868
3576 * toplev.c (init_random_seed): Move piece of code never called to
3577 set_random_seed.
3578 (set_random_seed): see above.
3579
3580 2014-07-31 Tom de Vries <tom@codesourcery.com>
3581
3582 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
3583
3584 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3585
3586 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
3587 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
3588
3589 2014-07-31 Richard Biener <rguenther@suse.de>
3590
3591 * data-streamer.h (streamer_write_data_stream): Declare here,
3592 renamed from ...
3593 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
3594 * lto-cgraph.c (lto_output_node): Adjust.
3595 (lto_output_varpool_node): Likewise.
3596 * data-streamer-out.c (streamer_string_index): Likewise.
3597 (streamer_write_data_stream, lto_append_block): Move from ...
3598 * lto-section-out.c (lto_output_data_stream,
3599 lto_append_block): ... here.
3600
3601 2014-07-30 Mike Stump <mikestump@comcast.net>
3602
3603 * configure.ac: Also check for popen.
3604 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
3605 * configure: Regenerate.
3606 * config.in: Regenerate.
3607
3608 2014-07-30 Martin Jambor <mjambor@suse.cz>
3609
3610 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
3611 parameter to gimple.
3612
3613 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3614
3615 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
3616 address as second parameter to __tpf_eh_return routine.
3617
3618 2014-07-30 Jiong Wang <jiong.wang@arm.com>
3619
3620 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
3621 Thumb2.
3622
3623 2014-07-30 Tom Tromey <tromey@redhat.com>
3624
3625 PR c/59855
3626 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
3627 * doc/extend.texi (Type Attributes): Document designated_init
3628 attribute.
3629
3630 2014-07-30 Roman Gareev <gareevroman@gmail.com>
3631
3632 * graphite-isl-ast-to-gimple.c:
3633 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
3634 (gcc_expression_from_isl_expression): Pass type to
3635 gcc_expression_from_isl_ast_expr_id.
3636
3637 2014-07-30 Richard Biener <rguenther@suse.de>
3638
3639 * lto-streamer.h (lto_write_data): New function.
3640 * langhooks.c (lhd_append_data): Do not free block.
3641 * lto-section-out.c (lto_write_data): New function writing
3642 raw data to the current section.
3643 (lto_write_stream): Adjust for langhook semantic change.
3644 (lto_destroy_simple_output_block): Write header directly.
3645 * lto-opts.c (lto_write_options): Write options directly.
3646 * lto-streamer-out.c (produce_asm): Write heaeder directly.
3647 (lto_output_toplevel_asms): Likewise.
3648 (copy_function_or_variable): Copy data directly.
3649 (write_global_references): Output index table directly.
3650 (lto_output_decl_state_refs): Likewise.
3651 (write_symbol): Write data directly.
3652 (produce_symtab): Adjust.
3653 (produce_asm_for_decls): Output header and refs directly.
3654
3655 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3656
3657 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
3658 to speculative_targets
3659 (get_class_context): Fix handling of contextes without outer type;
3660 avoid matching non-polymorphic types in LTO.
3661 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
3662 parameter to speculative_targetsp; handle speculation.
3663 (dump_possible_polymorphic_call_targets): Update dumping.
3664
3665 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3666
3667 * common.opt (Wodr): Enable by default.
3668
3669 2014-07-29 Olivier Hainque <hainque@adacore.com>
3670
3671 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
3672
3673 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
3674
3675 PR bootstrap/61914
3676 * gengtype.c (strtoken): New function.
3677 (create_user_defined_type): Replace strtok with strtoken.
3678
3679 2014-07-29 Nathan Sidwell <nathan@acm.org>
3680
3681 * gcov-io.c (gcov_var): Make hidden.
3682 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
3683 (gcov_do_dump): Declare.
3684 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
3685
3686 2014-07-29 Martin Jambor <mjambor@suse.cz>
3687
3688 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
3689 parameter to gimple.
3690 (sra_modify_assign): Likewise.
3691
3692 2014-07-29 Richard Biener <rguenther@suse.de>
3693
3694 PR middle-end/52478
3695 * expr.c (expand_expr_real_2): Revert last change.
3696
3697 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3698
3699 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
3700 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
3701 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
3702 call.
3703 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
3704 (contains_type_p): Forward declare.
3705 (polymorphic_call_target_hasher::hash): Hash speculative info.
3706 (polymorphic_call_target_hasher::equal): Compare speculative info.
3707 (get_class_context): Handle speuclation.
3708 (contains_type_p): Update.
3709 (get_polymorphic_call_info_for_decl): Update.
3710 (walk_ssa_copies): Break out from ...
3711 (get_polymorphic_call_info): ... here; set speculative context
3712 before giving up.
3713 * ipa-prop.c (ipa_write_indirect_edge_info,
3714 ipa_read_indirect_edge_info): Stream speculative context.
3715 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
3716 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
3717 SPECULATIVE_MAYBE_DERIVED_TYPE).
3718 (possible_polymorphic_call_targets overriders): Update.
3719 (dump_possible_polymorphic_call_targets overriders): Update.
3720 (dump_possible_polymorphic_call_target_p overriders): Update.
3721
3722 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3723
3724 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
3725 ipa-devirt path; fix thinko there.
3726
3727 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
3728
3729 * config/i386/i386.c (ix86_return_in_memory): Replace one
3730 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
3731
3732 2014-07-28 Marek Polacek <polacek@redhat.com>
3733
3734 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
3735
3736 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
3737
3738 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
3739 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
3740 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
3741 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3742 (USE_LD_AS_NEEDED): Likewise.
3743 (ASM_APP_ON): Likewise.
3744 (ASM_APP_OFF): Likewise.
3745 (TARGET_POSIX_IO): Likewise.
3746 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
3747 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3748 (USE_LD_AS_NEEDED): Likewise.
3749 (ASM_APP_ON): Likewise.
3750 (ASM_APP_OFF): Likewise.
3751 (TARGET_POSIX_IO): Likewise.
3752
3753 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
3754
3755 PR middle-end/61734
3756 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
3757 operators other than the equality operators.
3758
3759 2014-07-28 Richard Biener <rguenther@suse.de>
3760
3761 PR middle-end/52478
3762 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
3763 sure to register SImode ones, not only >= word_mode ones.
3764 * expr.c (expand_expr_real_2): When expanding -ftrapv
3765 binops do not use OPTAB_LIB_WIDEN.
3766
3767 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
3768
3769 PR middle-end/61919
3770 * tree-outof-ssa.c (insert_partition_copy_on_edge)
3771 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
3772 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
3773 inserting them in the insn stream.
3774
3775 2014-07-28 Marek Polacek <polacek@redhat.com>
3776
3777 PR middle-end/61913
3778 * common.opt (Wodr): Add Var.
3779
3780 2014-07-28 Richard Biener <rguenther@suse.de>
3781
3782 PR tree-optimization/61921
3783 * tree-ssa-structalias.c (create_variable_info_for_1): Check
3784 if there is a varpool node before dereferencing it.
3785
3786 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3787
3788 * graphite-sese-to-poly.c:
3789 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
3790 id of the pbb), which contains pointer to the pbb1.
3791
3792 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
3793
3794 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3795
3796 * graphite-isl-ast-to-gimple.c:
3797 (graphite_create_new_guard): New function.
3798 (translate_isl_ast_node_if): New function.
3799 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
3800
3801 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
3802
3803 2014-07-27 Anthony Green <green@moxielogic.com>
3804
3805 * config.gcc: Add moxie-*-moxiebox* configuration.
3806 * config/moxie/moxiebox.h: New file.
3807
3808 2014-07-26 Andrew Pinski <apinski@cavium.com>
3809
3810 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
3811 from the read only register.
3812
3813 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3814
3815 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
3816 as the allocation class if it isn't likely to be spilled.
3817
3818 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3819
3820 * rtl.h (tls_referenced_p): Declare.
3821 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
3822 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
3823 (mips_cannot_force_const_mem): Use tls_referenced_p.
3824 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
3825 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
3826 instead of pa_tls_referenced_p.
3827 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
3828 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
3829 (pa_legitimate_constant_p): Likewise.
3830 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
3831 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
3832 (rs6000_cannot_force_const_mem, rs6000_emit_move)
3833 (rs6000_address_for_altivec): Use tls_referenced_p instead of
3834 rs6000_tls_referenced_p.
3835 (rs6000_tls_symbol_ref_1): Delete.
3836
3837 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
3838
3839 PR target/44551
3840 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3841 Optimize inverse of a VEC_CONCAT.
3842
3843 2014-07-25 Xinliang David Li <davidxl@google.com>
3844
3845 * params.def: New parameter.
3846 * coverage.c (get_coverage_counts): Check new flag.
3847 (coverage_compute_profile_id): Check new flag.
3848 (coverage_begin_function): Check new flag.
3849 (coverage_end_function): Check new flag.
3850 * value-prof.c (coverage_node_map_initialized_p): New function.
3851 (init_node_map): Populate map with all functions.
3852 * doc/invoke.texi: Document new parameter.
3853
3854 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
3855 Richard Biener <rguenther@suse.de>
3856
3857 * lto-streamer-out.c (struct sccs): Turn to ...
3858 (class DFS): ... this one; refactor the DFS walk so it can
3859 be re-done on per-SCC basis.
3860 (DFS::DFS): New constructor.
3861 (DFS::~DFS): New destructor.
3862 (hash_tree): Add new MAP argument holding in-SCC hash values;
3863 remove POINTER_TYPE hashing hack.
3864 (scc_entry_compare): Rename to ...
3865 (DFS::scc_entry_compare): ... this one.
3866 (hash_scc): Rename to ...
3867 (DFS::hash_scc): ... this one; pass output_block instead
3868 of streamer_cache; work harder to get unique and stable SCC
3869 hashes.
3870 (DFS_write_tree): Rename to ...
3871 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
3872 (lto_output_tree): Update.
3873
3874 2014-07-25 Andi Kleen <ak@linux.intel.com>
3875
3876 * lto-streamer-out.c (hash_tree): Convert to inchash.
3877
3878 2014-07-25 Andi Kleen <ak@linux.intel.com>
3879
3880 * tree.c (build_type_attribute_qual_variant): Use inchash.
3881 (type_hash_list): Dito.
3882 (attribute_hash_list): Dito
3883 (iterative_hstate_expr): Dito.
3884 (iterative_hash_expr): Dito.
3885 (build_range_type_1): Dito.
3886 (build_array_type_1): Dito.
3887 (build_function_type): Dito.
3888 (build_method_type_directly): Dito.
3889 (build_offset_type): Dito.
3890 (build_complex_type): Dito.
3891 (make_vector_type): Dito.
3892 * tree.h (iterative_hash_expr): Add compat wrapper.
3893 (iterative_hstate_expr): Add.
3894
3895 2014-07-25 Andi Kleen <ak@linux.intel.com>
3896
3897 * Makefile.in (OBJS): Add inchash.o.
3898 (PLUGIN_HEADERS): Add inchash.h.
3899 * ipa-devirt.c: Include inchash.h.
3900 * lto-streamer-out.c: Dito.
3901 * tree-ssa-dom.c: Dito.
3902 * tree-ssa-pre.c: Dito.
3903 * tree-ssa-sccvn.c: Dito.
3904 * tree-ssa-tail-merge.c: Dito.
3905 * asan.c: Dito.
3906 * tree.c (iterative_hash_hashval_t): Move to ...
3907 (iterative_hash_host_wide_int): Move to ...
3908 * inchash.c: Here. New file.
3909 * tree.h (iterative_hash_hashval_t): Move to ...
3910 (iterative_hash_host_wide_int): Move to ...
3911 * inchash.h: Here. New file.
3912
3913 2014-07-25 Richard Biener <rguenther@suse.de>
3914
3915 PR middle-end/61762
3916 PR middle-end/61894
3917 * fold-const.c (native_encode_int): Add and handle offset
3918 parameter to do partial encodings of expr.
3919 (native_encode_fixed): Likewise.
3920 (native_encode_real): Likewise.
3921 (native_encode_complex): Likewise.
3922 (native_encode_vector): Likewise.
3923 (native_encode_string): Likewise.
3924 (native_encode_expr): Likewise.
3925 * fold-const.c (native_encode_expr): Add offset parameter
3926 defaulting to -1.
3927 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
3928 (fold_ctor_reference): Handle all reads from tcc_constant
3929 ctors.
3930
3931 2014-07-25 Richard Biener <rguenther@suse.de>
3932
3933 * tree-inline.c (estimate_move_cost): Mark speed_p argument
3934 as possibly unused.
3935
3936 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3937
3938 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
3939
3940 2014-07-24 Kyle McMartin <kyle@redhat.com>
3941
3942 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
3943
3944 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3945
3946 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
3947 Add prototype.
3948 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
3949 function.
3950 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
3951 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3952 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
3953
3954 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3955
3956 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
3957 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
3958 aggregate types. Instead, *all* aggregate types, except for single-
3959 element or homogeneous float/vector aggregates, are quadword-aligned
3960 if required by their type alignment. Issue -Wpsabi note when a type
3961 is now treated differently than before.
3962
3963 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3964
3965 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
3966 does not fit fully into floating-point registers, and there is still
3967 space in the register parameter area, use GPRs to pass those parts
3968 of the argument. Issue -Wpsabi note if any parameter is now treated
3969 differently than before.
3970 (rs6000_arg_partial_bytes): Update.
3971
3972 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
3973
3974 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
3975
3976 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3977
3978 * rtl.h (target_rtl): Remove lang_dependent_initialized.
3979 * toplev.c (initialize_rtl): Don't use it. Move previously
3980 "language-dependent" calls to...
3981 (backend_init): ...here.
3982 (lang_dependent_init_target): Don't set lang_dependent_initialized.
3983 Assert that RTL initialization hasn't happend yet.
3984
3985 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3986
3987 PR rtl-optimization/61629
3988 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
3989 they have already been initialized.
3990
3991 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3992
3993 PR middle-end/61268
3994 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
3995 DECL_INCOMING_RTL and entry_parm.
3996 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
3997 * calls.c (load_register_parameters): Likewise argument values.
3998 (emit_library_call_value_1, store_one_arg): Likewise argument
3999 save areas.
4000 * config/i386/i386.c (assign_386_stack_local): Likewise the local
4001 stack slot.
4002 * explow.c (validize_mem): Modify the argument in-place.
4003
4004 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4005
4006 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
4007 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
4008
4009 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4010
4011 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
4012 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
4013
4014 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4015
4016 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
4017 (aarch64_save_callee_saves): New parameter "skip_wb".
4018 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
4019
4020 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4021
4022 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
4023 "wb_candidate2".
4024 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
4025
4026 2014-07-24 Roman Gareev <gareevroman@gmail.com>
4027
4028 * graphite-isl-ast-to-gimple.c:
4029 (graphite_create_new_loop): Add calling of isl_id_free to properly
4030 decrement reference counts.
4031
4032 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
4033
4034 2014-07-24 Martin Liska <mliska@suse.cz>
4035 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
4036 function used.
4037 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
4038 (rs6000_code_end): Likewise.
4039
4040 2014-07-24 Martin Liska <mliska@suse.cz>
4041
4042 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
4043 symtab_node funtion used.
4044 (rs6000_xcoff_declare_object_name): Likewise.
4045
4046 2014-07-24 Martin Liska <mliska@suse.cz>
4047
4048 * cgraphunit.c (compile): Correct function used.
4049
4050 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
4051
4052 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
4053 as non-indexable.
4054
4055 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
4056
4057 PR lto/61802
4058 * varasm.c (bss_initializer_p): Handle offlined ctors.
4059 (align_variable, get_variable_align): Likewise.
4060 (make_decl_one_only): Likewise.
4061 (default_binds_local_p_1): Likewise.
4062 (decl_binds_to_current_def_p): Likewise.
4063 (get_variable_section): Get constructor if it is offlined.
4064 (assemble_variable_contents): Sanity check that the caller
4065 streamed in the ctor in LTO.
4066
4067 2014-07-24 Roman Gareev <gareevroman@gmail.com>
4068
4069 * graphite-isl-ast-to-gimple.c:
4070 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
4071 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
4072 isl_ast_op_pdiv_r to the different case.
4073
4074 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
4075
4076 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4077
4078 PR middle-end/61876
4079 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
4080 when flag_errno_math is on.
4081
4082 2014-07-24 Martin Liska <mliska@suse.cz>
4083
4084 * cgraph.h (varpool_node):
4085 (availability get_availability (void)):
4086 created from cgraph_variable_initializer_availability
4087 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
4088 created from: cgraph_variable_initializer_availability
4089 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
4090 (void finalize_named_section_flags (void)):
4091 created from varpool_finalize_named_section_flags
4092 (bool assemble_decl (void)): created from varpool_assemble_decl
4093 (void analyze (void)): created from varpool_analyze_node
4094 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
4095 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
4096 (void remove_initializer (void)): created from varpool_remove_initializer
4097 (tree get_constructor (void)): created from varpool_get_constructor
4098 (bool externally_visible_p (void)): created from varpool_externally_visible_p
4099 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
4100 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
4101 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
4102 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
4103 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
4104 (static bool output_variables (void)): created from varpool_output_variables
4105 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
4106 created from varpool_extra_name_alias
4107 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
4108 (static void dump_varpool (FILE *f)): created from dump_varpool
4109 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
4110 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
4111 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
4112 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
4113 (void assemble_aliases (void)): created from assemble_aliases
4114
4115 2014-07-24 Martin Liska <mliska@suse.cz>
4116
4117 * cgraph.h (symtab_node):
4118 (void register_symbol (void)): created from symtab_register_node
4119 (void remove (void)): created from symtab_remove_node
4120 (void dump (FILE *f)): created from dump_symtab_node
4121 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
4122 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
4123 (struct ipa_ref *add_reference (symtab_node *referred_node,
4124 enum ipa_ref_use use_type)): created from add_reference
4125 (struct ipa_ref *add_reference (symtab_node *referred_node,
4126 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
4127 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
4128 gimple stmt)): created from maybe_add_reference
4129 (bool semantically_equivalent_p (symtab_node *target)): created from
4130 symtab_semantically_equivalent_p
4131 (void remove_from_same_comdat_group (void)): created from
4132 remove_from_same_comdat_group
4133 (void add_to_same_comdat_group (symtab_node *old_node)): created from
4134 symtab_add_to_same_comdat_group
4135 (void dissolve_same_comdat_group_list (void)): created from
4136 symtab_dissolve_same_comdat_group_list
4137 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
4138 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
4139 created from symtab_alias_ultimate_target
4140 (inline symtab_node *next_defined_symbol (void)): created from
4141 symtab_next_defined_symbol
4142 (bool resolve_alias (symtab_node *target)): created from
4143 symtab_resolve_alias
4144 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
4145 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
4146 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
4147 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
4148 (void set_section (const char *section)): created from set_section_1
4149 (enum availability get_availability (void)): created from symtab_node_availability
4150 (void make_decl_local (void)): created from symtab_make_decl_local
4151 (bool real_symbol_p (void)): created from symtab_read_node
4152 (can_be_discarded_p (void)): created from symtab_can_be_discarded
4153 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
4154 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
4155 symtab_in_same_comdat_p;
4156 (bool address_taken_from_non_vtable_p (void)): created from
4157 address_taken_from_non_vtable_p
4158 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
4159 (static void dump_table (FILE *)): created from dump_symtab
4160 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
4161 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
4162 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
4163 symtab_used_from_object_file_p
4164 (void dump_base (FILE *)): created from dump_symtab_base
4165 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
4166 (void unregister (void)): created from symtab_unregister_node
4167 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
4168 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
4169 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
4170 symtab_nonoverwritable_alias_1
4171 * cgraph.h (cgraph_node):
4172 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
4173 created from cgraph_remove_node_and_inline_clones
4174 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
4175 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
4176 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
4177 (cgraph_node *function_symbol (enum availability *avail = NULL)):
4178 created from cgraph_function_node
4179 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
4180 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
4181 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
4182 created from cgraph_create_clone
4183 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
4184 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
4185 created from cgraph_create_virtual_clone
4186 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
4187 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
4188 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
4189 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
4190 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
4191 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
4192 created from cgraph_function_version_info
4193 (struct cgraph_function_version_info *insert_new_function_version (void)):
4194 created from insert_new_cgraph_node_version
4195 (struct cgraph_function_version_info *function_version (void)): created from
4196 get_cgraph_node_version
4197 (void analyze (void)): created from analyze_function
4198 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
4199 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
4200 tree real_alias) cgraph_add_thunk
4201 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
4202 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
4203 created from cgraph_function_or_thunk_node
4204 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
4205 created from expand_thunk
4206 (void reset (void)): created from cgraph_reset_node
4207 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
4208 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
4209 (void remove (void)): created from cgraph_remove_node
4210 (void dump (FILE *f)): created from dump_cgraph_node
4211 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
4212 (bool get_body (void)): created from cgraph_get_body
4213 (void release_body (void)): created from cgraph_release_function_body
4214 (void unnest (void)): created from cgraph_unnest_node
4215 (void make_local (void)): created from cgraph_make_node_local
4216 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
4217 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
4218 gcov_type count, int freq)): created from cgraph_create_edge
4219 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
4220 gcov_type count, int freq)): created from cgraph_create_indirect_edge
4221 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
4222 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
4223 created from cgraph_create_edge_including_clones
4224 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
4225 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
4226 (void remove_callers (void)): created from cgraph_node_remove_callers
4227 (void remove_callees (void)): created from cgraph_node_remove_callees
4228 (enum availability get_availability (void)): created from cgraph_function_body_availability
4229 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
4230 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
4231 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
4232 (void call_duplication_hooks (cgraph_node *node2)): created from
4233 cgraph_call_node_duplication_hooks
4234 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
4235 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
4236 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
4237 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
4238 (void call_function_insertion_hooks (void)):
4239 created from cgraph_call_function_insertion_hooks
4240 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
4241 (bool local_p (void)): created from cgraph_local_node
4242 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
4243 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
4244 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
4245 (inline bool only_called_directly_or_aliased_p (void)):
4246 created from cgraph_only_called_directly_or_aliased_p
4247 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
4248 created from cgraph_will_be_removed_from_program_if_no_direct_calls
4249 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
4250 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
4251 (bool can_remove_if_no_direct_calls_p (void)):
4252 created from cgraph_can_remove_if_no_direct_calls_p
4253 (inline bool has_gimple_body_p (void)):
4254 created from cgraph_function_with_gimple_body_p
4255 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
4256 (static void dump_cgraph (FILE *f)): created from dump_cgraph
4257 (static inline void debug_cgraph (void)): created from debug_cgraph
4258 (static void record_function_versions (tree decl1, tree decl2)):
4259 created from record_function_versions
4260 (static void delete_function_version (tree decl)):
4261 created from delete_function_version
4262 (static void add_new_function (tree fndecl, bool lowered)):
4263 created from cgraph_add_new_function
4264 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
4265 (static cgraph_node * create (tree decl)): created from cgraph_create_node
4266 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
4267 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
4268 (static cgraph_node *get_for_asmname (tree asmname)):
4269 created from cgraph_node_for_asm
4270 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
4271 created from cgraph_same_body_alias
4272 (static bool used_from_object_file_p_worker (cgraph_node *node,
4273 void *): new function
4274 (static bool non_local_p (cgraph_node *node, void *)):
4275 created from cgraph_non_local_node_p_1
4276 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
4277 created from verify_cgraph
4278 (static bool make_local (cgraph_node *node, void *)):
4279 created from cgraph_make_node_local
4280 (static cgraph_node *create_alias (tree alias, tree target)):
4281 created from cgraph_create_function_alias
4282 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
4283 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
4284 created from cgraph_create_edge_1
4285 * cgraph.h (varpool_node):
4286 (void remove (void)): created from varpool_remove_node
4287 (void dump (FILE *f)): created from dump_varpool_node
4288
4289 2014-07-24 Richard Biener <rguenther@suse.de>
4290
4291 PR ipa/61823
4292 * tree-ssa-structalias.c (create_variable_info_for_1):
4293 Use varpool_get_constructor.
4294 (create_variable_info_for): Likewise.
4295
4296 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4297
4298 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
4299 subtract outgoing area size when restoring stack_pointer_rtx.
4300
4301 2014-07-24 Nick Clifton <nickc@redhat.com>
4302
4303 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
4304 that operations are taking place in parallel.
4305 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
4306
4307 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
4308
4309 * omp-low.c (extract_omp_for_data): Add missing break statement.
4310
4311 2014-07-24 Richard Biener <rguenther@suse.de>
4312
4313 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
4314 * tree-inline.c (estimate_move_cost): Add speed_p parameter
4315 and adjust MOVE_RATIO query accordingly.
4316 (estimate_num_insns): Adjust callers.
4317 * ipa-prop.c (ipa_populate_param_decls): Likewise.
4318 * ipa-cp.c (gather_context_independent_values,
4319 estimate_local_effects): Likewise.
4320 * ipa-split.c (consider_split): Likewise.
4321
4322 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
4323
4324 * config/i386/driver-i386.c: Remove names of unused arguments and
4325 unnecessary unused attributes.
4326 * config/i386/host-mingw32.c: Likewise.
4327 * config/i386/i386.c: Likewise.
4328 * config/i386/winnt-stubs.c: Likewise.
4329 * config/i386/winnt.c: Likewise.
4330
4331 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4332
4333 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
4334 (aarch64_gen_loadwb_pair): New helper function.
4335 (aarch64_expand_epilogue): Simplify code using new helper functions.
4336 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
4337
4338 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4339
4340 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
4341 (aarch64_gen_storewb_pair): New helper function.
4342 (aarch64_expand_prologue): Simplify code using new helper functions.
4343 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
4344
4345 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4346
4347 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
4348 Rename to aarch64_save_callee_saves, remove restore code.
4349 (aarch64_restore_callee_saves): New function.
4350
4351 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4352
4353 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
4354 (aarch64_save_callee_saves): New function to handle reg save
4355 for both core and vectore regs.
4356
4357 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4358
4359 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
4360 (aarch64_gen_store_pair): New helper function.
4361 (aarch64_save_or_restore_callee_save_registers)
4362 (aarch64_save_or_restore_fprs): Use new helper functions.
4363
4364 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4365
4366 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
4367 (aarch64_save_or_restore_callee_save_registers)
4368 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
4369
4370 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4371
4372 * config/aarch64/aarch64.c
4373 (aarch64_save_or_restore_callee_save_registers)
4374 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
4375
4376 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4377
4378 * config/aarch64/aarch64.c
4379 (aarch64_save_or_restore_callee_save_registers)
4380 (aarch64_save_or_restore_fprs): Remove 'increment'.
4381
4382 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4383
4384 * config/aarch64/aarch64.c
4385 (aarch64_save_or_restore_callee_save_registers)
4386 (aarch64_save_or_restore_fprs): Use register offset in
4387 cfun->machine->frame.reg_offset.
4388
4389 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4390
4391 * config/aarch64/aarch64.c
4392 (aarch64_save_or_restore_callee_save_registers)
4393 (aarch64_save_or_restore_fprs): Remove base_rtx.
4394
4395 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4396
4397 * config/aarch64/aarch64.c
4398 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
4399 to 'start_offset'. Remove local variable 'start_offset'.
4400
4401 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4402
4403 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
4404 type to HOST_WIDE_INT.
4405
4406 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4407
4408 * config/aarch64/aarch64.c (aarch64_expand_prologue)
4409 (aarch64_save_or_restore_fprs)
4410 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
4411
4412 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4413
4414 * config/arm/t-rtems-eabi: Add
4415 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
4416 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
4417 mbig-endian/mthumb/march=armv7-r, and
4418 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
4419 multilibs.
4420
4421 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4422 Chris Johns <chrisj@rtems.org>
4423 Joel Sherrill <joel.sherrill@oarcorp.com>
4424
4425 * config.gcc: Add nios2-*-rtems*.
4426 * config/nios2/rtems.h: New file.
4427 * gcc/config/nios2/t-rtems: New file.
4428
4429 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
4430
4431 PR target/61396
4432 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
4433 constant numbers, not general constants.
4434 (rs6000_expand_vector_init): Ditto.
4435
4436 2014-07-23 Nathan Sidwell <nathan@acm.org>
4437
4438 * gcov-tool.c (gcov_list): Declare here.
4439 (set_gcov_list): Remove.
4440 (gcov_output_files): Set gcov_list directly.
4441
4442 2014-07-23 Host Schirmeier <horst@schirmeier.com>
4443
4444 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
4445
4446 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4447
4448 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
4449 callee-saved registers are available for padding purpose
4450 and r3 is not mandatory, then prefer use those callee-saved
4451 instead of r3.
4452
4453 2014-07-23 Richard Biener <rguenther@suse.de>
4454
4455 * params.def (PARAM_MAX_COMBINE_INSNS): New.
4456 * combine.c: Include statistics.h and params.h.
4457 (combine_instructions): Guard three and four insn combines
4458 with max-combine-insns value. Record statistics for combines
4459 performed.
4460 * doc/invoke.texi (max-combine-insns): Document new param.
4461
4462 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4463
4464 * graphite-isl-ast-to-gimple.c:
4465 (translate_isl_ast_node_block): New function.
4466 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
4467
4468 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
4469 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
4470
4471 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4472
4473 * graphite-isl-ast-to-gimple.c:
4474 (get_max_schedule_dimensions): New function.
4475 (extend_schedule): Likewise.
4476 (generate_isl_schedule): Add calling of extend_schedule and
4477 get_max_schedule_dimensions.
4478
4479 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4480
4481 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
4482 (case UNSPEC): Handle UNSPEC_RBIT.
4483
4484 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4485
4486 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
4487 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
4488
4489 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4490
4491 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
4492
4493 2014-07-22 Roman Gareev <gareevroman@gmail.com>
4494
4495 * graphite-isl-ast-to-gimple.c:
4496 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
4497 (ivs_params_clear):
4498 (build_iv_mapping): New function.
4499 (translate_isl_ast_node_user): Likewise.
4500 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
4501
4502 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
4503 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
4504 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
4505
4506 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4507
4508 PR target/55701
4509 * config/arm/arm.md (setmem): New pattern.
4510 * config/arm/arm-protos.h (struct tune_params): New fields.
4511 (arm_gen_setmem): New prototype.
4512 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4513 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4514 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4515 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4516 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4517 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4518 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4519 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4520 (arm_const_inline_cost): New function.
4521 (arm_block_set_max_insns): New function.
4522 (arm_block_set_non_vect_profit_p): New function.
4523 (arm_block_set_vect_profit_p): New function.
4524 (arm_block_set_unaligned_vect): New function.
4525 (arm_block_set_aligned_vect): New function.
4526 (arm_block_set_unaligned_non_vect): New function.
4527 (arm_block_set_aligned_non_vect): New function.
4528 (arm_block_set_vect, arm_gen_setmem): New functions.
4529
4530 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4531
4532 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4533
4534 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
4535
4536 PR target/61855
4537 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
4538 out of #ifdef __OPTIMIZE__.
4539
4540 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4541
4542 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
4543 different trapping status if -fnon-call-exceptions is enabled.
4544
4545 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4546
4547 * expr.c (store_field): Handle VOIDmode for calls that return values
4548 in multiple locations.
4549
4550 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4551
4552 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
4553 (altivec_vsldoi_<mode>): Likewise.
4554
4555 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4556
4557 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
4558 to the number of characters in the line.
4559
4560 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4561
4562 * graphite-isl-ast-to-gimple.c: Add using of
4563 build_nonstandard_integer_type instead of int128_integer_type_node.
4564
4565 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
4566
4567 * toplev.c (output_stack_usage): Adjust the location of the warning.
4568
4569 2014-07-19 Daniel Cederman <cederman@gaisler.com>
4570
4571 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
4572 (*membar_storeload): Disable for LEON3.
4573
4574 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4575
4576 PR rtl-optimization/61461
4577 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
4578
4579 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
4580
4581 PR target/61794
4582 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
4583 Fix instruction constraint.
4584 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4585
4586 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
4587
4588 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
4589
4590 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
4591
4592 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
4593 GNU coding standards.
4594 (nds32_register_move_cost): Likewise.
4595 (nds32_memory_move_cost): Likewise.
4596 (nds32_address_cost): Likewise.
4597
4598 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4599
4600 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
4601
4602 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
4603
4604 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4605 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
4606 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4607 (HAVE_sync_compare_and_swapqi): Define.
4608 (HAVE_sync_compare_and_swaphi): Likewise.
4609 (HAVE_sync_compare_and_swapsi): Likewise.
4610
4611 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
4612
4613 * config/mips/p5600.md: Add missing cpu tests.
4614
4615 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4616
4617 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
4618 (vmla_f64): Likewise.
4619 (vfms_f64): Likewise.
4620 (vmls_f64): Likewise.
4621
4622 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4623
4624 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
4625 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
4626
4627 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4628
4629 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
4630 (vmlal_high_lane_s32): Likewise.
4631 (vmlal_high_lane_u16): Likewise.
4632 (vmlal_high_lane_u32): Likewise.
4633 (vmlsl_high_lane_s16): Likewise.
4634 (vmlsl_high_lane_s32): Likewise.
4635 (vmlsl_high_lane_u16): Likewise.
4636 (vmlsl_high_lane_u32): Likewise.
4637
4638 2014-07-17 Terry Guo <terry.guo@arm.com>
4639
4640 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
4641 (alus_reg): Renamed to alus_sreg.
4642 * config/arm/arm-fixed.md: Change type of non-dsp instructions
4643 from alu_reg to alu_sreg. Change type of dsp instructions from
4644 alu_reg to alu_dsp_reg.
4645 * config/arm/thumb1.md: Likewise.
4646 * config/arm/thumb2.md: Likewise.
4647 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
4648 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
4649 with alu_sreg and alus_sreg.
4650 * config/arm/arm1026ejs.md (alu_op): Likewise.
4651 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4652 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4653 * config/arm/fa526.md (526_alu_op): Likewise.
4654 * config/arm/fa606te.md (606te_alu_op): Likewise.
4655 * config/arm/fa626te.md (626te_alu_op): Likewise.
4656 * config/arm/fa726te.md (726te_alu_op): Likewise.
4657 * config/arm/fmp626.md (mp626_alu_op): Likewise.
4658 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
4659 alu_sreg, alu_dsp_reg and alus_sreg.
4660 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4661 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4662 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4663 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
4664 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4665 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4666 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4667 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4668 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
4669 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
4670 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
4671 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
4672 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
4673 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
4674 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
4675 alus_reg to alus_sreg.
4676
4677 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
4678
4679 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
4680 infinity format.
4681
4682 2014-07-17 Richard Biener <rguenther@suse.de>
4683
4684 PR rtl-optimization/61801
4685 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
4686 don't set reg_pending_barrier if it appears in a debug-insn.
4687
4688 2014-07-16 DJ Delorie <dj@redhat.com>
4689
4690 * config/rx/rx.c (rx_option_override): Fix alignment values.
4691 (rx_align_for_label): Likewise.
4692
4693 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
4694
4695 PR target/61737.
4696 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
4697 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4698 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
4699 functions.
4700 (cris_print_index, cris_print_operand, cris_constant_index_p)
4701 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
4702 (cris_address_cost): Ditto last CONSTANT_P.
4703 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
4704 callers changed. Yield cris_offsettable_symbol for non-PIC
4705 constant symbolic expressions including labels. Yield cris_unspec
4706 for all unspecs.
4707 (cris_expand_pic_call_address): New parameter MARKERP. Set its
4708 target to pic_offset_table_rtx for calls that will likely go
4709 through PLT, const0_rtx when they can't. All callers changed.
4710 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
4711 symbolic expressions to be PICified. Remove second, redundant,
4712 assert on can_create_pseudo_p returning non-zero. Use
4713 replace_equiv_address_nv, not replace_equiv_address, for final
4714 operand update.
4715 * config/cris/cris.md ("movsi"): Move variable t to pattern
4716 toplevel. Adjust assert for new cris_symbol_type member. Use
4717 CONSTANT_P instead of CONSTANT_ADDRESS_P.
4718 ("*movsi_internal") <case 9>: Make check for valid unspec operands
4719 for lapc stricter.
4720 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
4721 ("call", "call_value"): Use second incoming operand as a marker
4722 for pic-offset-table-register being used.
4723 ("*expanded_call_non_v32", "*expanded_call_v32")
4724 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
4725 second incoming operand to CALL, match cris_call_type_marker.
4726 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
4727 ("*expanded_call_side"): Ditto. Fix typo in comment.
4728 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
4729 CONSTANT_P.
4730 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
4731 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
4732 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
4733 users changed. Add members cris_offsettable_symbol and cris_unspec.
4734 (cris_symbol_type): Rename from cris_pic_symbol_type.
4735 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
4736 just CONSTANT_P.
4737 * config/cris/cris-protos.h (cris_symbol_type_of,
4738 cris_expand_pic_call_address): Adjust prototypes.
4739 (cris_legitimate_constant_p): New prototype.
4740
4741 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
4742 an existing tmake_file. Don't add t-slibgcc and t-linux.
4743
4744 2014-07-17 Jason Merrill <jason@redhat.com>
4745
4746 PR c++/61623
4747 * symtab.c (symtab_remove_from_same_comdat_group): Also
4748 set_comdat_group to NULL_TREE.
4749 (verify_symtab): Fix diagnostic.
4750
4751 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
4752
4753 PR target/61662
4754 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
4755
4756 2014-07-16 Dodji Seketeli <dodji@redhat.com>
4757
4758 Support location tracking for built-in macro tokens
4759 * input.h (is_location_from_builtin_token): New function declaration.
4760 * input.c (is_location_from_builtin_token): New function definition.
4761 * toplev.c (general_init): Tell libcpp what the pre-defined
4762 spelling location for built-in tokens is.
4763
4764 2014-07-16 Jakub Jelinek <jakub@redhat.com>
4765
4766 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
4767 on the FUNCTION_DECL.
4768
4769 2014-07-16 Richard Biener <rguenther@suse.de>
4770
4771 PR other/61782
4772 * doc/extend.texi (always_inline): Clarify.
4773
4774 2014-07-15 Eric Christopher <echristo@gmail.com>
4775
4776 * doc/invoke.texi (Link Options): Document -z option.
4777
4778 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
4779
4780 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
4781 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4782
4783 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
4784
4785 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
4786
4787 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
4788
4789 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
4790 varpool_assemble_decl.
4791 * varpool.c (varpool_assemble_decl): Assert that node->definition is
4792 true.
4793
4794 2014-07-15 Michael Matz <matz@suse.de>
4795
4796 PR rtl-optimization/61772
4797 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
4798
4799 2014-07-15 Richard Biener <rguenther@suse.de>
4800
4801 * opts.c (default_options_table): Disable bit-ccp at -Og.
4802
4803 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4804
4805 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
4806
4807 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4808
4809 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
4810 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
4811 call langhook for unknown declaration.
4812 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
4813 * tree.h (DECL_ARGUMENTS): Update.
4814 * print-tree.c (print_node): Update.
4815 * tree-core.h (tree_decl_non_common): Remove arguments.
4816 (tree_function_decl): Add arguments.
4817
4818 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
4819
4820 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
4821
4822 2014-07-14 Richard Biener <rguenther@suse.de>
4823
4824 PR tree-optimization/61779
4825 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
4826 simplifying a condition.
4827
4828 2014-07-14 Richard Biener <rguenther@suse.de>
4829
4830 * builtins.c (c_strlen): Make only_value == 2 really only
4831 affect warning generation.
4832
4833 2014-07-14 Richard Biener <rguenther@suse.de>
4834
4835 PR tree-optimization/61757
4836 PR tree-optimization/61783
4837 PR tree-optimization/61787
4838 * tree-ssa-dom.c (record_equality): Revert canonicalization
4839 change and add comment.
4840 (propagate_rhs_into_lhs): Revert previous fix, removing
4841 loop depth restriction again.
4842
4843 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4844
4845 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
4846 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4847 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4848 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
4849 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4850 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4851 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4852
4853 2014-07-14 Richard Biener <rguenther@suse.de>
4854
4855 * cgraph.h (decl_in_symtab_p): Make inline.
4856
4857 2014-07-14 Jakub Jelinek <jakub@redhat.com>
4858
4859 PR middle-end/61294
4860 * doc/invoke.texi (-Wmemset-transposed-args): Document.
4861
4862 PR target/61656
4863 * config/i386/i386.c (classify_argument): Don't merge classes above
4864 number of words.
4865
4866 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
4867
4868 * cgraph.h (symtab_node): Add nonzero_address.
4869 (decl_in_symtab_p): Break out from ...
4870 (symtab_get_node): ... here.
4871 * fold-const.c: Include cgraph.h
4872 (tree_single_nonzero_warnv_p): Use symtab to determine
4873 if symbol is non-zero.
4874 * symtab.c (symtab_node::nonzero_address): New method.
4875
4876 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4877
4878 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
4879 forgotten in previous commit.
4880
4881 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4882
4883 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
4884 on builtin types.
4885 * ipa-devirt.c: Include stor-layout.h and intl.h
4886 (odr_subtypes_equivalent_p): New function.
4887 (warn_odr): New function.
4888 (warn_type_mismatch): New function.
4889 (odr_types_equivalent_p): New function.
4890 (add_type_duplicate): Use it.
4891 * common.opt (Wodr): New flag.
4892 * doc/invoke.texi (Wodr): Document new warning.
4893
4894 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4895
4896 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
4897 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
4898 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
4899 (varpool_get_constructor): Push CTORS_IN timevar.
4900 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
4901
4902 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
4903
4904 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
4905 Remove VOID_FTYPE_PUSHORT.
4906 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
4907 Change code to USHORT_FTYPE_VOID.
4908 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
4909 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
4910 (ix86_atomic_assign_expand_fenv): Update for
4911 __builtin_ia32_fnstsw changes.
4912 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
4913 (fnstsw): Change operand 0 to nonimmediate operand.
4914
4915 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4916
4917 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
4918 (varpool_get_constructor): New function.
4919 (varpool_ctor_useable_for_folding_p): Break out from ...
4920 (ctor_for_folding): ... here; use varpool_get_constructor.
4921 (varpool_assemble_decl): Likewise.
4922 * lto-streamer.h (struct output_block): Turn cgraph_node
4923 to symbol filed.
4924 (lto_input_variable_constructor): Declare.
4925 * ipa-visibility.c (function_and_variable_visibility): Use
4926 varpool_get_constructor.
4927 * cgraph.h (varpool_get_constructor): Declare.
4928 (varpool_ctor_useable_for_folding_p): New function.
4929 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
4930 parameter; return error_mark_node for non-trivial constructors.
4931 (lto_write_tree_1, DFS_write_tree): Update use of
4932 get_symbol_initial_value.
4933 (output_function): Update initialization of symbol.
4934 (output_constructor): New function.
4935 (copy_function): Rename to ..
4936 (copy_function_or_variable): ... this one; handle vars too.
4937 (lto_output): Output variable sections.
4938 * lto-streamer-in.c (input_constructor): New function.
4939 (lto_read_body): Rename from ...
4940 (lto_read_body_or_constructor): ... this one; handle vars too.
4941 (lto_input_variable_constructor): New function.
4942 * ipa-prop.c (ipa_prop_write_jump_functions,
4943 ipa_prop_write_all_agg_replacement): Update.
4944 * lto-cgraph.c (compute_ltrans_boundary): Use it.
4945 (output_cgraph_opt_summary): Set symbol to NULL.
4946
4947 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4948
4949 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
4950 non-polymorphic types.
4951 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
4952 * ipa-devirt.c (types_same_for_odr): Do not explode when one
4953 of types is not polymorphic.
4954
4955 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
4956
4957 * lra-constraints.c (remove_inheritance_pseudos): Process
4958 destination pseudo too.
4959
4960 2014-07-11 Rong Xu <xur@google.com>
4961
4962 * gcov-tool.c (gcov_output_files): Fix build error introduced in
4963 commit r212448.
4964
4965 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4966
4967 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
4968 * config/avr/avr-devices.c (AVR_MCU): Same.
4969 (avr_mcu_types): add text start value to end of device list.
4970 * config/avr/avr-mcus.def: Add text section start for all devices.
4971 (ata5782): Add new avr5 device.
4972 (ata5831): Same.
4973 * config/avr/avr-tables.opt: Regenerate.
4974 * config/avr/avr.h: Add declaration for text section start handler.
4975 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
4976 SPEC functions.
4977 (LINK_SPEC): Include text section start handler to linker spec.
4978 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
4979 pass -Ttext option to linker if the text section start for the device
4980 is not zero.
4981 * config/avr/t-multilib: Regenerate.
4982 * doc/avr-mmcu.texi: Regenerate.
4983
4984 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
4985
4986 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
4987 * config/rs6000/aix52.h (LINK_SPEC): Same.
4988 * config/rs6000/aix53.h (LINK_SPEC): Same.
4989 * config/rs6000/aix61.h (LINK_SPEC): Same.
4990 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
4991
4992 2014-07-11 Roman Gareev <gareevroman@gmail.com>
4993
4994 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
4995 (graphite_verify): New function.
4996 (ivs_params_clear): New function.
4997 (gcc_expression_from_isl_ast_expr_id): New function.
4998 (gcc_expression_from_isl_expr_int): New function.
4999 (binary_op_to_tree): New function.
5000 (ternary_op_to_tree): New function.
5001 (unary_op_to_tree): New function.
5002 (nary_op_to_tree): New function.
5003 (gcc_expression_from_isl_expr_op): New function.
5004 (gcc_expression_from_isl_expression): New function.
5005 (graphite_create_new_loop): New function.
5006 (translate_isl_ast_for_loop): New function.
5007 (get_upper_bound): New function.
5008 (graphite_create_new_loop_guard): New function.
5009 (translate_isl_ast_node_for): New function.
5010 (translate_isl_ast): New function.
5011 (add_parameters_to_ivs_params): New function.
5012 (scop_to_isl_ast): New parameter ip.
5013 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
5014
5015 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
5016
5017 * config/xtensa/predicates.md (call expander): Update for
5018 DECL_SECTION_NAME being string.
5019
5020 2014-07-11 Richard Biener <rguenther@suse.de>
5021
5022 PR middle-end/61473
5023 * builtins.c (fold_builtin_memory_op): Inline memory moves that
5024 can be implemented with a single load followed by a single store.
5025 (c_strlen): Only warn when only_value is not 2.
5026
5027 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
5028
5029 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
5030
5031 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
5032
5033 PR target/61561
5034 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
5035 (*movhi_bytes): Likewise.
5036 (*arm_movqi_insn): Likewise.
5037
5038 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
5039
5040 PR target/56858
5041 * config/alpha/alpha.c: Include tree-pass.h, context.h
5042 and pass_manager.h.
5043 (pass_data_handle_trap_shadows): New pass.
5044 (pass_handle_trap_shadows::gate): New pass gate function.
5045 (make_pass_handle_trap_shadows): New function.
5046 (rest_of_handle_trap_shadows): Ditto.
5047
5048 (alpha_align_insns_1): Rename from alpha_align_insns.
5049 (pass_data_align_insns): New pass.
5050 (pass_align_insns::gate): New pass gate function.
5051 (make_pass_aling_insns): New function.
5052 (rest_of_align_insns): Ditto.
5053 (alpha_align_insns): Ditto.
5054
5055 (alpha_option_override): Declare handle_trap_shadows info
5056 and align_insns_info. Register handle_trap_shadows and align_insns
5057 passes here.
5058 (alpha_reorg): Do not call alpha_trap_shadows and
5059 alpha_align_insn from here.
5060
5061 (alpha_pad_function_end): Do not skip BARRIERs.
5062
5063 2014-07-10 Rong Xu <xur@google.com>
5064
5065 Add gcov-tool: an offline gcda profile processing tool support.
5066 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
5067 (gcov_is_error): Ditto.
5068 (gcov_read_string): Ditto.
5069 (gcov_read_sync): Ditto.
5070 * gcov-io.h: Move counter defines to gcov-counter.def.
5071 * gcov-dump.c (tag_counters): Use gcov-counter.def.
5072 * coverage.c: Ditto.
5073 * gcov-tool.c: Offline gcda profile processing tool.
5074 (unlink_gcda_file): Remove one gcda file.
5075 (unlink_profile_dir): Remove gcda files from the profile path.
5076 (gcov_output_files): Output gcda files to an output dir.
5077 (profile_merge): Merge two profiles in directory.
5078 (print_merge_usage_message): Print merge usage.
5079 (merge_usage): Print merge usage and exit.
5080 (do_merge): Driver for profile merge sub-command.
5081 (profile_rewrite): Rewrite profile.
5082 (print_rewrite_usage_message): Print rewrite usage.
5083 (rewrite_usage): Print rewrite usage and exit.
5084 (do_rewrite): Driver for profile rewrite sub-command.
5085 (print_usage): Print gcov-info usage and exit.
5086 (print_version): Print gcov-info version.
5087 (process_args): Process arguments.
5088 (main): Main routine for gcov-tool.
5089 * Makefile.in: Build and install gcov-tool.
5090 * gcov-counter.def: New file split from gcov-io.h.
5091 * doc/gcc.texi: Include gcov-tool.texi.
5092 * doc/gcov-tool.texi: Document for gcov-tool.
5093
5094 2014-07-10 Richard Biener <rguenther@suse.de>
5095
5096 PR tree-optimization/61757
5097 * tree-ssa-dom.c (loop_depth_of_name): Restore.
5098 (propagate_rhs_into_lhs): Revert part of last change.
5099
5100 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
5101
5102 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
5103 FUNCTION_DECLs.
5104
5105 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
5106
5107 PR middle-end/53590
5108 * function.c (allocate_struct_function): Revert r188667 change.
5109
5110 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
5111
5112 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
5113
5114 * doc/install.texi: Remove links to defunct package providers for
5115 Solaris.
5116
5117 2014-07-09 Tom de Vries <tom@codesourcery.com>
5118
5119 * final.c (get_call_fndecl): Declare.
5120 (self_recursive_call_p): New function.
5121 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
5122
5123 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5124
5125 * ipa-devirt.c (record_node): Walk through aliases.
5126
5127 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5128
5129 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
5130
5131 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5132
5133 Revert:
5134 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5135
5136 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5137
5138 * ipa-visibility.c (function_and_variable_visibility): Remove
5139 temporary hack disabling local aliases on AIX.
5140
5141 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5142
5143 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
5144 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
5145
5146 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5147
5148 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
5149 * rs6000/rs6000.c: Inline output of .set instruction.
5150 (declare_alias_data): New struct.
5151 (rs6000_declare_alias): New function.
5152 (rs6000_xcoff_declare_function_name): Use it.
5153 (rs6000_xcoff_declare_object_name): New function.
5154 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
5155 (ASM_OUTPUT_DEF): Turn to empty definition.
5156
5157 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5158
5159 PR bootstrap/61679
5160 * hash-table.h: use hash_table::value_type instead of
5161 Descriptor::value_type in the return types of several methods.
5162
5163 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5164
5165 * tree-pass.h (pass_data): Remove has_execute member.
5166 * passes.c (execute_one_pass): Don't check pass->has_execute.
5167 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
5168 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
5169 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
5170 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
5171 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
5172 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
5173 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
5174 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
5175 gimple-low.c, gimple-ssa-isolate-paths.c,
5176 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
5177 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
5178 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
5179 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
5180 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
5181 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
5182 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
5183 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
5184 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
5185 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
5186 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
5187 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
5188 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
5189 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5190 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
5191 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
5192 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
5193 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
5194 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
5195 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
5196 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
5197 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
5198 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
5199 web.c: Remove initializer for pass_data::has_execute.
5200
5201 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5202
5203 * graphite-htab.h: Use hash_map instead of hash_table.
5204 * graphite-clast-to-gimple.c: Adjust.
5205 * passes.c: Use hash_map instead of hash_table.
5206 * sese.c: Likewise.
5207 * sese.h: Remove now unused code.
5208
5209 2014-07-08 Sriraman Tallam <tmsriram@google.com>
5210
5211 PR target/61599
5212 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
5213 than zero.
5214
5215 2014-07-08 Jakub Jelinek <jakub@redhat.com>
5216
5217 PR rtl-optimization/61673
5218 * combine.c (simplify_comparison): Test just mode's sign bit
5219 in tmode rather than the sign bit and any bits above it.
5220
5221 2014-07-08 Roman Gareev <gareevroman@gmail.com>
5222
5223 * graphite-isl-ast-to-gimple.c (generate_isl_context):
5224 Add __isl_give to the declaration.
5225 (generate_isl_schedule): Likewise.
5226 (scop_to_isl_ast): Likewise.
5227
5228 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5229
5230 * config/arm/arm.c (cortexa5_extra_costs): New table.
5231 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
5232
5233 2014-07-08 Jakub Jelinek <jakub@redhat.com>
5234
5235 PR tree-optimization/61725
5236 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
5237 range, use range_includes_zerop_p instead of integer_zerop on
5238 vr0->min, only use log2 of max if min is not negative.
5239
5240 2014-07-08 Richard Biener <rguenther@suse.de>
5241
5242 * tree-ssa-dom.h (loop_depth_of_name): Remove.
5243 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
5244 restriction on loop depth difference.
5245 (record_equality): Likewise.
5246 (propagate_rhs_into_lhs): Likewise. Simplify condition.
5247 (loop_depth_of_name): Remove.
5248 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
5249 restriction on loop depth difference.
5250 (init_copy_prop): Likewise.
5251
5252 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5253
5254 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
5255 parameter.
5256 (walk_aliased_vdefs): Likewise.
5257 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
5258 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
5259 (detect_type_change_from_memory_writes): Check if entry was reached.
5260
5261 2014-07-08 Richard Biener <rguenther@suse.de>
5262
5263 PR tree-optimization/61681
5264 * tree-ssa-structalias.c (find_what_var_points_to): Expand
5265 NONLOCAL inside ESCAPED.
5266
5267 2014-07-08 Richard Biener <rguenther@suse.de>
5268
5269 PR tree-optimization/61680
5270 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5271 Handle properly all read-write dependences with group accesses.
5272
5273 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
5274
5275 PR tree-optimization/61576
5276 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
5277 block containing reduction statement is predecessor of phi basi block.
5278
5279 2014-07-08 Marek Polacek <polacek@redhat.com>
5280
5281 PR c/60226
5282 * fold-const.c (round_up_loc): Change the parameter type.
5283 Remove assert.
5284 * fold-const.h (round_up_loc): Adjust declaration.
5285 * stor-layout.c (finalize_record_size): Check for too large types.
5286
5287 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
5288
5289 * symtab.c: Include calls.h.
5290 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
5291
5292 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
5293
5294 * config/rs6000/rs6000.c (output_vec_const_move): Handle
5295 little-endian code generation.
5296 * config/rs6000/spe.md (spe_evmergehi): Rename to...
5297 (vec_perm00_v2si): ... this. Handle little-endian code generation.
5298 (spe_evmergehilo): Rename to...
5299 (vec_perm01_v2si): ... this. Handle little-endian code generation.
5300 (spe_evmergelo): Rename to...
5301 (vec_perm11_v2si): ... this. Handle little-endian code generation.
5302 (spe_evmergelohi): Rename to...
5303 (vec_perm10_v2si): ... this. Handle little-endian code generation.
5304 (spe_evmergehi, spe_evmergehilo): New expanders.
5305 (spe_evmergelo, spe_evmergelohi): Likewise.
5306 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
5307 (*frob_tf_ti): Likewise.
5308 (*frob_<mode>_di_2): Likewise.
5309 (*frob_tf_di_8_2): Likewise.
5310 (*frob_di_<mode>): Likewise.
5311 (*frob_ti_tf): Likewise.
5312 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
5313 (*frob_ti_<mode>_8_2): Likewise.
5314 (*frob_ti_tf_2): Likewise.
5315 (mov_si<mode>_e500_subreg0): Rename to...
5316 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
5317 endianness only.
5318 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
5319 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
5320 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
5321 the big endianness only.
5322 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
5323 (*mov_si<mode>_e500_subreg0_2): Rename to...
5324 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
5325 big big endianness only.
5326 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
5327 (*mov_si<mode>_e500_subreg4): Rename to...
5328 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
5329 endianness only.
5330 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
5331 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
5332 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
5333 the big endianness only.
5334 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
5335 pattern.
5336 (*mov_si<mode>_e500_subreg4_2): Rename to...
5337 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
5338 endianness only.
5339 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
5340 (*mov_sitf_e500_subreg8): Rename to...
5341 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
5342 endianness only.
5343 (*mov_sitf_e500_subreg8_le): New instruction pattern.
5344 (*mov_sitf_e500_subreg8_2): Rename to...
5345 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
5346 endianness only.
5347 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
5348 (*mov_sitf_e500_subreg12): Rename to...
5349 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
5350 endianness only.
5351 (*mov_sitf_e500_subreg12_le): New instruction pattern.
5352 (*mov_sitf_e500_subreg12_2): Rename to...
5353 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
5354 endianness only.
5355 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
5356
5357 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
5358
5359 * asan.c (instrument_strlen_call): Do not instrument first byte
5360 in strlen if already instrumented.
5361
5362 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5363
5364 * config/arm/arm.opt (mwords-little-endian): Delete.
5365 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
5366 of TARGET_LITTLE_WORDS.
5367 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
5368 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
5369 warning.
5370 * doc/invoke.texi: Remove references to -mwords-little-endian.
5371
5372 2014-07-07 Jakub Jelinek <jakub@redhat.com>
5373
5374 * expmed.c (struct init_expmed_rtl): Change all fields but
5375 pow2 and cint from struct rtx_def to rtx.
5376 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
5377 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
5378 at the end again.
5379
5380 2014-07-06 Marek Polacek <polacek@redhat.com>
5381
5382 PR c/6940
5383 * doc/invoke.texi: Document -Wsizeof-array-argument.
5384
5385 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
5386
5387 * wide-int.h (wide_int_storage): Change declaration from struct
5388 to class.
5389
5390 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
5391
5392 * cgraph.c (cgraph_create_indirect_edge): Update call of
5393 get_polymorphic_call_info.
5394 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
5395 (possible_polymorphic_call_targets): Add parameter call.
5396 (decl_maybe_in_construction_p): New predicate.
5397 (get_polymorphic_call_info): Add parameter call;
5398 use decl_maybe_in_construction_p.
5399 * gimple-fold.c (fold_gimple_assign): Update use of
5400 possible_polymorphic_call_targets.
5401 (gimple_fold_call): Likewise.
5402 * ipa-prop.c: Inlcude calls.h
5403 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
5404 (param_type_may_change_p): New predicate.
5405 (detect_type_change_from_memory_writes): Break out from ...
5406 (detect_type_change): ... this one; use param_type_may_change_p.
5407 (detect_type_change_ssa): Use param_type_may_change_p.
5408 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
5409
5410 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
5411
5412 PR target/49423
5413 * config/arm/arm-protos.h (arm_legitimate_address_p,
5414 arm_is_constant_pool_ref): Add prototypes.
5415 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
5416 (arm_is_constant_pool_ref) New function.
5417 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
5418 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
5419 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
5420 operand. Remove pool_range and neg_pool_range attributes.
5421 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
5422 pool_range and neg_pool_range attributes.
5423 * config/arm/constraints.md (Uh): New constraint.
5424 (Uq): Don't allow constant pool references.
5425
5426 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
5427
5428 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
5429 (move_lo_quad_internal_be_<mode>): Likewise.
5430 (move_lo_quad_<mode>): Convert to define_expand.
5431 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
5432 (aarch64_simd_move_hi_quad_be_<mode>): New.
5433 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
5434 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
5435 (aarch64_combinez_be<mode>): New.
5436 (aarch64_combine<mode>): Convert to define_expand.
5437 (aarch64_combine_internal<mode>): New.
5438 (aarch64_simd_combine<mode>): Remove bogus RTL description.
5439
5440 2014-07-04 Tom de Vries <tom@codesourcery.com>
5441
5442 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
5443 combination of earlyclobber and read/write modifiers.
5444
5445 2014-07-04 Tom de Vries <tom@codesourcery.com>
5446
5447 * config/aarch64/aarch64-simd.md
5448 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
5449
5450 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
5451
5452 PR target/61714
5453 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
5454
5455 2014-07-04 Jakub Jelinek <jakub@redhat.com>
5456
5457 PR middle-end/61654
5458 * cgraphunit.c (expand_thunk): Call free_dominance_info.
5459
5460 PR tree-optimization/61684
5461 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
5462 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
5463
5464 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5465 Kito Cheng <kito@0xlab.org>
5466 Monk Chiang <sh.chiang04@gmail.com>
5467
5468 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
5469 (nds32_symbol_load_store_p): Move to ...
5470 (nds32_fp_as_gp_check_available): Move to ...
5471 * config/nds32/nds32-fp-as-gp.c: ... here.
5472 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
5473 extern declaration.
5474
5475 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5476 Kito Cheng <kito@0xlab.org>
5477 Monk Chiang <sh.chiang04@gmail.com>
5478
5479 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
5480 (nds32_expand_store_multiple): Move to ...
5481 (nds32_expand_movmemqi): Move to ...
5482 * config/nds32/nds32-memory-manipulation.c: ... here.
5483
5484 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5485 Kito Cheng <kito@0xlab.org>
5486 Monk Chiang <sh.chiang04@gmail.com>
5487
5488 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
5489 (nds32_output_casesi_pc_relative): Move to ...
5490 (nds32_output_casesi): Move to ...
5491 (nds32_mem_format): Move to ...
5492 (nds32_output_16bit_store): Move to ...
5493 (nds32_output_16bit_load): Move to ...
5494 (nds32_output_32bit_store): Move to ...
5495 (nds32_output_32bit_load): Move to ...
5496 (nds32_output_32bit_load_s): Move to ...
5497 (nds32_output_stack_push): Move to ...
5498 (nds32_output_stack_pop): Move to ...
5499 * config/nds32/nds32-md-auxiliary.c: ... here.
5500
5501 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5502 Ling-Hua Tseng <uranus@tinlans.org>
5503
5504 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
5505 the purpose of this file.
5506
5507 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5508 Kito Cheng <kito@0xlab.org>
5509 Monk Chiang <sh.chiang04@gmail.com>
5510
5511 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
5512 (nds32_address_cost): Move implementation to ...
5513 * config/nds32/nds32-cost.c: ... here.
5514 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
5515 (nds32_address_cost_impl): Declare.
5516
5517 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5518 Kito Cheng <kito@0xlab.org>
5519 Monk Chiang <sh.chiang04@gmail.com>
5520
5521 * config/nds32/nds32.c
5522 (nds32_consecutive_registers_load_store_p): Move to ...
5523 (nds32_valid_multiple_load_store): Move to ...
5524 (nds32_valid_stack_push_pop): Move to ...
5525 (nds32_can_use_bclr_p): Move to ...
5526 (nds32_can_use_bset_p): Move to ...
5527 (nds32_can_use_btgl_p): Move to ...
5528 (nds32_can_use_bitci_p): Move to ...
5529 * config/nds32/nds32-predicates.c: ... here.
5530
5531 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5532 Kito Cheng <kito@0xlab.org>
5533 Monk Chiang <sh.chiang04@gmail.com>
5534
5535 * config/nds32/nds32.c
5536 (nds32_expand_builtin_null_ftype_reg): Move to ...
5537 (nds32_expand_builtin_reg_ftype_imm): Move to ...
5538 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
5539 (nds32_init_builtins): Move implementation to ...
5540 (nds32_expand_builtin): Move implementation to ...
5541 * config/nds32/nds32-intrinsic.c: ... here.
5542 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
5543 (nds32_expand_builtin_impl): Declare.
5544
5545 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5546 Kito Cheng <kito@0xlab.org>
5547 Monk Chiang <sh.chiang04@gmail.com>
5548
5549 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
5550 (nds32_emit_section_tail_template): Move to ...
5551 (nds32_emit_isr_jmptbl_section): Move to ...
5552 (nds32_emit_isr_vector_section): Move to ...
5553 (nds32_emit_isr_reset_conten): Move to ...
5554 (nds32_check_isr_attrs_conflict): Move to ...
5555 (nds32_construct_isr_vectors_information): Move to ...
5556 (nds32_asm_file_start): Move implementation to ...
5557 (nds32_asm_file_end): Move implementation to ...
5558 * config/nds32/nds32-isr.c: ... here.
5559 * config/nds32/nds32-protos.h
5560 (nds32_check_isr_attrs_conflict): Declare.
5561 (nds32_construct_isr_vectors_information): Declare.
5562 (nds32_asm_file_start_for_isr): Declare.
5563 (nds32_asm_file_end_for_isr): Declare.
5564
5565 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5566 Kito Cheng <kito@0xlab.org>
5567 Monk Chiang <sh.chiang04@gmail.com>
5568
5569 * config.gcc (nds32*): Add new modules to extra_objs.
5570 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
5571 (nds32be-*-*): Likewise.
5572 * config/nds32/nds32-cost.c: New file.
5573 * config/nds32/nds32-fp-as-gp.c: New file.
5574 * config/nds32/nds32-intrinsic.c: New file.
5575 * config/nds32/nds32-isr.c: New file.
5576 * config/nds32/nds32-md-auxiliary.c: New file.
5577 * config/nds32/nds32-memory-manipulation.c: New file.
5578 * config/nds32/nds32-pipelines-auxiliary.c: New file.
5579 * config/nds32/nds32-predicates.c: New file.
5580 * config/nds32/t-nds32: New file.
5581
5582 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5583
5584 PR tree-optimization/61682
5585 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
5586 using cases and when one of the operands is equal to 1.
5587
5588 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
5589
5590 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
5591 ashr<mode>3): Correct mode of operands[2].
5592 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
5593 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
5594 Correct mode of operands[2]. Fix split condition.
5595
5596 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
5597
5598 * arm.md (arch): Add armv6_or_vfpv3.
5599 (arch_enabled): Add test for the above.
5600 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
5601 on VFP9.
5602 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
5603
5604 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5605
5606 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
5607 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
5608 HWI 1 and negate the unsigned value.
5609 * expmed.c (expand_sdiv_pow2): For modes wider than word always
5610 use AND instead of shift.
5611 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
5612
5613 2014-07-03 Marek Polacek <polacek@redhat.com>
5614
5615 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
5616 (-fsanitize=float-divide-by-zero): Move to the table with
5617 -fsanitize=undefined suboptions.
5618 (-fsanitize=float-cast-overflow): Likewise.
5619
5620 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
5621
5622 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
5623 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
5624 endianness.
5625
5626 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5627
5628 * loop-invariant.c (struct invariant): Add a new member: eqno;
5629 (find_identical_invariants): Update eqno;
5630 (create_new_invariant): Init eqno;
5631 (get_inv_cost): Compute comp_cost with eqno;
5632
5633 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5634
5635 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
5636 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
5637 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
5638 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
5639 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
5640
5641 2014-07-02 Christian Bruel <christian.bruel@st.com>
5642
5643 PR target/29349
5644 PR target/53513
5645 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
5646 (make_preds_opaque): Delete.
5647 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
5648 (commit_mode_sets): New function.
5649 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
5650 Process all modes at once.
5651 * basic-block.h (pre_edge_lcm_avs): Declare.
5652 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
5653 Call clear_aux_for_edges. Fix comments.
5654 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
5655 (pre_edge_rev_lcm): Idem.
5656 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
5657 parameter.
5658 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
5659 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5660 Idem.
5661 * config/i386/i386.c (x96_emit_mode_set): Idem.
5662 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
5663 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
5664 (fpscr_toggle) Disallow from delay slot.
5665 * target.def (emit_mode_set): Add prev_mode parameter.
5666 * doc/tm.texi: Regenerate.
5667
5668 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5669
5670 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
5671 variable i.
5672
5673 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5674
5675 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
5676 vtable_pointer_value_to_vtable): Constify.
5677 (contains_polymorphic_type_p): Declare.
5678 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
5679 vtable_pointer_value_to_vtable): Constify.
5680 (contains_polymorphic_type_p): New predicate.
5681 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
5682 polymorphic types.
5683 (ipa_set_ancestor_jf): Likewise.
5684 (detect_type_change): Return false in easy cases.
5685 (compute_complex_assign_jump_func): Require type to contain
5686 polymorphic type.
5687 (compute_known_type_jump_func): Likewise.
5688
5689 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5690
5691 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
5692 Remove.
5693 (type_in_anonymous_namespace_p): Constify argument.
5694 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
5695 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
5696 (main_odr_variant): New function.
5697 (hash_type_name): Make static; update assert; do not ICE on
5698 non-records.
5699 (types_same_for_odr): Bring here from tree.c; simplify and remove
5700 old structural comparing code that doesn't work for templates.
5701 (odr_hasher::equal): Update assert.
5702 (add_type_duplicate): Return true when bases should be computed;
5703 replace incomplete loader by complete; do not output duplicated
5704 warnings; do not ICE on non-records; set odr_violated flag.
5705 (get_odr_type): Be ready to replace incomplete type by complete
5706 one; work on ODR variants instead of main variants; reorder item
5707 in array so bases have still smaller indexes.
5708 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
5709 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
5710
5711 2014-07-01 Cary Coutant <ccoutant@google.com>
5712
5713 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
5714 lookup.
5715 (resolve_addr_in_expr): When replacing the rtx in a location list
5716 entry, get a new address table entry.
5717 (dwarf2out_finish): Call index_location_lists even if there are no
5718 addr_index_table entries yet.
5719
5720 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5721
5722 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
5723 change for not being obvious.
5724
5725 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5726
5727 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
5728 unused argument.
5729
5730 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5731
5732 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
5733 (vcagt_f64): Likewise.
5734 (vcale_f64): Likewise.
5735 (vcaled_f64): Likewise.
5736 (vcales_f32): Likewise.
5737 (vcalt_f64): Likewise.
5738 (vcaltd_f64): Likewise.
5739 (vcalts_f32): Likewise.
5740
5741 2014-07-01 Marek Polacek <polacek@redhat.com>
5742
5743 * doc/invoke.texi: Document -Wint-conversion.
5744
5745 2014-07-01 Marek Polacek <polacek@redhat.com>
5746
5747 PR c/58286
5748 * doc/invoke.texi: Document -Wincompatible-pointer-types.
5749
5750 2014-07-01 Martin Liska <mliska@suse.cz>
5751
5752 IPA REF alias refactoring
5753 * cgraph.h (iterate_direct_aliases): New function.
5754 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
5755 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
5756 FOR_EACH_ALIAS added.
5757 (cgraph_for_node_and_aliases): Likewise.
5758 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
5759 * ipa-inline.c (reset_edge_caches): Likewise.
5760 (update_caller_keys): Likewise.
5761 * trans-mem.c (ipa_tm_execute): Likewise.
5762 *varpool.c (varpool_analyze_node): Likewise.
5763 (varpool_for_node_and_aliases): Likewise.
5764 * ipa-ref.h (first_alias): New function.
5765 (last_alias): Likewise.
5766 (has_aliases_p): Likewise.
5767 * ipa-ref.c (ipa_ref::remove_reference): Removal function
5768 is sensitive to IPA_REF_ALIASes.
5769 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
5770 are put at the beginning of the list.
5771 (symtab_node::iterate_direct_aliases): New function.
5772
5773 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5774
5775 Revert:
5776 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5777 type is complete.
5778 (write_ts_type_common_tree_pointers): Do not stream fields not set
5779 for incomplete types; do not stream duplicated fields for variants;
5780 sanity check that variant and type match.
5781 (write_ts_type_non_common_tree_pointers): Likewise.
5782 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5783 TYPE_SIZE whether type is complete.
5784 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5785 write_ts_type_common_tree_pointers
5786 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5787
5788 2014-06-30 Joseph Myers <joseph@codesourcery.com>
5789
5790 * var-tracking.c (add_stores): Return instead of asserting if old
5791 and new values for conditional store are the same.
5792
5793 2014-06-30 Richard Henderson <rth@redhat.com>
5794
5795 PR rtl-opt/61608
5796 PR target/39284
5797 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
5798 the cfg if there were any changes.
5799 * passes.def: Revert move of peephole2 after reorder_blocks;
5800 move duplicate_computed_gotos before peephole2.
5801
5802 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
5803
5804 * except.c (emit_note_eh_region_end): New helper function.
5805 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
5806 emit EH_REGION_END note.
5807 * jump.c (cleanup_barriers): Do not split a call and its
5808 corresponding CALL_ARG_LOCATION note.
5809
5810 2014-06-30 Jeff Law <law@redhat.com>
5811
5812 PR tree-optimization/61607
5813 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
5814 deeper into the SSA_NAME_VALUE chain.
5815
5816 2014-06-30 Marek Polacek <polacek@redhat.com>
5817
5818 * convert.c (convert_to_integer): Don't instrument conversions if the
5819 function has no_sanitize_undefined attribute.
5820 * ubsan.c: Don't run the ubsan pass if the function has
5821 no_sanitize_undefined attribute.
5822
5823 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5824
5825 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
5826 -fsanitize=undefined suboptions.
5827
5828 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
5829
5830 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
5831 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
5832 against bigendian and adjust indices.
5833
5834 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5835
5836 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
5837
5838 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
5839
5840 PR target/61633
5841 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
5842 Add alternative; make early clobber. Adjust both split patterns
5843 to use operand 0 as the working register.
5844
5845 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5846
5847 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
5848 as ira_object_id_map might be NULL, or 1.
5849
5850 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5851
5852 * loop-invariant.c (get_inv_cost): Handle register class.
5853 (gain_for_invariant): Check the register pressure of the inv
5854 and its overlapped register class, other than all.
5855
5856 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5857
5858 * doc/invoke.texi (Optimize Options): Fix descriptions of
5859 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
5860
5861 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
5862
5863 * doc/extend.texi (Function Attributes): Update 'naked' attribute
5864 documentation.
5865
5866 2014-06-29 Tobias Grosser <tobias@grosser.es>
5867
5868 PR bootstrap/61650
5869 * graphite-isl-ast-to-gimple.c: Add missing guards.
5870
5871 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5872
5873 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
5874 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
5875 * flag-types.h: Add new enum fgraphite_generator.
5876 * graphite-isl-ast-to-gimple.c: New.
5877 * graphite-isl-ast-to-gimple.h: New.
5878 * graphite.c (graphite_transform_loops): Add choice of Graphite
5879 code generator, which depends on flag_graphite_code_gen.
5880
5881 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5882
5883 * graphite-dependences.c (subtract_commutative_associative_deps):
5884 Add NULL checking of the following variables: must_raw_no_source,
5885 may_raw_no_source, must_war_no_source, may_war_no_source,
5886 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
5887 must_war, may_war, must_waw, may_waw.
5888
5889 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5890
5891 * graphite-clast-to-gimple.c: gloog is renamed to
5892 graphite_regenerate_ast_cloog. gloog_error is renamed to
5893 graphite_regenerate_error.
5894 * graphite-clast-to-gimple.h: The definition of the struct
5895 bb_pbb_def is moved to graphite-htab.h.
5896 Add inclusion of the hash-table.h.
5897 * graphite-htab.h: The declaration of the function gloog is moved
5898 to graphite-clast-to-gimple.h and renamed to
5899 graphite_regenerate_ast_cloog.
5900 * graphite.c (graphite_transform_loops): gloog is renamed
5901 to graphite_regenerate_ast_cloog.
5902
5903 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5904
5905 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5906 type is complete.
5907 (write_ts_type_common_tree_pointers): Do not stream fields not set
5908 for incomplete types; do not stream duplicated fields for variants;
5909 sanity check that variant and type match.
5910 (write_ts_type_non_common_tree_pointers): Likewise.
5911 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5912 TYPE_SIZE whether type is complete.
5913 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5914 write_ts_type_common_tree_pointers
5915 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5916
5917 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5918
5919 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
5920
5921 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5922
5923 * tree-inline.c (remap_type_1): Do not duplicate fields
5924 that are shared in between type and its main variant.
5925
5926 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5927
5928 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
5929 of the type.
5930 (ipa_set_ancestor_jf) Likewise.
5931 (check_stmt_for_type_change): Check that we work on main variant.
5932 (detect_type_change): Look into main variant.
5933 (compute_known_type_jump_func): Check that main variant has BINFO.
5934
5935 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5936
5937 * ipa-devirt.c (set_type_binfo): New function.
5938 (add_type_duplicate): Use it.
5939 (get_odr_type): Sanity check that binfos points to main variants.
5940 (get_class_context): Be sure the context's outer_type is main variant.
5941 (contains_type_p): Walk main variant.
5942 (get_polymorphic_call_info_for_decl): Set outer_type to be
5943 main variant.
5944 (get_polymorphic_call_info): Likewise.
5945 (possible_polymorphic_call_targets): Sanity check that we operate
5946 on main variant.
5947
5948 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5949
5950 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5951
5952 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5953
5954 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
5955 accidental change due to wide-int branch merge.
5956
5957 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5958
5959 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
5960 compressed debug support.
5961 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
5962 * configure: Regenerate.
5963 * config.in: Regenerate.
5964 * common.opt (compressed_debug_sections): New enum.
5965 (gz, gz=): New options.
5966 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
5967 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
5968 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
5969 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
5970 LINK_COMPRESS_DEBUG_SPEC.
5971 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
5972 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
5973 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
5974 (Debugging Options): Document -gz[=type].
5975
5976 2014-06-27 Martin Jambor <mjambor@suse.cz>
5977
5978 PR ipa/61160
5979 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
5980 args_to_skip, use those from node instead. Copy args_to_skip and
5981 combined_args_to_skip from node to the new thunk.
5982 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
5983 (cgraph_create_virtual_clone): Moved computation of
5984 combined_args_to_skip...
5985 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
5986
5987 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
5988
5989 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
5990 redundant diagnostic machinary.
5991
5992 2014-06-27 Richard Biener <rguenther@suse.de>
5993
5994 * tree-ssa-math-opts.c (bswap_replace): Fix
5995 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
5996
5997 2014-06-27 Martin Liska <mliska@suse.cz>
5998
5999 * gimple.h (gimple_location_safe): New function introduced.
6000 * cgraphunit.c (walk_polymorphic_call_targets): Usage
6001 of gimple_location_safe replaces gimple_location.
6002 (gimple_fold_call): Likewise.
6003 * ipa-devirt.c (ipa_devirt): Likewise.
6004 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6005 * ipa.c (walk_polymorphic_call_targets): Likewise.
6006 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
6007
6008 2014-06-27 Jakub Jelinek <jakub@redhat.com>
6009
6010 PR tree-optimization/57233
6011 PR tree-optimization/61299
6012 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
6013 functions.
6014 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
6015 would be lowered to scalar shifts, check if corresponding
6016 shifts and vector BIT_IOR_EXPR are supported and don't lower
6017 or lower just to narrower vector type in that case.
6018 * expmed.c (expand_shift_1): Fix up handling of vector
6019 shifts and rotates.
6020
6021 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
6022
6023 PR target/61586
6024 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
6025
6026 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
6027
6028 * doc/invoke.texi (-fsemantic-interposition): Document.
6029 * common.opt (fsemantic-interposition): New flag.
6030 * varasm.c (decl_replaceable_p): Use it.
6031
6032 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6033
6034 PR target/61542
6035 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
6036 extraction other than index 3.
6037
6038 2014-06-26 Teresa Johnson <tejohnson@google.com>
6039
6040 * doc/invoke.texi: Fix typo.
6041 * dumpfile.c: Add support for documented -fdump-* options
6042 optimized/missed/note/optall.
6043
6044 2014-06-26 Martin Jambor <mjambor@suse.cz>
6045
6046 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
6047 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
6048 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
6049 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
6050 * opts.c (default_options_optimization): Set
6051 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
6052 * doc/invoke.texi (allow-load-data-races)
6053 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
6054 (allow-store-data-races): Document the new default.
6055
6056 2014-06-26 Martin Jambor <mjambor@suse.cz>
6057
6058 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
6059 renamed to ipa_impossible_devirt_target. Fix typo.
6060 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
6061 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
6062 ipa_impossible_devirt_target.
6063
6064 2014-06-26 Richard Biener <rguenther@suse.de>
6065
6066 PR tree-optimization/61607
6067 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
6068 explaining why we restrict copies on loop depth.
6069 * tree-ssa-dom.c (cprop_operand): Remove restriction on
6070 on loop depth.
6071 (record_equivalences_from_phis): Instead add it here.
6072
6073 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
6074
6075 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
6076 (LTO_WRAPPER_OBJS): New variable.
6077 (lto-wrapper$(exeext)): Use it.
6078 * collect2.c: Include "collect-utils.h".
6079 (verbose, debug): Remove variables.
6080 (at_file_supplied): No longer static.
6081 (tool_name): New variable.
6082 (do_wait, fork_execute, maybe_unlink): Don't declare.
6083 (tool_cleanup): No longer static.
6084 (notice): Remove function.
6085 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
6086 fork_execute calls.
6087 (collect_wait, do_wait, collect_execute): Remove functions.
6088 (maybe_unlink): No longer static.
6089 * collect2.h (verbose, debug): Don't declare.
6090 (at_file_supplied): Declare.
6091 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
6092 changed.
6093 (collect_execute): Replace with implementation from collect2, plus a
6094 new arg use_atfile. All callers changed.
6095 (collect_wait): Replace with implementation from collect2.
6096 (maybe_unlink_file): Remove function.
6097 (fork_execute): Replace with implementation from collect2, plus a
6098 new arg use_atfile. All callers changed.
6099 (do_wait): Add call to utils_cleanup to the error path.
6100 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
6101 (tool_cleanup): Adjust declarations.
6102 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
6103 * tlink.c: Include "collect-utils.h".
6104 (tlink_execute): New arg use_atfile. All callers changed.
6105 (tlink_init, tlink_execute): Remove declarations.
6106
6107 * collect-utils.c (save_temps): New variable.
6108 (do_wait): Use it instead of debug. Use fatal_error.
6109 * collect-utils.h (save_temps): Declare.
6110 * collect2.c (verbose): Rename from vflag. All uses changed.
6111 (tool_cleanup): New function, copied from collect_atexit.
6112 (collect_atexit, handler): Just call it.
6113 * collect2.h (verbose): Declaration renamed from vflag.
6114 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
6115 debug.
6116
6117 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
6118 (lto-wrapper$(exeext)): Link with collect-utils.o.
6119 * collect-utils.c: New file.
6120 * collect-utils.h: New file.
6121 * lto-wrapper.c: Include "collect-utils.h".
6122 (args_name): Delete variable.
6123 (tool_name): New variable.
6124 (tool_cleanup): New function.
6125 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
6126 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
6127 (fork_execute): Remove functions.
6128
6129 2014-06-26 Nick Clifton <nickc@redhat.com>
6130
6131 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
6132
6133 * doc/extend.texi (Function Attributes): Fix typo in description
6134 of RX vector attribute.
6135
6136 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6137
6138 * config.gcc (supported_defaults): Error when passing either
6139 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
6140
6141 2014-06-26 Richard Biener <rguenther@suse.de>
6142
6143 * tree-ssa-dom.c (cprop_operand): Remove restriction on
6144 propagating volatile pointers.
6145
6146 2014-06-26 Richard Biener <rguenther@suse.de>
6147
6148 PR tree-optimization/61607
6149 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
6150 loop if we redirected its latch edge.
6151 (thread_block_1): Do not cancel loops prematurely.
6152
6153 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
6154
6155 * toplev.c (backend_init_target): Move init_emit_regs and
6156 init_regs to...
6157 (backend_init) ... here; skip ira_init_once and backend_init_target.
6158 (target_reinit) ... and here; clear
6159 this_target_rtl->lang_dependent_initialized.
6160 (lang_dependent_init_target): Clear
6161 this_target_rtl->lang_dependent_initialized;
6162 break out rtl initialization to ...
6163 (initialize_rtl): ... here; call also backend_init_target
6164 and ira_init_once.
6165 * toplev.h (initialize_rtl): New function.
6166 * function.c: Include toplev.h
6167 (init_function_start): Call initialize_rtl.
6168 * rtl.h (target_rtl): Add target_specific_initialized,
6169 lang_dependent_initialized.
6170
6171 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
6172 Jakub Jelinek <jakub@redhat.com>
6173
6174 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
6175
6176 2014-06-25 Tom de Vries <tom@codesourcery.com>
6177
6178 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
6179
6180 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6181
6182 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
6183 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
6184 Issue a strict overflow warning if appropriate.
6185
6186 2014-06-25 Martin Liska <mliska@suse.cz>
6187
6188 IPA REF refactoring
6189 * Makefile.in: Removed header file (ipa-ref-inline.h).
6190 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
6191 called.
6192 (cgraph_speculative_call_info): Likewise.
6193 (cgraph_for_node_thunks_and_aliases): Likewise.
6194 (cgraph_for_node_and_aliases): Likewise.
6195 (verify_cgraph_node): Likewise.
6196 * cgraph.h: Batch of IPA REF functions become member functions of
6197 symtab_node: add_reference, maybe_add_reference, clone_references,
6198 clone_referring, clone_reference, find_reference,
6199 remove_stmt_references, remove_all_references,
6200 remove_all_referring, dump_references, dump_referring,
6201 has_alias_p, iterate_reference, iterate_referring.
6202 * cgraphbuild.c (record_reference): New IPA REF function used.
6203 (record_type_list): Likewise.
6204 (record_eh_tables): Likewise.
6205 (mark_address): Likewise.
6206 (mark_load): Likewise.
6207 (mark_store): Likewise.
6208 (pass_build_cgraph_edges): Likewise.
6209 (rebuild_cgraph_edge): Likewise.
6210 (cgraph_rebuild_references): Likewise.
6211 (pass_remove_cgraph_callee_edges): Likewise.
6212 * cgraphclones.c (cgraph_clone_node): Likewise.
6213 (cgraph_create_virtual_clone): Likewise.
6214 (cgraph_materialize_clone): Likewise.
6215 (cgraph_materialize_all_clones): Likewise.
6216 * cgraphunit.c (cgraph_reset_node): Likewise.
6217 (cgraph_reset_node): Likewise.
6218 (analyze_function): Likewise.
6219 (assemble_thunks_and_aliases): Likewise.
6220 (expand_function): Likewise.
6221 * ipa-comdats.c (propagate_comdat_group): Likewise.
6222 (enqueue_references): Likewise.
6223 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
6224 (create_specialized_node): Likewise.
6225 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
6226 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
6227 * ipa-inline.c (reset_edge_caches): Likewise.
6228 (update_caller_keys): Likewise.
6229 (execute): Likewise.
6230 * ipa-prop.c (remove_described_reference): Likewise.
6231 (propagate_controlled_uses): Likewise.
6232 (ipa_edge_duplication_hook): Likewise.
6233 (ipa_modify_call_arguments): Likewise.
6234 * ipa-pure-const.c (propagate_pure_const): Likewise.
6235 * ipa-ref-inline.h: Header file removed, functions moved
6236 to symtab_node class.
6237 * ipa-ref.c (remove_reference): New class member function.
6238 (cannot_lead_to_return): New class member function.
6239 (referring_ref_list): Likewise.
6240 (referred_ref_list): Likewise.
6241 Rest of functions moved to symtab_node class.
6242 * ipa-ref.h: New member functions remove_reference,
6243 cannot_lead_to_return, referring_ref_list, referred_ref_list added
6244 to ipa_ref class.
6245 ipa_ref_list class has new member functions: first_reference,
6246 first_referring, clear, nreferences.
6247 * ipa-reference.c (analyze_function): New IPA REF function used.
6248 (write_node_summary_p): Likewise.
6249 (ipa_reference_write_optimization_summary): Likewise.
6250 * ipa-split.c (split_function): Likewise.
6251 * ipa-utils.c (ipa_reverse_postorder): Likewise.
6252 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
6253 (function_and_variable_visibility): Likewise.
6254 * ipa.c (has_addr_references_p): Likewise.
6255 (process_references): Argument type changed.
6256 (symtab_remove_unreachable_nodes): New IPA REF function used.
6257 (process_references): Likewise.
6258 (set_writeonly_bit): Likewise.
6259 * lto-cgraph.c: Implementation of new symtab_node member functions
6260 that uses new IPA REF functions.
6261 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
6262 function used.
6263 * lto-streamer-out.c (output_symbol_p): Likewise.
6264 * lto-streamer.h (referenced_from_this_partition_p): Argument type
6265 changed.
6266 * symtab.c: Implementation of new IPA REF API.
6267 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
6268 (ipa_tm_create_version): Likewise.
6269 (ipa_tm_execute): Likewise.
6270 * tree-emutls.c (gen_emutls_addr): Likewise.
6271 * tree-inline.c (copy_bb): Likewise.
6272 (delete_unreachable_blocks_update_callgraph): Likewise.
6273 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
6274 (varpool_for_node_and_aliases): Likewise.
6275
6276 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
6277
6278 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
6279
6280 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
6281
6282 PR bootstrap/61598
6283 * fold-const.c (fold_checksum_tree): Use a hash_table of const
6284 tree_node * instead of tree_node *.
6285 (fold): Adjust.
6286 (print_fold_checksum): Likewise.
6287 (fold_check_failed): Likewise.
6288 (debug_fold_checksum): Likewise.
6289 (fold_build1_stat_loc): Likewise.
6290 (fold_build2_stat_loc): Likewise.
6291 (fold_build3_stat_loc): Likewise.
6292 (fold_build_call_array_loc): Likewise.
6293
6294 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
6295
6296 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
6297 implementation with call to...
6298 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
6299 function.
6300 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
6301 Declare.
6302
6303 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
6304
6305 PR tree-optimization/57742
6306 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
6307 after replacing the statement.
6308
6309 2014-06-25 Nick Clifton <nickc@redhat.com>
6310
6311 * config/v850/v850.c (GHS_default_section_names): Change to const
6312 char * type.
6313 (GHS_current_section_names): Likewise.
6314 (v850_insert_attributes): Do not build strings, just assign the
6315 names directly. Change the type of 'chosen_section' to const
6316 char*.
6317 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
6318 directly to the array entry.
6319 * config/v850/v850.h (GHS_default_section_names): Change to const
6320 char * type.
6321 (GHS_current_section_names): Likewise.
6322
6323 2014-06-25 Jakub Jelinek <jakub@redhat.com>
6324
6325 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
6326 (LANG_HOOKS_DECLS): Add it.
6327 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
6328 has correct type.
6329 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
6330 * langhooks.h (struct lang_hooks_for_decls): Add
6331 omp_clause_linear_ctor hook.
6332 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
6333 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
6334 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
6335 combined simd loop use omp_clause_linear_ctor hook.
6336
6337 2014-06-24 Cong Hou <congh@google.com>
6338
6339 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
6340 pattern recognition.
6341 (type_conversion_p): PROMOTION is true if it's a type promotion
6342 conversion, and false otherwise. Return true if the given expression
6343 is a type conversion one.
6344 * tree-vectorizer.h: Adjust the number of patterns.
6345 * tree.def: Add SAD_EXPR.
6346 * optabs.def: Add sad_optab.
6347 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
6348 * expr.c (expand_expr_real_2): Likewise.
6349 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6350 * gimple.c (get_gimple_rhs_num_ops): Likewise.
6351 * optabs.c (optab_for_tree_code): Likewise.
6352 * tree-cfg.c (estimate_operator_cost): Likewise.
6353 * tree-ssa-operands.c (get_expr_operands): Likewise.
6354 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
6355 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
6356 * doc/generic.texi: Add document for SAD_EXPR.
6357 * doc/md.texi: Add document for ssad and usad.
6358
6359 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6360
6361 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
6362 qualification in cast.
6363
6364 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
6365
6366 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
6367 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
6368 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
6369 (tree_function_decl): ... here.
6370 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
6371 streaming of vindex to ...
6372 (write_ts_function_decl_tree_pointers): ... here.
6373 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
6374 Do not stream DECL_VINDEX.
6375 (lto_input_ts_function_decl_tree_pointers): Stream it here.
6376
6377 2014-06-24 Catherine Moore <clm@codesourcery.com>
6378 Sandra Loosemore <sandra@codesourcery.com>
6379
6380 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
6381 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
6382 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
6383
6384 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6385
6386 * doc/invoke.texi (Warning Options): Remove duplicated
6387 -Wmaybe-uninitialized.
6388
6389 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6390
6391 PR tree-optimization/57742
6392 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
6393 (handle_builtin_malloc, handle_builtin_memset): New functions.
6394 (strlen_optimize_stmt): Call them.
6395 * passes.def: Move strlen after loop+dom but before vrp.
6396
6397 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6398
6399 PR target/61570
6400 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
6401 model family 6 CPU with has_longmode never use a CPU without
6402 64-bit support.
6403
6404 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
6405
6406 PR target/61570
6407 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
6408 the last change.
6409
6410 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6411
6412 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
6413 * dominance.c (iterate_fix_dominators): Use hash_map instead of
6414 pointer_map.
6415 * hash-map.h: New file.
6416 * ipa-comdats.c: Use hash_map instead of pointer_map.
6417 * ipa.c: Likewise.
6418 * lto-section-out.c: Adjust.
6419 * lto-streamer.h: Replace pointer_map with hash_map.
6420 * symtab.c (verify_symtab): Likewise.
6421 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
6422 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
6423 * tree-streamer.h: Likewise.
6424 * tree-streamer.c: Adjust.
6425 * pointer-set.h: Remove pointer_map.
6426
6427 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6428
6429 * hash-table.h: Add a template arg to choose between storing values
6430 and storing pointers to values, and then provide partial
6431 specializations for both.
6432 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
6433 should store, not the type values should point to.
6434 * tree-into-ssa.c (var_info_hasher): Likewise.
6435 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6436 * tree-complex.c: Adjust.
6437 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
6438 table instead of int_tree_map *.
6439 * tree-parloops.c: Adjust.
6440 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
6441 type is being stored.
6442 * tree-vectorizer.c: Adjust.
6443
6444 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6445
6446 * hash-table.h: Remove a layer of indirection from hash_table so that
6447 it contains the hash table's data instead of a pointer to the data.
6448 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
6449 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
6450 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
6451 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
6452 fold-const.c, gcse.c, ggc-common.c,
6453 gimple-ssa-strength-reduction.c, gimplify.c,
6454 graphite-clast-to-gimple.c, graphite-dependences.c,
6455 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
6456 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
6457 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
6458 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
6459 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
6460 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
6461 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
6462 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
6463 tree-ssa-live.c, tree-ssa-loop-im.c,
6464 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
6465 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6466 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
6467 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
6468 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
6469 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
6470 vtable-verify.c, vtable-verify.h: Adjust.
6471
6472 2014-06-24 Richard Biener <rguenther@suse.de>
6473
6474 PR tree-optimization/61572
6475 * tree-ssa-sink.c (statement_sink_location): Do not sink
6476 loads from hard registers.
6477
6478 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6479
6480 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
6481 not mentioned in clauses use private clause if the iterator is
6482 declared in #pragma omp for simd, and when adding lastprivate
6483 instead, add it to the outer #pragma omp for too. Diagnose
6484 if the variable is private in outer context. For simd collapse > 1
6485 loops, replace all iterators with temporaries.
6486 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
6487 same even in collapse > 1 loops.
6488
6489 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
6490 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
6491 non-NULL.
6492 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
6493 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
6494 non-NULL.
6495 (gimplify_adjust_omp_clauses): Likewise.
6496 * omp-low.c (lower_rec_simd_input_clauses,
6497 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
6498 safelen the same as safelen(1).
6499 * tree-nested.c (convert_nonlocal_omp_clauses,
6500 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
6501 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
6502 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
6503 Fixup handling of GIMPLE_OMP_TARGET.
6504 (convert_tramp_reference_stmt, convert_gimple_call): Handle
6505 GIMPLE_OMP_TARGET.
6506
6507 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
6508
6509 PR tree-optimization/61554
6510 * tree-ssa-propagate.c: Include "bitmap.h".
6511 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
6512 properly update constructor/destructor.
6513 (substitute_and_fold_dom_walker::before_dom_children):
6514 Remove call to gimple_purge_dead_eh_edges, add bb->index to
6515 need_eh_cleaup instead.
6516 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
6517 need_eh_cleanup.
6518
6519 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6520
6521 * varpool.c (dump_varpool_node): Dump used_by_single_function.
6522 * tree-pass.h (make_pass_ipa_single_use): New pass.
6523 * cgraph.h (used_by_single_function): New flag.
6524 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
6525 Stream it.
6526 * passes.def (pass_ipa_single_use): Scedule.
6527 * ipa.c (BOTTOM): New macro.
6528 (meet): New function
6529 (propagate_single_user): New function.
6530 (ipa_single_use): New function.
6531 (pass_data_ipa_single_use): New pass.
6532 (pass_ipa_single_use): New pass.
6533 (pass_ipa_single_use::gate): New gate.
6534 (make_pass_ipa_single_use): New function.
6535
6536 2014-06-23 Kai Tietz <ktietz@redhat.com>
6537
6538 PR target/39284
6539 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
6540 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
6541
6542 2014-06-23 Richard Biener <rguenther@suse.de>
6543
6544 * tree-ssa-loop.c (gate_loop): New function.
6545 (pass_tree_loop::gate): Call it.
6546 (pass_data_tree_no_loop, pass_tree_no_loop,
6547 make_pass_tree_no_loop): New.
6548 * tree-vectorizer.c: Include tree-scalar-evolution.c
6549 (pass_slp_vectorize::execute): Initialize loops and SCEV if
6550 required.
6551 (pass_slp_vectorize::clone): New method.
6552 * timevar.def (TV_TREE_NOLOOP): New.
6553 * tree-pass.h (make_pass_tree_no_loop): Declare.
6554 * passes.def (pass_tree_no_loop): New pass group with
6555 SLP vectorizer.
6556
6557 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
6558
6559 PR target/61570
6560 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
6561 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
6562
6563 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6564
6565 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
6566 "yes" where needed.
6567
6568 2014-06-23 Alan Modra <amodra@gmail.com>
6569
6570 PR bootstrap/61583
6571 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
6572 to zero on debug statements.
6573
6574 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6575
6576 PR target/60825
6577 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
6578 Ignore third operand if present by marking qualifier_internal.
6579
6580 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
6581
6582 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
6583 vector extension.
6584 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
6585 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
6586 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
6587 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
6588 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
6589 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
6590 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
6591 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
6592 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
6593 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
6594 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
6595 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
6596 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
6597 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
6598 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
6599 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
6600 logic in GCC vector extensions
6601
6602 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
6603 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
6604 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
6605 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
6606 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
6607 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
6608 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
6609 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
6610 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
6611 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
6612
6613 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
6614
6615 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
6616 extensions.
6617
6618 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
6619 (vget_low_s64): Use __GET_LOW macro.
6620 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
6621 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
6622 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
6623 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
6624 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
6625
6626 (vcombine_s64): Use GCC vector extensions; remove cast.
6627 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
6628 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
6629 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
6630 Fix type signature; remove cast.
6631
6632 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6633
6634 PR target/60825
6635 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
6636 V1DFmode.
6637 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
6638 add V1DFmode
6639 (BUILTIN_VD1): New.
6640 (BUILTIN_VD_RE): Remove.
6641 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
6642 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
6643 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
6644 variant but not df.
6645 (vreinterpretv1df*, vreinterpret*v1df): New.
6646 (vreinterpretdf*, vreinterpret*df): Remove.
6647 * config/aarch64/aarch64-simd.md (aarch64_create,
6648 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
6649 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
6650 (VD1): New.
6651 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
6652 (vcreate_f64): Remove cast, use v1df builtin.
6653 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
6654 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
6655 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
6656 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
6657 vmov_n_f64, vst1_f64): Use gcc vector extensions.
6658 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
6659 add range check using __builtin_aarch64_im_lane_boundsi.
6660 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
6661 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
6662 type signature, use gcc vector extensions.
6663 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
6664 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
6665 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
6666 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
6667 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
6668 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
6669 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
6670 vreinterpret_u64_f64): Use v1df builtin not df.
6671
6672 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6673
6674 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
6675 vector registers.
6676
6677 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6678
6679 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
6680 priority directly.
6681
6682 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6683
6684 * loop-invariant.c (pre_check_invariant_p): New function.
6685 (find_invariant_insn): Call pre_check_invariant_p.
6686
6687 2014-06-22 Richard Henderson <rth@redhat.com>
6688
6689 PR target/61565
6690 * compare-elim.c (struct comparison): Add eh_note.
6691 (find_comparison_dom_walker::before_dom_children): Don't eliminate
6692 a redundant comparison in a different EH region. Purge EH edges if
6693 necessary.
6694
6695 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6696
6697 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
6698 (var_shift): Use it.
6699 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
6700 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
6701 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
6702 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
6703 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
6704 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
6705 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
6706 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
6707 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
6708 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
6709 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
6710 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
6711 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
6712 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
6713 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
6714 *rotldi3_internal15be): Use the new attribute. Merge register and
6715 integer alternatives.
6716
6717 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6718
6719 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
6720 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
6721 split, *ashrdi3_internal3 and split): Delete, merge into...
6722 (ashr<mode>3): New expander.
6723 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
6724 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
6725
6726 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6727
6728 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
6729 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
6730 *rotldi3_internal3 and split): Delete, merge into...
6731 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
6732 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
6733 Use "rotlw" extended mnemonic.
6734
6735 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6736
6737 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
6738 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
6739 and split, *ashldi3_internal3 and split): Delete, merge into...
6740 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
6741 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
6742
6743 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6744
6745 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
6746 (lshrsi3, two anonymous define_insns and define_splits,
6747 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
6748 *lshrdi3_internal3 and split): Delete, merge into...
6749 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
6750 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
6751
6752 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6753
6754 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
6755 Remove "O" alternative.
6756
6757 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
6758
6759 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
6760 (mips_move_from_gpr_cost): Likewise.
6761 (mips_register_move_cost): Update accordingly.
6762 (mips_secondary_reload_class): Remove name of in_p.
6763
6764 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
6765
6766 PR target/61503
6767 * config/i386/i386.md (x86_64_shrd, x86_shrd,
6768 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
6769
6770 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6771
6772 * config/nios2/nios2.c: Include "builtins.h".
6773
6774 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6775
6776 * cgraph.h (tls_model_names): New variable.
6777 * print-tree.c (print_node): Simplify.
6778 * varpool.c (tls_model_names): New variable.
6779 (dump_varpool_node): Output tls model.
6780
6781 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6782
6783 * ipa-visibility.c (function_and_variable_visibility): Disable
6784 temporarily local aliases for some targets.
6785
6786 2014-06-20 Marek Polacek <polacek@redhat.com>
6787
6788 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
6789 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
6790 into SANITIZE_UNDEFINED.
6791 * doc/invoke.texi: Describe -fsanitize=bounds.
6792 * gimplify.c (gimplify_call_expr): Add gimplification of internal
6793 functions created in the FEs.
6794 * internal-fn.c: Move "internal-fn.h" after "tree.h".
6795 (expand_UBSAN_BOUNDS): New function.
6796 * internal-fn.def (UBSAN_BOUNDS): New internal function.
6797 * internal-fn.h: Don't define internal functions here.
6798 * opts.c (common_handle_option): Add -fsanitize=bounds.
6799 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
6800 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
6801 * tree-core.h: Define internal functions here.
6802 (struct tree_base): Add ifn field.
6803 * tree-pretty-print.c: Include "internal-fn.h".
6804 (dump_generic_node): Handle functions without CALL_EXPR_FN.
6805 * tree.c (get_callee_fndecl): Likewise.
6806 (build_call_expr_internal_loc): New function.
6807 * tree.def (CALL_EXPR): Update description.
6808 * tree.h (CALL_EXPR_IFN): Define.
6809 (build_call_expr_internal_loc): Declare.
6810 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
6811 types.
6812 (ubsan_type_descriptor): Change bool parameter to enum
6813 ubsan_print_style. Adjust the code. Add handling of
6814 UBSAN_PRINT_ARRAY.
6815 (ubsan_expand_bounds_ifn): New function.
6816 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
6817 (ubsan_build_overflow_builtin): Likewise.
6818 (instrument_bool_enum_load): Likewise.
6819 (ubsan_instrument_float_cast): Likewise.
6820 * ubsan.h (enum ubsan_print_style): New enum.
6821 (ubsan_expand_bounds_ifn): Declare.
6822 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
6823
6824 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
6825
6826 * config/rs6000/rs6000.md: Append `DONE' to preparation
6827 statements of `bswap' pattern splitters.
6828
6829 2014-06-20 Tom de Vries <tom@codesourcery.com>
6830
6831 * target.def (call_fusage_contains_non_callee_clobbers): Update
6832 definition.
6833 * doc/tm.texi: Regenerate.
6834
6835 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6836 Max Ostapenko <m.ostapenko@partner.samsung.com>
6837
6838 PR sanitizer/61547
6839 * asan.c (instrument_strlen_call): Fixed instrumentation of
6840 trailing byte.
6841
6842 2014-06-20 Martin Jambor <mjambor@suse.cz>
6843
6844 PR ipa/61540
6845 * ipa-prop.c (impossible_devirt_target): New function.
6846 (try_make_edge_direct_virtual_call): Use it, also instead of
6847 asserting.
6848
6849 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6850 Max Ostapenko <m.ostapenko@partner.samsung.com>
6851
6852 PR sanitizer/61530
6853 * asan.c (build_check_stmt): Add condition.
6854
6855 2014-06-20 Martin Jambor <mjambor@suse.cz>
6856
6857 PR ipa/61211
6858 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
6859 expanded clones.
6860
6861 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6862
6863 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
6864 Update comments.
6865 (VCONQ): Make comment more helpful.
6866 (VCON): Delete.
6867 * config/aarch64/aarch64-simd.md
6868 (aarch64_sqdmulh_lane<mode>):
6869 Use VCOND for operands 2. Update lane checking and flipping logic.
6870 (aarch64_sqrdmulh_lane<mode>): Likewise.
6871 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
6872 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
6873 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
6874 attribute of operand 3 to VCOND.
6875 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
6876 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
6877 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
6878 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
6879 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
6880 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
6881 define_insn.
6882 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
6883 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
6884 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
6885 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
6886 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
6887 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
6888 operand to VCOND. Update lane flipping and bounds checking logic.
6889 (aarch64_sqdmlal2_lane<mode>): Likewise.
6890 (aarch64_sqdmlsl_lane<mode>): Likewise.
6891 (aarch64_sqdmull_lane<mode>): Likewise.
6892 (aarch64_sqdmull2_lane<mode>): Likewise.
6893 (aarch64_sqdmlal_laneq<mode>):
6894 Replace VCON usage with VCONQ.
6895 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
6896 (aarch64_sqdmlal2_laneq<mode>): Emit
6897 aarch64_sqdmlal2_laneq<mode>_internal insn.
6898 Replace VCON with VCONQ.
6899 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
6900 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
6901 (aarch64_sqdmull_laneq<mode>): Emit
6902 aarch64_sqdmull_laneq<mode>_internal insn.
6903 Replace VCON with VCONQ.
6904 (aarch64_sqdmull2_laneq<mode>): Emit
6905 aarch64_sqdmull2_laneq<mode>_internal insn.
6906 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
6907 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
6908 of 3rd argument to int16x4_t.
6909 (vqdmlalh_lane_s16): Likewise.
6910 (vqdmlslh_lane_s16): Likewise.
6911 (vqdmull_high_lane_s16): Likewise.
6912 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
6913 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
6914 (vqdmlsl_lane_s16): Likewise.
6915 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
6916 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
6917 (vqdmlals_lane_s32): Likewise.
6918 (vqdmlsls_lane_s32): Likewise.
6919 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
6920 (vqdmulls_lane_s32): Likewise.
6921 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
6922 (vqdmlsl_lane_s32): Likewise.
6923 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
6924 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
6925 (vqrdmulhh_lane_s16): Likewise.
6926 (vqdmlsl_high_lane_s16): Likewise.
6927 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
6928 (vqdmlsl_high_lane_s32): Likewise.
6929 (vqrdmulhs_lane_s32): Likewise.
6930
6931 2014-06-20 Tom de Vries <tom@codesourcery.com>
6932
6933 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
6934 get_call_reg_set_usage.
6935
6936 2014-06-20 Tom de Vries <tom@codesourcery.com>
6937
6938 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
6939 it contains all call_used_regs.
6940
6941 2014-06-20 Tom de Vries <tom@codesourcery.com>
6942
6943 * final.c (collect_fn_hard_reg_usage): Add and use variable
6944 function_used_regs.
6945
6946 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6947
6948 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
6949 (set_init_priority, get_init_priority, set_fini_priority,
6950 get_fini_priority): New methods.
6951 * tree.c (init_priority_for_decl): Remove.
6952 (init_ttree): Do not initialize init priority.
6953 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
6954 (decl_priority_info): Remove.
6955 (decl_init_priority_insert): Rewrite.
6956 (decl_fini_priority_insert): Rewrite.
6957 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
6958 tree_priority_map_marked_p): Remove.
6959 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
6960 * lto-streamer-out.c (hash_tree): Do not hash priorities.
6961 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
6962 not output priorities.
6963 (pack_ts_function_decl_value_fields): Likewise.
6964 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
6965 not input priorities.
6966 (unpack_ts_function_decl_value_fields): Likewise.
6967 * symtab.c (symbol_priority_map): Declare.
6968 (init_priority_hash): Declare.
6969 (symtab_unregister_node): Unregister from priority hash, too.
6970 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
6971 New methods.
6972 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
6973 (symbol_priority_info): New function.
6974 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
6975 New methods.
6976 * tree-core.h (tree_priority_map): Remove.
6977
6978 2014-06-20 Jakub Jelinek <jakub@redhat.com>
6979
6980 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
6981 0xff to uint64_t before shifting it up.
6982
6983 2014-06-20 Julian Brown <julian@codesourcery.com>
6984 Chung-Lin Tang <cltang@codesourcery.com>
6985
6986 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
6987 TARGET_THUMB1_ONLY. Add comments.
6988
6989 2014-06-19 Tom de Vries <tom@codesourcery.com>
6990
6991 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
6992 return type to void.
6993 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
6994
6995 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6996
6997 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
6998 as "move", from depends_on.
6999
7000 2014-06-19 Terry Guo <terry.guo@arm.com>
7001
7002 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
7003 stage.
7004
7005 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
7006
7007 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
7008 Remove cr5.
7009 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
7010
7011 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
7012
7013 PR target/61550
7014 * config/sh/sh.c (prepare_move_operands): Don't process TLS
7015 addresses here if reload in progress or completed.
7016
7017 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
7018
7019 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
7020 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
7021 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
7022 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
7023 (mips_register_priority): New function that implements the target
7024 hook TARGET_REGISTER_PRIORITY.
7025 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
7026 (mips_lra_p): Likewise for TARGET_LRA_P.
7027 (TARGET_REGISTER_PRIORITY): Define macro.
7028 (TARGET_SPILL_CLASS): Likewise.
7029 (TARGET_LRA_P): Likewise.
7030 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
7031 classes.
7032 (REG_CLASS_NAMES): Likewise.
7033 (REG_CLASS_CONTENTS): Likewise.
7034 (BASE_REG_CLASS): Use M16_SP_REGS.
7035 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
7036 New set attribute to enable alternatives depending on the register
7037 allocator used.
7038 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
7039 (*lea64): Disable pattern for MIPS16.
7040 * config/mips/mips.opt (mlra): New option.
7041
7042 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
7043
7044 * lra-constraints.c (base_to_reg): New function.
7045 (process_address): Use new function.
7046
7047 2014-06-18 Tom de Vries <tom@codesourcery.com>
7048
7049 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
7050 * config/aarch64/aarch64.c
7051 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
7052 (aarch64_emit_call_insn): New function.
7053 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
7054 of emit_call_insn.
7055 * config/aarch64/aarch64.md (define_expand "call_internal")
7056 (define_expand "call_value_internal", define_expand "sibcall_internal")
7057 (define_expand "sibcall_value_internal"): New.
7058 (define_expand "call", define_expand "call_value")
7059 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
7060 expand variant and aarch64_emit_call_insn.
7061
7062 2014-06-18 Radovan Obradovic <robradovic@mips.com>
7063 Tom de Vries <tom@codesourcery.com>
7064
7065 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
7066 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
7067 Redefine to true.
7068 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
7069 clobbers to CALL_INSN_FUNCTION_USAGE.
7070 (define_expand "sibcall_internal")
7071 (define_expand "sibcall_value_internal"): New.
7072 (define_expand "call", define_expand "call_value"): Add argument to
7073 arm_emit_call_insn.
7074 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
7075 (define_expand "sibcall_value"): Use sibcall_value_internal and
7076 arm_emit_call_insn.
7077
7078 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7079
7080 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
7081
7082 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7083
7084 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
7085 __udivmoddi4.
7086
7087 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7088
7089 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
7090 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
7091 annotations. Fix DWARF information.
7092
7093 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7094
7095 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
7096 __udivmoddi4, and fixups for negative operands.
7097
7098 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7099
7100 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
7101
7102 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7103
7104 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
7105 to __udivmoddi4.
7106
7107 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7108
7109 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
7110 manipulation.
7111
7112 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7113
7114 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
7115 describing register usage on function entry and exit.
7116
7117 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7118
7119 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
7120 (__aeabi_ldivmod): Fix whitespace.
7121
7122 2014-06-18 Andreas Schwab <schwab@suse.de>
7123
7124 * doc/md.texi (Standard Names): Use @itemx for grouped items.
7125 Remove blank line after @item.
7126
7127 2014-06-18 Richard Henderson <rth@redhat.com>
7128
7129 PR target/61545
7130 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
7131
7132 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7133
7134 * config/arm/arm.c (neon_vector_mem_operand): Allow register
7135 POST_MODIFY for neon loads and stores.
7136 (arm_print_operand): Output post-index register for neon loads and
7137 stores.
7138
7139 2014-06-18 Richard Biener <rguenther@suse.de>
7140
7141 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
7142
7143 2014-06-18 Richard Biener <rguenther@suse.de>
7144
7145 * tree-pass.h (make_pass_dce_loop): Remove.
7146 * passes.def: Replace pass_dce_loop with pass_dce.
7147 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
7148 changed free niter estimates and reset the scev cache.
7149 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
7150 make_pass_dce_loop): Remove.
7151 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
7152 (fini_copy_prop): Return whether something changed. Always
7153 let substitute_and_fold perform DCE and free niter estimates
7154 and reset the scev cache if so.
7155 (execute_copy_prop): If sth changed schedule cleanup-cfg.
7156 (pass_data_copy_prop): Do not unconditionally schedule
7157 cleanup-cfg or update-ssa.
7158
7159 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
7160
7161 PR tree-optimization/61518
7162 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
7163 reduction var is used in reduction stmt or phi-function only.
7164
7165 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7166
7167 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
7168
7169 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
7170
7171 PR tree-optimization/61517
7172 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
7173 whose rhs's first tree is the source expression instead of the
7174 expression itself.
7175 (find_bswap_or_nop): Likewise.
7176 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
7177 gimple stmt whose rhs's first tree is the source. In the memory source
7178 case, move the stmt to be replaced close to one of the original load to
7179 avoid the problem of a store between the load and the stmt's original
7180 location.
7181 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
7182 signature.
7183
7184 2014-06-18 Andreas Schwab <schwab@suse.de>
7185
7186 PR rtl-optimization/54555
7187 * postreload.c (move2add_use_add2_insn): Substitute
7188 STRICT_LOW_PART only if it is cheaper.
7189
7190 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
7191
7192 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
7193 Do not use unspec as call operand. Use memory_operand instead of
7194 memory_nox32_operand and add "m" operand constraint. Disable
7195 pattern for TARGET_X32.
7196 (*sibcall_pop_memory): Ditto.
7197 (*sibcall_value_memory): Ditto.
7198 (*sibcall_value_pop_memory): Ditto.
7199 (sibcall peepholes): Merge SImode and DImode patterns using
7200 W mode iterator. Use memory_operand instead of memory_nox32_operand.
7201 Disable pattern for TARGET_X32. Check if eliminated register is
7202 really dead after call insn. Generate call RTX without unspec operand.
7203 (sibcall_value peepholes): Ditto.
7204 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
7205 instead of memory_nox32_operand. Check if eliminated register is
7206 really dead after call insn. Generate call RTX without unspec operand.
7207 (sibcall_value_pop peepholes): Ditto.
7208 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
7209
7210 2014-06-18 Terry Guo <terry.guo@arm.com>
7211
7212 PR target/61544
7213 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
7214 reach the head.
7215
7216 2014-06-18 Olivier Hainque <hainque@adacore.com>
7217
7218 * tree-core.h (tree_block): Add an "end_locus" field, allowing
7219 memorization of the end of block source location.
7220 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
7221 * gimplify.c (gimplify_bind_expr): Propagate the block start and
7222 end source location info we have on the block entry/exit code we
7223 generate.
7224
7225 2014-06-18 Richard Biener <rguenther@suse.de>
7226
7227 * common.opt (fssa-phiopt): New option.
7228 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
7229 but not with -Og.
7230 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
7231 * doc/invoke.texi (-fssa-phiopt): Document.
7232
7233 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7234
7235 * genattrtab.c (n_bypassed): New variable.
7236 (process_bypasses): Initialise n_bypassed.
7237 Count number of bypassed reservations.
7238 (make_automaton_attrs): Allocate space for bypassed reservations
7239 rather than number of bypasses.
7240
7241 2014-06-18 Richard Biener <rguenther@suse.de>
7242
7243 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
7244 we propagated anything.
7245 (substitute_and_fold_dom_walker::before_dom_children): Something
7246 changed if we propagated into PHI arguments.
7247 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
7248 we removed a stmt.
7249
7250 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
7251
7252 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
7253 vector case.
7254 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
7255 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
7256 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
7257 Introduces alternative way of loads group permutaions.
7258 (vect_transform_grouped_load): Try alternative way of permutations.
7259
7260 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7261
7262 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
7263 changed in ORT_TARGET region, don't jump to do_outer.
7264 (struct gimplify_adjust_omp_clauses_data): New type.
7265 (gimplify_adjust_omp_clauses_1): Adjust for data being
7266 a struct gimplify_adjust_omp_clauses_data pointer instead
7267 of tree *. Pass pre_p as a new argument to
7268 lang_hooks.decls.omp_finish_clause hook.
7269 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
7270 splay_tree_foreach to pass both list_p and pre_p.
7271 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
7272 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
7273 gimplify_adjust_omp_clauses callers.
7274 * langhooks.c (lhd_omp_finish_clause): New function.
7275 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
7276 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
7277 * langhooks.h (struct lang_hooks_for_decls): Add a new
7278 gimple_seq * argument to omp_finish_clause hook.
7279 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
7280 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
7281 (scan_omp_parallel, lower_omp_for): When adding
7282 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
7283 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
7284 * tree-nested.c (convert_nonlocal_omp_clauses,
7285 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
7286 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
7287
7288 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
7289
7290 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
7291 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
7292
7293 2014-06-17 Xinliang David Li <davidxl@google.com>
7294
7295 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
7296 * passes.c (pass_init_dump_file): Do not set initialize
7297 flag to false unconditionally.
7298
7299 2014-06-17 Richard Biener <rguenther@suse.de>
7300
7301 * genopinit.c (main): Use vec<>::qsort method.
7302 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
7303 Likewise.
7304 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
7305
7306 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
7307
7308 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
7309 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
7310 (mips_move_to_gpr_cost): Remove ST_REGS case.
7311 (mips_move_from_gpr_cost): Likewise.
7312 (mips_register_move_cost): Likewise.
7313 (mips_secondary_reload_class): Likewise.
7314
7315 2014-06-17 Richard Biener <rguenther@suse.de>
7316
7317 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
7318 (pass_all_optimizations): Move 3rd copy-prop pass from after
7319 fre to before ifcombine/phiopt.
7320
7321 2014-06-17 Richard Biener <rguenther@suse.de>
7322
7323 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
7324 and allow all blocks to be forwarders.
7325
7326 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
7327
7328 PR target/61483
7329 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
7330 variable 'size'; calculate 'size' right in the front; use
7331 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
7332 pcum->aapcs_stack_words.
7333
7334 2014-06-17 Nick Clifton <nickc@redhat.com>
7335
7336 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
7337 (umulhi3, mulsidi3, umulsidi3): Likewise.
7338
7339 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
7340
7341 PR middle-end/61508
7342 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
7343 check for section name.
7344
7345 2014-06-17 Richard Biener <rguenther@suse.de>
7346
7347 * tree-ssa-propagate.c: Include domwalk.h.
7348 (substitute_and_fold): Outline main worker into a domwalker ...
7349 (substitute_and_fold_dom_walker::before_dom_children): ... here.
7350 Schedule stmts we can fully propagate for removal. Remove
7351 poor-mans DCE.
7352 (substitute_and_fold): Apply a dominator walk to perform
7353 substitution. Process stmts scheduled for removal here.
7354
7355 2014-06-17 Richard Biener <rguenther@suse.de>
7356
7357 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
7358 of PHI node moving.
7359
7360 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7361
7362 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
7363 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
7364 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
7365 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
7366 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
7367 TARGET_HARD_FLOAT.
7368 (get_fpscr) : Likewise.
7369
7370 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7371
7372 PR rtl-optimization/61325
7373 * lra-constraints.c (valid_address_p): Add forward declaration.
7374 (simplify_operand_subreg): Check address validity before and after
7375 alter_reg of memory subreg.
7376
7377 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
7378
7379 * config/i386/i386.c (decide_alg): Correctly handle
7380 maximum size of stringop algorithm.
7381
7382 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7383
7384 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
7385
7386 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7387
7388 PR rtl-optimization/61522
7389 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
7390
7391 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
7392
7393 Revert:
7394 * symtab.c (symtab_node::reset_section): New method.
7395 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7396 for localization.
7397 * cgraph.h (reset_section): Declare.
7398 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7399 do not consider comdat locals.
7400 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7401 for new symbol.
7402 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7403 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7404 reset sections of symbols dragged out of the comdats.
7405 (function_and_variable_visibility): Reset sections of
7406 localized symbols.
7407
7408 2014-06-16 Richard Biener <rguenther@suse.de>
7409
7410 PR tree-optimization/61482
7411 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
7412 [-INF(OVF), +INF(OVF)] range.
7413
7414 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7415
7416 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
7417 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
7418 handling 32-bit multiplication.
7419
7420 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
7421
7422 PR middle-end/61430
7423 * lra-lives.c (process_bb_lives): Skip creating copy during
7424 insn scan when src/dest has constrained to same regno.
7425
7426 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7427
7428 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
7429 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
7430
7431 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7432
7433 * asan.c (check_func): New function.
7434 (maybe_create_ssa_name): Likewise.
7435 (build_check_stmt_with_calls): Likewise.
7436 (use_calls_p): Likewise.
7437 (report_error_func): Change interface.
7438 (build_check_stmt): Allow non-integer lengths; add support
7439 for new parameter.
7440 (asan_instrument): Likewise.
7441 (instrument_mem_region_access): Moved code to build_check_stmt.
7442 (instrument_derefs): Likewise.
7443 (instrument_strlen_call): Likewise.
7444 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
7445 * doc/invoke.texi: Describe new parameter.
7446 * params.def: Define new parameter.
7447 * params.h: Likewise.
7448 * sanitizer.def: Describe new builtins.
7449
7450 2014-06-16 Richard Biener <rguenther@suse.de>
7451
7452 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7453 Make all defs available at the end.
7454 (eliminate): If we remove a PHI node schedule cfg-cleanup.
7455
7456 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7457
7458 PR plugins/45078
7459 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
7460
7461 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
7462
7463 PR bootstrap/61516
7464 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
7465 initialization. Replace remaining use of uid.
7466
7467 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7468
7469 * c-family/c-common.c (handle_tls_model_attribute): Use
7470 set_decl_tls_model.
7471 * c-family/c-common.c (handle_tls_model_attribute): Use
7472 set_decl_tls_model.
7473 * cgraph.h (struct varpool_node): Add tls_model.
7474 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
7475 * tree.h (DECL_TLS_MODEL): Update.
7476 (DECL_THREAD_LOCAL_P): Check that variable is static.
7477 (decl_tls_model): Declare.
7478 (set_decl_tls_model): Declare.
7479 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
7480 set symbol prorperties.
7481 (get_emutls_init_templ_addr): Cleanup.
7482 (new_emutls_decl): Update.
7483 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
7484 (lto_input_varpool_node): Likewise.
7485 * lto-streamer-out.c (hash_tree): Likewise.
7486 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7487 not stream DECL_TLS_MODEL.
7488 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
7489 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
7490
7491 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7492
7493 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
7494
7495 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7496
7497 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
7498 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
7499 lists.
7500 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
7501 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
7502 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
7503 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
7504 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
7505 (df_get_artificial_defs, df_get_artificial_uses)
7506 (df_single_def, df_single_use): Update accordingly.
7507 (df_refs_chain_dump): Take the first element in a linked list as
7508 parameter, rather than a pointer to an array of pointers.
7509 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
7510 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
7511 (df_chain_create_bb_process_use): Likewise.
7512 (df_md_bb_local_compute_process_def): Likewise.
7513 * fwprop.c (process_defs, process_uses): Likewise.
7514 (register_active_defs, update_uses): Likewise.
7515 (forward_propagate_asm): Update for new df_ref linking.
7516 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
7517 (df_null_ref_rec, df_null_mw_rec): Likewise.
7518 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
7519 explicitly.
7520 (df_scan_free_bb_info): Remove check for null artificial_defs.
7521 (df_install_ref_incremental): Adjust for new df_ref linking.
7522 Use a single-element insertion rather than a full sort.
7523 (df_ref_chain_delete_du_chain): Take the first element
7524 in a linked list as parameter, rather than a pointer to an array of
7525 pointers.
7526 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
7527 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
7528 (df_insn_info_delete): Remove check for null defs and call to
7529 df_scan_free_mws_vec.
7530 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
7531 null rather than df_null_*_rec.
7532 (df_insn_rescan_debug_internal): Likewise, and update null
7533 checks in the same way. Remove check for null defs.
7534 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
7535 Move a single element rather doing a full sort.
7536 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
7537 linking.
7538 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
7539 Initialize df_ref and df_mw_hardreg lists to null rather than
7540 df_null_*_rec.
7541 (df_ref_compare): Take df_refs as parameter, transferring the
7542 old interface to...
7543 (df_ref_ptr_compare): ...this new function.
7544 (df_sort_and_compress_refs): Update accordingly.
7545 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
7546 old interface to...
7547 (df_mw_ptr_compare): ...this new function.
7548 (df_sort_and_compress_mws): Update accordingly.
7549 (df_install_refs, df_install_mws): Return a linked list rather than
7550 an array of pointers.
7551 (df_refs_add_to_chains): Assert that old lists are empty rather
7552 than freeing them.
7553 (df_insn_refs_verify): Don't handle null defs speciailly.
7554 * web.c (union_match_dups): Update for new df_ref linking.
7555
7556 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7557
7558 * df.h (df_ref_create, df_ref_remove): Delete.
7559 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
7560 (df_ref_remove): Likewise.
7561
7562 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7563
7564 * df.h (df_single_def, df_single_use): New functions.
7565 * ira.c (find_moveable_pseudos): Use them.
7566
7567 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7568
7569 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
7570 * df-problems.c (df_note_bb_compute): Use it.
7571 * regstat.c (regstat_bb_compute_ri): Likewise.
7572
7573 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7574
7575 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
7576 * cse.c (cse_extended_basic_block): Use them.
7577 * dce.c (mark_artificial_use): Likewise.
7578 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
7579 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7580 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
7581 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
7582 (df_simulate_initialize_backwards): Likewise.
7583 (df_simulate_finalize_backwards): Likewise.
7584 (df_simulate_initialize_forwards): Likewise.
7585 (df_md_simulate_artificial_defs_at_top): Likewise.
7586 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7587 * regrename.c (init_rename_info): Likewise.
7588 * regstat.c (regstat_bb_compute_ri): Likewise.
7589 (regstat_bb_compute_calls_crossed): Likewise.
7590
7591 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7592
7593 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
7594 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
7595 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
7596 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
7597 * combine.c (create_log_links): Likewise.
7598 * compare-elim.c (find_flags_uses_in_insn): Likewise.
7599 (try_eliminate_compare): Likewise.
7600 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
7601 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
7602 (remove_reg_equal_equiv_notes_for_defs): Likewise.
7603 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
7604 (word_dce_process_block, dce_process_block): Likewise.
7605 * ddg.c (def_has_ccmode_p): Likewise.
7606 * df-core.c (df_bb_regno_first_def_find): Likewise.
7607 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
7608 * df-problems.c (df_rd_simulate_one_insn): Likewise.
7609 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7610 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
7611 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
7612 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
7613 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
7614 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
7615 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
7616 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
7617 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7618 * fwprop.c (local_ref_killed_between_p): Likewise.
7619 (all_uses_available_at, free_load_extend): Likewise.
7620 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
7621 * hw-doloop.c (scan_loop): Likewise.
7622 * ifcvt.c (dead_or_predicable): Likewise.
7623 * init-regs.c (initialize_uninitialized_regs): Likewise.
7624 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
7625 (process_bb_node_lives): Likewise.
7626 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
7627 (find_moveable_pseudos): Likewise.
7628 * loop-invariant.c (check_dependencies, record_uses): Likewise.
7629 * recog.c (peep2_find_free_register): Likewise.
7630 * ree.c (get_defs): Likewise.
7631 * regstat.c (regstat_bb_compute_ri): Likewise.
7632 (regstat_bb_compute_calls_crossed): Likewise.
7633 * sched-deps.c (find_inc, find_mem): Likewise.
7634 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
7635 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
7636 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7637 (prepare_shrink_wrap): Likewise.
7638 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
7639 * web.c (union_defs, pass_web::execute): Likewise.
7640 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
7641 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
7642
7643 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
7644
7645 * lra-assign.c (assign_by_spills): Add code to assign vector regs
7646 to inheritance pseudos.
7647 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
7648
7649 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
7650
7651 PR target/61415
7652 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
7653 (BU_MISC_2): Rename to ...
7654 (BU_LDBL128_2): ... this.
7655 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
7656 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
7657 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7658 RS6000_BTM_LDBL128.
7659 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
7660 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
7661 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
7662 (unpacktf_1): Likewise.
7663 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
7664 (__builtin_longdouble_dw1): Likewise.
7665 * doc/sourcebuild.texi (longdouble128): Document.
7666
7667 2014-06-13 Jeff Law <law@redhat.com>
7668
7669 PR rtl-optimization/61094
7670 PR rtl-optimization/61446
7671 * ree.c (combine_reaching_defs): Get the mode for the copy from
7672 the extension insn rather than the defining insn.
7673
7674 2014-06-13 Dehao Chen <dehao@google.com>
7675
7676 * dwarf2out.c (add_linkage_name): Emit more linkage name.
7677
7678 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
7679
7680 * doc/install.texi (--enable-linker-plugin-configure-flags)
7681 (--enable-linker-plugin-flags): Document new flags.
7682
7683 2014-06-13 Martin Jambor <mjambor@suse.cz>
7684
7685 PR ipa/61186
7686 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
7687 cache_token if returning early.
7688
7689 2014-06-13 Nick Clifton <nickc@redhat.com>
7690
7691 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
7692 requested alignment is active.
7693 (LABEL_ALIGN): Likewise.
7694 (LOOP_ALIGN): Likewise.
7695
7696 2014-06-13 Richard Biener <rguenther@suse.de>
7697
7698 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7699 Rewrite to propagate the VN result into all uses where
7700 possible and to remove stmts becoming dead because of that.
7701 (eliminate): Generalize stmt removal handling, remove in
7702 reverse dominator order to support proper debug stmt
7703 generation. Update stmts before removing stmts.
7704 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
7705
7706 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7707
7708 PR tree-optimization/61375
7709 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
7710 symbolic number cannot be represented in an uint64_t.
7711 (find_bswap_or_nop_1): Likewise.
7712
7713 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7714
7715 * symtab.c (symtab_node::reset_section): New method.
7716 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7717 for localization.
7718 * cgraph.h (reset_section): Declare.
7719 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7720 do not consider comdat locals.
7721 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7722 for new symbol.
7723 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7724 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7725 reset sections of symbols dragged out of the comdats.
7726 (function_and_variable_visibility): Reset sections of
7727 localized symbols.
7728
7729 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7730
7731 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
7732 to use symtab and decl_binds_to_current_def_p
7733 * tree-vectorizer.c (increase_alignment): Increase alignment
7734 of alias target, too.
7735
7736 2014-06-12 Jakub Jelinek <jakub@redhat.com>
7737
7738 PR middle-end/61486
7739 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
7740 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
7741 if outer combined construct is distribute.
7742 (gimplify_omp_for): For OMP_DISTRIBUTE set
7743 gimplify_omp_ctxp->distribute.
7744 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
7745 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
7746 mapping into decl map.
7747
7748 2014-06-12 Jason Merrill <jason@redhat.com>
7749
7750 * common.opt (fabi-version): Change default to 0.
7751
7752 2014-06-12 Jason Merrill <jason@redhat.com>
7753
7754 * toplev.c (process_options): Reject -fabi-version=1.
7755
7756 2014-06-12 Jeff Law <law@redhat.com>
7757
7758 PR tree-optimization/61009
7759 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
7760 value when we stop processing a block due to problematic PHIs.
7761
7762 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
7763
7764 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
7765 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
7766 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
7767 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
7768 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
7769 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
7770 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
7771 are not in the spec.
7772
7773 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
7774
7775 PR target/59843
7776 * config/aarch64/aarch64-modes.def: Add V1DFmode.
7777 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
7778 Support V1DFmode.
7779
7780 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
7781
7782 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
7783
7784 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
7785
7786 PR target/61443
7787 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
7788 loading from address spaces.
7789
7790 2014-06-12 Martin Liska <mliska@suse.cz>
7791
7792 PR ipa/61462
7793 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
7794 statement is reachable.
7795
7796 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7797
7798 * symtab.c (section_hash): New hash.
7799 (symtab_unregister_node): Clear section before freeing.
7800 (hash_section_hash_entry): New haser.
7801 (eq_sections): New function.
7802 (symtab_node::set_section_for_node): New method.
7803 (set_section_1): Update.
7804 (symtab_node::set_section): Take string instead of tree as parameter.
7805 (symtab_resolve_alias): Update.
7806 * cgraph.h (section_hash_entry_d): New structure.
7807 (section_hash_entry): New typedef.
7808 (cgraph_node): Change comdat_group_ to x_comdat_group,
7809 change section_ to x_section and turn into section_hash_entry;
7810 update accestors; put set_section_for_node offline.
7811 * tree.c (decl_section_name): Turn into string.
7812 (set_decl_section_name): Change parameter to be string.
7813 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
7814 * sdbout.c (sdbout_one_type): Update.
7815 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
7816 * varasm.c (IN_NAMED_SECTION, get_named_section,
7817 resolve_unique_section, hot_function_section, get_named_text_section,
7818 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
7819 make_decl_rtl, default_unique_section): Update.
7820 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
7821 (c6x_elf_unique_section): Update.
7822 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
7823 * config/pa/pa.c (pa_function_section): Update.
7824 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
7825 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
7826 * config/arc/arc.c (arc_in_small_data_p): Update.
7827 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
7828 * config/mcore/mcore.c (mcore_unique_section): Update.
7829 * config/mips/mips.c (mips16_build_function_stub): Update.
7830 (mips16_build_call_stub): Update.
7831 (mips_function_rodata_section): Update.
7832 (mips_in_small_data_p): Update.
7833 * config/score/score.c (score_in_small_data_p): Update.
7834 * config/rx/rx.c (rx_in_small_data): Update.
7835 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
7836 (rs6000_xcoff_asm_named_section): Update.
7837 (rs6000_xcoff_unique_section): Update.
7838 * config/frv/frv.c (frv_string_begins_with): Update.
7839 (frv_in_small_data_p): Update.
7840 * config/v850/v850.c (v850_encode_data_area): Update.
7841 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
7842 (bfin_handle_l1_data_attribute): Update.
7843 (bfin_handle_l2_attribute): Update.
7844 * config/mep/mep.c (mep_unique_section): Update.
7845 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
7846 Update.
7847 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
7848 (h8300_handle_tiny_data_attribute): Update.
7849 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
7850 (m32r_in_small_data_p): Update.
7851 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
7852 * config/i386/i386.c (ix86_in_large_data_p): Update.
7853 * config/i386/winnt.c (i386_pe_unique_section): Update.
7854 * config/darwin.c (darwin_function_section): Update.
7855 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
7856 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7857 (new_emutls_decl): Update.
7858 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
7859 input_varpool_node): Update.
7860 (ead_string_cst): Turn to ...
7861 (read_string): ... this one.
7862 * dwarf2out.c (secname_for_decl): Update.
7863 * asan.c (asan_protect_global): Update.
7864
7865 2014-06-11 DJ Delorie <dj@redhat.com>
7866
7867 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
7868 cache lines.
7869 * config/rx/rx.c (rx_option_override): Likewise.
7870 (rx_align_for_label): Likewise.
7871
7872 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
7873
7874 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
7875
7876 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
7877 prototype.
7878
7879 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7880
7881 * common.md: New file.
7882 * doc/md.texi: Update description of generic, machine-independent
7883 constraints.
7884 * config/s390/constraints.md (e): Delete.
7885 * Makefile.in (md_file): Include common.md.
7886 * config/m32c/t-m32c (md_file): Likewise.
7887 * genpreds.c (general_mem): New array.
7888 (generic_constraint_letters): Remove constraints now defined by
7889 common.md.
7890 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7891 Allow the first character to be '<' or '>' as well.
7892 * genoutput.c (general_mem): New array.
7893 (indep_constraints): Remove constraints now defined by common.md.
7894 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7895 Remove special handling of 'm'.
7896 * ira-costs.c (record_reg_classes): Remove special handling of
7897 constraints now defined by common.md.
7898 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7899 * ira-lives.c (single_reg_class): Likewise.
7900 (ira_implicitly_set_insn_hard_regs): Likewise.
7901 * lra-constraints.c (reg_class_from_constraints): Likewise.
7902 (process_alt_operands, process_address, curr_insn_transform): Likewise.
7903 * postreload.c (reload_cse_simplify_operands): Likewise.
7904 * reload.c (push_secondary_reload, scratch_reload_class)
7905 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7906 * reload1.c (maybe_fix_stack_asms): Likewise.
7907 * targhooks.c (default_secondary_reload): Likewise.
7908 * stmt.c (parse_output_constraint): Likewise.
7909 * recog.c (preprocess_constraints): Likewise.
7910 (constrain_operands, peep2_find_free_register): Likewise.
7911 (asm_operand_ok): Likewise, but add a comment saying why 'o'
7912 must be handled specially.
7913
7914 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7915
7916 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
7917 * genpreds.c (have_const_dbl_constraints): Delete.
7918 (add_constraint): Don't set it.
7919 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
7920 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
7921 constraints using the lookup_constraint logic.
7922 * ira-lives.c (single_reg_class): Likewise.
7923 * ira.c (ira_setup_alts): Likewise.
7924 * lra-constraints.c (process_alt_operands): Likewise.
7925 * recog.c (asm_operand_ok, constrain_operands): Likewise.
7926 * reload.c (find_reloads): Likewise.
7927
7928 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7929
7930 * genpreds.c (const_int_start, const_int_end): New variables.
7931 (choose_enum_order): Output CONST_INT constraints before memory
7932 constraints.
7933 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
7934 Add CT_CONST_INT.
7935 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
7936 * ira.c (ira_setup_alts): Likewise.
7937 * lra-constraints.c (process_alt_operands): Likewise.
7938 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7939 * reload.c (find_reloads): Likewise.
7940
7941 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7942
7943 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
7944 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
7945 * recog.c (preprocess_constraints): Update accordingly.
7946
7947 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7948
7949 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
7950 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
7951 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
7952 * genpreds.c (print_type_tree): New function.
7953 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
7954 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
7955 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
7956 Write out enum constraint_type and get_constraint_type.
7957 * lra-constraints.c (satisfies_memory_constraint_p): Take a
7958 constraint_num rather than a constraint string.
7959 (satisfies_address_constraint_p): Likewise.
7960 (reg_class_from_constraints): Avoid old constraint macros.
7961 (process_alt_operands, process_address_1): Likewise.
7962 (curr_insn_transform): Likewise.
7963 * ira-costs.c (record_reg_classes): Likewise.
7964 (record_operand_costs): Likewise.
7965 * ira-lives.c (single_reg_class): Likewise.
7966 (ira_implicitly_set_insn_hard_regs): Likewise.
7967 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7968 * postreload.c (reload_cse_simplify_operands): Likewise.
7969 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7970 (constrain_operands, peep2_find_free_register): Likewise.
7971 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
7972 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7973 * reload1.c (maybe_fix_stack_asms): Likewise.
7974 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7975 * targhooks.c (default_secondary_reload): Likewise.
7976 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
7977 to EXTRA_CONSTRAINT_STR.
7978 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
7979
7980 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7981
7982 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
7983 (write_constraint_satisfied_p_array): ...this new function.
7984 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
7985 an array.
7986 (write_insn_preds_c): Update accordingly.
7987
7988 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7989
7990 * genpreds.c (write_lookup_constraint): Rename to...
7991 (write_lookup_constraint_1): ...this.
7992 (write_lookup_constraint_array): New function.
7993 (write_tm_preds_h): Define lookup_constraint as an inline function
7994 that uses write_lookup_constraint_array where possible.
7995 (write_insn_preds_c): Update for the changes above.
7996
7997 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7998
7999 * doc/md.texi (regclass_for_constraint): Rename to...
8000 (reg_class_for_constraint): ...this.
8001 * genpreds.c (num_constraints, enum_order, register_start)
8002 (register_end, satisfied_start, memory_start, memory_end)
8003 (address_start, address_end): New variables.
8004 (add_constraint): Count the number of constraints.
8005 (choose_enum_order): New function.
8006 (write_enum_constraint_num): Iterate over enum_order.
8007 (write_regclass_for_constraint): Rename to...
8008 (write_reg_class_for_constraint_1): ...this and update output
8009 accordingly.
8010 (write_constraint_satisfied_p): Rename to...
8011 (write_constraint_satisfied_p_1): ...this and update output
8012 accordingly. Do nothing if all extra constraints are register
8013 constraints.
8014 (write_insn_extra_memory_constraint): Delete.
8015 (write_insn_extra_address_constraint): Delete.
8016 (write_range_function): New function.
8017 (write_tm_preds_h): Define constraint_satisfied_p and
8018 reg_class_for_constraint as inline functions that do a range check
8019 before calling the out-of-line function. Use write_range_function
8020 to implement insn_extra_{register,memory,address}_constraint,
8021 the first of which is new.
8022 (write_insn_preds_c): Update after above changes to write_* functions.
8023 (main): Call choose_enum_order.
8024
8025 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
8026
8027 PR tree-optimization/61306
8028 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
8029 expression instead of its size.
8030 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
8031 false to prevent optimization when the result is unpredictable due to
8032 arithmetic right shift of signed type with highest byte is set.
8033 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
8034 (init_symbolic_number): Likewise.
8035 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
8036 when the result is unpredictable due to sign extension.
8037
8038 2014-06-11 Terry Guo <terry.guo@arm.com>
8039
8040 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
8041 (*thumb1_addsi3): Ditto.
8042 (*thumb_subdi3): Ditto.
8043 (thumb1_subsi3_insn): Ditto.
8044 (*thumb_mulsi3): Ditto.
8045 (*thumb_mulsi3_v6): Ditto.
8046 (*thumb1_andsi3_insn): Ditto.
8047 (thumb1_bicsi3): Ditto.
8048 (*thumb1_iorsi3_insn): Ditto.
8049 (*thumb1_xorsi3_insn): Ditto.
8050 (*thumb1_ashlsi3): Ditto.
8051 (*thumb1_ashrsi3): Ditto.
8052 (*thumb1_lshrsi3): Ditto.
8053 (*thumb1_rotrsi3): Ditto.
8054 (*thumb1_negdi2): Ditto.
8055 (*thumb1_negsi2): Ditto.
8056 (*thumb1_abssi2): Ditto.
8057 (*thumb1_neg_abssi2): Ditto.
8058 (*thumb1_one_cmplsi2): Ditto.
8059 (*thumb1_zero_extendhisi2): Ditto.
8060 (*thumb1_zero_extendqisi2): Ditto.
8061 (*thumb1_zero_extendqisi2_v6): Ditto.
8062 (thumb1_extendhisi2): Ditto.
8063 (thumb1_extendqisi2): Ditto.
8064 (*thumb1_movdi_insn): Ditto.
8065 (*thumb1_movsi_insn): Ditto.
8066 (*thumb1_movhi_insn): Ditto.
8067 (thumb_movhi_clobber): Ditto.
8068 (*thumb1_movqi_insn): Ditto.
8069 (*thumb1_movhf): Ditto.
8070 (*thumb1_movsf_insn): Ditto.
8071 (*thumb_movdf_insn): Ditto.
8072 (movmem12b): Ditto.
8073 (movmem8b): Ditto.
8074 (cbranchqi4): Ditto.
8075 (cbranchsi4_insn): Ditto.
8076 (cbranchsi4_scratch): Ditto.
8077 (*negated_cbranchsi4): Ditto.
8078 (*tbit_cbranch): Ditto.
8079 (*tlobits_cbranch): Ditto.
8080 (*tstsi3_cbranch): Ditto.
8081 (*cbranchne_decr1): Ditto.
8082 (*addsi3_cbranch): Ditto.
8083 (*addsi3_cbranch_scratch): Ditto.
8084 (*thumb_cmpdi_zero): Ditto.
8085 (cstoresi_eq0_thumb1): Ditto.
8086 (cstoresi_ne0_thumb1): Ditto.
8087 (*cstoresi_eq0_thumb1_insn): Ditto.
8088 (*cstoresi_ne0_thumb1_insn): Ditto.
8089 (cstoresi_nltu_thumb1): Ditto.
8090 (cstoresi_ltu_thumb1): Ditto.
8091 (thumb1_addsi3_addgeu): Ditto.
8092 (*thumb_jump): Ditto.
8093 (*call_reg_thumb1_v5): Ditto.
8094 (*call_reg_thumb1): Ditto.
8095 (*call_value_reg_thumb1_v5): Ditto.
8096 (*call_value_reg_thumb1): Ditto.
8097 (*call_insn): Ditto.
8098 (*call_value_insn): Ditto.
8099 (thumb1_casesi_internal_pic): Ditto.
8100 (thumb1_casesi_dispatch): Ditto.
8101 (*thumb1_indirect_jump): Ditto.
8102 (prologue_thumb1_interwork): Ditto.
8103 (*epilogue_insns): Ditto.
8104 (consttable_1): Ditto.
8105 (consttable_2): Ditto.
8106 (tablejump): Ditto.
8107 (*thumb1_tablejump): Ditto.
8108 (thumb_eh_return): Ditto.
8109 (define_peephole2): Two of them are thumb1 only and got moved into
8110 new file thumb1.md.
8111 (define_split): Six of them are thumb1 only and got moved into new
8112 file thumb1.md.
8113 * config/arm/thumb1.md: New file comprised of above thumb1 only
8114 patterns.
8115
8116 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8117
8118 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
8119 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
8120 dependencies.
8121 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
8122 (aarch64_crc_builtin_datum): New struct.
8123 (aarch64_crc_builtin_data): New.
8124 (aarch64_init_crc32_builtins): New function.
8125 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
8126 (aarch64_crc32_expand_builtin): New.
8127 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
8128 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8129 __ARM_FEATURE_CRC32 when appropriate.
8130 (TARGET_CRC32): Define.
8131 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
8132 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
8133 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
8134 (aarch64_<crc_variant>): New pattern.
8135 * config/aarch64/arm_acle.h: New file.
8136 * config/aarch64/iterators.md (CRC): New int iterator.
8137 (crc_variant, crc_mode): New int attributes.
8138 * doc/aarch64-acle-intrinsics.texi: New file.
8139 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
8140 Include aarch64-acle-intrinsics.texi.
8141
8142 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
8143
8144 * tree-vect-data-refs.c (vect_grouped_store_supported): New
8145 check for stores group of length 3.
8146 (vect_permute_store_chain): New permutations for stores group of
8147 length 3.
8148 * tree-vect-stmts.c (vect_model_store_cost): Change cost
8149 of vec_perm_shuffle for the new permutations.
8150
8151 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
8152
8153 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
8154 table rewriting temporarily on targets not supporting ONE_ONLY.
8155
8156 2014-06-11 Richard Biener <rguenther@suse.de>
8157
8158 PR middle-end/61437
8159 Revert
8160 2014-06-04 Richard Biener <rguenther@suse.de>
8161
8162 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8163 TREE_PUBLIC and DECL_EXTERNAL decls.
8164
8165 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
8166
8167 * varasm.c (set_implicit_section): New function.
8168 (resolve_unique_section): Use it to set implicit section
8169 for aliases, too.
8170 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
8171 (default_function_section): Likewise.
8172 (decl_binds_to_current_def_p): Constify argument.
8173 * varasm.h (decl_binds_to_current_def_p): Update prototype.
8174 * asan.c (asan_protect_global): Use
8175 symtab_get_node (decl)->implicit_section.
8176 * symtab.c (dump_symtab_base): Dump implicit sections.
8177 (verify_symtab_base): Verify sanity of sectoins and comdats.
8178 (symtab_resolve_alias): Alias share the section of its target.
8179 (set_section_1): New function.
8180 (symtab_node::set_section): Move here, recurse to aliases.
8181 (verify_symtab): Check for duplicated symtab lists.
8182 * tree-core.h (implicit_section_name_p): Remove.
8183 * tree-vect-data-refs.c: Include varasm.h.
8184 (vect_can_force_dr_alignment_p): Fix conditional on when
8185 decl bints to current definition; use
8186 symtab_get_node (decl)->implicit_section.
8187 * cgraph.c (cgraph_make_node_local_1): Fix section set.
8188 * cgraph.h (struct symtab_node): Add implicit_section.
8189 (set_section): Rename to ...
8190 (set_section_for_node): ... this one.
8191 (set_section): Declare.
8192 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
8193 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
8194 input_overwrite_node, input_varpool_node): Stream implicit_section.
8195 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
8196 removal; it will fail in LTO.
8197
8198 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8199
8200 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
8201 Change second alternative type to f_mcr.
8202 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
8203 and 12th alternatives' types to f_mcr and f_mrc.
8204 (*movdi_aarch64): Same for 12th and 13th alternatives.
8205 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
8206 (aarch64_movtilow_tilow): Change type to fmov.
8207
8208 2014-06-10 Jiong Wang <jiong.wang@arm.com>
8209
8210 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
8211 (aarch64_save_or_restore_callee_save_registers): Fix layout.
8212
8213 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8214
8215 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
8216 New expander.
8217 (aarch64_sqrdmulh_lane<mode>): Likewise.
8218 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
8219 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
8220 (aarch64_sqdmulh_laneq<mode>): New expander.
8221 (aarch64_sqrdmulh_laneq<mode>): Likewise.
8222 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
8223 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
8224 (aarch64_sqdmulh_lane<mode>): New expander.
8225 (aarch64_sqrdmulh_lane<mode>): Likewise.
8226 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
8227 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
8228 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
8229 (aarch64_sqdmlal_laneq<mode>): Likewise.
8230 (aarch64_sqdmlsl_lane<mode>): Likewise.
8231 (aarch64_sqdmlsl_laneq<mode>): Likewise.
8232 (aarch64_sqdmlal2_lane<mode>): Likewise.
8233 (aarch64_sqdmlal2_laneq<mode>): Likewise.
8234 (aarch64_sqdmlsl2_lane<mode>): Likewise.
8235 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
8236 (aarch64_sqdmull_lane<mode>): Likewise.
8237 (aarch64_sqdmull_laneq<mode>): Likewise.
8238 (aarch64_sqdmull2_lane<mode>): Likewise.
8239 (aarch64_sqdmull2_laneq<mode>): Likewise.
8240
8241 2014-06-10 Richard Biener <rguenther@suse.de>
8242
8243 PR tree-optimization/61438
8244 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
8245 (eliminate_dom_walker::before_dom_children): Only try to inhibit
8246 insertion of IVs if running PRE.
8247 (eliminate): Adjust.
8248 (pass_pre::execute): Likewise.
8249 (pass_fre::execute): Likewise.
8250
8251 2014-06-10 Richard Biener <rguenther@suse.de>
8252
8253 PR middle-end/61456
8254 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8255 Do not use the main variant for the type comparison.
8256 (ncr_compar): Likewise.
8257 (nonoverlapping_component_refs_p): Likewise.
8258
8259 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
8260
8261 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
8262 REG_CFA_RESTORE mode.
8263
8264 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
8265
8266 * config/i386/i386.c (expand_vec_perm_pblendv): New.
8267 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
8268 expand_vec_perm_pblendv.
8269
8270 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8271
8272 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
8273 available.
8274 Simplify description of __crc32d and __crc32cd intrinsics.
8275 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
8276 availability.
8277
8278 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
8279
8280 PR lto/61334
8281 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
8282 * config.in: Regenerate.
8283 * configure: Likewise.
8284
8285 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
8286
8287 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
8288 and public vars.
8289 (intersect_static_var_sets): Remove.
8290 (propagate): Do not prune local statics.
8291
8292 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8293
8294 PR fortran/60928
8295 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
8296 Set lastprivate_firstprivate even if omp_private_outer_ref
8297 langhook returns true.
8298 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
8299 langhook, call unshare_expr on new_var and call
8300 build_outer_var_ref to get the last argument.
8301
8302 2014-06-10 Marek Polacek <polacek@redhat.com>
8303
8304 PR c/60988
8305 * doc/extend.texi: Add cindex for transparent_union.
8306
8307 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
8308
8309 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
8310 init_symbolic_number ().
8311
8312 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
8313
8314 PR middle-end/61141
8315 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
8316 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
8317 (verify_rtl_sharing): Likewise.
8318
8319 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
8320
8321 PR c++/54442
8322 * tree.c (build_qualified_type): Use a canonical type for
8323 TYPE_CANONICAL.
8324
8325 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8326
8327 * config/arm/arm-modes.def: Remove XFmode.
8328
8329 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
8330
8331 PR target/61062
8332 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
8333 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
8334 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
8335 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
8336 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
8337 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
8338 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
8339 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
8340 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
8341
8342 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
8343
8344 * tree-core.h (tree_decl_with_vis): Remove section_name.
8345
8346 2014-06-09 Kito Cheng <kito@0xlab.org>
8347
8348 * ira.c (ira): Don't call init_caller_save if LRA enabled
8349 since LRA use its own infrastructure to handle that.
8350
8351 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8352
8353 * symtab.c (dump_symtab_base): Update dumping.
8354 (symtab_make_decl_local): Clear only DECL_COMDAT.
8355 * tree-vect-data-refs.c (Check that variable is static before
8356 tampering with sections.
8357 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
8358 (cgraph_create_virtual_clone): Likewise.
8359 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
8360 (decl_section_name, set_decl_section_name): New accessors.
8361 (find_decls_types_r): Do not walk section name
8362 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
8363 (decl_comdat_group, decl_comdat_group_id): Constify.
8364 (decl_section_name, set_decl_section_name): Update.
8365 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
8366 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
8367 (cgraph_make_node_local_1): Clear section and comdat group.
8368 * cgraph.h (set_comdat_group): Sanity check.
8369 (get_section, set_section): New.
8370 * ipa-comdats.c (ipa_comdats): Use get_section.
8371 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
8372 * lto-streamer-out.c: Do not follow section names.
8373 * c-family/c-common.c (handle_section_attribute): Update.
8374 * lto-cgraph.c (lto_output_node): Output section.
8375 (lto_output_varpool_node): Likewise.
8376 (read_comdat_group): Rename to ...
8377 (read_identifier): ... this one.
8378 (read_string_cst): New function.
8379 (input_node, input_varpool_node): Input section names.
8380 * tree-emutls.c (get_emutls_init_templ_addr): Update.
8381 (new_emutls_decl): Update.
8382 (secname_for_decl): Check section names only of static vars.
8383 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
8384 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
8385 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
8386 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
8387 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
8388 * config/mcore/mcore.c (mcore_unique_section): Likewise.
8389 * config/mips/mips.c (mips16_build_function_stub): Likewise.
8390 * config/v850/v850.c (v850_insert_attributes): Likewise.
8391 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
8392 Likewise.
8393 (h8300_handle_tiny_data_attribute): Likewise.
8394 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
8395 (bfin_handle_l2_attribute): Likewise.
8396
8397 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8398
8399 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
8400 remove static initializer.
8401
8402 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8403
8404 * varasm.c (use_blocks_for_decl_p): Check symbol table
8405 instead of alias attribute.
8406 (place_block_symbol): Recurse on aliases.
8407
8408 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8409
8410 * ipa-visibility.c: Include varasm.h
8411 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
8412
8413 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8414
8415 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
8416 outputting aliases.
8417
8418 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
8419
8420 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
8421 from test_insn into GGC space escape via SET_SRC.
8422
8423 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
8424
8425 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
8426 call statement, if any.
8427 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
8428 statements, if any. Tidy up.
8429
8430 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8431
8432 PR target/61431
8433 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
8434 iterators, VSX_D that handles 64-bit types, and VSX_LE that
8435 handles swapping the two 64-bit double words on little endian
8436 systems. Include V1TImode and optionally TImode in VSX_LE so that
8437 these types are properly swapped. Change all of the insns and
8438 splits that do the 64-bit swaps to use VSX_LE.
8439 (vsx_le_perm_load_<mode>): Likewise.
8440 (vsx_le_perm_store_<mode>): Likewise.
8441 (splitters for little endian memory operations): Likewise.
8442 (vsx_xxpermdi2_le_<mode>): Likewise.
8443 (vsx_lxvd2x2_le_<mode>): Likewise.
8444 (vsx_stxvd2x2_le_<mode>): Likewise.
8445
8446 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
8447
8448 PR target/61423
8449 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
8450 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
8451 and corresponding splitters. Zero extend general register
8452 or memory input operand to XMM temporary. Enable for
8453 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
8454 (floatunssi<mode>2): Update expander predicate.
8455
8456 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
8457
8458 PR rtl-optimization/61325
8459 * lra-constraints.c (process_address_1): Check scale equal to one
8460 to prevent transformation: base + scale * index => base + new_reg.
8461
8462 2014-06-06 Richard Biener <rguenther@suse.de>
8463
8464 PR tree-optimization/59299
8465 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
8466 a def operand.
8467 (nearest_common_dominator_of_uses): Likewise.
8468 (statement_sink_location): Adjust. Support sinking loads.
8469
8470 2014-06-06 Martin Jambor <mjambor@suse.cz>
8471
8472 * ipa-prop.c (get_place_in_agg_contents_list): New function.
8473 (build_agg_jump_func_from_list): Likewise.
8474 (determine_known_aggregate_parts): Renamed to
8475 determine_locally_known_aggregate_parts. Moved some functionality
8476 to the two functions above, removed bound checks.
8477
8478 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
8479
8480 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
8481 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
8482 (aarch64_progress_pointer): Likewise.
8483 (aarch64_copy_one_part_and_move_pointers): Likewise.
8484 (aarch64_expand_movmen): Likewise.
8485 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
8486 * config/aarch64/aarch64.md (movmem<mode>): New.
8487
8488 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
8489
8490 * targhooks.c (default_add_stmt_cost): Call target specific
8491 hook instead of default one.
8492
8493 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8494
8495 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
8496 endianness instead of host endianness.
8497 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
8498 comments.
8499
8500 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8501
8502 PR debug/53927
8503 * function.c (instantiate_decls): Process the saved static chain.
8504 (expand_function_start): If not optimizing, save the static chain
8505 onto the stack.
8506 * tree-nested.c (convert_all_function_calls): Always create the static
8507 chain for nested functions if not optimizing.
8508
8509 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8510
8511 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
8512
8513 2014-06-06 Richard Biener <rguenther@suse.de>
8514
8515 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
8516 (construct_init_block): Likewise.
8517 (construct_exit_block): Likewise.
8518 (pass_expand::execute): Likewise.
8519 * graphite.c (graphite_transforms): Replace check for current_loops
8520 with a check for > 1 loops.
8521 (pass_graphite_transforms::execute): Adjust.
8522 * ipa-split.c (split_function): Remove check for current_loops.
8523 * omp-low.c (expand_parallel_call): Likewise.
8524 (expand_omp_for_init_counts): Likewise.
8525 (extract_omp_for_update_vars): Likewise.
8526 (expand_omp_for_generic): Likewise.
8527 (expand_omp_sections): Likewise.
8528 (expand_omp_target): Likewise.
8529 * tracer.c (tail_duplicate): Likewise.
8530 (pass_tracer::execute): Likewise.
8531 * trans-mem.c (expand_transaction): Likewise.
8532 * tree-complex.c (expand_complex_div_wide): Likewise.
8533 * tree-eh.c (lower_resx): Likewise.
8534 (cleanup_empty_eh_merge_phis): Likewise.
8535 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
8536 current_loops with a check for > 1 loops.
8537 (pass_predcom::execute): Adjust.
8538 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
8539 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
8540 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
8541 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
8542 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8543 * tree-switch-conversion.c (process_switch): Likewise.
8544 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
8545 * tree-vrp.c (vrp_visit_phi_node): Likewise.
8546 (execute_vrp): Likewise.
8547 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8548
8549 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8550
8551 * rtl.h (insn_location): Declare.
8552 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
8553 with UNKNOWN_LOCATION.
8554 * emit-rtl.c (insn_location): New function.
8555 * final.c (notice_source_line): Check that the instruction has a
8556 location before retrieving it and use insn_location.
8557 * modulo-sched.c (loop_single_full_bb_p): Likewise.
8558 * print-rtl.c (print_rtx): Likewise.
8559
8560 2014-06-06 Richard Biener <rguenther@suse.de>
8561
8562 * passes.def: Move 2nd VRP pass before phi-only-cprop.
8563
8564 2014-06-06 Christian Bruel <christian.bruel@st.com>
8565
8566 PR tree-optimization/43934
8567 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
8568 cost.
8569
8570 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8571
8572 * ira-lives.c (single_reg_class): Add missing break. Explicitly
8573 return NO_REGS for extra address and memory constraints. Handle
8574 operands that match (or are equivalent to something that matches)
8575 extra constant constraints. Ignore other non-register operands.
8576
8577 2014-06-06 Alan Modra <amodra@gmail.com>
8578
8579 PR target/61300
8580 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
8581 * doc/tm.texi: Regenerate.
8582 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
8583 Use throughout in place of REG_PARM_STACK_SPACE.
8584 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
8585 "incoming" param. Pass to rs6000_function_parms_need_stack.
8586 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
8587 prototype_p when incoming. Use function decl when incoming
8588 to handle K&R style functions.
8589 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
8590 (INCOMING_REG_PARM_STACK_SPACE): Define.
8591
8592 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8593
8594 PR target/52472
8595 * cfgexpand.c (expand_debug_expr): Use address space of nested
8596 TREE_TYPE for ADDR_EXPR and MEM_REF.
8597
8598 2014-06-05 Jeff Law <law@redhat.com>
8599
8600 PR tree-optimization/61289
8601 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
8602 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
8603 looking for those which match LHS. All callers changed.
8604 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
8605 parameters and code which manipulated them. All callers changed.
8606 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
8607 and DST_MAP parameters. Simplify invalidation code by just calling
8608 invalidate_equivalences. All callers changed.
8609 (thread_across_edge): Simplify now that we don't need to maintain
8610 the map of equivalences to invalidate.
8611
8612 2014-06-05 Kai Tietz <ktietz@redhat.com>
8613 Richard Henderson <rth@redhat.com>
8614
8615 PR target/46219
8616 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
8617 checking for !TARGET_X32.
8618 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
8619 (sibcall_intern): New define_insn, plus required peepholes.
8620 (sibcall_pop_intern): Likewise.
8621 (sibcall_value_intern): Likewise.
8622 (sibcall_value_pop_intern): Likewise.
8623
8624 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
8625
8626 * tree-inline.c (tree_function_versioning): Check DF info existence
8627 before accessing it.
8628
8629 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8630
8631 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
8632 frame_size.
8633 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
8634 aarch64_frame hard_fp_offset and frame_size.
8635 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
8636 frame_size; remove original_frame_size.
8637 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
8638 (aarch64_initial_elimination_offset): Remove frame_size and
8639 offset. Use aarch64_frame frame_size.
8640
8641 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8642 Jiong Wang <jiong.wang@arm.com>
8643 Renlin <renlin.li@arm.com>
8644
8645 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
8646 initialization of R30 offset. Update offset. Iterate core
8647 regisers upto X30. Remove X29, X30 specific code.
8648
8649 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8650 Jiong Wang <jiong.wang@arm.com>
8651
8652 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
8653 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
8654 (aarch64_register_saved_on_entry): Adjust test.
8655
8656 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8657
8658 * config/aarch64/aarch64.h (machine_function): Move
8659 saved_varargs_size from here...
8660 (aarch64_frame): ... to here.
8661
8662 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8663 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
8664 (aarch64_initial_elimination_offset)
8665 (aarch64_setup_incoming_varargs): Adjust location of
8666 saved_varargs_size.
8667
8668 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8669
8670 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
8671 layout comment.
8672
8673 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
8674 Prachi Godbole <Prachi.Godbole@imgtec.com>
8675
8676 * config/mips/mips-cpus.def: Add definition for p5600. Updated
8677 mips32r5 entry to use PROCESSOR_P5600.
8678 * config/mips/mips-tables.opt: Regenerate.
8679 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
8680 * config/mips/mips.c (mips_fmadd_bypass): New function.
8681 (mips_rtx_cost_data): Add costs for p5600.
8682 (mips_issue_rate): Add support for p5600.
8683 (mips_multipass_dfa_lookahead): Likewise.
8684 * config/mips/mips.h (TUNE_P5600): New define.
8685 (TUNE_MACC_CHAINS): Add TUNE_P5600.
8686 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
8687 * config/mips/mips.md: Include p5600.md.
8688 (processor): Add p5600.
8689 * config/mips/p5600.md: New file.
8690
8691 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
8692
8693 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
8694 * config/i386/predicates.md (palignr_operand): New.
8695 Indicates if permutation is suitable for palignr instruction.
8696
8697 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
8698
8699 PR tree-optimization/61319
8700 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8701 stmt belongs to loop.
8702
8703 2014-06-05 Richard Biener <rguenther@suse.de>
8704
8705 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
8706 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
8707 (lookup_tmp_var): Adjust.
8708 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
8709
8710 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8711
8712 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
8713
8714 2014-06-05 Marek Polacek <polacek@redhat.com>
8715
8716 PR c/49706
8717 * doc/invoke.texi: Document -Wlogical-not-parentheses.
8718
8719 2014-06-04 Tom de Vries <tom@codesourcery.com>
8720
8721 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
8722 CONST_INT.
8723
8724 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
8725
8726 PR tree-optimization/61385
8727 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
8728
8729 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
8730
8731 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
8732 changed to use fatal_error.
8733 (main): Ensure lto_wrapper_cleanup is run atexit.
8734
8735 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8736
8737 * lra-constraints.c (valid_address_p): Move earlier in file.
8738 (address_eliminator): New structure.
8739 (satisfies_memory_constraint_p): New function.
8740 (satisfies_address_constraint_p): Likewise.
8741 (process_alt_operands, process_address, curr_insn_transform): Use them.
8742
8743 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8744
8745 * lra-int.h (lra_static_insn_data): Make operand_alternative a
8746 const pointer.
8747 (target_lra_int, default_target_lra_int, this_target_lra_int)
8748 (op_alt_data): Delete.
8749 * lra.h (lra_init): Delete.
8750 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
8751 (init_insn_code_data_once): Remove op_alt_data handling.
8752 (finish_insn_code_data_once): Likewise.
8753 (init_op_alt_data): Delete.
8754 (get_static_insn_data): Initialize operand_alternative to null.
8755 (free_insn_recog_data): Cast operand_alternative before freeing it.
8756 (setup_operand_alternative): Take the operand_alternative as
8757 parameter and assume it isn't already cached in the static
8758 insn data.
8759 (lra_set_insn_recog_data): Update accordingly.
8760 (lra_init): Delete.
8761 * ira.c (ira_init): Don't call lra_init.
8762 * target-globals.h (this_target_lra_int): Declare.
8763 (target_globals): Remove lra_int.
8764 (restore_target_globals): Update accordingly.
8765 * target-globals.c: Don't include lra-int.h.
8766 (default_target_globals, save_target_globals): Remove lra_int.
8767
8768 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8769
8770 * recog.h (operand_alternative): Convert reg_class, reject,
8771 matched and matches into bitfields.
8772 (preprocess_constraints): New overload.
8773 (preprocess_insn_constraints): New function.
8774 (preprocess_constraints): Take the insn as parameter.
8775 (recog_op_alt): Change into a pointer.
8776 (target_recog): Add x_op_alt.
8777 * recog.c (asm_op_alt): New variable.
8778 (recog_op_alt): Change into a pointer.
8779 (preprocess_constraints): New overload, replacing the old function
8780 definition with one that doesn't use global state.
8781 (preprocess_insn_constraints): New function.
8782 (preprocess_constraints): Use them. Take the insn as parameter.
8783 Use asm_op_alt for asms.
8784 (recog_init): Free existing x_op_alt entries.
8785 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
8786 pointer const.
8787 (make_early_clobber_and_input_conflicts): Likewise.
8788 (process_bb_node_lives): Pass the insn to process_constraints.
8789 * reg-stack.c (check_asm_stack_operands): Likewise.
8790 (subst_asm_stack_regs): Likewise.
8791 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8792 * regrename.c (build_def_use): Likewise.
8793 * sched-deps.c (sched_analyze_insn): Likewise.
8794 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
8795 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8796 (note_invalid_constants): Likewise.
8797 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8798 (ix86_legitimate_combined_insn): Make operand_alternative pointer
8799 const.
8800
8801 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8802
8803 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
8804 * ira-lives.c (check_and_make_def_conflict): Check for disabled
8805 alternatives.
8806 (make_early_clobber_and_input_conflicts): Likewise.
8807 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8808
8809 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8810
8811 * recog.h (alternative_class): New function.
8812 (which_op_alt): Return a const recog_op_alt.
8813 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
8814 (subst_asm_stack_regs): Likewise.
8815 * config/arm/arm.c (note_invalid_constants): Likewise.
8816 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
8817 the operand_alternative; use alternative class instead.
8818 * sel-sched.c (get_reg_class): Likewise.
8819 * regrename.c (build_def_use): Likewise.
8820 (hide_operands, restore_operands, record_out_operands): Update type
8821 accordingly.
8822
8823 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8824
8825 * recog.h (recog_op_alt): Convert to a flat array.
8826 (which_op_alt): New function.
8827 * recog.c (recog_op_alt): Convert to a flat array.
8828 (preprocess_constraints): Update accordingly, grouping all
8829 operands of the same alternative together, rather than the
8830 other way around.
8831 * ira-lives.c (check_and_make_def_conflict): Likewise.
8832 (make_early_clobber_and_input_conflicts): Likewise.
8833 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8834 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
8835 (subst_asm_stack_regs): Likewise.
8836 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8837 * regrename.c (hide_operands, record_out_operands): Likewise.
8838 (build_def_use): Likewise.
8839 * sel-sched.c (get_reg_class): Likewise.
8840 * config/arm/arm.c (note_invalid_constants): Likewise.
8841
8842 2014-06-04 Jason Merrill <jason@redhat.com>
8843
8844 PR c++/51253
8845 PR c++/61382
8846 * gimplify.c (gimplify_arg): Non-static.
8847 * gimplify.h: Declare it.
8848
8849 2014-06-04 Richard Biener <rguenther@suse.de>
8850
8851 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8852 TREE_PUBLIC and DECL_EXTERNAL decls.
8853
8854 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
8855
8856 * regcprop.c (copyprop_hardreg_forward_1): Account for
8857 HARD_REGNO_CALL_PART_CLOBBERED.
8858
8859 2014-06-04 Richard Biener <rguenther@suse.de>
8860
8861 * configure.ac: Check whether the underlying type of int64_t
8862 is long or long long.
8863 * configure: Regenerate.
8864 * config.in: Likewise.
8865 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
8866 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
8867
8868 2014-06-04 Richard Biener <rguenther@suse.de>
8869
8870 PR tree-optimization/60098
8871 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
8872 we hit a kill.
8873 (dse_optimize_stmt): Simplify, now that we found a kill
8874 earlier.
8875
8876 2014-06-04 Richard Biener <rguenther@suse.de>
8877
8878 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
8879 of accesses with non-invariant address.
8880
8881 2014-06-04 Martin Liska <mliska@suse.cz>
8882
8883 * cgraph.h (cgraph_make_wrapper): New function introduced.
8884 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
8885 * ipa-inline.h (inline_analyze_function): The function is global.
8886 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
8887
8888 2014-06-04 Martin Liska <mliska@suse.cz>
8889
8890 * tree.h (private_lookup_attribute_starting): New function.
8891 (lookup_attribute_starting): Likewise.
8892 * tree.c (private_lookup_attribute_starting): Likewise.
8893
8894 2014-06-04 Martin Liska <mliska@suse.cz>
8895
8896 * cgraph.h (expand_thunk): New argument added.
8897 (address_taken_from_non_vtable_p): New global function.
8898 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
8899 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
8900 * cgraphunit.c (analyze_function): Likewise.
8901 (assemble_thunks_and_aliases): Argument added to call.
8902 (expand_thunk): New argument forces to produce GIMPLE thunk.
8903
8904 2014-06-04 Martin Liska <mliska@suse.cz>
8905
8906 * coverage.h (coverage_compute_cfg_checksum): Argument added.
8907 * coverage.c (coverage_compute_cfg_checksum): Likewise.
8908 * profile.c (branch_prob): Likewise.
8909
8910 2014-06-04 Martin Jambor <mjambor@suse.cz>
8911
8912 PR ipa/61340
8913 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
8914 handler for switch on an ipa_ref_use enum.
8915 * ipa-reference.c (analyze_function): Likewise.
8916
8917 2014-06-04 Kai Tietz <ktietz@redhat.com>
8918
8919 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
8920 from old call-instruction.
8921
8922 2014-06-04 Bin Cheng <bin.cheng@arm.com>
8923
8924 * config/aarch64/aarch64.c (aarch64_classify_address)
8925 (aarch64_legitimize_reload_address): Support full addressing modes
8926 for vector modes.
8927 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
8928 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
8929
8930 2014-06-03 Andrew Pinski <apinski@cavium.com>
8931
8932 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
8933 for OP0.
8934
8935 2014-06-03 Andrew Pinski <apinski@cavium.com>
8936
8937 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
8938 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
8939
8940 2014-06-03 Kai Tietz <ktietz@redhat.com>
8941
8942 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
8943 for 64-bit ms-abi.
8944
8945 2014-06-03 Dehao Chen <dehao@google.com>
8946
8947 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
8948 the same loop.
8949
8950 2014-06-03 Marek Polacek <polacek@redhat.com>
8951
8952 PR c/60439
8953 * doc/invoke.texi: Document -Wswitch-bool.
8954 * function.c (stack_protect_epilogue): Cast controlling expression of
8955 the switch to int.
8956 * gengtype.c (walk_type): Generate switch expression with its
8957 controlling expression cast to int.
8958
8959 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
8960
8961 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
8962 and attiny841.
8963 * config/avr/avr-tables.opt: Regenerate.
8964 * config/avr/t-multilib: Regenerate.
8965 * doc/avr-mmcu.texi: Regenerate.
8966
8967 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
8968 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8969
8970 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
8971 (ata6617c, ata664251): Add new avr35 devices.
8972 (ata6612c): Add new avr4 device.
8973 (ata6613c, ata6614q): Add new avr5 devices.
8974 * config/avr/avr-tables.opt: Regenerate.
8975 * config/avr/t-multilib: Regenerate.
8976 * doc/avr-mmcu.texi: Regenerate.
8977
8978 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8979
8980 * gcc/config/aarch64/aarch64-builtins.c
8981 (aarch64_types_binop_ssu_qualifiers): New static data.
8982 (TYPES_BINOP_SSU): Define.
8983 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
8984 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
8985 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
8986 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
8987 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
8988 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
8989 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
8990 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
8991 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
8992 suffix to builtin function name, remove cast.
8993 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
8994 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
8995 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
8996
8997 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8998
8999 * gcc/config/aarch64/aarch64-builtins.c
9000 (aarch64_types_binop_uus_qualifiers,
9001 aarch64_types_shift_to_unsigned_qualifiers,
9002 aarch64_types_unsigned_shiftacc_qualifiers): Define.
9003 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
9004 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
9005 sqshlu_n, uqshl_n): Update qualifiers.
9006 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
9007 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
9008 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
9009 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
9010 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
9011 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
9012 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
9013 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
9014 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
9015 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
9016 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
9017 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
9018 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
9019 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
9020 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
9021 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
9022 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
9023 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
9024 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
9025 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
9026 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
9027 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
9028 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
9029 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
9030 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
9031 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
9032 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
9033
9034 2014-06-03 Teresa Johnson <tejohnson@google.com>
9035
9036 * tree-sra.c (modify_function): Record caller nodes after rebuild.
9037
9038 2014-06-02 Jason Merrill <jason@redhat.com>
9039
9040 PR c++/61020
9041 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
9042
9043 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9044
9045 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
9046 location == 0.
9047
9048 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9049
9050 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
9051 New pattern.
9052 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
9053 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
9054 * config/aarch64/iterators.md (REVERSE): New iterator.
9055 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
9056 (rev_op): New int_attribute.
9057 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
9058 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
9059 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
9060 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
9061 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
9062 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
9063 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
9064 Replace temporary __asm__ with __builtin_shuffle.
9065
9066 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
9067
9068 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
9069 mips64r5.
9070 * config/mips/mips-tables.opt: Regenerate.
9071 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
9072 to use mips_isa_rev rather than ISA_MIPS32R2.
9073 * config/mips/mips.h (ISA_MIPS32R3): New define.
9074 (ISA_MIPS32R5): New define.
9075 (ISA_MIPS64R3): New define.
9076 (ISA_MIPS64R5): New define.
9077 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
9078 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
9079 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
9080 and mips64r5.
9081 (MIPS_ISA_SYNCI_SPEC): Likewise.
9082 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
9083 (LINK_SPEC): Added mips32r3 and mips32r5.
9084 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
9085 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
9086 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
9087 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
9088 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
9089 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
9090 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
9091
9092 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
9093
9094 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
9095 options.
9096 * config/mips/mips.opt (mxpa): New option.
9097 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
9098 assembler.
9099
9100 2014-06-03 Martin Jambor <mjambor@suse.cz>
9101
9102 PR ipa/61160
9103 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
9104 thunks.
9105
9106 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
9107
9108 PR tree-optimization/61328
9109 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
9110 initialization from find_bswap_or_nop_1.
9111 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
9112 in source_expr2 before using the size value the function sets. Also
9113 make use of init_symbolic_number () in both the old place and
9114 find_bswap_or_nop_load () to avoid reading uninitialized memory when
9115 doing recursion in the GIMPLE_BINARY_RHS case.
9116
9117 2014-06-03 Richard Biener <rguenther@suse.de>
9118
9119 PR tree-optimization/61383
9120 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
9121 stmts can't trap.
9122
9123 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
9124
9125 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
9126 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
9127 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
9128 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
9129 in this file.
9130 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
9131 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
9132 * system.h: ...here and make it unconditional.
9133 * target.def (conditional_register_usage): Mention
9134 define_register_constraint instead of old-style constraint macros.
9135 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
9136 * doc/tm.texi: Regenerate.
9137 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
9138 protected by !USE_MD_CONSTRAINTS.
9139 * config/frv/frv.md: Remove quote from old version of documentation.
9140 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
9141 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
9142 CONST_DOUBLE_OK_FOR_LETTER.
9143 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
9144
9145 2014-06-02 Andrew Pinski <apinski@cavium.com>
9146
9147 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
9148 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
9149 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
9150 file whose name depends on -mabi= and -mbig-endian.
9151 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
9152 Handle LP64 better and handle ilp32 too.
9153 (MULTILIB_OPTIONS): Delete.
9154 (MULTILIB_DIRNAMES): Delete.
9155
9156 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
9157
9158 * expr.h: Remove prototypes of functions defined in builtins.c.
9159 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
9160 Remove prototypes of functions defined in builtins.c.
9161 * builtins.h: Update prototype list to include all exported functions.
9162 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
9163 no_c99_libc_has_function): Move to targhooks.c
9164 (build_string_literal, build_call_expr_loc_array,
9165 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
9166 to tree.c.
9167 (expand_builtin_object_size, fold_builtin_object_size): Make static.
9168 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
9169 no_c99_libc_has_function): Relocate from builtins.c.
9170 * tree.c: Include builtins.h.
9171 (build_call_expr_loc_array, build_call_expr_loc_vec,
9172 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
9173 from builtins.c.
9174 * fold-const.h (fold_fma): Move prototype to builtins.h.
9175 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
9176 * asan.c: Include builtins.h.
9177 * cfgexpand.c: Likewise.
9178 * convert.c: Likewise.
9179 * emit-rtl.c: Likewise.
9180 * except.c: Likewise.
9181 * expr.c: Likewise.
9182 * fold-const.c: Likewise.
9183 * gimple-fold.c: Likewise.
9184 * gimple-ssa-strength-reduction.c: Likewise.
9185 * gimplify.c: Likewise.
9186 * ipa-inline.c: Likewise.
9187 * ipa-prop.c: Likewise.
9188 * lto-streamer-out.c: Likewise.
9189 * stmt.c: Likewise.
9190 * tree-inline.c: Likewise.
9191 * tree-object-size.c: Likewise.
9192 * tree-sra.c: Likewise.
9193 * tree-ssa-ccp.c: Likewise.
9194 * tree-ssa-forwprop.c: Likewise.
9195 * tree-ssa-loop-ivcanon.c: Likewise.
9196 * tree-ssa-loop-ivopts.c: Likewise.
9197 * tree-ssa-math-opts.c: Likewise.
9198 * tree-ssa-reassoc.c: Likewise.
9199 * tree-ssa-threadedge.c: Likewise.
9200 * tree-streamer-in.c: Likewise.
9201 * tree-vect-data-refs.c: Likewise.
9202 * tree-vect-patterns.c: Likewise.
9203 * tree-vect-stmts.c: Likewise.
9204 * config/aarch64/aarch64.c: Likewise.
9205 * config/alpha/alpha.c: Likewise.
9206 * config/arc/arc.c: Likewise.
9207 * config/arm/arm.c: Likewise.
9208 * config/avr/avr.c: Likewise.
9209 * config/bfin/bfin.c: Likewise.
9210 * config/c6x/c6x.c: Likewise.
9211 * config/cr16/cr16.c: Likewise.
9212 * config/cris/cris.c: Likewise.
9213 * config/epiphany/epiphany.c: Likewise.
9214 * config/fr30/fr30.c: Likewise.
9215 * config/frv/frv.c: Likewise.
9216 * config/h8300/h8300.c: Likewise.
9217 * config/i386/i386.c: Likewise.
9218 * config/i386/winnt.c: Likewise.
9219 * config/ia64/ia64.c: Likewise.
9220 * config/iq2000/iq2000.c: Likewise.
9221 * config/lm32/lm32.c: Likewise.
9222 * config/m32c/m32c.c: Likewise.
9223 * config/m32r/m32r.c: Likewise.
9224 * config/m68k/m68k.c: Likewise.
9225 * config/mcore/mcore.c: Likewise.
9226 * config/mep/mep.c: Likewise.
9227 * config/microblaze/microblaze.c: Likewise.
9228 * config/mips/mips.c: Likewise.
9229 * config/mmix/mmix.c: Likewise.
9230 * config/mn10300/mn10300.c: Likewise.
9231 * config/moxie/moxie.c: Likewise.
9232 * config/msp430/msp430.c: Likewise.
9233 * config/nds32/nds32.c: Likewise.
9234 * config/pa/pa.c: Likewise.
9235 * config/pdp11/pdp11.c: Likewise.
9236 * config/picochip/picochip.c: Likewise.
9237 * config/rl78/rl78.c: Likewise.
9238 * config/rs6000/rs6000.c: Likewise.
9239 * config/rx/rx.c: Likewise.
9240 * config/s390/s390.c: Likewise.
9241 * config/score/score.c: Likewise.
9242 * config/sh/sh.c: Likewise.
9243 * config/sparc/sparc.c: Likewise.
9244 * config/spu/spu.c: Likewise.
9245 * config/stormy16/stormy16.c: Likewise.
9246 * config/tilegx/tilegx.c: Likewise.
9247 * config/tilepro/tilepro.c: Likewise.
9248 * config/v850/v850.c: Likewise.
9249 * config/vax/vax.c: Likewise.
9250 * config/xtensa/xtensa.c: Likewise.
9251
9252 2014-06-02 Jeff Law <law@redhat.com>
9253
9254 PR rtl-optimization/61094
9255 * ree.c (combine_reaching_defs): Do not reextend an insn if it
9256 was marked as do_no_reextend. If a copy is needed to eliminate
9257 an extension, then mark it as do_not_reextend.
9258
9259 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
9260
9261 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
9262
9263 2014-06-02 Richard Henderson <rth@redhat.com>
9264
9265 PR target/61336
9266 * config/alpha/alpha.c (print_operand_address): Allow symbolic
9267 addresses inside asms. Use output_operand_lossage instead of
9268 gcc_unreachable.
9269
9270 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
9271
9272 PR target/61239
9273 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
9274 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
9275
9276 2014-06-02 Tom de Vries <tom@codesourcery.com>
9277
9278 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
9279 case that x has VOIDmode.
9280
9281 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
9282
9283 * varasm.c (copy_constant): Delete function.
9284 (build_constant_desc): Don't call it.
9285
9286 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9287
9288 PR target/61154
9289 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
9290 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
9291 with immediate_operand.
9292
9293 2014-06-02 Andreas Schwab <schwab@suse.de>
9294
9295 * config/ia64/ia64.c
9296 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
9297 pending_data_specs first.
9298
9299 2014-06-02 Richard Biener <rguenther@suse.de>
9300
9301 PR tree-optimization/61378
9302 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
9303 valueized_anything.
9304
9305 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
9306
9307 * config/i386/constraints.md (Bw): Rename from 'w'.
9308 (Bz): Rename from 'z'.
9309 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
9310
9311 2014-06-01 Kai Tietz <ktietz@redhat.com>
9312
9313 PR target/61377
9314 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
9315 * config/i386/i386.md (sibcall_insn_operand): Use Bs
9316 instead of m constraint.
9317
9318 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
9319
9320 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
9321 a separate alternative where the scratch operand 2 is marked as
9322 early clobber.
9323
9324 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
9325
9326 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9327 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
9328 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
9329 and __builtins_arm_get_fpscr.
9330 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
9331 __builtins_arm_get_fpscr.
9332 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
9333 __builtins_arm_ldfpscr.
9334 (arm_atomic_assign_expand_fenv): New function.
9335 * config/arm/vfp.md (set_fpscr): New pattern.
9336 (get_fpscr) : Likewise.
9337 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
9338 VUNSPEC_SET_FPSCR.
9339 * doc/extend.texi (AARCH64 Built-in Functions) : Document
9340 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
9341
9342 2014-05-30 Jakub Jelinek <jakub@redhat.com>
9343
9344 * asan.c (report_error_func): Add SLOW_P argument, use
9345 BUILT_IN_ASAN_*_N if set.
9346 (build_check_stmt): Likewise.
9347 (instrument_derefs): If T has insufficient alignment,
9348 force same handling as for odd sizes.
9349
9350 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
9351 BUILT_IN_ASAN_REPORT_STORE_N): New.
9352 * asan.c (struct asan_mem_ref): Change access_size type to
9353 HOST_WIDE_INT.
9354 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
9355 update_mem_ref_hash_table): Likewise.
9356 (asan_mem_ref_hasher::hash): Hash in a HWI.
9357 (report_error_func): Change size_in_bytes argument to HWI.
9358 Use *_N builtins if size_in_bytes is larger than 16 or not power of
9359 two.
9360 (build_shadow_mem_access): New function.
9361 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
9362 Handle size_in_bytes not power of two or larger than 16.
9363 (instrument_derefs): Don't give up if size_in_bytes is not
9364 power of two or is larger than 16.
9365
9366 2014-05-30 Kai Tietz <ktietz@redhat.com>
9367
9368 PR target/60104
9369 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
9370 for sibling-tail-calls.
9371 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
9372 to its use.
9373 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
9374 (sibcall_insn_operand): Add check for sibcall_memory_operand.
9375
9376 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9377
9378 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
9379 * config/avr/avr-tables.opt: Regenerate.
9380 * config/avr/t-multilib: Regenerate.
9381 * doc/avr-mmcu.texi: Regenerate.
9382
9383 2014-05-30 Ian Lance Taylor <iant@google.com>
9384
9385 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
9386 target("sse").
9387
9388 2014-05-30 Tom de Vries <tom@codesourcery.com>
9389
9390 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
9391 Redefine as true.
9392
9393 2014-05-30 Tom de Vries <tom@codesourcery.com>
9394
9395 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9396 * lra.c (initialize_lra_reg_info_element): Add init of
9397 actual_call_used_reg_set field.
9398 (lra): Call lra_create_live_ranges before lra_inheritance for
9399 -fuse-caller-save.
9400 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9401 -fuse-caller-save.
9402 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
9403 instead of call_used_reg_set for -fuse-caller-save.
9404 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9405
9406 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9407
9408 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
9409 to mov_imm.
9410 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
9411
9412 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
9413
9414 * ira.c (ira_get_dup_out_num): Check for output operands at
9415 the start of the loop. Handle cases where an included alternative
9416 follows an excluded one.
9417
9418 2014-05-29 Mike Stump <mikestump@comcast.net>
9419
9420 PR debug/61352
9421 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
9422 post ld passes when lto is used.
9423
9424 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
9425
9426 PR rtl-optimization/61325
9427 * lra-constraints.c (process_address): Rename to process_address_1.
9428 (process_address): New function.
9429
9430 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
9431
9432 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
9433 TYPES_BINOPV): New static data.
9434 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
9435 New builtin.
9436 * config/aarch64/aarch64-simd.md (aarch64_ext,
9437 aarch64_im_lane_boundsi): New patterns.
9438 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
9439 patterns for EXT.
9440 (aarch64_evpc_ext): New function.
9441
9442 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
9443
9444 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
9445 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
9446 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
9447 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
9448 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
9449
9450 2014-05-29 Tom de Vries <tom@codesourcery.com>
9451
9452 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
9453
9454 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
9455 Richard Sandiford <rdsandiford@googlemail.com>
9456
9457 * arm/iterators.md (shiftable_ops): New code iterator.
9458 (t2_binop0, arith_shift_insn): New code attributes.
9459 * arm/predicates.md (shift_nomul_operator): New predicate.
9460 * arm/arm.md (insn_enabled): Delete.
9461 (enabled): Remove insn_enabled test.
9462 (*arith_shiftsi): Delete. Replace with ...
9463 (*<arith_shift_insn>_multsi): ... new pattern.
9464 (*<arith_shift_insn>_shiftsi): ... new pattern.
9465 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
9466
9467 2014-05-29 Radovan Obradovic <robradovic@mips.com>
9468 Tom de Vries <tom@codesourcery.com>
9469
9470 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
9471 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
9472 clobber.
9473 (mips_split_call): Use POST_CALL_TMP_REG.
9474 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
9475
9476 2014-05-29 Tom de Vries <tom@codesourcery.com>
9477
9478 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
9479 with #ifdef STACK_REGS.
9480
9481 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
9482
9483 * varasm.c (get_variable_section): Walk aliases.
9484 (place_block_symbol): Walk aliases.
9485
9486 2014-05-28 Tom de Vries <tom@codesourcery.com>
9487
9488 Revert:
9489 2014-05-28 Tom de Vries <tom@codesourcery.com>
9490
9491 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9492 * lra.c (initialize_lra_reg_info_element): Add init of
9493 actual_call_used_reg_set field.
9494 (lra): Call lra_create_live_ranges before lra_inheritance for
9495 -fuse-caller-save.
9496 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9497 -fuse-caller-save.
9498 * lra-constraints.c (need_for_call_save_p): Use
9499 actual_call_used_reg_set instead of call_used_reg_set for
9500 -fuse-caller-save.
9501 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9502
9503 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9504
9505 * doc/md.texi: Document that the % constraint character must
9506 be at the beginning of the string.
9507 * genoutput.c (validate_insn_alternatives): Check that '=',
9508 '+' and '%' only appear at the beginning of a constraint.
9509 * ira.c (commutative_constraint_p): Delete.
9510 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
9511 at the start of the string.
9512 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
9513 duplicate '='s.
9514 * config/arm/neon.md (bicdi3_neon): Likewise.
9515 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
9516 (slt_si, sltu_si): Likewise.
9517 * config/vax/vax.md (sbcdi3): Likewise.
9518 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
9519 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
9520 (mul64): Move '%' to beginning of constraint.
9521 * config/arm/arm.md (*xordi3_insn): Likewise.
9522 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
9523 (xorsi3): Likewise.
9524
9525 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9526
9527 * doc/md.texi: Document the restrictions on the "enabled" attribute.
9528
9529 2014-05-28 Jason Merrill <jason@redhat.com>
9530
9531 PR c++/47202
9532 * cgraph.h (symtab_node::get_comdat_group_id): New.
9533 * cgraphunit.c (analyze_functions): Call it.
9534 * symtab.c (dump_symtab_node): Likewise.
9535 * tree.c (decl_comdat_group_id): New.
9536 * tree.h: Declare it.
9537 * lto-streamer-out.c (write_symbol): Use it.
9538 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
9539
9540 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9541
9542 PR bootstrap/PR61146
9543 * wide-int.cc: Do not include longlong.h when compiling with clang.
9544
9545 2014-05-28 Richard Biener <rguenther@suse.de>
9546
9547 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
9548 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
9549 (vrp_visit_assignment_or_call): Print less vertical space.
9550 (vrp_visit_stmt): Likewise.
9551 (vrp_visit_phi_node): Likewise. For a PHI argument with
9552 VR_VARYING range consider recording it as copy.
9553
9554 2014-05-28 Richard Biener <rguenther@suse.de>
9555
9556 Revert
9557 2014-05-28 Richard Biener <rguenther@suse.de>
9558
9559 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9560
9561 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9562
9563 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
9564 sufficiently aligned and an offset is used at the same time.
9565 (expand_expr_real_1): Likewise.
9566
9567 2014-05-28 Richard Biener <rguenther@suse.de>
9568
9569 PR middle-end/61045
9570 * fold-const.c (fold_comparison): When folding
9571 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
9572 the sign of the remaining constant operand stays the same.
9573
9574 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
9575
9576 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9577 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
9578 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
9579 to the assembler.
9580 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
9581 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
9582 (m32bit-doubles) Likewise.
9583 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
9584 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
9585 option for RL78.
9586
9587 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9588
9589 * configure.ac ($gcc_cv_ld_clearcap): New test.
9590 * configure: Regenerate.
9591 * config.in: Regenerate.
9592 * config/sol2.opt (mclear-hwcap): New option.
9593 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
9594 * config/sol2-clearcap.map: Moved here from
9595 testsuite/gcc.target/i386/clearcap.map.
9596 * config/sol2-clearcapv2.map: Move here from
9597 gcc.target/i386/clearcapv2.map.
9598 * config/t-sol2 (install): Depend on install-clearcap-map.
9599 (install-clearcap-map): New target.
9600 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
9601 -mclear-hwcap.
9602
9603 2014-05-28 Richard Biener <rguenther@suse.de>
9604
9605 * hwint.h (*_HALF_WIDE_INT*): Move to ...
9606 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
9607 ... here and remove the rest.
9608 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9609
9610 2014-05-28 Richard Biener <rguenther@suse.de>
9611
9612 PR tree-optimization/61335
9613 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
9614 new range fails, drop to varying.
9615
9616 2014-05-28 Olivier Hainque <hainque@adacore.com>
9617
9618 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
9619 (CPP_SPEC): Add entry for -mcpu=8548.
9620 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
9621 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
9622
9623 2014-05-28 Tom de Vries <tom@codesourcery.com>
9624
9625 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9626 * lra.c (initialize_lra_reg_info_element): Add init of
9627 actual_call_used_reg_set field.
9628 (lra): Call lra_create_live_ranges before lra_inheritance for
9629 -fuse-caller-save.
9630 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9631 -fuse-caller-save.
9632 * lra-constraints.c (need_for_call_save_p): Use
9633 actual_call_used_reg_set instead of call_used_reg_set for
9634 -fuse-caller-save.
9635 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9636
9637 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9638 Tom de Vries <tom@codesourcery.com>
9639
9640 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
9641 to gccoptlist.
9642 (@item -fuse-caller-save): New item.
9643
9644 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9645 Tom de Vries <tom@codesourcery.com>
9646
9647 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
9648 OPT_fuse_caller_save.
9649
9650 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9651 Tom de Vries <tom@codesourcery.com>
9652
9653 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
9654 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
9655 get_call_reg_set_usage.
9656 * resource.c (mark_set_resources, mark_target_live_regs): Use
9657 get_call_reg_set_usage.
9658 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
9659 field.
9660 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
9661 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
9662 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9663 * ira-build.c (ira_create_allocno): Init
9664 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9665 (create_cap_allocno, propagate_allocno_info)
9666 (propagate_some_info_from_allocno)
9667 (copy_info_to_removed_store_destinations): Handle
9668 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9669 * ira-costs.c (ira_tune_allocno_costs): Use
9670 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
9671
9672 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9673 Tom de Vries <tom@codesourcery.com>
9674
9675 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
9676 and function_used_regs_valid fields.
9677 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
9678 find_all_hard_reg_sets.
9679 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
9680 (get_call_reg_set_usage): New function.
9681 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
9682 * regs.h (get_call_reg_set_usage): Declare.
9683
9684 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9685
9686 PR libgcc/61152
9687 * config/dbx.h (License): Add Runtime Library Exception.
9688 * config/newlib-stdint.h (License): Same.
9689 * config/rtems.h (License): Same
9690 * config/initfini-array.h (License): Same
9691 * config/v850/v850.h (License): Same.
9692 * config/v850/v850-opts.h (License): Same
9693 * config/v850/rtems.h (License): Same.
9694
9695 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9696
9697 PR target/61044
9698 * doc/extend.texi (Local Labels): Note that label differences are
9699 not supported for AVR.
9700
9701 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9702 Olivier Hainque <hainque@adacore.com>
9703
9704 * rtl.h (set_for_reg_notes): Declare.
9705 * emit-rtl.c (set_for_reg_notes): New function.
9706 (set_unique_reg_note): Use it.
9707 * optabs.c (add_equal_note): Likewise
9708
9709 2014-05-27 Andrew Pinski <apinski@cavium.com>
9710
9711 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
9712 Use <w> for the register in assembly template.
9713 (stack_protect_test): Use the mode of operands[0] for the result.
9714 (stack_protect_test_<mode>): Use <w> for the register
9715 in assembly template.
9716
9717 2014-05-27 DJ Delorie <dj@redhat.com>
9718
9719 * config/rx/rx.c (add_vector_labels): New.
9720 (rx_output_function_prologue): Call it.
9721 (rx_handle_func_attribute): Don't require empty arguments.
9722 (rx_handle_vector_attribute): New.
9723 (rx_attribute_table): Add "vector" attribute.
9724 * doc/extend.texi (interrupt, vector): Document new/changed
9725 RX-specific attributes.
9726
9727 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
9728
9729 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9730
9731 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
9732 predicate to detect a negative quotient.
9733
9734 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9735
9736 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
9737 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
9738 Add X - Y CMP 0 to X CMP Y transformation.
9739 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
9740
9741 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
9742
9743 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
9744 before printing.
9745
9746 2014-05-27 Steve Ellcey <sellcey@mips.com>
9747
9748 * config/mips/mips.c: Add include of cgraph.h.
9749
9750 2014-05-27 Richard Biener <rguenther@suse.de>
9751
9752 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
9753
9754 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9755
9756 PR libgcc/61152
9757 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
9758 * config/arm/arm-cores.def (License): Same.
9759 * config/arm/arm-opts.h (License): Same.
9760 * config/arm/aout.h (License): Same.
9761 * config/arm/bpabi.h (License): Same.
9762 * config/arm/elf.h (License): Same.
9763 * config/arm/linux-elf.h (License): Same.
9764 * config/arm/linux-gas.h (License): Same.
9765 * config/arm/netbsd-elf.h (License): Same.
9766 * config/arm/uclinux-eabi.h (License): Same.
9767 * config/arm/uclinux-elf.h (License): Same.
9768 * config/arm/vxworks.h (License): Same.
9769
9770 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9771
9772 * config/arm/neon.md (neon_bswap<mode>): New pattern.
9773 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
9774 (arm_init_neon_builtins): Handle NEON_BSWAP.
9775 Define required type nodes.
9776 (arm_expand_neon_builtin): Handle NEON_BSWAP.
9777 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
9778 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
9779 * config/arm/iterators.md (VDQHSD): New mode iterator.
9780
9781 2014-05-27 Richard Biener <rguenther@suse.de>
9782
9783 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9784 Try using literal operands when comparing value-ranges failed.
9785
9786 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9787
9788 * ira.c (commutative_operand): Adjust for change to recog_data.
9789 [Missing from previous commit.]
9790
9791 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9792
9793 * system.h (TEST_BIT): New macro.
9794 * recog.h (alternative_mask): New type.
9795 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
9796 (recog_data_d): Replace alternative_enabled_p array with
9797 enabled_alternatives.
9798 (target_recog): New structure.
9799 (default_target_recog, this_target_recog): Declare.
9800 (get_enabled_alternatives, recog_init): Likewise.
9801 * recog.c (default_target_recog, this_target_recog): New variables.
9802 (get_enabled_alternatives): New function.
9803 (extract_insn): Use it.
9804 (recog_init): New function.
9805 (preprocess_constraints, constrain_operands): Adjust for change to
9806 recog_data.
9807 * postreload.c (reload_cse_simplify_operands): Likewise.
9808 * reload.c (find_reloads): Likewise.
9809 * ira-costs.c (record_reg_classes): Likewise.
9810 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
9811 all alternatives after a disabled one would be skipped.
9812 (ira_implicitly_set_insn_hard_regs): Likewise.
9813 * ira.c (ira_setup_alts): Adjust for change to recog_data.
9814 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
9815 with enabled_alternatives.
9816 * lra.c (free_insn_recog_data): Update accordingly.
9817 (lra_update_insn_recog_data): Likewise.
9818 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
9819 * lra-constraints.c (process_alt_operands): Likewise. Handle
9820 only_alternative as part of the enabled mask.
9821 * target-globals.h (this_target_recog): Declare.
9822 (target_globals): Add a recog field.
9823 (restore_target_globals): Restore this_target_recog.
9824 * target-globals.c: Include recog.h.
9825 (default_target_globals): Initialize recog field.
9826 (save_target_globals): Likewise.
9827 * reginfo.c (reinit_regs): Call recog_init.
9828 * toplev.c (backend_init_target): Likewise.
9829
9830 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9831
9832 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
9833 rather than any named insn's code.
9834
9835 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9836
9837 PR libgcc/61152
9838 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
9839 * config/arm/arm-cores.def (License): Same.
9840
9841 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
9842
9843 * tree.h (decl_comdat_group): Declare.
9844 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
9845 * tree.c (decl_comdat_group): Here.
9846
9847 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
9848
9849 PR rtl-optimization/61222
9850 * combine.c (simplify_shift_const_1): When moving a PLUS outside
9851 the shift, truncate the PLUS operand to the result mode.
9852
9853 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
9854
9855 PR target/61271
9856 * config/i386/i386.c (ix86_rtx_costs)
9857 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
9858 Fix condition.
9859
9860 2014-05-26 Martin Jambor <mjambor@suse.cz>
9861
9862 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
9863 subreg uses.
9864
9865 2014-05-26 Richard Biener <rguenther@suse.de>
9866
9867 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
9868 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
9869 Provide specializations.
9870 (wi::int_traits <HOST_WIDE_INT>,
9871 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
9872
9873 2014-05-26 Alan Modra <amodra@gmail.com>
9874
9875 PR target/61098
9876 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
9877 params and return a bool. Remove dead code. Update comment.
9878 Assert we have a const_int source. Remove bogus code from
9879 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
9880 handling of constants > 2G and reg_equal note, from..
9881 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
9882 return value. Update comment. If we can, use a new pseudo
9883 for intermediate calculations.
9884 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
9885 prototype.
9886 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
9887 call to rs6000_emit_set_const in splitter.
9888 (movdi_internal64+2, +3): Likewise.
9889
9890 2014-05-26 Richard Biener <rguenther@suse.de>
9891
9892 * system.h: Define __STDC_FORMAT_MACROS before
9893 including inttypes.h.
9894 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
9895 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
9896 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
9897 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
9898 HOST_WIDEST_INT_C): Remove.
9899 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
9900 if C99 inttypes.h is not available.
9901 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
9902 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
9903 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
9904 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
9905 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
9906 (struct output_info): Likewise.
9907 (print_statistics): Adjust.
9908 (dump_bitmap_statistics): Likewise.
9909 * bt-load.c (migrate_btr_defs): Print with PRId64.
9910 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
9911 (MAX_SAFE_MULTIPLIER): Adjust.
9912 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
9913 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
9914 dump_cgraph_node): Likewise.
9915 * final.c (dump_basic_block_info): Likewise.
9916 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
9917 * gcov.c (format_gcov): Likewise.
9918 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
9919 for calculation.
9920 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
9921 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
9922 (inline_small_functions, dump_overall_stats, dump_inline_stats):
9923 Use PRId64 for dumping.
9924 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
9925 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
9926 (add_allocno_hard_regs): Adjust.
9927 * loop-doloop.c (doloop_modify): Print using PRId64.
9928 * loop-iv.c (inverse): Compute in uint64_t.
9929 (determine_max_iter, iv_number_of_iterations): Likewise.
9930 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
9931 Print using PRId64.
9932 * lto-streamer-out.c (write_symbol): Use uint64_t.
9933 * mcf.c (CAP_INFINITY): Use int64_t maximum.
9934 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
9935 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
9936 * modulo-sched.c (const_iteration_count): Use int64_t.
9937 (sms_schedule): Dump using PRId64.
9938 * predict.c (dump_prediction): Likewise.
9939 * pretty-print.h (pp_widest_integer): Remove.
9940 * profile.c (get_working_sets, is_edge_inconsistent,
9941 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
9942 * tree-pretty-print.c (pp_double_int): Remove case handling
9943 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
9944 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
9945 and adjust users.
9946 (pass_optimize_bswap::execute): Remove restriction on hosts.
9947 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
9948 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
9949 * tree.c (widest_int_cst_value): Remove.
9950 * tree.h (widest_int_cst_value): Likewise.
9951 * value-prof.c (dump_histogram_value): Print using PRId64.
9952 * gengtype.c (main): Also inject int64_t.
9953 * ggc-page.c (struct max_alignment): Use int64_t.
9954 * alloc-pool.c (struct allocation_object_def): Likewise.
9955 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
9956 for computation.
9957 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
9958 * doc/tm.texi: Regenerated.
9959 * gengtype-lex.l (IWORD): Handle [u]int64_t.
9960 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
9961 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
9962 mmix_output_register_setting): Use [u]int64_t in prototypes.
9963 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
9964 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
9965 mmix_output_octa, mmix_output_shifted_value): Adjust.
9966 (mmix_intval): Adjust. Remove unreachable case.
9967 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
9968
9969 2014-05-26 Richard Biener <rguenther@suse.de>
9970
9971 * configure.ac: Drop __int64 type check. Insist that we
9972 found uint64_t and int64_t.
9973 * hwint.h (HOST_BITS_PER___INT64): Remove.
9974 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
9975 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
9976 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
9977 (HOST_WIDEST_FAST_INT): Remove __int64 case.
9978 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
9979 for dst_q_src_df_rms_cdt.
9980 * configure: Regenerate.
9981 * config.in: Likewise.
9982
9983 2014-05-26 Michael Tautschnig <mt@debian.org>
9984
9985 PR target/61249
9986 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
9987 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
9988
9989 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9990
9991 PR rtl-optimization/61278
9992 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
9993
9994 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9995
9996 PR rtl-optimization/61220
9997 Part of PR rtl-optimization/61225
9998 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
9999 insn; skip split_edge for a block with only one successor.
10000
10001 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10002
10003 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
10004 for variables.
10005
10006 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10007
10008 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
10009 (update_vtable_references): New function.
10010 (function_and_variable_visibility): Rewrite also vtable initializers.
10011 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
10012
10013 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10014
10015 * ggc.h (ggc_grow): New function.
10016 * ggc-none.c (ggc_grow): New function.
10017 * ggc-page.c (ggc_grow): Likewise.
10018
10019 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10020
10021 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
10022 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
10023 comdat_can_be_unshared_p, cgraph_externally_visible_p,
10024 varpool_externally_visible_p, can_replace_by_local_alias,
10025 update_visibility_by_resolution_info, function_and_variable_visibility,
10026 pass_data_ipa_function_and_variable_visibility,
10027 make_pass_ipa_function_and_variable_visibility,
10028 whole_program_function_and_variable_visibility,
10029 pass_data_ipa_whole_program_visibility,
10030 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
10031 * cgraph.h (cgraph_local_node_p): Declare.
10032 * ipa-visibility.c: New file.
10033 * Makefile.in (OBJS): Add ipa-visiblity.o
10034
10035 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10036
10037 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
10038 that var decl is available.
10039
10040 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10041
10042 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
10043 symtab_node pointer.
10044 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
10045 (find_decls_types_r): Do not walk COMDAT_GROUP.
10046 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
10047 * varasm.c (make_decl_one_only): Use set_comdat_group;
10048 create node if needed.
10049 * ipa-inline-transform.c (save_inline_function_body): Update
10050 way we decl->symtab mapping.
10051 * symtab.c (symtab_hash, hash_node, eq_node
10052 symtab_insert_node_to_hashtable): Remove.
10053 (symtab_register_node): Update.
10054 (symtab_unregister_node): Update.
10055 (symtab_get_node): Reimplement as inline function.
10056 (symtab_add_to_same_comdat_group): Update.
10057 (symtab_dissolve_same_comdat_group_list): Update.
10058 (dump_symtab_base): Update.
10059 (verify_symtab_base): Update.
10060 (symtab_make_decl_local): Update.
10061 (fixup_same_cpp_alias_visibility): Update.
10062 (symtab_nonoverwritable_alias): Update.
10063 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
10064 * ipa.c (update_visibility_by_resolution_info): UPdate.
10065 * bb-reorder.c: Include cgraph.h
10066 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
10067 with comdat groups.
10068 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
10069 * cgraph.c (cgraph_get_create_node): Update.
10070 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
10071 and comdat_group_.
10072 (symtab_get_node): Make inline.
10073 (symtab_insert_node_to_hashtable): Remove.
10074 (symtab_can_be_discarded): Update.
10075 (decl_comdat_group): New function.
10076 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
10077 Update.
10078 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
10079 comdat group name.
10080 (read_comdat_group): New function.
10081 (input_node, input_varpool_node): Use it.
10082 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
10083 comdat groups.
10084 * mips.c (mips_start_unique_function): Likewise.
10085 (ix86_code_end): Likewise.
10086 (rs6000_code_end): Likweise.
10087 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
10088
10089 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10090
10091 * gengtype-state.c (fatal_reading_state): Bring offline.
10092 * optabs.c (widening_optab_handler): Bring offline.
10093 * optabs.h (widening_optab_handler): Likewise.
10094 * final.c (get_attr_length_1): Likewise.
10095
10096 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10097
10098 * sched-int.h (sd_iterator_cond): Manually tail recurse.
10099
10100 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10101
10102 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
10103 (ppc440-compare): Include shift with dot.
10104 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
10105 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
10106 without dot.
10107 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
10108 without dot.
10109 (e6500_sfx2): Include it.
10110 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
10111 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
10112 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
10113 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
10114 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
10115 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
10116 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
10117 *lshiftrt_internal1le, *lshiftrt_internal1be,
10118 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
10119 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
10120 *rotldi3_internal10le, *rotldi3_internal10be,
10121 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
10122 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
10123 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
10124 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
10125 define_insns): Use type "shift" in the appropriate alternatives.
10126
10127 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10128
10129 * config/rs6000/rs6000.md (type): Add "logical". Delete
10130 "fast_compare".
10131 (dot): Adjust comment.
10132 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
10133 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
10134 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
10135 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
10136 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
10137 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
10138 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
10139 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
10140
10141 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10142 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
10143 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10144 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10145 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10146 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10147 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10148 * config/rs6000/8540.md (ppc8540_su): Adjust.
10149 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10150 cell-cmp-microcoded): Adjust.
10151 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
10152 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10153 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
10154 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
10155 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
10156 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10157 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
10158 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
10159 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
10160 Adjust.
10161 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
10162 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
10163 Adjust. Adjust comment.
10164 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10165 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
10166
10167 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10168
10169 * config/rs6000/rs6000.md (type): Add "add".
10170 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
10171 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
10172 define_insns): Use it.
10173 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
10174
10175 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10176 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
10177 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10178 * config/rs6000/601.md (ppc601-integer): Adjust.
10179 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10180 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10181 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10182 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10183 * config/rs6000/8540.md (ppc8540_su): Adjust.
10184 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10185 cell-cmp-microcoded): Adjust.
10186 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
10187 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10188 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
10189 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
10190 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
10191 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10192 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
10193 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
10194 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
10195 Adjust.
10196 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
10197 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
10198 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10199 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
10200
10201 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10202
10203 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
10204 "delayed_compare", "var_delayed_compare".
10205 (var_shift): New attribute.
10206 (cell_micro): Adjust.
10207 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
10208 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
10209 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
10210 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10211 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10212 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10213 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10214 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
10215 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
10216 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
10217 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
10218 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
10219 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
10220 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
10221 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
10222 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
10223 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
10224 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
10225 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
10226 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
10227 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
10228 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
10229 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
10230 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10231 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10232
10233 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10234 * config/rs6000/440.md (ppc440-integer): Adjust.
10235 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10236 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
10237 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10238 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10239 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10240 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10241 * config/rs6000/8540.md (ppc8540_su): Adjust.
10242 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10243 cell-cmp-microcoded): Adjust.
10244 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
10245 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10246 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
10247 e500mc64_delayed): Adjust.
10248 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
10249 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
10250 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10251 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
10252 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
10253 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
10254 power6-delayed-compare, power6-var-delayed-compare): Adjust.
10255 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
10256 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
10257 Adjust comment.
10258 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10259 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
10260
10261 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10262
10263 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
10264 (bits): New mode_attr.
10265 (idiv_ldiv): Delete mode_attr.
10266 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
10267 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10268 rs6000_adjust_priority, is_nonpipeline_insn,
10269 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10270
10271 * config/rs6000/40x.md (ppc403-idiv): Adjust.
10272 * config/rs6000/440.md (ppc440-idiv): Adjust.
10273 * config/rs6000/476.md (ppc476-idiv): Adjust.
10274 * config/rs6000/601.md (ppc601-idiv): Adjust.
10275 * config/rs6000/603.md (ppc603-idiv): Adjust.
10276 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
10277 ppc620-ldiv): Adjust.
10278 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
10279 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
10280 * config/rs6000/8540.md (ppc8540_divide): Adjust.
10281 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
10282 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
10283 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
10284 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
10285 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
10286 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
10287 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
10288 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
10289 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
10290 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
10291 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
10292 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
10293 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
10294 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
10295 * config/rs6000/titan.md (titan_fxu_div): Adjust.
10296
10297 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10298
10299 * config/rs6000/rs6000.md (type): Delete "insert_word",
10300 "insert_dword". Add "insert".
10301 (size): Update comment.
10302 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10303 insn_must_be_first_in_group): Adjust.
10304 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
10305 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
10306 *insvsi_internal6, insvdi_internal): Adjust.
10307
10308 * config/rs6000/40x.md (ppc403-integer): Adjust.
10309 * config/rs6000/440.md (ppc440-integer): Adjust.
10310 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
10311 * config/rs6000/601.md (ppc601-integer): Adjust.
10312 * config/rs6000/603.md (ppc603-integer): Adjust.
10313 * config/rs6000/6xx.md (ppc604-integer): Adjust.
10314 * config/rs6000/7450.md (ppc7450-integer): Adjust.
10315 * config/rs6000/7xx.md (ppc750-integer): Adjust.
10316 * config/rs6000/8540.md (ppc8540_su): Adjust.
10317 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
10318 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
10319 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10320 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
10321 * config/rs6000/e5500.md (e5500_sfx): Adjust.
10322 * config/rs6000/e6500.md (e6500_sfx): Adjust.
10323 * config/rs6000/mpc.md (mpccore-integer): Adjust.
10324 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
10325 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
10326 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
10327 * config/rs6000/power7.md (power7-integer): Adjust.
10328 * config/rs6000/power8.md (power8-1cyc): Adjust.
10329 * config/rs6000/rs64.md (rs64a-integer): Adjust.
10330 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
10331
10332 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10333
10334 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
10335 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
10336 (size): New attribute.
10337 (dot): New attribute.
10338 (cell_micro): Adjust.
10339 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
10340 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
10341 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
10342 umuldi3_highpart): Adjust.
10343 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10344 rs6000_adjust_priority, is_nonpipeline_insn,
10345 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10346
10347 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
10348 ppc405-imul3): Adjust.
10349 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
10350 * config/rs6000/476.md (ppc476-imul): Adjust.
10351 * config/rs6000/601.md (ppc601-imul): Adjust.
10352 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
10353 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
10354 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
10355 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
10356 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
10357 Adjust.
10358 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
10359 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
10360 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
10361 cell-imul): Adjust.
10362 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
10363 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
10364 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
10365 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
10366 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
10367 * config/rs6000/mpc.md (mpccore-imul): Adjust.
10368 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
10369 power4-lmul, power4-imul, power4-imul3): Adjust.
10370 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
10371 power5-lmul, power5-imul, power5-imul3): Adjust.
10372 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
10373 power6-lmul, power6-imul, power6-imul3): Adjust.
10374 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
10375 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
10376
10377 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
10378 rs64a-lmul): Adjust.
10379 * config/rs6000/titan.md (titan_imul): Adjust.
10380
10381 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10382
10383 * config/rs6000/rs6000.md (type): Add new value "halfmul".
10384 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
10385 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
10386 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
10387 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
10388 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
10389 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
10390 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
10391 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
10392 * config/rs6000/titan.md: Delete nonsensical comment.
10393 (titan_imul): Add type imul3.
10394 (titan_mulhw): Remove type imul3; add type halfmul.
10395
10396 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10397
10398 * config/rs6000/rs6000.md (type): Reorder, reformat.
10399
10400 2014-05-23 Martin Jambor <mjambor@suse.cz>
10401
10402 PR tree-optimization/53787
10403 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
10404 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
10405 analysis_done, update all uses.
10406 * ipa-prop.c: Include domwalk.h
10407 (param_analysis_info): Removed.
10408 (param_aa_status): New type.
10409 (ipa_bb_info): Likewise.
10410 (func_body_info): Likewise.
10411 (ipa_get_bb_info): New function.
10412 (aa_overwalked): Likewise.
10413 (find_dominating_aa_status): Likewise.
10414 (parm_bb_aa_status_for_bb): Likewise.
10415 (parm_preserved_before_stmt_p): Changed to use new param AA info.
10416 (load_from_unmodified_param): Accept func_body_info as a parameter
10417 instead of parms_ainfo.
10418 (parm_ref_data_preserved_p): Changed to use new param AA info.
10419 (parm_ref_data_pass_through_p): Likewise.
10420 (ipa_load_from_parm_agg_1): Likewise. Update callers.
10421 (compute_complex_assign_jump_func): Changed to use new param AA info.
10422 (compute_complex_ancestor_jump_func): Likewise.
10423 (ipa_compute_jump_functions_for_edge): Likewise.
10424 (ipa_compute_jump_functions): Removed.
10425 (ipa_compute_jump_functions_for_bb): New function.
10426 (ipa_analyze_indirect_call_uses): Likewise, moved variable
10427 declarations down.
10428 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
10429 and info, moved variable declarations down.
10430 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
10431 node and info.
10432 (ipa_analyze_stmt_uses): Likewise.
10433 (ipa_analyze_params_uses): Removed.
10434 (ipa_analyze_params_uses_in_bb): New function.
10435 (ipa_analyze_controlled_uses): Likewise.
10436 (free_ipa_bb_info): Likewise.
10437 (analysis_dom_walker): New class.
10438 (ipa_analyze_node): Handle node-specific forbidden analysis,
10439 initialize and free func_body_info, use dominator walker.
10440 (ipcp_modif_dom_walker): New class.
10441 (ipcp_transform_function): Create and free func_body_info, use
10442 ipcp_modif_dom_walker, moved a lot of functionality there.
10443
10444 2014-05-23 Marek Polacek <polacek@redhat.com>
10445 Jakub Jelinek <jakub@redhat.com>
10446
10447 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
10448 * gcc.c (sanitize_spec_function): Likewise.
10449 * convert.c (convert_to_integer): Include "ubsan.h". Add
10450 floating-point to integer instrumentation.
10451 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
10452 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
10453 SANITIZE_NONDEFAULT.
10454 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
10455 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
10456 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
10457 * ubsan.c: Include "realmpfr.h" and "dfp.h".
10458 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
10459 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
10460 float/double/long double.
10461 (ubsan_instrument_float_cast): New function.
10462 * ubsan.h (ubsan_instrument_float_cast): Declare.
10463
10464 2014-05-23 Jiong Wang <jiong.wang@arm.com>
10465
10466 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
10467 predicate.
10468 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
10469 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
10470 Adjust for tailcalling through registers.
10471 * config/aarch64/aarch64.h (enum reg_class): New caller save
10472 register class.
10473 (REG_CLASS_NAMES): Likewise.
10474 (REG_CLASS_CONTENTS): Likewise.
10475 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
10476 Allow tailcalling without decls.
10477
10478 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10479
10480 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10481 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
10482
10483 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
10484 gsi, and variables v_* to v*.
10485
10486 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
10487
10488 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
10489
10490 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10491
10492 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
10493 * omp-low.c: Update accordingly.
10494
10495 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
10496 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
10497 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
10498 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
10499 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
10500 GF_OMP_TARGET_KIND_UPDATE.
10501
10502 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10503 Explicitly enumerate the expected region types.
10504
10505 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
10506
10507 PR other/56955
10508 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
10509 documentation; the old documentation didn't clearly state the
10510 constraints on the contents of the pointed-to storage.
10511
10512 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10513
10514 Fix bootstrap error on ia64
10515 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
10516 Return default value.
10517
10518 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
10519
10520 PR tree-optimization/54733
10521 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
10522 (CMPNOP): Define.
10523 (find_bswap_or_nop_load): New.
10524 (find_bswap_1): Renamed to ...
10525 (find_bswap_or_nop_1): This. Also add support for memory source.
10526 (find_bswap): Renamed to ...
10527 (find_bswap_or_nop): This. Also add support for memory source and
10528 detection of bitwise operations equivalent to load in target
10529 endianness.
10530 (execute_optimize_bswap): Likewise. Also move its leading comment back
10531 in place and split statement transformation into ...
10532 (bswap_replace): This.
10533
10534 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10535
10536 PR rtl-optimization/61215
10537 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
10538 simplify_gen_subreg until final substitution.
10539
10540 2014-05-23 Alan Modra <amodra@gmail.com>
10541
10542 PR target/61231
10543 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
10544 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
10545 Use "Y" constraint rather than "m".
10546
10547 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10548
10549 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
10550 define.
10551 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
10552 New function declaration.
10553 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
10554 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
10555 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
10556 (aarch64_init_builtins) : Initialize builtins
10557 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10558 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10559 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
10560 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
10561 and __builtins_aarch64_set_fpsr.
10562 (aarch64_atomic_assign_expand_fenv): New function.
10563 * config/aarch64/aarch64.md (set_fpcr): New pattern.
10564 (get_fpcr) : Likewise.
10565 (set_fpsr) : Likewise.
10566 (get_fpsr) : Likewise.
10567 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
10568 and UNSPECV_SET_FPSR.
10569 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10570 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10571 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10572
10573 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10574
10575 PR rtl-optimization/60969
10576 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
10577 constraints. Set up mem cost for NO_REGS case.
10578
10579 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10580
10581 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
10582
10583 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
10584
10585 * config/darwin.c: Include "lto-section-names.h".
10586 (LTO_SEGMENT_NAME): Don't define.
10587 * config/i386/winnt.c: Include "lto-section-names.h".
10588 * lto-streamer.c: Include "lto-section-names.h".
10589 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
10590 * lto-wrapper.c: Include "lto-section-names.h".
10591 (LTO_SECTION_NAME_PREFIX): Don't define.
10592 * lto-section-names.h: New file.
10593 * cgraphunit.c: Include "lto-section-names.h".
10594
10595 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
10596
10597 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
10598
10599 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
10600
10601 PR target/61208
10602 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
10603
10604 2014-05-22 Nick Clifton <nickc@redhat.com>
10605
10606 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
10607
10608 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
10609
10610 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
10611 -> (T)A transformation to integer types.
10612
10613 2014-05-22 Teresa Johnson <tejohnson@google.com>
10614
10615 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
10616 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
10617 (gcov_rewrite): Use gcov_nonruntime_assert.
10618 (gcov_open): Ditto.
10619 (gcov_write_words): Ditto.
10620 (gcov_write_length): Ditto.
10621 (gcov_read_words): Use gcov_nonruntime_assert, and remove
10622 gcc_assert from IN_LIBGCOV code.
10623 (gcov_read_summary): Use gcov_error to flag profile corruption.
10624 (gcov_sync): Use gcov_nonruntime_assert.
10625 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
10626 (gcov_histo_index): Use gcov_nonruntime_assert.
10627 (static void gcov_histogram_merge): Ditto.
10628 (compute_working_sets): Ditto.
10629 * gcov-io.h (gcov_nonruntime_assert): Define.
10630 (gcov_error): Define for !IN_LIBGCOV
10631
10632 2014-05-22 Richard Biener <rguenther@suse.de>
10633
10634 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10635 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
10636 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
10637 and deallocation site.
10638 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10639 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
10640 passing through the incoming points-to set.
10641 (handle_lhs_call): Use flags argument instead of recomputing it.
10642 (find_func_aliases_for_call): Call handle_lhs_call with proper
10643 call return flags.
10644
10645 2014-05-22 Jakub Jelinek <jakub@redhat.com>
10646
10647 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
10648 all padding bits in REAL_VALUE_TYPE are cleared.
10649
10650 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10651
10652 Cleanup and improve multipass_dfa_lookahead_guard
10653 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
10654 (core2i7_first_cycle_multipass_begin,)
10655 (core2i7_first_cycle_multipass_issue,)
10656 (core2i7_first_cycle_multipass_backtrack): Update signature.
10657 * config/ia64/ia64.c
10658 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
10659 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
10660 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
10661 hook definition.
10662 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
10663 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
10664 values.
10665 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
10666 return values.
10667 * doc/tm.texi: Regenerate.
10668 * doc/tm.texi.in
10669 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
10670 * haifa-sched.c (ready_try): Make signed to allow negative values.
10671 (rebug_ready_list_1): Update.
10672 (choose_ready): Simplify.
10673 (sched_extend_ready_list): Update.
10674
10675 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10676
10677 Remove IA64 speculation tweaking flags
10678 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
10679 speculation tuning flags.
10680 (msched-prefer-non-data-spec-insns,)
10681 (msched-prefer-non-control-spec-insns): Obsolete options.
10682 * haifa-sched.c (choose_ready): Remove handling of
10683 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10684 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
10685 and PREFER_NON_DATA_SPEC.
10686 * sel-sched.c (process_spec_exprs): Remove handling of
10687 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10688
10689 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10690
10691 Improve scheduling debug output
10692 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
10693 (advance_one_cycle): Update.
10694 (schedule_insn, queue_to_ready): Add debug printouts.
10695 (debug_ready_list_1): New static function.
10696 (debug_ready_list): Update.
10697 (max_issue): Add debug printouts.
10698 (dump_insn_stream): New static function.
10699 (schedule_block): Use it. Also better indent printouts.
10700
10701 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10702
10703 Fix sched_insn debug counter
10704 * haifa-sched.c (schedule_insn): Update.
10705 (struct haifa_saved_data): Add nonscheduled_insns_begin.
10706 (save_backtrack_point, restore_backtrack_point): Update.
10707 (first_nonscheduled_insn): New static function.
10708 (queue_to_ready, choose_ready): Use it.
10709 (schedule_block): Init nonscheduled_insns_begin.
10710 (sched_emit_insn): Update.
10711
10712
10713 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
10714
10715 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
10716 to GENERAL_REGS.
10717 (aarch64_secondary_reload) : LikeWise.
10718 (aarch64_class_max_nregs) : Remove CORE_REGS.
10719 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
10720 (REG_CLASS_NAMES) : Likewise.
10721 (REG_CLASS_CONTENTS) : LikeWise.
10722 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
10723
10724 2014-05-21 Guozhi Wei <carrot@google.com>
10725
10726 PR target/61202
10727 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
10728 constraint.
10729 (vqdmulhq_n_s16): Likewise.
10730
10731 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10732
10733 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
10734
10735 2014-05-21 Marek Polacek <polacek@redhat.com>
10736
10737 PR sanitizer/61272
10738 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
10739
10740 2014-05-21 Martin Jambor <mjambor@suse.cz>
10741
10742 * doc/invoke.texi (Optimize Options): Document parameters
10743 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
10744 ipa-cp-array-index-hint-bonus.
10745
10746 2014-05-21 Mark Wielaard <mjw@redhat.com>
10747
10748 PR debug/16063
10749 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
10750 version >= 3 or not strict DWARF.
10751 * langhooks.h (struct lang_hooks_for_types): Add
10752 enum_underlying_base_type.
10753 * langhooks.c (lhd_enum_underlying_base_type): New function.
10754 * gcc/langhooks.h (struct lang_hooks_for_types): Add
10755 enum_underlying_base_type.
10756 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
10757 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
10758 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
10759
10760 2014-05-21 Richard Biener <rguenther@suse.de>
10761
10762 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
10763
10764 2014-05-21 John Marino <gnugcc@marino.st>
10765
10766 * config.gcc (*-*-dragonfly*): New target.
10767 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
10768 * configure: Regenerate.
10769 * config/dragonfly-stdint.h: New.
10770 * config/dragonfly.h: New.
10771 * config/dragonfly.opt: New.
10772 * config/i386/dragonfly.h: New.
10773 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
10774
10775 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10776
10777 * tree.def (VOID_CST): New.
10778 * tree-core.h (TI_VOID): New.
10779 * tree.h (void_node): New.
10780 * tree.c (tree_node_structure_for_code, tree_code_size)
10781 (iterative_hash_expr): Handle VOID_CST.
10782 (build_common_tree_nodes): Initialize void_node.
10783
10784 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
10785
10786 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
10787 functions.
10788 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
10789
10790 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
10791 more places.
10792
10793 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
10794 flag_reorder_blocks_and_partition.
10795 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
10796
10797 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
10798
10799 PR target/54236
10800 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
10801 constraints.
10802 (*addc_r_t): Add new insn_and_split.
10803
10804 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10805
10806 PR middle-end/61252
10807 * omp-low.c (handle_simd_reference): New function.
10808 (lower_rec_input_clauses): Use it. Defer adding reference
10809 initialization even for reduction without placeholder if in simd,
10810 handle it properly later on.
10811
10812 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10813
10814 PR tree-optimization/60899
10815 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
10816 assume all static symbols will have definition wile parsing and
10817 check the do have definition later in compilation; check that
10818 variable referring symbol will be output before concluding that
10819 reference is safe; be conservative for referring local statics;
10820 be more precise about when comdat is output in other partition.
10821
10822 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10823
10824 PR bootstrap/60984
10825 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
10826 parameter.
10827 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
10828 (ipa_inline): Loop inline_to_all_callers until no more aliases
10829 are removed.
10830
10831 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10832
10833 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
10834 set writeonly flag only for vars actually written to.
10835
10836 2014-05-20 Dehao Chen <dehao@google.com>
10837
10838 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
10839 and callee count to get clone count.
10840 * tree-inline.c (expand_call_inline): Use callee count instead of bb
10841 count in copy_body.
10842
10843 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10844
10845 PR rtl-optimization/61243
10846 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
10847
10848 2014-05-20 Xinliang David Li <davidxl@google.com>
10849
10850 * cgraphunit.c (walk_polymorphic_call_targets): Add
10851 dbgcnt and fopt-info support.
10852 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
10853 * ipa-devirt.c (ipa_devirt): Ditto.
10854 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
10855 * ipa.c (walk_polymorphic_call_targets): Ditto.
10856 * gimple-fold.c (fold_gimple_assign): Ditto.
10857 (gimple_fold_call): Ditto.
10858 * dbgcnt.def: New counter.
10859
10860 2014-05-20 DJ Delorie <dj@redhat.com>
10861
10862 * config/msp430/msp430.md (split): Don't allow subregs when
10863 splitting SImode adds.
10864 (andneghi): Fix subtraction logic.
10865 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
10866
10867 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10868
10869 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
10870 symbols.
10871 * except.c (switch_to_exception_section, resolve_unique_section,
10872 get_named_text_section, default_function_rodata_section,
10873 align_variable, get_block_for_decl, default_section_type_flags):
10874 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
10875 * symtab.c (symtab_add_to_same_comdat_group,
10876 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
10877 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
10878 Likewise.
10879 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
10880 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
10881 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
10882 (c6x_function_in_section_p): Likewise.
10883 * config/darwin.c (machopic_select_section): Likewise.
10884 * config/arm/arm.c (arm_function_in_section_p): Likewise.
10885 * config/mips/mips.c (mips_function_rodata_section): Likewise.
10886 * config/mep/mep.c (mep_select_section): LIkewise.
10887 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
10888
10889 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
10890
10891 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
10892 EH region of calls to pure functions that can throw an exception.
10893 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
10894 (copy_reference_ops_from_call): Also copy the EH region of the call if
10895 it can throw an exception.
10896
10897 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10898
10899 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
10900 nested VEC_SELECTs that are inverses of each other.
10901
10902 2014-05-20 Richard Biener <rguenther@suse.de>
10903
10904 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
10905 (extract_and_process_scc_for_name): not here.
10906 (cond_dom_walker::before_dom_children): Only process
10907 stmts that end the BB in interesting ways.
10908 (run_scc_vn): Mark param uses as visited.
10909
10910 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10911
10912 * config/arm/arm.md (arith_shiftsi): Do not predicate for
10913 arm_restrict_it.
10914
10915 2014-05-20 Nick Clifton <nickc@redhat.com>
10916
10917 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
10918 (msp430_gimplify_va_arg_expr): New function.
10919 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
10920
10921 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
10922 operand 0 in order to prevent confusion about the number of
10923 registers involved.
10924
10925 2014-05-20 Richard Biener <rguenther@suse.de>
10926
10927 PR tree-optimization/61221
10928 * tree-ssa-pre.c (el_to_update): Remove.
10929 (eliminate_dom_walker::before_dom_children): Handle released
10930 VDEFs by value-numbering them to the associated VUSE. Update
10931 stmt immediately for substituted call address.
10932 (eliminate): Remove delayed stmt updating code.
10933 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
10934 possibly late re-numbered vuses.
10935 (vn_reference_lookup_2): Adjust.
10936 (vn_reference_lookup_pieces): Likewise.
10937 (vn_reference_lookup): Likewise.
10938
10939 2014-05-20 Richard Biener <rguenther@suse.de>
10940
10941 * config.gcc: Remove need_64bit_hwint.
10942 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
10943 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
10944 it to be true.
10945 * config.in: Regenerate.
10946 * configure: Likewise.
10947
10948 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
10949
10950 * doc/extend.texi: Create Label Attributes section,
10951 move all label attributes into it and reference it.
10952
10953 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
10954
10955 * arm.c (thumb1_reorg): When scanning backwards skip anything
10956 that's not a proper insn.
10957
10958 2014-05-19 Richard Biener <rguenther@suse.de>
10959
10960 PR tree-optimization/61221
10961 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10962 Do nothing for unreachable blocks.
10963 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
10964 Improve unreachability detection.
10965
10966 2014-05-19 Richard Biener <rguenther@suse.de>
10967
10968 PR tree-optimization/61209
10969 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
10970
10971 2014-05-19 Nick Clifton <nickc@redhat.com>
10972
10973 * except.c (init_eh): Fix computation of builtin setjmp buffer
10974 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
10975
10976 2014-05-19 Richard Biener <rguenther@suse.de>
10977
10978 PR tree-optimization/61184
10979 * tree-vrp.c (is_negative_overflow_infinity): Use
10980 TREE_OVERFLOW_P and do that check first.
10981 (is_positive_overflow_infinity): Likewise.
10982 (is_overflow_infinity): Likewise.
10983 (vrp_operand_equal_p): Properly treat operands with
10984 differing overflow as not equal.
10985
10986 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
10987
10988 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
10989 shift simplification where it was intended.
10990
10991 2014-05-19 Christian Bruel <christian.bruel@st.com>
10992
10993 PR target/61195
10994 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
10995
10996 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
10997
10998 PR target/61084
10999 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
11000 than wide_int.
11001
11002 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
11003
11004 * reg-notes.def (CROSSING_JUMP): Likewise.
11005 * rtl.h (rtx_def): Update comment for jump flag.
11006 (CROSSING_JUMP_P): Define.
11007 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
11008 of a REG_CROSSING_JUMP note.
11009 * cfghooks.c (tidy_fallthru_edges): Likewise.
11010 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
11011 * emit-rtl.c (try_split): Likewise.
11012 * haifa-sched.c (sched_create_recovery_edges): Likewise.
11013 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
11014 * jump.c (redirect_jump_2): Likewise.
11015 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
11016 (relax_delay_slots): Likewise.
11017 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
11018 (bbit_di): Likewise.
11019 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
11020 * config/sh/sh.md (jump_compact): Likewise.
11021 * bb-reorder.c (rotate_loop): Likewise.
11022 (pass_duplicate_computed_gotos::execute): Likewise.
11023 (add_reg_crossing_jump_notes): Rename to...
11024 (update_crossing_jump_flags): ...this.
11025 (pass_partition_blocks::execute): Update accordingly.
11026
11027 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
11028
11029 * tree.h: Remove extraneous template <>.
11030
11031 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11032
11033 * ipa.c (symtab_remove_unreachable_nodes): Remove
11034 symbol from comdat group if its body was eliminated.
11035 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
11036 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
11037 (symtab_unregister_node): ... this one.
11038 (verify_symtab_base): More strict checking of comdats.
11039 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
11040
11041 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11042
11043 * tree-pass.h (make_pass_ipa_comdats): New pass.
11044 * timevar.def (TV_IPA_COMDATS): New timevar.
11045 * passes.def (pass_ipa_comdats): Add.
11046 * Makefile.in (OBJS): Add ipa-comdats.o
11047 * ipa-comdats.c: New file.
11048
11049 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11050
11051 * ipa.c (update_visibility_by_resolution_info): New function.
11052 (function_and_variable_visibility): Use it.
11053
11054 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11055
11056 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
11057 New functions.
11058 (FOR_EACH_DEFINED_SYMBOL): New macro.
11059 (varpool_first_static_initializer, varpool_next_static_initializer,
11060 varpool_first_defined_variable, varpool_next_defined_variable):
11061 Fix comments.
11062 (symtab_in_same_comdat_p): Correctly deal with inline functions.
11063
11064 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11065
11066 * ggc-page.c (ggc_handle_finalizers): Add comment.
11067
11068 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11069
11070 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
11071 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
11072 (ggc_internal_cleared_alloc): Likewise.
11073 * ggc-page.c (finalizer): New class.
11074 (vec_finalizer): Likewise.
11075 (globals::finalizers): New member.
11076 (globals::vec_finalizers): Likewise.
11077 (ggc_internal_alloc): Record the finalizer if any for the block being
11078 allocated.
11079 (ggc_handle_finalizers): New function.
11080 (ggc_collect): Call ggc_handle_finalizers.
11081 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
11082 finalizer.
11083 (ggc_internal_cleared_alloc): Likewise.
11084 (finalize): New function.
11085 (need_finalization_p): Likewise.
11086 (ggc_alloc): Install the type's destructor as the finalizer if it
11087 might do something.
11088 (ggc_cleared_alloc): Likewise.
11089 (ggc_vec_alloc): Likewise.
11090 (ggc_cleared_vec_alloc): Likewise.
11091
11092 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11093
11094 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
11095
11096 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11097
11098 * alias.c (record_alias_subset): Adjust.
11099 * bitmap.c (bitmap_element_allocate): Likewise.
11100 (bitmap_gc_alloc_stat): Likewise.
11101 * cfg.c (init_flow): Likewise.
11102 (alloc_block): Likewise.
11103 (unchecked_make_edge): Likewise.
11104 * cfgloop.c (alloc_loop): Likewise.
11105 (flow_loops_find): Likewise.
11106 (rescan_loop_exit): Likewise.
11107 * cfgrtl.c (init_rtl_bb_info): Likewise.
11108 * cgraph.c (insert_new_cgraph_node_version): Likewise.
11109 (cgraph_allocate_node): Likewise.
11110 (cgraph_create_edge_1): Likewise.
11111 (cgraph_allocate_init_indirect_info): Likewise.
11112 * cgraphclones.c (cgraph_clone_edge): Likewise.
11113 * cgraphunit.c (add_asm_node): Likewise.
11114 (init_lowered_empty_function): Likewise.
11115 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
11116 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
11117 (alpha_use_linkage): Likewise.
11118 * config/arc/arc.c (arc_init_machine_status): Likewise.
11119 * config/arm/arm.c (arm_init_machine_status): Likewise.
11120 * config/avr/avr.c (avr_init_machine_status): Likewise.
11121 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
11122 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
11123 * config/cris/cris.c (cris_init_machine_status): Likewise.
11124 * config/darwin.c (machopic_indirection_name): Likewise.
11125 (darwin_build_constant_cfstring): Likewise.
11126 (darwin_enter_string_into_cfstring_table): Likewise.
11127 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
11128 * config/frv/frv.c (frv_init_machine_status): Likewise.
11129 * config/i386/i386.c (get_dllimport_decl): Likewise.
11130 (ix86_init_machine_status): Likewise.
11131 (assign_386_stack_local): Likewise.
11132 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
11133 (i386_pe_maybe_record_exported_symbol): Likewise.
11134 (i386_pe_record_stub): Likewise.
11135 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
11136 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
11137 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
11138 (m32c_note_pragma_address): Likewise.
11139 * config/mep/mep.c (mep_init_machine_status): Likewise.
11140 (mep_note_pragma_flag): Likewise.
11141 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
11142 (mips16_local_alias): Likewise.
11143 (mips_init_machine_status): Likewise.
11144 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
11145 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
11146 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
11147 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
11148 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
11149 * config/pa/pa.c (pa_init_machine_status): Likewise.
11150 (pa_get_deferred_plabel): Likewise.
11151 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
11152 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
11153 (rs6000_init_machine_status): Likewise.
11154 (output_toc): Likewise.
11155 * config/s390/s390.c (s390_init_machine_status): Likewise.
11156 * config/score/score.c (score_output_external): Likewise.
11157 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
11158 * config/spu/spu.c (spu_init_machine_status): Likewise.
11159 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
11160 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
11161 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11162 * coverage.c (coverage_end_function): Likewise.
11163 * dbxout.c (dbxout_init): Likewise.
11164 * doc/gty.texi: Don't mention variable_size attribute.
11165 * dwarf2cfi.c (new_cfi): Adjust.
11166 (new_cfi_row): Likewise.
11167 (copy_cfi_row): Likewise.
11168 (create_cie_data): Likewise.
11169 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
11170 (new_loc_descr): Likewise.
11171 (find_AT_string_in_table): Likewise.
11172 (add_addr_table_entry): Likewise.
11173 (new_die): Likewise.
11174 (add_var_loc_to_decl): Likewise.
11175 (clone_die): Likewise.
11176 (clone_as_declaration): Likewise.
11177 (break_out_comdat_types): Likewise.
11178 (new_loc_list): Likewise.
11179 (add_loc_descr_to_each): Likewise.
11180 (add_location_or_const_value_attribute): Likewise.
11181 (add_linkage_name): Likewise.
11182 (lookup_filename): Likewise.
11183 (dwarf2out_var_location): Likewise.
11184 (new_line_info_table): Likewise.
11185 (dwarf2out_init): Likewise.
11186 (mem_loc_descriptor): Likewise.
11187 (loc_descriptor): Likewise.
11188 (add_const_value_attribute): Likewise.
11189 (tree_add_const_value_attribute): Likewise.
11190 (comp_dir_string): Likewise.
11191 (dwarf2out_vms_debug_main_pointer): Likewise.
11192 (string_cst_pool_decl): Likewise.
11193 * emit-rtl.c (set_mem_attrs): Likewise.
11194 (get_reg_attrs): Likewise.
11195 (start_sequence): Likewise.
11196 (init_emit): Likewise.
11197 (init_emit_regs): Likewise.
11198 * except.c (init_eh_for_function): Likewise.
11199 (gen_eh_region): Likewise.
11200 (gen_eh_region_catch): Likewise.
11201 (gen_eh_landing_pad): Likewise.
11202 (add_call_site): Likewise.
11203 * function.c (add_frame_space): Likewise.
11204 (insert_temp_slot_address): Likewise.
11205 (assign_stack_temp_for_type): Likewise.
11206 (get_hard_reg_initial_val): Likewise.
11207 (allocate_struct_function): Likewise.
11208 (prepare_function_start): Likewise.
11209 (types_used_by_var_decl_insert): Likewise.
11210 * gengtype.c (variable_size_p): Remove function.
11211 (enum alloc_quantity): Remove enum.
11212 (write_typed_alloc_def): Remove function.
11213 (write_typed_struct_alloc_def): Likewise.
11214 (write_typed_typedef_alloc_def): Likewise.
11215 (write_typed_alloc_defns): Likewise.
11216 (main): Adjust.
11217 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
11218 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
11219 * ggc.h (ggc_alloc): new function.
11220 (ggc_cleared_alloc): Likewise.
11221 (ggc_vec_alloc): Template on type of vector element, and remove
11222 element size argument.
11223 (ggc_cleared_vec_alloc): Likewise.
11224 * gimple.c (gimple_build_omp_for): Adjust.
11225 (gimple_copy): Likewise.
11226 * ipa-cp.c (get_replacement_map): Likewise.
11227 (find_aggregate_values_for_callers_subset): Likewise.
11228 (known_aggs_to_agg_replacement_list): Likewise.
11229 * ipa-devirt.c (get_odr_type): Likewise.
11230 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
11231 (read_agg_replacement_chain): Likewise.
11232 * loop-iv.c (get_simple_loop_desc): Likewise.
11233 * lto-cgraph.c (input_node_opt_summary): Likewise.
11234 * lto-section-in.c (lto_new_in_decl_state): Likewise.
11235 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
11236 (input_eh_region): Likewise.
11237 (input_eh_lp): Likewise.
11238 (input_cfg): Likewise.
11239 * optabs.c (set_optab_libfunc): Likewise.
11240 (init_tree_optimization_optabs): Likewise.
11241 (set_conv_libfunc): Likewise.
11242 * passes.c (do_per_function_toporder): Likewise.
11243 * rtl.h: Don't use variable_size gty attribute.
11244 * sese.c (if_region_set_false_region): Adjust.
11245 * stringpool.c (gt_pch_save_stringpool): Likewise.
11246 * target-globals.c (save_target_globals): Likewise.
11247 * toplev.c (general_init): Likewise.
11248 * trans-mem.c (record_tm_replacement): Likewise.
11249 (split_bb_make_tm_edge): Likewise.
11250 * tree-cfg.c (move_sese_region_to_fn): Likewise.
11251 * tree-data-ref.h (lambda_vector_new): Likewise.
11252 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
11253 * tree-iterator.c (tsi_link_before): Likewise.
11254 (tsi_link_after): Likewise.
11255 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
11256 * tree-ssa-loop-niter.c (record_estimate): Likewise.
11257 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
11258 * tree-ssa-operands.h: Don't use variable_size gty attribute.
11259 * tree-ssa.c (init_tree_ssa): Adjust.
11260 * tree-ssanames.c (set_range_info): Likewise.
11261 (get_ptr_info): Likewise.
11262 (duplicate_ssa_name_ptr_info): Likewise.
11263 (duplicate_ssa_name_range_info): Likewise.
11264 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
11265 (unpack_ts_fixed_cst_value_fields): Likewise.
11266 * tree.c (build_fixed): Likewise.
11267 (build_real): Likewise.
11268 (build_string): Likewise.
11269 (decl_priority_info): Likewise.
11270 (decl_debug_expr_insert): Likewise.
11271 (decl_value_expr_insert): Likewise.
11272 (decl_debug_args_insert): Likewise.
11273 (type_hash_add): Likewise.
11274 (build_omp_clause): Likewise.
11275 * ubsan.c (decl_for_type_insert): Likewise.
11276 * varasm.c (get_unnamed_section): Likewise.
11277 (get_noswitch_section): Likewise.
11278 (get_section): Likewise.
11279 (get_block_for_section): Likewise.
11280 (create_block_symbol): Likewise.
11281 (build_constant_desc): Likewise.
11282 (create_constant_pool): Likewise.
11283 (force_const_mem): Likewise.
11284 (record_tm_clone_pair): Likewise.
11285 * varpool.c (varpool_create_empty_node): Likewise.
11286
11287 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11288
11289 * dwarf2out.c (tree_add_const_value_attribute): Call
11290 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
11291 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
11292 instead of ggc_internal_<x>alloc_stat.
11293 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
11294 (ggc_realloc): Likewise.
11295 * ggc-none.c (ggc_internal_alloc): Likewise.
11296 (ggc_internal_cleared_alloc): Likewise.
11297 * ggc-page.c: Likewise.
11298 * ggc.h (ggc_internal_alloc_stat): Likewise.
11299 (ggc_internal_alloc): Remove macro.
11300 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
11301 (ggc_internal_cleared_alloc): Remove macro.
11302 (GGC_RESIZEVEC): Adjust.
11303 (ggc_resizevar): Remove macro.
11304 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
11305 (ggc_internal_cleared_vec_alloc_stat): Likewise.
11306 (ggc_internal_vec_cleared_alloc): Remove macro.
11307 (ggc_alloc_atomic_stat): Drop _stat suffix.
11308 (ggc_alloc_atomic): Remove macro.
11309 (ggc_alloc_cleared_atomic): Remove macro.
11310 (ggc_alloc_string_stat): Drop _stat suffix.
11311 (ggc_alloc_string): Remove macro.
11312 (ggc_alloc_rtx_def_stat): Adjust.
11313 (ggc_alloc_tree_node_stat): Likewise.
11314 (ggc_alloc_cleared_tree_node_stat): Likewise.
11315 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
11316 (ggc_alloc_cleared_simd_clone_stat): Likewise.
11317 * gimple.c (gimple_build_omp_for): Likewise.
11318 (gimple_copy): Likewise.
11319 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
11320 * toplev.c (realloc_for_line_map): Adjust.
11321 * tree-data-ref.h (lambda_vector_new): Likewise.
11322 * tree-phinodes.c (allocate_phi_node): Likewise.
11323 * tree.c (grow_tree_vec_stat): Likewise.
11324 * vec.h (va_gc::reserve): Adjust.
11325
11326 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
11327
11328 * config/microblaze/microblaze.c (break_handler): New Declaration.
11329 (microblaze_break_function_p,microblaze_is_break_handler): New.
11330 (compute_frame_size): Use microblaze_break_function_p.
11331 Add the test of break_handler.
11332 (microblaze_function_prologue) : Add the test of variable
11333 break_handler. Check the fnname by BREAK_HANDLER_NAME.
11334 (microblaze_function_epilogue) : Add the test of break_handler.
11335 (microblaze_globalize_label) : Add the test of break_handler.
11336 Check the name by BREAK_HANDLER_NAME.
11337
11338 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
11339
11340 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
11341 microblaze_is_break_handler test.
11342 (call_internal1,call_value_intern): Use microblaze_break_function_p.
11343 Use SYMBOL_REF_DECL.
11344
11345 * config/microblaze/microblaze-protos.h
11346 (microblaze_break_function_p,microblaze_is_break_handler):
11347 New Declaration.
11348
11349 * doc/extend.texi (MicroBlaze break_handler Functions): Document
11350 new MicroBlaze break_handler functions.
11351
11352 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11353
11354 * doc/extend.texi (Size of an asm): Move node text according
11355 to its @menu entry position.
11356
11357 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
11358
11359 PR tree-optimization/61140
11360 PR tree-optimization/61150
11361 PR tree-optimization/61197
11362 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
11363
11364 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11365
11366 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
11367
11368 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
11369
11370 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
11371 __SIZEOF_INT128__ is defined.
11372
11373 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11374
11375 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
11376 (rs6000_delegitimize_address): Use it.
11377
11378 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11379
11380 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
11381 inplace argument. Store the new address in the original MEM when true.
11382 * emit-rtl.c (change_address_1): Likewise.
11383 (adjust_address_1, adjust_automodify_address_1, offset_address):
11384 Update accordingly.
11385 * rtl.h (plus_constant): Add an inplace argument.
11386 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
11387 when true. Avoid generating (plus X (const_int 0)).
11388 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
11389 in-place. Pass true to plus_constant.
11390 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
11391
11392 2014-05-16 Dehao Chen <dehao@google.com>
11393
11394 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
11395
11396 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11397
11398 PR target/54089
11399 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
11400 patterns.
11401 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
11402
11403 2014-05-16 Dehao Chen <dehao@google.com>
11404
11405 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
11406 optimize_function_for_size_p.
11407 * regs.h (REG_FREQ_FROM_BB): Likewise.
11408
11409 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11410
11411 PR target/51244
11412 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
11413 negt_reg_operand cases.
11414 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
11415 predicate.
11416 * config/sh/predicates.md (cbranch_treg_value): Simplify.
11417
11418 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11419
11420 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
11421 target variants.
11422
11423 2014-05-16 David Malcolm <dmalcolm@redhat.com>
11424
11425 Revert:
11426 2014-04-29 David Malcolm <dmalcolm@redhat.com>
11427
11428 * tree-cfg.c (dump_function_to_file): Dump the return type of
11429 functions, in a line to itself before the function body, mimicking
11430 the layout of a C function.
11431
11432 2014-05-16 Dehao Chen <dehao@google.com>
11433
11434 * cfghooks.c (make_forwarder_block): Use direct computation to
11435 get fall-through edge's count and frequency.
11436
11437 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
11438
11439 * config/arc/arc.c (arc_init): Fix typo in error message.
11440 * config/i386/i386.c (ix86_expand_builtin): Likewise.
11441 (split_stack_prologue_scratch_regno): Likewise.
11442 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
11443 word from error message.
11444
11445 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11446
11447 * ira-costs.c: Fix typo in comment.
11448
11449 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
11450
11451 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
11452
11453 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
11454
11455 * varpool.c (dump_varpool_node): Dump write-only flag.
11456 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
11457 write-only flag.
11458 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
11459 write-only variables.
11460 * ipa.c (process_references): New function.
11461 (set_readonly_bit): New function.
11462 (set_writeonly_bit): New function.
11463 (clear_addressable_bit): New function.
11464 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
11465 fix handling of aliases.
11466 * cgraph.h (struct varpool_node): Add writeonly flag.
11467
11468 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
11469
11470 PR rtl-optimization/60969
11471 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
11472 Calculate costs for this case.
11473
11474 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
11475
11476 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
11477 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
11478
11479 2014-05-16 Richard Biener <rguenther@suse.de>
11480
11481 PR tree-optimization/61194
11482 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
11483 bool patterns ending in a COND_EXPR.
11484
11485 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11486
11487 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
11488
11489 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11490
11491 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
11492 where we were unable to cost an RTX.
11493
11494 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11495
11496 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
11497 HIGH, LO_SUM.
11498
11499 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11500 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11501
11502 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
11503
11504 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11505 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11506
11507 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
11508 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
11509
11510 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11511 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11512
11513 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
11514 operators.
11515
11516 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11517 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11518
11519 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11520 DIV/MOD.
11521
11522 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11523 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11524
11525 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
11526 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
11527
11528 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11529 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11530
11531 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11532 rotates and shifts.
11533
11534 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11535 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11536
11537 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
11538 ZERO_EXTEND and SIGN_EXTEND better.
11539
11540 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11541 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11542
11543 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
11544 logical operations.
11545
11546 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11547 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11548
11549 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
11550 costs when costing loads and stores to memory.
11551
11552 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11553 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
11554
11555 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
11556 for SET RTX.
11557
11558 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11559
11560 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
11561
11562 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11563 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11564
11565 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
11566 to...
11567 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
11568 well formed.
11569 (aarch64_rtx_mult_cost): New.
11570 (aarch64_rtx_costs): Use it, refactor as appropriate.
11571
11572 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11573 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11574
11575 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
11576 emit instructions, return number of instructions which would
11577 be emitted.
11578 (aarch64_add_constant): Update call to aarch64_build_constant.
11579 (aarch64_output_mi_thunk): Likewise.
11580 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
11581 a CONST_DOUBLE.
11582
11583 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11584
11585 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
11586 (TARGET_RTX_COSTS): Call it.
11587
11588 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11589
11590 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
11591 (cortexa57_vector_cost): Likewise.
11592 (cortexa57_tunings): Use them.
11593
11594 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11595
11596 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
11597 (cpu_addrcost_table): Use it.
11598 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
11599 (aarch64_address_cost): Rewrite using aarch64_classify_address,
11600 move it.
11601
11602 2014-05-16 Richard Biener <rguenther@suse.de>
11603
11604 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
11605 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
11606 (visit_phi): Ignore edges marked as not executable.
11607 (class cond_dom_walker): New.
11608 (cond_dom_walker::before_dom_children): Value-number
11609 control statements and mark successor edges as not
11610 executable if possible.
11611 (run_scc_vn): First walk all control statements in
11612 dominator order, marking edges as not executable.
11613 * tree-inline.c (copy_edges_for_bb): Be not confused
11614 about random edge flags.
11615
11616 2014-05-16 Richard Biener <rguenther@suse.de>
11617
11618 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
11619
11620 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
11621
11622 PR target/61193
11623 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
11624 (__TM_simple_begin): Use it.
11625 (__TM_begin): Likewise.
11626
11627 2014-05-15 Martin Jambor <mjambor@suse.cz>
11628
11629 PR ipa/61085
11630 * ipa-prop.c (update_indirect_edges_after_inlining): Check
11631 type_preserved flag when the indirect edge is polymorphic.
11632
11633 2014-05-15 Martin Jambor <mjambor@suse.cz>
11634
11635 PR tree-optimization/61090
11636 * tree-sra.c (sra_modify_expr): Pass the current gsi to
11637 build_ref_for_model.
11638
11639 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11640
11641 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
11642 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
11643
11644 2014-05-15 Jakub Jelinek <jakub@redhat.com>
11645
11646 PR tree-optimization/61158
11647 * fold-const.c (fold_binary_loc): If X is zero-extended and
11648 shiftc >= prec, make sure zerobits is all ones instead of
11649 invoking undefined behavior.
11650
11651 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11652
11653 * regcprop.h: New file.
11654 * regcprop.c (skip_debug_insn_p): New decl.
11655 (replace_oldest_value_reg): Check skip_debug_insn_p.
11656 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
11657 * shrink-wrap.c: Include regcprop.h.
11658 (prepare_shrink_wrap): Call
11659 copyprop_hardreg_forward_bb_without_debug_insn.
11660
11661 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11662
11663 * shrink-wrap.h: Update comment.
11664 * shrink-wrap.c: Update comment.
11665 (next_block_for_reg): Rename to live_edge_for_reg.
11666 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
11667 (move_insn_for_shrink_wrap): Split live_edge.
11668 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
11669
11670 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11671
11672 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
11673 Delete.
11674 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
11675 * config/sparc/sparc.md (fptype_ut699): New attribute.
11676 (in_branch_delay): Return false if -mfix-ut699 is specified and
11677 fptype_ut699 is set to single.
11678 (truncdfsf2): Add fptype_ut699 attribute.
11679 (fix_truncdfsi2): Likewise.
11680 (floatsisf2): Change fptype attribute.
11681 (fix_truncsfsi2): Likewise.
11682 (negtf2_notv9): Delete.
11683 (negtf2_v9): Likewise.
11684 (negtf2_hq): New instruction.
11685 (negtf2): New instruction and splitter.
11686 (negdf2_notv9): Rewrite.
11687 (abstf2_notv9): Delete.
11688 (abstf2_hq_v9): Likewise.
11689 (abstf2_v9): Likewise.
11690 (abstf2_hq): New instruction.
11691 (abstf2): New instruction and splitter.
11692 (absdf2_notv9): Rewrite.
11693
11694 2014-05-14 Cary Coutant <ccoutant@google.com>
11695
11696 PR debug/61013
11697 * opts.c (common_handle_option): Don't special-case "-g".
11698 (set_debug_level): Default to at least level 2 with "-g".
11699
11700 2014-05-14 DJ Delorie <dj@redhat.com>
11701
11702 * config/msp430/msp430.c (msp430_builtin): Add
11703 MSP430_BUILTIN_DELAY_CYCLES.
11704 (msp430_init_builtins): Register void __delay_cycles(long long).
11705 (msp430_builtin_decl): Add it.
11706 (cg_magic_constant): New.
11707 (msp430_expand_delay_cycles): New.
11708 (msp430_expand_builtin): Call it.
11709 (msp430_print_operand_raw): Change integer printing from "int" to
11710 HOST_WIDE_INT.
11711 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
11712 (delay_cycles_start): New.
11713 (delay_cycles_end): New.
11714 (delay_cycles_32): New.
11715 (delay_cycles_32x): New.
11716 (delay_cycles_16): New.
11717 (delay_cycles_16x): New.
11718 (delay_cycles_2): New.
11719 (delay_cycles_1): New.
11720 * doc/extend.texi: Document __delay_cycles().
11721
11722 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
11723
11724 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
11725 length attribute computation.
11726
11727 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
11728
11729 PR debug/61188
11730 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
11731
11732 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
11733
11734 PR target/61084
11735 * config/sparc/sparc.md: Fix types of low and high in DI constant
11736 splitter. Use gen_int_mode in some other splitters.
11737
11738 2014-05-14 Martin Jambor <mjambor@suse.cz>
11739
11740 PR ipa/60897
11741 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
11742
11743 2014-05-14 James Norris <jnorris@codesourcery.com>
11744
11745 * omp-low.c (expand_parallel_call): Remove shadow variable.
11746 (expand_omp_taskreg): Likewise.
11747
11748 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
11749
11750 * common/config/i386/i386-common.c
11751 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
11752 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
11753 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
11754 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
11755 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
11756 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
11757 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
11758 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
11759 xsavecintrin.h, xsavesintrin.h.
11760 (x86_64-*-*): Ditto.
11761 * config/i386/clflushoptintrin.h: New.
11762 * config/i386/xsavecintrin.h: Ditto.
11763 * config/i386/xsavesintrin.h: Ditto.
11764 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
11765 (bit_XSAVES): Ditto.
11766 (bit_XSAVES): Ditto.
11767 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
11768 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
11769 -mno-clflushopt.
11770 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11771 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
11772 OPTION_MASK_ISA_XSAVES.
11773 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
11774 -mxsavec, -mxsaves.
11775 (PTA_CLFLUSHOPT) Define.
11776 (PTA_XSAVEC): Ditto.
11777 (PTA_XSAVES): Ditto.
11778 (ix86_option_override_internal): Handle new options.
11779 (ix86_valid_target_attribute_inner_p): Ditto.
11780 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
11781 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
11782 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
11783 (bdesc_special_args): Add __builtin_ia32_xsaves,
11784 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
11785 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
11786 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
11787 (ix86_expand_builtin): Handle new builtins.
11788 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
11789 (TARGET_CLFLUSHOPT_P): Ditto.
11790 (TARGET_XSAVEC): Ditto.
11791 (TARGET_XSAVEC_P): Ditto.
11792 (TARGET_XSAVES): Ditto.
11793 (TARGET_XSAVES_P): Ditto.
11794 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
11795 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
11796 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
11797 (ANY_XRSTOR): New.
11798 (ANY_XRSTOR64): Ditto.
11799 (xrstor): Ditto.
11800 (xrstor): Change into <xrstor>.
11801 (xrstor_rex64): Change into <xrstor>_rex64.
11802 (xrstor64): Change into <xrstor>64
11803 (clflushopt): New.
11804 * config/i386/i386.opt (mclflushopt): New.
11805 (mxsavec): Ditto.
11806 (mxsaves): Ditto.
11807 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
11808 xsavecintrin.h.
11809 * doc/invoke.texi: Document new options.
11810
11811 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11812
11813 PR rtl-optimization/60866
11814 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
11815 Default it to -1. Pass it down to init_simplejump_data.
11816 (init_simplejump_data): New parameter old_seqno. Pass it down
11817 to get_seqno_for_a_jump.
11818 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
11819 initializing new jump seqno as a last resort. Add comment.
11820 (sel_redirect_edge_and_branch): Save old seqno of the conditional
11821 jump and pass it down to sel_init_new_insn.
11822 (sel_redirect_edge_and_branch_force): Likewise.
11823
11824 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
11825
11826 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
11827 shifted values to avoid build warning.
11828
11829 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11830
11831 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
11832 * cfgrtl.c (rtl_merge_blocks): Fix comment.
11833 (cfg_layout_merge_blocks): Likewise.
11834 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
11835
11836 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11837
11838 PR rtl-optimization/60901
11839 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
11840 bb predecessor belongs to the same scheduling region. Adjust comment.
11841
11842 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
11843
11844 * doc/sourcebuild.texi: (dfp_hw): Document.
11845 (p8vector_hw): Likewise.
11846 (powerpc_eabi_ok): Likewise.
11847 (powerpc_elfv2): Likewise.
11848 (powerpc_htm_ok): Likewise.
11849 (ppc_recip_hw): Likewise.
11850 (vsx_hw): Likewise.
11851
11852 2014-05-13 Cary Coutant <ccoutant@google.com>
11853
11854 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
11855
11856 2014-05-13 David Malcolm <dmalcolm@redhat.com>
11857
11858 * gengtype-parse.c (require3): Eliminate in favor of...
11859 (require4): New.
11860 (require_template_declaration): Update to support optional single *
11861 on a type.
11862
11863 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
11864 (create_user_defined_type): Handle a single level of explicit
11865 pointerness within template arguments.
11866 (struct write_types_data): Add field "kind".
11867 (filter_type_name): Handle "*" character.
11868 (write_user_func_for_structure_ptr): Require a write_types_data
11869 rather than just a prefix string, so that we can look up the kind
11870 of the wtd and use it as an index into wrote_user_func_for_ptr,
11871 ensuring that such functions are written at most once. Support
11872 subclasses by invoking the marking function of the ultimate base class.
11873 (write_user_func_for_structure_body): Require a write_types_data
11874 rather than just a prefix string, so that we can pass this to
11875 write_user_func_for_structure_ptr.
11876 (write_func_for_structure): Likewise.
11877 (ggc_wtd): Add initializer of new "kind" field.
11878 (pch_wtd): Likewise.
11879
11880 * gengtype.h (enum write_types_kinds): New.
11881 (struct type): Add field wrote_user_func_for_ptr to the "s"
11882 union member.
11883
11884 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11885
11886 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
11887 instead of const_binop.
11888 (fold_binary_loc): Likewise.
11889
11890 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11891
11892 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
11893 calculation to match get_ref_base_and_extent.
11894
11895 2014-05-13 Catherine Moore <clm@codesourcery.com>
11896 Sandra Loosemore <sandra@codesourcery.com>
11897
11898 * configure.ac: Fix assembly for explicit JALR relocation check.
11899 * configure: Regenerate.
11900
11901 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11902
11903 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
11904 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
11905 Remove associated type declarations and initialisations.
11906 (arm_expand_neon_builtin): Likewise.
11907 (neon_emit_pair_result_insn): Delete.
11908 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
11909 * config/arm/neon.md (neon_vtrn<mode>): Delete.
11910 (neon_vzip<mode>): Likewise.
11911 (neon_vuzp<mode>): Likewise.
11912
11913 2014-05-13 Richard Biener <rguenther@suse.de>
11914
11915 PR ipa/60973
11916 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
11917 it needs revisiting whether the call still may be tail-called.
11918
11919 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11920
11921 * rtl.def (SYMBOL_REF): Remove middle "0" field.
11922 * rtl.h (block_symbol): Reduce number of fields to 2.
11923 (rtx_def): Add u2.symbol_ref_flags.
11924 (SYMBOL_REF_FLAGS): Use it.
11925 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
11926 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
11927 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
11928 Lower index of SYMBOL_REF_DATA.
11929 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
11930 Print SYMBOL_REF_FLAGS at the same time.
11931 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
11932
11933 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11934
11935 * rtl.def (VAR_LOCATION): Remove "i" field.
11936 * rtl.h (rtx_def): Add u2.var_location_status.
11937 (PAT_VAR_LOCATION_STATUS): Use it.
11938 (gen_rtx_VAR_LOCATION): Declare.
11939 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
11940 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
11941 * var-tracking.c (emit_note_insn_var_location): Remove casts.
11942
11943 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11944
11945 * rtl.def (scratch): Fix outdated comment and remove "0" field.
11946 * gengtype.c (adjust_field_rtx_def): Update accordingly.
11947
11948 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11949
11950 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
11951 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
11952 * rtl.h (rtx_def): Add insn_uid to u2 field.
11953 (RTX_FLAG_CHECK8): Delete in favor of...
11954 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
11955 (INSN_DELETED_P): Update accordingly.
11956 (INSN_UID): Use u2.insn_uid.
11957 (INSN_CHAIN_CODE_P): Define.
11958 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
11959 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
11960 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
11961 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
11962 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
11963 indices accordingly.
11964 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
11965 Update indices for insn-chain rtxes.
11966 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
11967 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
11968 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
11969 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
11970 * combine.c (try_combine): Likewise.
11971 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11972
11973 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11974
11975 * rtl.def (REG): Remove middle field.
11976 * rtl.h (rtx_def): Add orignal_regno to u2.
11977 (ORIGINAL_REGNO): Use it instead of field 1.
11978 (REG_ATTRS): Lower field index accordingly.
11979 * gengtype.c (adjust_field_rtx_def): Remove handling of
11980 ORIGINAL_REGNO. Move REG_ATTRS index down.
11981 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
11982 code that prints the REGNO.
11983
11984 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11985
11986 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
11987 GENERATOR_FILE.
11988
11989 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11990
11991 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
11992
11993 2014-05-13 Bin Cheng <bin.cheng@arm.com>
11994
11995 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
11996 (alloc_iv): Lower base expressions containing ADDR_EXPR.
11997
11998 2014-05-13 Ian Bolton <ian.bolton@arm.com>
11999
12000 * config/aarch64/aarch64-protos.h
12001 (aarch64_hard_regno_caller_save_mode): New prototype.
12002 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
12003 New function.
12004 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
12005
12006 2014-05-13 Christian Bruel <christian.bruel@st.com>
12007
12008 * target.def (mode_switching): New hook vector.
12009 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
12010 (mode_exit, modepriority_to_mode): Likewise.
12011 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
12012 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12013 * target.h: Include tm.h and hard-reg-set.h.
12014 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
12015 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
12016 * doc/tm.texi Regenerate.
12017 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
12018 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12019 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
12020 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
12021 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
12022 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12023 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
12024 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
12025 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
12026 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
12027 (ix86_emit_mode_set): Hookify.
12028 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
12029 Delete.
12030 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12031 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
12032 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
12033 (epiphany_mode_priority_to_mode): Remove declaration.
12034 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
12035 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
12036 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
12037 Likewise.
12038 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
12039 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
12040 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
12041
12042 2014-05-13 Jakub Jelinek <jakub@redhat.com>
12043
12044 PR target/61060
12045 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
12046 is const0_rtx, return immediately. Don't test count == 0 when
12047 it is always true.
12048
12049 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12050
12051 * Makefile.in: add shrink-wrap.o.
12052 * config/i386/i386.c: include "shrink-wrap.h"
12053 * function.c: Likewise.
12054 (requires_stack_frame_p, next_block_for_reg,
12055 move_insn_for_shrink_wrap, prepare_shrink_wrap,
12056 dup_block_and_redirect): Move to shrink-wrap.c
12057 (thread_prologue_and_epilogue_insns): Extract three code segments
12058 as functions in shrink-wrap.c
12059 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
12060 shrink-wrap.h
12061 * shrink-wrap.c: New file.
12062 * shrink-wrap.h: New file.
12063
12064 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
12065
12066 * doc/extend.texi: Reflect current numbers of pragmas. Remove
12067 reference to Solaris.
12068
12069 2014-05-12 Mike Stump <mikestump@comcast.net>
12070
12071 PR other/31778
12072 * genattrtab.c (filename): Add.
12073 (convert_set_attr_alternative): Improve error message.
12074 (check_defs): Restore read_md_filename for error messages.
12075 (gen_insn): Save filename.
12076
12077 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
12078
12079 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
12080 -fno-local-ivars and -fivar-visibility.
12081 * c-family/c.opt: Make -Wshadow also implicitly enable
12082 -Wshadow-ivar.
12083
12084 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
12085
12086 * doc/tm.texi: Remove reference to deleted macro.
12087 * doc/tm.texi.in: Likewise.
12088
12089 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12090
12091 PR target/60991
12092 * config/avr/avr.c (avr_out_store_psi): Use correct constant
12093 to restore Y.
12094
12095 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
12096
12097 PR libgcc/61152
12098 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
12099 * config/arm/aout.h (License): Same.
12100 * config/arm/bpabi.h (License): Same.
12101 * config/arm/elf.h (License): Same.
12102 * config/arm/linux-elf.h (License): Same.
12103 * config/arm/linux-gas.h (License): Same.
12104 * config/arm/netbsd-elf.h (License): Same.
12105 * config/arm/uclinux-eabi.h (License): Same.
12106 * config/arm/uclinux-elf.h (License): Same.
12107 * config/arm/vxworks.h (License): Same.
12108
12109 2014-05-11 Jakub Jelinek <jakub@redhat.com>
12110
12111 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
12112 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
12113 number of operands to 3.
12114 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
12115 * tree-nested.c (convert_nonlocal_omp_clauses,
12116 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
12117 * gimplify.c (gimplify_scan_omp_clauses): Handle
12118 OMP_CLAUSE_LINEAR_STMT.
12119 * omp-low.c (lower_rec_input_clauses): Fix typo.
12120 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
12121 cast between Fortran boolean_type_node and C _Bool if
12122 needed.
12123
12124 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
12125
12126 PR tree-optimization/61136
12127 * wide-int.h (multiple_of_p): Define a version that doesn't return
12128 the quotient.
12129 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
12130 integer_zerop/const_binop pair.
12131 (multiple_of_p): Likewise, converting both operands to widest_int
12132 precision.
12133
12134 2014-05-09 Teresa Johnson <tejohnson@google.com>
12135
12136 * cgraphunit.c (analyze_functions): Use correct dump file.
12137
12138 2014-05-09 Florian Weimer <fweimer@redhat.com>
12139
12140 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
12141 expand_used_vars.
12142 (stack_protect_return_slot_p): New function.
12143 (expand_used_vars): Call stack_protect_decl_p and
12144 stack_protect_return_slot_p for -fstack-protector-strong.
12145
12146 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
12147 Andrew Haley <aph@redhat.com>
12148 Richard Sandiford <rdsandiford@googlemail.com>
12149
12150 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
12151 pages.
12152
12153 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
12154
12155 PR middle-end/61111
12156 * fold-const.c (fold_binary_loc): Changed width of mask.
12157
12158 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
12159
12160 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
12161 unsigned int initializers for regno_in, regno_out.
12162
12163 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
12164
12165 PR target/61055
12166 * config/avr/avr.md (cc): Add new attribute set_vzn.
12167 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
12168 Set cc insn attribute to set_vzn instead of set_zn for alternatives
12169 with INC, DEC or NEG.
12170 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
12171 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
12172 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
12173
12174 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12175
12176 Revert:
12177 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12178
12179 * wide-int.cc (UTItype): Define.
12180 (UDWtype): Define for appropriate W_TYPE_SIZE.
12181
12182 2014-05-09 Richard Biener <rguenther@suse.de>
12183
12184 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
12185 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
12186 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
12187 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
12188 ssa_propagate): Adjust.
12189
12190 2014-05-08 Jeff Law <law@redhat.com>
12191
12192 PR tree-optimization/61009
12193 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
12194 tri-state rather than a boolean. When a block is too big to
12195 thread through, inform caller via negative return value.
12196 (thread_across_edge): If a block was too big for normal threading,
12197 then it's too big for a joiner too, so remove temporary equivalences
12198 and return immediately.
12199
12200 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12201 Matthias Klose <doko@ubuntu.com>
12202
12203 PR driver/61106
12204 * optc-gen.awk: Fix option handling for -Wunused-parameter.
12205
12206 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
12207
12208 PR target/59952
12209 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
12210
12211 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
12212
12213 PR target/61092
12214 * config/alpha/alpha.c: Include gimple-iterator.h.
12215 (alpha_gimple_fold_builtin): New function. Move
12216 ALPHA_BUILTIN_UMULH folding from ...
12217 (alpha_fold_builtin): ... here.
12218 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
12219
12220 2014-05-08 Wei Mi <wmi@google.com>
12221
12222 PR target/58066
12223 * config/i386/i386.c (ix86_compute_frame_layout): Update
12224 preferred_stack_boundary for call, expanded from tls descriptor.
12225 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
12226 to depend on SP register.
12227 (*tls_local_dynamic_base_32_gnu): Ditto.
12228 (*tls_local_dynamic_32_once): Ditto.
12229 (tls_global_dynamic_64_<mode>): Set
12230 ix86_tls_descriptor_calls_expanded_in_cfun.
12231 (tls_local_dynamic_base_64_<mode>): Ditto.
12232 (tls_global_dynamic_32): Set
12233 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
12234 to depend on SP register.
12235 (tls_local_dynamic_base_32): Ditto.
12236
12237 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12238
12239 * config/arm/arm_neon.h: Update comment.
12240 * config/arm/neon-docgen.ml: Delete.
12241 * config/arm/neon-gen.ml: Delete.
12242 * doc/arm-neon-intrinsics.texi: Update comment.
12243
12244 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12245
12246 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
12247 and v4sf versions.
12248 (vand, vorr, veor, vorn, vbic): Remove.
12249 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
12250 iterator.
12251 (neon_vsub_unspec): Likewise.
12252 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
12253
12254 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12255
12256 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
12257 (vadd_s16): Likewise.
12258 (vadd_s32): Likewise.
12259 (vadd_f32): Likewise.
12260 (vadd_u8): Likewise.
12261 (vadd_u16): Likewise.
12262 (vadd_u32): Likewise.
12263 (vadd_s64): Likewise.
12264 (vadd_u64): Likewise.
12265 (vaddq_s8): Likewise.
12266 (vaddq_s16): Likewise.
12267 (vaddq_s32): Likewise.
12268 (vaddq_s64): Likewise.
12269 (vaddq_f32): Likewise.
12270 (vaddq_u8): Likewise.
12271 (vaddq_u16): Likewise.
12272 (vaddq_u32): Likewise.
12273 (vaddq_u64): Likewise.
12274 (vmul_s8): Likewise.
12275 (vmul_s16): Likewise.
12276 (vmul_s32): Likewise.
12277 (vmul_f32): Likewise.
12278 (vmul_u8): Likewise.
12279 (vmul_u16): Likewise.
12280 (vmul_u32): Likewise.
12281 (vmul_p8): Likewise.
12282 (vmulq_s8): Likewise.
12283 (vmulq_s16): Likewise.
12284 (vmulq_s32): Likewise.
12285 (vmulq_f32): Likewise.
12286 (vmulq_u8): Likewise.
12287 (vmulq_u16): Likewise.
12288 (vmulq_u32): Likewise.
12289 (vsub_s8): Likewise.
12290 (vsub_s16): Likewise.
12291 (vsub_s32): Likewise.
12292 (vsub_f32): Likewise.
12293 (vsub_u8): Likewise.
12294 (vsub_u16): Likewise.
12295 (vsub_u32): Likewise.
12296 (vsub_s64): Likewise.
12297 (vsub_u64): Likewise.
12298 (vsubq_s8): Likewise.
12299 (vsubq_s16): Likewise.
12300 (vsubq_s32): Likewise.
12301 (vsubq_s64): Likewise.
12302 (vsubq_f32): Likewise.
12303 (vsubq_u8): Likewise.
12304 (vsubq_u16): Likewise.
12305 (vsubq_u32): Likewise.
12306 (vsubq_u64): Likewise.
12307 (vand_s8): Likewise.
12308 (vand_s16): Likewise.
12309 (vand_s32): Likewise.
12310 (vand_u8): Likewise.
12311 (vand_u16): Likewise.
12312 (vand_u32): Likewise.
12313 (vand_s64): Likewise.
12314 (vand_u64): Likewise.
12315 (vandq_s8): Likewise.
12316 (vandq_s16): Likewise.
12317 (vandq_s32): Likewise.
12318 (vandq_s64): Likewise.
12319 (vandq_u8): Likewise.
12320 (vandq_u16): Likewise.
12321 (vandq_u32): Likewise.
12322 (vandq_u64): Likewise.
12323 (vorr_s8): Likewise.
12324 (vorr_s16): Likewise.
12325 (vorr_s32): Likewise.
12326 (vorr_u8): Likewise.
12327 (vorr_u16): Likewise.
12328 (vorr_u32): Likewise.
12329 (vorr_s64): Likewise.
12330 (vorr_u64): Likewise.
12331 (vorrq_s8): Likewise.
12332 (vorrq_s16): Likewise.
12333 (vorrq_s32): Likewise.
12334 (vorrq_s64): Likewise.
12335 (vorrq_u8): Likewise.
12336 (vorrq_u16): Likewise.
12337 (vorrq_u32): Likewise.
12338 (vorrq_u64): Likewise.
12339 (veor_s8): Likewise.
12340 (veor_s16): Likewise.
12341 (veor_s32): Likewise.
12342 (veor_u8): Likewise.
12343 (veor_u16): Likewise.
12344 (veor_u32): Likewise.
12345 (veor_s64): Likewise.
12346 (veor_u64): Likewise.
12347 (veorq_s8): Likewise.
12348 (veorq_s16): Likewise.
12349 (veorq_s32): Likewise.
12350 (veorq_s64): Likewise.
12351 (veorq_u8): Likewise.
12352 (veorq_u16): Likewise.
12353 (veorq_u32): Likewise.
12354 (veorq_u64): Likewise.
12355 (vbic_s8): Likewise.
12356 (vbic_s16): Likewise.
12357 (vbic_s32): Likewise.
12358 (vbic_u8): Likewise.
12359 (vbic_u16): Likewise.
12360 (vbic_u32): Likewise.
12361 (vbic_s64): Likewise.
12362 (vbic_u64): Likewise.
12363 (vbicq_s8): Likewise.
12364 (vbicq_s16): Likewise.
12365 (vbicq_s32): Likewise.
12366 (vbicq_s64): Likewise.
12367 (vbicq_u8): Likewise.
12368 (vbicq_u16): Likewise.
12369 (vbicq_u32): Likewise.
12370 (vbicq_u64): Likewise.
12371 (vorn_s8): Likewise.
12372 (vorn_s16): Likewise.
12373 (vorn_s32): Likewise.
12374 (vorn_u8): Likewise.
12375 (vorn_u16): Likewise.
12376 (vorn_u32): Likewise.
12377 (vorn_s64): Likewise.
12378 (vorn_u64): Likewise.
12379 (vornq_s8): Likewise.
12380 (vornq_s16): Likewise.
12381 (vornq_s32): Likewise.
12382 (vornq_s64): Likewise.
12383 (vornq_u8): Likewise.
12384 (vornq_u16): Likewise.
12385 (vornq_u32): Likewise.
12386 (vornq_u64): Likewise.
12387
12388 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12389
12390 * wide-int.cc (UTItype): Define.
12391 (UDWtype): Define for appropriate W_TYPE_SIZE.
12392
12393 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
12394
12395 PR tree-optimization/59100
12396 * tree-ssa-phiopt.c: Include tree-inline.h.
12397 (neutral_element_p, absorbing_element_p): New functions.
12398 (value_replacement): Handle conditional binary operations with a
12399 neutral or absorbing element.
12400
12401 2014-05-08 Richard Biener <rguenther@suse.de>
12402
12403 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
12404 folding the expression.
12405 (valueize_expr): Remove.
12406 (visit_reference_op_load): Do not valueize the result of
12407 vn_get_expr_for.
12408 (simplify_binary_expression): Likewise.
12409 (simplify_unary_expression): Likewise.
12410
12411 2014-05-08 Richard Biener <rguenther@suse.de>
12412
12413 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
12414 looking at TYPE_ARG_TYPES.
12415
12416 2014-05-08 Richard Biener <rguenther@suse.de>
12417
12418 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12419 pointer propagation special-case.
12420
12421 2014-05-08 Bin Cheng <bin.cheng@arm.com>
12422
12423 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
12424 core part of address expressions.
12425
12426 2014-05-08 Alan Modra <amodra@gmail.com>
12427
12428 PR target/60737
12429 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
12430 loads and stores when -mno-strict-align at any alignment.
12431 (expand_block_clear): Similarly. Also correct calculation of
12432 instruction count.
12433
12434 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12435
12436 PR middle-end/39246
12437 * tree-complex.c (expand_complex_move): Keep line info when expanding
12438 complex move.
12439 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
12440 of complex expression. Use new argument to display correct location
12441 for values coming from phi statement.
12442 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
12443 (warn_uninitialized_phi): Pass location of phi argument to
12444 warn_uninit.
12445 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
12446 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
12447
12448 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12449
12450 * config/rs6000/predicates.md (indexed_address_mem): New.
12451 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
12452 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
12453 fpstore_ux, fpstore_u.
12454 (sign_extend, indexed, update): New.
12455 (cell_micro): Adjust.
12456 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
12457 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
12458 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
12459 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
12460 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12461 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
12462 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
12463 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
12464 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
12465 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
12466 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
12467 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
12468 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
12469 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
12470 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
12471
12472 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
12473 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
12474 *vsx_extract_<mode>_store): Adjust.
12475 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
12476 is_cracked_insn, insn_must_be_first_in_group,
12477 insn_must_be_last_in_group): Adjust.
12478
12479 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
12480 Adjust.
12481 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
12482 ppc440-fpstore): Adjust.
12483 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
12484 ppc476-fpstore): Adjust.
12485 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
12486 ppc601-fpstore): Adjust.
12487 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
12488 Adjust.
12489 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
12490 Adjust.
12491 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
12492 ppc7450-fpstore): Adjust.
12493 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
12494 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
12495 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
12496 Adjust.
12497 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
12498 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
12499 cell-fpstore, cell-fpstore-update): Adjust.
12500 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
12501 ppce300c3_store, ppce300c3_fpstore): Adjust.
12502 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
12503 e500mc_fpstore): Adjust.
12504 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
12505 e500mc64_store, e500mc64_fpstore): Adjust.
12506 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
12507 e5500_fpstore): Adjust.
12508 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
12509 e6500_fpstore): Adjust.
12510 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
12511 Adjust.
12512 * config/rs6000/power4.md (power4-load, power4-load-ext,
12513 power4-load-ext-update, power4-load-ext-update-indexed,
12514 power4-load-update-indexed, power4-load-update, power4-fpload,
12515 power4-fpload-update, power4-store, power4-store-update,
12516 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
12517 Adjust.
12518 * config/rs6000/power5.md (power5-load, power5-load-ext,
12519 power5-load-ext-update, power5-load-ext-update-indexed,
12520 power5-load-update-indexed, power5-load-update, power5-fpload,
12521 power5-fpload-update, power5-store, power5-store-update,
12522 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
12523 Adjust.
12524 * config/rs6000/power6.md (power6-load, power6-load-ext,
12525 power6-load-update, power6-load-update-indexed,
12526 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
12527 power6-fpload-update, power6-store, power6-store-update,
12528 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
12529 Adjust.
12530 * config/rs6000/power7.md (power7-load, power7-load-ext,
12531 power7-load-update, power7-load-update-indexed,
12532 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
12533 power7-fpload-update, power7-store, power7-store-update,
12534 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
12535 Adjust.
12536 * config/rs6000/power8.md (power8-load, power8-load-update,
12537 power8-load-ext, power8-load-ext-update, power8-fpload,
12538 power8-fpload-update, power8-store, power8-store-update-indexed,
12539 power8-fpstore, power8-fpstore-update): Adjust.
12540 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
12541 Adjust.
12542 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
12543 titan_lsu_store, titan_lsu_fpstore): Adjust.
12544 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
12545
12546 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
12547
12548 PR target/60884
12549 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
12550 unrolled byte insns. Emit address increments after move insns.
12551
12552 2014-05-07 David Malcolm <dmalcolm@redhat.com>
12553
12554 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
12555 const_gimple, rather than a gimple.
12556 (gimple_call_builtin_p): Likewise, for the three variants.
12557
12558 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
12559 (gimple_call_builtin_p): Likewise, for the three variants.
12560
12561 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12562
12563 PR tree-optimization/61095
12564 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
12565
12566 2014-05-07 Richard Biener <rguenther@suse.de>
12567
12568 PR tree-optimization/61034
12569 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
12570 (maybe_skip_until): Use translate to take into account
12571 lattices when trying to do disambiguations.
12572 (get_continuation_for_phi_1): Likewise.
12573 (get_continuation_for_phi): Adjust for added translate arguments.
12574 (walk_non_aliased_vuses): Likewise.
12575 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
12576 (walk_non_aliased_vuses): Likewise.
12577 (call_may_clobber_ref_p_1): Declare.
12578 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
12579 calls. Stop early if we are only supposed to disambiguate.
12580 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12581
12582 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
12583
12584 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
12585 Emit an error when the function has arguments.
12586
12587 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12588
12589 * cfgloop.h (unswitch_loops): Remove.
12590 * doc/passes.texi: Remove references to loop-unswitch.c
12591 * timevar.def (TV_LOOP_UNSWITCH): Remove.
12592
12593 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
12594
12595 * tree-vect-data-refs.c (vect_grouped_load_supported): New
12596 check for loads group of length 3.
12597 (vect_permute_load_chain): New permutations for loads group of
12598 length 3.
12599 * tree-vect-stmts.c (vect_model_load_cost): Change cost
12600 of vec_perm_shuffle for the new permutations.
12601
12602 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
12603
12604 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
12605 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
12606 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
12607 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
12608 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
12609 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
12610 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
12611 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
12612
12613 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12614
12615 * loop-unswitch.c: Delete.
12616
12617 2014-05-07 Richard Biener <rguenther@suse.de>
12618
12619 * config.gcc: Always set need_64bit_hwint to yes.
12620
12621 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
12622
12623 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
12624 of using optimize_size.
12625
12626 2014-05-06 Mike Stump <mikestump@comcast.net>
12627
12628 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
12629
12630 2014-05-06 Joseph Myers <joseph@codesourcery.com>
12631
12632 * config/i386/sse.md (*mov<mode>_internal)
12633 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
12634 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
12635 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
12636 (*<code><mode>3, *andnot<mode>3<mask_name>)
12637 (<mask_codefor><code><mode>3<mask_name>): Only consider
12638 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
12639
12640 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12641
12642 Revert:
12643 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12644
12645 * lra-constraints.c (valid_address_p): Move earlier in file.
12646 Add a constraint argument to the address_info version.
12647 (satisfies_memory_constraint_p): New function.
12648 (satisfies_address_constraint_p): Likewise.
12649 (process_alt_operands, curr_insn_transform): Use them.
12650 (process_address): Pass the constraint to valid_address_p when
12651 checking address operands.
12652
12653 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
12654
12655 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
12656 to their respective blocks. Fix inadvertent use of "node".
12657
12658 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12659
12660 * emit-rtl.c (init_derived_machine_modes): New functionm, split
12661 out from...
12662 (init_emit_once): ...here.
12663 * rtl.h (init_derived_machine_modes): Declare.
12664 * toplev.c (do_compile): Call it even if no_backend.
12665
12666 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
12667 Mike Stump <mikestump@comcast.net>
12668 Richard Sandiford <rdsandiford@googlemail.com>
12669 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12670
12671 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
12672 (rtx_equal_for_memref_p): Update comment.
12673 (adjust_offset_for_component_ref): Use wide-int interfaces.
12674 * builtins.c (get_object_alignment_2): Likewise.
12675 (c_readstr): Likewise.
12676 (target_char_cast): Add comment.
12677 (determine_block_size): Use wide-int interfaces.
12678 (expand_builtin_signbit): Likewise.
12679 (fold_builtin_int_roundingfn): Likewise.
12680 (fold_builtin_bitop): Likewise.
12681 (fold_builtin_bswap): Likewise.
12682 (fold_builtin_logarithm): Use signop.
12683 (fold_builtin_pow): Likewise.
12684 (fold_builtin_memory_op): Use wide-int interfaces.
12685 (fold_builtin_object_size): Likewise.
12686 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
12687 nb_iterations_estimate.
12688 (record_niter_bound): Use wide-int interfaces.
12689 (get_estimated_loop_iterations_int): Likewise.
12690 (get_estimated_loop_iterations): Likewise.
12691 (get_max_loop_iterations): Likewise.
12692 * cfgloop.h: Include wide-int.h.
12693 (struct nb_iter_bound): Change bound to widest_int.
12694 (struct loop): Change nb_iterations_upper_bound and
12695 nb_iterations_estimate to widest_int.
12696 (record_niter_bound): Switch to use widest_int.
12697 (get_estimated_loop_iterations): Likewise.
12698 (get_max_loop_iterations): Likewise.
12699 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
12700 update for wide-int.
12701 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
12702 * combine.c (try_combine): Likewise.
12703 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
12704 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
12705 interfaces.
12706 (aarch64_float_const_representable_p): Likewise.
12707 * config/arc/arc.c: Include wide-int.h.
12708 (arc_can_use_doloop_p): Use wide-int interfaces.
12709 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
12710 (vfp3_const_double_index): Likewise.
12711 * config/avr/avr.c (avr_out_round): Likewise.
12712 (avr_fold_builtin): Likewise.
12713 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
12714 (bfin_can_use_doloop_p): Likewise.
12715 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
12716 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
12717 * config/i386/i386.c: Include wide-int.h.
12718 (ix86_data_alignment): Use wide-int interfaces.
12719 (ix86_local_alignment): Likewise.
12720 (ix86_emit_swsqrtsf): Update real_from_integer.
12721 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
12722 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12723 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
12724 (zero_constant): Likewise.
12725 (input_operand): Likewise.
12726 (splat_input_operand): Likewise.
12727 (non_logical_cint_operand): Change const_double to const_wide_int.
12728 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
12729 (easy_altivec_constant): Remove comment.
12730 (paired_expand_vector_init): Use CONSTANT_P.
12731 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
12732 (rs6000_emit_move): Update checks.
12733 (rs6000_aggregate_candidate): Use wide-int interfaces.
12734 (rs6000_expand_ternop_builtin): Likewise.
12735 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
12736 (rs6000_assemble_integer): Likewise.
12737 (rs6000_hash_constant): Likewise.
12738 (output_toc): Likewise.
12739 (rs6000_rtx_costs): Likewise.
12740 (rs6000_emit_swrsqrt); Update call to real_from_integer.
12741 * config/rs6000/rs6000-c.c: Include wide-int.h.
12742 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
12743 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
12744 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
12745 Handle CONST_WIDE_INT.
12746 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
12747 Use tree_fits_uhwi_p.
12748 * config/sparc/sparc.c: Include wide-int.h.
12749 (sparc_fold_builtin): Use wide-int interfaces.
12750 * config/vax/vax.c: Include wide-int.h.
12751 (vax_float_literal): Use real_from_integer.
12752 * coretypes.h (struct hwivec_def): New.
12753 (hwivec): New.
12754 (const_hwivec): New.
12755 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
12756 (equiv_constant): Handle CONST_WIDE_INT.
12757 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
12758 (cselib_hash_rtx): Handle CONST_WIDE_INT.
12759 * dbxout.c (stabstr_U): Use wide-int interfaces.
12760 (dbxout_type): Update to use cst_fits_shwi_p.
12761 * defaults.h (LOG2_BITS_PER_UNIT): Define.
12762 (TARGET_SUPPORTS_WIDE_INT): Add default.
12763 * dfp.c: Include wide-int.h.
12764 (decimal_real_to_integer2): Use wide-int interfaces and rename to
12765 decimal_real_to_integer.
12766 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
12767 decimal_real_to_integer.
12768 * doc/generic.texi (Constant expressions): Update for wide_int.
12769 * doc/rtl.texi (const_double): Likewise.
12770 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
12771 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
12772 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
12773 (REAL_VALUE_FROM_INT): Remove.
12774 (TARGET_SUPPORTS_WIDE_INT): New.
12775 * doc/tm.texi: Regenerate.
12776 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
12777 * double-int.h: Include wide-int.h.
12778 (struct wi::int_traits): New.
12779 * dwarf2out.c (get_full_len): New.
12780 (dw_val_equal_p): Add case dw_val_class_wide_int.
12781 (size_of_loc_descr): Likewise.
12782 (output_loc_operands): Likewise.
12783 (insert_double): Remove.
12784 (insert_wide_int): New.
12785 (add_AT_wide): New.
12786 (print_die): Add case dw_val_class_wide_int.
12787 (attr_checksum): Likewise.
12788 (attr_checksum_ordered): Likewise.
12789 (same_dw_val_p): Likewise.
12790 (size_of_die): Likewise.
12791 (value_format): Likewise.
12792 (output_die): Likewise.
12793 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
12794 Use wide-int.
12795 (clz_loc_descriptor): Use wide-int interfaces.
12796 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
12797 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
12798 (round_up_to_align): Use wide-int interfaces.
12799 (field_byte_offset): Likewise.
12800 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
12801 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
12802 CONST_DOUBLE handling. Use wide-int interfaces.
12803 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
12804 (gen_enumeration_type_die): Use add_AT_wide.
12805 (hash_loc_operands): Add case dw_val_class_wide_int.
12806 (compare_loc_operands): Likewise.
12807 * dwarf2out.h: Include wide-int.h.
12808 (wide_int_ptr): New.
12809 (enum dw_val_class): Add dw_val_class_wide_int.
12810 (struct dw_val_struct): Add val_wide.
12811 * emit-rtl.c (const_wide_int_htab): New.
12812 (const_wide_int_htab_hash): New.
12813 (const_wide_int_htab_eq): New.
12814 (lookup_const_wide_int): New.
12815 (const_double_htab_hash): Use wide-int interfaces.
12816 (const_double_htab_eq): Likewise.
12817 (rtx_to_double_int): Conditionally compile for wide-int.
12818 (immed_double_int_const): Rename to immed_wide_int_const and
12819 update for wide-int.
12820 (immed_double_const): Conditionally compile for wide-int.
12821 (init_emit_once): Use wide-int interfaces.
12822 * explow.c (plus_constant): Likewise.
12823 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
12824 (lshift_value): Use wide-int interfaces.
12825 (expand_mult): Likewise.
12826 (choose_multiplier): Likewise.
12827 (expand_smod_pow2): Likewise.
12828 (make_tree): Likewise.
12829 * expr.c (convert_modes): Consolidate handling of constants.
12830 Use wide-int interfaces.
12831 (emit_group_load_1): Add note.
12832 (store_expr): Update comment.
12833 (get_inner_reference): Use wide-int interfaces.
12834 (expand_constructor): Update comment.
12835 (expand_expr_real_2): Use wide-int interfaces.
12836 (expand_expr_real_1): Likewise.
12837 (reduce_to_bit_field_precision): Likewise.
12838 (const_vector_from_tree): Likewise.
12839 * final.c: Include wide-int-print.h.
12840 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
12841 * fixed-value.c: Include wide-int.h.
12842 (fixed_from_string): Use wide-int interfaces.
12843 (fixed_to_decimal): Likewise.
12844 (fixed_convert_from_real): Likewise.
12845 (real_convert_from_fixed): Likewise.
12846 * fold-const.h (mem_ref_offset): Return an offset_int.
12847 (div_if_zero_remainder): Remove code parameter.
12848 * fold-const.c (div_if_zero_remainder): Remove code parameter.
12849 Use wide-int interfaces.
12850 (may_negate_without_overflow_p): Use wide-int interfaces.
12851 (negate_expr_p): Likewise.
12852 (fold_negate_expr): Likewise.
12853 (int_const_binop_1): Likewise.
12854 (const_binop): Likewise.
12855 (fold_convert_const_int_from_int): Likewise.
12856 (fold_convert_const_int_from_real): Likewise.
12857 (fold_convert_const_int_from_fixed): Likewise.
12858 (fold_convert_const_fixed_from_int): Likewise.
12859 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
12860 (sign_bit_p): Use wide-int interfaces.
12861 (make_range_step): Likewise.
12862 (build_range_check): Likewise. Pass an integer of the correct type
12863 instead of using integer_one_node.
12864 (range_predecessor): Pass an integer of the correct type instead
12865 of using integer_one_node.
12866 (range_successor): Likewise.
12867 (merge_ranges): Likewise.
12868 (unextend): Use wide-int interfaces.
12869 (extract_muldiv_1): Likewise.
12870 (fold_div_compare): Likewise.
12871 (fold_single_bit_test): Likewise.
12872 (fold_sign_changed_comparison): Likewise.
12873 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
12874 (fold_plusminus_mult_expr): Use wide-int interfaces.
12875 (native_encode_int): Likewise.
12876 (native_interpret_int): Likewise.
12877 (fold_unary_loc): Likewise.
12878 (pointer_may_wrap_p): Likewise.
12879 (size_low_cst): Likewise.
12880 (mask_with_tz): Likewise.
12881 (fold_binary_loc): Likewise.
12882 (fold_ternary_loc): Likewise.
12883 (multiple_of_p): Likewise.
12884 (tree_call_nonnegative_warnv_p): Update calls to
12885 tree_int_cst_min_precision and real_from_integer.
12886 (fold_negate_const): Use wide-int interfaces.
12887 (fold_abs_const): Likewise.
12888 (fold_relational_const): Use tree_int_cst_lt.
12889 (round_up_loc): Use wide-int interfaces.
12890 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
12891 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
12892 * gengtype.c: Remove include of double-int.h.
12893 (do_typedef): Use wide-int interfaces.
12894 (open_base_files): Add wide-int.h.
12895 (main): Add offset_int and widest_int typedefs.
12896 * gengtype-lex.l: Handle "^".
12897 (CXX_KEYWORD): Add "static".
12898 * gengtype-parse.c (require3): New.
12899 (require_template_declaration): Handle constant template arguments
12900 and nested templates.
12901 * gengtype-state.c: Don't include "double-int.h".
12902 * genpreds.c (write_one_predicate_function): Update comment.
12903 (write_tm_constrs_h): Add check for hval and lval use in
12904 CONST_WIDE_INT.
12905 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
12906 (add_to_sequence): Likewise.
12907 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
12908 and const_double_operand.
12909 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
12910 interfaces.
12911 * gimple-fold.c (get_base_constructor): Likewise.
12912 (fold_array_ctor_reference): Likewise.
12913 (fold_nonarray_ctor_reference): Likewise.
12914 (fold_const_aggregate_ref_1): Likewise.
12915 (gimple_val_nonnegative_real_p): Likewise.
12916 (gimple_fold_indirect_ref): Likewise.
12917 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
12918 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
12919 (struct slsr_cand_d): Change index to be widest_int.
12920 (struct incr_info_d): Change incr to be widest_int.
12921 (alloc_cand_and_find_basis): Use wide-int interfaces.
12922 (slsr_process_phi): Likewise.
12923 (backtrace_base_for_ref): Likewise. Return a widest_int.
12924 (restructure_reference): Take a widest_int instead of a double_int.
12925 (slsr_process_ref): Use wide-int interfaces.
12926 (create_mul_ssa_cand): Likewise.
12927 (create_mul_imm_cand): Likewise.
12928 (create_add_ssa_cand): Likewise.
12929 (create_add_imm_cand): Take a widest_int instead of a double_int.
12930 (slsr_process_add): Use wide-int interfaces.
12931 (slsr_process_cast): Likewise.
12932 (slsr_process_copy): Likewise.
12933 (dump_candidate): Likewise.
12934 (dump_incr_vec): Likewise.
12935 (replace_ref): Likewise.
12936 (cand_increment): Likewise. Return a widest_int.
12937 (cand_abs_increment): Likewise.
12938 (replace_mult_candidate): Take a widest_int instead of a double_int.
12939 (replace_unconditional_candidate): Use wide-int interfaces.
12940 (incr_vec_index): Take a widest_int instead of a double_int.
12941 (create_add_on_incoming_edge): Likewise.
12942 (create_phi_basis): Use wide-int interfaces.
12943 (replace_conditional_candidate): Likewise.
12944 (record_increment): Take a widest_int instead of a double_int.
12945 (record_phi_increments): Use wide-int interfaces.
12946 (phi_incr_cost): Take a widest_int instead of a double_int.
12947 (lowest_cost_path): Likewise.
12948 (total_savings): Likewise.
12949 (analyze_increments): Use wide-int interfaces.
12950 (ncd_with_phi): Take a widest_int instead of a double_int.
12951 (ncd_of_cand_and_phis): Likewise.
12952 (nearest_common_dominator_for_cands): Likewise.
12953 (insert_initializers): Use wide-int interfaces.
12954 (all_phi_incrs_profitable): Likewise.
12955 (replace_one_candidate): Likewise.
12956 (replace_profitable_candidates): Likewise.
12957 * godump.c: Include wide-int-print.h.
12958 (go_output_typedef): Use wide-int interfaces.
12959 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
12960 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
12961 (build_loop_iteration_domains): Likewise.
12962 * hooks.h: Include wide-int.h rather than double-int.h.
12963 (hook_bool_dint_dint_uint_bool_true): Delete.
12964 (hook_bool_wint_wint_uint_bool_true): Declare.
12965 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
12966 (hook_bool_wint_wint_uint_bool_true): New.
12967 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
12968 interfaces.
12969 (ubsan_expand_si_overflow_mul_check): Likewise.
12970 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
12971 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
12972 (get_ancestor_addr_info): Likewise.
12973 (ipa_modify_call_arguments): Likewise.
12974 * loop-doloop.c (doloop_modify): Likewise.
12975 (doloop_optimize): Likewise.
12976 * loop-iv.c (iv_number_of_iterations): Likewise.
12977 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
12978 (unroll_loop_constant_iterations): Likewise.
12979 (decide_unroll_runtime_iterations): Likewise.
12980 (unroll_loop_runtime_iterations): Likewise.
12981 (decide_peel_simple): Likewise.
12982 (decide_unroll_stupid): Likewise.
12983 * lto-streamer-in.c (streamer_read_wi): Add.
12984 (input_cfg): Use wide-int interfaces.
12985 (lto_input_tree_1): Likewise.
12986 * lto-streamer-out.c (streamer_write_wi): Add.
12987 (hash_tree): Use wide-int interfaces.
12988 (output_cfg): Likewise.
12989 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
12990 (GTFILES): Add wide-int.h and signop.h.
12991 (TAGS): Look for .cc files too.
12992 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
12993 * optabs.c (expand_subword_shift): Likewise.
12994 (expand_doubleword_shift): Likewise.
12995 (expand_absneg_bit): Likewise.
12996 (expand_copysign_absneg): Likewise.
12997 (expand_copysign_bit): Likewise.
12998 * postreload.c (reload_cse_simplify_set): Likewise.
12999 * predict.c (predict_iv_comparison): Likewise.
13000 * pretty-print.h: Include wide-int-print.h.
13001 (pp_wide_int) New.
13002 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
13003 * print-tree.c: Include wide-int-print.h.
13004 (print_node_brief): Use wide-int interfaces.
13005 (print_node): Likewise.
13006 * read-rtl.c (validate_const_wide_int): New.
13007 (read_rtx_code): Add CONST_WIDE_INT case.
13008 * real.c: Include wide-int.h.
13009 (real_to_integer2): Delete.
13010 (real_to_integer): New function, returning a wide_int.
13011 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
13012 (ten_to_ptwo): Update call to real_from_integer.
13013 (real_digit): Likewise.
13014 * real.h: Include signop.h, wide-int.h and insn-modes.h.
13015 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
13016 (REAL_VALUE_TO_INT): Delete.
13017 (real_to_integer): Declare a wide-int form.
13018 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
13019 * recog.c (const_int_operand): Improve comment.
13020 (const_scalar_int_operand): New.
13021 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
13022 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
13023 (split_double): Likewise.
13024 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
13025 (rtx_size): Likewise.
13026 (rtx_alloc_stat_v): New.
13027 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
13028 (cwi_output_hex): New.
13029 (iterative_hash_rtx): Handle CONST_WIDE_INT.
13030 (cwi_check_failed_bounds): New.
13031 * rtl.def (CONST_WIDE_INT): New.
13032 * rtl.h: Include <utility> and wide-int.h.
13033 (struct hwivec_def): New.
13034 (CWI_GET_NUM_ELEM): New.
13035 (CWI_PUT_NUM_ELEM): New.
13036 (struct rtx_def): Add num_elem and hwiv.
13037 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
13038 (CASE_CONST_UNIQUE): Likewise.
13039 (CASE_CONST_ANY): Likewise.
13040 (CONST_SCALAR_INT_P): Likewise.
13041 (CONST_WIDE_INT_P): New.
13042 (CWI_ELT): New.
13043 (HWIVEC_CHECK): New.
13044 (cwi_check_failed_bounds): New.
13045 (CWI_ELT): New.
13046 (HWIVEC_CHECK): New.
13047 (CONST_WIDE_INT_VEC) New.
13048 (CONST_WIDE_INT_NUNITS) New.
13049 (CONST_WIDE_INT_ELT) New.
13050 (rtx_mode_t): New type.
13051 (wi::int_traits <rtx_mode_t>): New.
13052 (wi::shwi): New.
13053 (wi::min_value): New.
13054 (wi::max_value): New.
13055 (rtx_alloc_v) New.
13056 (const_wide_int_alloc): New.
13057 (immed_wide_int_const): New.
13058 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
13059 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
13060 * signop.h: New file.
13061 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
13062 (simplify_const_unary_operation): Use wide-int interfaces.
13063 (simplify_binary_operation_1): Likewise.
13064 (simplify_const_binary_operation): Likewise.
13065 (simplify_const_relational_operation): Likewise.
13066 (simplify_immed_subreg): Likewise.
13067 * stmt.c (expand_case): Likewise.
13068 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
13069 signop rather than a bool.
13070 * stor-layout.c (layout_type): Use wide-int interfaces.
13071 (initialize_sizetypes): Update calls to
13072 set_min_and_max_values_for_integral_type.
13073 (set_min_and_max_values_for_integral_type): Take a signop rather
13074 than a bool. Use wide-int interfaces.
13075 (fixup_signed_type): Update accordingly. Remove
13076 HOST_BITS_PER_DOUBLE_INT limit.
13077 (fixup_unsigned_type): Likewise.
13078 * system.h (STATIC_CONSTANT_P): New.
13079 (STATIC_ASSERT): New.
13080 * target.def (can_use_doloop_p): Take widest_ints rather than
13081 double_ints.
13082 * target.h: Include wide-int.h rather than double-int.h.
13083 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
13084 than double_ints.
13085 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
13086 rather than INT_CST_LT_UNSIGNED.
13087 (can_use_doloop_if_innermost): Take widest_ints rather than
13088 double_ints.
13089 * tree-affine.c: Include wide-int-print.h.
13090 (double_int_ext_for_comb): Delete.
13091 (wide_int_ext_for_comb): New.
13092 (aff_combination_zero): Use wide-int interfaces.
13093 (aff_combination_const): Take a widest_int instead of a double_int.
13094 (aff_combination_elt): Use wide-int interfaces.
13095 (aff_combination_scale): Take a widest_int instead of a double_int.
13096 (aff_combination_add_elt): Likewise.
13097 (aff_combination_add_cst): Likewise.
13098 (aff_combination_add): Use wide-int interfaces.
13099 (aff_combination_convert): Likewise.
13100 (tree_to_aff_combination): Likewise.
13101 (add_elt_to_tree): Take a widest_int instead of a double_int.
13102 (aff_combination_to_tree): Use wide-int interfaces.
13103 (aff_combination_remove_elt): Likewise.
13104 (aff_combination_add_product): Take a widest_int instead of
13105 a double_int.
13106 (aff_combination_mult): Use wide-int interfaces.
13107 (aff_combination_expand): Likewise.
13108 (double_int_constant_multiple_p): Delete.
13109 (wide_int_constant_multiple_p): New.
13110 (aff_combination_constant_multiple_p): Take a widest_int pointer
13111 instead of a double_int pointer.
13112 (print_aff): Use wide-int interfaces.
13113 (get_inner_reference_aff): Take a widest_int pointer
13114 instead of a double_int pointer.
13115 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
13116 * tree-affine.h: Include wide-int.h.
13117 (struct aff_comb_elt): Change type of coef to widest_int.
13118 (struct affine_tree_combination): Change type of offset to widest_int.
13119 (double_int_ext_for_comb): Delete.
13120 (wide_int_ext_for_comb): New.
13121 (aff_combination_const): Use widest_int instead of double_int.
13122 (aff_combination_scale): Likewise.
13123 (aff_combination_add_elt): Likewise.
13124 (aff_combination_constant_multiple_p): Likewise.
13125 (get_inner_reference_aff): Likewise.
13126 (aff_comb_cannot_overlap_p): Likewise.
13127 (aff_combination_zero_p): Use wide-int interfaces.
13128 * tree.c: Include tree.h.
13129 (init_ttree): Use make_int_cst.
13130 (tree_code_size): Removed code for INTEGER_CST case.
13131 (tree_size): Add INTEGER_CST case.
13132 (make_node_stat): Update comment.
13133 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
13134 (build_int_cst_type): Use wide-int interfaces.
13135 (double_int_to_tree): Likewise.
13136 (double_int_fits_to_tree_p): Delete.
13137 (force_fit_type_double): Delete.
13138 (force_fit_type): New.
13139 (int_cst_hash_hash): Use wide-int interfaces.
13140 (int_cst_hash_eq): Likewise.
13141 (build_int_cst_wide): Delete.
13142 (wide_int_to_tree): New.
13143 (cache_integer_cst): Use wide-int interfaces.
13144 (build_low_bits_mask): Likewise.
13145 (cst_and_fits_in_hwi): Likewise.
13146 (real_value_from_int_cst): Likewise.
13147 (make_int_cst_stat): New.
13148 (integer_zerop): Use wide_int interfaces.
13149 (integer_onep): Likewise.
13150 (integer_all_onesp): Likewise.
13151 (integer_pow2p): Likewise.
13152 (integer_nonzerop): Likewise.
13153 (tree_log2): Likewise.
13154 (tree_floor_log2): Likewise.
13155 (tree_ctz): Likewise.
13156 (int_size_in_bytes): Likewise.
13157 (mem_ref_offset): Return an offset_int rather than a double_int.
13158 (build_type_attribute_qual_variant): Use wide_int interfaces.
13159 (type_hash_eq): Likewise
13160 (tree_int_cst_equal): Likewise.
13161 (tree_int_cst_lt): Delete.
13162 (tree_int_cst_compare): Likewise.
13163 (tree_fits_shwi_p): Use wide_int interfaces.
13164 (tree_fits_uhwi_p): Likewise.
13165 (tree_int_cst_sign_bit): Likewise.
13166 (tree_int_cst_sgn): Likewise.
13167 (tree_int_cst_min_precision): Take a signop rather than a bool.
13168 (simple_cst_equal): Use wide_int interfaces.
13169 (compare_tree_int): Likewise.
13170 (iterative_hash_expr): Likewise.
13171 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
13172 INT_CST_LT.
13173 (get_type_static_bounds): Use wide_int interfaces.
13174 (tree_int_cst_elt_check_failed): New.
13175 (build_common_tree_nodes): Reordered to set prec before filling in
13176 value.
13177 (int_cst_value): Check cst_and_fits_in_hwi.
13178 (widest_int_cst_value): Use wide_int interfaces.
13179 (upper_bound_in_type): Likewise.
13180 (lower_bound_in_type): Likewise.
13181 (num_ending_zeros): Likewise.
13182 (drop_tree_overflow): Likewise.
13183 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
13184 (gen_conditions_for_pow_cst_base): Likewise.
13185 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
13186 (group_case_labels_stmt): Use wide-int interfaces.
13187 (verify_gimple_assign_binary): Likewise.
13188 (print_loop): Likewise.
13189 * tree-chrec.c (tree_fold_binomial): Likewise.
13190 * tree-core.h (struct tree_base): Add int_length.
13191 (struct tree_int_cst): Change rep of value.
13192 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
13193 (dr_may_alias_p): Likewise.
13194 (max_stmt_executions_tree): Likewise.
13195 * tree.def (INTEGER_CST): Update comment.
13196 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
13197 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
13198 * tree-dump.c: Include wide-int.h and wide-int-print.h.
13199 (dequeue_and_dump): Use wide-int interfaces.
13200 * tree.h: Include wide-int.h.
13201 (NULL_TREE): Moved to earlier loc in file.
13202 (TREE_INT_CST_ELT_CHECK): New.
13203 (tree_int_cst_elt_check_failed): New.
13204 (TYPE_SIGN): New.
13205 (TREE_INT_CST): Delete.
13206 (TREE_INT_CST_LOW): Use wide-int interfaces.
13207 (TREE_INT_CST_HIGH): Delete.
13208 (TREE_INT_CST_NUNITS): New.
13209 (TREE_INT_CST_EXT_NUNITS): Likewise.
13210 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
13211 (TREE_INT_CST_ELT): Likewise.
13212 (INT_CST_LT): Delete.
13213 (tree_int_cst_elt_check): New (two forms).
13214 (type_code_size): Update comment.
13215 (make_int_cst_stat, make_int_cst): New.
13216 (tree_to_double_int): Delete.
13217 (double_int_fits_to_tree_p): Delete.
13218 (force_fit_type_double): Delete.
13219 (build_int_cstu): Replace with out-of-line function.
13220 (build_int_cst_wide): Delete.
13221 (tree_int_cst_lt): Define inline.
13222 (tree_int_cst_le): New.
13223 (tree_int_cst_compare): Define inline.
13224 (tree_int_cst_min_precision): Take a signop rather than a bool.
13225 (wi::int_traits <const_tree>): New.
13226 (wi::int_traits <tree>): New.
13227 (wi::extended_tree): New.
13228 (wi::int_traits <wi::extended_tree>): New.
13229 (wi::to_widest): New.
13230 (wi::to_offset): New.
13231 (wi::fits_to_tree_p): New.
13232 (wi::min_value): New.
13233 (wi::max_value): New.
13234 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
13235 (copy_tree_body_r): Likewise.
13236 * tree-object-size.c (compute_object_offset): Likewise.
13237 (addr_object_size): Likewise.
13238 * tree-predcom.c: Include wide-int-print.h.
13239 (struct dref_d): Change type of offset to widest_int.
13240 (dump_dref): Call wide-int printer.
13241 (aff_combination_dr_offset): Use wide-int interfaces.
13242 (determine_offset): Take a widest_int pointer rather than a
13243 double_int pointer.
13244 (split_data_refs_to_components): Use wide-int interfaces.
13245 (suitable_component_p): Likewise.
13246 (order_drefs): Likewise.
13247 (add_ref_to_chain): Likewise.
13248 (valid_initializer_p): Likewise.
13249 (determine_roots_comp): Likewise.
13250 * tree-pretty-print.c: Include wide-int-print.h.
13251 (dump_generic_node): Use wide-int interfaces.
13252 * tree-sra.c (sra_ipa_modify_expr): Likewise.
13253 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
13254 (move_fixed_address_to_symbol): Likewise.
13255 (move_hint_to_base): Likewise.
13256 (move_pointer_to_base): Likewise.
13257 (move_variant_to_index): Likewise.
13258 (most_expensive_mult_to_index): Likewise.
13259 (addr_to_parts): Likewise.
13260 (copy_ref_info): Likewise.
13261 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
13262 (indirect_refs_may_alias_p): Likewise.
13263 (stmt_kills_ref_p_1): Likewise.
13264 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
13265 * tree-ssa-ccp.c: Update comment at top of file. Include
13266 wide-int-print.h.
13267 (struct prop_value_d): Change type of mask to widest_int.
13268 (extend_mask): New function.
13269 (dump_lattice_value): Use wide-int interfaces.
13270 (get_default_value): Likewise.
13271 (set_constant_value): Likewise.
13272 (set_value_varying): Likewise.
13273 (valid_lattice_transition): Likewise.
13274 (set_lattice_value): Likewise.
13275 (value_to_double_int): Delete.
13276 (value_to_wide_int): New.
13277 (get_value_from_alignment): Use wide-int interfaces.
13278 (get_value_for_expr): Likewise.
13279 (do_dbg_cnt): Likewise.
13280 (ccp_finalize): Likewise.
13281 (ccp_lattice_meet): Likewise.
13282 (bit_value_unop_1): Use widest_ints rather than double_ints.
13283 (bit_value_binop_1): Likewise.
13284 (bit_value_unop): Use wide-int interfaces.
13285 (bit_value_binop): Likewise.
13286 (bit_value_assume_aligned): Likewise.
13287 (evaluate_stmt): Likewise.
13288 (ccp_fold_stmt): Likewise.
13289 (visit_cond_stmt): Likewise.
13290 (ccp_visit_stmt): Likewise.
13291 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13292 (constant_pointer_difference): Likewise.
13293 (associate_pointerplus): Likewise.
13294 (combine_conversions): Likewise.
13295 * tree-ssa-loop.h: Include wide-int.h.
13296 (struct tree_niter_desc): Change type of max to widest_int.
13297 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
13298 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
13299 (remove_redundant_iv_tests): Likewise.
13300 (canonicalize_loop_induction_variables): Likewise.
13301 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
13302 (constant_multiple_of): Take a widest_int pointer instead of
13303 a double_int pointer.
13304 (get_computation_aff): Use wide-int interfaces.
13305 (ptr_difference_cost): Likewise.
13306 (difference_cost): Likewise.
13307 (get_loop_invariant_expr_id): Likewise.
13308 (get_computation_cost_at): Likewise.
13309 (iv_elimination_compare_lt): Likewise.
13310 (may_eliminate_iv): Likewise.
13311 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
13312 instead of double_int.
13313 (max_loop_iterations): Likewise.
13314 (max_stmt_executions): Likewise.
13315 (estimated_stmt_executions): Likewise.
13316 * tree-ssa-loop-niter.c: Include wide-int-print.h.
13317 (split_to_var_and_offset): Use wide-int interfaces.
13318 (determine_value_range): Likewise.
13319 (bound_difference_of_offsetted_base): Likewise.
13320 (bounds_add): Take a widest_int instead of a double_int.
13321 (number_of_iterations_ne_max): Use wide-int interfaces.
13322 (number_of_iterations_ne): Likewise.
13323 (number_of_iterations_lt_to_ne): Likewise.
13324 (assert_loop_rolls_lt): Likewise.
13325 (number_of_iterations_lt): Likewise.
13326 (number_of_iterations_le): Likewise.
13327 (number_of_iterations_cond): Likewise.
13328 (number_of_iterations_exit): Likewise.
13329 (finite_loop_p): Likewise.
13330 (derive_constant_upper_bound_assign): Likewise.
13331 (derive_constant_upper_bound): Return a widest_int.
13332 (derive_constant_upper_bound_ops): Likewise.
13333 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
13334 (record_estimate): Take a widest_int rather than a double_int.
13335 (record_nonwrapping_iv): Use wide-int interfaces.
13336 (double_int_cmp): Delete.
13337 (wide_int_cmp): New.
13338 (bound_index): Take a widest_int rather than a double_int.
13339 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
13340 (maybe_lower_iteration_bound): Likewise.
13341 (estimate_numbers_of_iterations_loop): Likewise.
13342 (estimated_loop_iterations): Take a widest_int pointer than than
13343 a double_int pointer.
13344 (estimated_loop_iterations_int): Use wide-int interfaces.
13345 (max_loop_iterations): Take a widest_int pointer than than
13346 a double_int pointer.
13347 (max_loop_iterations_int): Use wide-int interfaces.
13348 (max_stmt_executions): Take a widest_int pointer than than
13349 a double_int pointer.
13350 (estimated_stmt_executions): Likewise.
13351 (n_of_executions_at_most): Use wide-int interfaces.
13352 (scev_probably_wraps_p): Likewise.
13353 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
13354 to real_to_integer.
13355 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
13356 interfaces.
13357 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
13358 double_ints. Adjust for trailing_wide_ints <3> representation.
13359 (set_nonzero_bits): Likewise.
13360 (get_range_info): Return wide_ints rather than double_ints.
13361 Adjust for trailing_wide_ints <3> representation.
13362 (get_nonzero_bits): Likewise.
13363 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
13364 representation.
13365 * tree-ssanames.h (struct range_info_def): Replace min, max and
13366 nonzero_bits with a trailing_wide_ints <3>.
13367 (set_range_info): Use wide_int_refs rather than double_ints.
13368 (set_nonzero_bits): Likewise.
13369 (get_range_info): Return wide_ints rather than double_ints.
13370 (get_nonzero_bits): Likewise.
13371 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
13372 * tree-ssa-pre.c (phi_translate_1): Likewise.
13373 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
13374 (acceptable_pow_call): Likewise.
13375 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
13376 interfaces.
13377 (vn_reference_fold_indirect): Likewise.
13378 (vn_reference_maybe_forwprop_address): Likewise.
13379 (valueize_refs_1): Likewise.
13380 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
13381 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
13382 tree_int_cst_lt and tree_int_cst_le.
13383 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
13384 interfaces.
13385 (streamer_alloc_tree): Likewise.
13386 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
13387 (streamer_write_tree_header): Likewise.
13388 (streamer_write_integer_cst): Likewise.
13389 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13390 (build_constructors): Likewise.
13391 (array_value_type): Likewise.
13392 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
13393 (vect_check_gather): Likewise.
13394 * tree-vect-generic.c (build_replicated_const): Likewise.
13395 (expand_vector_divmod): Likewise.
13396 * tree-vect-loop.c (vect_transform_loop): Likewise.
13397 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
13398 (vect_do_peeling_for_alignment): Likewise.
13399 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
13400 * tree-vrp.c: Include wide-int.h.
13401 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
13402 (extract_range_from_assert): Use wide-int interfaces.
13403 (vrp_int_const_binop): Likewise.
13404 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
13405 double_int pointers.
13406 (ranges_from_anti_range): Use wide-int interfaces.
13407 (quad_int_cmp): Delete.
13408 (quad_int_pair_sort): Likewise.
13409 (extract_range_from_binary_expr_1): Use wide-int interfaces.
13410 (extract_range_from_unary_expr_1): Likewise.
13411 (adjust_range_with_scev): Likewise.
13412 (masked_increment): Take and return wide_ints rather than double_ints.
13413 (register_edge_assert_for_2): Use wide-int interfaces.
13414 (check_array_ref): Likewise.
13415 (search_for_addr_array): Likewise.
13416 (maybe_set_nonzero_bits): Likewise.
13417 (union_ranges): Pass an integer of the correct type instead of
13418 using integer_one_node.
13419 (intersect_ranges): Likewise.
13420 (simplify_truth_ops_using_ranges): Likewise.
13421 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
13422 (range_fits_type_p): Likewise.
13423 (simplify_cond_using_ranges): Likewise. Take a signop rather than
13424 a bool.
13425 (simplify_conversion_using_ranges): Use wide-int interfaces.
13426 (simplify_float_conversion_using_ranges): Likewise.
13427 (vrp_finalize): Likewise.
13428 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
13429 (gimple_stringops_transform): Likewise.
13430 * varasm.c (decode_addr_const): Likewise.
13431 (const_hash_1): Likewise.
13432 (const_rtx_hash_1): Likewise
13433 (output_constant): Likewise.
13434 (array_size_for_constructor): Likewise.
13435 (output_constructor_regular_field): Likewise.
13436 (output_constructor_bitfield): Likewise.
13437 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
13438 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
13439 GENERATOR_FILEs.
13440 * gencheck.c: Define BITS_PER_UNIT.
13441 * wide-int.cc: New.
13442 * wide-int.h: New.
13443 * wide-int-print.cc: New.
13444 * wide-int-print.h: New.
13445
13446 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13447
13448 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
13449
13450 2014-05-06 Richard Biener <rguenther@suse.de>
13451
13452 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
13453 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
13454 (TODO_verify_all): Adjust.
13455 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
13456 TODO_verify_stmts and TODO_verify_rtl_sharing.
13457 * bb-reorder.c: Likewise.
13458 * cfgexpand.c: Likewise.
13459 * cprop.c: Likewise.
13460 * cse.c: Likewise.
13461 * function.c: Likewise.
13462 * fwprop.c: Likewise.
13463 * gcse.c: Likewise.
13464 * gimple-ssa-isolate-paths.c: Likewise.
13465 * gimple-ssa-strength-reduction.c: Likewise.
13466 * ipa-split.c: Likewise.
13467 * loop-init.c: Likewise.
13468 * loop-unroll.c: Likewise.
13469 * lower-subreg.c: Likewise.
13470 * modulo-sched.c: Likewise.
13471 * postreload-gcse.c: Likewise.
13472 * predict.c: Likewise.
13473 * recog.c: Likewise.
13474 * sched-rgn.c: Likewise.
13475 * store-motion.c: Likewise.
13476 * tracer.c: Likewise.
13477 * trans-mem.c: Likewise.
13478 * tree-call-cdce.c: Likewise.
13479 * tree-cfg.c: Likewise.
13480 * tree-cfgcleanup.c: Likewise.
13481 * tree-complex.c: Likewise.
13482 * tree-eh.c: Likewise.
13483 * tree-emutls.c: Likewise.
13484 * tree-if-conv.c: Likewise.
13485 * tree-into-ssa.c: Likewise.
13486 * tree-loop-distribution.c: Likewise.
13487 * tree-object-size.c: Likewise.
13488 * tree-parloops.c: Likewise.
13489 * tree-pass.h: Likewise.
13490 * tree-sra.c: Likewise.
13491 * tree-ssa-ccp.c: Likewise.
13492 * tree-ssa-copy.c: Likewise.
13493 * tree-ssa-copyrename.c: Likewise.
13494 * tree-ssa-dce.c: Likewise.
13495 * tree-ssa-dom.c: Likewise.
13496 * tree-ssa-dse.c: Likewise.
13497 * tree-ssa-forwprop.c: Likewise.
13498 * tree-ssa-ifcombine.c: Likewise.
13499 * tree-ssa-loop-ch.c: Likewise.
13500 * tree-ssa-loop-ivcanon.c: Likewise.
13501 * tree-ssa-loop.c: Likewise.
13502 * tree-ssa-math-opts.c: Likewise.
13503 * tree-ssa-phiopt.c: Likewise.
13504 * tree-ssa-phiprop.c: Likewise.
13505 * tree-ssa-pre.c: Likewise.
13506 * tree-ssa-reassoc.c: Likewise.
13507 * tree-ssa-sink.c: Likewise.
13508 * tree-ssa-strlen.c: Likewise.
13509 * tree-ssa-tail-merge.c: Likewise.
13510 * tree-ssa-uncprop.c: Likewise.
13511 * tree-switch-conversion.c: Likewise.
13512 * tree-tailcall.c: Likewise.
13513 * tree-vect-generic.c: Likewise.
13514 * tree-vectorizer.c: Likewise.
13515 * tree-vrp.c: Likewise.
13516 * tsan.c: Likewise.
13517 * var-tracking.c: Likewise.
13518 * bt-load.c: Likewise.
13519 * cfgcleanup.c: Likewise.
13520 * combine-stack-adj.c: Likewise.
13521 * combine.c: Likewise.
13522 * compare-elim.c: Likewise.
13523 * config/epiphany/resolve-sw-modes.c: Likewise.
13524 * config/i386/i386.c: Likewise.
13525 * config/mips/mips.c: Likewise.
13526 * config/s390/s390.c: Likewise.
13527 * config/sh/sh_treg_combine.cc: Likewise.
13528 * config/sparc/sparc.c: Likewise.
13529 * dce.c: Likewise.
13530 * dse.c: Likewise.
13531 * final.c: Likewise.
13532 * ifcvt.c: Likewise.
13533 * mode-switching.c: Likewise.
13534 * passes.c: Likewise.
13535 * postreload.c: Likewise.
13536 * ree.c: Likewise.
13537 * reg-stack.c: Likewise.
13538 * regcprop.c: Likewise.
13539 * regrename.c: Likewise.
13540 * web.c: Likewise.
13541
13542 2014-05-06 Richard Biener <rguenther@suse.de>
13543
13544 PR middle-end/61070
13545 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
13546 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
13547
13548 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
13549
13550 PR ipa/60965
13551 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
13552
13553 2014-05-05 Radovan Obradovic <robradovic@mips.com>
13554 Tom de Vries <tom@codesourcery.com>
13555
13556 * target.def (call_fusage_contains_non_callee_clobbers): New
13557 DEFHOOKPOD.
13558 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
13559 Hooks to @menu.
13560 (@node Miscellaneous Register Hooks): New node.
13561 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
13562 * doc/tm.texi: Regenerate.
13563
13564 2014-05-05 Marek Polacek <polacek@redhat.com>
13565
13566 PR driver/61065
13567 * opts.c (common_handle_option): Call error_at instead of warning_at.
13568
13569 2014-05-05 Richard Biener <rguenther@suse.de>
13570
13571 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
13572 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
13573 under the TODO_verify_il umbrella.
13574
13575 2014-05-05 Richard Biener <rguenther@suse.de>
13576
13577 * passes.c (execute_function_todo): Move TODO_verify_flow under
13578 the TODO_verify_ul umbrella.
13579
13580 2014-05-05 Richard Biener <rguenther@suse.de>
13581
13582 PR middle-end/61010
13583 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
13584 X & CST away from a CST that is the mask of a mode.
13585
13586 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13587
13588 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
13589 int argument to enum machine_mode.
13590 (picochip_class_max_nregs): Ditto.
13591 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
13592 (picochip_class_max_nregs): Ditto.
13593
13594 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13595
13596 * target.def: Add new target hook.
13597 * doc/tm.texi: Regenerate.
13598 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
13599 * targhooks.c (default_keep_leaf_when_profiled): New function.
13600
13601 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
13602 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
13603
13604 2014-05-05 Bin Cheng <bin.cheng@arm.com>
13605
13606 PR tree-optimization/60363
13607 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
13608 (copy_phi_args): New parameters. Call get_value_locus_in_path.
13609 (update_destination_phis): New parameter.
13610 (create_edge_and_update_destination_phis): Ditto.
13611 (ssa_fix_duplicate_block_edges): Pass new arguments.
13612 (thread_single_edge): Ditto.
13613
13614 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
13615
13616 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
13617 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
13618 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
13619 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
13620 Use RS6000_BTM_HARD_FLOAT.
13621 (BU_MISC_2): Likewise.
13622 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13623 RS6000_BTM_HARD_FLOAT.
13624 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
13625 is explicitly used.
13626 (rs6000_invalid_builtin): Add hard floating builtin support.
13627 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
13628 hard float builtins.
13629 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
13630
13631 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13632
13633 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
13634 Add missing function* argument.
13635
13636 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13637
13638 * lra-constraints.c (valid_address_p): Move earlier in file.
13639 Add a constraint argument to the address_info version.
13640 (satisfies_memory_constraint_p): New function.
13641 (satisfies_address_constraint_p): Likewise.
13642 (process_alt_operands, curr_insn_transform): Use them.
13643 (process_address): Pass the constraint to valid_address_p when
13644 checking address operands.
13645
13646 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13647
13648 * config/mips/mips.c (mips_isa_rev): New variable.
13649 (mips_set_architecture): Set it.
13650 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
13651 from mips_isa_rev.
13652 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
13653 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
13654 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
13655 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
13656 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
13657 conditions in terms of mips_isa_rev.
13658 (mips_isa_rev): Declare.
13659
13660 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13661
13662 * config/sh/sh-mem.cc: Use tabs instead of spaces.
13663 (prob_unlikely, prob_likely): Make variables const.
13664
13665 2014-05-03 Denis Chertykov <chertykov@gmail.com>
13666
13667 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
13668
13669 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13670
13671 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
13672
13673 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13674
13675 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
13676 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
13677 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
13678 functions.
13679 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
13680 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
13681 sh_pass_in_reg_p.
13682 Replace usage of ROUND_REG with sh_round_reg.
13683 Use CEIL instead of ROUND_ADVANCE.
13684
13685 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13686
13687 PR target/61026
13688 * config/sh/sh.c: Include stdlib headers before everything else.
13689
13690 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13691
13692 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
13693 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
13694 (gimplify_adjust_omp_clauses): Simd region is never
13695 directly nested in combined parallel. Instead, for linear
13696 with copyin/copyout, if in combined for simd loop, make decl
13697 firstprivate/lastprivate on OMP_FOR.
13698 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13699 expand_omp_for_static_chunk): When setting endvar, also set
13700 fd->loop.v to the same value.
13701
13702 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13703
13704 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
13705
13706 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
13707
13708 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
13709 expression.
13710
13711 2014-05-02 Marek Polacek <polacek@redhat.com>
13712
13713 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
13714
13715 2014-05-02 Kito Cheng <kito@0xlab.org>
13716
13717 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
13718 to a C expression marco.
13719 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
13720 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
13721 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
13722 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
13723 HONOR_REG_ALLOC_ORDER.
13724 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
13725
13726 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13727
13728 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
13729
13730 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13731
13732 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
13733
13734 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13735
13736 * tree-if-conv.c (is_cond_scalar_reduction): New function.
13737 (convert_scalar_cond_reduction): Likewise.
13738 (predicate_scalar_phi): Add recognition and transformation
13739 of simple conditioanl reduction to be vectorizable.
13740
13741 2014-05-01 Marek Polacek <polacek@redhat.com>
13742
13743 PR c/43245
13744 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
13745
13746 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
13747
13748 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
13749 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
13750 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
13751 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
13752 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
13753 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
13754 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
13755 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
13756
13757 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
13758
13759 * config/arc/arc.opt (mlra): Move comment above option name
13760 to avoid mis-parsing as language options.
13761
13762 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13763
13764 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
13765 * config/sol2.h: ... here.
13766 * config/sol2-10.h: Remove.
13767
13768 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
13769 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
13770 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
13771 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
13772 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
13773 * config/sol2.h: ... here.
13774 (SECTION_NAME_FORMAT): Don't redefine.
13775 (STARTFILE_ARCH32_SPEC): Rename to ...
13776 (STARTFILE_ARCH_SPEC): ... this.
13777 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13778 * config/sparc/sol2.h: ... here.
13779 (SECTION_NAME_FORMAT): Don't undef.
13780 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
13781 (SUBTARGET_EXTRA_SPECS): Remove.
13782 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13783
13784 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
13785 (MD_STARTFILE_PREFIX): Remove.
13786 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
13787 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
13788 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
13789 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
13790 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
13791 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
13792 * config/i386/sol2.h: ... here.
13793 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
13794 * config/i386/sol2-bi.h: Remove.
13795 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
13796 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
13797
13798 * config/i386/t-sol2-64: Rename to ...
13799 * config/i386/t-sol2: ... this.
13800 * config/sparc/t-sol2-64: Rename to ...
13801 * config/sparc/t-sol2: ... this.
13802
13803 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
13804 sol2_tm_file_head, sol2_tm_file_tail.
13805 Include ${cpu_type}/sol2.h before sol2.h.
13806 Remove sol2-10.h.
13807 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
13808 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
13809 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
13810 Reflect i386/t-sol2-64 renaming.
13811 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
13812 Reflect sparc/t-sol2-64 renaming.
13813
13814 2014-04-30 Richard Biener <rguenther@suse.de>
13815
13816 * passes.c (execute_function_todo): Move TODO_verify_stmts
13817 and TODO_verify_ssa under the TODO_verify_il umbrella.
13818 * tree-ssa.h (verify_ssa): Adjust prototype.
13819 * tree-ssa.c (verify_ssa): Add parameter to tell whether
13820 we should verify SSA operands.
13821 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
13822 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
13823 whether we should verify whether not throwing stmts have EH info.
13824 * graphite-scop-detection.c (create_sese_edges): Adjust.
13825 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
13826 * tree-eh.c (lower_try_finally_switch): Do not add the
13827 default case label twice.
13828
13829 2014-04-30 Marek Polacek <polacek@redhat.com>
13830
13831 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
13832 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
13833 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
13834 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
13835
13836 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
13837
13838 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
13839 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
13840 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
13841 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
13842 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
13843 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
13844 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
13845 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
13846
13847 2014-04-29 David Malcolm <dmalcolm@redhat.com>
13848
13849 * tree-cfg.c (dump_function_to_file): Dump the return type of
13850 functions, in a line to itself before the function body, mimicking
13851 the layout of a C function.
13852
13853 2014-04-29 Jakub Jelinek <jakub@redhat.com>
13854
13855 PR tree-optimization/60971
13856 * tree-tailcall.c (process_assignment): Reject conversions which
13857 reduce precision.
13858
13859 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
13860
13861 * calls.c (initialize_argument_information): Always treat
13862 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
13863 (expand_call): Likewise.
13864 (emit_library_call_calue_1): Likewise.
13865 * expr.c (PUSH_ARGS_REVERSED): Do not define.
13866 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
13867 code accordingly.
13868
13869 2014-04-29 Nick Clifton <nickc@redhat.com>
13870
13871 * config/msp430/msp430.md (umulsidi): Fix typo.
13872 (mulhisi3): Enable even inside interrupt handlers.
13873 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
13874 bigger return address pushed in large mode.
13875
13876 2014-04-29 Nick Clifton <nickc@redhat.com>
13877
13878 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
13879 (arc_init_reg_tables): Use a machine_mode enum to iterate over
13880 available modes.
13881 * config/m32r/m32r.c (init_reg_tables): Likewise.
13882 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
13883 enum to hold the modes.
13884
13885 2014-04-29 Richard Biener <rguenther@suse.de>
13886
13887 * dominance.c (free_dominance_info): Add overload with
13888 function parameter.
13889 (dom_info_state): Likewise.
13890 (dom_info_available_p): Likewise.
13891 * basic-block.h (free_dominance_info, dom_info_state,
13892 dom_info_available_p): Declare overloads.
13893 * passes.c (execute_function_todo): Verify that verifiers
13894 don't change dominator info state. Drop dominator info
13895 for IPA pass invocations.
13896 * cgraph.c (release_function_body): Restore asserts that
13897 dominator information is released.
13898
13899 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
13900
13901 * doc/invoke.texi: Fix typo.
13902 * tree-vrp.c: Fix typos.
13903 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
13904
13905 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13906
13907 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
13908
13909 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13910
13911 * config/aarch64/aarch64-builtins.c
13912 (aarch64_types_storestruct_lane_qualifiers): New.
13913 (TYPES_STORESTRUCT_LANE): Likewise.
13914 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
13915 (st3_lane): Likewise.
13916 (st4_lane): Likewise.
13917 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
13918 (vec_store_lanesci_lane<mode>): Likewise.
13919 (vec_store_lanesxi_lane<mode>): Likewise.
13920 (aarch64_st2_lane<VQ:mode>): Likewise.
13921 (aarch64_st3_lane<VQ:mode>): Likewise.
13922 (aarch64_st4_lane<VQ:mode>): Likewise.
13923 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
13924 * config/aarch64/arm_neon.h
13925 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
13926 use new macro arguments.
13927 (__ST3_LANE_FUNC): Likewise.
13928 (__ST4_LANE_FUNC): Likewise.
13929 * config/aarch64/iterators.md (V_TWO_ELEM): New.
13930 (V_THREE_ELEM): Likewise.
13931 (V_FOUR_ELEM): Likewise.
13932
13933 2014-04-28 David Malcolm <dmalcolm@redhat.com>
13934
13935 * doc/gimple.texi: Replace the description of the now-defunct
13936 union gimple_statement_d with a diagram showing the
13937 gimple_statement_base class hierarchy and its relationships to
13938 the GSS_ and GIMPLE_ enums.
13939
13940 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13941
13942 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
13943 * config/aarch64/aarch64.c
13944 (aarch64_cannot_change_mode_class): Weaken conditions.
13945 (aarch64_modes_tieable_p): New.
13946 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
13947
13948 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
13949
13950 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13951 (loadsync_<mode>): Change mode.
13952 (load_quadpti, store_quadpti): New.
13953 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13954 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13955
13956 2014-04-28 Martin Jambor <mjambor@suse.cz>
13957
13958 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
13959 same alias type as the original statement.
13960 (subreplacement_assignment_data): New type.
13961 (handle_unscalarized_data_in_subtree): New type of parameter,
13962 generate new memory accesses with same alias type as the original
13963 statement.
13964 (load_assign_lhs_subreplacements): Likewise.
13965 (sra_modify_constructor_assign): Generate new memory accesses with
13966 same alias type as the original statement.
13967
13968 2014-04-28 Richard Biener <rguenther@suse.de>
13969
13970 * tree-pass.h (TODO_verify_il): Define.
13971 (TODO_verify_all): Complete properly.
13972 * passes.c (execute_function_todo): Move existing loop-closed
13973 SSA verification under TODO_verify_il.
13974 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
13975 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
13976 Fix tree sharing issue.
13977
13978 2014-04-28 Richard Biener <rguenther@suse.de>
13979
13980 PR middle-end/60092
13981 * builtins.def (DEF_C11_BUILTIN): Add.
13982 (BUILT_IN_ALIGNED_ALLOC): Likewise.
13983 * coretypes.h (enum function_class): Add function_c11_misc.
13984 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13985 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
13986 (call_may_clobber_ref_p_1): Likewise.
13987 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13988 (mark_all_reaching_defs_necessary_1): Likewise.
13989 (propagate_necessity): Likewise.
13990 (eliminate_unnecessary_stmts): Likewise.
13991 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
13992
13993 2014-04-28 Richard Biener <rguenther@suse.de>
13994
13995 * tree-vrp.c (vrp_var_may_overflow): Remove.
13996 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
13997 with overflow immediately bump to one before that value and
13998 let iteration figure out overflow status.
13999
14000 2014-04-28 Richard Biener <rguenther@suse.de>
14001
14002 * configure.ac: Do valgrind header checks unconditionally.
14003 Add --enable-valgrind-annotations.
14004 * system.h: Guard valgrind header inclusion with
14005 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
14006 * alloc-pool.c (pool_alloc, pool_free): Use
14007 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
14008 to guard possibly dead code.
14009 * config.in: Regenerated.
14010 * configure: Likewise.
14011
14012 2014-04-28 Jeff Law <law@redhat.com>
14013
14014 PR tree-optimization/60902
14015 * tree-ssa-threadedge.c
14016 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
14017 over real defs when invalidating outputs from statements that do not
14018 produce useful outputs for threading.
14019
14020 2014-04-28 Richard Biener <rguenther@suse.de>
14021
14022 PR tree-optimization/60979
14023 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
14024 SCOPs that end in a block with a successor with abnormal
14025 predecessors.
14026
14027 2014-04-28 Richard Biener <rguenther@suse.de>
14028
14029 * tree-pass.h (execute_pass_list): Adjust prototype.
14030 * passes.c (pass_manager::execute_early_local_passes): Adjust.
14031 (do_per_function): Change callback signature, push all actual
14032 work to the callbals.
14033 (do_per_function_toporder): Likewise.
14034 (execute_function_dump): Adjust.
14035 (execute_function_todo): Likewise.
14036 (clear_last_verified): Likewise.
14037 (verify_curr_properties): Likewise.
14038 (update_properties_after_pass): Likewise.
14039 (execute_pass_list_1): Split out from ...
14040 (execute_pass_list): ... here. Adjust.
14041 (execute_ipa_pass_list): Likewise.
14042 * cgraphunit.c (cgraph_add_new_function): Adjust.
14043 (analyze_function): Likewise.
14044 (expand_function): Likewise.
14045 * cgraph.c (release_function_body): Free dominance info
14046 here instead of asserting it was magically freed elsewhere.
14047
14048 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
14049
14050 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
14051 * configure: Regenerate.
14052 * config/sparc/sparc.opt (muser-mode): New option.
14053 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
14054 for LEON3.
14055 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
14056 * doc/invoke.texi (SPARC options): Document -muser-mode.
14057
14058 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
14059
14060 * cselib.c (find_slot_memmode): Delete.
14061 (cselib_hasher): Change compare_type to a struct.
14062 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
14063 constants.
14064 (preserve_constants_and_equivs): Adjust for new compare_type.
14065 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
14066 (wrap_constant): Delete.
14067 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
14068
14069 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
14070
14071 * doc/install.texi (Building with profile feedback): Remove
14072 outdated sentence.
14073
14074 2014-04-26 Tom de Vries <tom@codesourcery.com>
14075
14076 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
14077 array accesses.
14078
14079 2014-04-25 Cary Coutant <ccoutant@google.com>
14080
14081 PR debug/60929
14082 * dwarf2out.c (should_move_die_to_comdat): A type definition
14083 can contain a subprogram definition, but don't move it to a
14084 comdat unit.
14085 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
14086 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
14087 from original DIE.
14088 (clone_tree_hash): Rename to...
14089 (clone_tree_partial): ...this; change callers. Copy
14090 DW_TAG_subprogram DIEs as declarations.
14091 (copy_decls_walk): Don't copy children of a declaration into a
14092 type unit.
14093
14094 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
14095
14096 PR target/60969
14097 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
14098 alternative 12.
14099
14100 2014-04-25 Jiong Wang <jiong.wang@arm.com>
14101
14102 * config/arm/predicates.md (call_insn_operand): Add long_call check.
14103 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
14104 reg for long_call.
14105 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
14106 restriction.
14107
14108 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14109
14110 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
14111
14112 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14113
14114 PR tree-optimization/60930
14115 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
14116 creating a multiply candidate by folding two constant
14117 multiplicands when the result overflows.
14118
14119 2014-04-25 Jakub Jelinek <jakub@redhat.com>
14120
14121 PR tree-optimization/60960
14122 * tree-vect-generic.c (expand_vector_operation): Only call
14123 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
14124
14125 2014-04-25 Tom de Vries <tom@codesourcery.com>
14126
14127 * expr.c (clobber_reg_mode): New function.
14128 * expr.h (clobber_reg): New function.
14129
14130 2014-04-25 Tom de Vries <tom@codesourcery.com>
14131
14132 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
14133 clobbers.
14134
14135 2014-04-25 Radovan Obradovic <robradovic@mips.com>
14136 Tom de Vries <tom@codesourcery.com>
14137
14138 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
14139 handle.
14140 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
14141 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
14142 new argument to find_all_hard_reg_sets call.
14143
14144 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14145
14146 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
14147 Use HOST_WIDE_INT_C for mask literal.
14148 (aarch_rev16_shleft_mask_imm_p): Likewise.
14149
14150 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
14151
14152 PR target/60941
14153 * config/sparc/sparc.md (ashlsi3_extend): Delete.
14154
14155 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
14156
14157 PR preprocessor/56540
14158 * config/i386/i386-c.c (ix86_target_macros): Define
14159 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
14160
14161 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14162
14163 * configure.ac (tga_func): Remove.
14164 (LIB_TLS_SPEC): Remove.
14165 * configure: Regenerate.
14166 * config.in: Regenerate.
14167 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
14168
14169 2014-04-25 Richard Biener <rguenther@suse.de>
14170
14171 PR ipa/60912
14172 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
14173 call stmt use/clobber sets during stmt walk instead of
14174 walking the possibly incomplete set of caller edges.
14175
14176 2014-04-25 Richard Biener <rguenther@suse.de>
14177
14178 PR ipa/60911
14179 * passes.c (apply_ipa_transforms): Inline into only caller ...
14180 (execute_one_pass): ... here. Properly bring in function
14181 bodies for nodes we want to apply IPA transforms to.
14182
14183 2014-04-24 Cong Hou <congh@google.com>
14184
14185 PR tree-optimization/60896
14186 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
14187 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
14188 (vect_mark_pattern_stmts): Set the def type of all statements in
14189 PATTERN_DEF_SEQ as vect_internal_def.
14190
14191 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14192
14193 * doc/extend.texi (PowerPC Built-in Functions): Document new
14194 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
14195 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
14196
14197 * config/rs6000/predicates.md (const_0_to_3_operand): New
14198 predicate to match 0..3 integer constants.
14199
14200 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
14201 to support adding miscellaneous builtin functions.
14202 (BU_DFP_MISC_2): Likewise.
14203 (BU_P7_MISC_1): Likewise.
14204 (BU_P7_MISC_2): Likewise.
14205 (BU_P8V_MISC_3): Likewise.
14206 (BU_MISC_1): Likewise.
14207 (BU_MISC_2): Likewise.
14208 (DIVWE): Add extended divide builtin functions.
14209 (DIVWEO): Likewise.
14210 (DIVWEU): Likewise.
14211 (DIVWEUO): Likewise.
14212 (DIVDE): Likewise.
14213 (DIVDEO): Likewise.
14214 (DIVDEU): Likewise.
14215 (DIVDEUO): Likewise.
14216 (DXEX): Add decimal floating-point builtin functions.
14217 (DXEXQ): Likewise.
14218 (DDEDPD): Likewise.
14219 (DDEDPDQ): Likewise.
14220 (DENBCD): Likewise.
14221 (DENBCDQ): Likewise.
14222 (DIEX): Likewise.
14223 (DIEXQ): Likewise.
14224 (DSCLI): Likewise.
14225 (DSCLIQ): Likewise.
14226 (DSCRI): Likewise.
14227 (DSCRIQ): Likewise.
14228 (CDTBCD): Add new BCD builtin functions.
14229 (CBCDTD): Likewise.
14230 (ADDG6S): Likewise.
14231 (BCDADD): Likewise.
14232 (BCDADD_LT): Likewise.
14233 (BCDADD_EQ): Likewise.
14234 (BCDADD_GT): Likewise.
14235 (BCDADD_OV): Likewise.
14236 (BCDSUB): Likewise.
14237 (BCDSUB_LT): Likewise.
14238 (BCDSUB_EQ): Likewise.
14239 (BCDSUB_GT): Likewise.
14240 (BCDSUB_OV): Likewise.
14241 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
14242 (UNPACK_TD): Likewise.
14243 (PACK_TF): Likewise.
14244 (UNPACK_TF): Likewise.
14245 (UNPACK_TF_0): Likewise.
14246 (UNPACK_TF_1): Likewise.
14247 (PACK_V1TI): Likewise.
14248 (UNPACK_V1TI): Likewise.
14249
14250 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
14251 support for decimal floating point builtin functions.
14252 (rs6000_expand_ternop_builtin): Add checks for the new builtin
14253 functions that take constant arguments.
14254 (rs6000_invalid_builtin): Add decimal floating point builtin support.
14255 (rs6000_init_builtins): Setup long double, _Decimal64, and
14256 _Decimal128 types for new builtin functions.
14257 (builtin_function_type): Set the unsigned flags appropriately for
14258 the new builtin functions.
14259 (rs6000_opt_masks): Add support for decimal floating point builtin
14260 functions.
14261
14262 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
14263 floating point builtin functions.
14264 (RS6000_BTM_COMMON): Likewise.
14265 (RS6000_BTI_long_double): Likewise.
14266 (RS6000_BTI_dfloat64): Likewise.
14267 (RS6000_BTI_dfloat128): Likewise.
14268 (long_double_type_internal_node): Likewise.
14269 (dfloat64_type_internal_node): Likewise.
14270 (dfloat128_type_internal_node): Likewise.
14271
14272 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
14273 2.07 bcd arithmetic instructions.
14274 (UNSPEC_BCDSUB): Likewise.
14275 (UNSPEC_BCD_OVERFLOW): Likewise.
14276 (UNSPEC_BCD_ADD_SUB): Likewise.
14277 (bcd_add_sub): Likewise.
14278 (BCD_TEST): Likewise.
14279 (bcd<bcd_add_sub>): Likewise.
14280 (bcd<bcd_add_sub>_test): Likewise.
14281 (bcd<bcd_add_sub>_test2): Likewise.
14282 (bcd<bcd_add_sub>_<code>): Likewise.
14283 (peephole2 for combined bcd ops): Likewise.
14284
14285 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
14286 decimal floating point builtin functions.
14287 (UNSPEC_DENBCD): Likewise.
14288 (UNSPEC_DXEX): Likewise.
14289 (UNSPEC_DIEX): Likewise.
14290 (UNSPEC_DSCLI): Likewise.
14291 (UNSPEC_DSCRI): Likewise.
14292 (D64_D128): Likewise.
14293 (dfp_suffix): Likewise.
14294 (dfp_ddedpd_<mode>): Likewise.
14295 (dfp_denbcd_<mode>): Likewise.
14296 (dfp_dxex_<mode>): Likewise.
14297 (dfp_diex_<mode>): Likewise.
14298 (dfp_dscli_<mode>): Likewise.
14299 (dfp_dscri_<mode>): Likewise.
14300
14301 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
14302 builtin functions.
14303 (UNSPEC_CDTBCD): Likewise.
14304 (UNSPEC_CBCDTD): Likewise.
14305 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
14306 (UNSPEC_DIVEO): Likewise.
14307 (UNSPEC_DIVEU): Likewise.
14308 (UNSPEC_DIVEUO): Likewise.
14309 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
14310 pack/unpack 128-bit types.
14311 (UNSPEC_PACK_128BIT): Likewise.
14312 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
14313 (udiv<mode>3): Use idiv_ldiv mode attribute.
14314 (div<mode>3): Likewise.
14315 (addg6s): Add new BCD builtin functions.
14316 (cdtbcd): Likewise.
14317 (cbcdtd): Likewise.
14318 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
14319 (div_extend): Likewise.
14320 (div<div_extend>_<mode>"): Likewise.
14321 (FP128_64): Add support for new builtin functions to pack/unpack
14322 128-bit types.
14323 (unpack<mode>): Likewise.
14324 (unpacktf_0): Likewise.
14325 (unpacktf_1): Likewise.
14326 (unpack<mode>_dm): Likewise.
14327 (unpack<mode>_nodm): Likewise.
14328 (pack<mode>): Likewise.
14329 (unpackv1ti): Likewise.
14330 (packv1ti): Likewise.
14331
14332 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
14333
14334 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
14335 is disabled.
14336
14337 2014-04-24 Jakub Jelinek <jakub@redhat.com>
14338
14339 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
14340 * gimplify.c (omp_is_private): Change last argument's type to int.
14341 Only diagnose lastprivate if the simd argument is 1, only diagnose
14342 linear if the simd argument is 2.
14343 (gimplify_omp_for): Adjust omp_is_private callers. When adding
14344 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
14345 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
14346 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
14347 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
14348 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14349 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
14350 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14351 * tree-nested.c (convert_nonlocal_omp_clauses,
14352 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
14353
14354 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
14355
14356 PR target/60822
14357 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
14358 operand 1.
14359
14360 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
14361
14362 * flag-types.h (enum ivar_visibility): Add.
14363
14364 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
14365
14366 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
14367 function * argument.
14368
14369 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
14370
14371 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
14372
14373 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14374 Tom de Vries <tom@codesourcery.com>
14375
14376 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
14377 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
14378 reg-note.
14379 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
14380 * emit-rtl.c (try_split): Same.
14381
14382 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14383 Tom de Vries <tom@codesourcery.com>
14384
14385 * common.opt (fuse-caller-save): New option.
14386
14387 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
14388
14389 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
14390 elements for big-endian.
14391
14392 2014-04-24 Richard Biener <rguenther@suse.de>
14393
14394 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
14395 during TER and instead use the sepops interface for expanding
14396 non-GIMPLE_SINGLE_RHS.
14397
14398 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14399
14400 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
14401 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
14402
14403 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14404
14405 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
14406 assembler 64-bit option.
14407 * configure: Regenerate.
14408
14409 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14410
14411 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
14412 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
14413 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
14414 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
14415 (TARGET_CRYPTO): Take TARGET_SIMD into account.
14416
14417 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14418
14419 * config/aarch64/aarch64-builtins.c
14420 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
14421 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
14422 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
14423 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
14424 builtins.
14425 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
14426 (Vrevsuff): New mode attribute.
14427
14428 2014-04-24 Terry Guo <terry.guo@arm.com>
14429
14430 * config/arm/arm.h (machine_function): Define variable
14431 after_arm_reorg here.
14432 * config/arm/arm.c (after_arm_reorg): Remove the definition.
14433 (arm_split_constant): Update the way to access variable
14434 after_arm_reorg.
14435 (arm_reorg): Ditto.
14436 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
14437
14438 2014-04-23 Tom de Vries <tom@codesourcery.com>
14439
14440 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
14441
14442 2014-04-23 David Malcolm <dmalcolm@redhat.com>
14443
14444 * is-a.h: Update comments to reflect the following changes to the
14445 "pointerness" of the API, making the template parameter match the
14446 return type, allowing use of is-a.h with typedefs of pointers.
14447 (is_a_helper::cast): Return a T rather then a pointer to a T, so
14448 that the return type matches the parameter to the is_a_helper.
14449 (as_a): Likewise.
14450 (dyn_cast): Likewise.
14451
14452 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
14453 pointer from the is-a.h API.
14454
14455 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
14456 (is_a_helper <cgraph_node *>::test): ...this, matching change to
14457 is-a.h API.
14458 (is_a_helper <varpool_node>::test): Likewise, convert to...
14459 (is_a_helper <varpool_node *>::test): ...this.
14460
14461 (varpool_first_variable): Update for removal of implicit pointer
14462 from the is-a.h API.
14463 (varpool_next_variable): Likewise.
14464 (varpool_first_static_initializer): Likewise.
14465 (varpool_next_static_initializer): Likewise.
14466 (varpool_first_defined_variable): Likewise.
14467 (varpool_next_defined_variable): Likewise.
14468 (cgraph_first_defined_function): Likewise.
14469 (cgraph_next_defined_function): Likewise.
14470 (cgraph_first_function): Likewise.
14471 (cgraph_next_function): Likewise.
14472 (cgraph_first_function_with_gimple_body): Likewise.
14473 (cgraph_next_function_with_gimple_body): Likewise.
14474 (cgraph_alias_target): Likewise.
14475 (varpool_alias_target): Likewise.
14476 (cgraph_function_or_thunk_node): Likewise.
14477 (varpool_variable_node): Likewise.
14478 (symtab_real_symbol_p): Likewise.
14479 * cgraphunit.c (referred_to_p): Likewise.
14480 (analyze_functions): Likewise.
14481 (handle_alias_pairs): Likewise.
14482 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
14483 * gimple-ssa.h (gimple_vuse_op): Likewise.
14484 (gimple_vdef_op): Likewise.
14485 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
14486 * gimple.c (gimple_build_asm_1): Likewise.
14487 (gimple_build_try): Likewise.
14488 (gimple_build_resx): Likewise.
14489 (gimple_build_eh_dispatch): Likewise.
14490 (gimple_build_omp_for): Likewise.
14491 (gimple_omp_for_set_clauses): Likewise.
14492
14493 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
14494 (is_a_helper <gimple_statement_asm *>::test): ...this.
14495 (is_a_helper <gimple_statement_bind>::test): Convert to...
14496 (is_a_helper <gimple_statement_bind *>::test): ...this.
14497 (is_a_helper <gimple_statement_call>::test): Convert to...
14498 (is_a_helper <gimple_statement_call *>::test): ...this.
14499 (is_a_helper <gimple_statement_catch>::test): Convert to...
14500 (is_a_helper <gimple_statement_catch *>::test): ...this.
14501 (is_a_helper <gimple_statement_resx>::test): Convert to...
14502 (is_a_helper <gimple_statement_resx *>::test): ...this.
14503 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
14504 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
14505 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
14506 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
14507 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
14508 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
14509 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
14510 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
14511 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
14512 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
14513 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
14514 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
14515 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
14516 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
14517 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
14518 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
14519 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
14520 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
14521 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
14522 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
14523 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
14524 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
14525 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
14526 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
14527 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
14528 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
14529 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
14530 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
14531 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
14532 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
14533 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
14534 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
14535 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
14536 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
14537 (is_a_helper <gimple_statement_phi>::test): Convert to...
14538 (is_a_helper <gimple_statement_phi *>::test): ...this.
14539 (is_a_helper <gimple_statement_transaction>::test): Convert to...
14540 (is_a_helper <gimple_statement_transaction *>::test): ...this.
14541 (is_a_helper <gimple_statement_try>::test): Convert to...
14542 (is_a_helper <gimple_statement_try *>::test): ...this.
14543 (is_a_helper <gimple_statement_wce>::test): Convert to...
14544 (is_a_helper <gimple_statement_wce *>::test): ...this.
14545 (is_a_helper <const gimple_statement_asm>::test): Convert to...
14546 (is_a_helper <const gimple_statement_asm *>::test): ...this.
14547 (is_a_helper <const gimple_statement_bind>::test): Convert to...
14548 (is_a_helper <const gimple_statement_bind *>::test): ...this.
14549 (is_a_helper <const gimple_statement_call>::test): Convert to...
14550 (is_a_helper <const gimple_statement_call *>::test): ...this.
14551 (is_a_helper <const gimple_statement_catch>::test): Convert to...
14552 (is_a_helper <const gimple_statement_catch *>::test): ...this.
14553 (is_a_helper <const gimple_statement_resx>::test): Convert to...
14554 (is_a_helper <const gimple_statement_resx *>::test): ...this.
14555 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
14556 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
14557 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
14558 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
14559 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
14560 Convert to...
14561 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
14562 ...this.
14563 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
14564 Convert to...
14565 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
14566 ...this.
14567 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
14568 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
14569 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
14570 to...
14571 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
14572 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
14573 to...
14574 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
14575 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
14576 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
14577 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
14578 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
14579 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
14580 to...
14581 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
14582 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
14583 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
14584 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
14585 to...
14586 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
14587 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
14588 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
14589 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
14590 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
14591 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
14592 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
14593 (is_a_helper <const gimple_statement_phi>::test): Convert to...
14594 (is_a_helper <const gimple_statement_phi *>::test): ...this.
14595 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
14596 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
14597 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
14598 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
14599 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
14600 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
14601 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
14602 to...
14603 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
14604 ...this.
14605 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
14606 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
14607
14608 (gimple_use_ops): Update for removal of implicit pointer from the
14609 is-a.h API.
14610 (gimple_set_use_ops): Likewise.
14611 (gimple_vuse): Likewise.
14612 (gimple_vdef): Likewise.
14613 (gimple_vuse_ptr): Likewise.
14614 (gimple_vdef_ptr): Likewise.
14615 (gimple_set_vuse): Likewise.
14616 (gimple_set_vdef): Likewise.
14617 (gimple_omp_return_set_lhs): Likewise.
14618 (gimple_omp_return_lhs): Likewise.
14619 (gimple_omp_return_lhs_ptr): Likewise.
14620 (gimple_call_fntype): Likewise.
14621 (gimple_call_set_fntype): Likewise.
14622 (gimple_call_set_internal_fn): Likewise.
14623 (gimple_call_use_set): Likewise.
14624 (gimple_call_clobber_set): Likewise.
14625 (gimple_bind_vars): Likewise.
14626 (gimple_bind_set_vars): Likewise.
14627 (gimple_bind_body_ptr): Likewise.
14628 (gimple_bind_set_body): Likewise.
14629 (gimple_bind_add_stmt): Likewise.
14630 (gimple_bind_block): Likewise.
14631 (gimple_bind_set_block): Likewise.
14632 (gimple_asm_ninputs): Likewise.
14633 (gimple_asm_noutputs): Likewise.
14634 (gimple_asm_nclobbers): Likewise.
14635 (gimple_asm_nlabels): Likewise.
14636 (gimple_asm_input_op): Likewise.
14637 (gimple_asm_input_op_ptr): Likewise.
14638 (gimple_asm_output_op): Likewise.
14639 (gimple_asm_output_op_ptr): Likewise.
14640 (gimple_asm_set_output_op): Likewise.
14641 (gimple_asm_clobber_op): Likewise.
14642 (gimple_asm_set_clobber_op): Likewise.
14643 (gimple_asm_label_op): Likewise.
14644 (gimple_asm_set_label_op): Likewise.
14645 (gimple_asm_string): Likewise.
14646 (gimple_catch_types): Likewise.
14647 (gimple_catch_types_ptr): Likewise.
14648 (gimple_catch_handler_ptr): Likewise.
14649 (gimple_catch_set_types): Likewise.
14650 (gimple_catch_set_handler): Likewise.
14651 (gimple_eh_filter_types): Likewise.
14652 (gimple_eh_filter_types_ptr): Likewise.
14653 (gimple_eh_filter_failure_ptr): Likewise.
14654 (gimple_eh_filter_set_types): Likewise.
14655 (gimple_eh_filter_set_failure): Likewise.
14656 (gimple_eh_must_not_throw_fndecl): Likewise.
14657 (gimple_eh_must_not_throw_set_fndecl): Likewise.
14658 (gimple_eh_else_n_body_ptr): Likewise.
14659 (gimple_eh_else_e_body_ptr): Likewise.
14660 (gimple_eh_else_set_n_body): Likewise.
14661 (gimple_eh_else_set_e_body): Likewise.
14662 (gimple_try_eval_ptr): Likewise.
14663 (gimple_try_cleanup_ptr): Likewise.
14664 (gimple_try_set_eval): Likewise.
14665 (gimple_try_set_cleanup): Likewise.
14666 (gimple_wce_cleanup_ptr): Likewise.
14667 (gimple_wce_set_cleanup): Likewise.
14668 (gimple_phi_capacity): Likewise.
14669 (gimple_phi_num_args): Likewise.
14670 (gimple_phi_result): Likewise.
14671 (gimple_phi_result_ptr): Likewise.
14672 (gimple_phi_set_result): Likewise.
14673 (gimple_phi_arg): Likewise.
14674 (gimple_phi_set_arg): Likewise.
14675 (gimple_resx_region): Likewise.
14676 (gimple_resx_set_region): Likewise.
14677 (gimple_eh_dispatch_region): Likewise.
14678 (gimple_eh_dispatch_set_region): Likewise.
14679 (gimple_omp_critical_name): Likewise.
14680 (gimple_omp_critical_name_ptr): Likewise.
14681 (gimple_omp_critical_set_name): Likewise.
14682 (gimple_omp_for_clauses): Likewise.
14683 (gimple_omp_for_clauses_ptr): Likewise.
14684 (gimple_omp_for_set_clauses): Likewise.
14685 (gimple_omp_for_collapse): Likewise.
14686 (gimple_omp_for_index): Likewise.
14687 (gimple_omp_for_index_ptr): Likewise.
14688 (gimple_omp_for_set_index): Likewise.
14689 (gimple_omp_for_initial): Likewise.
14690 (gimple_omp_for_initial_ptr): Likewise.
14691 (gimple_omp_for_set_initial): Likewise.
14692 (gimple_omp_for_final): Likewise.
14693 (gimple_omp_for_final_ptr): Likewise.
14694 (gimple_omp_for_set_final): Likewise.
14695 (gimple_omp_for_incr): Likewise.
14696 (gimple_omp_for_incr_ptr): Likewise.
14697 (gimple_omp_for_set_incr): Likewise.
14698 (gimple_omp_for_pre_body_ptr): Likewise.
14699 (gimple_omp_for_set_pre_body): Likewise.
14700 (gimple_omp_parallel_clauses): Likewise.
14701 (gimple_omp_parallel_clauses_ptr): Likewise.
14702 (gimple_omp_parallel_set_clauses): Likewise.
14703 (gimple_omp_parallel_child_fn): Likewise.
14704 (gimple_omp_parallel_child_fn_ptr): Likewise.
14705 (gimple_omp_parallel_set_child_fn): Likewise.
14706 (gimple_omp_parallel_data_arg): Likewise.
14707 (gimple_omp_parallel_data_arg_ptr): Likewise.
14708 (gimple_omp_parallel_set_data_arg): Likewise.
14709 (gimple_omp_task_clauses): Likewise.
14710 (gimple_omp_task_clauses_ptr): Likewise.
14711 (gimple_omp_task_set_clauses): Likewise.
14712 (gimple_omp_task_child_fn): Likewise.
14713 (gimple_omp_task_child_fn_ptr): Likewise.
14714 (gimple_omp_task_set_child_fn): Likewise.
14715 (gimple_omp_task_data_arg): Likewise.
14716 (gimple_omp_task_data_arg_ptr): Likewise.
14717 (gimple_omp_task_set_data_arg): Likewise.
14718 (gimple_omp_taskreg_clauses): Likewise.
14719 (gimple_omp_taskreg_clauses_ptr): Likewise.
14720 (gimple_omp_taskreg_set_clauses): Likewise.
14721 (gimple_omp_taskreg_child_fn): Likewise.
14722 (gimple_omp_taskreg_child_fn_ptr): Likewise.
14723 (gimple_omp_taskreg_set_child_fn): Likewise.
14724 (gimple_omp_taskreg_data_arg): Likewise.
14725 (gimple_omp_taskreg_data_arg_ptr): Likewise.
14726 (gimple_omp_taskreg_set_data_arg): Likewise.
14727 (gimple_omp_task_copy_fn): Likewise.
14728 (gimple_omp_task_copy_fn_ptr): Likewise.
14729 (gimple_omp_task_set_copy_fn): Likewise.
14730 (gimple_omp_task_arg_size): Likewise.
14731 (gimple_omp_task_arg_size_ptr): Likewise.
14732 (gimple_omp_task_set_arg_size): Likewise.
14733 (gimple_omp_task_arg_align): Likewise.
14734 (gimple_omp_task_arg_align_ptr): Likewise.
14735 (gimple_omp_task_set_arg_align): Likewise.
14736 (gimple_omp_single_clauses): Likewise.
14737 (gimple_omp_single_clauses_ptr): Likewise.
14738 (gimple_omp_single_set_clauses): Likewise.
14739 (gimple_omp_target_clauses): Likewise.
14740 (gimple_omp_target_clauses_ptr): Likewise.
14741 (gimple_omp_target_set_clauses): Likewise.
14742 (gimple_omp_target_child_fn): Likewise.
14743 (gimple_omp_target_child_fn_ptr): Likewise.
14744 (gimple_omp_target_set_child_fn): Likewise.
14745 (gimple_omp_target_data_arg): Likewise.
14746 (gimple_omp_target_data_arg_ptr): Likewise.
14747 (gimple_omp_target_set_data_arg): Likewise.
14748 (gimple_omp_teams_clauses): Likewise.
14749 (gimple_omp_teams_clauses_ptr): Likewise.
14750 (gimple_omp_teams_set_clauses): Likewise.
14751 (gimple_omp_sections_clauses): Likewise.
14752 (gimple_omp_sections_clauses_ptr): Likewise.
14753 (gimple_omp_sections_set_clauses): Likewise.
14754 (gimple_omp_sections_control): Likewise.
14755 (gimple_omp_sections_control_ptr): Likewise.
14756 (gimple_omp_sections_set_control): Likewise.
14757 (gimple_omp_for_set_cond): Likewise.
14758 (gimple_omp_for_cond): Likewise.
14759 (gimple_omp_atomic_store_set_val): Likewise.
14760 (gimple_omp_atomic_store_val): Likewise.
14761 (gimple_omp_atomic_store_val_ptr): Likewise.
14762 (gimple_omp_atomic_load_set_lhs): Likewise.
14763 (gimple_omp_atomic_load_lhs): Likewise.
14764 (gimple_omp_atomic_load_lhs_ptr): Likewise.
14765 (gimple_omp_atomic_load_set_rhs): Likewise.
14766 (gimple_omp_atomic_load_rhs): Likewise.
14767 (gimple_omp_atomic_load_rhs_ptr): Likewise.
14768 (gimple_omp_continue_control_def): Likewise.
14769 (gimple_omp_continue_control_def_ptr): Likewise.
14770 (gimple_omp_continue_set_control_def): Likewise.
14771 (gimple_omp_continue_control_use): Likewise.
14772 (gimple_omp_continue_control_use_ptr): Likewise.
14773 (gimple_omp_continue_set_control_use): Likewise.
14774 (gimple_transaction_body_ptr): Likewise.
14775 (gimple_transaction_label): Likewise.
14776 (gimple_transaction_label_ptr): Likewise.
14777 (gimple_transaction_set_body): Likewise.
14778 (gimple_transaction_set_label): Likewise.
14779
14780 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
14781 * ipa-inline-analysis.c (inline_write_summary): Likewise.
14782 * ipa-ref.c (ipa_record_reference): Likewise.
14783 * ipa-reference.c (analyze_function): Likewise.
14784 (ipa_reference_write_optimization_summary): Likewise.
14785 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
14786 (address_taken_from_non_vtable_p): Likewise.
14787 (comdat_can_be_unshared_p_1): Likewise.
14788 * lto-cgraph.c (lto_output_ref): Likewise.
14789 (add_references): Likewise.
14790 (compute_ltrans_boundary): Likewise.
14791 (output_symtab): Likewise.
14792 (input_ref): Likewise.
14793 (input_cgraph_1): Likewise.
14794 (output_cgraph_opt_summary): Likewise.
14795 * lto-streamer-out.c (lto_output): Likewise.
14796 (output_symbol_p): Likewise.
14797 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
14798 (lsei_start_function_in_partition): Likewise.
14799 (lsei_next_variable_in_partition): Likewise.
14800 (lsei_start_variable_in_partition): Likewise.
14801 * symtab.c (insert_to_assembler_name_hash): Likewise.
14802 (unlink_from_assembler_name_hash): Likewise.
14803 (symtab_unregister_node): Likewise.
14804 (symtab_remove_node): Likewise.
14805 (dump_symtab_node): Likewise.
14806 (verify_symtab_base): Likewise.
14807 (verify_symtab_node): Likewise.
14808 (symtab_make_decl_local): Likewise.
14809 (symtab_alias_ultimate_target): Likewise.
14810 (symtab_resolve_alias): Likewise.
14811 (symtab_get_symbol_partitioning_class): Likewise.
14812 * tree-phinodes.c (allocate_phi_node): Likewise.
14813 (reserve_phi_args_for_new_edge): Likewise.
14814 (remove_phi_args): Likewise.
14815 * varpool.c (varpool_node_for_asm): Likewise.
14816 (varpool_remove_unreferenced_decls): Likewise.
14817
14818 2014-04-23 Jeff Law <law@redhat.com>
14819
14820 PR tree-optimization/60902
14821 * tree-ssa-threadedge.c
14822 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
14823 invalidate outputs from statements that do not produce useful
14824 outputs for threading.
14825
14826 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14827
14828 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
14829 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
14830 machine descriptions for Stack Smashing Protector.
14831
14832 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
14833
14834 * aarch64.md (<optab>_rol<mode>3): New pattern.
14835 (<optab>_rolsi3_uxtw): Likewise.
14836 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
14837
14838 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
14839
14840 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
14841 (arm_cortex_a12_tune): Likewise.
14842
14843 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14844
14845 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
14846
14847 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14848
14849 * config/arm/arm.md (arm_rev16si2): New pattern.
14850 (arm_rev16si2_alt): Likewise.
14851 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
14852
14853 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14854
14855 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
14856 (rev16<mode>2_alt): Likewise.
14857 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
14858 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
14859 (aarch_rev16_shleft_mask_imm_p): Likewise.
14860 (aarch_rev16_p_1): Likewise.
14861 (aarch_rev16_p): Likewise.
14862 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
14863 (aarch_rev16_shright_mask_imm_p): Likewise.
14864 (aarch_rev16_shleft_mask_imm_p): Likewise.
14865
14866 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14867
14868 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
14869 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
14870 rev cost.
14871 (cortex_a53_extra_costs): Likewise.
14872 (cortex_a57_extra_costs): Likewise.
14873 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
14874 (cortexa7_extra_costs): Likewise.
14875 (cortexa8_extra_costs): Likewise.
14876 (cortexa12_extra_costs): Likewise.
14877 (cortexa15_extra_costs): Likewise.
14878 (v7m_extra_costs): Likewise.
14879 (arm_new_rtx_costs): Handle BSWAP.
14880
14881 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14882
14883 * config/arm/arm.c (cortexa8_extra_costs): New table.
14884 (arm_cortex_a8_tune): New tuning struct.
14885 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
14886
14887 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14888
14889 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
14890
14891 2014-04-23 Richard Biener <rguenther@suse.de>
14892
14893 * Makefile.in (OBJS): Remove loop-unswitch.o.
14894 * tree-pass.h (make_pass_rtl_unswitch): Remove.
14895 * passes.def (pass_rtl_unswitch): Likewise.
14896 * loop-init.c (gate_rtl_unswitch): Likewise.
14897 (rtl_unswitch): Likewise.
14898 (pass_data_rtl_unswitch): Likewise.
14899 (pass_rtl_unswitch): Likewise.
14900 (make_pass_rtl_unswitch): Likewise.
14901 * rtl.h (reversed_condition): Likewise.
14902 (compare_and_jump_seq): Likewise.
14903 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
14904 and make static.
14905 * loop-unroll.c (compare_and_jump_seq): Likewise.
14906
14907 2014-04-23 Richard Biener <rguenther@suse.de>
14908
14909 PR tree-optimization/60903
14910 * tree-ssa-loop-im.c (analyze_memory_references): Remove
14911 commented code block.
14912 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
14913 loop flags to newly created BBs and edges.
14914
14915 2014-04-23 Nick Clifton <nickc@redhat.com>
14916
14917 * config/msp430/msp430.c (msp430_handle_option): Move function
14918 to msp430-common.c
14919 (msp430_option_override): Simplify mcu and mcpu option handling.
14920 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
14921 support for -mhwmult command line option.
14922 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
14923 -mhwmult command line option.
14924 (msp430_hwmult_enabled): Delete.
14925 (msp43o_output_labelref): Add support for -mhwmult command line option.
14926 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
14927 (umulsidi3): Likewise.
14928 * config/msp430/msp430.opt (mmcu): Add Report attribute.
14929 (mcpu, mlarge, msmall): Likewise.
14930 (mhwmult): New option.
14931 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
14932 prototype.
14933 (msp430_is_f5_mcu): Remove prototype.
14934 (msp430_use_f5_series_hwmult): Add prototype.
14935 * config/msp430/msp430-opts.h: New file.
14936 * common/config/msp430: New directory.
14937 * common/config/msp430/msp430-common.c: New file.
14938 * config.gcc (msp430): Remove target_has_targetm_common.
14939 * doc/invoke.texi: Document -mhwmult command line option.
14940
14941 2014-04-23 Nick Clifton <nickc@redhat.com>
14942
14943 * config/i386/cygwin.h (ENDFILE_SPEC): Include
14944 default-manifest.o if it can be found in the search path.
14945 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14946
14947 2014-04-23 Terry Guo <terry.guo@arm.com>
14948
14949 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
14950
14951 2014-04-23 Richard Biener <rguenther@suse.de>
14952
14953 PR middle-end/60895
14954 * tree-inline.c (declare_return_variable): Use mark_addressable.
14955
14956 2014-04-23 Richard Biener <rguenther@suse.de>
14957
14958 PR middle-end/60891
14959 * loop-init.c (loop_optimizer_init): Make sure to apply
14960 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
14961
14962 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14963
14964 PR sanitizer/60275
14965 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
14966 New options.
14967 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
14968 if flag_sanitize_undefined_trap_on_error.
14969 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
14970 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
14971 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
14972 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
14973 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
14974 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
14975 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
14976 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
14977 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
14978 * ubsan.c (ubsan_instrument_unreachable): Return
14979 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
14980 (ubsan_expand_null_ifn): Emit __builtin_trap ()
14981 if flag_sanitize_undefined_trap_on_error and
14982 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
14983 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
14984 instrument_bool_enum_load): Emit __builtin_trap () if
14985 flag_sanitize_undefined_trap_on_error and
14986 __builtin_handle_*_abort () if !flag_sanitize_recover.
14987 * doc/invoke.texi (-fsanitize-recover,
14988 -fsanitize-undefined-trap-on-error): Document.
14989
14990 2014-04-22 Christian Bruel <christian.bruel@st.com>
14991
14992 * config/sh/sh.md (mov<mode>): Replace movQIHI.
14993 Force immediates to SImode.
14994
14995 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
14996
14997 * config/nios2/nios2.md (UNSPEC_ROUND): New.
14998 (lroundsfsi2): New.
14999 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
15000 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
15001 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
15002 (nios2_fpu_insn): Add entry for round.
15003 (N2FPU_NO_ERRNO_P): Define.
15004 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
15005 flag_errno_math.
15006 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
15007
15008 2014-04-22 Richard Henderson <rth@redhat.com>
15009
15010 * config/aarch64/aarch64 (addti3, subti3): New expanders.
15011 (add<GPI>3_compare0): Remove leading * from name.
15012 (add<GPI>3_carryin): Likewise.
15013 (sub<GPI>3_compare0): Likewise.
15014 (sub<GPI>3_carryin): Likewise.
15015 (<su_optab>mulditi3): New expander.
15016 (multi3): New expander.
15017 (madd<GPI>): Remove leading * from name.
15018
15019 2014-04-22 Martin Jambor <mjambor@suse.cz>
15020
15021 * cgraphclones.c (cgraph_function_versioning): Copy
15022 ipa_transforms_to_apply instead of asserting it is empty.
15023
15024 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
15025
15026 PR target/60868
15027 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
15028 on count_exp to get mode.
15029
15030 2014-04-22 Andrew Pinski <apinski@cavium.com>
15031
15032 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15033 Handle TLS for ILP32.
15034 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
15035 (tlsie_small_<mode>): this and handle PTR.
15036 (tlsie_small_sidi): New pattern.
15037 (tlsle_small): Change to an expand to handle ILP32.
15038 (tlsle_small_<mode>): New pattern.
15039 (tlsdesc_small): Rename to ...
15040 (tlsdesc_small_<mode>): this and handle PTR.
15041
15042 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15043
15044 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
15045
15046 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15047
15048 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
15049 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
15050 (aarch64_types_signed_poly_qualifiers): Likewise.
15051 (aarch64_types_unsigned_signed_qualifiers): Likewise.
15052 (aarch64_types_poly_signed_qualifiers): Likewise.
15053 (TYPES_REINTERP_SS): Type macro added.
15054 (TYPES_REINTERP_SU): Likewise.
15055 (TYPES_REINTERP_SP): Likewise.
15056 (TYPES_REINTERP_US): Likewise.
15057 (TYPES_REINTERP_PS): Likewise.
15058 (aarch64_fold_builtin): New expression folding added.
15059 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
15060 Declarations removed.
15061 (REINTERP_SS): Declarations added.
15062 (REINTERP_US): Likewise.
15063 (REINTERP_PS): Likewise.
15064 (REINTERP_SU): Likewise.
15065 (REINTERP_SP): Likewise.
15066 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
15067 (vreinterpretq_p8_f64): Likewise.
15068 (vreinterpret_p16_f64): Likewise.
15069 (vreinterpretq_p16_f64): Likewise.
15070 (vreinterpret_f32_f64): Likewise.
15071 (vreinterpretq_f32_f64): Likewise.
15072 (vreinterpret_f64_f32): Likewise.
15073 (vreinterpret_f64_p8): Likewise.
15074 (vreinterpret_f64_p16): Likewise.
15075 (vreinterpret_f64_s8): Likewise.
15076 (vreinterpret_f64_s16): Likewise.
15077 (vreinterpret_f64_s32): Likewise.
15078 (vreinterpret_f64_s64): Likewise.
15079 (vreinterpret_f64_u8): Likewise.
15080 (vreinterpret_f64_u16): Likewise.
15081 (vreinterpret_f64_u32): Likewise.
15082 (vreinterpret_f64_u64): Likewise.
15083 (vreinterpretq_f64_f32): Likewise.
15084 (vreinterpretq_f64_p8): Likewise.
15085 (vreinterpretq_f64_p16): Likewise.
15086 (vreinterpretq_f64_s8): Likewise.
15087 (vreinterpretq_f64_s16): Likewise.
15088 (vreinterpretq_f64_s32): Likewise.
15089 (vreinterpretq_f64_s64): Likewise.
15090 (vreinterpretq_f64_u8): Likewise.
15091 (vreinterpretq_f64_u16): Likewise.
15092 (vreinterpretq_f64_u32): Likewise.
15093 (vreinterpretq_f64_u64): Likewise.
15094 (vreinterpret_s64_f64): Likewise.
15095 (vreinterpretq_s64_f64): Likewise.
15096 (vreinterpret_u64_f64): Likewise.
15097 (vreinterpretq_u64_f64): Likewise.
15098 (vreinterpret_s8_f64): Likewise.
15099 (vreinterpretq_s8_f64): Likewise.
15100 (vreinterpret_s16_f64): Likewise.
15101 (vreinterpretq_s16_f64): Likewise.
15102 (vreinterpret_s32_f64): Likewise.
15103 (vreinterpretq_s32_f64): Likewise.
15104 (vreinterpret_u8_f64): Likewise.
15105 (vreinterpretq_u8_f64): Likewise.
15106 (vreinterpret_u16_f64): Likewise.
15107 (vreinterpretq_u16_f64): Likewise.
15108 (vreinterpret_u32_f64): Likewise.
15109 (vreinterpretq_u32_f64): Likewise.
15110
15111 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15112
15113 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
15114 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
15115 (vreinterpret_p8_s8): Likewise.
15116 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
15117 (vreinterpret_p8_s16): Likewise.
15118 (vreinterpret_p8_s32): Likewise.
15119 (vreinterpret_p8_s64): Likewise.
15120 (vreinterpret_p8_f32): Likewise.
15121 (vreinterpret_p8_u8): Likewise.
15122 (vreinterpret_p8_u16): Likewise.
15123 (vreinterpret_p8_u32): Likewise.
15124 (vreinterpret_p8_u64): Likewise.
15125 (vreinterpret_p8_p16): Likewise.
15126 (vreinterpretq_p8_s8): Likewise.
15127 (vreinterpretq_p8_s16): Likewise.
15128 (vreinterpretq_p8_s32): Likewise.
15129 (vreinterpretq_p8_s64): Likewise.
15130 (vreinterpretq_p8_f32): Likewise.
15131 (vreinterpretq_p8_u8): Likewise.
15132 (vreinterpretq_p8_u16): Likewise.
15133 (vreinterpretq_p8_u32): Likewise.
15134 (vreinterpretq_p8_u64): Likewise.
15135 (vreinterpretq_p8_p16): Likewise.
15136 (vreinterpret_p16_s8): Likewise.
15137 (vreinterpret_p16_s16): Likewise.
15138 (vreinterpret_p16_s32): Likewise.
15139 (vreinterpret_p16_s64): Likewise.
15140 (vreinterpret_p16_f32): Likewise.
15141 (vreinterpret_p16_u8): Likewise.
15142 (vreinterpret_p16_u16): Likewise.
15143 (vreinterpret_p16_u32): Likewise.
15144 (vreinterpret_p16_u64): Likewise.
15145 (vreinterpret_p16_p8): Likewise.
15146 (vreinterpretq_p16_s8): Likewise.
15147 (vreinterpretq_p16_s16): Likewise.
15148 (vreinterpretq_p16_s32): Likewise.
15149 (vreinterpretq_p16_s64): Likewise.
15150 (vreinterpretq_p16_f32): Likewise.
15151 (vreinterpretq_p16_u8): Likewise.
15152 (vreinterpretq_p16_u16): Likewise.
15153 (vreinterpretq_p16_u32): Likewise.
15154 (vreinterpretq_p16_u64): Likewise.
15155 (vreinterpretq_p16_p8): Likewise.
15156 (vreinterpret_f32_s8): Likewise.
15157 (vreinterpret_f32_s16): Likewise.
15158 (vreinterpret_f32_s32): Likewise.
15159 (vreinterpret_f32_s64): Likewise.
15160 (vreinterpret_f32_u8): Likewise.
15161 (vreinterpret_f32_u16): Likewise.
15162 (vreinterpret_f32_u32): Likewise.
15163 (vreinterpret_f32_u64): Likewise.
15164 (vreinterpret_f32_p8): Likewise.
15165 (vreinterpret_f32_p16): Likewise.
15166 (vreinterpretq_f32_s8): Likewise.
15167 (vreinterpretq_f32_s16): Likewise.
15168 (vreinterpretq_f32_s32): Likewise.
15169 (vreinterpretq_f32_s64): Likewise.
15170 (vreinterpretq_f32_u8): Likewise.
15171 (vreinterpretq_f32_u16): Likewise.
15172 (vreinterpretq_f32_u32): Likewise.
15173 (vreinterpretq_f32_u64): Likewise.
15174 (vreinterpretq_f32_p8): Likewise.
15175 (vreinterpretq_f32_p16): Likewise.
15176 (vreinterpret_s64_s8): Likewise.
15177 (vreinterpret_s64_s16): Likewise.
15178 (vreinterpret_s64_s32): Likewise.
15179 (vreinterpret_s64_f32): Likewise.
15180 (vreinterpret_s64_u8): Likewise.
15181 (vreinterpret_s64_u16): Likewise.
15182 (vreinterpret_s64_u32): Likewise.
15183 (vreinterpret_s64_u64): Likewise.
15184 (vreinterpret_s64_p8): Likewise.
15185 (vreinterpret_s64_p16): Likewise.
15186 (vreinterpretq_s64_s8): Likewise.
15187 (vreinterpretq_s64_s16): Likewise.
15188 (vreinterpretq_s64_s32): Likewise.
15189 (vreinterpretq_s64_f32): Likewise.
15190 (vreinterpretq_s64_u8): Likewise.
15191 (vreinterpretq_s64_u16): Likewise.
15192 (vreinterpretq_s64_u32): Likewise.
15193 (vreinterpretq_s64_u64): Likewise.
15194 (vreinterpretq_s64_p8): Likewise.
15195 (vreinterpretq_s64_p16): Likewise.
15196 (vreinterpret_u64_s8): Likewise.
15197 (vreinterpret_u64_s16): Likewise.
15198 (vreinterpret_u64_s32): Likewise.
15199 (vreinterpret_u64_s64): Likewise.
15200 (vreinterpret_u64_f32): Likewise.
15201 (vreinterpret_u64_u8): Likewise.
15202 (vreinterpret_u64_u16): Likewise.
15203 (vreinterpret_u64_u32): Likewise.
15204 (vreinterpret_u64_p8): Likewise.
15205 (vreinterpret_u64_p16): Likewise.
15206 (vreinterpretq_u64_s8): Likewise.
15207 (vreinterpretq_u64_s16): Likewise.
15208 (vreinterpretq_u64_s32): Likewise.
15209 (vreinterpretq_u64_s64): Likewise.
15210 (vreinterpretq_u64_f32): Likewise.
15211 (vreinterpretq_u64_u8): Likewise.
15212 (vreinterpretq_u64_u16): Likewise.
15213 (vreinterpretq_u64_u32): Likewise.
15214 (vreinterpretq_u64_p8): Likewise.
15215 (vreinterpretq_u64_p16): Likewise.
15216 (vreinterpret_s8_s16): Likewise.
15217 (vreinterpret_s8_s32): Likewise.
15218 (vreinterpret_s8_s64): Likewise.
15219 (vreinterpret_s8_f32): Likewise.
15220 (vreinterpret_s8_u8): Likewise.
15221 (vreinterpret_s8_u16): Likewise.
15222 (vreinterpret_s8_u32): Likewise.
15223 (vreinterpret_s8_u64): Likewise.
15224 (vreinterpret_s8_p8): Likewise.
15225 (vreinterpret_s8_p16): Likewise.
15226 (vreinterpretq_s8_s16): Likewise.
15227 (vreinterpretq_s8_s32): Likewise.
15228 (vreinterpretq_s8_s64): Likewise.
15229 (vreinterpretq_s8_f32): Likewise.
15230 (vreinterpretq_s8_u8): Likewise.
15231 (vreinterpretq_s8_u16): Likewise.
15232 (vreinterpretq_s8_u32): Likewise.
15233 (vreinterpretq_s8_u64): Likewise.
15234 (vreinterpretq_s8_p8): Likewise.
15235 (vreinterpretq_s8_p16): Likewise.
15236 (vreinterpret_s16_s8): Likewise.
15237 (vreinterpret_s16_s32): Likewise.
15238 (vreinterpret_s16_s64): Likewise.
15239 (vreinterpret_s16_f32): Likewise.
15240 (vreinterpret_s16_u8): Likewise.
15241 (vreinterpret_s16_u16): Likewise.
15242 (vreinterpret_s16_u32): Likewise.
15243 (vreinterpret_s16_u64): Likewise.
15244 (vreinterpret_s16_p8): Likewise.
15245 (vreinterpret_s16_p16): Likewise.
15246 (vreinterpretq_s16_s8): Likewise.
15247 (vreinterpretq_s16_s32): Likewise.
15248 (vreinterpretq_s16_s64): Likewise.
15249 (vreinterpretq_s16_f32): Likewise.
15250 (vreinterpretq_s16_u8): Likewise.
15251 (vreinterpretq_s16_u16): Likewise.
15252 (vreinterpretq_s16_u32): Likewise.
15253 (vreinterpretq_s16_u64): Likewise.
15254 (vreinterpretq_s16_p8): Likewise.
15255 (vreinterpretq_s16_p16): Likewise.
15256 (vreinterpret_s32_s8): Likewise.
15257 (vreinterpret_s32_s16): Likewise.
15258 (vreinterpret_s32_s64): Likewise.
15259 (vreinterpret_s32_f32): Likewise.
15260 (vreinterpret_s32_u8): Likewise.
15261 (vreinterpret_s32_u16): Likewise.
15262 (vreinterpret_s32_u32): Likewise.
15263 (vreinterpret_s32_u64): Likewise.
15264 (vreinterpret_s32_p8): Likewise.
15265 (vreinterpret_s32_p16): Likewise.
15266 (vreinterpretq_s32_s8): Likewise.
15267 (vreinterpretq_s32_s16): Likewise.
15268 (vreinterpretq_s32_s64): Likewise.
15269 (vreinterpretq_s32_f32): Likewise.
15270 (vreinterpretq_s32_u8): Likewise.
15271 (vreinterpretq_s32_u16): Likewise.
15272 (vreinterpretq_s32_u32): Likewise.
15273 (vreinterpretq_s32_u64): Likewise.
15274 (vreinterpretq_s32_p8): Likewise.
15275 (vreinterpretq_s32_p16): Likewise.
15276 (vreinterpret_u8_s8): Likewise.
15277 (vreinterpret_u8_s16): Likewise.
15278 (vreinterpret_u8_s32): Likewise.
15279 (vreinterpret_u8_s64): Likewise.
15280 (vreinterpret_u8_f32): Likewise.
15281 (vreinterpret_u8_u16): Likewise.
15282 (vreinterpret_u8_u32): Likewise.
15283 (vreinterpret_u8_u64): Likewise.
15284 (vreinterpret_u8_p8): Likewise.
15285 (vreinterpret_u8_p16): Likewise.
15286 (vreinterpretq_u8_s8): Likewise.
15287 (vreinterpretq_u8_s16): Likewise.
15288 (vreinterpretq_u8_s32): Likewise.
15289 (vreinterpretq_u8_s64): Likewise.
15290 (vreinterpretq_u8_f32): Likewise.
15291 (vreinterpretq_u8_u16): Likewise.
15292 (vreinterpretq_u8_u32): Likewise.
15293 (vreinterpretq_u8_u64): Likewise.
15294 (vreinterpretq_u8_p8): Likewise.
15295 (vreinterpretq_u8_p16): Likewise.
15296 (vreinterpret_u16_s8): Likewise.
15297 (vreinterpret_u16_s16): Likewise.
15298 (vreinterpret_u16_s32): Likewise.
15299 (vreinterpret_u16_s64): Likewise.
15300 (vreinterpret_u16_f32): Likewise.
15301 (vreinterpret_u16_u8): Likewise.
15302 (vreinterpret_u16_u32): Likewise.
15303 (vreinterpret_u16_u64): Likewise.
15304 (vreinterpret_u16_p8): Likewise.
15305 (vreinterpret_u16_p16): Likewise.
15306 (vreinterpretq_u16_s8): Likewise.
15307 (vreinterpretq_u16_s16): Likewise.
15308 (vreinterpretq_u16_s32): Likewise.
15309 (vreinterpretq_u16_s64): Likewise.
15310 (vreinterpretq_u16_f32): Likewise.
15311 (vreinterpretq_u16_u8): Likewise.
15312 (vreinterpretq_u16_u32): Likewise.
15313 (vreinterpretq_u16_u64): Likewise.
15314 (vreinterpretq_u16_p8): Likewise.
15315 (vreinterpretq_u16_p16): Likewise.
15316 (vreinterpret_u32_s8): Likewise.
15317 (vreinterpret_u32_s16): Likewise.
15318 (vreinterpret_u32_s32): Likewise.
15319 (vreinterpret_u32_s64): Likewise.
15320 (vreinterpret_u32_f32): Likewise.
15321 (vreinterpret_u32_u8): Likewise.
15322 (vreinterpret_u32_u16): Likewise.
15323 (vreinterpret_u32_u64): Likewise.
15324 (vreinterpret_u32_p8): Likewise.
15325 (vreinterpret_u32_p16): Likewise.
15326 (vreinterpretq_u32_s8): Likewise.
15327 (vreinterpretq_u32_s16): Likewise.
15328 (vreinterpretq_u32_s32): Likewise.
15329 (vreinterpretq_u32_s64): Likewise.
15330 (vreinterpretq_u32_f32): Likewise.
15331 (vreinterpretq_u32_u8): Likewise.
15332 (vreinterpretq_u32_u16): Likewise.
15333 (vreinterpretq_u32_u64): Likewise.
15334 (vreinterpretq_u32_p8): Likewise.
15335 (vreinterpretq_u32_p16): Likewise.
15336
15337 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15338
15339 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
15340 Pattern extended.
15341 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
15342 (sqabs): Likewise.
15343 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
15344 (vqnegd_s64): Likewise.
15345 (vqabs_s64): Likewise.
15346 (vqabsd_s64): Likewise.
15347
15348 2014-04-22 Richard Henderson <rth@redhat.com>
15349
15350 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
15351 computation to the top of the loop.
15352
15353 2014-04-22 Renlin <renlin.li@arm.com>
15354 Jiong Wang <jiong.wang@arm.com>
15355
15356 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
15357 * config/aarch64/aarch64.c (aarch64_layout_frame)
15358 (aarch64_initial_elimination_offset): Likewise.
15359
15360 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
15361
15362 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
15363 Fix indentation.
15364
15365 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
15366
15367 * machmode.h (bitwise_mode_for_mode): Declare.
15368 * stor-layout.h (bitwise_type_for_mode): Likewise.
15369 * stor-layout.c (bitwise_mode_for_mode): New function.
15370 (bitwise_type_for_mode): Likewise.
15371 * builtins.c (fold_builtin_memory_op): Use it instead of
15372 int_mode_for_mode and build_nonstandard_integer_type.
15373
15374 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15375
15376 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
15377 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
15378 (*-*-solaris2*): Simplify.
15379 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
15380 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
15381 *-*-solaris2.9* handling.
15382
15383 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
15384 as bug.
15385 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
15386 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
15387 handling, simplify.
15388 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
15389 * configure: Regenerate.
15390
15391 * config/i386/sol2-9.h: Remove.
15392
15393 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
15394 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
15395 Remove Solaris 9 references.
15396
15397 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
15398
15399 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
15400 (floatuns<GPI:mode><GPF:mode>2): Remove.
15401 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
15402 and floatuns conversions.
15403 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
15404 and floatuns conversions.
15405 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
15406 (w1,w2): New mode attributes for inequal width conversions.
15407
15408 2014-04-22 Renlin Li <Renlin.Li@arm.com>
15409
15410 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
15411 the output asm format.
15412
15413 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
15414
15415 * config/aarch64/aarch64-simd.md
15416 (aarch64_cm<optab>di): Always split.
15417 (*aarch64_cm<optab>di): New.
15418 (aarch64_cmtstdi): Always split.
15419 (*aarch64_cmtstdi): New.
15420
15421 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15422
15423 PR tree-optimization/60823
15424 * omp-low.c (ipa_simd_modify_function_body): Go through
15425 all SSA_NAMEs and for those refering to vector arguments
15426 which are going to be replaced adjust SSA_NAME_VAR and,
15427 if it is a default definition, change it into a non-default
15428 definition assigned at the beginning of function from new_decl.
15429 (ipa_simd_modify_stmt_ops): Rewritten.
15430 * tree-dfa.c (set_ssa_default_def): When removing default def,
15431 check for NULL loc instead of NULL *loc.
15432
15433 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15434
15435 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
15436 restrictions on core registers for DImode values in Thumb2.
15437
15438 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15439
15440 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
15441 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
15442
15443 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15444
15445 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
15446 (*iordi_notzesidi_di): Likewise.
15447 (*iordi_notsesidi_di): Likewise.
15448
15449 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15450
15451 * config/arm/arm-protos.h (tune_params): New struct members.
15452 * config/arm/arm.c: Initialise tune_params per processor.
15453 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
15454 for speed, based on new tune_params.
15455
15456 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15457
15458 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
15459 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
15460 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
15461 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
15462 * config/aarch64/arm_neon.h (vrnd_f64): Added.
15463 (vrnda_f64): Likewise.
15464 (vrndi_f64): Likewise.
15465 (vrndm_f64): Likewise.
15466 (vrndn_f64): Likewise.
15467 (vrndp_f64): Likewise.
15468 (vrndx_f64): Likewise.
15469
15470 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15471
15472 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
15473 GET_MODE_SIZE argument is enum machine_mode.
15474
15475 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15476
15477 PR target/60910
15478 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
15479 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
15480
15481 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
15482
15483 PR middle-end/60281
15484 * asan.c (asan_emit_stack_protection): Force the base to align to
15485 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
15486 appropriate bits if STRICT_ALIGNMENT.
15487 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
15488 when asan is on.
15489 (expand_used_vars): Leave a space in the stack frame for alignment
15490 if STRICT_ALIGNMENT.
15491
15492 2014-04-21 David Malcolm <dmalcolm@redhat.com>
15493
15494 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
15495 than a gimple.
15496 (gimple_store_p): Likewise.
15497 (gimple_assign_load_p): Likewise.
15498 (gimple_assign_cast_p): Likewise.
15499 (gimple_clobber_p): Likewise.
15500
15501 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
15502 rather than a gimple.
15503 (gimple_assign_cast_p): Likewise.
15504
15505 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15506
15507 PR target/60735
15508 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
15509 If mode is DDmode and TARGET_E500_DOUBLE allow move.
15510
15511 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
15512 more debug information for E500 if -mdebug=reg.
15513
15514 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
15515
15516 PR target/60909
15517 * config/i386/i386.c (ix86_expand_builtin)
15518 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
15519 register for target RTX.
15520 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
15521
15522 2014-04-18 Cong Hou <congh@google.com>
15523
15524 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
15525 the widen-mult pattern by handling two operands with different sizes,
15526 and operands whose size is smaller than half of the result type.
15527
15528 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15529
15530 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
15531 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
15532 (do_estimate_edge_time): Compute it.
15533 * ipa-inline.c (want_inline_small_function_p): Bypass
15534 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
15535
15536 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15537
15538 * ipa-inline.c (spec_rem): New static variable.
15539 (dump_overall_stats): New function.
15540 (dump_inline_stats): New function.
15541
15542 2014-04-18 Richard Henderson <rth@redhat.com>
15543
15544 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
15545 to GET_MODE_SIZE, not a reg_class_t.
15546
15547 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15548
15549 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
15550 (vsx_xxmrglw_<mode>): Likewise.
15551
15552 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
15553
15554 PR target/60876
15555 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
15556 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
15557 (rs6000_init_hard_regno_mode_ok): Likewise.
15558
15559 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
15560
15561 * ipa-inline.c (inline_small_functions): Account only non-cold
15562 functions.
15563 * doc/invoke.texi (inline-unit-growth): Update documentation.
15564
15565 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
15566
15567 * config/rs6000/rs6000.md (addti3, subti3): New.
15568
15569 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
15570
15571 PR target/60863
15572 * config/i386/i386.c (ix86_expand_clear): Remove outdated
15573 comment. Check optimize_insn_for_size_p instead of
15574 optimize_insn_for_speed_p.
15575
15576 2014-04-17 Martin Jambor <mjambor@suse.cz>
15577
15578 * gimple-iterator.c (gsi_start_edge): New function.
15579 * gimple-iterator.h (gsi_start_edge): Declare.
15580 * tree-sra.c (single_non_eh_succ): New function.
15581 (disqualify_ops_if_throwing_stmt): Renamed to
15582 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
15583 having one non-EH successor BB.
15584 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
15585 generate loads into replacements.
15586 (sra_modify_assign): Likewise and and also use the simple path for
15587 such statements.
15588 (sra_modify_function_body): Commit statements on edges.
15589
15590 2014-04-17 Richard Biener <rguenther@suse.de>
15591
15592 PR middle-end/60849
15593 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
15594 comparison results and add clarifying comment.
15595
15596 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15597
15598 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
15599 (blank_mode): Initialize it.
15600 (emit_mode_size_inline, emit_mode_nunits_inline,
15601 emit_mode_inner_inline): New functions.
15602 (emit_insn_modes_h): Call them and surround their output with
15603 #if GCC_VERSION >= 4001 ... #endif.
15604 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
15605 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
15606 mode_* arrays if the argument is __builtin_constant_p.
15607 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
15608 is enum machine_mode.
15609
15610 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15611
15612 * passes.c (opt_pass::execute): Adjust.
15613 (pass_manager::execute_pass_mode_switching): Likewise.
15614 (early_local_passes::execute): Likewise.
15615 (execute_one_pass): Pass cfun to the pass's execute method.
15616 * tree-pass.h (opt_pass::execute): Add function * argument.
15617 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15618 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15619 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15620 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15621 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15622 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
15623 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
15624 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15625 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15626 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
15627 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
15628 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
15629 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
15630 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
15631 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15632 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15633 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15634 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
15635 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15636 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15637 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15638 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15639 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15640 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15641 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15642 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15643 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15644 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15645 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15646 Adjust.
15647
15648 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15649
15650 * passes.c (opt_pass::gate): Take function * argument.
15651 (gate_all_early_local_passes): Merge into
15652 (early_local_passes::gate): this.
15653 (gate_all_early_optimizations): Merge into
15654 (all_early_optimizations::gate): this.
15655 (gate_all_optimizations): Mege into
15656 (all_optimizations::gate): this.
15657 (gate_all_optimizations_g): Merge into
15658 (all_optimizations_g::gate): this.
15659 (gate_rest_of_compilation): Mege into
15660 (rest_of_compilation::gate): this.
15661 (gate_postreload): Merge into
15662 (postreload::gate): this.
15663 (dump_one_pass): Pass cfun to the pass's gate method.
15664 (execute_ipa_summary_passes): Likewise.
15665 (execute_one_pass): Likewise.
15666 (ipa_write_summaries_2): Likewise.
15667 (ipa_write_optimization_summaries_1): Likewise.
15668 (ipa_read_summaries_1): Likewise.
15669 (ipa_read_optimization_summaries_1): Likewise.
15670 (execute_ipa_stmt_fixups): Likewise.
15671 * tree-pass.h (opt_pass::gate): Add function * argument.
15672 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
15673 combine-stack-adj.c, combine.c, compare-elim.c,
15674 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15675 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
15676 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
15677 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
15678 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15679 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15680 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15681 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
15682 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15683 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
15684 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15685 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15686 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
15687 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15688 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15689 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15690 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15691 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15692 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15693 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15694 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15695 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15696 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15697 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
15698 var-tracking.c, vtable-verify.c, web.c: Adjust.
15699
15700 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15701
15702 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
15703 * configure: Regenerate.
15704
15705 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15706
15707 * passes.c (dump_one_pass): don't check pass->has_gate.
15708 (execute_ipa_summary_passes): Likewise.
15709 (execute_one_pass): Likewise.
15710 (ipa_write_summaries_2): Likewise.
15711 (ipa_write_optimization_summaries_1): Likewise.
15712 (ipa_read_optimization_summaries_1): Likewise.
15713 (execute_ipa_stmt_fixups): Likewise.
15714 * tree-pass.h (pass_data::has_gate): Remove.
15715 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15716 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15717 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15718 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15719 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15720 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15721 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15722 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15723 gimple-low.c, gimple-ssa-isolate-paths.c,
15724 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15725 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15726 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15727 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
15728 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
15729 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
15730 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
15731 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15732 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
15733 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15734 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15735 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15736 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15737 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15738 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15739 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15740 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15741 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15742 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15743 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15744 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15745 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15746 Adjust.
15747
15748 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15749
15750 * pass_manager.h (pass_manager::register_dump_files_1): Remove
15751 declaration.
15752 * passes.c (pass_manager::register_dump_files_1): Merge into
15753 (pass_manager::register_dump_files): this, and remove its handling of
15754 properties since the pass always has the properties anyway.
15755 (pass_manager::pass_manager): Adjust.
15756
15757 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15758
15759 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
15760 * passes.c (pass_manager::register_dump_files_1): Remove dead code
15761 dealing with properties.
15762 (pass_manager::register_dump_files): Adjust.
15763
15764 2014-03-20 Mark Wielaard <mjw@redhat.com>
15765
15766 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
15767 then represent the bound as normal constant value.
15768
15769 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15770
15771 PR target/60847
15772 Forward port from 4.8 branch
15773 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
15774
15775 * config/i386/bmiintrin.h (_blsi_u32): New.
15776 (_blsi_u64): Ditto.
15777 (_blsr_u32): Ditto.
15778 (_blsr_u64): Ditto.
15779 (_blsmsk_u32): Ditto.
15780 (_blsmsk_u64): Ditto.
15781 (_tzcnt_u32): Ditto.
15782 (_tzcnt_u64): Ditto.
15783
15784 2014-04-17 Kito Cheng <kito@0xlab.org>
15785
15786 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
15787
15788 2014-04-17 Richard Biener <rguenther@suse.de>
15789
15790 PR middle-end/60849
15791 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
15792 boolean results for comparisons.
15793
15794 2014-04-17 Richard Biener <rguenther@suse.de>
15795
15796 PR tree-optimization/60836
15797 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
15798 initial PHI args to be gimple values.
15799
15800 2014-04-17 Richard Biener <rguenther@suse.de>
15801
15802 PR tree-optimization/60841
15803 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
15804 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
15805 of stmts to SLP build.
15806 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
15807 (vect_analyze_slp): Likewise.
15808 (vect_analyze_slp_instance): Likewise.
15809 (vect_build_slp_tree): Limit overall SLP tree growth.
15810 * tree-vectorizer.h (vect_analyze_data_refs,
15811 vect_analyze_slp): Adjust prototypes.
15812
15813 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15814
15815 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
15816 Silvermont.
15817
15818 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15819
15820 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
15821 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
15822 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
15823 for TARGET_SLOW_PSHUFB
15824
15825 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15826
15827 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
15828 * config/i386/i386.c (intel_cost): Ditto.
15829
15830 2014-04-17 Joey Ye <joey.ye@arm.com>
15831
15832 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
15833
15834 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15835
15836 * opts.c (common_handle_option): Disable -fipa-reference coorectly
15837 with -fuse-profile.
15838
15839 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15840
15841 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
15842 (type_all_derivations_known_p): New predicate.
15843 (type_all_ctors_visible_p): New predicate.
15844 (type_possibly_instantiated_p): New predicate.
15845 (get_odr_type): Compute all_derivations_known.
15846 (dump_odr_type): Dump the flag.
15847 (maybe_record_type): Cleanup.
15848 (record_target_from_binfo): Add bases_to_consider array;
15849 record bases for types w/o instances and skip CXX destructor.
15850 (possible_polymorphic_call_targets_1): Add bases_to_consider
15851 and consider_construction parameters; check if type may have instance.
15852 (get_polymorphic_call_info): Set maybe_in_construction to true
15853 when we know nothing.
15854 (record_targets_from_bases): Skip CXX destructors; they are
15855 never called for types in construction.
15856 (possible_polymorphic_call_targets): Do not record target when
15857 type may not have instance.
15858
15859 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15860
15861 PR ipa/60854
15862 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
15863 external aliases alive, too.
15864
15865 2014-04-16 Andrew Pinski <apinski@cavium.com>
15866
15867 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
15868 definition.
15869
15870 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15871
15872 * final.c (compute_alignments): Do not apply loop alignment to a block
15873 falling through to the exit.
15874
15875 2014-04-16 Catherine Moore <clm@codesourcery.com>
15876
15877 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
15878 Adjust constraints for microMIPS store patterns.
15879
15880 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15881
15882 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
15883
15884 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15885
15886 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
15887 (append_use): Run at -O0.
15888 (append_vdef): Likewise.
15889 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
15890 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
15891
15892 2014-04-16 Jakub Jelinek <jakub@redhat.com>
15893
15894 PR tree-optimization/60844
15895 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
15896 (propagate_op_to_single_use, remove_visited_stmt_chain,
15897 linearize_expr, repropagate_negates, reassociate_bb): Use it
15898 instead of gsi_remove.
15899
15900 2014-04-16 Martin Jambor <mjambor@suse.cz>
15901
15902 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
15903 ipa_transforms_to_apply.
15904 (cgraph_function_versioning): Assert that old_node has empty
15905 ipa_transforms_to_apply.
15906 * trans-mem.c (ipa_tm_create_version): Likewise.
15907 * tree-inline.c (tree_function_versioning): Do not duplicate
15908 ipa_transforms_to_apply.
15909
15910 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15911
15912 PR target/60817
15913 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
15914 x86_64-*-* cases.
15915 Pass necessary as flags on 64-bit Solaris/x86.
15916 Use lowercase relocs for x86_64-*-*.
15917 * configure: Regenerate.
15918
15919 2014-04-15 Jan Hubicka <jh@suse.cz>
15920
15921 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
15922 (maybe_record_node, likely_target_p): Use it.
15923
15924 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15925
15926 PR target/60839
15927 Revert following patch
15928
15929 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15930
15931 PR target/60735
15932 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
15933 software floating point or no floating point registers, do not
15934 allow any type in the FPRs. Eliminate a test for SPE SIMD types
15935 in GPRs that occurs after we tested for GPRs that would never be
15936 true.
15937
15938 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
15939 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
15940 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
15941 specifically allow DDmode, since that does not use the SPE SIMD
15942 instructions.
15943
15944 2014-03-21 Mark Wielaard <mjw@redhat.com>
15945
15946 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
15947 as unsigned or int depending on type and value used.
15948
15949 2014-04-15 Richard Biener <rguenther@suse.de>
15950
15951 PR rtl-optimization/56965
15952 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
15953 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
15954 ... here.
15955 * alias.c (true_dependence_1): Do not call
15956 nonoverlapping_component_refs_p.
15957 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
15958 nonoverlapping_component_refs_p.
15959 (indirect_refs_may_alias_p): Likewise.
15960
15961 2014-04-15 Teresa Johnson <tejohnson@google.com>
15962
15963 * cfg.c (dump_bb_info): Fix flags check.
15964 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
15965
15966 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15967
15968 PR rtl-optimization/60663
15969 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
15970 avoid 0 cost.
15971
15972 2014-04-15 Richard Biener <rguenther@suse.de>
15973
15974 * lto-streamer.h (LTO_major_version): Bump to 4.
15975
15976 2014-04-15 Richard Biener <rguenther@suse.de>
15977
15978 * common.opt (lto_partition_model): New enum.
15979 (flto-partition=): Merge separate options with a single with argument,
15980 add -flto-partition=one support.
15981 * flag-types.h (enum lto_partition_model): Declare.
15982 * opts.c (finish_options): Remove duplicate -flto-partition=
15983 option check.
15984 * lto-wrapper.c (run_gcc): Adjust.
15985
15986 2014-04-15 Richard Biener <rguenther@suse.de>
15987
15988 * alias.c (ncr_compar): New function.
15989 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
15990
15991 2014-04-15 Richard Biener <rguenther@suse.de>
15992
15993 * alias.c (record_component_aliases): Do not walk BINFOs.
15994
15995 2014-04-15 Richard Biener <rguenther@suse.de>
15996
15997 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15998 Add struct function argument and adjust.
15999 (find_func_aliases_for_call): Likewise.
16000 (find_func_aliases): Likewise.
16001 (find_func_clobbers): Likewise.
16002 (intra_create_variable_infos): Likewise.
16003 (compute_points_to_sets): Likewise.
16004 (ipa_pta_execute): Adjust. Do not push/pop cfun.
16005
16006 2014-04-15 Richard Biener <rguenther@suse.de>
16007
16008 * tree.c (iterative_hash_expr): Use enum tree_code_class
16009 to store TREE_CODE_CLASS.
16010 (tree_block): Likewise.
16011 (tree_set_block): Likewise.
16012 * tree.h (fold_build_pointer_plus_loc): Use
16013 convert_to_ptrofftype_loc.
16014
16015 2014-04-15 Jakub Jelinek <jakub@redhat.com>
16016
16017 PR plugins/59335
16018 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
16019 added in 4.9.
16020
16021 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
16022
16023 * cfgloop.h (struct loop): Move force_vectorize down.
16024 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
16025 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
16026 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
16027 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
16028 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
16029 * tree-core.h (enum annot_expr_kind): Add new kind values.
16030 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
16031 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
16032 kinds.
16033 * tree.def (ANNOTATE_EXPR): Tweak comment.
16034
16035 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16036
16037 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
16038 cxa_pure_virtual).
16039
16040 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
16041
16042 * tree.h (TYPE_IDENTIFIER): Declare.
16043 * tree.c (subrange_type_for_debug_p): Use it.
16044 * godump.c (go_format_type): Likewise.
16045 * dwarf2out.c (is_cxx_auto, modified_type_die,
16046 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
16047 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
16048
16049 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16050
16051 PR lto/60820
16052 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
16053
16054 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
16055
16056 * config/i386/i386.c (examine_argument): Return bool. Return true if
16057 parameter should be passed in memory.
16058 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
16059 (construct_container): Update calls to examine_argument.
16060 (function_arg_advance_64): Ditto.
16061 (return_in_memory_32): Merge with ix86_return_in_memory.
16062 (return_in_memory_64): Ditto.
16063 (return_in_memory_ms_64): Ditto.
16064
16065 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16066
16067 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
16068 * coverage.c (coverage_compute_profile_id): Handle externally visible
16069 symbols.
16070
16071 2014-04-14 Martin Jambor <mjambor@suse.cz>
16072
16073 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
16074 DECL_DISREGARD_INLINE_LIMITS functions.
16075
16076 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
16077
16078 PR target/60827
16079 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
16080
16081 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
16082
16083 PR target/60827
16084 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
16085 optimize_insn_for_speed_p instead of
16086 optimize_function_for_speed_p.
16087
16088 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
16089
16090 * doc/invoke.texi (free): Document AArch64.
16091
16092 2014-04-14 Richard Biener <rguenther@suse.de>
16093
16094 PR tree-optimization/60042
16095 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
16096 (insert_into_preds_of_block): Do not prevent PHI insertion
16097 for REFERENCE exprs here ...
16098 (eliminate_dom_walker::before_dom_children): ... but prevent
16099 their use here under similar conditions when applied to the
16100 IL after PRE optimizations.
16101
16102 2014-04-14 Richard Biener <rguenther@suse.de>
16103
16104 * passes.def: Move early points-to after early SRA.
16105
16106 2014-04-14 Richard Biener <rguenther@suse.de>
16107
16108 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
16109 check for which sign-changes we allow when forwarding
16110 a converted value into a switch.
16111
16112 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
16113
16114 * stor-layout.c (place_field): Finalize non-constant offset for the
16115 field, if any.
16116
16117 2014-04-14 Richard Biener <rguenther@suse.de>
16118
16119 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
16120 as argument.
16121 (expand_switch_using_bit_tests_p): Likewise.
16122 (process_switch): Compute and pass on speed_p based on the
16123 switch stmt.
16124 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
16125 optimize_bb_for_speed_p.
16126
16127 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
16128
16129 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
16130 * function.h (struct function): Rename has_force_vect_loops into
16131 has_force_vectorize_loops.
16132 * lto-streamer-in.c (input_cfg): Adjust for renaming.
16133 (input_struct_function_base): Likewise.
16134 * lto-streamer-out.c (output_cfg): Likewise.
16135 (output_struct_function_base): Likewise.
16136 * omp-low.c (expand_omp_simd): Likewise.
16137 * tree-cfg.c (move_sese_region_to_fn): Likewise.
16138 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
16139 (version_loop_for_if_conversion): Likewise.
16140 (tree_if_conversion): Likewise.
16141 (main_tree_if_conversion): Likewise.
16142 (gate_tree_if_conversion): Likewise.
16143 * tree-inline.c (copy_loops): Likewise.
16144 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
16145 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
16146 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
16147 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
16148 * tree-vectorizer.c (vectorize_loops): Likewise.
16149 * tree-vectorizer.h (unlimited_cost_model): Likewise.
16150
16151 2014-04-14 Richard Biener <rguenther@suse.de>
16152
16153 PR lto/60720
16154 * lto-streamer-out.c (wrap_refs): New function.
16155 (lto_output): Wrap symbol references in global initializes in
16156 type-preserving MEM_REFs.
16157
16158 2014-04-14 Christian Bruel <christian.bruel@st.com>
16159
16160 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
16161
16162 2014-04-14 Christian Bruel <christian.bruel@st.com>
16163
16164 * config/sh/sh.md (setmemqi): New expand pattern.
16165 * config/sh/sh.h (CLEAR_RATIO): Define.
16166 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
16167 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
16168
16169 2014-04-14 Richard Biener <rguenther@suse.de>
16170
16171 PR middle-end/55022
16172 * fold-const.c (negate_expr_p): Don't negate directional rounding
16173 division.
16174 (fold_negate_expr): Likewise.
16175
16176 2014-04-14 Richard Biener <rguenther@suse.de>
16177
16178 PR tree-optimization/59817
16179 PR tree-optimization/60453
16180 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
16181 recursion to catch all CHRECs in the scalar evolution and restrict
16182 the predicate for the remains appropriately.
16183
16184 2014-04-12 Catherine Moore <clm@codesourcery.com>
16185
16186 * config/mips/constraints.md: Add new register constraint "kb".
16187 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
16188 (*movhi_internal): Likewise.
16189 (*movqi_internal): Likewise.
16190 * config/mips/mips.h (M16_STORE_REGS): New register class.
16191 (REG_CLASS_NAMES): Add M16_STORE_REGS.
16192 (REG_CLASS_CONTENTS): Likewise.
16193 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
16194
16195 2014-04-11 Tobias Burnus <burnus@net-b.de>
16196
16197 PR c/60194
16198 * doc/invoke.texi (-Wformat-signedness): Document it.
16199 (Wformat=2): Mention that this enables -Wformat-signedness.
16200
16201 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16202
16203 * common/config/epiphany/epiphany-common.c
16204 (epiphany_option_optimization_table): Enable section anchors by
16205 default at -O1 or higher.
16206 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
16207 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
16208 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
16209 carries no extra cost.
16210 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
16211 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
16212 * config/epiphany/predicates.md (memclob_operand): New predicate.
16213 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
16214 Use memclob_operand predicate and X constraint for operand 3.
16215
16216 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16217
16218 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
16219 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
16220 its operands.
16221
16222 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16223
16224 PR rtl-optimization/60651
16225 * mode-switching.c (optimize_mode_switching): Make sure to emit
16226 sets of a lower numbered entity before sets of a higher numbered
16227 entity to a mode of the same or lower priority.
16228 When creating a seginfo for a basic block that starts with a code
16229 label, move the insertion point past the code label.
16230 (new_seginfo): Document and enforce requirement that
16231 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
16232 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
16233 * doc/tm.texi: Regenerate.
16234
16235 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
16236
16237 PR target/60811
16238 * config/arc/arc.c (arc_save_restore): Fix assert typo.
16239
16240 2013-04-11 Jakub Jelinek <jakub@redhat.com>
16241
16242 * BASE-VER: Set to 4.10.0.
16243
16244 2014-04-11 Tobias Burnus <burnus@net-b.de>
16245
16246 PR other/59055
16247 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
16248 * doc/gcc.texi (Service): Update description in the @menu
16249 * doc/invoke.texi (Option Summary): Remove misplaced and
16250 duplicated @menu.
16251
16252 2014-04-11 Steve Ellcey <sellcey@mips.com>
16253 Jakub Jelinek <jakub@redhat.com>
16254
16255 PR middle-end/60556
16256 * expr.c (convert_move): Use emit_store_flag_force instead of
16257 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
16258 argument to it.
16259
16260 2014-04-11 Richard Biener <rguenther@suse.de>
16261
16262 PR middle-end/60797
16263 * varasm.c (assemble_alias): Avoid endless error reporting
16264 recursion by setting TREE_ASM_WRITTEN.
16265
16266 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16267
16268 * config/s390/s390.md: Add a splitter for NOT rtx.
16269
16270 2014-04-11 Jakub Jelinek <jakub@redhat.com>
16271
16272 PR rtl-optimization/60663
16273 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
16274
16275 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
16276 Jakub Jelinek <jakub@redhat.com>
16277
16278 PR lto/60567
16279 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
16280 flag from decl_node to node.
16281
16282 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16283
16284 PR debug/60655
16285 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
16286 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
16287 ameliorating the cases where it can be.
16288
16289 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
16290
16291 Revert
16292 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
16293
16294 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
16295 (loadsync_<mode>): Change mode.
16296 (load_quadpti, store_quadpti): New.
16297 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
16298 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
16299 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
16300
16301 2014-04-09 Cong Hou <congh@google.com>
16302
16303 PR testsuite/60773
16304 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
16305 documentation.
16306
16307 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16308
16309 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
16310 instead of vnor to exploit possible fusion opportunity in the
16311 future.
16312 (altivec_expand_vec_perm_const_le): Likewise.
16313
16314 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
16315
16316 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
16317 (loadsync_<mode>): Change mode.
16318 (load_quadpti, store_quadpti): New.
16319 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
16320 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
16321
16322 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
16323
16324 PR target/60763
16325 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
16326 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
16327 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
16328
16329 2014-04-08 Richard Biener <rguenther@suse.de>
16330
16331 PR middle-end/60706
16332 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
16333 a 64bit widest int print double-int similar to on HWI64 hosts.
16334
16335 2014-04-08 Richard Biener <rguenther@suse.de>
16336
16337 PR tree-optimization/60785
16338 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
16339 default defs properly.
16340
16341 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
16342
16343 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
16344 (Weffc++): Likewise.
16345
16346 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
16347
16348 * ipa-devirt.c (maybe_record_node): When node is not recorded,
16349 set completep to false rather than true.
16350
16351 2014-04-07 Douglas B Rupp <rupp@adacore.com>
16352
16353 PR target/60504
16354 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
16355 ARM_TARGET2_DWARF_FORMAT.
16356
16357 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
16358
16359 PR target/60609
16360 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
16361 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
16362 ADDR_DIFF_VEC.
16363
16364 2014-04-07 Richard Biener <rguenther@suse.de>
16365
16366 PR tree-optimization/60766
16367 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
16368 (may_eliminate_iv): Convert cand_value_at result to desired type.
16369
16370 2014-04-07 Jason Merrill <jason@redhat.com>
16371
16372 PR c++/60731
16373 * common.opt (-fno-gnu-unique): Add.
16374 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
16375
16376 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16377
16378 * haifa-sched.c: Fix outdated function reference and minor
16379 grammar errors in introductory comment.
16380
16381 2014-04-07 Richard Biener <rguenther@suse.de>
16382
16383 PR middle-end/60750
16384 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
16385 for noreturn calls.
16386 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
16387
16388 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
16389
16390 PR debug/55794
16391 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
16392 size accounting for thunks.
16393 (pa_asm_output_mi_thunk): Use final_start_function() and
16394 final_end_function() to output function start and end directives.
16395
16396 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
16397
16398 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
16399 device specific ISA/ feature information. Remove short_sp and
16400 errata_skip ds. Add avr_device_specific_features enum to have device
16401 specific info.
16402 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
16403 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
16404 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
16405 updated device specific info.
16406 * config/avr/avr-mcus.def: Merge device specific details to
16407 dev_attribute field.
16408 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
16409 errata_skip.
16410 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
16411 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
16412 assembler if RMW isa supported by current device.
16413 * config/avr/genmultilib.awk: Update as device info structure changed.
16414 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
16415
16416 2014-04-04 Cong Hou <congh@google.com>
16417
16418 PR tree-optimization/60656
16419 * tree-vect-stmts.c (supportable_widening_operation):
16420 Fix a bug that elements in a vector with vect_used_by_reduction
16421 property are incorrectly reordered when the operation on it is not
16422 consistant with the one in reduction operation.
16423
16424 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
16425
16426 PR rtl-optimization/60155
16427 * gcse.c (record_set_data): New function.
16428 (single_set_gcse): New function.
16429 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
16430 (hoist_code): Likewise.
16431 (get_pressure_class_and_nregs): Likewise.
16432
16433 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
16434
16435 * explow.c (probe_stack_range): Emit a final optimization blockage.
16436
16437 2014-04-04 Anthony Green <green@moxielogic.com>
16438
16439 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
16440 typos.
16441
16442 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
16443
16444 PR ipa/59626
16445 * lto-cgraph.c (input_overwrite_node): Check that partitioning
16446 flags are set only during streaming.
16447 * ipa.c (process_references, walk_polymorphic_call_targets,
16448 symtab_remove_unreachable_nodes): Drop bodies of always inline
16449 after early inlining.
16450 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
16451
16452 2014-04-04 Jakub Jelinek <jakub@redhat.com>
16453 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16454
16455 PR debug/60655
16456 * dwarf2out.c (const_ok_for_output_1): Reject expressions
16457 containing a NOT.
16458
16459 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16460
16461 PR bootstrap/60743
16462 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
16463 duration.
16464 (cortex_a53_fdivd): Likewise.
16465
16466 2014-04-04 Martin Jambor <mjambor@suse.cz>
16467
16468 PR ipa/60640
16469 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
16470 Adjust all callers.
16471 * cgraph.c (clone_of_p): Also return true if thunks match.
16472 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
16473 cgraph_function_or_thunk_node and an obsolete comment.
16474 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
16475 file.
16476 (build_function_decl_skip_args): Likewise.
16477 (set_new_clone_decl_and_node_flags): New function.
16478 (duplicate_thunk_for_node): Likewise.
16479 (redirect_edge_duplicating_thunks): Likewise.
16480 (cgraph_clone_node): New parameter args_to_skip, pass it to
16481 redirect_edge_duplicating_thunks which is called instead of
16482 cgraph_redirect_edge_callee.
16483 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
16484 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
16485
16486 2014-04-04 Jeff Law <law@redhat.com>
16487
16488 PR target/60657
16489 * config/arm/predicates.md (const_int_I_operand): New predicate.
16490 (const_int_M_operand): Similarly.
16491 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
16492 const_int_operand.
16493 (insv_t2, extv_reg, extzv_t2): Likewise.
16494 (load_multiple_with_writeback): Similarly for const_int_I_operand.
16495 (pop_multiple_with_writeback_and_return): Likewise.
16496 (vfp_pop_multiple_with_writeback): Likewise
16497
16498 2014-04-04 Richard Biener <rguenther@suse.de>
16499
16500 PR ipa/60746
16501 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
16502 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
16503 non-GIMPLE_LABELs.
16504 * gimplify.h (gimple_add_tmp_var_fn): Declare.
16505 * gimplify.c (gimple_add_tmp_var_fn): New function.
16506 * gimple-expr.h (create_tmp_reg_fn): Declare.
16507 * gimple-expr.c (create_tmp_reg_fn): New function.
16508 * gimple-low.c (record_vars_into): Don't change cfun.
16509 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
16510 code generation without cfun.
16511
16512 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
16513
16514 PR bootstrap/60719
16515 * Makefile.in (install-driver): Fix shell scripting.
16516
16517 2014-04-03 Cong Hou <congh@google.com>
16518
16519 PR tree-optimization/60505
16520 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
16521 threshold of number of iterations below which no vectorization
16522 will be done.
16523 * tree-vect-loop.c (new_loop_vec_info):
16524 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
16525 * tree-vect-loop.c (vect_analyze_loop_operations):
16526 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
16527 * tree-vect-loop.c (vect_transform_loop):
16528 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
16529 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
16530 of iterations of the loop and see if we should build the epilogue.
16531
16532 2014-04-03 Richard Biener <rguenther@suse.de>
16533
16534 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
16535 (streamer_tree_cache_create): Adjust.
16536 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
16537 to allow optional nodes array.
16538 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
16539 (streamer_tree_cache_append): Likewise.
16540 (streamer_tree_cache_create): Create nodes array optionally
16541 as specified by parameter.
16542 * lto-streamer-out.c (create_output_block): Avoid maintaining
16543 the node array in the writer cache.
16544 (DFS_write_tree): Remove assertion.
16545 (produce_asm_for_decls): Free the out decl state hash table early.
16546 * lto-streamer-in.c (lto_data_in_create): Adjust for
16547 streamer_tree_cache_create prototype change.
16548
16549 2014-04-03 Richard Biener <rguenther@suse.de>
16550
16551 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
16552 set TREE_CHAIN to NULL_TREE.
16553
16554 2014-04-03 Richard Biener <rguenther@suse.de>
16555
16556 PR tree-optimization/60740
16557 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
16558 over all GIMPLE_COND operands.
16559
16560 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
16561
16562 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
16563 (Weffc++): Remove Scott's numbering, merge lists and reference
16564 Wnon-virtual-dtor.
16565
16566 2014-04-03 Nick Clifton <nickc@redhat.com>
16567
16568 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
16569 properly.
16570
16571 2014-04-03 Martin Jambor <mjambor@suse.cz>
16572
16573 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
16574 mention gcc_unreachable before failing.
16575 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
16576 removed symbols.
16577
16578 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
16579
16580 PR ipa/60659
16581 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
16582 inconsistent code and instead mark the context inconsistent.
16583 (possible_polymorphic_call_targets): For inconsistent contexts
16584 return empty complete list.
16585
16586 2014-04-02 Anthony Green <green@moxielogic.com>
16587
16588 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
16589 (extendqisi2, extendhisi2): Define.
16590 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
16591 (WCHAR_TYPE): Change to unsigned int.
16592
16593 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16594
16595 PR tree-optimization/60733
16596 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
16597 insertion point for PHI candidates to be the end of the feeding
16598 block for the PHI argument.
16599
16600 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
16601
16602 PR rtl-optimization/60650
16603 * lra-constraints.c (process_alt_operands): Decrease reject for
16604 earlyclobber matching.
16605
16606 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16607
16608 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
16609
16610 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16611
16612 * config/spu/spu.c (pad_bb): Do not crash when the last
16613 insn is CODE_FOR_blockage.
16614
16615 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16616
16617 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
16618 lies outside the target mode.
16619
16620 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16621
16622 PR target/60735
16623 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16624 software floating point or no floating point registers, do not
16625 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16626 in GPRs that occurs after we tested for GPRs that would never be
16627 true.
16628
16629 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16630 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16631 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16632 specifically allow DDmode, since that does not use the SPE SIMD
16633 instructions.
16634
16635 2014-04-02 Richard Biener <rguenther@suse.de>
16636
16637 PR middle-end/60729
16638 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
16639 MODE_INTs. Properly use negv_optab.
16640 (expand_abs): Likewise.
16641
16642 2014-04-02 Richard Biener <rguenther@suse.de>
16643
16644 PR bootstrap/60719
16645 * Makefile.in (install-driver): Guard extra installs with special
16646 names properly.
16647
16648 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16649
16650 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16651 Document vec_vgbbd.
16652
16653 2014-04-01 Richard Henderson <rth@redhat.com>
16654
16655 PR target/60704
16656 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
16657 alternative enabled before register allocation.
16658
16659 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
16660
16661 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
16662 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
16663 typo.
16664 (nios2_large_got_address): Remove unneeded 'sym' parameter.
16665 (nios2_got_address): Update nios2_large_got_address call site.
16666 (nios2_delegitimize_address): New function.
16667 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
16668 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
16669 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
16670
16671 2014-04-01 Martin Husemann <martin@duskware.de>
16672
16673 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
16674 for -mabi=32.
16675
16676 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
16677
16678 PR rtl-optimization/60604
16679 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
16680 check from register_operand.
16681 (register_operand): Redefine in terms of general_operand.
16682 (nonmemory_operand): Use register_operand for the non-constant cases.
16683
16684 2014-04-01 Richard Biener <rguenther@suse.de>
16685
16686 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
16687
16688 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
16689
16690 * doc/invoke.texi (mapp-regs): Clarify.
16691
16692 2014-03-31 Ulrich Drepper <drepper@gmail.com>
16693
16694 * config/i386/avx512fintrin.h (__v32hi): Define type.
16695 (__v64qi): Likewise.
16696 (_mm512_set1_epi8): Define.
16697 (_mm512_set1_epi16): Define.
16698 (_mm512_set4_epi32): Define.
16699 (_mm512_set4_epi64): Define.
16700 (_mm512_set4_pd): Define.
16701 (_mm512_set4_ps): Define.
16702 (_mm512_setr4_epi64): Define.
16703 (_mm512_setr4_epi32): Define.
16704 (_mm512_setr4_pd): Define.
16705 (_mm512_setr4_ps): Define.
16706 (_mm512_setzero_epi32): Define.
16707
16708 2014-03-31 Martin Jambor <mjambor@suse.cz>
16709
16710 PR middle-end/60647
16711 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
16712 callsite_arguments_match_p. Updated all callers. Also check types of
16713 corresponding formal parameters and actual arguments.
16714 (not_all_callers_have_enough_arguments_p) Renamed to
16715 some_callers_have_mismatched_arguments_p.
16716
16717 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
16718
16719 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
16720
16721 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16722
16723 PR target/60034
16724 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
16725 section anchor.
16726
16727 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
16728
16729 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
16730 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
16731 Split out
16732 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
16733 Use FMAMODE_NOVF512 mode iterator.
16734 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
16735 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
16736 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
16737 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
16738 Split out
16739 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
16740 Use VF_128_256 mode iterator.
16741 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
16742 Ditto.
16743
16744 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16745
16746 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
16747 static chain if needed.
16748
16749 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16750
16751 PR target/60697
16752 * lra-constraints.c (index_part_to_reg): New.
16753 (process_address): Use it.
16754
16755 2014-03-27 Jeff Law <law@redhat.com>
16756 Jakub Jelinek <jakub@redhat.com>
16757
16758 PR target/60648
16759 * expr.c (do_tablejump): Use simplify_gen_binary rather than
16760 gen_rtx_{PLUS,MULT} to build up the address expression.
16761
16762 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
16763 creating non-canonical RTL.
16764
16765 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16766
16767 PR ipa/60243
16768 * ipa-inline.c (want_inline_small_function_p): Short circuit large
16769 functions; reorganize to make cheap checks first.
16770 (inline_small_functions): Do not estimate growth when dumping;
16771 it is expensive.
16772 * ipa-inline.h (inline_summary): Add min_size.
16773 (growth_likely_positive): New function.
16774 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
16775 (set_cond_stmt_execution_predicate): Cleanup.
16776 (estimate_edge_size_and_time): Compute min_size.
16777 (estimate_calls_size_and_time): Likewise.
16778 (estimate_node_size_and_time): Likewise.
16779 (inline_update_overall_summary): Update min_size.
16780 (do_estimate_edge_time): Likewise.
16781 (do_estimate_edge_size): Update.
16782 (do_estimate_edge_hints): Update.
16783 (growth_likely_positive): New function.
16784
16785 2014-03-28 Jakub Jelinek <jakub@redhat.com>
16786
16787 PR target/60693
16788 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
16789 also if addr has VOIDmode.
16790
16791 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16792
16793 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
16794 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
16795 Declare extern.
16796 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
16797 instructions as well as AdvancedSIMD loads.
16798
16799 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16800
16801 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
16802 Use crypto_aese type.
16803 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
16804 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
16805 crypto_aese, crypto_aesmc. Move to types.md.
16806 * config/arm/types.md (crypto_aes): Split into crypto_aese,
16807 crypto_aesmc.
16808 * config/arm/iterators.md (crypto_type): Likewise.
16809
16810 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16811
16812 * cgraph.c: Include expr.h and tree-dfa.h.
16813 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
16814 remove LHS.
16815
16816 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16817
16818 PR target/60675
16819 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
16820 regs from checking multi-reg pseudos.
16821
16822 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16823
16824 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
16825
16826 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16827
16828 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
16829 if it would clobber the stack pointer, even temporarily.
16830
16831 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
16832
16833 * mode-switching.c: Make small adjustments to the top comment.
16834
16835 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16836
16837 * config/rs6000/constraints.md (wD constraint): New constraint to
16838 match the constant integer to get the top DImode/DFmode out of a
16839 vector in a VSX register.
16840
16841 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
16842 match the constant integer to get the top DImode/DFmode out of a
16843 vector in a VSX register.
16844
16845 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
16846 for ISA 2.07.
16847
16848 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16849 vbpermq builtins.
16850
16851 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
16852 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
16853
16854 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
16855 Optimize vec_extract of 64-bit values, where the value being
16856 extracted is in the top word, where we can use scalar
16857 instructions. Add direct move and store support. Combine the big
16858 endian/little endian vector select load support into a single insn.
16859 (vsx_extract_<mode>_internal1): Likewise.
16860 (vsx_extract_<mode>_internal2): Likewise.
16861 (vsx_extract_<mode>_load): Likewise.
16862 (vsx_extract_<mode>_store): Likewise.
16863 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
16864 combined into vsx_extract_<mode>_load.
16865 (vsx_extract_<mode>_one_le): Likewise.
16866
16867 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
16868 define the top 64-bit vector element.
16869
16870 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
16871 constraint.
16872
16873 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16874 Document vec_vbpermq builtin.
16875
16876 PR target/60672
16877 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
16878 enable use of xxsldwi and xxpermdi builtin functions.
16879 (vec_xxpermdi): Likewise.
16880
16881 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16882 Document use of vec_xxsldwi and vec_xxpermdi builtins.
16883
16884 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
16885
16886 PR rtl-optimization/60650
16887 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
16888 first_p. Use it.
16889 (find_spills_for): New.
16890 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
16891 Spill all pseudos on the second iteration.
16892
16893 2014-03-27 Marek Polacek <polacek@redhat.com>
16894
16895 PR c/50347
16896 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
16897 types.
16898
16899 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16900
16901 * config/s390/s390.c (s390_can_use_return_insn): Check for
16902 call-saved FPRs on 31 bit.
16903
16904 2014-03-27 Jakub Jelinek <jakub@redhat.com>
16905
16906 PR middle-end/60682
16907 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
16908 if they need regimplification, just drop them instead of
16909 calling gimple_regimplify_operands on them.
16910
16911 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
16912
16913 PR target/60580
16914 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
16915 (aarch64_frame_pointer_required): Adjust logic.
16916 (aarch64_can_eliminate): Adjust logic.
16917 (aarch64_override_options_after_change): Adjust logic.
16918
16919 2014-03-27 Dehao Chen <dehao@google.com>
16920
16921 * ipa-inline.c (early_inliner): Update node's inline info.
16922
16923 2014-03-26 Dehao Chen <dehao@google.com>
16924
16925 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
16926 compiler inserted conditional jumps for NAN float check.
16927
16928 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16929
16930 * ubsan.h (ubsan_create_data): Change second argument's type
16931 to const location_t *.
16932 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
16933 _("<unknown>").
16934 (ubsan_create_data): Change second argument to const location_t *PLOC.
16935 Create Loc field whenever PLOC is non-NULL.
16936 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
16937 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
16938 callers.
16939
16940 PR other/59545
16941 * real.c (real_to_integer2): Change type of low to UHWI.
16942
16943 2014-03-26 Tobias Burnus <burnus@net-b.de>
16944
16945 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
16946 (CILK_SELF_SPECS): New define.
16947 (driver_self_specs): Use it.
16948
16949 2014-03-26 Richard Biener <rguenther@suse.de>
16950
16951 * tree-pretty-print.c (percent_K_format): Implement special
16952 case for LTO and its stripped down BLOCK tree.
16953
16954 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16955
16956 PR sanitizer/60636
16957 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
16958
16959 * tree-vrp.c (simplify_internal_call_using_ranges): If only
16960 one range is range_int_cst_p, but not both, at least optimize
16961 addition/subtraction of 0 and multiplication by 0 or 1.
16962 * gimple-fold.c (gimple_fold_call): Fold
16963 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
16964 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
16965 INTEGER_CSTs, try to fold at least x * 0 and y - y.
16966
16967 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
16968
16969 PR rtl-optimization/60452
16970 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
16971 <case REG>: Return 1 for invalid offsets from the frame pointer.
16972
16973 2014-03-26 Marek Polacek <polacek@redhat.com>
16974
16975 PR c/37428
16976 * doc/extend.texi (C Extensions): Mention variable-length arrays in
16977 a structure/union.
16978
16979 2014-03-26 Marek Polacek <polacek@redhat.com>
16980
16981 PR c/39525
16982 * doc/extend.texi (Designated Inits): Describe what happens to omitted
16983 field members.
16984
16985 2014-03-26 Marek Polacek <polacek@redhat.com>
16986
16987 PR other/59545
16988 * ira-color.c (update_conflict_hard_regno_costs): Perform the
16989 multiplication in unsigned type.
16990
16991 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16992
16993 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
16994
16995 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
16996
16997 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
16998
16999 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
17000
17001 PR ipa/60315
17002 * cif-code.def (UNREACHABLE) New code.
17003 * ipa-inline.c (inline_small_functions): Skip edges to
17004 __builtlin_unreachable.
17005 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
17006 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
17007 predicate to __bulitin_unreachable.
17008 (set_cond_stmt_execution_predicate): Fix issue when
17009 invert_tree_comparison returns ERROR_MARK.
17010 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
17011 propagate to inline clones.
17012 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
17013 to unreachable.
17014 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
17015 * cgraphclones.c (cgraph_clone_node): If call destination is already
17016 ureachable, do not redirect it back.
17017 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
17018 unreachable.
17019
17020 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
17021
17022 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
17023 Do not modify inline clones.
17024
17025 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17026
17027 * config/i386/i386.md (general_sext_operand): New mode attr.
17028 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
17029 don't generate (sign_extend (const_int)).
17030 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
17031 operands[2]. Use We constraint instead of <i> and
17032 <general_sext_operand> predicate instead of <general_operand>.
17033 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
17034 * config/i386/constraints.md (We): New constraint.
17035 * config/i386/predicates.md (x86_64_sext_operand,
17036 sext_operand): New predicates.
17037
17038 2014-03-25 Martin Jambor <mjambor@suse.cz>
17039
17040 PR ipa/60600
17041 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
17042 inconsistent devirtualizations to __builtin_unreachable.
17043
17044 2014-03-25 Marek Polacek <polacek@redhat.com>
17045
17046 PR c/35449
17047 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
17048
17049 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
17050
17051 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
17052 order of elements for big-endian.
17053
17054 2014-03-25 Richard Biener <rguenther@suse.de>
17055
17056 PR middle-end/60635
17057 * gimplify-me.c (gimple_regimplify_operands): Update the
17058 re-gimplifed stmt.
17059
17060 2014-03-25 Martin Jambor <mjambor@suse.cz>
17061
17062 PR ipa/59176
17063 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
17064 (lto_output_varpool_node): Likewise.
17065 (input_overwrite_node): Likewise.
17066 (input_varpool_node): Likewise.
17067
17068 2014-03-25 Richard Biener <rguenther@suse.de>
17069
17070 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
17071 (run_gcc): Likewise.
17072
17073 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17074
17075 * combine.c (simplify_compare_const): Add MODE argument.
17076 Handle mode_width 0 as very large mode_width.
17077 (try_combine, simplify_comparison): Adjust callers.
17078
17079 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
17080 type to avoid signed integer overflow.
17081 * explow.c (plus_constant): Likewise.
17082
17083 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
17084
17085 * doc/generic.texi: Correct typos.
17086
17087 2014-03-24 Tobias Burnus <burnus@net-b.de>
17088
17089 * doc/invoke.texi (-flto): Expand section about
17090 using static libraries with LTO.
17091
17092 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17093
17094 PR rtl-optimization/60501
17095 * optabs.def (addptr3_optab): New optab.
17096 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
17097 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
17098 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
17099
17100 * lra.c (emit_add3_insn): Use the addptr pattern if available.
17101
17102 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
17103
17104 2014-03-24 Ulrich Drepper <drepper@gmail.com>
17105
17106 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
17107 _mm512_set1_pd.
17108
17109 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
17110 (_mm256_undefined_ps): Define.
17111 (_mm256_undefined_pd): Define.
17112 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
17113 (_mm_undefined_pd): Define.
17114 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
17115 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
17116 (_mm512_undefined_ps): Define.
17117 (_mm512_undefined_pd): Define.
17118 Use _mm*_undefined_*.
17119 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
17120
17121 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
17122
17123 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
17124 (lshr_simd): DI mode added.
17125 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
17126 (aarch64_ushr_simddi): Likewise.
17127 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
17128 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
17129 (vshrd_n_u64): Likewise.
17130
17131 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17132
17133 * Makefile.in (s-macro_list): Depend on cc1.
17134
17135 2014-03-23 Teresa Johnson <tejohnson@google.com>
17136
17137 * ipa-utils.c (ipa_print_order): Use specified dump file.
17138
17139 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
17140
17141 PR rtl-optimization/60601
17142 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
17143
17144 * gcc.c (eval_spec_function): Initialize save_growing_value.
17145
17146 2014-03-22 Jakub Jelinek <jakub@redhat.com>
17147
17148 PR sanitizer/60613
17149 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
17150 code == MINUS_EXPR, never swap op0 with op1.
17151
17152 * toplev.c (init_local_tick): Avoid signed integer multiplication
17153 overflow.
17154 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
17155 shift by first operand's bitsize.
17156
17157 2014-03-21 Jakub Jelinek <jakub@redhat.com>
17158
17159 PR target/60610
17160 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
17161 redefine to 1 or 0.
17162 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
17163 TARGET_ISA_64BIT_P(x).
17164
17165 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17166
17167 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
17168 pattern for vector nor instead of subtract from splat(-1).
17169 (altivec_expand_vec_perm_const_le): Likewise.
17170
17171 2014-03-21 Richard Henderson <rth@twiddle.net>
17172
17173 PR target/60598
17174 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
17175 related insns after epilogue_completed.
17176
17177 2014-03-21 Martin Jambor <mjambor@suse.cz>
17178
17179 PR ipa/59176
17180 * cgraph.h (symtab_node): New flag body_removed.
17181 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
17182 when removing bodies.
17183 * symtab.c (dump_symtab_base): Dump body_removed flag.
17184 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
17185 had their bodies removed.
17186
17187 2014-03-21 Martin Jambor <mjambor@suse.cz>
17188
17189 PR ipa/60419
17190 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
17191 in the border.
17192
17193 2014-03-21 Richard Biener <rguenther@suse.de>
17194
17195 PR tree-optimization/60577
17196 * tree-core.h (struct tree_base): Document nothrow_flag use
17197 in DECL_NONALIASED.
17198 * tree.h (DECL_NONALIASED): New.
17199 (may_be_aliased): Adjust.
17200 * coverage.c (build_var): Set DECL_NONALIASED.
17201
17202 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17203
17204 * expr.c (expand_expr_real_1): Remove outdated comment.
17205
17206 2014-03-20 Jakub Jelinek <jakub@redhat.com>
17207
17208 PR middle-end/60597
17209 * ira.c (adjust_cleared_regs): Call copy_rtx on
17210 *reg_equiv[REGNO (loc)].src_p before passing it to
17211 simplify_replace_fn_rtx.
17212
17213 PR target/60568
17214 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
17215 into CONST, put pic register as first operand of PLUS. Use
17216 gen_const_mem for both 32-bit and 64-bit PIC got loads.
17217
17218 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17219
17220 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
17221
17222 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17223
17224 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
17225 around for store forwarding issue in the FPU on the UT699.
17226 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
17227 loads and operations if -mfix-ut699 is specified.
17228 (divtf3_hq): Tweak attribute.
17229 (sqrttf2_hq): Likewise.
17230
17231 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17232
17233 * calls.c (store_one_arg): Remove incorrect const qualification on the
17234 type of the temporary.
17235 * cfgexpand.c (expand_return): Likewise.
17236 * expr.c (expand_constructor): Likewise.
17237 (expand_expr_real_1): Likewise.
17238
17239 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17240
17241 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
17242 of parts.
17243
17244 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
17245
17246 PR target/60039
17247 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
17248
17249 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
17250
17251 * config/arm/aarch-common-protos.h
17252 (alu_cost_table): Fix spelling of "extend".
17253 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
17254
17255 2014-03-19 Richard Biener <rguenther@suse.de>
17256
17257 PR middle-end/60553
17258 * tree-core.h (tree_type_common): Re-order pointer members
17259 to reduce recursion depth during GC walks.
17260
17261 2014-03-19 Marek Polacek <polacek@redhat.com>
17262
17263 PR sanitizer/60569
17264 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
17265 before accessing it.
17266
17267 2014-03-19 Richard Biener <rguenther@suse.de>
17268
17269 PR lto/59543
17270 * lto-streamer-in.c (input_function): In WPA stage do not drop
17271 debug stmts.
17272
17273 2014-03-19 Jakub Jelinek <jakub@redhat.com>
17274
17275 PR tree-optimization/60559
17276 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
17277 with build_zero_cst assignment.
17278
17279 2014-03-18 Kai Tietz <ktietz@redhat.com>
17280
17281 PR rtl-optimization/56356
17282 * sdbout.c (sdbout_parms): Verify that parms'
17283 incoming argument is valid.
17284 (sdbout_reg_parms): Likewise.
17285
17286 2014-03-18 Richard Henderson <rth@redhat.com>
17287
17288 PR target/60562
17289 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
17290 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
17291 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
17292
17293 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
17294
17295 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
17296 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
17297 Italicize plugin event names in description. Explain that
17298 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
17299 Remind that no GCC functions should be called after PLUGIN_FINISH.
17300 Explain what pragmas with expansion are.
17301
17302 2014-03-18 Martin Liska <mliska@suse.cz>
17303
17304 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
17305 gimple call statement is update.
17306 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
17307 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
17308
17309 2014-03-18 Jakub Jelinek <jakub@redhat.com>
17310
17311 PR sanitizer/60557
17312 * ubsan.c (ubsan_instrument_unreachable): Call
17313 initialize_sanitizer_builtins.
17314 (ubsan_pass): Likewise.
17315
17316 PR sanitizer/60535
17317 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
17318 varpool_finalize_decl instead of rest_of_decl_compilation.
17319
17320 2014-03-18 Richard Biener <rguenther@suse.de>
17321
17322 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
17323 by using bitmap_and_compl instead of bitmap_and_compl_into.
17324 (df_rd_transfer_function): Likewise.
17325
17326 2014-03-18 Richard Biener <rguenther@suse.de>
17327
17328 * doc/lto.texi (fresolution): Fix typo.
17329
17330 2014-03-18 Richard Biener <rguenther@suse.de>
17331
17332 * doc/invoke.texi (flto): Update for changes in 4.9.
17333
17334 2014-03-18 Richard Biener <rguenther@suse.de>
17335
17336 * doc/loop.texi: Remove section on the removed lambda framework.
17337 Update loop docs with recent changes in preserving loop structure.
17338
17339 2014-03-18 Richard Biener <rguenther@suse.de>
17340
17341 * doc/lto.texi (-fresolution): Document.
17342
17343 2014-03-18 Richard Biener <rguenther@suse.de>
17344
17345 * doc/contrib.texi: Adjust my name.
17346
17347 2014-03-18 Jakub Jelinek <jakub@redhat.com>
17348
17349 PR ipa/58721
17350 * internal-fn.c: Include diagnostic-core.h.
17351 (expand_BUILTIN_EXPECT): New function.
17352 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
17353 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
17354 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
17355 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
17356 IFN_BUILTIN_EXPECT.
17357 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
17358 Revert 3 argument __builtin_expect code.
17359 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
17360 * gimple-fold.c (gimple_fold_call): Likewise.
17361 * tree.h (fold_builtin_expect): New prototype.
17362 * builtins.c (build_builtin_expect_predicate): Add predictor
17363 argument, if non-NULL, create 3 argument __builtin_expect.
17364 (fold_builtin_expect): No longer static. Add ARG2 argument,
17365 pass it through to build_builtin_expect_predicate.
17366 (fold_builtin_2): Adjust caller.
17367 (fold_builtin_3): Handle BUILT_IN_EXPECT.
17368 * internal-fn.def (BUILTIN_EXPECT): New.
17369
17370 2014-03-18 Tobias Burnus <burnus@net-b.de>
17371
17372 PR ipa/58721
17373 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
17374 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
17375 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
17376
17377 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
17378
17379 PR ipa/58721
17380 * predict.c (combine_predictions_for_bb): Fix up formatting.
17381 (expr_expected_value_1, expr_expected_value): Add predictor argument,
17382 fill what it points to if non-NULL.
17383 (tree_predict_by_opcode): Adjust caller, use the predictor.
17384 * predict.def (PRED_COMPARE_AND_SWAP): Add.
17385
17386 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
17387
17388 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
17389 proper constant for the store mode.
17390
17391 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
17392
17393 * symtab.c (change_decl_assembler_name): Fix transparent alias
17394 chain construction.
17395
17396 2014-03-16 Renlin Li <Renlin.Li@arm.com>
17397
17398 * config/aarch64/aarch64.c: Correct the comments about the
17399 aarch64 stack layout.
17400
17401 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
17402
17403 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
17404 check for GF_OMP_FOR_KIND_FOR.
17405
17406 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
17407
17408 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
17409 ymm and zmm register names.
17410
17411 2014-03-17 Jakub Jelinek <jakub@redhat.com>
17412
17413 PR target/60516
17414 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
17415 note creation for the 2010-08-31 changes.
17416
17417 2014-03-17 Marek Polacek <polacek@redhat.com>
17418
17419 PR middle-end/60534
17420 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
17421 as -fno-tree-loop-vectorize.
17422 (expand_omp_simd): Likewise.
17423
17424 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
17425
17426 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
17427 (eligible_for_call_delay): New prototype.
17428 * config/sparc/sparc.c (tls_call_delay): Rename into...
17429 (eligible_for_call_delay): ...this. Return false if the instruction
17430 cannot be put in the delay slot of a branch.
17431 (eligible_for_restore_insn): Simplify.
17432 (eligible_for_return_delay): Return false if the instruction cannot be
17433 put in the delay slot of a branch and simplify.
17434 (eligible_for_sibcall_delay): Return false if the instruction cannot be
17435 put in the delay slot of a branch.
17436 * config/sparc/sparc.md (fix_ut699): New attribute.
17437 (tls_call_delay): Delete.
17438 (in_call_delay): Reimplement.
17439 (eligible_for_sibcall_delay): Rename into...
17440 (in_sibcall_delay): ...this.
17441 (eligible_for_return_delay): Rename into...
17442 (in_return_delay): ...this.
17443 (in_branch_delay): Reimplement.
17444 (in_uncond_branch_delay): Delete.
17445 (in_annul_branch_delay): Delete.
17446
17447 2014-03-14 Richard Henderson <rth@redhat.com>
17448
17449 PR target/60525
17450 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
17451 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
17452 (*floathi<X87MODEF>2_i387_with_temp): Remove.
17453 (floathi splitters): Remove.
17454 (float<SWI48x>xf2): New pattern.
17455 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
17456 code that tried to handle DImode for 32-bit, but which was excluded
17457 by the pattern's condition. Drop allocation of stack temporary.
17458 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
17459 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
17460 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
17461 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
17462 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
17463 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
17464 (*float<SWI48><MODEF>2_sse_interunit): Remove.
17465 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
17466 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
17467 (*float<SWI48x><X87MODEF>2_i387): Remove.
17468 (all float _with_temp splitters): Remove.
17469 (*float<SWI48x><MODEF>2_i387): New pattern.
17470 (*float<SWI48><MODEF>2_sse): New pattern.
17471 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
17472 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
17473
17474 2014-03-14 Jakub Jelinek <jakub@redhat.com>
17475 Marek Polacek <polacek@redhat.com>
17476
17477 PR middle-end/60484
17478 * common.opt (dump_base_name_prefixed): New Variable.
17479 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
17480 if x_dump_base_name_prefixed is already set, set it at the end.
17481
17482 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
17483
17484 PR rtl-optimization/60508
17485 * lra-constraints.c (get_reload_reg): Add new parameter
17486 in_subreg_p.
17487 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
17488 Pass the new parameter values.
17489
17490 2014-03-14 Richard Biener <rguenther@suse.de>
17491
17492 * common.opt: Revert unintented changes from r205065.
17493 * opts.c: Likewise.
17494
17495 2014-03-14 Richard Biener <rguenther@suse.de>
17496
17497 PR middle-end/60518
17498 * cfghooks.c (split_block): Properly adjust all loops the
17499 block was a latch of.
17500
17501 2014-03-14 Martin Jambor <mjambor@suse.cz>
17502
17503 PR lto/60461
17504 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
17505 and simplify it.
17506
17507 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
17508
17509 PR target/59396
17510 * config/avr/avr.c (avr_set_current_function): Pass function name
17511 through default_strip_name_encoding before sanity checking instead
17512 of skipping the first char of the assembler name.
17513
17514 2014-03-13 Richard Henderson <rth@redhat.com>
17515
17516 PR debug/60438
17517 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
17518 (ix86_force_to_memory, ix86_free_from_memory): Remove.
17519 * config/i386/i386-protos.h: Likewise.
17520 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
17521 in the expander instead of a splitter.
17522 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
17523 any possibility of requiring a memory.
17524 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
17525 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
17526 (fp branch splitters): Update for ix86_split_fp_branch.
17527 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
17528 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
17529 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
17530 (*fop_<MODEF>_2_i387): Remove f/r alternative.
17531 (*fop_<MODEF>_3_i387): Likewise.
17532 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
17533 (splitters for the fop_* register patterns): Remove.
17534 (fscalexf4_i387): Rename from *fscalexf4_i387.
17535 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
17536
17537 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17538
17539 PR tree-optimization/59779
17540 * tree-dfa.c (get_ref_base_and_extent): Use double_int
17541 type for bitsize and maxsize instead of HOST_WIDE_INT.
17542
17543 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
17544
17545 PR rtl-optimization/57320
17546 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
17547 the CFG after thread_prologue_and_epilogue_insns.
17548
17549 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
17550
17551 PR rtl-optimization/57189
17552 * lra-constraints.c (process_alt_operands): Disfavor spilling
17553 vector pseudos.
17554
17555 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
17556
17557 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
17558
17559 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17560
17561 PR tree-optimization/59025
17562 PR middle-end/60418
17563 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
17564 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
17565
17566 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
17567
17568 PR target/60486
17569 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
17570 calls of avr_out_plus_1.
17571
17572 2014-03-13 Bin Cheng <bin.cheng@arm.com>
17573
17574 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
17575 BB's single pred and update the father loop's latch info later.
17576
17577 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17578
17579 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
17580 (VEC_M): Likewise.
17581 (VEC_N): Likewise.
17582 (VEC_R): Likewise.
17583 (VEC_base): Likewise.
17584 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
17585 registers, we need to swap double words in little endian mode.
17586
17587 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
17588 to be a container mode for 128-bit integer operations added in ISA
17589 2.07. Unlike TImode and PTImode, the preferred register set is
17590 the Altivec/VMX registers for the 128-bit operations.
17591
17592 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
17593 declarations.
17594 (rs6000_split_128bit_ok_p): Likewise.
17595
17596 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
17597 macros for creating ISA 2.07 normal and overloaded builtin
17598 functions with 3 arguments.
17599 (BU_P8V_OVERLOAD_3): Likewise.
17600 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
17601 for use as overloaded functions.
17602 (VPERM_1TI_UNS): Likewise.
17603 (VSEL_1TI): Likewise.
17604 (VSEL_1TI_UNS): Likewise.
17605 (ST_INTERNAL_1ti): Likewise.
17606 (LD_INTERNAL_1ti): Likewise.
17607 (XXSEL_1TI): Likewise.
17608 (XXSEL_1TI_UNS): Likewise.
17609 (VPERM_1TI): Likewise.
17610 (VPERM_1TI_UNS): Likewise.
17611 (XXPERMDI_1TI): Likewise.
17612 (SET_1TI): Likewise.
17613 (LXVD2X_V1TI): Likewise.
17614 (STXVD2X_V1TI): Likewise.
17615 (VEC_INIT_V1TI): Likewise.
17616 (VEC_SET_V1TI): Likewise.
17617 (VEC_EXT_V1TI): Likewise.
17618 (EQV_V1TI): Likewise.
17619 (NAND_V1TI): Likewise.
17620 (ORC_V1TI): Likewise.
17621 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
17622 added in ISA 2.07. Add both normal 'altivec' builtins, and the
17623 overloaded builtin.
17624 (VADDUQM): Likewise.
17625 (VSUBCUQ): Likewise.
17626 (VADDEUQM): Likewise.
17627 (VADDECUQ): Likewise.
17628 (VSUBEUQM): Likewise.
17629 (VSUBECUQ): Likewise.
17630
17631 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
17632 __int128_t and __uint128_t types.
17633 (__uint128_type): Likewise.
17634 (altivec_categorize_keyword): Add support for vector __int128_t,
17635 vector __uint128_t, vector __int128, and vector unsigned __int128
17636 as a container type for TImode operations that need to be done in
17637 VSX/Altivec registers.
17638 (rs6000_macro_to_expand): Likewise.
17639 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
17640 to support 128-bit integer instructions vaddcuq, vadduqm,
17641 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
17642 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
17643
17644 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
17645 for V1TImode, and set up preferences to use VSX/Altivec registers.
17646 Setup VSX reload handlers.
17647 (rs6000_debug_reg_global): Likewise.
17648 (rs6000_init_hard_regno_mode_ok): Likewise.
17649 (rs6000_preferred_simd_mode): Likewise.
17650 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
17651 (easy_altivec_constant): Likewise.
17652 (output_vec_const_move): Likewise.
17653 (rs6000_expand_vector_set): Convert V1TImode set and extract to
17654 simple move.
17655 (rs6000_expand_vector_extract): Likewise.
17656 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
17657 addressing.
17658 (rs6000_const_vec): Add support for V1TImode.
17659 (rs6000_emit_le_vsx_load): Swap double words when loading or
17660 storing TImode/V1TImode.
17661 (rs6000_emit_le_vsx_store): Likewise.
17662 (rs6000_emit_le_vsx_move): Likewise.
17663 (rs6000_emit_move): Add support for V1TImode.
17664 (altivec_expand_ld_builtin): Likewise.
17665 (altivec_expand_st_builtin): Likewise.
17666 (altivec_expand_vec_init_builtin): Likewise.
17667 (altivec_expand_builtin): Likewise.
17668 (rs6000_init_builtins): Add support for V1TImode type. Add
17669 support for ISA 2.07 128-bit integer builtins. Define type names
17670 for the VSX/Altivec vector types.
17671 (altivec_init_builtins): Add support for overloaded vector
17672 functions with V1TImode type.
17673 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
17674 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
17675 external function.
17676 (rs6000_split_128bit_ok_p): Likewise.
17677 (rs6000_handle_altivec_attribute): Create V1TImode from vector
17678 __int128_t and vector __uint128_t.
17679
17680 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
17681 and mode attributes.
17682 (VSX_M): Likewise.
17683 (VSX_M2): Likewise.
17684 (VSm): Likewise.
17685 (VSs): Likewise.
17686 (VSr): Likewise.
17687 (VSv): Likewise.
17688 (VS_scalar): Likewise.
17689 (VS_double): Likewise.
17690 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
17691
17692 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
17693 we support the ISA 2.07 128-bit integer arithmetic instructions.
17694 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
17695 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
17696 and TImode types for use with the builtin functions.
17697 (V1TI_type_node): Likewise.
17698 (unsigned_V1TI_type_node): Likewise.
17699 (intTI_type_internal_node): Likewise.
17700 (uintTI_type_internal_node): Likewise.
17701
17702 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
17703 128-bit builtin functions.
17704 (UNSPEC_VADDEUQM): Likewise.
17705 (UNSPEC_VADDECUQ): Likewise.
17706 (UNSPEC_VSUBCUQ): Likewise.
17707 (UNSPEC_VSUBEUQM): Likewise.
17708 (UNSPEC_VSUBECUQ): Likewise.
17709 (VM): Add V1TImode to vector mode iterators.
17710 (VM2): Likewise.
17711 (VI_unit): Likewise.
17712 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
17713 (altivec_vaddcuq): Likewise.
17714 (altivec_vsubuqm): Likewise.
17715 (altivec_vsubcuq): Likewise.
17716 (altivec_vaddeuqm): Likewise.
17717 (altivec_vaddecuq): Likewise.
17718 (altivec_vsubeuqm): Likewise.
17719 (altivec_vsubecuq): Likewise.
17720
17721 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
17722 mode iterators.
17723 (BOOL_128): Likewise.
17724 (BOOL_REGS_OUTPUT): Likewise.
17725 (BOOL_REGS_OP1): Likewise.
17726 (BOOL_REGS_OP2): Likewise.
17727 (BOOL_REGS_UNARY): Likewise.
17728 (BOOL_REGS_AND_CR0): Likewise.
17729
17730 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
17731 128-bit integer builtin support.
17732 (vec_vadduqm): Likewise.
17733 (vec_vaddecuq): Likewise.
17734 (vec_vaddeuqm): Likewise.
17735 (vec_vsubecuq): Likewise.
17736 (vec_vsubeuqm): Likewise.
17737 (vec_vsubcuq): Likewise.
17738 (vec_vsubuqm): Likewise.
17739
17740 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17741 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
17742 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
17743 128-bit integer add/subtract to ISA 2.07.
17744
17745 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
17746
17747 * config/arc/arc.c (arc_predicate_delay_insns):
17748 Fix third argument passed to conditionalize_nonjump.
17749
17750 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
17751
17752 * config/aarch64/aarch64-builtins.c
17753 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
17754 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
17755 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
17756 instead of __builtin_lfloor.
17757 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
17758
17759 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17760
17761 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
17762 (tree_ssa_ifcombine_bb_1): New function.
17763 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
17764 is an empty forwarder block to then_bb or vice versa and then_bb
17765 and else_bb are effectively swapped.
17766
17767 2014-03-12 Christian Bruel <christian.bruel@st.com>
17768
17769 PR target/60264
17770 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
17771 REG_CFA_DEF_CFA note.
17772 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
17773 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
17774
17775 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17776
17777 PR tree-optimization/60454
17778 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
17779
17780 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17781
17782 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
17783 Do not define target_cpu_default2 to generic.
17784 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
17785 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
17786 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
17787
17788 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17789 Marc Glisse <marc.glisse@inria.fr>
17790
17791 PR tree-optimization/60502
17792 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
17793 instead of build_low_bits_mask.
17794
17795 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17796
17797 PR middle-end/60482
17798 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
17799 if there are multiple uses, but op doesn't live on E edge.
17800 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
17801 clobber stmts before __builtin_unreachable.
17802
17803 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
17804
17805 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
17806 hard_frame_pointer_rtx.
17807 * cse.c (cse_insn): Remove volatile check.
17808 * cselib.c (cselib_process_insn): Likewise.
17809 * dse.c (scan_insn): Likewise.
17810
17811 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17812
17813 * config/arc/arc.c (conditionalize_nonjump): New function,
17814 broken out of ...
17815 (arc_ifcvt): ... this.
17816 (arc_predicate_delay_insns): Use it.
17817
17818 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17819
17820 * config/arc/predicates.md (extend_operand): During/after reload,
17821 allow const_int_operand.
17822 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
17823 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
17824 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
17825 to "i".
17826 (umulsi3_highpart_i): Likewise.
17827
17828 2014-03-11 Richard Biener <rguenther@suse.de>
17829
17830 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17831 Add asserts to guard possible wrong-code bugs.
17832
17833 2014-03-11 Richard Biener <rguenther@suse.de>
17834
17835 PR tree-optimization/60429
17836 PR tree-optimization/60485
17837 * tree-ssa-structalias.c (set_union_with_increment): Properly
17838 take into account all fields that overlap the shifted vars.
17839 (do_sd_constraint): Likewise.
17840 (do_ds_constraint): Likewise.
17841 (get_constraint_for_ptr_offset): Likewise.
17842
17843 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
17844
17845 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
17846 (nios2_compute_frame_layout):
17847 Add calculation of cfun->machine->fp_save_offset.
17848 (nios2_expand_prologue): Correct setting of frame pointer register
17849 in prologue.
17850 (nios2_expand_epilogue): Update recovery of stack pointer from
17851 frame pointer accordingly.
17852 (nios2_initial_elimination_offset): Update calculation of offset
17853 for eliminating to HARD_FRAME_POINTER_REGNUM.
17854
17855 2014-03-10 Jakub Jelinek <jakub@redhat.com>
17856
17857 PR ipa/60457
17858 * ipa.c (symtab_remove_unreachable_nodes): Don't call
17859 cgraph_get_create_node on VAR_DECLs.
17860
17861 2014-03-10 Richard Biener <rguenther@suse.de>
17862
17863 PR middle-end/60474
17864 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
17865
17866 2014-03-08 Douglas B Rupp <rupp@gnat.com>
17867
17868 * config/vms/vms.opt (vms_float_format): New variable.
17869
17870 2014-03-08 Tobias Burnus <burnus@net-b.de>
17871
17872 * doc/invoke.texi (-fcilkplus): Update implementation status.
17873
17874 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
17875 Richard Biener <rguenther@suse.de>
17876
17877 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
17878 consistently accross all TUs.
17879 (run_gcc): Enable -fshort-double automatically at link at link-time
17880 and disallow override.
17881
17882 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
17883
17884 PR target/58271
17885 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
17886 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
17887 if they can't be used.
17888
17889 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17890
17891 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
17892 for Solaris 11/x86 ld.
17893 * configure: Regenerate.
17894
17895 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17896
17897 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
17898 (LIB_TLS_SPEC): Save as ld_tls_libs.
17899 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
17900 (HAVE_AS_IX86_TLSLDM): New test.
17901 * configure, config.in: Regenerate.
17902 * config/i386/i386.c (legitimize_tls_address): Fall back to
17903 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
17904 cannot support TLS_MODEL_LOCAL_DYNAMIC.
17905 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
17906 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
17907
17908 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
17909
17910 * common.opt (fira-loop-pressure): Mark as optimization.
17911
17912 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
17913
17914 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
17915 an OpenMP mappable type.
17916
17917 2014-03-06 Matthias Klose <doko@ubuntu.com>
17918
17919 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
17920 MULTILIB_OSDIRNAMES is not defined.
17921
17922 2014-03-06 Jakub Jelinek <jakub@redhat.com>
17923 Meador Inge <meadori@codesourcery.com>
17924
17925 PR target/58595
17926 * config/arm/arm.c (arm_tls_symbol_p): Remove.
17927 (arm_legitimize_address): Call legitimize_tls_address for any
17928 arm_tls_referenced_p expression, handle constant addend. Call it
17929 before testing for !TARGET_ARM.
17930 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
17931
17932 2014-03-06 Richard Biener <rguenther@suse.de>
17933
17934 PR middle-end/60445
17935 PR lto/60424
17936 PR lto/60427
17937 Revert
17938 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17939
17940 * tree-streamer.c (record_common_node): Assert we don't record
17941 nodes with type double.
17942 (preload_common_node): Skip type double, complex double and double
17943 pointer since it is now frontend dependent due to fshort-double option.
17944
17945 2014-03-06 Richard Biener <rguenther@suse.de>
17946
17947 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
17948 or -fno-lto is specified and the linker has full plugin support.
17949 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
17950 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
17951 * lto-wrapper.c (merge_and_complain): Merge compile-time
17952 optimization levels.
17953 (run_gcc): And pass it through to the link options.
17954
17955 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
17956
17957 PR debug/60381
17958 Revert:
17959 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17960 PR debug/59992
17961 * cselib.c (remove_useless_values): Skip to avoid quadratic
17962 behavior if the condition moved from...
17963 (cselib_process_insn): ... here holds.
17964
17965 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17966
17967 PR plugins/59335
17968 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
17969 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
17970
17971 PR plugins/59335
17972 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
17973 (TM_H): Add x86-tune.def.
17974
17975 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17976
17977 * config/aarch64/aarch64.c (generic_tunings):
17978 Use cortexa57_extra_costs.
17979
17980 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17981
17982 PR lto/60404
17983 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
17984 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
17985 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
17986 cost for in_lto_p.
17987
17988 2014-03-04 Heiher <r@hev.cc>
17989
17990 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
17991 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
17992
17993 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
17994
17995 * config/i386/predicates.md (const2356_operand): Change to ...
17996 (const2367_operand): ... this.
17997 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
17998 const2367_operand.
17999 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18000 (*avx512pf_scatterpf<mode>sf): Ditto.
18001 (avx512pf_scatterpf<mode>df): Ditto.
18002 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18003 (*avx512pf_scatterpf<mode>df): Ditto.
18004 * config/i386/i386.c (ix86_expand_builtin): Update
18005 incorrect hint operand error message.
18006
18007 2014-03-04 Richard Biener <rguenther@suse.de>
18008
18009 * lto-section-in.c (lto_get_section_data): Fix const cast.
18010
18011 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
18012
18013 * tree-streamer.c (record_common_node): Assert we don't record
18014 nodes with type double.
18015 (preload_common_node): Skip type double, complex double and double
18016 pointer since it is now frontend dependent due to fshort-double option.
18017
18018 2014-03-04 Richard Biener <rguenther@suse.de>
18019
18020 PR lto/60405
18021 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
18022 (lto_input_toplevel_asms): Likewise.
18023 * lto-section-in.c (lto_get_section_data): Instead do it here
18024 for every section.
18025
18026 2014-03-04 Richard Biener <rguenther@suse.de>
18027
18028 PR tree-optimization/60382
18029 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
18030 dead PHIs a reduction.
18031
18032 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
18033
18034 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
18035 hint value.
18036 (_mm_prefetch): Move out of GCC target("sse") pragma.
18037 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
18038 GCC target("prfchw") pragma.
18039 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
18040 for locality <= 2.
18041 * config/i386/i386.c (ix86_option_override_internal): Enable
18042 -mprfchw with -mprefetchwt1.
18043
18044 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
18045
18046 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
18047 Mark as varying.
18048
18049 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
18050
18051 * opts.h (CL_PCH_IGNORE): Define.
18052 * targhooks.c (option_affects_pch_p):
18053 Return false for options that have CL_PCH_IGNORE set.
18054 * opt-functions.awk: Process PchIgnore.
18055 * doc/options.texi: Document PchIgnore.
18056
18057 * config/arc/arc.opt (misize): Add PchIgnore property.
18058
18059 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18060
18061 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
18062 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
18063 constraint on constants to permit them being loaded into
18064 GENERAL_REGS or BASE_REGS.
18065
18066 2014-03-03 Nick Clifton <nickc@redhat.com>
18067
18068 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
18069 anti-cacnonical alternatives.
18070 (negandhi3_real): New pattern.
18071 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
18072
18073 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18074
18075 * config/avr/avr-mcus.def: Remove atxmega16x1.
18076 * config/avr/avr-tables.opt: Regenerate.
18077 * config/avr/t-multilib: Regenerate.
18078 * doc/avr-mmcu.texi: Regenerate.
18079
18080 2014-03-03 Tobias Grosser <tobias@grosser.es>
18081 Mircea Namolaru <mircea.namolaru@inria.fr>
18082
18083 PR tree-optimization/58028
18084 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
18085 scalar dimensions.
18086
18087 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18088
18089 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
18090 not handled by recognizers.
18091
18092 2014-03-03 Jakub Jelinek <jakub@redhat.com>
18093
18094 PR middle-end/60175
18095 * function.c (expand_function_end): Don't emit
18096 clobber_return_register sequence if clobber_after is a BARRIER.
18097 * cfgexpand.c (construct_exit_block): Append instructions before
18098 return_label to prev_bb.
18099
18100 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18101
18102 * config/rs6000/constraints.md: Document reserved use of "wc".
18103
18104 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
18105
18106 PR ipa/60150
18107 * ipa.c (function_and_variable_visibility): When dissolving comdat
18108 group, also set all symbols to local.
18109
18110 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
18111
18112 PR ipa/60306
18113
18114 Revert:
18115 2013-12-14 Jan Hubicka <jh@suse.cz>
18116 PR middle-end/58477
18117 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
18118
18119 2014-03-02 Jon Beniston <jon@beniston.com>
18120
18121 PR bootstrap/48230
18122 PR bootstrap/50927
18123 PR bootstrap/52466
18124 PR target/46898
18125 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
18126 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
18127 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
18128 (simple_return, *simple_return): New patterns
18129 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
18130 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
18131
18132 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
18133
18134 * dwarf2out.c (gen_subprogram_die): Tidy.
18135
18136 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
18137
18138 PR target/60071
18139 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
18140 (*mov_t_msb_neg_negc): ... this new insn.
18141
18142 2014-02-28 Jason Merrill <jason@redhat.com>
18143
18144 PR c++/58678
18145 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
18146 function.
18147
18148 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
18149
18150 PR c++/60314
18151 * dwarf2out.c (decltype_auto_die): New static.
18152 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
18153 (gen_type_die_with_usage): Handle 'decltype(auto)'.
18154 (is_cxx_auto): Likewise.
18155
18156 2014-02-28 Ian Bolton <ian.bolton@arm.com>
18157
18158 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
18159 we are not using general regs only.
18160
18161 2014-02-28 Richard Biener <rguenther@suse.de>
18162
18163 PR target/60280
18164 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
18165 previous fix and only allow to remove trivial pre-headers
18166 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
18167 (remove_forwarder_block): Properly update the latch of a loop.
18168
18169 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18170
18171 PR debug/59992
18172 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
18173 (cselib_preserved_hash_table): New.
18174 (preserve_constants_and_equivs): Move preserved vals to it.
18175 (cselib_find_slot): Look it up first.
18176 (cselib_init): Initialize it.
18177 (cselib_finish): Release it.
18178 (dump_cselib_table): Dump it.
18179
18180 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18181
18182 PR debug/59992
18183 * cselib.c (remove_useless_values): Skip to avoid quadratic
18184 behavior if the condition moved from...
18185 (cselib_process_insn): ... here holds.
18186
18187 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18188
18189 PR debug/57232
18190 * var-tracking.c (vt_initialize): Apply the same condition to
18191 preserve the CFA base value.
18192
18193 2014-02-28 Joey Ye <joey.ye@arm.com>
18194
18195 PR target/PR60169
18196 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
18197 if reload in progress or completed.
18198
18199 2014-02-28 Tobias Burnus <burnus@net-b.de>
18200
18201 PR middle-end/60147
18202 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
18203 NAMELIST_DECL.
18204
18205 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
18206
18207 * doc/tm.texi.in (Condition Code Status): Update documention for
18208 relative locations of cc0-setter and cc0-user.
18209
18210 2014-02-27 Jeff Law <law@redhat.com>
18211
18212 PR rtl-optimization/52714
18213 * combine.c (try_combine): When splitting an unrecognized PARALLEL
18214 into two independent simple sets, if I3 is a jump, ensure the
18215 pattern we place into I3 is a (set (pc) ...).
18216
18217 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
18218 Jeff Law <law@redhat.com>
18219
18220 PR rtl-optimization/49847
18221 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
18222 are in different blocks.
18223 * doc/tm.texi (Condition Code Status): Update documention for
18224 relative locations of cc0-setter and cc0-user.
18225
18226 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
18227
18228 PR target/59222
18229 * lra.c (lra_emit_add): Check SUBREG too.
18230
18231 2014-02-27 Andreas Schwab <schwab@suse.de>
18232
18233 * config/m68k/m68k.c (m68k_option_override): Disable
18234 -flive-range-shrinkage for classic m68k.
18235 (m68k_override_options_after_change): Likewise.
18236
18237 2014-02-27 Marek Polacek <polacek@redhat.com>
18238
18239 PR middle-end/59223
18240 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
18241 -Wmaybe-uninitialized.
18242
18243 2014-02-27 Alan Modra <amodra@gmail.com>
18244
18245 PR target/57936
18246 * reload1.c (emit_input_reload_insns): When reload_override_in,
18247 set old to rl->in_reg when rl->in_reg is a subreg.
18248
18249 2014-02-26 Richard Biener <rguenther@suse.de>
18250
18251 PR bootstrap/60343
18252 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
18253
18254 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
18255
18256 * common/config/i386/predicates.md (const1256_operand): Remove.
18257 (const2356_operand): New.
18258 (const_1_to_2_operand): Remove.
18259 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18260 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18261 (*avx512pf_gatherpf<mode>sf): Ditto.
18262 (avx512pf_gatherpf<mode>df): Ditto.
18263 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18264 (*avx512pf_gatherpf<mode>df): Ditto.
18265 (avx512pf_scatterpf<mode>sf): Ditto.
18266 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18267 (*avx512pf_scatterpf<mode>sf): Ditto.
18268 (avx512pf_scatterpf<mode>df): Ditto.
18269 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18270 (*avx512pf_scatterpf<mode>df): Ditto.
18271 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
18272
18273 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
18274
18275 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
18276 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
18277 (_mm512_mask_testn_epi64_mask): Move to ...
18278 * config/i386/avx512cdintrin.h: Here.
18279 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
18280 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
18281 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
18282 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
18283 TARGET_AVX512F from TARGET_AVX512CD.
18284
18285 2014-02-26 Richard Biener <rguenther@suse.de>
18286
18287 PR ipa/60327
18288 * ipa.c (walk_polymorphic_call_targets): Properly guard
18289 call to inline_update_overall_summary.
18290
18291 2014-02-26 Bin Cheng <bin.cheng@arm.com>
18292
18293 PR target/60280
18294 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
18295 and latches only if requested. Fix latch if it is removed.
18296 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
18297 LOOPS_HAVE_PREHEADERS.
18298
18299 2014-02-25 Andrew Pinski <apinski@cavium.com>
18300
18301 * builtins.c (expand_builtin_thread_pointer): Create a new target
18302 when the target is NULL.
18303
18304 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
18305
18306 PR rtl-optimization/60317
18307 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
18308 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
18309 * lra-assigns.c: Include params.h.
18310 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
18311 other reload pseudos considerations.
18312
18313 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18314
18315 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
18316 to use canonical form for nor<mode>3.
18317
18318 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18319
18320 PR target/55426
18321 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
18322 conversions.
18323
18324 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
18325
18326 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
18327 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
18328 (ix86_handle_option): Handle OPT_mprefetchwt1.
18329 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
18330 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18331 PREFETCHWT1 CPUID.
18332 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18333 OPTION_MASK_ISA_PREFETCHWT1.
18334 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
18335 (PTA_PREFETCHWT1): New.
18336 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
18337 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
18338 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
18339 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
18340 (*prefetch_avx512pf_<mode>_: Change into ...
18341 (*prefetch_prefetchwt1_<mode>: This.
18342 * config/i386/i386.opt (mprefetchwt1): New.
18343 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
18344 (_mm_prefetch): Handle intent to write.
18345 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
18346
18347 2014-02-25 Richard Biener <rguenther@suse.de>
18348
18349 PR middle-end/60291
18350 * emit-rtl.c (mem_attrs_htab): Remove.
18351 (mem_attrs_htab_hash): Likewise.
18352 (mem_attrs_htab_eq): Likewise.
18353 (set_mem_attrs): Always allocate new mem-attrs when something changed.
18354 (init_emit_once): Do not allocate mem_attrs_htab.
18355
18356 2014-02-25 Richard Biener <rguenther@suse.de>
18357
18358 PR lto/60319
18359 * lto-opts.c (lto_write_options): Output non-explicit conservative
18360 -fwrapv, -fno-trapv and -fno-strict-overflow.
18361 * lto-wrapper.c (merge_and_complain): Handle merging those options.
18362 (run_gcc): And pass them through.
18363
18364 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18365
18366 * sel-sched.c (calculate_new_fences): New parameter ptime.
18367 Calculate it as a maximum over all fence cycles.
18368 (sel_sched_region_2): Adjust the call to calculate_new_fences.
18369 Print the final schedule timing when sched_verbose.
18370
18371 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18372
18373 PR rtl-optimization/60292
18374 * sel-sched.c (fill_vec_av_set): Do not reset target availability
18375 bit fot the fence instruction.
18376
18377 2014-02-24 Alangi Derick <alangiderick@gmail.com>
18378
18379 * calls.h: Fix typo in comment.
18380
18381 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
18382
18383 * config/pa/pa.c (pa_output_move_double): Don't valididate when
18384 adjusting offsetable addresses.
18385
18386 2014-02-24 Guozhi Wei <carrot@google.com>
18387
18388 * sparseset.h (sparseset_pop): Fix the wrong index.
18389
18390 2014-02-24 Walter Lee <walt@tilera.com>
18391
18392 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
18393 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
18394 triplet.
18395 * common/config/tilegx/tilegx-common.c
18396 (TARGET_DEFAULT_TARGET_FLAGS): Define.
18397 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
18398 (LINK_SPEC): Ditto.
18399 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
18400 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
18401 (tilegx_gimplify_va_arg_expr): Handle big endian.
18402 (tilegx_expand_unaligned_load): Ditto.
18403 (tilegx_expand_unaligned_store): Ditto.
18404 (TARGET_RETURN_IN_MSB): New.
18405 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
18406 (TARGET_ENDIAN_DEFAULT): New.
18407 (TARGET_BIG_ENDIAN): Handle big endian.
18408 (BYTES_BIG_ENDIAN): Ditto.
18409 (WORDS_BIG_ENDIAN): Ditto.
18410 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
18411 (ENDIAN_SPEC): New.
18412 (EXTRA_SPECS): New.
18413 * config/tilegx/tilegx.md (extv): Handle big endian.
18414 (extzv): Ditto.
18415 (insn_st<n>): Ditto.
18416 (insn_st<n>_add<bitsuffix>): Ditto.
18417 (insn_stnt<n>): Ditto.
18418 (insn_stnt<n>_add<bitsuffix>):Ditto.
18419 (vec_interleave_highv8qi): Handle big endian.
18420 (vec_interleave_highv8qi_be): New.
18421 (vec_interleave_highv8qi_le): New.
18422 (insn_v1int_h): Handle big endian.
18423 (vec_interleave_lowv8qi): Handle big endian.
18424 (vec_interleave_lowv8qi_be): New.
18425 (vec_interleave_lowv8qi_le): New.
18426 (insn_v1int_l): Handle big endian.
18427 (vec_interleave_highv4hi): Handle big endian.
18428 (vec_interleave_highv4hi_be): New.
18429 (vec_interleave_highv4hi_le): New.
18430 (insn_v2int_h): Handle big endian.
18431 (vec_interleave_lowv4hi): Handle big endian.
18432 (vec_interleave_lowv4hi_be): New.
18433 (vec_interleave_lowv4hi_le): New.
18434 (insn_v2int_l): Handle big endian.
18435 (vec_interleave_highv2si): Handle big endian.
18436 (vec_interleave_highv2si_be): New.
18437 (vec_interleave_highv2si_le): New.
18438 (insn_v4int_h): Handle big endian.
18439 (vec_interleave_lowv2si): Handle big endian.
18440 (vec_interleave_lowv2si_be): New.
18441 (vec_interleave_lowv2si_le): New.
18442 (insn_v4int_l): Handle big endian.
18443 * config/tilegx/tilegx.opt (mbig-endian): New option.
18444 (mlittle-endian): New option.
18445 * doc/install.texi: Document tilegxbe-linux.
18446 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
18447
18448 2014-02-24 Martin Jambor <mjambor@suse.cz>
18449
18450 PR ipa/60266
18451 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
18452 there are no parameter descriptors.
18453
18454 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
18455
18456 PR rtl-optimization/60268
18457 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
18458 initialization to ...
18459 (sched_rgn_init): ... here.
18460 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
18461
18462 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18463
18464 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
18465 names.
18466
18467 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18468
18469 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
18470 definition.
18471
18472 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18473
18474 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
18475 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
18476
18477 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18478
18479 * config/microblaze/predicates.md: Add cmp_op predicate.
18480 * config/microblaze/microblaze.md: Add branch_compare instruction
18481 which uses cmp_op predicate and emits cmp insn before branch.
18482 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
18483 to microblaze_expand_conditional_branch and consolidate logic.
18484 (microblaze_expand_conditional_branch): emit branch_compare
18485 insn instead of handling cmp op separate from branch insn.
18486
18487 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18488
18489 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
18490 to permit subregs.
18491
18492 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18493
18494 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
18495 define_insn with define_expand and new define_insn
18496 *altivec_lve<VI_char>x_internal.
18497 (altivec_stve<VI_char>x): Replace define_insn with define_expand
18498 and new define_insn *altivec_stve<VI_char>x_internal.
18499 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
18500 prototype.
18501 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
18502 lve*x built-ins.
18503 (altivec_expand_stvex_be): New function.
18504
18505 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
18506
18507 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
18508 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
18509 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
18510 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
18511
18512 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
18513
18514 PR target/60298
18515 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
18516 instead of emit_move_insn.
18517
18518 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18519
18520 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
18521 vspltw with vsldoi.
18522 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
18523 gen_altivec_vsumsws.
18524
18525 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18526
18527 * config/rs6000/altivec.md (altivec_lvxl): Rename as
18528 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
18529 (altivec_lvxl_<mode>): New define_expand incorporating
18530 -maltivec=be semantics where needed.
18531 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
18532 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
18533 semantics where needed.
18534 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
18535 (altivec_stvx_<mode>): New define_expand incorporating
18536 -maltivec=be semantics where needed.
18537 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
18538 VM2 iterator instead of V4SI.
18539 (altivec_stvxl_<mode>): New define_expand incorporating
18540 -maltivec=be semantics where needed.
18541 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
18542 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
18543 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
18544 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
18545 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
18546 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
18547 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
18548 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
18549 ALTIVEC_BUILTIN_STVXL.
18550 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
18551 (altivec_expand_stvx_be): Likewise.
18552 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
18553 (altivec_expand_lvx_be): Likewise.
18554 (altivec_expand_stvx_be): Likewise.
18555 (altivec_expand_builtin): Add cases for
18556 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
18557 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
18558 (altivec_init_builtins): Add definitions for
18559 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
18560 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
18561
18562 2014-02-21 Catherine Moore <clm@codesourcery.com>
18563
18564 * doc/invoke.texi (mvirt, mno-virt): Document.
18565 * config/mips/mips.opt (mvirt): New option.
18566 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
18567
18568 2014-02-21 Richard Biener <rguenther@suse.de>
18569
18570 PR tree-optimization/60276
18571 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
18572 (STMT_VINFO_MIN_NEG_DIST): New macro.
18573 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
18574 STMT_VINFO_MIN_NEG_DIST.
18575 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
18576 made for negative dependence distances still hold.
18577
18578 2014-02-21 Richard Biener <rguenther@suse.de>
18579
18580 PR middle-end/60291
18581 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
18582 DECL_INITIAL for globals not in the current function context.
18583
18584 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18585
18586 PR tree-optimization/56490
18587 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
18588 * tree-ssa-uninit.c: Include params.h.
18589 (compute_control_dep_chain): Add num_calls argument, return false
18590 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
18591 num_calls to recursive call.
18592 (find_predicates): Change dep_chain into normal array,
18593 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
18594 variable and adjust compute_control_dep_chain caller.
18595 (find_def_preds): Likewise.
18596
18597 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
18598
18599 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
18600 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
18601
18602 2014-02-21 Nick Clifton <nickc@redhat.com>
18603
18604 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
18605 (pushhi1): Likewise.
18606 (popqi1): Add mode to pre_dec.
18607 (pophi1): Likewise.
18608
18609 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18610
18611 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
18612 mode for mask of V8SFmode permutation.
18613
18614 2014-02-20 Richard Henderson <rth@redhat.com>
18615
18616 PR c++/60272
18617 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
18618 a new pseudo for OLDVAL.
18619
18620 2014-02-20 Jakub Jelinek <jakub@redhat.com>
18621
18622 PR target/57896
18623 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
18624 gen_reg_rtx if d->testing_p.
18625 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
18626 if d->testing_p and we will certainly return true.
18627 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
18628 if d->testing_p.
18629
18630 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
18631
18632 * emit-rtl.c (gen_reg_rtx): Assert that
18633 crtl->emit.regno_pointer_align_length is non-zero.
18634
18635 2014-02-20 Richard Henderson <rth@redhat.com>
18636
18637 PR c++/60272
18638 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
18639 on failure the store back into EXPECT.
18640
18641 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
18642 Sandra Loosemore <sandra@codesourcery.com>
18643
18644 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
18645 * config/nios2/nios2.c (nios2_function_profiler): Add
18646 -fPIC (flag_pic == 2) support.
18647 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
18648 (nios2_large_offset_p): New function.
18649 (nios2_unspec_reloc_p): Move up position, update to use
18650 nios2_large_offset_p.
18651 (nios2_unspec_address): Remove function.
18652 (nios2_unspec_offset): New function.
18653 (nios2_large_got_address): New function.
18654 (nios2_got_address): Add large offset support.
18655 (nios2_legitimize_tls_address): Update usage of removed and new
18656 functions.
18657 (nios2_symbol_binds_local_p): New function.
18658 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
18659 (nios2_legitimize_address): Update to use nios2_large_offset_p.
18660 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
18661 (nios2_print_operand): Merge H/L processing, add hiadj/lo
18662 processing for (const (unspec ...)).
18663 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
18664
18665 2014-02-20 Richard Biener <rguenther@suse.de>
18666
18667 * tree-cfg.c (replace_uses_by): Mark altered BBs before
18668 doing the substitution.
18669 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
18670
18671 2014-02-20 Martin Jambor <mjambor@suse.cz>
18672
18673 PR ipa/55260
18674 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
18675 info when checking whether lattices are bottom.
18676
18677 2014-02-20 Richard Biener <rguenther@suse.de>
18678
18679 PR middle-end/60221
18680 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
18681 regions at -O0.
18682
18683 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
18684
18685 PR ipa/58555
18686 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
18687 parameter specifying the scaling.
18688 (inline_call): Update.
18689 (want_inline_recursively): Guard division by zero.
18690 (recursive_inlining): Update.
18691 * ipa-inline.h (clone_inlined_nodes): Update.
18692
18693 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18694
18695 PR target/60204
18696 * config/i386/i386.c (classify_argument): Pass structures of size
18697 64 bytes or less in register.
18698
18699 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18700 Kirill Yukhin <kirill.yukhin@intel.com>
18701
18702 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
18703 (_mm_rcp28_round_ss): Ditto.
18704 (_mm_rsqrt28_round_sd): Ditto.
18705 (_mm_rsqrt28_round_ss): Ditto.
18706 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
18707 (_mm_rcp14_round_ss): Ditto.
18708 (_mm_rsqrt14_round_sd): Ditto.
18709 (_mm_rsqrt14_round_ss): Ditto.
18710 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
18711 the first input operand, get rid of match_dup.
18712 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
18713 attribute to sse.
18714 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
18715 Ditto.
18716 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
18717 operand as the first input operand, set type attribute.
18718 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
18719 Set type attribute.
18720 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
18721 operand as the first input operand, set type attribute.
18722
18723 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18724
18725 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
18726 bit of zero.
18727
18728 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
18729
18730 PR target/60207
18731 * config/i386/i386.c (construct_container): Remove TFmode check
18732 for X86_64_INTEGER_CLASS.
18733
18734 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
18735
18736 PR target/59794
18737 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
18738 only when -Wpsabi is enabled.
18739
18740 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
18741
18742 PR target/59799
18743 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
18744 passing arrays in registers are the same as for structs, so remove the
18745 special case for them.
18746
18747 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
18748
18749 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
18750 destination type, extract only the valid bits if the source type is not
18751 integral and has a different mode.
18752
18753 2014-02-19 Richard Biener <rguenther@suse.de>
18754
18755 PR ipa/60243
18756 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
18757 for all calls.
18758
18759 2014-02-19 Richard Biener <rguenther@suse.de>
18760
18761 PR ipa/60243
18762 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
18763 (ipa_modify_call_arguments): Emit an argument load explicitely and
18764 preserve virtual SSA form there and for the replacement call.
18765 Do not update SSA form nor free dominance info.
18766
18767 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18768
18769 * ipa.c (function_and_variable_visibility): Also clear WEAK
18770 flag when disolving COMDAT_GROUP.
18771
18772 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18773
18774 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
18775 * ipa-prop.c (ipa_set_jf_known_type): Return early when
18776 not devirtualizing.
18777 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
18778 do more sanity checks.
18779 (detect_type_change): Return true when giving up early.
18780 (compute_complex_assign_jump_func): Fix type parameter of
18781 ipa_set_ancestor_jf.
18782 (compute_complex_ancestor_jump_func): Likewise.
18783 (update_jump_functions_after_inlining): Fix updating of
18784 ancestor function.
18785 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
18786
18787 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18788
18789 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
18790 inline clones when edge disappears.
18791
18792 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
18793
18794 PR target/60203
18795 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
18796 Split 64-bit moves into 2 patterns. Do not allow the use of
18797 direct move for TDmode in little endian, since the decimal value
18798 has little endian bytes within a word, but the 64-bit pieces are
18799 ordered in a big endian fashion, and normal subreg's of TDmode are
18800 not allowed.
18801 (mov<mode>_64bit_dm): Likewise.
18802 (movtd_64bit_nodm): Likewise.
18803
18804 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18805
18806 PR tree-optimization/60174
18807 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
18808 statement of an SSA_NAME that occurs in an abnormal PHI node.
18809
18810 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18811
18812 PR sanitizer/60142
18813 * final.c (SEEN_BB): Remove.
18814 (SEEN_NOTE, SEEN_EMITTED): Renumber.
18815 (final_scan_insn): Don't force_source_line on second
18816 NOTE_INSN_BASIC_BLOCK.
18817
18818 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
18819
18820 PR target/60205
18821 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
18822 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
18823 (type_natural_mode): Warn ABI change when %zmm register is not
18824 available for AVX512F vector value passing.
18825
18826 2014-02-18 Kai Tietz <ktietz@redhat.com>
18827
18828 PR target/60193
18829 * config/i386/i386.c (ix86_expand_prologue): Use value in
18830 rax register as displacement when restoring %r10 or %rax.
18831 Fix wrong offset when restoring both registers.
18832
18833 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18834
18835 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
18836 assertion with conditional return.
18837
18838 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18839 Uros Bizjak <ubizjak@gmail.com>
18840
18841 PR driver/60233
18842 * config/i386/driver-i386.c (host_detect_local_cpu): If
18843 YMM state is not saved by the OS, also clear has_f16c. Move
18844 CPUID 0x80000001 handling before YMM state saving checking.
18845
18846 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
18847
18848 PR rtl-optimization/58960
18849 * haifa-sched.c (alloc_global_sched_pressure_data): New,
18850 factored out from ...
18851 (sched_init): ... here.
18852 (free_global_sched_pressure_data): New, factored out from ...
18853 (sched_finish): ... here.
18854 * sched-int.h (free_global_sched_pressure_data): Declare.
18855 * sched-rgn.c (nr_regions_initial): New static global.
18856 (haifa_find_rgns): Initialize it.
18857 (schedule_region): Disable sched-pressure for the newly
18858 generated regions.
18859
18860 2014-02-17 Richard Biener <rguenther@suse.de>
18861
18862 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
18863 release SSA defs of pattern stmts.
18864
18865 2014-02-17 Richard Biener <rguenther@suse.de>
18866
18867 * tree-inline.c (expand_call_inline): Release the virtual
18868 operand defined by the call we are about to inline.
18869
18870 2014-02-17 Richard Biener <rguenther@suse.de>
18871
18872 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
18873
18874 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
18875 Ilya Tocar <ilya.tocar@intel.com>
18876
18877 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
18878 arguments order in builtin.
18879 (_mm512_permutexvar_epi64): Ditto.
18880 (_mm512_mask_permutexvar_epi64): Ditto
18881 (_mm512_maskz_permutexvar_epi32): Ditto
18882 (_mm512_permutexvar_epi32): Ditto
18883 (_mm512_mask_permutexvar_epi32): Ditto
18884
18885 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18886
18887 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
18888 (p8_vmrgow): Likewise.
18889
18890 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18891
18892 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
18893 endian targets.
18894
18895 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18896
18897 PR target/60203
18898 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
18899 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
18900 into 64-bit and 32-bit moves. On 64-bit moves, add support for
18901 using direct move instructions on ISA 2.07. Also adjust
18902 instruction length for 64-bit.
18903 (mov<mode>_64bit, TFmode/TDmode): Likewise.
18904 (mov<mode>_32bit, TFmode/TDmode): Likewise.
18905
18906 2014-02-15 Alan Modra <amodra@gmail.com>
18907
18908 PR target/58675
18909 PR target/57935
18910 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
18911 find_replacement on parts of insn rtl that might be reloaded.
18912
18913 2014-02-15 Richard Biener <rguenther@suse.de>
18914
18915 PR tree-optimization/60183
18916 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
18917 (tree_ssa_phiprop): Calculate and free post-dominators.
18918
18919 2014-02-14 Jeff Law <law@redhat.com>
18920
18921 PR rtl-optimization/60131
18922 * ree.c (get_extended_src_reg): New function.
18923 (combine_reaching_defs): Use it rather than assuming location of REG.
18924 (find_and_remove_re): Verify first operand of extension is
18925 a REG before adding the insns to the copy list.
18926
18927 2014-02-14 Roland McGrath <mcgrathr@google.com>
18928
18929 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
18930 * configure: Regenerated.
18931 * config.in: Regenerated.
18932 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
18933 instead of ASM_SHORT.
18934
18935 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
18936 Richard Earnshaw <rearnsha@arm.com>
18937
18938 PR rtl-optimization/59535
18939 * lra-constraints.c (process_alt_operands): Encourage alternative
18940 when unassigned pseudo class is superset of the alternative class.
18941 (inherit_reload_reg): Don't inherit when optimizing for code size.
18942 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
18943 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
18944 modes not less than 4 for Thumb1.
18945
18946 2014-02-14 Kyle McMartin <kyle@redhat.com>
18947
18948 PR pch/60010
18949 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
18950
18951 2014-02-14 Richard Biener <rguenther@suse.de>
18952
18953 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
18954 (get_frame_arg): Drop the assert with langhook types_compatible_p.
18955 Do not strip INDIRECT_REFs.
18956
18957 2014-02-14 Richard Biener <rguenther@suse.de>
18958
18959 PR lto/60179
18960 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
18961 DECL_FUNCTION_SPECIFIC_TARGET.
18962 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
18963 * tree-streamer-out.c (pack_ts_target_option): Remove.
18964 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
18965 (write_ts_function_decl_tree_pointers): Do not stream
18966 DECL_FUNCTION_SPECIFIC_TARGET.
18967 * tree-streamer-in.c (unpack_ts_target_option): Remove.
18968 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
18969 (lto_input_ts_function_decl_tree_pointers): Do not stream
18970 DECL_FUNCTION_SPECIFIC_TARGET.
18971
18972 2014-02-14 Jakub Jelinek <jakub@redhat.com>
18973
18974 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
18975 (get_initial_def_for_induction, vectorizable_induction): Ignore
18976 debug stmts when looking for exit_phi.
18977 (vectorizable_live_operation): Fix up condition.
18978
18979 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18980
18981 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
18982 nreverse() because it changes the content of original tree list.
18983
18984 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18985
18986 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
18987 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
18988
18989 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18990
18991 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
18992 GNU coding standards.
18993
18994 2014-02-13 Jakub Jelinek <jakub@redhat.com>
18995
18996 PR debug/60152
18997 * dwarf2out.c (gen_subprogram_die): Don't call
18998 add_calling_convention_attribute if subr_die is old_die.
18999
19000 2014-02-13 Sharad Singhai <singhai@google.com>
19001
19002 * doc/optinfo.texi: Fix order of nodes.
19003
19004 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
19005
19006 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
19007 operands[2], not operands[3].
19008
19009 2014-02-13 Richard Biener <rguenther@suse.de>
19010
19011 PR bootstrap/59878
19012 * doc/install.texi (ISL): Update recommended version to 0.12.2,
19013 mention the possibility of an in-tree build.
19014 (CLooG): Update recommended version to 0.18.1, mention the
19015 possibility of an in-tree build and clarify that the ISL
19016 bundled with CLooG does not work.
19017
19018 2014-02-13 Jakub Jelinek <jakub@redhat.com>
19019
19020 PR target/43546
19021 * expr.c (compress_float_constant): If x is a hard register,
19022 extend into a pseudo and then move to x.
19023
19024 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
19025
19026 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
19027 caused by bad second argument to warning_at() with -mhotpatch and
19028 nested functions (e.g. with gfortran).
19029
19030 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
19031
19032 * opts.c (option_name): Remove "enabled by default" rider.
19033
19034 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
19035
19036 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
19037
19038 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
19039 Uros Bizjak <ubizjak@gmail.com>
19040
19041 PR target/60151
19042 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
19043 * configure: Regenerated.
19044
19045 2014-02-12 Richard Biener <rguenther@suse.de>
19046
19047 * vec.c (vec_prefix::calculate_allocation): Move as
19048 inline variant to vec.h.
19049 (vec_prefix::calculate_allocation_1): New out-of-line version.
19050 * vec.h (vec_prefix::calculate_allocation_1): Declare.
19051 (vec_prefix::m_has_auto_buf): Rename to ...
19052 (vec_prefix::m_using_auto_storage): ... this.
19053 (vec_prefix::calculate_allocation): Inline the easy cases
19054 and dispatch to calculate_allocation_1 which doesn't need the
19055 prefix address.
19056 (va_heap::reserve): Use gcc_checking_assert.
19057 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
19058 m_using_auto_storage.
19059 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
19060 member and adjust.
19061 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
19062 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
19063 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
19064
19065 2014-02-12 Richard Biener <rguenther@suse.de>
19066
19067 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
19068 when we found a dependence.
19069
19070 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
19071
19072 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
19073 common code...
19074 (maybe_fold_stmt): ... into this new function.
19075 * omp-low.c (lower_omp): Update comment.
19076
19077 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
19078 last use.
19079
19080 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
19081 dereference.
19082
19083 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
19084
19085 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
19086 identifiers in comments.
19087 (cortexa53_extra_costs): Likewise.
19088 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
19089 (cortexa7_extra_costs): Likewise.
19090 (cortexa12_extra_costs): Likewise.
19091 (cortexa15_extra_costs): Likewise.
19092 (v7m_extra_costs): Likewise.
19093
19094 2014-02-12 Richard Biener <rguenther@suse.de>
19095
19096 PR middle-end/60092
19097 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
19098 of posix_memalign being successful.
19099 (lower_stmt): Restrict lowering of posix_memalign to when
19100 -ftree-bit-ccp is enabled.
19101
19102 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19103
19104 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
19105 arg_loc.
19106 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
19107
19108 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
19109
19110 PR rtl-optimization/60116
19111 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
19112 other_insn once the combination has been validated.
19113
19114 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
19115
19116 PR lto/59468
19117 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
19118 and wrapper.
19119 * ipa-devirt.c: Include demangle.h
19120 (odr_violation_reported): New static variable.
19121 (add_type_duplicate): Update odr_violations.
19122 (maybe_record_node): Add completep parameter; update it.
19123 (record_target_from_binfo): Add COMPLETEP parameter;
19124 update it as needed.
19125 (possible_polymorphic_call_targets_1): Likewise.
19126 (struct polymorphic_call_target_d): Add nonconstruction_targets;
19127 rename FINAL to COMPLETE.
19128 (record_targets_from_bases): Sanity check we found the binfo;
19129 fix COMPLETEP updating.
19130 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
19131 parameter, fix computing of COMPLETEP.
19132 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
19133 at LTO time do demangling.
19134 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
19135 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
19136 parameter.
19137 (gimple_get_virt_method_for_binfo): Likewise.
19138 * gimple-fold.h (gimple_get_virt_method_for_binfo,
19139 gimple_get_virt_method_for_vtable): Update prototypes.
19140
19141 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
19142
19143 PR target/49008
19144 * genautomata.c (add_presence_absence): Fix typo with
19145 {final_}presence_list.
19146
19147 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19148
19149 PR target/60137
19150 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
19151 for VSX/Altivec vectors that land in GPR registers.
19152
19153 2014-02-11 Richard Henderson <rth@redhat.com>
19154 Jakub Jelinek <jakub@redhat.com>
19155
19156 PR debug/59776
19157 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
19158 around drhs if type conversion to lacc->type is not useless.
19159
19160 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19161
19162 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
19163 tuning struct.
19164 (cortex-a57.cortex-a53): Likewise.
19165 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
19166
19167 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19168
19169 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
19170 arm_restrict_it.
19171
19172 2014-02-11 Renlin Li <Renlin.Li@arm.com>
19173
19174 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
19175 add_options_for_arm_vfp3.
19176
19177 2014-02-11 Jeff Law <law@redhat.com>
19178
19179 PR middle-end/54041
19180 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
19181 object with an undesirable mode.
19182
19183 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19184
19185 PR libgomp/60107
19186 * config/i386/sol2-9.h: New file.
19187 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
19188 *-*-solaris2.9*): Use it.
19189
19190 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
19191
19192 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
19193 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
19194
19195 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
19196
19197 * config/microblaze/microblaze.c: Extend mcpu version format
19198
19199 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
19200
19201 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
19202
19203 2014-02-10 Richard Henderson <rth@redhat.com>
19204
19205 PR target/59927
19206 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
19207 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
19208 ms-abi vs -mno-accumulate-outgoing-args.
19209 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
19210 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
19211 respect to ms-abi.
19212
19213 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19214
19215 PR middle-end/60080
19216 * cfgexpand.c (expand_asm_operands): Attach source location to
19217 ASM_INPUT rtx objects.
19218 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
19219
19220 2014-02-10 Nick Clifton <nickc@redhat.com>
19221
19222 * config/mn10300/mn10300.c (popcount): New function.
19223 (mn10300_expand_prologue): Include saved registers in stack usage
19224 count.
19225
19226 2014-02-10 Jeff Law <law@redhat.com>
19227
19228 PR middle-end/52306
19229 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
19230 when changing the SET_DEST of a prior insn to avoid an input reload.
19231
19232 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19233
19234 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
19235 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
19236 -mcall-openbsd, or -mcall-linux.
19237 (CC1_ENDIAN_BIG_SPEC): Remove.
19238 (CC1_ENDIAN_LITTLE_SPEC): Remove.
19239 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
19240 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
19241 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
19242 and %cc1_endian_default.
19243 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
19244
19245 2014-02-10 Richard Biener <rguenther@suse.de>
19246
19247 PR tree-optimization/60115
19248 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
19249 MEM_REF handling. Properly verify that the accesses are not
19250 out of the objects bound.
19251
19252 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19253
19254 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
19255 coretex to cortex.
19256
19257 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
19258
19259 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
19260 proper constants and fix formatting.
19261 (possible_polymorphic_call_targets): Fix formatting.
19262
19263 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
19264 Ilya Tocar <ilya.tocar@intel.com>
19265
19266 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
19267 (_mm512_loadu_epi32): Renamed into...
19268 (_mm512_loadu_si512): This.
19269 (_mm512_storeu_epi32): Renamed into...
19270 (_mm512_storeu_si512): This.
19271 (_mm512_maskz_ceil_ps): Removed.
19272 (_mm512_maskz_ceil_pd): Ditto.
19273 (_mm512_maskz_floor_ps): Ditto.
19274 (_mm512_maskz_floor_pd): Ditto.
19275 (_mm512_floor_round_ps): Ditto.
19276 (_mm512_floor_round_pd): Ditto.
19277 (_mm512_ceil_round_ps): Ditto.
19278 (_mm512_ceil_round_pd): Ditto.
19279 (_mm512_mask_floor_round_ps): Ditto.
19280 (_mm512_mask_floor_round_pd): Ditto.
19281 (_mm512_mask_ceil_round_ps): Ditto.
19282 (_mm512_mask_ceil_round_pd): Ditto.
19283 (_mm512_maskz_floor_round_ps): Ditto.
19284 (_mm512_maskz_floor_round_pd): Ditto.
19285 (_mm512_maskz_ceil_round_ps): Ditto.
19286 (_mm512_maskz_ceil_round_pd): Ditto.
19287 (_mm512_expand_pd): Ditto.
19288 (_mm512_expand_ps): Ditto.
19289 * config/i386/i386.c (ix86_builtins): Remove
19290 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
19291 (bdesc_args): Ditto.
19292 * config/i386/predicates.md (const1256_operand): New.
19293 (const_1_to_2_operand): Ditto.
19294 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
19295 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19296 (*avx512pf_gatherpf<mode>sf): Ditto.
19297 (avx512pf_gatherpf<mode>df): Ditto.
19298 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19299 (*avx512pf_gatherpf<mode>df): Ditto.
19300 (avx512pf_scatterpf<mode>sf): Ditto.
19301 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19302 (*avx512pf_scatterpf<mode>sf): Ditto.
19303 (avx512pf_scatterpf<mode>df): Ditto.
19304 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19305 (*avx512pf_scatterpf<mode>df): Ditto.
19306 (avx512f_expand<mode>): Removed.
19307 (<shift_insn><mode>3<mask_name>): Change predicate type.
19308
19309 2014-02-08 Jakub Jelinek <jakub@redhat.com>
19310
19311 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
19312 not at the end of datarefs vector use ordered_remove to avoid
19313 reordering datarefs vector.
19314
19315 PR c/59984
19316 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
19317 mark local addressable non-static vars as GOVD_PRIVATE
19318 instead of GOVD_LOCAL.
19319 * omp-low.c (lower_omp_for): Move gimple_bind_vars
19320 and BLOCK_VARS of gimple_bind_block to new_stmt rather
19321 than copying them.
19322
19323 PR middle-end/60092
19324 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
19325 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
19326 assume_aligned or alloc_align attributes.
19327 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
19328 arguments. Handle also assume_aligned and alloc_align attributes.
19329 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
19330 calls to functions with assume_aligned or alloc_align attributes.
19331 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
19332
19333 2014-02-08 Terry Guo <terry.guo@arm.com>
19334
19335 * doc/invoke.texi: Document ARM -march=armv7e-m.
19336
19337 2014-02-08 Jakub Jelinek <jakub@redhat.com>
19338
19339 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
19340 flag on __cilkrts_rethrow builtin.
19341
19342 PR ipa/60026
19343 * ipa-cp.c (determine_versionability): Fail at -O0
19344 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
19345 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
19346
19347 Revert:
19348 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19349
19350 PR ipa/60026
19351 * tree-inline.c (copy_forbidden): Fail for
19352 __attribute__((optimize (0))) functions.
19353
19354 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19355
19356 * varpool.c: Include pointer-set.h.
19357 (varpool_remove_unreferenced_decls): Variables in other partitions
19358 will not be output; be however careful to not lose information
19359 about partitioning.
19360
19361 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19362
19363 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
19364 lookup in the vtable constructor.
19365
19366 2014-02-07 Jeff Law <law@redhat.com>
19367
19368 PR target/40977
19369 * config/m68k/m68k.md (ashldi_extsi): Turn into a
19370 define_insn_and_split.
19371
19372 * ipa-inline.c (inline_small_functions): Fix typos.
19373
19374 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19375
19376 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
19377 (s390_can_use_return_insn): Declare.
19378 * config/s390/s390.h (EPILOGUE_USES): Define.
19379 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
19380 instructions.
19381 (s390_chunkify_start): Handle return JUMP_LABELs.
19382 (s390_early_mach): Emit a main_pool instruction on the entry edge.
19383 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
19384 (s390_can_use_return_insn): New functions.
19385 (s390_fix_long_loop_prediction): Handle conditional returns.
19386 (TARGET_SET_UP_BY_PROLOGUE): Define.
19387 * config/s390/s390.md (ANY_RETURN): New code iterator.
19388 (*creturn, *csimple_return, return, simple_return): New patterns.
19389
19390 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19391
19392 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
19393 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
19394 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
19395 REG_CFA_RESTORE list when deciding not to restore a register.
19396
19397 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19398
19399 * config/s390/s390.c: Include tree-pass.h and context.h.
19400 (s390_early_mach): New function, split out from...
19401 (s390_emit_prologue): ...here.
19402 (pass_data_s390_early_mach): New pass structure.
19403 (pass_s390_early_mach): New class.
19404 (s390_option_override): Create and register early_mach pass.
19405 Move to end of file.
19406
19407 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19408
19409 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
19410 to match for the exit block.
19411
19412 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19413
19414 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
19415 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
19416 Reject misaligned operands.
19417
19418 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19419
19420 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
19421
19422 2014-02-07 Richard Biener <rguenther@suse.de>
19423
19424 PR middle-end/60092
19425 * gimple-low.c (lower_builtin_posix_memalign): New function.
19426 (lower_stmt): Call it to lower posix_memalign in a way
19427 to make alignment info accessible.
19428
19429 2014-02-07 Jakub Jelinek <jakub@redhat.com>
19430
19431 PR c++/60082
19432 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
19433 __builtin_setjmp_receiver.
19434
19435 2014-02-07 Richard Biener <rguenther@suse.de>
19436
19437 PR middle-end/60092
19438 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
19439 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
19440 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19441 Handle BUILT_IN_POSIX_MEMALIGN.
19442 (find_func_clobbers): Likewise.
19443 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19444 (call_may_clobber_ref_p_1): Likewise.
19445
19446 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19447
19448 PR ipa/59918
19449 * ipa-devirt.c (record_target_from_binfo): Remove overactive
19450 sanity check.
19451
19452 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19453
19454 PR ipa/59469
19455 * lto-cgraph.c (lto_output_node): Use
19456 symtab_get_symbol_partitioning_class.
19457 (lto_output_varpool_node): likewise.
19458 (symtab_get_symbol_partitioning_class): Move here from
19459 lto/lto-partition.c
19460 * cgraph.h (symbol_partitioning_class): Likewise.
19461 (symtab_get_symbol_partitioning_class): Declare.
19462
19463 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19464
19465 * ggc.h (ggc_internal_cleared_alloc): New macro.
19466 * vec.h (vec_safe_copy): Handle memory stats.
19467 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
19468 * target-globals.c (save_target_globals): Likewise.
19469
19470 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19471
19472 PR target/60077
19473 * expr.c (emit_move_resolve_push): Export; be bit more selective
19474 on when to clear alias set.
19475 * expr.h (emit_move_resolve_push): Declare.
19476 * function.h (struct function): Add tail_call_marked.
19477 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
19478 * config/i386/i386-protos.h (ix86_expand_push): Remove.
19479 * config/i386/i386.md (TImode move expander): De not call
19480 ix86_expand_push.
19481 (FP push expanders): Preserve memory attributes.
19482 * config/i386/sse.md (push<mode>1): Remove.
19483 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
19484 (ix86_expand_push): Remove.
19485 * config/i386/mmx.md (push<mode>1): Remove.
19486
19487 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19488
19489 PR rtl-optimization/60030
19490 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
19491 lopart with paradoxical subreg before shifting it up by hprec.
19492
19493 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19494
19495 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
19496 Remove extra newline at end of file.
19497 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
19498 (arm_issue_rate): Handle cortexa57.
19499 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
19500 (cortex-a57.cortex-a53): Likewise.
19501
19502 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19503
19504 PR target/59575
19505 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
19506 don't record in REG_FRAME_RELATED_EXPR registers not set in that
19507 bitmask.
19508 (arm_expand_prologue): Adjust all callers.
19509 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
19510 info, registers also at the lowest numbered registers side. Use
19511 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
19512 XEXP.
19513
19514 PR debug/59992
19515 * var-tracking.c (adjust_mems): Before adding a SET to
19516 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
19517
19518 2014-02-06 Alan Modra <amodra@gmail.com>
19519
19520 PR target/60032
19521 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
19522 change SDmode to DDmode when lra_in_progress.
19523
19524 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19525
19526 PR middle-end/59150
19527 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
19528 free_data_ref on the dr first, and before goto again also set dr
19529 to the next dr. For simd_lane_access, free old datarefs[i] before
19530 overwriting it. For get_vectype_for_scalar_type failure, don't
19531 free_data_ref if simd_lane_access.
19532
19533 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
19534
19535 PR target/60062
19536 * tree.h (opts_for_fn): New inline function.
19537 (opt_for_fn): Define.
19538 * config/i386/i386.c (ix86_function_regparm): Use
19539 opt_for_fn (decl, optimize) instead of optimize.
19540
19541 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
19542
19543 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
19544 for SYMBOL_REF in large memory model.
19545
19546 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19547
19548 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
19549 and crypto support.
19550 (cortex-a57): Likewise.
19551 (cortex-a57.cortex-a53): Likewise.
19552
19553 2014-02-06 Yury Gribov <y.gribov@samsung.com>
19554 Kugan Vivekanandarajah <kuganv@linaro.org>
19555
19556 * config/arm/arm.c (arm_vector_alignment_reachable): Check
19557 unaligned_access.
19558 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
19559
19560 2014-02-06 Richard Biener <rguenther@suse.de>
19561
19562 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
19563 set_loop_copy and initialize_original_copy_tables.
19564
19565 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
19566
19567 * config/aarch64/aarch64-simd.md
19568 (aarch64_ashr_simddi): Change QI to SI.
19569
19570 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19571 Jakub Jelinek <jakub@redhat.com>
19572
19573 PR middle-end/60013
19574 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
19575 of the dataflow.
19576
19577 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19578
19579 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
19580 CODE_FOR_altivec_vpku[hw]um to
19581 CODE_FOR_altivec_vpku[hw]um_direct.
19582 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
19583 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
19584 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
19585 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
19586
19587 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19588
19589 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
19590 generation for -maltivec=be.
19591 (altivec_vsumsws): Simplify redundant test.
19592
19593 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19594
19595 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
19596 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
19597 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
19598 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
19599 gen_altivec_vpkuwum.
19600 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
19601 BYTES_BIG_ENDIAN.
19602 (altivec_vpks<VI_char>ss): Likewise.
19603 (altivec_vpks<VI_char>us): Likewise.
19604 (altivec_vpku<VI_char>us): Likewise.
19605 (altivec_vpku<VI_char>um): Likewise.
19606 (altivec_vpku<VI_char>um_direct): New (copy of
19607 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
19608 internal use).
19609 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
19610 target is little endian and -maltivec=be is not specified.
19611 (*altivec_vupkhs<VU_char>_direct): New (copy of
19612 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
19613 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
19614 target is little endian and -maltivec=be is not specified.
19615 (*altivec_vupkls<VU_char>_direct): New (copy of
19616 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
19617 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
19618 little endian and -maltivec=be is not specified.
19619 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
19620 little endian and -maltivec=be is not specified.
19621
19622 2014-02-05 Richard Henderson <rth@redhat.com>
19623
19624 PR debug/52727
19625 * combine-stack-adj.c: Revert r206943.
19626 * sched-int.h (struct deps_desc): Add last_args_size.
19627 * sched-deps.c (init_deps): Initialize it.
19628 (sched_analyze_insn): Add OUTPUT dependencies between insns that
19629 contain REG_ARGS_SIZE notes.
19630
19631 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19632
19633 * lto-cgraph.c (asm_nodes_output): Make global.
19634 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
19635 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
19636 (driver_handle_option): Handle OPT_fwpa.
19637
19638 2014-02-05 Jakub Jelinek <jakub@redhat.com>
19639
19640 PR ipa/59947
19641 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
19642 a comment typo and formatting issue. If odr_hash hasn't been
19643 created, return vNULL and set *completep to false.
19644
19645 PR middle-end/57499
19646 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
19647 bb with no successors.
19648
19649 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
19650
19651 PR target/59718
19652 * doc/invoke.texi (-march): Clarify documentation for ARM.
19653 (-mtune): Likewise.
19654 (-mcpu): Likewise.
19655
19656 2014-02-05 Richard Biener <rguenther@suse.de>
19657
19658 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
19659 when not vectorizing because of too many alias checks.
19660 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
19661 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
19662
19663 2014-02-05 Nick Clifton <nickc@redhat.com>
19664
19665 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
19666 accept extended registers in any mode when compiling for the MN10300.
19667
19668 2014-02-05 Yury Gribov <y.gribov@samsung.com>
19669
19670 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
19671 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
19672 sanitization attributes.
19673 (can_inline_edge_p): Likewise.
19674 (sanitize_attrs_match_for_inline_p): New function.
19675
19676 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19677
19678 * ipa-prop.c (detect_type_change): Shor circuit testing of
19679 type changes on THIS pointer.
19680
19681 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
19682
19683 PR target/59777
19684 * config/pa/pa.c (legitimize_tls_address): Return original address
19685 if not passed a SYMBOL_REF rtx.
19686 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
19687 addresses.
19688 (pa_emit_move_sequence): Simplify TLS source operands.
19689 (pa_legitimate_constant_p): Reject all TLS constants.
19690 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
19691 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
19692
19693 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19694
19695 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
19696 groups when we know they are controlled by LTO.
19697 * varasm.c (default_binds_local_p_1): If object is in other partition,
19698 it will be resolved locally.
19699
19700 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19701
19702 * config/host-linux.c (linux_gt_pch_use_address): Don't
19703 use SSIZE_MAX because it is not always defined.
19704
19705 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
19706
19707 PR bootstrap/59913
19708 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
19709 threshold for pseudo splitting.
19710 (update_ebb_live_info): Process call argument hard registers and
19711 hard registers from insn definition too.
19712 (max_small_class_regs_num): New constant.
19713 (inherit_in_ebb): Update live hard regs through EBBs. Update
19714 reloads_num only for small register classes. Don't split for
19715 outputs of jumps.
19716
19717 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
19718
19719 PR ipa/60058
19720 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
19721 is non-null.
19722
19723 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19724
19725 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
19726 visibility is safe.
19727
19728 2014-02-04 Marek Polacek <polacek@redhat.com>
19729
19730 * gdbinit.in (pel): Define.
19731
19732 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19733
19734 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
19735 behavior.
19736
19737 2014-02-04 Richard Biener <rguenther@suse.de>
19738
19739 PR lto/59723
19740 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
19741 in function context local.
19742 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
19743 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
19744 similar to LTO_imported_decl_ref.
19745
19746 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19747
19748 PR tree-optimization/60002
19749 * cgraphclones.c (build_function_decl_skip_args): Clear
19750 DECL_LANG_SPECIFIC.
19751
19752 PR tree-optimization/60023
19753 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
19754 false to gsi_replace.
19755 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
19756 has been in some EH region and vec_stmt could throw, add
19757 vec_stmt into the same EH region.
19758 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
19759 has no lhs, ignore it.
19760 * internal-fn.c (expand_MASK_LOAD): Likewise.
19761
19762 PR ipa/60026
19763 * tree-inline.c (copy_forbidden): Fail for
19764 __attribute__((optimize (0))) functions.
19765
19766 PR other/58712
19767 * omp-low.c (simd_clone_struct_copy): If from->inbranch
19768 is set, copy one less argument.
19769 (expand_simd_clones): Don't subtract clone_info->inbranch
19770 from simd_clone_struct_alloc argument.
19771
19772 PR rtl-optimization/57915
19773 * recog.c (simplify_while_replacing): If all unary/binary/relational
19774 operation arguments are constant, attempt to simplify those.
19775
19776 PR middle-end/59261
19777 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
19778 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
19779
19780 2014-02-04 Richard Biener <rguenther@suse.de>
19781
19782 PR tree-optimization/60012
19783 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
19784 TBAA disambiguation to all DDRs.
19785
19786 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19787
19788 PR target/59788
19789 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
19790 (LINK_SPEC): Use it for -shared, -shared-libgcc.
19791
19792 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19793
19794 PR ipa/59882
19795 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
19796
19797 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19798
19799 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
19800 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
19801
19802 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19803
19804 PR ipa/59831
19805 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
19806 to figure out targets of polymorphic calls with known decl.
19807 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19808 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
19809 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
19810 (get_polymorphic_call_info): ... here.
19811 (get_polymorphic_call_info_from_invariant): New function.
19812
19813 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19814
19815 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
19816 lookup via vtable pointer; check for type consistency
19817 and turn inconsitent facts into UNREACHABLE.
19818 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19819 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
19820 type inconsistent querries; return UNREACHABLE instead.
19821
19822 2014-02-03 Richard Henderson <rth@twiddle.net>
19823
19824 PR tree-opt/59924
19825 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
19826 already processed this node.
19827 (normalize_one_pred_1): Pass along mark_set.
19828 (normalize_one_pred): Create and destroy a pointer_set_t.
19829 (normalize_one_pred_chain): Likewise.
19830
19831 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
19832
19833 PR gcov-profile/58602
19834 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
19835
19836 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19837
19838 PR ipa/59831
19839 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
19840 -fno-devirtualize; try to devirtualize by the knowledge of
19841 virtual table pointer given by aggregate propagation.
19842 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19843 (ipa_print_node_jump_functions): Dump also offset that
19844 is relevant for polymorphic calls.
19845 (determine_known_aggregate_parts): Add arg_type parameter; use it
19846 instead of determining the type from pointer type.
19847 (ipa_compute_jump_functions_for_edge): Update call of
19848 determine_known_aggregate_parts.
19849 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
19850 (gimple_get_virt_method_for_binfo): ... here; simplify using
19851 vtable_pointer_value_to_vtable.
19852 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
19853 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
19854 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
19855 (vtable_pointer_value_to_vtable): Break out from ...; handle also
19856 POINTER_PLUS_EXPR.
19857 (vtable_pointer_value_to_binfo): ... here.
19858 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
19859
19860 2014-02-03 Teresa Johnson <tejohnson@google.com>
19861
19862 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
19863 redef of outer loop index variable.
19864
19865 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
19866
19867 PR c++/53017
19868 PR c++/59211
19869 * doc/extend.texi (Function Attributes): Typo.
19870
19871 2014-02-03 Cong Hou <congh@google.com>
19872
19873 PR tree-optimization/60000
19874 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
19875 if the vectorized statement is a store. A store statement can only
19876 appear at the end of pattern statements.
19877
19878 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19879
19880 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
19881 (ix86_option_override_internal): Default long double to 64-bit for
19882 32-bit Bionic and to 128-bit for 64-bit Bionic.
19883
19884 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
19885 TARGET_LONG_DOUBLE_128 is true.
19886 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
19887
19888 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
19889 (mlong-double-64): Negate -mlong-double-128.
19890 (mlong-double-128): New option.
19891
19892 * config/i386/i386-c.c (ix86_target_macros): Define
19893 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
19894
19895 * doc/invoke.texi: Document -mlong-double-128.
19896
19897 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19898
19899 PR rtl-optimization/60024
19900 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
19901
19902 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
19903
19904 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
19905
19906 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19907
19908 PR rtl-optimization/57662
19909 * sel-sched.c (code_motion_path_driver): Do not mark already not
19910 existing blocks in the visiting bitmap.
19911
19912 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19913
19914 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
19915 on the insn being emitted.
19916
19917 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
19918 Will Deacon <will.deacon@arm.com>
19919
19920 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
19921
19922 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19923
19924 * config/arm/arm-tables.opt: Regenerate.
19925
19926 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19927
19928 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
19929 for vector types other than V16QImode.
19930 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
19931 define_expand, and call altivec_expand_vec_perm_le when producing
19932 code with little endian element order.
19933 (*altivec_vperm_<mode>_internal): New insn having previous
19934 behavior of altivec_vperm_<mode>.
19935 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
19936 altivec_expand_vec_perm_le when producing code with little endian
19937 element order.
19938 (*altivec_vperm_<mode>_uns_internal): New insn having previous
19939 behavior of altivec_vperm_<mode>_uns.
19940
19941 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19942
19943 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
19944 (altivec_vsumsws): Add handling for -maltivec=be with a little
19945 endian target.
19946 (altivec_vsumsws_direct): New.
19947 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
19948 gen_altivec_vsumsws.
19949
19950 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19951
19952 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
19953 vtable_pointer_value_to_binfo): New functions.
19954 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
19955 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
19956
19957 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
19958
19959 * config/nios2/nios2.md (load_got_register): Initialize GOT
19960 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
19961 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
19962
19963 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19964
19965 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
19966 preserverd by passthrough, do not propagate the type.
19967
19968 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19969
19970 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
19971 (mips_atomic_assign_expand_fenv): New function.
19972 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19973
19974 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19975
19976 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
19977 (__builtin_mips_set_fcsr): Likewise.
19978 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
19979 MIPS_USI_FTYPE_VOID.
19980 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
19981 (mips16_expand_set_fcsr): Likewise.
19982 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
19983 (mips16_set_fcsr_stub): Likewise.
19984 (mips16_get_fcsr_one_only_stub): New class.
19985 (mips16_set_fcsr_one_only_stub): Likewise.
19986 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
19987 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
19988 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
19989 (hard_float): New availability predicate.
19990 (mips_builtins): Add get_fcsr and set_fcsr.
19991 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
19992 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
19993 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
19994 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
19995 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
19996 patterns.
19997
19998 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19999
20000 * config/mips/mips.c (mips_one_only_stub): New class.
20001 (mips_need_mips16_rdhwr_p): Replace with...
20002 (mips16_rdhwr_stub): ...this new variable.
20003 (mips16_stub_call_address): New function.
20004 (mips16_rdhwr_one_only_stub): New class.
20005 (mips_expand_thread_pointer): Use mips16_stub_call_address.
20006 (mips_output_mips16_rdhwr): Delete.
20007 (mips_finish_stub): New function.
20008 (mips_code_end): Use it to handle rdhwr stubs.
20009
20010 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
20011
20012 PR target/60017
20013 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
20014 when calculating size of integer atomic types.
20015
20016 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
20017
20018 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
20019
20020 2014-02-01 Jakub Jelinek <jakub@redhat.com>
20021
20022 PR tree-optimization/60003
20023 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
20024 * profile.c (branch_prob): Use gimple_call_builtin_p
20025 to check for BUILT_IN_SETJMP_RECEIVER.
20026 * tree-inline.c (copy_bb): Call notice_special_calls.
20027
20028 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
20029
20030 PR bootstrap/59985
20031 * lra-constraints.c (process_alt_operands): Update reload_sum only
20032 on the first pass.
20033
20034 2014-01-31 Richard Henderson <rth@redhat.com>
20035
20036 PR middle-end/60004
20037 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
20038 until after else_eh is processed.
20039
20040 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
20041
20042 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
20043 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
20044 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
20045 in smmintrin.h, remove them.
20046 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
20047 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
20048 * config/i386/i386.md (ROUND_SAE): Fix value.
20049 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
20050 (const48_operand): New.
20051 * config/i386/subst.md (round), (round_expand): Use
20052 const_4_or_8_to_11_operand.
20053 (round_saeonly), (round_saeonly_expand): Use const48_operand.
20054
20055 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
20056
20057 * config/i386/constraints.md (Yk): Swap meaning with k.
20058 * config/i386/i386.md (movhi_internal): Change Yk to k.
20059 (movqi_internal): Ditto.
20060 (*k<logic><mode>): Ditto.
20061 (*andhi_1): Ditto.
20062 (*andqi_1): Ditto.
20063 (kandn<mode>): Ditto.
20064 (*<code>hi_1): Ditto.
20065 (*<code>qi_1): Ditto.
20066 (kxnor<mode>): Ditto.
20067 (kortestzhi): Ditto.
20068 (kortestchi): Ditto.
20069 (kunpckhi): Ditto.
20070 (*one_cmplhi2_1): Ditto.
20071 (*one_cmplqi2_1): Ditto.
20072 * config/i386/sse.md (): Change k to Yk.
20073 (avx512f_load<mode>_mask): Ditto.
20074 (avx512f_blendm<mode>): Ditto.
20075 (avx512f_store<mode>_mask): Ditto.
20076 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
20077 (avx512f_storedqu<mode>_mask): Ditto.
20078 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
20079 Ditto.
20080 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
20081 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
20082 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
20083 (avx512f_maskcmp<mode>3): Ditto.
20084 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
20085 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
20086 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
20087 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
20088 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
20089 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
20090 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
20091 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
20092 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
20093 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
20094 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
20095 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
20096 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
20097 (vec_extract_lo_<mode>_maskm): Ditto.
20098 (vec_extract_hi_<mode>_maskm): Ditto.
20099 (avx512f_vternlog<mode>_mask): Ditto.
20100 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
20101 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
20102 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
20103 (avx512f_<code>v8div16qi2_mask): Ditto.
20104 (avx512f_<code>v8div16qi2_mask_store): Ditto.
20105 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
20106 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
20107 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
20108 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
20109 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
20110 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20111 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
20112 (*avx512pf_scatterpf<mode>df_mask): Ditto.
20113 (avx512cd_maskb_vec_dupv8di): Ditto.
20114 (avx512cd_maskw_vec_dupv16si): Ditto.
20115 (avx512f_vpermi2var<mode>3_maskz): Ditto.
20116 (avx512f_vpermi2var<mode>3_mask): Ditto.
20117 (avx512f_vpermi2var<mode>3_mask): Ditto.
20118 (avx512f_vpermt2var<mode>3_maskz): Ditto.
20119 (*avx512f_gathersi<mode>): Ditto.
20120 (*avx512f_gathersi<mode>_2): Ditto.
20121 (*avx512f_gatherdi<mode>): Ditto.
20122 (*avx512f_gatherdi<mode>_2): Ditto.
20123 (*avx512f_scattersi<mode>): Ditto.
20124 (*avx512f_scatterdi<mode>): Ditto.
20125 (avx512f_compress<mode>_mask): Ditto.
20126 (avx512f_compressstore<mode>_mask): Ditto.
20127 (avx512f_expand<mode>_mask): Ditto.
20128 * config/i386/subst.md (mask): Change k to Yk.
20129 (mask_scalar_merge): Ditto.
20130 (sd): Ditto.
20131
20132 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
20133
20134 * doc/extend.texi (Vector Extensions): Document ?: in C++.
20135
20136 2014-01-31 Richard Biener <rguenther@suse.de>
20137
20138 PR middle-end/59990
20139 * builtins.c (fold_builtin_memory_op): Make sure to not
20140 use a floating-point mode or a boolean or enumeral type for
20141 the copy operation.
20142
20143 2014-01-30 DJ Delorie <dj@redhat.com>
20144
20145 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
20146 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
20147 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
20148 whenever main() has an epilogue.
20149
20150 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20151
20152 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
20153 unused variable "field".
20154 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
20155 (vsx_mergeh_<mode>): Likewise.
20156 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
20157 (altivec_vmrghh): Likewise.
20158 (altivec_vmrghw): Likewise.
20159 (altivec_vmrglb): Likewise.
20160 (altivec_vmrglh): Likewise.
20161 (altivec_vmrglw): Likewise.
20162 (altivec_vspltb): Add missing uses.
20163 (altivec_vsplth): Likewise.
20164 (altivec_vspltw): Likewise.
20165 (altivec_vspltsf): Likewise.
20166
20167 2014-01-30 Jakub Jelinek <jakub@redhat.com>
20168
20169 PR target/59923
20170 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
20171 frame related instructions.
20172
20173 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
20174
20175 PR rtl-optimization/59959
20176 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
20177 any reload of register whose subreg is invalid.
20178
20179 2014-01-30 Jakub Jelinek <jakub@redhat.com>
20180
20181 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
20182 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
20183 Add missing return type - void.
20184
20185 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20186
20187 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
20188 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
20189 remove element index adjustment for endian (now handled in vsx.md
20190 and altivec.md).
20191 (altivec_expand_vec_perm_const): Use
20192 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
20193 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
20194 (vsx_xxspltw_<mode>): Adjust element index for little endian.
20195 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
20196 define_expand and a new define_insn *altivec_vspltb_internal;
20197 adjust for -maltivec=be on a little endian target.
20198 (altivec_vspltb_direct): New.
20199 (altivec_vsplth): Divide into a define_expand and a new
20200 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
20201 little endian target.
20202 (altivec_vsplth_direct): New.
20203 (altivec_vspltw): Divide into a define_expand and a new
20204 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
20205 little endian target.
20206 (altivec_vspltw_direct): New.
20207 (altivec_vspltsf): Divide into a define_expand and a new
20208 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
20209 a little endian target.
20210
20211 2014-01-30 Richard Biener <rguenther@suse.de>
20212
20213 PR tree-optimization/59993
20214 * tree-ssa-forwprop.c (associate_pointerplus): Check we
20215 can propagate form the earlier stmt and avoid the transform
20216 when the intermediate result is needed.
20217
20218 2014-01-30 Alangi Derick <alangiderick@gmail.com>
20219
20220 * README.Portability: Fix typo.
20221
20222 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
20223
20224 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
20225 comparison_operator with ordered_comparison_operator.
20226
20227 2014-01-30 Nick Clifton <nickc@redhat.com>
20228
20229 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
20230 Rename to mn10300_store_multiple_regs.
20231 * config/mn10300/mn10300.c: Likewise.
20232 * config/mn10300/mn10300.md (store_movm): Fix typo: call
20233 store_multiple_regs.
20234 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
20235 Call mn10300_store_multiple_regs.
20236
20237 2014-01-30 Nick Clifton <nickc@redhat.com>
20238 DJ Delorie <dj@redhat.com>
20239
20240 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
20241 %fp 2 to keep registers after it properly word-aligned.
20242 (rl78_alloc_physical_registers_umul): Handle the case where both
20243 input operands are the same.
20244
20245 2014-01-30 Richard Biener <rguenther@suse.de>
20246
20247 PR tree-optimization/59903
20248 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
20249 check properly.
20250
20251 2014-01-30 Jason Merrill <jason@redhat.com>
20252
20253 PR c++/59633
20254 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
20255
20256 PR c++/59645
20257 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
20258
20259 2014-01-30 Richard Biener <rguenther@suse.de>
20260
20261 PR tree-optimization/59951
20262 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
20263
20264 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
20265
20266 PR target/59784
20267 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
20268 SFmode to DFmode case.
20269
20270 2014-01-29 DJ Delorie <dj@redhat.com>
20271
20272 * config/msp430/msp430.opt (-minrt): New.
20273 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
20274 if -minrt given.
20275 (ENDFILE_SPEC): Likewise.
20276
20277 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
20278
20279 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
20280 (estimate_function_body_sizes): Use it.
20281
20282 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
20283
20284 PR c++/58561
20285 * dwarf2out.c (is_cxx_auto): New.
20286 (is_base_type): Use it.
20287 (gen_type_die_with_usage): Likewise.
20288
20289 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20290
20291 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
20292 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
20293 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
20294 -maltivec=be with LE targets.
20295 (vsx_mergeh_<mode>): Likewise.
20296 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
20297 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
20298 (altivec_vmrghb): Replace with define_expand and new
20299 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
20300 (altivec_vmrghb_direct): New define_insn.
20301 (altivec_vmrghh): Replace with define_expand and new
20302 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
20303 (altivec_vmrghh_direct): New define_insn.
20304 (altivec_vmrghw): Replace with define_expand and new
20305 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
20306 (altivec_vmrghw_direct): New define_insn.
20307 (*altivec_vmrghsf): Adjust for endianness.
20308 (altivec_vmrglb): Replace with define_expand and new
20309 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
20310 (altivec_vmrglb_direct): New define_insn.
20311 (altivec_vmrglh): Replace with define_expand and new
20312 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
20313 (altivec_vmrglh_direct): New define_insn.
20314 (altivec_vmrglw): Replace with define_expand and new
20315 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
20316 (altivec_vmrglw_direct): New define_insn.
20317 (*altivec_vmrglsf): Adjust for endianness.
20318 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
20319 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
20320 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
20321 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
20322 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
20323 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
20324 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
20325 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
20326
20327 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
20328
20329 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
20330 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
20331 whitespace.
20332
20333 2014-01-29 Richard Biener <rguenther@suse.de>
20334
20335 PR tree-optimization/58742
20336 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
20337 associate_pointerplus_align.
20338 (associate_pointerplus_diff): New function.
20339 (associate_pointerplus): Likewise. Call associate_pointerplus_align
20340 and associate_pointerplus_diff.
20341
20342 2014-01-29 Richard Biener <rguenther@suse.de>
20343
20344 * lto-streamer.h (LTO_major_version): Bump to 3.
20345 (LTO_minor_version): Reset to 0.
20346
20347 2014-01-29 Renlin Li <Renlin.Li@arm.com>
20348
20349 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
20350 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
20351 (arm_file_start): Generate correct asm header for armv7ve.
20352 * config/arm/bpabi.h: Add multilib support for armv7ve.
20353 * config/arm/driver-arm.c: Change the architectures of cortex-a7
20354 and cortex-a15 to armv7ve.
20355 * config/arm/t-aprofile: Add multilib support for armv7ve.
20356 * doc/invoke.texi: Document -march=armv7ve.
20357
20358 2014-01-29 Richard Biener <rguenther@suse.de>
20359
20360 PR tree-optimization/58742
20361 * tree-ssa-forwprop.c (associate_plusminus): Return true
20362 if we changed sth, defer EH cleanup to ...
20363 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
20364 (simplify_mult): New function.
20365
20366 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20367
20368 PR middle-end/59917
20369 PR tree-optimization/59920
20370 * tree.c (build_common_builtin_nodes): Remove
20371 __builtin_setjmp_dispatcher initialization.
20372 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
20373 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
20374 instead of gsi_after_labels + manually skipping debug stmts.
20375 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
20376 ignore bbs with IFN_ABNORMAL_DISPATCHER.
20377 * tree-inline.c (copy_edges_for_bb): Remove
20378 can_make_abnormal_goto argument, instead add abnormal_goto_dest
20379 argument. Ignore computed_goto_p stmts. Don't call
20380 make_abnormal_goto_edges. If a call might need abnormal edges
20381 for non-local gotos, see if it already has an edge to
20382 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
20383 with true argument, don't do anything then, otherwise add
20384 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
20385 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
20386 caller.
20387 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
20388 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
20389 (lower_stmt): Don't set data->calls_builtin_setjmp.
20390 (lower_builtin_setjmp): Adjust comment.
20391 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
20392 * tree-cfg.c (found_computed_goto): Remove.
20393 (factor_computed_gotos): Remove.
20394 (make_goto_expr_edges): Return bool, true for computed gotos.
20395 Don't call make_abnormal_goto_edges.
20396 (build_gimple_cfg): Don't set found_computed_goto, don't call
20397 factor_computed_gotos.
20398 (computed_goto_p): No longer static.
20399 (make_blocks): Don't set found_computed_goto.
20400 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
20401 (make_edges): If make_goto_expr_edges returns true, push bb
20402 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
20403 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
20404 vector. Record mapping between bbs and OpenMP regions if there
20405 are any, adjust make_gimple_omp_edges caller. Call
20406 handle_abnormal_edges.
20407 (make_abnormal_goto_edges): Remove.
20408 * tree-cfg.h (make_abnormal_goto_edges): Remove.
20409 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
20410 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
20411 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
20412 * internal-fn.def (ABNORMAL_DISPATCHER): New.
20413 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
20414 filling *region also set *region_idx to (*region)->entry->index.
20415
20416 PR other/58712
20417 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
20418 For REGs set ORIGINAL_REGNO.
20419
20420 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
20421
20422 * doc/md.texi: Mention that a target shouldn't implement
20423 vec_widen_(s|u)mul_even/odd pair if it is less efficient
20424 than hi/lo pair.
20425
20426 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20427
20428 PR tree-optimization/59594
20429 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
20430 a copy of the datarefs vector rather than the vector itself.
20431
20432 2014-01-28 Jason Merrill <jason@redhat.com>
20433
20434 PR c++/53756
20435 * dwarf2out.c (auto_die): New static.
20436 (gen_type_die_with_usage): Handle C++1y 'auto'.
20437 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
20438 on definition.
20439
20440 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
20441
20442 PR target/59672
20443 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
20444 (SPEC_X32): Likewise.
20445 (SPEC_64): Likewise.
20446 * config/i386/i386.c (ix86_option_override_internal): Turn off
20447 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
20448 for TARGET_16BIT.
20449 (x86_file_start): Output .code16gcc for TARGET_16BIT.
20450 * config/i386/i386.h (TARGET_16BIT): New macro.
20451 (TARGET_16BIT_P): Likewise.
20452 * config/i386/i386.opt: Add m16.
20453 * doc/invoke.texi: Document -m16.
20454
20455 2014-01-28 Jakub Jelinek <jakub@redhat.com>
20456
20457 PR preprocessor/59935
20458 * input.c (location_get_source_line): Bail out on when line number
20459 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
20460
20461 2014-01-28 Richard Biener <rguenther@suse.de>
20462
20463 PR tree-optimization/58742
20464 * tree-ssa-forwprop.c (associate_plusminus): Handle
20465 pointer subtraction of the form (T)(P + A) - (T)P.
20466
20467 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20468
20469 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
20470 at const_int_cost.
20471
20472 2014-01-28 Richard Biener <rguenther@suse.de>
20473
20474 Revert
20475 2014-01-28 Richard Biener <rguenther@suse.de>
20476
20477 PR rtl-optimization/45364
20478 PR rtl-optimization/59890
20479 * var-tracking.c (local_get_addr_clear_given_value): Handle
20480 already cleared slot.
20481 (val_reset): Handle not allocated local_get_addr_cache.
20482 (vt_find_locations): Use post-order on the inverted CFG.
20483
20484 2014-01-28 Richard Biener <rguenther@suse.de>
20485
20486 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
20487
20488 2014-01-28 Richard Biener <rguenther@suse.de>
20489
20490 PR rtl-optimization/45364
20491 PR rtl-optimization/59890
20492 * var-tracking.c (local_get_addr_clear_given_value): Handle
20493 already cleared slot.
20494 (val_reset): Handle not allocated local_get_addr_cache.
20495 (vt_find_locations): Use post-order on the inverted CFG.
20496
20497 2014-01-28 Alan Modra <amodra@gmail.com>
20498
20499 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
20500 * configure.ac <recursive call for build != host>: Define
20501 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
20502 and LD_FOR_BUILD too.
20503 * configure: Regenerate.
20504
20505 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
20506
20507 * config/i386/i386.c (get_builtin_code_for_version): Separate
20508 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
20509 Broadwell from Haswell.
20510
20511 2014-01-27 Steve Ellcey <sellcey@mips.com>
20512
20513 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
20514 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
20515 * config/mips/mips.c (mips_option_override): Change setting
20516 of TARGET_DSP.
20517 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
20518 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
20519 Change from Mask to Var.
20520
20521 2014-01-27 Jeff Law <law@redhat.com>
20522
20523 * ipa-inline.c (inline_small_functions): Fix typo.
20524
20525 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
20526
20527 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
20528 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
20529 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
20530 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
20531 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
20532 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
20533 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
20534 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
20535 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
20536 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
20537 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
20538 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
20539 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
20540 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
20541 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
20542 (_mm512_storeu_epi64): Ditto.
20543 (_mm512_cmpge_epi32_mask): Ditto.
20544 (_mm512_cmpge_epu32_mask): Ditto.
20545 (_mm512_cmpge_epi64_mask): Ditto.
20546 (_mm512_cmpge_epu64_mask): Ditto.
20547 (_mm512_cmple_epi32_mask): Ditto.
20548 (_mm512_cmple_epu32_mask): Ditto.
20549 (_mm512_cmple_epi64_mask): Ditto.
20550 (_mm512_cmple_epu64_mask): Ditto.
20551 (_mm512_cmplt_epi32_mask): Ditto.
20552 (_mm512_cmplt_epu32_mask): Ditto.
20553 (_mm512_cmplt_epi64_mask): Ditto.
20554 (_mm512_cmplt_epu64_mask): Ditto.
20555 (_mm512_cmpneq_epi32_mask): Ditto.
20556 (_mm512_cmpneq_epu32_mask): Ditto.
20557 (_mm512_cmpneq_epi64_mask): Ditto.
20558 (_mm512_cmpneq_epu64_mask): Ditto.
20559 (_mm512_expand_pd): Ditto.
20560 (_mm512_expand_ps): Ditto.
20561 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
20562 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
20563 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
20564 * config/i386/i386.c (ix86_builtins): Add
20565 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
20566 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
20567 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
20568 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
20569 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
20570 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
20571 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
20572 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
20573 IX86_BUILTIN_PMOVUSQW512_MEM.
20574 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
20575 __builtin_ia32_pmovsqd512mem_mask,
20576 __builtin_ia32_pmovqd512mem_mask,
20577 __builtin_ia32_pmovusqw512mem_mask,
20578 __builtin_ia32_pmovsqw512mem_mask,
20579 __builtin_ia32_pmovqw512mem_mask,
20580 __builtin_ia32_pmovusdw512mem_mask,
20581 __builtin_ia32_pmovsdw512mem_mask,
20582 __builtin_ia32_pmovdw512mem_mask,
20583 __builtin_ia32_pmovqb512mem_mask,
20584 __builtin_ia32_pmovusqb512mem_mask,
20585 __builtin_ia32_pmovsqb512mem_mask,
20586 __builtin_ia32_pmovusdb512mem_mask,
20587 __builtin_ia32_pmovsdb512mem_mask,
20588 __builtin_ia32_pmovdb512mem_mask.
20589 (bdesc_args): Add __builtin_ia32_expanddf512,
20590 __builtin_ia32_expandsf512.
20591 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
20592 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
20593 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
20594 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
20595 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
20596 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
20597 (avx512f_<code>v8div16qi2_mask_store): This.
20598 (avx512f_expand<mode>): New.
20599
20600 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
20601
20602 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
20603 New.
20604 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20605 (_mm512_prefetch_i32scatter_pd): Ditto.
20606 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20607 (_mm512_prefetch_i64scatter_pd): Ditto.
20608 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20609 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
20610 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20611 (_mm512_prefetch_i32scatter_ps): Ditto.
20612 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20613 (_mm512_prefetch_i64scatter_ps): Ditto.
20614 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20615 * config/i386/i386-builtin-types.def: Define
20616 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
20617 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
20618 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
20619 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
20620 IX86_BUILTIN_SCATTERPFQPD.
20621 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
20622 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
20623 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
20624 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
20625 __builtin_ia32_scatterpfqps.
20626 (ix86_expand_builtin): Expand new built-ins.
20627 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
20628 fix memory access data type.
20629 (*avx512pf_gatherpf<mode>_mask): Ditto.
20630 (*avx512pf_gatherpf<mode>): Ditto.
20631 (avx512pf_scatterpf<mode>): Ditto.
20632 (*avx512pf_scatterpf<mode>_mask): Ditto.
20633 (*avx512pf_scatterpf<mode>): Ditto.
20634 (GATHER_SCATTER_SF_MEM_MODE): New.
20635 (avx512pf_gatherpf<mode>df): Ditto.
20636 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20637 (*avx512pf_scatterpf<mode>df): Ditto.
20638
20639 2014-01-27 Jakub Jelinek <jakub@redhat.com>
20640
20641 PR bootstrap/59934
20642 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
20643 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
20644 reached.
20645
20646 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20647
20648 * common/config/arm/arm-common.c
20649 (arm_rewrite_mcpu): Handle multiple names.
20650 * config/arm/arm.h
20651 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20652
20653 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20654
20655 * gimple-builder.h (create_gimple_tmp): Delete.
20656
20657 2014-01-27 Christian Bruel <christian.bruel@st.com>
20658
20659 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
20660 words comparisons.
20661
20662 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
20663
20664 * config/pa/pa.md (call): Generate indirect long calls to non-local
20665 functions when outputing 32-bit code.
20666 (call_value): Likewise except for special call to buggy powf function.
20667
20668 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
20669 portable runtime and PIC indirect calls.
20670 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
20671 and PIC call sequences. Use ldo instead of blr to set return register
20672 in PIC call sequence.
20673
20674 2014-01-25 Walter Lee <walt@tilera.com>
20675
20676 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
20677 avoid clobbering a live register.
20678
20679 2014-01-25 Walter Lee <walt@tilera.com>
20680
20681 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
20682 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
20683 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
20684 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
20685
20686 2014-01-25 Walter Lee <walt@tilera.com>
20687
20688 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
20689 arguments on even registers.
20690 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
20691 STACK_BOUNDARY.
20692 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
20693 (BIGGEST_ALIGNMENT): Ditto.
20694 (BIGGEST_FIELD_ALIGNMENT): Ditto.
20695
20696 2014-01-25 Walter Lee <walt@tilera.com>
20697
20698 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
20699 insns before bundling.
20700 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
20701
20702 2014-01-25 Walter Lee <walt@tilera.com>
20703
20704 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
20705 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
20706 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
20707
20708 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20709
20710 * config/mips/constraints.md (kl): Delete.
20711 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
20712 define expands, using...
20713 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
20714 instructions for MIPS16.
20715 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
20716 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
20717
20718 2014-01-25 Walter Lee <walt@tilera.com>
20719
20720 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
20721 (clzdi2): Ditto.
20722 (ffsdi2): Ditto.
20723
20724 2014-01-25 Walter Lee <walt@tilera.com>
20725
20726 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
20727 (TARGET_EXPAND_TO_RTL_HOOK): Define.
20728
20729 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20730
20731 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
20732 Handle XOR.
20733
20734 2014-01-25 Jakub Jelinek <jakub@redhat.com>
20735
20736 * print-rtl.c (in_call_function_usage): New var.
20737 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
20738 EXPR_LIST mode as mode and not as reg note name.
20739
20740 PR middle-end/59561
20741 * cfgloopmanip.c (copy_loop_info): If
20742 loop->warned_aggressive_loop_optimizations, make sure
20743 the flag is set in target loop too.
20744
20745 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
20746
20747 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
20748 flag_cilkplus.
20749 * builtins.def: Likewise.
20750 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
20751 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
20752 * ira.c (ira_setup_eliminable_regset): Likewise.
20753 * omp-low.c (gate_expand_omp): Likewise.
20754 (execute_lower_omp): Likewise.
20755 (diagnose_sb_0): Likewise.
20756 (gate_diagnose_omp_blocks): Likewise.
20757 (simd_clone_clauses_extract): Likewise.
20758 (gate): Likewise.
20759
20760 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20761
20762 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
20763 correction for little endian...
20764 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
20765 here.
20766
20767 2014-01-24 Jeff Law <law@redhat.com>
20768
20769 PR tree-optimization/59919
20770 * tree-vrp.c (find_assert_locations_1): Do not register asserts
20771 for non-returning calls.
20772
20773 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
20774
20775 * common/config/aarch64/aarch64-common.c
20776 (aarch64_rewrite_mcpu): Handle multiple names.
20777 * config/aarch64/aarch64.h
20778 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20779
20780 2014-01-24 Dodji Seketeli <dodji@redhat.com>
20781
20782 * input.c (add_file_to_cache_tab): Handle the case where fopen
20783 returns NULL.
20784
20785 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
20786
20787 PR target/59929
20788 * config/i386/i386.md (pushsf splitter): Get stack adjustment
20789 from push operand if code of push isn't PRE_DEC.
20790
20791 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20792
20793 PR target/59909
20794 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20795 -mquad-memory-atomic. Update -mquad-memory documentation to say
20796 it is only used for non-atomic loads/stores.
20797
20798 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
20799 -mquad-memory or -mquad-memory-atomic switches.
20800
20801 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
20802 -mquad-memory-atomic to ISA 2.07 support.
20803
20804 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
20805 to separate support of normal quad word memory operations (ldq, stq)
20806 from the atomic quad word memory operations.
20807
20808 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20809 support to separate non-atomic quad word operations from atomic
20810 quad word operations. Disable non-atomic quad word operations in
20811 little endian mode so that we don't have to swap words after the
20812 load and before the store.
20813 (quad_load_store_p): Add comment about atomic quad word support.
20814 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
20815 options printed with -mdebug=reg.
20816
20817 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
20818 -mquad-memory-atomic as the test for whether we have quad word
20819 atomic instructions.
20820 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
20821 or -mp8-vector are used, allow byte/half-word atomic operations.
20822
20823 * config/rs6000/sync.md (load_lockedti): Insure that the address
20824 is a proper indexed or indirect address for the lqarx instruction.
20825 On little endian systems, swap the hi/lo registers after the lqarx
20826 instruction.
20827 (load_lockedpti): Use indexed_or_indirect_operand predicate to
20828 insure the address is valid for the lqarx instruction.
20829 (store_conditionalti): Insure that the address is a proper indexed
20830 or indirect address for the stqcrx. instruction. On little endian
20831 systems, swap the hi/lo registers before doing the stqcrx.
20832 instruction.
20833 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
20834 insure the address is valid for the stqcrx. instruction.
20835
20836 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
20837 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
20838 type of quad memory support is available.
20839
20840 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
20841
20842 PR regression/59915
20843 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
20844 there is a danger of looping.
20845
20846 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
20847
20848 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20849 force flag_ira_loop_pressure if set via command line.
20850
20851 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20852
20853 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
20854 (ashr_simd): New builtin handling DI mode.
20855 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
20856 (aarch64_sshr_simddi): New match pattern.
20857 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
20858 (vshrd_n_s64): Likewise.
20859 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
20860
20861 2014-01-23 Nick Clifton <nickc@redhat.com>
20862
20863 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
20864 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
20865 favour of mcu specific scripts.
20866 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
20867 430x multilibs.
20868
20869 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20870 Alex Velenko <Alex.Velenko@arm.com>
20871
20872 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
20873 (vaddv_s16): Likewise.
20874 (vaddv_s32): Likewise.
20875 (vaddv_u8): Likewise.
20876 (vaddv_u16): Likewise.
20877 (vaddv_u32): Likewise.
20878 (vaddvq_s8): Likewise.
20879 (vaddvq_s16): Likewise.
20880 (vaddvq_s32): Likewise.
20881 (vaddvq_s64): Likewise.
20882 (vaddvq_u8): Likewise.
20883 (vaddvq_u16): Likewise.
20884 (vaddvq_u32): Likewise.
20885 (vaddvq_u64): Likewise.
20886 (vaddv_f32): Likewise.
20887 (vaddvq_f32): Likewise.
20888 (vaddvq_f64): Likewise.
20889 (vmaxv_f32): Likewise.
20890 (vmaxv_s8): Likewise.
20891 (vmaxv_s16): Likewise.
20892 (vmaxv_s32): Likewise.
20893 (vmaxv_u8): Likewise.
20894 (vmaxv_u16): Likewise.
20895 (vmaxv_u32): Likewise.
20896 (vmaxvq_f32): Likewise.
20897 (vmaxvq_f64): Likewise.
20898 (vmaxvq_s8): Likewise.
20899 (vmaxvq_s16): Likewise.
20900 (vmaxvq_s32): Likewise.
20901 (vmaxvq_u8): Likewise.
20902 (vmaxvq_u16): Likewise.
20903 (vmaxvq_u32): Likewise.
20904 (vmaxnmv_f32): Likewise.
20905 (vmaxnmvq_f32): Likewise.
20906 (vmaxnmvq_f64): Likewise.
20907 (vminv_f32): Likewise.
20908 (vminv_s8): Likewise.
20909 (vminv_s16): Likewise.
20910 (vminv_s32): Likewise.
20911 (vminv_u8): Likewise.
20912 (vminv_u16): Likewise.
20913 (vminv_u32): Likewise.
20914 (vminvq_f32): Likewise.
20915 (vminvq_f64): Likewise.
20916 (vminvq_s8): Likewise.
20917 (vminvq_s16): Likewise.
20918 (vminvq_s32): Likewise.
20919 (vminvq_u8): Likewise.
20920 (vminvq_u16): Likewise.
20921 (vminvq_u32): Likewise.
20922 (vminnmv_f32): Likewise.
20923 (vminnmvq_f32): Likewise.
20924 (vminnmvq_f64): Likewise.
20925
20926 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20927
20928 * config/aarch64/aarch64-simd.md
20929 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
20930 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
20931 (*aarch64_mul3_elt<mode>): Likewise.
20932 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
20933 (*aarch64_mul3_elt_to_64v2df): Likewise.
20934 (*aarch64_mla_elt<mode>): Likewise.
20935 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
20936 (*aarch64_mls_elt<mode>): Likewise.
20937 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
20938 (*aarch64_fma4_elt<mode>): Likewise.
20939 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
20940 (*aarch64_fma4_elt_to_64v2df): Likewise.
20941 (*aarch64_fnma4_elt<mode>): Likewise.
20942 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
20943 (*aarch64_fnma4_elt_to_64v2df): Likewise.
20944 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
20945 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
20946 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20947 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20948 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20949 (aarch64_sqdmull_lane<mode>_internal): Likewise.
20950 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20951
20952 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
20953
20954 * config/aarch64/aarch64-simd.md
20955 (aarch64_be_checked_get_lane<mode>): New define_expand.
20956 * config/aarch64/aarch64-simd-builtins.def
20957 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
20958 New builtin definition.
20959 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
20960 Use new safe be builtin.
20961
20962 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20963
20964 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
20965 New define_insn.
20966 (aarch64_be_st1<mode>): Likewise.
20967 (aarch_ld1<VALL:mode>): Define_expand modified.
20968 (aarch_st1<VALL:mode>): Likewise.
20969 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
20970 (UNSPEC_ST1): Likewise.
20971
20972 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
20973
20974 * config/microblaze/microblaze.md: Add trap insn and attribute
20975
20976 2014-01-23 Dodji Seketeli <dodji@redhat.com>
20977
20978 PR preprocessor/58580
20979 * input.h (location_get_source_line): Take an additional line_size
20980 parameter.
20981 (void diagnostics_file_cache_fini): Declare new function.
20982 * input.c (struct fcache): New type.
20983 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
20984 New static constants.
20985 (diagnostic_file_cache_init, total_lines_num)
20986 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
20987 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
20988 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
20989 (get_next_line, read_next_line, goto_next_line, read_line_num):
20990 New static function definitions.
20991 (diagnostic_file_cache_fini): New function.
20992 (location_get_source_line): Take an additional output line_len
20993 parameter. Re-write using lookup_or_add_file_to_cache_tab and
20994 read_line_num.
20995 * diagnostic.c (diagnostic_finish): Call
20996 diagnostic_file_cache_fini.
20997 (adjust_line): Take an additional input parameter for the length
20998 of the line, rather than calculating it with strlen.
20999 (diagnostic_show_locus): Adjust the use of
21000 location_get_source_line and adjust_line with respect to their new
21001 signature. While displaying a line now, do not stop at the first
21002 null byte. Rather, display the zero byte as a space and keep
21003 going until we reach the size of the line.
21004 * Makefile.in: Add vec.o to OBJS-libcommon
21005
21006 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
21007 Ilya Tocar <ilya.tocar@intel.com>
21008
21009 * config/i386/avx512fintrin.h (_mm512_kmov): New.
21010 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
21011 (__builtin_ia32_kmov16): Ditto.
21012 * config/i386/i386.md (UNSPEC_KMOV): New.
21013 (kmovw): Ditto.
21014
21015 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
21016
21017 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
21018 (_mm512_storeu_si512): Ditto.
21019
21020 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
21021
21022 PR target/52125
21023 * rtl.h (get_referenced_operands): Declare.
21024 * recog.c (get_referenced_operands): New function.
21025 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
21026 operands have been referenced when recording LO_SUM references.
21027
21028 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
21029
21030 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
21031
21032 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
21033
21034 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
21035 Enable for generic and recent AMD targets.
21036
21037 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
21038
21039 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
21040 ARG_SIZE note when adjustment was eliminated.
21041
21042 2014-01-22 Jeff Law <law@redhat.com>
21043
21044 PR tree-optimization/59597
21045 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
21046 in file. Accept new argument REGISTERING and use it to modify
21047 dump output appropriately.
21048 (register_jump_thread): Corresponding changes.
21049 (mark_threaded_blocks): Reinstate code to cancel unprofitable
21050 thread paths involving joiner blocks. Add code to dump cancelled
21051 jump threading paths.
21052
21053 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
21054
21055 PR rtl-optimization/59477
21056 * lra-constraints.c (inherit_in_ebb): Process call for living hard
21057 regs. Update reloads_num and potential_reload_hard_regs for all insns.
21058
21059 2014-01-22 Tom Tromey <tromey@redhat.com>
21060
21061 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
21062 PARAMS.
21063 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
21064
21065 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
21066
21067 PR rtl-optimization/59896
21068 * lra-constraints.c (process_alt_operands): Check unused note for
21069 matched operands of insn with no output reloads.
21070
21071 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
21072
21073 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
21074 (mips_move_from_gpr_cost): Likewise.
21075
21076 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
21077
21078 PR rtl-optimization/59858
21079 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
21080 ira_class_hard_regs_num.
21081 (process_alt_operands): Increase reject for dying matched operand.
21082
21083 2014-01-21 Jakub Jelinek <jakub@redhat.com>
21084
21085 PR target/59003
21086 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
21087 smaller than size, perform several stores or loads and stores
21088 at dst + count - size to store or copy all of size bytes, rather
21089 than just last modesize bytes.
21090
21091 2014-01-20 DJ Delorie <dj@redhat.com>
21092
21093 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
21094 that CLOBBERs are REGs before propogating their values.
21095
21096 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
21097
21098 PR middle-end/59789
21099 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
21100 (cgraph_inline_failed_type): New function.
21101 * cgraph.h (DEFCIFCODE): Add type.
21102 (cgraph_inline_failed_type_t): New enum.
21103 (cgraph_inline_failed_type): New prototype.
21104 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
21105 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
21106 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
21107 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
21108 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
21109 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
21110 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
21111 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
21112 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
21113 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
21114 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
21115 OPTIMIZATION_MISMATCH.
21116 * tree-inline.c (expand_call_inline): Emit errors during
21117 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
21118
21119 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
21120
21121 PR target/59685
21122 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
21123 mode attribute in insn output.
21124
21125 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
21126
21127 * output.h (output_constant): Delete.
21128 * varasm.c (output_constant): Make private.
21129
21130 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
21131
21132 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
21133
21134 2014-01-20 Jakub Jelinek <jakub@redhat.com>
21135
21136 PR middle-end/59860
21137 * tree.h (fold_builtin_strcat): New prototype.
21138 * builtins.c (fold_builtin_strcat): No longer static. Add len
21139 argument, if non-NULL, don't call c_strlen. Optimize
21140 directly into __builtin_memcpy instead of __builtin_strcpy.
21141 (fold_builtin_2): Adjust fold_builtin_strcat caller.
21142 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
21143
21144 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
21145
21146 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
21147 for SImode_address_operand operands, having only a REG argument.
21148
21149 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
21150
21151 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
21152 loader name using mbig-endian.
21153 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
21154
21155 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
21156
21157 * doc/invoke.texi (-march): Clarify documentation for AArch64.
21158 (-mtune): Likewise.
21159 (-mcpu): Likewise.
21160
21161 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
21162
21163 * config/aarch64/aarch64-protos.h
21164 (aarch64_cannot_change_mode_class_ptr): Declare.
21165 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
21166 aarch64_cannot_change_mode_class_ptr): New.
21167 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
21168 backend hook aarch64_cannot_change_mode_class.
21169
21170 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
21171
21172 * common/config/aarch64/aarch64-common.c
21173 (aarch64_handle_option): Don't handle any option order logic here.
21174 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
21175 selected_cpu, warn on architecture version mismatch.
21176 (aarch64_override_options): Fix parsing order for option strings.
21177
21178 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21179 Iain Sandoe <iain@codesourcery.com>
21180
21181 PR bootstrap/59496
21182 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
21183 warning. Amend comment to reflect current functionality.
21184
21185 2014-01-20 Richard Biener <rguenther@suse.de>
21186
21187 PR middle-end/59860
21188 * builtins.c (fold_builtin_strcat): Remove case better handled
21189 by tree-ssa-strlen.c.
21190
21191 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
21192
21193 * config/aarch64/aarch64.opt
21194 (mcpu, march, mtune): Make case-insensitive.
21195
21196 2014-01-20 Jakub Jelinek <jakub@redhat.com>
21197
21198 PR target/59880
21199 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
21200 if operands[1] is a REG or ZERO_EXTEND of a REG.
21201
21202 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
21203
21204 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
21205
21206 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
21207
21208 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
21209 long non-pic millicode calls.
21210
21211 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21212
21213 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
21214
21215 2014-01-19 Kito Cheng <kito@0xlab.org>
21216
21217 * builtins.c (expand_movstr): Check movstr expand done or fail.
21218
21219 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21220 H.J. Lu <hongjiu.lu@intel.com>
21221
21222 PR target/59379
21223 * config/i386/i386.md (*lea<mode>): Zero-extend return register
21224 to DImode for zero-extended addresses.
21225
21226 2014-01-19 Jakub Jelinek <jakub@redhat.com>
21227
21228 PR rtl-optimization/57763
21229 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
21230 on the new indirect jump_insn and increment LABEL_NUSES (label).
21231
21232 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
21233
21234 PR bootstrap/59580
21235 PR bootstrap/59583
21236 * config.gcc (x86_archs): New variable.
21237 (x86_64_archs): Likewise.
21238 (x86_cpus): Likewise.
21239 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
21240 --with-arch/--with-cpu= options.
21241 Support --with-arch=/--with-cpu={nehalem,westmere,
21242 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
21243
21244 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21245
21246 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
21247 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
21248
21249 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21250
21251 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
21252
21253 2014-01-18 Jakub Jelinek <jakub@redhat.com>
21254
21255 PR target/58944
21256 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
21257 clear cpp_get_options (parse_in)->warn_unused_macros for
21258 ix86_target_macros_internal with cpp_define.
21259
21260 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
21261
21262 * jump.c (delete_related_insns): Keep (use (insn))s.
21263 * reorg.c (redundant_insn): Check for barriers too.
21264
21265 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21266
21267 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
21268
21269 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
21270
21271 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
21272 call to $$dyncall when TARGET_LONG_CALLS is true.
21273
21274 2014-01-17 Jeff Law <law@redhat.com>
21275
21276 * ree.c (combine_set_extension): Temporarily disable test for
21277 changing number of hard registers.
21278
21279 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21280
21281 PR middle-end/58125
21282 * ipa-inline-analysis.c (inline_free_summary):
21283 Do not free summary of aliases.
21284
21285 2014-01-17 Jakub Jelinek <jakub@redhat.com>
21286
21287 PR middle-end/59706
21288 * gimplify.c (gimplify_expr): Use create_tmp_var
21289 instead of create_tmp_var_raw. If cond doesn't have
21290 integral type, don't add the IFN_ANNOTATE builtin at all.
21291
21292 2014-01-17 Martin Jambor <mjambor@suse.cz>
21293
21294 PR ipa/59736
21295 * ipa-cp.c (prev_edge_clone): New variable.
21296 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
21297 Also resize prev_edge_clone vector.
21298 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
21299 (ipcp_edge_removal_hook): New function.
21300 (ipcp_driver): Register ipcp_edge_removal_hook.
21301
21302 2014-01-17 Andrew Pinski <apinski@cavium.com>
21303 Steve Ellcey <sellcey@mips.com>
21304
21305 PR target/59462
21306 * config/mips/mips.c (mips_print_operand): Check operand mode instead
21307 of operator mode.
21308
21309 2014-01-17 Jeff Law <law@redhat.com>
21310
21311 PR middle-end/57904
21312 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
21313 so that pass_ccp runs first.
21314
21315 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21316
21317 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
21318 (ix86_adjust_cost): Use !TARGET_XXX.
21319 (do_reorder_for_imul): Likewise.
21320 (swap_top_of_ready_list): Likewise.
21321 (ix86_sched_reorder): Likewise.
21322
21323 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21324
21325 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21326 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
21327 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
21328 (intel_memset): New. Duplicate slm_memset.
21329 (intel_cost): New. Duplicate slm_cost.
21330 (m_INTEL): New macro.
21331 (processor_target_table): Add "intel".
21332 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
21333 with PROCESSOR_INTEL for "intel".
21334 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
21335 PROCESSOR_SILVERMONT.
21336 (ix86_issue_rate): Likewise.
21337 (ix86_adjust_cost): Likewise.
21338 (ia32_multipass_dfa_lookahead): Likewise.
21339 (swap_top_of_ready_list): Likewise.
21340 (ix86_sched_reorder): Likewise.
21341 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
21342 instead of TARGET_OPT_AGU.
21343 * config/i386/i386.h (TARGET_INTEL): New.
21344 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
21345 (processor_type): Add PROCESSOR_INTEL.
21346 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
21347 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
21348
21349 2014-01-17 Marek Polacek <polacek@redhat.com>
21350
21351 PR c/58346
21352 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
21353 size is zero.
21354
21355 2014-01-17 Richard Biener <rguenther@suse.de>
21356
21357 PR tree-optimization/46590
21358 * opts.c (default_options_table): Add entries for
21359 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
21360 all enabled at -O1 but not for -Og.
21361 * common.opt (fbranch-count-reg): Remove Init(1).
21362 (fmove-loop-invariants): Likewise.
21363 (ftree-pta): Likewise.
21364
21365 2014-01-17 Jakub Jelinek <jakub@redhat.com>
21366
21367 * config/i386/i386.c (ix86_data_alignment): For compatibility with
21368 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
21369 decls to at least the GCC 4.8 used alignments.
21370
21371 PR fortran/59440
21372 * tree-nested.c (convert_nonlocal_reference_stmt,
21373 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
21374 of GIMPLE_BIND stmts, adjust associated decls.
21375
21376 2014-01-17 Richard Biener <rguenther@suse.de>
21377
21378 PR tree-optimization/46590
21379 * vec.h (vec<>::bseach): New member function implementing
21380 binary search according to C89 bsearch.
21381 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
21382 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
21383 bitmap pointer again. Make accesses_in_loop a flat array.
21384 (mem_ref_obstack): New global.
21385 (outermost_indep_loop): Adjust for mem_ref->stored changes.
21386 (mark_ref_stored): Likewise.
21387 (ref_indep_loop_p_2): Likewise.
21388 (set_ref_stored_in_loop): New helper function.
21389 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
21390 (memref_free): Adjust.
21391 (record_mem_ref_loc): Simplify.
21392 (gather_mem_refs_stmt): Adjust.
21393 (sort_locs_in_loop_postorder_cmp): New function.
21394 (analyze_memory_references): Sort accesses_in_loop after
21395 loop postorder number.
21396 (find_ref_loc_in_loop_cmp): New function.
21397 (for_all_locs_in_loop): Find relevant cluster of locs in
21398 accesses_in_loop and iterate without recursion.
21399 (execute_sm): Avoid uninit warning.
21400 (struct ref_always_accessed): Simplify.
21401 (ref_always_accessed::operator ()): Likewise.
21402 (ref_always_accessed_p): Likewise.
21403 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
21404 loop postorder numbers here.
21405 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
21406 numbers.
21407
21408 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21409
21410 PR c++/57945
21411 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
21412 on decls for which assemble_alias has been called.
21413
21414 2014-01-17 Nick Clifton <nickc@redhat.com>
21415
21416 * config/msp430/msp430.opt: (mcpu): New option.
21417 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
21418 (msp430_option_override): Parse target_cpu. If the MCU name
21419 matches a generic string, clear target_mcu.
21420 (msp430_attr): Allow numeric interrupt values up to 63.
21421 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
21422 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
21423 option.
21424 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
21425 Add mcpu matches.
21426 * config/msp430/msp430.md (popm): Use %J rather than %I.
21427 (addsi3): Use msp430_nonimmediate_operand for operand 2.
21428 (addhi_cy_i): Use immediate_operand for operand 2.
21429 * doc/invoke.texi: Document -mcpu option.
21430
21431 2014-01-17 Richard Biener <rguenther@suse.de>
21432
21433 PR rtl-optimization/38518
21434 * df.h (df_analyze_loop): Declare.
21435 * df-core.c: Include cfgloop.h.
21436 (df_analyze_1): Split out main part of df_analyze.
21437 (df_analyze): Adjust.
21438 (loop_inverted_post_order_compute): New function.
21439 (loop_post_order_compute): Likewise.
21440 (df_analyze_loop): New function avoiding whole-function
21441 postorder computes.
21442 * loop-invariant.c (find_defs): Use df_analyze_loop.
21443 (find_invariants): Adjust.
21444 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
21445
21446 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
21447
21448 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
21449 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
21450
21451 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
21452
21453 * ipa-ref.c (ipa_remove_stmt_references): Fix references
21454 traversal when removing references.
21455
21456 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
21457
21458 PR ipa/59775
21459 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
21460
21461 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
21462
21463 PR middle-end/56791
21464 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
21465 pushing a reload for an autoinc when we had previously reloaded an
21466 inner part of the address.
21467
21468 2014-01-16 Jakub Jelinek <jakub@redhat.com>
21469
21470 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
21471 field.
21472 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
21473 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
21474 when not giving up or versioning for alias only because of
21475 loop->safelen.
21476 (vect_analyze_data_ref_dependences): Set to true.
21477 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
21478 is a GIMPLE_PHI.
21479 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
21480 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
21481 to the condition.
21482
21483 PR middle-end/58344
21484 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
21485
21486 PR target/59839
21487 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
21488 operand 0 predicate for gathers, use a new pseudo as subtarget.
21489
21490 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21491
21492 PR middle-end/59609
21493 * lra-constraints.c (process_alt_operands): Add printing debug info.
21494 Check absence of input/output reloads for matched operands too.
21495
21496 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21497
21498 PR rtl-optimization/59835
21499 * ira.c (ira_init_register_move_cost): Increase cost for
21500 impossible modes.
21501
21502 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
21503
21504 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
21505
21506 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
21507
21508 PR target/59780
21509 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
21510 non-register objects. Use gen_(high/low)part more consistently.
21511 Fix assertions.
21512
21513 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21514
21515 PR target/59844
21516 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
21517 endian support, remove tests for WORDS_BIG_ENDIAN.
21518 (p8_mfvsrd_3_<mode>): Likewise.
21519 (reload_gpr_from_vsx<mode>): Likewise.
21520 (reload_gpr_from_vsxsf): Likewise.
21521 (p8_mfvsrd_4_disf): Likewise.
21522
21523 2014-01-16 Richard Biener <rguenther@suse.de>
21524
21525 PR rtl-optimization/46590
21526 * lcm.c (compute_antinout_edge): Use postorder iteration.
21527 (compute_laterin): Use inverted postorder iteration.
21528
21529 2014-01-16 Nick Clifton <nickc@redhat.com>
21530
21531 PR middle-end/28865
21532 * varasm.c (output_constant): Return the number of bytes actually
21533 emitted.
21534 (output_constructor_array_range): Update the field size with the
21535 number of bytes emitted by output_constant.
21536 (output_constructor_regular_field): Likewise. Also do not
21537 complain if the total number of bytes emitted is now greater
21538 than the expected fieldpos.
21539 * output.h (output_constant): Update prototype and descriptive comment.
21540
21541 2014-01-16 Marek Polacek <polacek@redhat.com>
21542
21543 PR middle-end/59827
21544 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
21545 it is error_mark_node.
21546
21547 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
21548
21549 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
21550 VALID_AVX256_REG_OR_OI_MODE.
21551
21552 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
21553
21554 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
21555 current procedure should be profiled.
21556
21557 2014-01-15 Andrew Pinski <apinski@cavium.com>
21558
21559 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
21560 of moving from/to the STACK_REG register class.
21561
21562 2014-01-15 Richard Henderson <rth@redhat.com>
21563
21564 PR debug/54694
21565 * reginfo.c (global_regs_decl): Globalize.
21566 * rtl.h (global_regs_decl): Declare.
21567 * ira.c (do_reload): Diagnose frame_pointer_needed and it
21568 reserved via global_regs.
21569
21570 2014-01-15 Teresa Johnson <tejohnson@google.com>
21571
21572 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
21573
21574 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21575
21576 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
21577 and vmulosh rather than call gen_vec_widen_smult_*.
21578 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
21579 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
21580 (vec_widen_smult_even_v16qi): Likewise.
21581 (vec_widen_umult_even_v8hi): Likewise.
21582 (vec_widen_smult_even_v8hi): Likewise.
21583 (vec_widen_umult_odd_v16qi): Likewise.
21584 (vec_widen_smult_odd_v16qi): Likewise.
21585 (vec_widen_umult_odd_v8hi): Likewise.
21586 (vec_widen_smult_odd_v8hi): Likewise.
21587 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
21588 vmuloub rather than call gen_vec_widen_umult_*.
21589 (vec_widen_umult_lo_v16qi): Likewise.
21590 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
21591 vmulosb rather than call gen_vec_widen_smult_*.
21592 (vec_widen_smult_lo_v16qi): Likewise.
21593 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
21594 rather than call gen_vec_widen_umult_*.
21595 (vec_widen_umult_lo_v8hi): Likewise.
21596 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
21597 rather than call gen_vec_widen_smult_*.
21598 (vec_widen_smult_lo_v8hi): Likewise.
21599
21600 2014-01-15 Jeff Law <law@redhat.com>
21601
21602 PR tree-optimization/59747
21603 * ree.c (find_and_remove_re): Properly handle case where a second
21604 eliminated extension requires widening a copy created for elimination
21605 of a prior extension.
21606 (combine_set_extension): Ensure that the number of hard regs needed
21607 for a destination register does not change when we widen it.
21608
21609 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
21610
21611 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
21612 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
21613 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
21614 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
21615 (avr-*-rtems*): Likewise.
21616 (bfin*-rtems*): Likewise.
21617 (moxie-*-rtems*): Likewise.
21618 (h8300-*-rtems*): Likewise.
21619 (i[34567]86-*-rtems*): Likewise.
21620 (lm32-*-rtems*): Likewise.
21621 (m32r-*-rtems*): Likewise.
21622 (m68k-*-rtems*): Likewise.
21623 (microblaze*-*-rtems*): Likewise.
21624 (mips*-*-rtems*): Likewise.
21625 (powerpc-*-rtems*): Likewise.
21626 (sh-*-rtems*): Likewise.
21627 (sparc-*-rtems*): Likewise.
21628 (sparc64-*-rtems*): Likewise.
21629 (v850-*-rtems*): Likewise.
21630 (m32c-*-rtems*): Likewise.
21631
21632 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
21633
21634 PR rtl-optimization/59511
21635 * ira.c (ira_init_register_move_cost): Use memory costs for some
21636 cases of register move cost calculations.
21637 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
21638 instead of BB frequency.
21639 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
21640 * lra-assigns.c (find_hard_regno_for): Ditto.
21641
21642 2014-01-15 Richard Biener <rguenther@suse.de>
21643
21644 PR tree-optimization/59822
21645 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
21646 (vectorizable_load): Use it to hoist defs of uses of invariant
21647 loads out of the loop.
21648
21649 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21650 Kugan Vivekanandarajah <kuganv@linaro.org>
21651
21652 PR target/59695
21653 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
21654 truncation.
21655
21656 2014-01-15 Richard Biener <rguenther@suse.de>
21657
21658 PR rtl-optimization/59802
21659 * lcm.c (compute_available): Use inverted postorder to seed
21660 the initial worklist.
21661
21662 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21663
21664 PR target/59803
21665 * config/s390/s390.c (s390_preferred_reload_class): Don't return
21666 ADDR_REGS for invalid symrefs in non-PIC code.
21667
21668 2014-01-15 Jakub Jelinek <jakub@redhat.com>
21669
21670 PR other/58712
21671 * builtins.c (determine_block_size): Initialize *probable_max_size
21672 even if len_rtx is CONST_INT.
21673
21674 2014-01-14 Andrew Pinski <apinski@cavium.com>
21675
21676 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
21677 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
21678 (cortexa53_tunings): Likewise.
21679 (aarch64_sched_issue_rate): New function.
21680 (TARGET_SCHED_ISSUE_RATE): Define.
21681
21682 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21683
21684 * ira-costs.c (find_costs_and_classes): Add missed
21685 ira_init_register_move_cost_if_necessary.
21686
21687 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21688
21689 PR target/59787
21690 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
21691
21692 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
21693
21694 PR target/59794
21695 * config/i386/i386.c (type_natural_mode): Add a bool parameter
21696 to indicate if type is used for function return value. Warn ABI
21697 change if the vector mode isn't available for function return value.
21698 (ix86_function_arg_advance): Pass false to type_natural_mode.
21699 (ix86_function_arg): Likewise.
21700 (ix86_gimplify_va_arg): Likewise.
21701 (function_arg_32): Don't warn ABI change.
21702 (ix86_function_value): Pass true to type_natural_mode.
21703 (ix86_return_in_memory): Likewise.
21704 (ix86_struct_value_rtx): Removed.
21705 (TARGET_STRUCT_VALUE_RTX): Likewise.
21706
21707 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21708
21709 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
21710 converting a conditional jump into a conditional return.
21711
21712 2014-01-14 Richard Biener <rguenther@suse.de>
21713
21714 PR tree-optimization/58921
21715 PR tree-optimization/59006
21716 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
21717 hoisting invariant stmts.
21718 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
21719 invariant loads on the preheader edge if possible.
21720
21721 2014-01-14 Joey Ye <joey.ye@arm.com>
21722
21723 * doc/plugin.texi (Building GCC plugins): Update to C++.
21724
21725 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
21726
21727 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
21728 (_mm_rcp28_round_ss): Ditto.
21729 (_mm_rsqrt28_round_sd): Ditto.
21730 (_mm_rsqrt28_round_ss): Ditto.
21731 (_mm_rcp28_sd): Ditto.
21732 (_mm_rcp28_ss): Ditto.
21733 (_mm_rsqrt28_sd): Ditto.
21734 (_mm_rsqrt28_ss): Ditto.
21735 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
21736 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
21737 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
21738 (IX86_BUILTIN_RCP28SD): Ditto.
21739 (IX86_BUILTIN_RCP28SS): Ditto.
21740 (IX86_BUILTIN_RSQRT28SD): Ditto.
21741 (IX86_BUILTIN_RSQRT28SS): Ditto.
21742 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
21743 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
21744 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
21745 (ix86_expand_special_args_builtin): Expand new FTYPE.
21746 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
21747 (srcp14<mode>): Make insn unary.
21748 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
21749 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
21750 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
21751 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
21752 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
21753 Fix rounding: make it SAE only.
21754 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21755 Ditto.
21756 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21757 Ditto.
21758 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
21759 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
21760 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
21761 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
21762 (round_saeonly_mask_scalar_operand4): Ditto.
21763 (round_saeonly_mask_scalar_op3): Ditto.
21764 (round_saeonly_mask_scalar_op4): Ditto.
21765
21766 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21767
21768 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21769 Implement -maltivec=be for vec_insert and vec_extract.
21770
21771 2014-01-10 DJ Delorie <dj@redhat.com>
21772
21773 * config/msp430/msp430.md (call_internal): Don't allow memory
21774 references with SP as the base register.
21775 (call_value_internal): Likewise.
21776 * config/msp430/constraints.md (Yc): New. For memory references
21777 that don't use SP as a base register.
21778
21779 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
21780 "an integer without a # prefix"
21781 * config/msp430/msp430.md (epilogue_helper): Use it.
21782
21783 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21784
21785 PR target/59617
21786 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
21787 AVX512F gather builtins.
21788 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
21789 on gather decls with INTEGER_TYPE masktype.
21790 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
21791 directly into the builtin rather than hoisting it before loop.
21792
21793 PR tree-optimization/59387
21794 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
21795 (scev_const_prop): If folded_casts and type has undefined overflow,
21796 use force_gimple_operand instead of force_gimple_operand_gsi and
21797 for each added stmt if it is assign with
21798 arith_code_with_undefined_signed_overflow, call
21799 rewrite_to_defined_overflow.
21800 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
21801 gimple-fold.h instead.
21802 (arith_code_with_undefined_signed_overflow,
21803 rewrite_to_defined_overflow): Moved to ...
21804 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
21805 rewrite_to_defined_overflow): ... here. No longer static.
21806 Include gimplify-me.h.
21807 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
21808 rewrite_to_defined_overflow): New prototypes.
21809
21810 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21811
21812 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
21813
21814 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
21815
21816 * builtins.c (get_object_alignment_2): Minor tweak.
21817 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
21818
21819 2014-01-13 Christian Bruel <christian.bruel@st.com>
21820
21821 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
21822 optimized non constant lengths.
21823
21824 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21825
21826 PR libgomp/59194
21827 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
21828 load as __atomic_load_N if possible.
21829
21830 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21831
21832 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
21833 target parameter.
21834 (rs6000_expand_builtin): Adjust call.
21835
21836 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21837
21838 PR target/58115
21839 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
21840 * config/rs6000/rs6000.c: Include target-globals.h.
21841 (rs6000_set_current_function): Instead of doing target_reinit
21842 unconditionally, use save_target_globals_default_opts and
21843 restore_target_globals.
21844
21845 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
21846 FPSCR.
21847 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
21848 (rs6000_expand_builtin): Handle mffs and mtfsf.
21849 (rs6000_init_builtins): Define mffs and mtfsf.
21850 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
21851 (rs6000_mffs): New pattern.
21852 (rs6000_mtfsf): New pattern.
21853
21854 2014-01-11 Bin Cheng <bin.cheng@arm.com>
21855
21856 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
21857 Start narrowing with START. Apply candidate-use pair
21858 and check overall cost in narrowing.
21859 (iv_ca_prune): Pass new argument.
21860
21861 2014-01-10 Jeff Law <law@redhat.com>
21862
21863 PR middle-end/59743
21864 * ree.c (combine_reaching_defs): Ensure the defining statement
21865 occurs before the extension when optimizing extensions with
21866 different source and destination hard registers.
21867
21868 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21869
21870 PR ipa/58585
21871 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
21872 vtables into the type inheritance graph.
21873
21874 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21875
21876 PR rtl-optimization/59754
21877 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
21878 modes in the REGNO != REGNO case.
21879
21880 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21881
21882 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
21883
21884 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21885
21886 PR tree-optimization/59745
21887 * tree-predcom.c (tree_predictive_commoning_loop): Call
21888 free_affine_expand_cache if giving up because components is NULL.
21889
21890 * target-globals.c (save_target_globals): Allocate < 4KB structs using
21891 GC in payload of target_globals struct instead of allocating them on
21892 the heap and the larger structs separately using GC.
21893 * target-globals.h (struct target_globals): Make regs, hard_regs,
21894 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
21895 of GTY((skip)) and change type to void *.
21896 (reset_target_globals): Cast loads from those fields to corresponding
21897 types.
21898
21899 2014-01-10 Steve Ellcey <sellcey@mips.com>
21900
21901 PR plugins/59335
21902 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
21903 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
21904 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
21905
21906 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
21907
21908 PR target/59744
21909 * aarch64-modes.def (CC_Zmode): New flags mode.
21910 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
21911 represents an equality.
21912 (aarch64_get_condition_code): Handle CC_Zmode.
21913 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
21914
21915 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21916
21917 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
21918 extraction in good case.
21919
21920 2014-01-10 Richard Biener <rguenther@suse.de>
21921
21922 PR tree-optimization/59374
21923 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
21924 checking after SLP discovery. Mark stmts not participating
21925 in any SLP instance properly.
21926
21927 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21928
21929 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
21930 when handling a SET rtx.
21931
21932 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21933
21934 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
21935 (cortex-a57): Likewise.
21936 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
21937
21938 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21939
21940 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
21941 non-iwmmxt builtins.
21942
21943 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21944
21945 PR ipa/58252
21946 PR ipa/59226
21947 * ipa-devirt.c record_target_from_binfo): Take as argument
21948 stack of binfos and lookup matching one for virtual inheritance.
21949 (possible_polymorphic_call_targets_1): Update.
21950
21951 2014-01-10 Huacai Chen <chenhc@lemote.com>
21952
21953 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
21954 kernel strings for Loongson-2E/2F/3A.
21955
21956 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21957
21958 PR middle-end/59670
21959 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
21960 is_gimple_call before calling gimple_call_internal_p.
21961
21962 2014-01-09 Steve Ellcey <sellcey@mips.com>
21963
21964 * Makefile.in (TREE_FLOW_H): Remove.
21965 (TREE_SSA_H): Add file names from tree-flow.h.
21966 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
21967 * tree.h: Remove tree-flow.h reference.
21968 * hash-table.h: Remove tree-flow.h reference.
21969 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
21970 reference with tree-ssa-loop.h.
21971
21972 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21973
21974 * doc/invoke.texi: Add -maltivec={be,le} options, and document
21975 default element-order behavior for -maltivec.
21976 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
21977 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
21978 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
21979 when targeting big endian, at least for now.
21980 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
21981
21982 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21983
21984 PR middle-end/47735
21985 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
21986 var satisfies use_register_for_decl, just take into account type
21987 alignment, rather than decl alignment.
21988
21989 PR tree-optimization/59622
21990 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
21991 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
21992 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
21993 Don't devirtualize for inplace at all. For targets.length () == 1,
21994 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
21995
21996 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
21997
21998 * config/i386/i386.md (cpu): Remove the unused btver1.
21999
22000 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
22001
22002 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
22003
22004 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22005
22006 PR target/58115
22007 * tree-core.h (struct target_globals): New forward declaration.
22008 (struct tree_target_option): Add globals field.
22009 * tree.h (TREE_TARGET_GLOBALS): Define.
22010 (prepare_target_option_nodes_for_pch): New prototype.
22011 * target-globals.h (struct target_globals): Define even if
22012 !SWITCHABLE_TARGET.
22013 * tree.c (prepare_target_option_node_for_pch,
22014 prepare_target_option_nodes_for_pch): New functions.
22015 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
22016 * config/i386/i386.c: Include target-globals.h.
22017 (ix86_set_current_function): Instead of doing target_reinit
22018 unconditionally, use save_target_globals_default_opts and
22019 restore_target_globals.
22020
22021 2014-01-09 Richard Biener <rguenther@suse.de>
22022
22023 PR tree-optimization/59715
22024 * tree-cfg.h (split_critical_edges): Declare.
22025 * tree-cfg.c (split_critical_edges): Export.
22026 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
22027
22028 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
22029
22030 * cfgexpand.c (expand_stack_vars): Optionally disable
22031 asan stack protection.
22032 (expand_used_vars): Likewise.
22033 (partition_stack_vars): Likewise.
22034 * asan.c (asan_emit_stack_protection): Optionally disable
22035 after return stack usage.
22036 (instrument_derefs): Optionally disable memory access instrumentation.
22037 (instrument_builtin_call): Likewise.
22038 (instrument_strlen_call): Likewise.
22039 (asan_protect_global): Optionally disable global variables protection.
22040 * doc/invoke.texi: Added doc for new options.
22041 * params.def: Added new options.
22042 * params.h: Likewise.
22043
22044 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22045
22046 PR rtl-optimization/59724
22047 * ifcvt.c (cond_exec_process_if_block): Don't call
22048 flow_find_head_matching_sequence with 0 longest_match.
22049 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
22050 non-active insns if !stop_after.
22051 (try_head_merge_bb): Revert 2014-01-07 changes.
22052
22053 2014-01-08 Jeff Law <law@redhat.com>
22054
22055 * ree.c (get_sub_rtx): New function, extracted from...
22056 (merge_def_and_ext): Here.
22057 (combine_reaching_defs): Use get_sub_rtx.
22058
22059 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
22060
22061 * cgraph.h (varpool_variable_node): Do not choke on null node.
22062
22063 2014-01-08 Catherine Moore <clm@codesourcery.com>
22064
22065 * config/mips/mips.md (simple_return): Attempt to use JRC
22066 for microMIPS.
22067 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
22068
22069 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
22070
22071 PR rtl-optimization/59137
22072 * reorg.c (steal_delay_list_from_target): Call update_block for
22073 elided insns.
22074 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
22075
22076 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22077
22078 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
22079 two duplicate entries.
22080
22081 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
22082
22083 Revert:
22084 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
22085
22086 * config/mips/mips.c (mips_truncated_op_cost): New function.
22087 (mips_rtx_costs): Adjust test for BADDU.
22088 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
22089
22090 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
22091
22092 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
22093 (*baddu_si): ...this new pattern.
22094
22095 2014-01-08 Jakub Jelinek <jakub@redhat.com>
22096
22097 PR ipa/59722
22098 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
22099
22100 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
22101
22102 PR middle-end/57748
22103 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
22104 inner_reference_p.
22105 (expand_expr, expand_normal): Adjust.
22106 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
22107 inner_reference_p. Use inner_reference_p to expand inner references.
22108 (store_expr): Adjust.
22109 * cfgexpand.c (expand_call_stmt): Adjust.
22110
22111 2014-01-08 Rong Xu <xur@google.com>
22112
22113 * gcov-io.c (gcov_var): Move from gcov-io.h.
22114 (gcov_position): Ditto.
22115 (gcov_is_error): Ditto.
22116 (gcov_rewrite): Ditto.
22117 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
22118 only part to libgcc/libgcov.h.
22119
22120 2014-01-08 Marek Polacek <polacek@redhat.com>
22121
22122 PR middle-end/59669
22123 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
22124
22125 2014-01-08 Marek Polacek <polacek@redhat.com>
22126
22127 PR sanitizer/59667
22128 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
22129
22130 2014-01-08 Jakub Jelinek <jakub@redhat.com>
22131
22132 PR rtl-optimization/59649
22133 * stor-layout.c (get_mode_bounds): For BImode return
22134 0 and STORE_FLAG_VALUE.
22135
22136 2014-01-08 Richard Biener <rguenther@suse.de>
22137
22138 PR middle-end/59630
22139 * gimple.h (is_gimple_builtin_call): Remove.
22140 (gimple_builtin_call_types_compatible_p): New.
22141 (gimple_call_builtin_p): New overload.
22142 * gimple.c (is_gimple_builtin_call): Remove.
22143 (validate_call): Rename to ...
22144 (gimple_builtin_call_types_compatible_p): ... this and export. Also
22145 check return types.
22146 (validate_type): New static function.
22147 (gimple_call_builtin_p): New overload and adjust.
22148 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
22149 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
22150 (gimple_fold_stmt_to_constant_1): Likewise.
22151 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
22152
22153 2014-01-08 Richard Biener <rguenther@suse.de>
22154
22155 PR middle-end/59471
22156 * gimplify.c (gimplify_expr): Gimplify register-register type
22157 VIEW_CONVERT_EXPRs to separate stmts.
22158
22159 2014-01-07 Jeff Law <law@redhat.com>
22160
22161 PR middle-end/53623
22162 * ree.c (combine_set_extension): Handle case where source
22163 and destination registers in an extension insn are different.
22164 (combine_reaching_defs): Allow source and destination registers
22165 in extension to be different under limited circumstances.
22166 (add_removable_extension): Remove restriction that the
22167 source and destination registers in the extension are the same.
22168 (find_and_remove_re): Emit a copy from the extension's
22169 destination to its source after the defining insn if
22170 the source and destination registers are different.
22171
22172 PR middle-end/59285
22173 * ifcvt.c (merge_if_block): If we are merging a block with more than
22174 one successor with a block with no successors, remove any BARRIER
22175 after the second block.
22176
22177 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
22178
22179 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
22180
22181 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
22182
22183 PR target/59652
22184 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
22185 for 14-bit register offsets when INT14_OK_STRICT is false.
22186
22187 2014-01-07 Roland Stigge <stigge@antcom.de>
22188 Michael Meissner <meissner@linux.vnet.ibm.com>
22189
22190 PR 57386/target
22191 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
22192 Only check TFmode for SPE constants. Don't check TImode or TDmode.
22193
22194 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
22195
22196 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
22197 -mcpu.
22198
22199 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
22200
22201 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
22202 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
22203 rtx is const0_rtx or not.
22204
22205 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
22206
22207 PR target/58115
22208 * target-globals.c (save_target_globals): Remove this_fn_optab
22209 handling.
22210 * toplev.c: Include optabs.h.
22211 (target_reinit): Temporarily restore the global options if another
22212 set of options are in force.
22213
22214 2014-01-07 Jakub Jelinek <jakub@redhat.com>
22215
22216 PR rtl-optimization/58668
22217 * cfgcleanup.c (flow_find_cross_jump): Don't count
22218 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
22219 to determine what is counted.
22220 (flow_find_head_matching_sequence): Use active_insn_p to determine
22221 what is counted.
22222 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
22223 counting change.
22224 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
22225 determine what is counted.
22226
22227 PR tree-optimization/59643
22228 * tree-predcom.c (split_data_refs_to_components): If one dr is
22229 read and one write, determine_offset fails and the write isn't
22230 in the bad component, just put the read into the bad component.
22231
22232 2014-01-07 Mike Stump <mikestump@comcast.net>
22233 Jakub Jelinek <jakub@redhat.com>
22234
22235 PR pch/59436
22236 * tree-core.h (struct tree_optimization_option): Change optabs
22237 type from unsigned char * to void *.
22238 * optabs.c (init_tree_optimization_optabs): Adjust
22239 TREE_OPTIMIZATION_OPTABS initialization.
22240
22241 2014-01-06 Jakub Jelinek <jakub@redhat.com>
22242
22243 PR target/59644
22244 * config/i386/i386.h (struct machine_function): Add
22245 no_drap_save_restore field.
22246 * config/i386/i386.c (ix86_save_reg): Use
22247 !cfun->machine->no_drap_save_restore instead of
22248 crtl->stack_realign_needed.
22249 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
22250 this function clears frame_pointer_needed. Set
22251 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
22252 and DRAP reg is needed.
22253
22254 2014-01-06 Marek Polacek <polacek@redhat.com>
22255
22256 PR c/57773
22257 * doc/implement-c.texi: Mention that other integer types are
22258 permitted as bit-field types in strictly conforming mode.
22259
22260 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
22261
22262 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
22263 is newly allocated.
22264
22265 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
22266
22267 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
22268
22269 2014-01-06 Martin Jambor <mjambor@suse.cz>
22270
22271 PR ipa/59008
22272 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
22273 to int.
22274 * ipa-prop.c (ipa_print_node_params): Fix indentation.
22275
22276 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
22277
22278 PR debug/59350
22279 PR debug/59510
22280 * var-tracking.c (add_stores): Preserve the value of the source even if
22281 we don't record the store.
22282
22283 2014-01-06 Terry Guo <terry.guo@arm.com>
22284
22285 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
22286
22287 2014-01-05 Iain Sandoe <iain@codesourcery.com>
22288
22289 PR bootstrap/59541
22290 * config/darwin.c (darwin_function_section): Adjust return values to
22291 correspond to optimisation changes made in r206070.
22292
22293 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
22294
22295 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
22296 from prefetch_block tune setting.
22297 (nocona_cost): Correct size of prefetch block to 64.
22298
22299 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
22300
22301 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
22302 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
22303 used to save the static chain register in the computation of the offset
22304 from which the FP registers need to be restored.
22305
22306 2014-01-04 Jakub Jelinek <jakub@redhat.com>
22307
22308 PR tree-optimization/59519
22309 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
22310 ICE if get_current_def (current_new_name) is already non-NULL, as long
22311 as it is a phi result of some other phi in *new_exit_bb that has
22312 the same argument.
22313
22314 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
22315 or vmovdqu* for misaligned_operand.
22316 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
22317 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
22318 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
22319 aligned_mem for AVX512F masked aligned load and store builtins and for
22320 non-temporal moves.
22321
22322 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
22323
22324 PR tree-optimization/59651
22325 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
22326 Address range for negative step should be added by TYPE_SIZE_UNIT.
22327
22328 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
22329
22330 * config/m68k/m68k.c (handle_move_double): Handle pushes with
22331 overlapping registers also for registers other than the stack pointer.
22332
22333 2014-01-03 Marek Polacek <polacek@redhat.com>
22334
22335 PR other/59661
22336 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
22337 __builtin_FILE.
22338
22339 2014-01-03 Jakub Jelinek <jakub@redhat.com>
22340
22341 PR target/59625
22342 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
22343 asm goto as jump.
22344
22345 * config/i386/i386.md (MODE_SIZE): New mode attribute.
22346 (push splitter): Use <P:MODE_SIZE> instead of
22347 GET_MODE_SIZE (<P:MODE>mode).
22348 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
22349 (mov -1, reg peephole2): Likewise.
22350 * config/i386/sse.md (*mov<mode>_internal,
22351 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
22352 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
22353 *<code><mode>3, *andnot<mode>3<mask_name>,
22354 <mask_codefor><code><mode>3<mask_name>): Likewise.
22355 * config/i386/subst.md (mask_mode512bit_condition,
22356 sd_mask_mode512bit_condition): Likewise.
22357
22358 2014-01-02 Xinliang David Li <davidxl@google.com>
22359
22360 PR tree-optimization/59303
22361 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
22362 (dump_predicates): Better output format.
22363 (pred_equal_p): New function.
22364 (is_neq_relop_p): Ditto.
22365 (is_neq_zero_form_p): Ditto.
22366 (pred_expr_equal_p): Ditto.
22367 (pred_neg_p): Ditto.
22368 (simplify_pred): Ditto.
22369 (simplify_preds_2): Ditto.
22370 (simplify_preds_3): Ditto.
22371 (simplify_preds_4): Ditto.
22372 (simplify_preds): Ditto.
22373 (push_pred): Ditto.
22374 (push_to_worklist): Ditto.
22375 (get_pred_info_from_cmp): Ditto.
22376 (is_degenerated_phi): Ditto.
22377 (normalize_one_pred_1): Ditto.
22378 (normalize_one_pred): Ditto.
22379 (normalize_one_pred_chain): Ditto.
22380 (normalize_preds): Ditto.
22381 (normalize_cond_1): Remove function.
22382 (normalize_cond): Ditto.
22383 (is_gcond_subset_of): Ditto.
22384 (is_subset_of_any): Ditto.
22385 (is_or_set_subset_of): Ditto.
22386 (is_and_set_subset_of): Ditto.
22387 (is_norm_cond_subset_of): Ditto.
22388 (pred_chain_length_cmp): Ditto.
22389 (convert_control_dep_chain_into_preds): Type change.
22390 (find_predicates): Ditto.
22391 (find_def_preds): Ditto.
22392 (destroy_predicates_vecs): Ditto.
22393 (find_matching_predicates_in_rest_chains): Ditto.
22394 (use_pred_not_overlap_with_undef_path_pred): Ditto.
22395 (is_pred_expr_subset): Ditto.
22396 (is_pred_chain_subset_of): Ditto.
22397 (is_included_in): Ditto.
22398 (is_superset_of): Ditto.
22399
22400 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22401
22402 Update copyright years.
22403
22404 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22405
22406 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
22407 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
22408 config/arc/arc.md, config/arc/arc.opt,
22409 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
22410 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
22411 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
22412 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
22413 config/linux-protos.h, config/linux.c, config/winnt-c.c,
22414 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
22415 vtable-verify.c, vtable-verify.h: Use the standard form for the
22416 copyright notice.
22417
22418 2014-01-02 Tobias Burnus <burnus@net-b.de>
22419
22420 * gcc.c (process_command): Update copyright notice dates.
22421 * gcov-dump.c: Ditto.
22422 * gcov.c: Ditto.
22423 * doc/cpp.texi: Bump @copying's copyright year.
22424 * doc/cppinternals.texi: Ditto.
22425 * doc/gcc.texi: Ditto.
22426 * doc/gccint.texi: Ditto.
22427 * doc/gcov.texi: Ditto.
22428 * doc/install.texi: Ditto.
22429 * doc/invoke.texi: Ditto.
22430
22431 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22432
22433 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
22434
22435 2014-01-01 Jakub Jelinek <jakub@redhat.com>
22436
22437 * config/i386/sse.md (*mov<mode>_internal): Guard
22438 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
22439
22440 PR rtl-optimization/59647
22441 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
22442 new_rtx into UNSIGNED_FLOAT rtxes.
22443 \f
22444 Copyright (C) 2014 Free Software Foundation, Inc.
22445
22446 Copying and distribution of this file, with or without modification,
22447 are permitted in any medium without royalty provided the copyright
22448 notice and this notice are preserved.