sse.md (define_mode_iterator V_AVX512VL): Delete.
[gcc.git] / gcc / ChangeLog
1 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
2
3 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4 (define_mode_iterator V48_AVX512VL): New.
5 (define_mode_iterator V12_AVX512VL): Ditto.
6 (define_insn <avx512>_load<mode>_mask): Split into two similar
7 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8 Refactor output template.
9 (define_insn "<avx512>_store<mode>_mask"): Ditto.
10
11 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12
13 * cprop.c (struct occr): Strengthen field "insn" from rtx to
14 rtx_insn *.
15 (reg_available_p): Likewise for param "insn".
16 (insert_set_in_table): Likewise.
17 (hash_scan_set): Likewise.
18 (hash_scan_insn): Likewise.
19 (make_set_regs_unavailable): Likewise.
20 (compute_hash_table_work): Likewise for local "insn".
21 (reg_not_set_p): Strengthen param "insn" from const_rtx to
22 const rtx_insn *.
23 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
24 (try_replace_reg): Likewise.
25 (find_avail_set): Likewise.
26 (cprop_jump): Likewise for params "setcc", "jump".
27 (constprop_register): Likewise for param "insn".
28 (cprop_insn): Likewise.
29 (do_local_cprop): Likewise.
30 (local_cprop_pass): Likewise for local "insn".
31 (bypass_block): Likewise for params "setcc" and "jump".
32 (bypass_conditional_jumps): Likewise for locals "setcc" and
33 "insn".
34 (one_cprop_pass): Likewise for local "insn".
35
36 2014-08-22 David Malcolm <dmalcolm@redhat.com>
37
38 * compare-elim.c (struct comparison_use): Strengthen field "insn"
39 from rtx to rtx_insn *.
40 (struct comparison): Likewise, also for field "prev_clobber".
41 (conforming_compare): Likewise for param "insn".
42 (arithmetic_flags_clobber_p): Likewise.
43 (find_flags_uses_in_insn): Likewise.
44 (find_comparison_dom_walker::before_dom_children): Likewise for
45 locals "insn", "next", "last_clobber".
46 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
47
48 2014-08-22 David Malcolm <dmalcolm@redhat.com>
49
50 * combine-stack-adj.c (struct csa_reflist): Strengthen field
51 "insn" from rtx to rtx_insn *.
52 (single_set_for_csa): Likewise for param "insn".
53 (record_one_stack_ref): Likewise.
54 (try_apply_stack_adjustment): Likewise.
55 (struct record_stack_refs_data): Likewise for field "insn".
56 (maybe_move_args_size_note): Likewise for params "last" and "insn".
57 (prev_active_insn_bb): Likewise for return type and param "insn".
58 (next_active_insn_bb): Likewise.
59 (force_move_args_size_note): Likewise for params "prev" and "last"
60 and locals "test", "next_candidate", "prev_candidate".
61 (combine_stack_adjustments_for_block): Strengthen locals
62 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
63 rtx_insn *.
64
65 2014-08-21 David Malcolm <dmalcolm@redhat.com>
66
67 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
68 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
69 (subst_insn): Likewise for this variable.
70 (added_links_insn): Likewise.
71 (struct insn_link): Likewise for field "insn".
72 (alloc_insn_link): Likewise for param "insn".
73 (struct undobuf): Likewise for field "other_insn".
74 (find_single_use): Likewise for param "insn" and local "next".
75 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
76 (delete_noop_moves): Likewise for locals "insn", "next".
77 (create_log_links): Likewise for locals "insn", "use_insn".
78 Strengthen local "next_use" from rtx * to rtx_insn **.
79 (insn_a_feeds_b): Likewise for params "a", "b".
80 (combine_instructions): Likewise for param "f" and locals "insn",
81 "next", "prev", "first", "last_combined_insn", "link", "link1",
82 "temp". Replace use of NULL_RTX with NULL when referring to
83 insns.
84 (setup_incoming_promotions): Likewise for param "first"
85 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
86 (can_combine_p): Likewise for params "insn", "i3", "pred",
87 "pred2", "succ", "succ2" and for local "p".
88 (combinable_i3pat): Likewise for param "i3".
89 (cant_combine_insn_p): Likewise for param "insn".
90 (likely_spilled_retval_p): Likewise.
91 (adjust_for_new_dest): Likewise.
92 (update_cfg_for_uncondjump): Likewise, also for local "insn".
93 (try_combine): Likewise for return type and for params "i3", "i2",
94 "i1", "i0", "last_combined_insn", and for locals "insn",
95 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
96 "i0_insn". Eliminate local "tem" in favor of new locals
97 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
98 checked cast for now to rtx_insn * on the return type of
99 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
100 insns.
101 (find_split_point): Strengthen param "insn" from rtx to
102 rtx_insn *.
103 (simplify_set): Likewise for local "other_insn".
104 (recog_for_combine): Likewise for param "insn".
105 (record_value_for_reg): Likewise.
106 (record_dead_and_set_regs_1): Likewise for local
107 "record_dead_insn".
108 (record_dead_and_set_regs): Likewise for param "insn".
109 (record_promoted_value): Likewise.
110 (check_promoted_subreg): Likewise.
111 (get_last_value_validate): Likewise.
112 (reg_dead_at_p): Likewise.
113 (move_deaths): Likewise for param "to_insn".
114 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
115 and locals "place", "place2", "cc0_setter". Eliminate local "tem
116 in favor of new locals "tem_note" and "tem_insn", the latter being
117 an rtx_insn *.
118 (distribute_links): Strengthen locals "place", "insn" from rtx to
119 rtx_insn *.
120
121 2014-08-21 David Malcolm <dmalcolm@redhat.com>
122
123 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
124 than a const_rtx.
125 (can_delete_label_p): Require a const rtx_code_label * rather than
126 a const_rtx.
127 (delete_insn): Add checked cast to rtx_code_label * when we know
128 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
129 rtx to rtx_insn *.
130 (delete_insn_chain): Strengthen locals "prev" and "current" from
131 rtx to rtx_insn *. Add a checked cast when assigning from
132 "finish" (strengthening the params will come later). Add a
133 checked cast to rtx_note * in region where we know
134 NOTE_P (current).
135 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
136 rtx_insn *.
137 (compute_bb_for_insn): Likewise.
138 (free_bb_for_insn): Likewise for local "insn".
139 (compute_bb_for_insn): Likewise.
140 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
141 local "insn" from rtx to rtx_insn *
142 (flow_active_insn_p): Require a const rtx_insn * rather than a
143 const_rtx.
144 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
145 rtx_insn *.
146 (can_fallthru): Likewise for locals "insn" and "insn2".
147 (bb_note): Likewise for local "note".
148 (first_insn_after_basic_block_note): Likewise for local "note" and
149 for return type.
150 (rtl_split_block): Likewise for locals "insn" and "next".
151 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
152 "end".
153 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
154 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
155 "prev", "tmp".
156 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
157 them), "kill_from", "barrier", "new_insn".
158 (patch_jump_insn): Likewise for params "insn", "old_label".
159 (redirect_branch_edge): Likewise for locals "old_label", "insn".
160 (force_nonfallthru_and_redirect): Likewise for locals "insn",
161 "old_label", "new_label".
162 (rtl_tidy_fallthru_edge): Likewise for local "q".
163 (rtl_split_edge): Likewise for locals "before", "last".
164 (commit_one_edge_insertion): Likewise for locals "before",
165 "after", "insns", "tmp", "last", adding a checked cast where
166 currently necessary.
167 (commit_edge_insertions): Likewise.
168 (rtl_dump_bb): Likewise for locals "insn", "last".
169 (print_rtl_with_bb): Likewise for local "x".
170 (rtl_verify_bb_insns): Likewise for local "x".
171 (rtl_verify_bb_pointers): Likewise for local "insn".
172 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
173 "head", "end".
174 (rtl_verify_fallthru): Likewise for local "insn".
175 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
176 (purge_dead_edges): Likewise for local "insn".
177 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
178 (skip_insns_after_block): Likewise for return type and for locals
179 "insn", "last_insn", "next_head", "prev".
180 (record_effective_endpoints): Likewise for locals "next_insn",
181 "insn", "end".
182 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
183 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
184 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
185 (duplicate_insn_chain): For now, add checked cast from rtx to
186 rtx_insn * when returning insn.
187 (cfg_layout_duplicate_bb): Likewise for local "insn".
188 (cfg_layout_delete_block): Likewise for locals "insn", "next",
189 "prev", "remaints".
190 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
191 (rtl_block_empty_p): Likewise.
192 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
193 "split_point", "last".
194 (rtl_block_ends_with_call_p): Likewise for local "insn".
195 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
196 const rtx_insn *.
197 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
198 "split_at_insn" from rtx to rtx_insn *.
199 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
200 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
201 to const rtx_insn *.
202 (rtl_account_profile_record): Likewise.
203
204 2014-08-21 David Malcolm <dmalcolm@redhat.com>
205
206 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
207 rtx to rtx_insn *.
208 (average_num_loop_insns): Likewise.
209 (init_set_costs): Likewise for local "seq".
210 (seq_cost): Likewise for param "seq", from const_rtx to const
211 rtx_insn *.
212
213 2014-08-21 David Malcolm <dmalcolm@redhat.com>
214
215 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
216 rtx to rtx_insn *.
217
218 2014-08-21 David Malcolm <dmalcolm@redhat.com>
219
220 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
221 "f1" and "f2" from rtx * to rtx_insn **.
222 (flow_find_head_matching_sequence): Likewise.
223
224 * cfgcleanup.c (try_simplify_condjump): Strengthen local
225 "cbranch_insn" from rtx to rtx_insn *.
226 (thread_jump): Likewise for local "insn".
227 (try_forward_edges): Likewise for local "last".
228 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
229 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
230 "real_b_end".
231 (can_replace_by): Likewise for params "i1", "i2".
232 (old_insns_match_p): Likewise.
233 (merge_notes): Likewise.
234 (walk_to_nondebug_insn): Likewise for param "i1".
235 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
236 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
237 "afterlast1", "afterlast2" from rtx to rtx_insn *.
238 (flow_find_head_matching_sequence): Strengthen params "f1" and
239 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
240 "last1", "last2", "beforelast1", "beforelast2" from rtx to
241 rtx_insn *.
242 (outgoing_edges_match): Likewise for locals "last1", "last2".
243 (try_crossjump_to_edge): Likewise for local "insn".
244 Replace call to for_each_rtx with for_each_rtx_in_insn.
245
246 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
247 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
248 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
249 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
250 (try_optimize_cfg): Strengthen local "last" from rtx to
251 rtx_insn *.
252 (delete_dead_jumptables): Likewise for locals "insn", "next",
253 "label".
254
255 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
256 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
257 "rtx else_first_tail", to reflect the basic-block.h changes above.
258
259 2014-08-21 David Malcolm <dmalcolm@redhat.com>
260
261 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
262 rtx_insn *.
263 (purge_dead_tablejump_edges): Likewise.
264 (find_bb_boundaries): Likewise for locals "insn", "end",
265 "flow_transfer_insn".
266
267 2014-08-21 David Malcolm <dmalcolm@redhat.com>
268
269 * caller-save.c (save_call_clobbered_regs): Strengthen locals
270 "ins" and "prev" from rtx to rtx_insn *.
271
272 2014-08-21 David Malcolm <dmalcolm@redhat.com>
273
274 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
275 rtx_insn *.
276 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
277 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
278 "scan_start".
279 (load_register_parameters): Likewise for local "before_arg".
280 (check_sibcall_argument_overlap): Likewise for param "insn".
281 (expand_call): Likewise for locals "normal_call_insns",
282 "tail_call_insns", "insns", "before_call", "after_args",
283 "before_arg", "last", "prev". Strengthen one of the "last" from
284 rtx to rtx_call_insn *.
285 (fixup_tail_calls): Strengthen local "insn" from rtx to
286 rtx_insn *.
287 (emit_library_call_value_1): Likewise for locals "before_call" and
288 "last".
289
290 2014-08-21 David Malcolm <dmalcolm@redhat.com>
291
292 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
293 and "last" from rtx to rtx_insn *.
294 (expand_builtin_nonlocal_goto): Likewise for local "insn".
295 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
296 rtx_call_insn *.
297 (expand_errno_check): Strengthen local "lab" from rtx to
298 rtx_code_label *.
299 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
300 rtx_insn *.
301 (expand_builtin_mathfn_2): Likewise.
302 (expand_builtin_mathfn_ternary): Likewise.
303 (expand_builtin_mathfn_3): Likewise.
304 (expand_builtin_interclass_mathfn): Likewise for local "last".
305 (expand_builtin_int_roundingfn): Likewise for local "insns".
306 (expand_builtin_int_roundingfn_2): Likewise.
307 (expand_builtin_strlen): Likewise for local "before_strlen".
308 (expand_builtin_strncmp): Likewise for local "seq".
309 (expand_builtin_signbit): Likewise for local "last".
310 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
311 from rtx to rtx_code_label *.
312 (expand_stack_restore): Strengthen local "prev" from rtx to
313 rtx_insn *.
314
315 2014-08-21 David Malcolm <dmalcolm@redhat.com>
316
317 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
318 to rtx_insn *.
319 (struct btr_def_s): Likewise.
320 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
321 const rtx_insn *.
322 (add_btr_def): Likewise.
323 (new_btr_user): Likewise.
324 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
325 rtx to rtx_insn *.
326 (link_btr_uses): Likewise.
327 (move_btr_def): Likewise for locals "insp", "old_insn",
328 "new_insn". Add checked cast to rtx_insn * for now on result of
329 gen_move_insn.
330 (can_move_up): Strengthen param "insn" from const_rtx to
331 const rtx_insn *.
332
333 2014-08-21 David Malcolm <dmalcolm@redhat.com>
334
335 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
336 rtx_insn *.
337 (get_uncond_jump_length): Likewise for locals "label", "jump".
338 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
339 "jump", "insn".
340 (add_labels_and_missing_jumps): Likewise for local "new_jump".
341 (fix_up_fall_thru_edges): Likewise for local "old_jump".
342 (find_jump_block): Likewise for local "insn".
343 (fix_crossing_conditional_branches): Likewise for locals
344 "old_jump", "new_jump".
345 (fix_crossing_unconditional_branches): Likewise for locals
346 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
347 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
348
349 2014-08-21 David Malcolm <dmalcolm@redhat.com>
350
351 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
352 rtx to rtx_insn *.
353 (struct mem_insn): Likewise for field "insn".
354 (reg_next_use): Strengthen from rtx * to rtx_insn **.
355 (reg_next_inc_use): Likewise.
356 (reg_next_def): Likewise.
357 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
358 from rtx to rtx_insn *.
359 (move_insn_before): Likewise for param "next_insn" and local "insns".
360 (attempt_change): Likewise for local "mov_insn".
361 (try_merge): Likewise for param "last_insn".
362 (get_next_ref): Likewise for return type and local "insn".
363 Strengthen param "next_array" from rtx * to rtx_insn **.
364 (parse_add_or_inc): Strengthen param "insn" from rtx to
365 rtx_insn *.
366 (find_inc): Likewise for locals "insn" and "other_insn" (three of
367 the latter).
368 (merge_in_block): Likewise for locals "insn", "curr",
369 "other_insn".
370 (pass_inc_dec::execute): Update allocations of the arrays to
371 reflect the stronger types.
372
373 2014-08-21 David Malcolm <dmalcolm@redhat.com>
374
375 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
376 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
377 from rtx to rtx_code_label *.
378
379 2014-08-21 David Malcolm <dmalcolm@redhat.com>
380
381 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
382 to rtx_insn *.
383
384 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
385
386 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
387 generated a warning and prevented bootstrapping the compiler.
388
389 2014-08-21 David Malcolm <dmalcolm@redhat.com>
390
391 * rtl.h (delete_related_insns): Strengthen return type from rtx to
392 rtx_insn *.
393
394 * jump.c (delete_related_insns): Likewise, also for locals "next"
395 and "prev".
396
397 2014-08-21 David Malcolm <dmalcolm@redhat.com>
398
399 * genautomata.c (output_internal_insn_latency_func): When writing
400 the function "internal_insn_latency" to insn-automata.c,
401 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
402 allowing the optional guard function of (define_bypass) clauses to
403 expect a pair of rtx_insn *, rather than a pair of rtx.
404 (output_insn_latency_func): When writing the function
405 "insn_latency", add an "uncast_" prefix to params "insn" and
406 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
407 using checked casts from the params, thus enabling the above
408 change to the generated "internal_insn_latency" function.
409
410 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
411
412 PR tree-optimization/62091
413 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
414 handle correctly arrays.
415 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
416 inheritance binfos.
417 (record_known_type): Walk into inner type.
418 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
419 condition on no type changes.
420
421 2014-08-21 David Malcolm <dmalcolm@redhat.com>
422
423 * genattrtab.c (write_attr_get): Within the generated get_attr_
424 functions, rename param "insn" to "uncast_insn" and reintroduce
425 "insn" as an local rtx_insn * using a checked cast, so that "insn"
426 is an rtx_insn * within insn-attrtab.c
427
428 2014-08-21 David Malcolm <dmalcolm@redhat.com>
429
430 * output.h (peephole): Strengthen return type from rtx to
431 rtx_insn *.
432 * rtl.h (delete_for_peephole): Likewise for both params.
433 * genpeep.c (main): In generated "peephole" function, strengthen
434 return type and local "insn" from rtx to rtx_insn *. For now,
435 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
436 rtx_insn *, with a checked cast.
437 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
438 locals "insn", "next", "prev" from rtx to rtx_insn *.
439
440 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
441
442 PR tree-optimization/62112
443 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
444 * gimple-iterator.h (gsi_replace): Return bool.
445 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
446 moved from ref_may_alias_global_p.
447 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
448 New overloads.
449 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
450 (stmt_kills_ref_p_1): Rename...
451 (stmt_kills_ref_p): ... to this.
452 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
453 stmt_kills_ref_p): Declare.
454 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
455 Move the self-assignment case...
456 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
457
458 2014-08-21 David Malcolm <dmalcolm@redhat.com>
459
460 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
461
462 * emit-rtl.c (try_split): Likewise, also for locals "before" and
463 "after". For now, don't strengthen param "trial", which requires
464 adding checked casts when returning it.
465
466 2014-08-21 David Malcolm <dmalcolm@redhat.com>
467
468 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
469 "label" from rtx to rtx_code_label *. Strengthen param 1 of
470 "var_location" hook from rtx to rtx_insn *.
471 (debug_nothing_rtx): Delete in favor of...
472 (debug_nothing_rtx_code_label): New prototype.
473 (debug_nothing_rtx_rtx): Delete unused prototype.
474 (debug_nothing_rtx_insn): New prototype.
475
476 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
477 invoking debug_hooks->var_location (in two places, one in a NOTE
478 case of a switch statement, the other guarded by a CALL_P
479 conditional. Add checked cast to rtx_code_label * when invoking
480 debug_hooks->label (within CODE_LABEL case of switch statement).
481
482 * dbxout.c (dbx_debug_hooks): Update "label" hook from
483 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
484 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
485 (xcoff_debug_hooks): Likewise.
486 * debug.c (do_nothing_debug_hooks): Likewise.
487 (debug_nothing_rtx): Delete in favor of...
488 (debug_nothing_rtx_insn): New function.
489 (debug_nothing_rtx_rtx): Delete unused function.
490 (debug_nothing_rtx_code_label): New function.
491 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
492 debug_nothing_rtx to debug_nothing_rtx_code_label.
493 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
494 to rtx_insn *.
495 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
496 debug_nothing_rtx to debug_nothing_rtx_insn.
497 (sdbout_label): Strengthen param "insn" from rtx to
498 rtx_code_label *.
499 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
500 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
501 "var_location" hook from debug_nothing_rtx to
502 debug_nothing_rtx_insn.
503
504 2014-08-21 David Malcolm <dmalcolm@redhat.com>
505
506 * recog.h (insn_output_fn): Update this function typedef to match
507 the changes below to the generated output functions, strengthening
508 the 2nd param from rtx to rtx_insn *.
509
510 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
511 insn when invoking an output function, to match the new signature
512 of insn_output_fn with a stronger second param.
513
514 * genconditions.c (write_header): In the generated code for
515 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
516 to match the other changes in this patch.
517
518 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
519 the generated "gen_" functions from rtx to rtx_insn * within their
520 implementations.
521
522 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
523 the subfunctions within the generated "recog_", "split", "peephole2"
524 function trees from rtx to rtx_insn *. For now, the top-level
525 generated functions ("recog", "split", "peephole2") continue to
526 take a plain rtx for "insn", to avoid introducing dependencies on
527 other patches. Rename this 2nd param from "insn" to
528 "uncast_insn", and reintroduce "insn" as a local variable of type
529 rtx_insn *, initialized at the top of the generated function with
530 a checked cast on "uncast_insn".
531 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
532 the generated "gen_" functions from rtx to rtx_insn * within their
533 prototypes.
534
535 * genoutput.c (process_template): Strengthen the 2nd param within
536 the generated "output_" functions "insn" from rtx to rtx_insn *.
537
538 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
539
540 * tree-profile.c (tree_profiling): Skip external functions
541 when doing coverage instrumentation.
542 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
543
544 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
545
546 * config/rs6000/altivec.h (vec_cpsgn): New #define.
547 (vec_mergee): Likewise.
548 (vec_mergeo): Likewise.
549 (vec_cntlz): Likewise.
550 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
551 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
552 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
553 VMRGEW, and VMRGOW.
554 * doc/extend.texi: Document various forms of vec_cpsgn,
555 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
556 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
557 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
558 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
559 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
560
561 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
562
563 * config/rs6000/rs6000.c (context.h): New include.
564 (tree-pass.h): Likewise.
565 (make_pass_analyze_swaps): New decl.
566 (rs6000_option_override): Register pass_analyze_swaps.
567 (swap_web_entry): New subsclass of web_entry_base (df.h).
568 (special_handling_values): New enum.
569 (union_defs): New function.
570 (union_uses): Likewise.
571 (insn_is_load_p): Likewise.
572 (insn_is_store_p): Likewise.
573 (insn_is_swap_p): Likewise.
574 (rtx_is_swappable_p): Likewise.
575 (insn_is_swappable_p): Likewise.
576 (chain_purpose): New enum.
577 (chain_contains_only_swaps): New function.
578 (mark_swaps_for_removal): Likewise.
579 (swap_const_vector_halves): Likewise.
580 (adjust_subreg_index): Likewise.
581 (permute_load): Likewise.
582 (permute_store): Likewise.
583 (handle_special_swappables): Likewise.
584 (replace_swap_with_copy): Likewise.
585 (dump_swap_insn_table): Likewise.
586 (rs6000_analyze_swaps): Likewise.
587 (pass_data_analyze_swaps): New pass_data.
588 (pass_analyze_swaps): New rtl_opt_pass.
589 (make_pass_analyze_swaps): New function.
590 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
591
592 2014-08-21 David Malcolm <dmalcolm@redhat.com>
593
594 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
595 type from rtx to rtx_insn *.
596 (create_copy_of_insn_rtx): Likewise.
597 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
598 (create_copy_of_insn_rtx): Likewise, also for local "res".
599
600 2014-08-21 David Malcolm <dmalcolm@redhat.com>
601
602 * rtl.h (find_first_parameter_load): Strengthen return type from
603 rtx to rtx_insn *.
604 * rtlanal.c (find_first_parameter_load): Strengthen return type
605 from rtx to rtx_insn *. Add checked cast for now, to postpone
606 strengthening the params.
607
608 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
609
610 PR fortran/44054
611 * diagnostic.c: Set default caret.
612 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
613 line is needed.
614 * diagnostic.h (struct diagnostic_context):
615
616 2014-08-21 David Malcolm <dmalcolm@redhat.com>
617
618 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
619 (sel_bb_head): Strengthen return type insn_t (currently just an
620 rtx) to rtx_insn *.
621 (sel_bb_end): Likewise.
622
623 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
624 (sel_bb_head): Strengthen return type and local "head" from
625 insn_t (currently just an rtx) to rtx_insn *.
626 (sel_bb_end): Likewise for return type.
627 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
628 working with insn.
629
630 2014-08-21 David Malcolm <dmalcolm@redhat.com>
631
632 * basic-block.h (get_last_bb_insn): Strengthen return type from
633 rtx to rtx_insn *.
634 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
635 end".
636
637 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
638
639 PR fortran/44054
640 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
641 to here ...
642 (diagnostic_report_diagnostic): ... from here.
643 * toplev.c (general_init): Move code to c-family.
644
645 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
646
647 * df.h (web_entry_base): Replace existing struct web_entry with a
648 new class web_entry_base with only the predecessor member.
649 (unionfind_root): Remove declaration and move to class member.
650 (unionfind_union): Remove declaration and move to friend
651 function.
652 (union_defs): Remove declaration.
653 * web.c (web_entry_base::unionfind_root): Modify to be member
654 function and adjust accessors.
655 (unionfind_union): Modify to be friend function and adjust
656 accessors.
657 (web_entry): New subclass of web_entry_base containing the reg
658 member.
659 (union_match_dups): Modify for struct -> class changes.
660 (union_defs): Likewise.
661 (entry_register): Likewise.
662 (pass_web::execute): Likewise.
663
664 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
665
666 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
667 builtin define __VEC_ELEMENT_REG_ORDER__.
668
669 2014-08-20 Martin Jambor <mjambor@suse.cz>
670 Wei Mi <wmi@google.com>
671
672 PR ipa/60449
673 PR middle-end/61776
674 * tree-ssa-operands.c (update_stmt_operands): Remove
675 MODIFIED_NORETURN_CALLS.
676 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
677 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
678 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
679 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
680 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
681 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
682 (gimple_call_set_ctrl_altering): New func.
683 (gimple_call_ctrl_altering_p): Ditto.
684 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
685 (make_blocks): Use gimple_call_initialize_ctrl_altering.
686 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
687 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
688 remove MODIFIED_NORETURN_CALLS.
689
690 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
691
692 * coverage.c (coverage_compute_profile_id): Return non-0;
693 also handle symbols with unique name.
694 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
695
696 2014-08-20 Steve Ellcey <sellcey@mips.com>
697
698 PR middle-end/49191
699 * doc/sourcebuild.texi (non_strict_align): New.
700
701 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
702
703 * cgraphunit.c (ipa_passes, compile): Reshedule
704 symtab_remove_unreachable_nodes passes; update comments.
705 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
706 TODO_remove_functions before the pass; the functions ought to be
707 already removed.
708 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
709 TODO_remove_functions.
710 * passes.c (pass_data_early_local_passes): Do not schedule function
711 removal.
712 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
713
714 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
715
716 PR c/59304
717 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
718 before setting the option.
719 * diagnostic.c (diagnostic_classify_diagnostic): Record
720 command-line status.
721
722 2014-08-20 Richard Biener <rguenther@suse.de>
723
724 PR lto/62190
725 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
726 to build uint{16,32,64}_type_node.
727
728 2014-08-20 Terry Guo <terry.guo@arm.com>
729
730 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
731 with immediate_operand.
732
733 2014-08-20 David Malcolm <dmalcolm@redhat.com>
734
735 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
736 "insn" from an as_a to a safe_as_a, for the case when "insn" is
737 NULL.
738
739 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
740
741 PR preprocessor/51303
742 * incpath.c (remove_duplicates): Use cpp_warning.
743
744 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
745
746 PR c/60975
747 PR c/53063
748 * doc/options.texi (CPP): Document it.
749 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
750 * optc-gen.awk: Handle CPP.
751 * opth-gen.awk: Likewise.
752
753 2014-08-19 David Malcolm <dmalcolm@redhat.com>
754
755 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
756 rtx_insn *.
757 (duplicate_insn_chain): Likewise.
758 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
759 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
760 checked cast for now (until we can strengthen the params in the
761 same way).
762 (duplicate_insn_chain): Likewise.
763
764 2014-08-19 David Malcolm <dmalcolm@redhat.com>
765
766 * rtl.h (next_cc0_user): Strengthen return type from rtx to
767 rtx_insn *.
768 (prev_cc0_setter): Likewise.
769
770 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
771 rtx_insn *, adding checked casts for now as necessary.
772 (prev_cc0_setter): Likewise.
773
774 2014-08-19 David Malcolm <dmalcolm@redhat.com>
775
776 * expr.h (emit_move_insn): Strengthen return type from rtx to
777 rtx_insn *.
778 (emit_move_insn_1): Likewise.
779 (emit_move_complex_push): Likewise.
780 (emit_move_complex_parts): Likewise.
781
782 * expr.c (emit_move_via_integer): Strengthen return type from rtx
783 to rtx_insn *. Replace use of NULL_RTX with NULL when working
784 with insns.
785 (emit_move_complex_push): Strengthen return type from rtx to
786 rtx_insn *.
787 (emit_move_complex): Likewise, also for local "ret".
788 (emit_move_ccmode): Likewise.
789 (emit_move_multi_word): Likewise for return type and locals
790 "last_insn", "seq".
791 (emit_move_insn_1): Likewise for return type and locals "result",
792 "ret".
793 (emit_move_insn): Likewise for return type and local "last_insn".
794 (compress_float_constant): Likewise.
795
796 2014-08-19 David Malcolm <dmalcolm@redhat.com>
797
798 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
799 from rtx to rtx_insn *.
800
801 * rtl.h (emit_insn_before): Likewise.
802 (emit_insn_before_noloc): Likewise.
803 (emit_insn_before_setloc): Likewise.
804 (emit_jump_insn_before): Likewise.
805 (emit_jump_insn_before_noloc): Likewise.
806 (emit_jump_insn_before_setloc): Likewise.
807 (emit_call_insn_before): Likewise.
808 (emit_call_insn_before_noloc): Likewise.
809 (emit_call_insn_before_setloc): Likewise.
810 (emit_debug_insn_before): Likewise.
811 (emit_debug_insn_before_noloc): Likewise.
812 (emit_debug_insn_before_setloc): Likewise.
813 (emit_label_before): Likewise.
814 (emit_insn_after): Likewise.
815 (emit_insn_after_noloc): Likewise.
816 (emit_insn_after_setloc): Likewise.
817 (emit_jump_insn_after): Likewise.
818 (emit_jump_insn_after_noloc): Likewise.
819 (emit_jump_insn_after_setloc): Likewise.
820 (emit_call_insn_after): Likewise.
821 (emit_call_insn_after_noloc): Likewise.
822 (emit_call_insn_after_setloc): Likewise.
823 (emit_debug_insn_after): Likewise.
824 (emit_debug_insn_after_noloc): Likewise.
825 (emit_debug_insn_after_setloc): Likewise.
826 (emit_label_after): Likewise.
827 (emit_insn): Likewise.
828 (emit_debug_insn): Likewise.
829 (emit_jump_insn): Likewise.
830 (emit_call_insn): Likewise.
831 (emit_label): Likewise.
832 (gen_clobber): Likewise.
833 (emit_clobber): Likewise.
834 (gen_use): Likewise.
835 (emit_use): Likewise.
836 (emit): Likewise.
837
838 (emit_barrier_before): Strengthen return type from rtx to
839 rtx_barrier *.
840 (emit_barrier_after): Likewise.
841 (emit_barrier): Likewise.
842
843 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
844 from rtx to rtx_insn *. Add checked casts for now when converting
845 "last" from rtx to rtx_insn *.
846 (emit_insn_before_noloc): Likewise for return type.
847 (emit_jump_insn_before_noloc): Likewise.
848 (emit_call_insn_before_noloc): Likewise.
849 (emit_debug_insn_before_noloc): Likewise.
850 (emit_barrier_before): Strengthen return type and local "insn"
851 from rtx to rtx_barrier *.
852 (emit_label_before): Strengthen return type from rtx to
853 rtx_insn *. Add checked cast for now when returning param
854 (emit_pattern_after_noloc): Strengthen return type from rtx to
855 rtx_insn *. Add checked casts for now when converting "last" from
856 rtx to rtx_insn *.
857 (emit_insn_after_noloc): Strengthen return type from rtx to
858 rtx_insn *.
859 (emit_jump_insn_after_noloc): Likewise.
860 (emit_call_insn_after_noloc): Likewise.
861 (emit_debug_insn_after_noloc): Likewise.
862 (emit_barrier_after): Strengthen return type from rtx to
863 rtx_barrier *.
864 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
865 Add checked cast for now when converting "label" from rtx to
866 rtx_insn *.
867 (emit_pattern_after_setloc): Strengthen return type from rtx to
868 rtx_insn *. Add checked casts for now when converting "last" from
869 rtx to rtx_insn *.
870 (emit_pattern_after): Strengthen return type from rtx to
871 rtx_insn *.
872 (emit_insn_after_setloc): Likewise.
873 (emit_insn_after): Likewise.
874 (emit_jump_insn_after_setloc): Likewise.
875 (emit_jump_insn_after): Likewise.
876 (emit_call_insn_after_setloc): Likewise.
877 (emit_call_insn_after): Likewise.
878 (emit_debug_insn_after_setloc): Likewise.
879 (emit_debug_insn_after): Likewise.
880 (emit_pattern_before_setloc): Likewise. Add checked casts for now
881 when converting "last" from rtx to rtx_insn *.
882 (emit_pattern_before): Strengthen return type from rtx to
883 rtx_insn *.
884 (emit_insn_before_setloc): Likewise.
885 (emit_insn_before): Likewise.
886 (emit_jump_insn_before_setloc): Likewise.
887 (emit_jump_insn_before): Likewise.
888 (emit_call_insn_before_setloc): Likewise.
889 (emit_call_insn_before): Likewise.
890 (emit_debug_insn_before_setloc): Likewise.
891 (emit_debug_insn_before): Likewise.
892 (emit_insn): Strengthen return type and locals "last", "insn",
893 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
894 within cases where we know we have an insn.
895 (emit_debug_insn): Likewise.
896 (emit_jump_insn): Likewise.
897 (emit_call_insn): Strengthen return type and local "insn" from rtx
898 to rtx_insn *.
899 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
900 a checked cast to rtx_insn * for now on "label".
901 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
902 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
903 (emit_use): Likewise.
904 (gen_use): Likewise, also for local "seq".
905 (emit): Likewise for return type and local "insn".
906 (rtx_insn): Likewise for return type and local "new_rtx".
907
908 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
909 from rtx to rtx_barrier *.
910
911 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
912 changed return type from rtx to rtx_insn *, we must update
913 "emit_fn" type, and this in turn means updating...
914 (frame_insn): ...this. Strengthen return type from rtx to
915 rtx_insn *. Introduce a new local "insn" of the appropriate type.
916
917 2014-08-19 David Malcolm <dmalcolm@redhat.com>
918
919 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
920 rtx to rtx_jump_table_data *. Also for local.
921 * rtl.h (emit_jump_table_data): Likewise.
922
923 2014-08-19 David Malcolm <dmalcolm@redhat.com>
924
925 * basic-block.h (create_basic_block_structure): Strengthen third
926 param "bb_note" from rtx to rtx_note *.
927 * rtl.h (emit_note_before): Strengthen return type from rtx to
928 rtx_note *.
929 (emit_note_after): Likewise.
930 (emit_note): Likewise.
931 (emit_note_copy): Likewise. Also, strengthen param similarly.
932 * function.h (struct rtl_data): Strengthen field
933 "x_stack_check_probe_note" from rtx to rtx_note *.
934
935 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
936 from rtx to rtx_note *.
937 * cfgrtl.c (create_basic_block_structure): Strengthen third param
938 "bb_note" from rtx to rtx_note *.
939 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
940 when calling emit_note_copy.
941 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
942 rtx_note *.
943 (emit_note_after): Likewise.
944 (emit_note_before): Likewise.
945 (emit_note_copy): Likewise. Also, strengthen param similarly.
946 (emit_note): Likewise.
947 * except.c (emit_note_eh_region_end): Likewise for return type.
948 Strengthen local "next" from rtx to rtx_insn *.
949 (convert_to_eh_region_ranges): Strengthen local "note"
950 from rtx to rtx_note *.
951 * final.c (change_scope): Likewise.
952 (reemit_insn_block_notes): Likewise, for both locals named "note".
953 Also, strengthen local "insn" from rtx to rtx_insn *.
954 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
955 rtx to rtx_note *.
956 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
957 strengthen local "seq" from rtx to rtx_insn *.
958 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
959 to rtx_note *.
960 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
961 vec<rtx_note *>.
962 (get_bb_note_from_pool): Strengthen return type from rtx to
963 rtx_note *.
964 (sel_create_basic_block): Strengthen local "new_bb_note" from
965 insn_t to rtx_note *.
966 * var-tracking.c (emit_note_insn_var_location): Strengthen local
967 "note" from rtx to rtx_note *.
968 (emit_notes_in_bb): Likewise.
969
970 2014-08-19 David Malcolm <dmalcolm@redhat.com>
971
972 * function.h (struct rtl_data): Strengthen field
973 "x_parm_birth_insn" from rtx to rtx_insn *.
974 * function.c (struct assign_parm_data_all): Strengthen fields
975 "first_conversion_insn" and "last_conversion_insn" from rtx to
976 rtx_insn *.
977
978 2014-08-19 David Malcolm <dmalcolm@redhat.com>
979
980 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
981 to rtx_insn *; also for local "var_end_seq".
982 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
983 (maybe_cleanup_end_of_block): Likewise for param "last" and local
984 "insn".
985 (expand_gimple_cond): Likewise for locals "last2" and "last".
986 (mark_transaction_restart_calls): Likewise for local "insn".
987 (expand_gimple_stmt): Likewise for return type and locals "last"
988 and "insn".
989 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
990 (avoid_complex_debug_insns): Likewise for param "insn".
991 (expand_debug_locations): Likewise for locals "insn", "last",
992 "prev_insn" and "insn2".
993 (expand_gimple_basic_block): Likewise for local "last".
994 (construct_exit_block): Likewise for locals "head", "end",
995 "orig_end".
996 (pass_expand::execute): Likewise for locals "var_seq",
997 "var_ret_seq", "next".
998
999 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1000
1001 * asan.h (asan_emit_stack_protection): Strengthen return type from
1002 rtx to rtx_insn *.
1003 * asan.c (asan_emit_stack_protection): Likewise. Add local
1004 "insns" to hold the return value.
1005
1006 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1007
1008 * basic-block.h (bb_note): Strengthen return type from rtx to
1009 rtx_note *.
1010 * sched-int.h (bb_note): Likewise.
1011 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
1012
1013 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1014
1015 * rtl.h (make_insn_raw): Strengthen return type from rtx to
1016 rtx_insn *.
1017
1018 * emit-rtl.c (make_insn_raw): Strengthen return type and local
1019 "insn" from rtx to rtx_insn *.
1020 (make_debug_insn_raw): Strengthen return type from rtx to
1021 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
1022 (make_jump_insn_raw): Strengthen return type from rtx to
1023 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
1024 (make_call_insn_raw): Strengthen return type from rtx to
1025 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
1026 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
1027 callback from rtx to rtx_insn *; likewise for local "insn" and
1028 "next", adding a checked cast to rtx_insn in the relevant cases of
1029 the switch statement.
1030 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
1031 callback from rtx to rtx_insn *.
1032 (emit_pattern_after_setloc): Likewise.
1033 (emit_pattern_after): Likewise.
1034 (emit_pattern_before_setloc): Likewise.
1035 (emit_pattern_before): Likewise.
1036
1037 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1038
1039 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
1040 rtx_call_insn *.
1041 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
1042 accepting an rtx_insn *.
1043 (last_call_insn): Strengthen return type from rtx to
1044 rtx_call_insn *.
1045
1046 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1047
1048 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
1049 "insns" from rtx to rtx_insn *.
1050 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
1051 locals "insn" and "prev".
1052
1053 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1054
1055 * rtl.h (tablejump_p): Strengthen third param from rtx * to
1056 rtx_jump_table_data **.
1057
1058 * cfgbuild.c (make_edges): Introduce local "table", using it in
1059 place of "tmp" for jump table data.
1060 (find_bb_boundaries): Strengthen local "table" from rtx to
1061 rtx_jump_table_data *.
1062 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1063 (outgoing_edges_match): Likewise for locals "table1" and "table2".
1064 (try_crossjump_to_edge): Likewise.
1065 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
1066 "table".
1067 (patch_jump_insn): Introduce local "table", using it in place of
1068 "tmp" for jump table data.
1069 (force_nonfallthru_and_redirect): Introduce local "table", so that
1070 call to tablejump_p can receive an rtx_jump_table_data **. Update
1071 logic around the call to overwrite "note" appropriately if
1072 tablejump_p returns non-zero.
1073 (get_last_bb_insn): Introduce local "table", using it in place of
1074 "tmp" for jump table data.
1075 * dwarf2cfi.c (create_trace_edges): Likewise.
1076
1077 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
1078 from rtx to rtx_jump_table_data *.
1079 (create_fix_barrier): Strengthen local "tmp" from rtx to
1080 rtx_jump_table_data *.
1081 (arm_reorg): Likewise for local "table".
1082
1083 * config/s390/s390.c (s390_chunkify_start): Likewise.
1084
1085 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
1086
1087 * jump.c (delete_related_insns): Strengthen local "lab_next" from
1088 rtx to rtx_jump_table_data *.
1089
1090 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
1091 rtx_jump_table_data **. Add a checked cast when writing through
1092 the pointer: we know there that local "table" is non-NULL and that
1093 JUMP_TABLE_DATA_P (table) holds.
1094 (label_is_jump_target_p): Introduce local "table", using it in
1095 place of "tmp" for jump table data.
1096
1097 2014-08-19 Marek Polacek <polacek@redhat.com>
1098
1099 PR c++/62153
1100 * doc/invoke.texi: Document -Wbool-compare.
1101
1102 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1103
1104 * rtl.h (entry_of_function): Strengthen return type from rtx to
1105 rtx_insn *.
1106 * cfgrtl.c (entry_of_function): Likewise.
1107
1108 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1109
1110 * emit-rtl.h (get_insns): Strengthen return type from rtx to
1111 rtx_insn *, adding a checked cast for now.
1112 (get_last_insn): Likewise.
1113
1114 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1115
1116 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
1117 rtx_code_label *.
1118
1119 * emit-rtl.c (gen_label_rtx): Likewise.
1120
1121 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1122
1123 * rtl.h (previous_insn): Strengthen return type from rtx to
1124 rtx_insn *.
1125 (next_insn): Likewise.
1126 (prev_nonnote_insn): Likewise.
1127 (prev_nonnote_insn_bb): Likewise.
1128 (next_nonnote_insn): Likewise.
1129 (next_nonnote_insn_bb): Likewise.
1130 (prev_nondebug_insn): Likewise.
1131 (next_nondebug_insn): Likewise.
1132 (prev_nonnote_nondebug_insn): Likewise.
1133 (next_nonnote_nondebug_insn): Likewise.
1134 (prev_real_insn): Likewise.
1135 (next_real_insn): Likewise.
1136 (prev_active_insn): Likewise.
1137 (next_active_insn): Likewise.
1138
1139 * emit-rtl.c (next_insn): Strengthen return type from rtx to
1140 rtx_insn *, adding a checked cast.
1141 (previous_insn): Likewise.
1142 (next_nonnote_insn): Likewise.
1143 (next_nonnote_insn_bb): Likewise.
1144 (prev_nonnote_insn): Likewise.
1145 (prev_nonnote_insn_bb): Likewise.
1146 (next_nondebug_insn): Likewise.
1147 (prev_nondebug_insn): Likewise.
1148 (next_nonnote_nondebug_insn): Likewise.
1149 (prev_nonnote_nondebug_insn): Likewise.
1150 (next_real_insn): Likewise.
1151 (prev_real_insn): Likewise.
1152 (next_active_insn): Likewise.
1153 (prev_active_insn): Likewise.
1154
1155 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
1156 param "stepfunc" so that it returns an rtx_insn * rather than an
1157 rtx, to track the change to prev_nonnote_insn_bb, which is the
1158 only function this is called with.
1159 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
1160
1161 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
1162
1163 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
1164 assert.
1165
1166 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1167
1168 * coretypes.h (class rtx_debug_insn): Add forward declaration.
1169 (class rtx_nonjump_insn): Likewise.
1170 (class rtx_jump_insn): Likewise.
1171 (class rtx_call_insn): Likewise.
1172 (class rtx_jump_table_data): Likewise.
1173 (class rtx_barrier): Likewise.
1174 (class rtx_code_label): Likewise.
1175 (class rtx_note): Likewise.
1176
1177 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
1178 adding the invariant DEBUG_INSN_P (X).
1179 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
1180 the invariant NONJUMP_INSN_P (X).
1181 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
1182 the invariant JUMP_P (X).
1183 (class rtx_call_insn): New, a subclass of rtx_insn, adding
1184 the invariant CALL_P (X).
1185 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
1186 invariant JUMP_TABLE_DATA_P (X).
1187 (class rtx_barrier): New, a subclass of rtx_insn, adding the
1188 invariant BARRIER_P (X).
1189 (class rtx_code_label): New, a subclass of rtx_insn, adding
1190 the invariant LABEL_P (X).
1191 (class rtx_note): New, a subclass of rtx_insn, adding
1192 the invariant NOTE_P(X).
1193 (is_a_helper <rtx_debug_insn *>::test): New.
1194 (is_a_helper <rtx_nonjump_insn *>::test): New.
1195 (is_a_helper <rtx_jump_insn *>::test): New.
1196 (is_a_helper <rtx_call_insn *>::test): New.
1197 (is_a_helper <rtx_jump_table_data *>::test): New functions,
1198 overloaded for both rtx and rtx_insn *.
1199 (is_a_helper <rtx_barrier *>::test): New.
1200 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
1201 for both rtx and rtx_insn *.
1202 (is_a_helper <rtx_note *>::test): New.
1203
1204 2014-08-19 Marek Polacek <polacek@redhat.com>
1205
1206 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
1207 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
1208 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
1209 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
1210
1211 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1212
1213 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
1214 rtx_insn *. To help with transition, for now, convert from an
1215 access macro into a pair of functions: BND_TO, returning an
1216 rtx_insn *, and...
1217 (SET_BND_TO): New function, for use where BND_TO is used as an
1218 lvalue.
1219
1220 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
1221 SET_BND_TO.
1222 (BND_TO): New function, adding a checked cast.
1223 (SET_BND_TO): New function.
1224
1225 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
1226 SET_BND_TO.
1227 (compute_av_set_on_boundaries): Likewise.
1228
1229 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
1230
1231 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
1232 destination if it is used in source.
1233 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
1234 (*popcount<mode>2_falsedep_1): Likewise.
1235
1236 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
1237
1238 PR other/62168
1239 * configure.ac: Set install_gold_as_default to no first.
1240 * configure: Regenerated.
1241
1242 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1243
1244 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
1245 "note_list" field will eventually be an rtx_insn *. To help with
1246 transition, for now, convert from an access macro into a pair of
1247 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
1248 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
1249 used as an lvalue.
1250
1251 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
1252 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
1253
1254 * sel-sched-ir.c (init_bb): Likewise.
1255 (sel_restore_notes): Likewise.
1256 (move_bb_info): Likewise.
1257 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
1258 (SET_BB_NOTE_LIST): New function.
1259
1260 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1261
1262 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
1263 field will eventually be an rtx_insn *. To help with transition,
1264 for now, convert from an access macro into a pair of functions:
1265 VINSN_INSN_RTX, returning an rtx_insn *, and...
1266 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
1267 is used as an lvalue.
1268
1269 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
1270 SET_VINSN_INSN_RTX where it's used as an lvalue.
1271 (VINSN_INSN_RTX): New function.
1272 (SET_VINSN_INSN_RTX): New function.
1273
1274 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1275
1276 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
1277 eventually be rtx_insn *, but to help with transition, for now,
1278 convert from an access macro into a pair of functions: DEP_PRO
1279 returning an rtx_insn * and...
1280 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
1281 lvalue, returning an rtx&.
1282 (DEP_CON): Analogous changes to DEP_PRO above.
1283 (SET_DEP_CON): Likewise.
1284
1285 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
1286 an lvalue to SET_DEP_CON.
1287 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
1288 (sd_copy_back_deps): Likewise for DEP_CON.
1289 (DEP_PRO): New function, adding a checked cast for now.
1290 (DEP_CON): Likewise.
1291 (SET_DEP_PRO): New function.
1292 (SET_DEP_CON): Likewise.
1293
1294 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
1295
1296 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
1297 (extra_options): Add i386/cygwin.opt.
1298 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
1299 (CPP_SPEC): Accept -pthread.
1300 (LINK_SPEC): Ditto.
1301 (GOMP_SELF_SPECS): Update comment.
1302 * config/i386/cygwin.opt: New file for -pthread flag.
1303
1304 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1305
1306 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
1307 * df.h (DF_REF_INSN): Convert from a macro to a function, so
1308 that we can return an rtx_insn *.
1309
1310 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
1311
1312 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
1313 when building executables, not DLLs. Add --large-address-aware
1314 under the same conditions.
1315 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
1316 when building executables, not DLLs. Add --large-address-aware
1317 under the same conditions when using -m32.
1318
1319 * config/i386/cygwin-stdint.h: Throughout, make type
1320 definitions dependent on target architecture, not host.
1321
1322 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1323
1324 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
1325 the return type from rtx to rtx_insn *, which will enable various
1326 conversions in followup patches. For now this is is done by a
1327 checked cast.
1328 (NEXT_INSN): Likewise.
1329 (SET_PREV_INSN): Convert to an inline function. This is intended
1330 for use as an lvalue, and so returns an rtx& to allow in-place
1331 modification.
1332 (SET_NEXT_INSN): Likewise.
1333
1334 2014-07-08 Mark Wielaard <mjw@redhat.com>
1335
1336 PR debug/59051
1337 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
1338
1339 2014-08-19 Marek Polacek <polacek@redhat.com>
1340
1341 PR c/61271
1342 * cgraphunit.c (handle_alias_pairs): Fix condition.
1343
1344 2014-08-19 Richard Biener <rguenther@suse.de>
1345
1346 * gimple-fold.c (fold_gimple_assign): Properly build a
1347 null-pointer constant when devirtualizing addresses.
1348
1349 2014-07-07 Mark Wielaard <mjw@redhat.com>
1350
1351 * dwarf2out.c (decl_quals): New function.
1352 (modified_type_die): Take one cv_quals argument instead of two,
1353 one for const and one for volatile.
1354 (add_type_attribute): Likewise.
1355 (generic_parameter_die): Call add_type_attribute with one modifier
1356 argument.
1357 (base_type_for_mode): Likewise.
1358 (add_bounds_info): Likewise.
1359 (add_subscript_info): Likewise.
1360 (gen_array_type_die): Likewise.
1361 (gen_descr_array_type_die): Likewise.
1362 (gen_entry_point_die): Likewise.
1363 (gen_enumeration_type_die): Likewise.
1364 (gen_formal_parameter_die): Likewise.
1365 (gen_subprogram_die): Likewise.
1366 (gen_variable_die): Likewise.
1367 (gen_const_die): Likewise.
1368 (gen_field_die): Likewise.
1369 (gen_pointer_type_die): Likewise.
1370 (gen_reference_type_die): Likewise.
1371 (gen_ptr_to_mbr_type_die): Likewise.
1372 (gen_inheritance_die): Likewise.
1373 (gen_subroutine_type_die): Likewise.
1374 (gen_typedef_die): Likewise.
1375 (force_type_die): Likewise.
1376
1377 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1378
1379 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
1380 if unset.
1381 * configure: Regenerate.
1382
1383 2014-08-19 Richard Biener <rguenther@suse.de>
1384
1385 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
1386 DECL_EXTERNALs in BLOCKs as non-references.
1387 * tree-streamer-out.c (streamer_write_chain): Likewise.
1388
1389 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
1390 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1391 Anna Tikhonova <anna.tikhonova@intel.com>
1392 Ilya Tocar <ilya.tocar@intel.com>
1393 Andrey Turetskiy <andrey.turetskiy@intel.com>
1394 Ilya Verbin <ilya.verbin@intel.com>
1395 Kirill Yukhin <kirill.yukhin@intel.com>
1396 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1397
1398 * config/i386/sse.md
1399 (define_mode_iterator VI48_AVX512F): Delete.
1400 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
1401 (define_mode_iterator VI2_AVX512VL): Ditto.
1402 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
1403 Delete.
1404 (define_insn
1405 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
1406 New.
1407 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
1408 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
1409 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1410 with VI48_AVX512F_AVX512VL): New.
1411 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
1412 with VI2_AVX512VL): Ditto.
1413
1414 2014-08-19 Marek Polacek <polacek@redhat.com>
1415
1416 * doc/invoke.texi: Document -Wc99-c11-compat.
1417
1418 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1419
1420 * rtl.h (PREV_INSN): Split macro in two: the existing one,
1421 for rvalues, and...
1422 (SET_PREV_INSN): New macro, for use as an lvalue.
1423 (NEXT_INSN, SET_NEXT_INSN): Likewise.
1424
1425 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
1426 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
1427 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1428 (fixup_abnormal_edges): Likewise.
1429 (unlink_insn_chain): Likewise.
1430 (fixup_reorder_chain): Likewise.
1431 (cfg_layout_delete_block): Likewise.
1432 (cfg_layout_merge_blocks): Likewise.
1433 * combine.c (update_cfg_for_uncondjump): Likewise.
1434 * emit-rtl.c (link_insn_into_chain): Likewise.
1435 (remove_insn): Likewise.
1436 (delete_insns_since): Likewise.
1437 (reorder_insns_nobb): Likewise.
1438 (emit_insn_after_1): Likewise.
1439 * final.c (rest_of_clean_state): Likewise.
1440 (final_scan_insn): Likewise.
1441 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
1442 * haifa-sched.c (concat_note_lists): Likewise.
1443 (remove_notes): Likewise.
1444 (restore_other_notes): Likewise.
1445 (move_insn): Likewise.
1446 (unlink_bb_notes): Likewise.
1447 (restore_bb_notes): Likewise.
1448 * jump.c (delete_for_peephole): Likewise.
1449 * optabs.c (emit_libcall_block_1): Likewise.
1450 * reorg.c (emit_delay_sequence): Likewise.
1451 (fill_simple_delay_slots): Likewise.
1452 * sel-sched-ir.c (sel_move_insn): Likewise.
1453 (sel_remove_insn): Likewise.
1454 (get_bb_note_from_pool): Likewise.
1455 * sel-sched.c (move_nop_to_previous_block): Likewise.
1456
1457 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
1458 * config/c6x/c6x.c (gen_one_bundle): Likewise.
1459 (c6x_gen_bundles): Likewise.
1460 (hwloop_optimize): Likewise.
1461 * config/frv/frv.c (frv_function_prologue): Likewise.
1462 (frv_register_nop): Likewise.
1463 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
1464 (ia64_reorg): Likewise.
1465 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
1466 (mep_make_bundle): Likewise.
1467 (mep_bundle_insns): Likewise.
1468 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
1469 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
1470 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
1471
1472 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1473
1474 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
1475 return type from rtx to rtx_insn *.
1476 (BB_END): Likewise.
1477 (BB_HEADER): Likewise.
1478 (BB_FOOTER): Likewise.
1479 (SET_BB_HEAD): Convert to a function.
1480 (SET_BB_END): Likewise.
1481 (SET_BB_HEADER): Likewise.
1482 (SET_BB_FOOTER): Likewise.
1483
1484 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
1485 Strengthen the return type from rtx to rtx_insn *. For now, this
1486 is done by adding a checked cast, but this will eventually
1487 become a field lookup.
1488 (BB_END): Likewise.
1489 (BB_HEADER): Likewise.
1490 (BB_FOOTER): Likewise.
1491 (SET_BB_HEAD): New function, from macro of same name. This is
1492 intended for use as an lvalue, and so returns an rtx& to allow
1493 in-place modification.
1494 (SET_BB_END): Likewise.
1495 (SET_BB_HEADER): Likewise.
1496 (SET_BB_FOOTER): Likewise.
1497
1498 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1499
1500 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
1501 for rvalues, and...
1502 (SET_BB_HEAD): New macro, for use as a lvalue.
1503 (BB_END, SET_BB_END): Likewise.
1504 (BB_HEADER, SET_BB_HEADER): Likewise.
1505 (BB_FOOTER, SET_BB_FOOTER): Likewise.
1506
1507 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
1508 of BB_* macros into SET_BB_* macros.
1509 (fix_crossing_unconditional_branches): Likewise.
1510 * caller-save.c (save_call_clobbered_regs): Likewise.
1511 (insert_one_insn): Likewise.
1512 * cfgbuild.c (find_bb_boundaries): Likewise.
1513 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1514 (outgoing_edges_match): Likewise.
1515 (try_optimize_cfg): Likewise.
1516 * cfgexpand.c (expand_gimple_cond): Likewise.
1517 (expand_gimple_tailcall): Likewise.
1518 (expand_gimple_basic_block): Likewise.
1519 (construct_exit_block): Likewise.
1520 * cfgrtl.c (delete_insn): Likewise.
1521 (create_basic_block_structure): Likewise.
1522 (rtl_delete_block): Likewise.
1523 (rtl_split_block): Likewise.
1524 (emit_nop_for_unique_locus_between): Likewise.
1525 (rtl_merge_blocks): Likewise.
1526 (block_label): Likewise.
1527 (try_redirect_by_replacing_jump): Likewise.
1528 (emit_barrier_after_bb): Likewise.
1529 (fixup_abnormal_edges): Likewise.
1530 (record_effective_endpoints): Likewise.
1531 (relink_block_chain): Likewise.
1532 (fixup_reorder_chain): Likewise.
1533 (fixup_fallthru_exit_predecessor): Likewise.
1534 (cfg_layout_duplicate_bb): Likewise.
1535 (cfg_layout_split_block): Likewise.
1536 (cfg_layout_delete_block): Likewise.
1537 (cfg_layout_merge_blocks): Likewise.
1538 * combine.c (update_cfg_for_uncondjump): Likewise.
1539 * emit-rtl.c (add_insn_after): Likewise.
1540 (remove_insn): Likewise.
1541 (reorder_insns): Likewise.
1542 (emit_insn_after_1): Likewise.
1543 * haifa-sched.c (get_ebb_head_tail): Likewise.
1544 (restore_other_notes): Likewise.
1545 (move_insn): Likewise.
1546 (sched_extend_bb): Likewise.
1547 (fix_jump_move): Likewise.
1548 * ifcvt.c (noce_process_if_block): Likewise.
1549 (dead_or_predicable): Likewise.
1550 * ira.c (update_equiv_regs): Likewise.
1551 * reg-stack.c (change_stack): Likewise.
1552 * sel-sched-ir.c (sel_move_insn): Likewise.
1553 * sel-sched.c (move_nop_to_previous_block): Likewise.
1554
1555 * config/c6x/c6x.c (hwloop_optimize): Likewise.
1556 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1557
1558 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1559
1560 * rtl.h (for_each_rtx_in_insn): New function.
1561 * rtlanal.c (for_each_rtx_in_insn): Likewise.
1562
1563 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1564
1565 * coretypes.h (class rtx_insn): Add forward declaration.
1566
1567 * rtl.h: Include is-a.h.
1568 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
1569 workaround to ensure gengtype knows inheritance is occurring,
1570 whilst continuing to use the pre-existing special-casing for
1571 rtx_def.
1572 (class rtx_insn): New subclass of rtx_def, adding the
1573 invariant that we're dealing with something we can sanely use
1574 INSN_UID, NEXT_INSN, PREV_INSN on.
1575 (is_a_helper <rtx_insn *>::test): New.
1576 (is_a_helper <const rtx_insn *>::test): New.
1577
1578 2014-08-18 David Malcolm <dmalcolm@redhat.com>
1579
1580 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
1581
1582 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1583
1584 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
1585 comdats as extern.
1586
1587 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
1588
1589 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
1590 to BUILT_IN_UNREACHABLE.
1591
1592 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
1593
1594 PR target/62011
1595 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
1596 New tune flag.
1597 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
1598 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
1599 (ffs<mode>2): Do not expand with tzcnt for
1600 TARGET_AVOID_FALSE_DEP_FOR_BMI.
1601 (ffssi2_no_cmove): Ditto.
1602 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
1603 (ctz<mode>2): New expander.
1604 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
1605 (*ctz<mode>2_falsedep): New insn.
1606 (*ctz<mode>2): Rename from ctz<mode>2.
1607 (clz<mode>2_lzcnt): New expander.
1608 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
1609 (*clz<mode>2_lzcnt_falsedep): New insn.
1610 (*clz<mode>2): Rename from ctz<mode>2.
1611 (popcount<mode>2): New expander.
1612 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
1613 (*popcount<mode>2_falsedep): New insn.
1614 (*popcount<mode>2): Rename from ctz<mode>2.
1615 (*popcount<mode>2_cmp): Remove.
1616 (*popcountsi2_cmp_zext): Ditto.
1617
1618 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
1619
1620 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
1621 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
1622 * config/microblaze/microblaze.h
1623 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
1624
1625 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
1626
1627 PR other/62168
1628 * configure.ac: Set install_gold_as_default to no for
1629 --enable-gold=no.
1630 * configure: Regenerated.
1631
1632 2014-08-18 Roman Gareev <gareevroman@gmail.com>
1633
1634 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
1635 * config.in: Add undef of HAVE_isl.
1636 * configure: Regenerate.
1637 * configure.ac: Add definition of HAVE_isl.
1638 * graphite-blocking.c: Add checking of HAVE_isl.
1639 * graphite-dependences.c: Likewise.
1640 * graphite-interchange.c: Likewise.
1641 * graphite-isl-ast-to-gimple.c: Likewise.
1642 * graphite-optimize-isl.c: Likewise.
1643 * graphite-poly.c: Likewise.
1644 * graphite-scop-detection.c: Likewise.
1645 * graphite-sese-to-poly.c: Likewise.
1646 * graphite.c: Likewise.
1647 * toplev.c: Replace the checking of HAVE_cloog with the checking
1648 of HAVE_isl.
1649
1650 2014-08-18 Richard Biener <rguenther@suse.de>
1651
1652 PR tree-optimization/62090
1653 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
1654 (fold_builtin_3): Do not fold snprintf.
1655 (fold_builtin_4): Likewise.
1656 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
1657 moved from builtins.c.
1658 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
1659 (gimple_fold_builtin): Do not fold sprintf here.
1660
1661 2014-08-18 Richard Biener <rguenther@suse.de>
1662
1663 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
1664 code to ...
1665 (maybe_canonicalize_mem_ref_addr): ... this function.
1666 (fold_stmt_1): Apply it here before all simplification.
1667
1668 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
1669
1670 PR ipa/61800
1671 * cgraph.h (cgraph_node::create_indirect_edge): Add
1672 compute_indirect_info param.
1673 * cgraph.c (cgraph_node::create_indirect_edge): Compute
1674 indirect_info only when it is required.
1675 * cgraphclones.c (cgraph_clone_edge): Do not recompute
1676 indirect_info fore cloned indirect edge.
1677
1678 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1679 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1680 Anna Tikhonova <anna.tikhonova@intel.com>
1681 Ilya Tocar <ilya.tocar@intel.com>
1682 Andrey Turetskiy <andrey.turetskiy@intel.com>
1683 Ilya Verbin <ilya.verbin@intel.com>
1684 Kirill Yukhin <kirill.yukhin@intel.com>
1685 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1686
1687 * config/i386/sse.md
1688 (define_mode_iterator VI8_AVX2_AVX512BW): New.
1689 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
1690
1691 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1692 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1693 Anna Tikhonova <anna.tikhonova@intel.com>
1694 Ilya Tocar <ilya.tocar@intel.com>
1695 Andrey Turetskiy <andrey.turetskiy@intel.com>
1696 Ilya Verbin <ilya.verbin@intel.com>
1697 Kirill Yukhin <kirill.yukhin@intel.com>
1698 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1699
1700 * config/i386/sse.md
1701 (define_mode_iterator VF1_AVX512VL): New.
1702 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
1703 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
1704 New.
1705
1706 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1707 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1708 Anna Tikhonova <anna.tikhonova@intel.com>
1709 Ilya Tocar <ilya.tocar@intel.com>
1710 Andrey Turetskiy <andrey.turetskiy@intel.com>
1711 Ilya Verbin <ilya.verbin@intel.com>
1712 Kirill Yukhin <kirill.yukhin@intel.com>
1713 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1714
1715 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
1716 * config/i386/i386.md
1717 (define_code_iterator any_float): New.
1718 (define_code_attr floatsuffix): New.
1719 * config/i386/sse.md
1720 (define_mode_iterator VF1_128_256VL): New.
1721 (define_mode_iterator VF2_512_256VL): New.
1722 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
1723 TARGET check.
1724 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
1725 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
1726 New.
1727 (define_mode_attr qq2pssuff): New.
1728 (define_mode_attr sselongvecmode): New.
1729 (define_mode_attr sselongvecmodelower): New.
1730 (define_mode_attr sseintvecmode3): New.
1731 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
1732 New.
1733 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
1734 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
1735 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
1736 (define_insn "ufloatv2siv2df2<mask_name>"): New.
1737
1738 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1739 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1740 Anna Tikhonova <anna.tikhonova@intel.com>
1741 Ilya Tocar <ilya.tocar@intel.com>
1742 Andrey Turetskiy <andrey.turetskiy@intel.com>
1743 Ilya Verbin <ilya.verbin@intel.com>
1744 Kirill Yukhin <kirill.yukhin@intel.com>
1745 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1746
1747 * config/i386/sse.md
1748 (define_mode_iterator VF2_AVX512VL): New.
1749 (define_mode_attr sseintvecmode2): New.
1750 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
1751 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
1752 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
1753 (define_insn
1754 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
1755 Ditto.
1756 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1757 Ditto.
1758 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
1759 Ditto.
1760
1761 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1762 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1763 Anna Tikhonova <anna.tikhonova@intel.com>
1764 Ilya Tocar <ilya.tocar@intel.com>
1765 Andrey Turetskiy <andrey.turetskiy@intel.com>
1766 Ilya Verbin <ilya.verbin@intel.com>
1767 Kirill Yukhin <kirill.yukhin@intel.com>
1768 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1769
1770 * config/i386/i386.md
1771 (define_insn "*movoi_internal_avx"): Add evex version.
1772 (define_insn "*movti_internal"): Ditto.
1773
1774 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1775 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1776 Anna Tikhonova <anna.tikhonova@intel.com>
1777 Ilya Tocar <ilya.tocar@intel.com>
1778 Andrey Turetskiy <andrey.turetskiy@intel.com>
1779 Ilya Verbin <ilya.verbin@intel.com>
1780 Kirill Yukhin <kirill.yukhin@intel.com>
1781 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1782
1783 * config/i386/i386.md
1784 (define_attr "isa"): Add avx512dq, noavx512dq.
1785 (define_attr "enabled"): Ditto.
1786 * config/i386/sse.md
1787 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
1788
1789 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
1790 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1791 Anna Tikhonova <anna.tikhonova@intel.com>
1792 Ilya Tocar <ilya.tocar@intel.com>
1793 Andrey Turetskiy <andrey.turetskiy@intel.com>
1794 Ilya Verbin <ilya.verbin@intel.com>
1795 Kirill Yukhin <kirill.yukhin@intel.com>
1796 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1797
1798 * config/i386/i386.c
1799 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
1800 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
1801 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
1802 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
1803 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
1804 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
1805 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
1806 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
1807 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
1808 * config/i386/sse.md
1809 (define_mode_iterator VMOVE): Allow V4TI mode.
1810 (define_mode_iterator V_AVX512VL): New.
1811 (define_mode_iterator V): New handling for AVX512VL.
1812 (define_insn "avx512f_load<mode>_mask"): Delete.
1813 (define_insn "<avx512>_load<mode>_mask"): New.
1814 (define_insn "avx512f_store<mode>_mask"): Delete.
1815 (define_insn "<avx512>_store<mode>_mask"): New.
1816
1817
1818 2014-08-18 Yury Gribov <y.gribov@samsung.com>
1819
1820 PR sanitizer/62089
1821 * asan.c (instrument_derefs): Fix bitfield check.
1822
1823 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1824
1825 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
1826 * config/rs6000/htm.md (ttest): Remove clobber.
1827 * config/rs6000/predicates.md (any_mask_operand): New predicate.
1828 (and_operand): Reformat.
1829 (and_2rld_operand): New predicate.
1830 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
1831 parameter.
1832 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
1833 parameter. Handle AND directly.
1834 (rs6000_split_logical_di): Remove last parameter.
1835 (rs6000_split_logical): Remove last parameter. Remove obsolete
1836 comment.
1837 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
1838 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
1839 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
1840 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
1841 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
1842 and 5 anonymous splitters): Delete.
1843 (and<mode>3): New expander.
1844 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
1845 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
1846 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
1847 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
1848 (floatdisf2_internal1): Remove clobbers.
1849 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
1850 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
1851 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
1852 (and<mode>3 for BOOL_128): Remove clobber.
1853 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
1854 rs6000_split_logical.
1855 (*bool<mode>3_internal for BOOL_128): Adjust call of
1856 rs6000_split_logical.
1857 (*boolc<mode>3_internal1 for BOOL_128,
1858 *boolc<mode>3_internal2 for BOOL_128,
1859 *boolcc<mode>3_internal1 for BOOL_128,
1860 *boolcc<mode>3_internal2 for BOOL_128,
1861 *eqv<mode>3_internal1 for BOOL_128,
1862 *eqv<mode>3_internal2 for BOOL_128,
1863 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
1864 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
1865 clobber.
1866 (*vec_reload_and_reg_<mptrsize>): Delete.
1867
1868 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1869
1870 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
1871 and split, *boolccsi3_internal3 and split): Delete.
1872 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
1873 *boolccdi3_internal3 and split): Delete.
1874 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
1875 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
1876
1877 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1878
1879 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
1880 and split, *boolcsi3_internal3 and split): Delete.
1881 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
1882 *boolcdi3_internal3 and split): Delete.
1883 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
1884
1885 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
1886
1887 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
1888 <'u'>: Also support printing the low-order 16 bits.
1889 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
1890 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
1891 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
1892 *booldi3_internal3 and split): Delete.
1893 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
1894 *bool<mode>3_dot2): New.
1895 (two anonymous define_splits for non_logical_cint_operand): Merge.
1896
1897 2014-08-17 Marek Polacek <polacek@redhat.com>
1898 Manuel López-Ibáñez <manu@gcc.gnu.org>
1899
1900 PR c/62059
1901 * diagnostic.c (adjust_line): Add gcc_checking_assert.
1902 (diagnostic_show_locus): Don't print caret diagnostic
1903 if a column is larger than the line_width.
1904
1905 2014-08-17 Roman Gareev <gareevroman@gmail.com>
1906
1907 * common.opt: Make the ISL AST generator to be the main code generator
1908 of Graphite.
1909
1910 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
1911
1912 * wide-int.h (generic_wide_int): Declare as class instead of struct.
1913
1914 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
1915
1916 PR target/61641
1917 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
1918 Declare.
1919 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
1920 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
1921 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
1922 Define.
1923 * config/pa/pa.md (begin_brtab): Delete insn.
1924 (end_brtab): Likewise.
1925
1926 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1927
1928 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
1929
1930 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
1931
1932 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
1933 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
1934 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
1935 (get_dynamic_type): Remove.
1936 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
1937 (clear_speculation): Bring to ipa-deivrt.h
1938 (get_class_context): Rename to ...
1939 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
1940 (contains_type_p): Update.
1941 (get_dynamic_type): Rename to ...
1942 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
1943 (possible_polymorphic_call_targets): UPdate.
1944 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
1945 * ipa-prop.c (ipa_analyze_call_uses): Update.
1946
1947 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
1948
1949 * doc/invoke.texi (SH options): Document missing processor variant
1950 options. Remove references to Hitachi. Undocument deprecated mspace
1951 option.
1952
1953 2014-08-15 Jason Merrill <jason@redhat.com>
1954
1955 * tree.c (type_hash_canon): Uncomment assert.
1956
1957 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1958
1959 * input.h (in_system_header_at): Add comment.
1960
1961 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1962
1963 PR fortran/44054
1964 * diagnostic.c (build_message_string): Make it extern.
1965 * diagnostic.h (build_message_string): Make it extern.
1966
1967 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
1968
1969 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
1970 load/store from/to non-floating class pseudo.
1971
1972 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1973
1974 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
1975
1976 2014-08-15 Richard Biener <rguenther@suse.de>
1977
1978 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
1979 (get_constraint_for_ssa_var): Remove dead code.
1980 (get_constraint_for_1): Adjust.
1981 (find_what_var_points_to): Likewise.
1982 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
1983
1984 2014-08-15 Ilya Tocar <tocarip@gmail.com>
1985
1986 PR target/61878
1987 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
1988 (_mm512_mask_cmpge_epu32_mask): Ditto.
1989 (_mm512_cmpge_epu32_mask): Ditto.
1990 (_mm512_mask_cmpge_epi64_mask): Ditto.
1991 (_mm512_cmpge_epi64_mask): Ditto.
1992 (_mm512_mask_cmpge_epu64_mask): Ditto.
1993 (_mm512_cmpge_epu64_mask): Ditto.
1994 (_mm512_mask_cmple_epi32_mask): Ditto.
1995 (_mm512_cmple_epi32_mask): Ditto.
1996 (_mm512_mask_cmple_epu32_mask): Ditto.
1997 (_mm512_cmple_epu32_mask): Ditto.
1998 (_mm512_mask_cmple_epi64_mask): Ditto.
1999 (_mm512_cmple_epi64_mask): Ditto.
2000 (_mm512_mask_cmple_epu64_mask): Ditto.
2001 (_mm512_cmple_epu64_mask): Ditto.
2002 (_mm512_mask_cmplt_epi32_mask): Ditto.
2003 (_mm512_cmplt_epi32_mask): Ditto.
2004 (_mm512_mask_cmplt_epu32_mask): Ditto.
2005 (_mm512_cmplt_epu32_mask): Ditto.
2006 (_mm512_mask_cmplt_epi64_mask): Ditto.
2007 (_mm512_cmplt_epi64_mask): Ditto.
2008 (_mm512_mask_cmplt_epu64_mask): Ditto.
2009 (_mm512_cmplt_epu64_mask): Ditto.
2010 (_mm512_mask_cmpneq_epi32_mask): Ditto.
2011 (_mm512_mask_cmpneq_epu32_mask): Ditto.
2012 (_mm512_cmpneq_epu32_mask): Ditto.
2013 (_mm512_mask_cmpneq_epi64_mask): Ditto.
2014 (_mm512_cmpneq_epi64_mask): Ditto.
2015 (_mm512_mask_cmpneq_epu64_mask): Ditto.
2016 (_mm512_cmpneq_epu64_mask): Ditto.
2017 (_mm512_castpd_ps): Ditto.
2018 (_mm512_castpd_si512): Ditto.
2019 (_mm512_castps_pd): Ditto.
2020 (_mm512_castps_si512): Ditto.
2021 (_mm512_castsi512_ps): Ditto.
2022 (_mm512_castsi512_pd): Ditto.
2023 (_mm512_castpd512_pd128): Ditto.
2024 (_mm512_castps512_ps128): Ditto.
2025 (_mm512_castsi512_si128): Ditto.
2026 (_mm512_castpd512_pd256): Ditto.
2027 (_mm512_castps512_ps256): Ditto.
2028 (_mm512_castsi512_si256): Ditto.
2029 (_mm512_castpd128_pd512): Ditto.
2030 (_mm512_castps128_ps512): Ditto.
2031 (_mm512_castsi128_si512): Ditto.
2032 (_mm512_castpd256_pd512): Ditto.
2033 (_mm512_castps256_ps512): Ditto.
2034 (_mm512_castsi256_si512): Ditto.
2035 (_mm512_cmpeq_epu32_mask): Ditto.
2036 (_mm512_mask_cmpeq_epu32_mask): Ditto.
2037 (_mm512_mask_cmpeq_epu64_mask): Ditto.
2038 (_mm512_cmpeq_epu64_mask): Ditto.
2039 (_mm512_cmpgt_epu32_mask): Ditto.
2040 (_mm512_mask_cmpgt_epu32_mask): Ditto.
2041 (_mm512_mask_cmpgt_epu64_mask): Ditto.
2042 (_mm512_cmpgt_epu64_mask): Ditto.
2043 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
2044 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
2045 * config/i386/i386.c (enum ix86_builtins): Add
2046 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
2047 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
2048 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
2049 (bdesc_args): Add __builtin_ia32_si512_256si,
2050 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
2051 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
2052 __builtin_ia32_pd512_pd.
2053 (ix86_expand_args_builtin): Handle new FTYPEs.
2054 * config/i386/sse.md (castmode): Add 512-bit modes.
2055 (AVX512MODE2P): New.
2056 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
2057 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
2058
2059 2014-08-15 Richard Biener <rguenther@suse.de>
2060
2061 * fold-const.c (tree_swap_operands_p): Put all constants
2062 last, also strip sign-changing NOPs when considering further
2063 canonicalization. Canonicalize also when optimizing for size.
2064
2065 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2066
2067 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
2068 one_match > zero_match case to just before simple_sequence.
2069
2070 2014-08-15 Richard Biener <rguenther@suse.de>
2071
2072 * data-streamer.h (streamer_string_index, string_for_index):
2073 Remove.
2074 * data-streamer-out.c (streamer_string_index): Make static.
2075 * data-streamer-in.c (string_for_index): Likewise.
2076 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
2077 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
2078
2079 2014-08-15 Richard Biener <rguenther@suse.de>
2080
2081 PR tree-optimization/62031
2082 * tree-data-ref.c (dr_analyze_indices): Do not set
2083 DR_UNCONSTRAINED_BASE.
2084 (dr_may_alias_p): All indirect accesses have to go the
2085 formerly DR_UNCONSTRAINED_BASE path.
2086 * tree-data-ref.h (struct indices): Remove
2087 unconstrained_base member.
2088 (DR_UNCONSTRAINED_BASE): Remove.
2089
2090 2014-08-15 Jakub Jelinek <jakub@redhat.com>
2091
2092 PR middle-end/62092
2093 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
2094 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
2095 in OMP_CLAUSE_MAP in some outer target region.
2096
2097 2014-08-15 Bin Cheng <bin.cheng@arm.com>
2098
2099 * tree-ssa-loop-ivopts.c (ivopts_data): New field
2100 name_expansion_cache.
2101 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
2102 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
2103 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
2104 (difference_cannot_overflow_p): New parameter. Use affine
2105 expansion for equality check.
2106 (iv_elimination_compare_lt): Pass new argument.
2107
2108 2014-08-14 DJ Delorie <dj@redhat.com>
2109
2110 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
2111 variables to the accumulator.
2112
2113 * config/rl78/predicates.md (rl78_near_mem_operand): New.
2114 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
2115 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
2116 with far-far moves.
2117
2118 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
2119 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
2120 (umulqihi3_virt): Likewise.
2121 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
2122 (umulqihi3_real): Likewise.
2123
2124 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
2125
2126 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
2127
2128 PR tree-optimization/62091
2129 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
2130 function_entry_reached.
2131 (walk_aliased_vdefs): Clear it here.
2132 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
2133
2134 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
2135
2136 * ipa-utils.h (compare_virtual_tables): Declare.
2137 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
2138
2139 2014-08-14 Marek Polacek <polacek@redhat.com>
2140
2141 DR 458
2142 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
2143 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
2144
2145 2014-08-14 Tom de Vries <tom@codesourcery.com>
2146
2147 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
2148
2149 2014-08-14 Tom de Vries <tom@codesourcery.com>
2150
2151 PR rtl-optimization/62004
2152 PR rtl-optimization/62030
2153 * ifcvt.c (rtx_interchangeable_p): New function.
2154 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
2155 * emit-rtl.h (mem_attrs_eq_p): Declare.
2156
2157 2014-08-14 Roman Gareev <gareevroman@gmail.com>
2158
2159 * graphite-scop-detection.c:
2160 Add inclusion of cp-tree.h.
2161 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
2162 in case they are pointers to object types
2163
2164 2014-08-14 Richard Biener <rguenther@suse.de>
2165
2166 * BASE-VER: Change to 5.0.0
2167
2168 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2169 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2170 Anna Tikhonova <anna.tikhonova@intel.com>
2171 Ilya Tocar <ilya.tocar@intel.com>
2172 Andrey Turetskiy <andrey.turetskiy@intel.com>
2173 Ilya Verbin <ilya.verbin@intel.com>
2174 Kirill Yukhin <kirill.yukhin@intel.com>
2175 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2176
2177 * config/i386/sse.md (define_mode_attr avx512): New.
2178 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
2179 V4DI modes.
2180 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
2181 (define_mode_attr ssse3_avx2): Ditto.
2182 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
2183 (define_mode_attr avx2_avx512bw): New.
2184 (define_mode_attr ssedoublemodelower): New.
2185 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
2186 V32HI, V64QI modes.
2187 (define_mode_attr ssebytemode): Allow V8DI modes.
2188 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
2189 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
2190 (define_mode_attr ssePSmode2): New.
2191 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
2192 V16HI, V32HI modes.
2193 (define_mode_attr dbpsadbwmode): New.
2194 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
2195 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
2196 (vi8_sse4_1_avx2_avx512): New.
2197 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
2198 mode attribute.
2199 (define_mode_attr blendbits): Move before its immediate use.
2200
2201 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2202 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2203 Anna Tikhonova <anna.tikhonova@intel.com>
2204 Ilya Tocar <ilya.tocar@intel.com>
2205 Andrey Turetskiy <andrey.turetskiy@intel.com>
2206 Ilya Verbin <ilya.verbin@intel.com>
2207 Kirill Yukhin <kirill.yukhin@intel.com>
2208 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2209
2210 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
2211 * config/i386/subst.md
2212 (define_mode_iterator SUBST_V): Update.
2213 (define_mode_iterator SUBST_A): Ditto.
2214 (define_subst_attr "mask_operand7"): New.
2215 (define_subst_attr "mask_operand10"): New.
2216 (define_subst_attr "mask_operand_arg34") : New.
2217 (define_subst_attr "mask_expand_op3"): New.
2218 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
2219 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
2220 (define_subst_attr "mask_avx512vl_condition"): New.
2221 (define_subst_attr "round_mask_operand4"): Ditto.
2222 (define_subst_attr "round_mask_scalar_op3"): Delete.
2223 (define_subst_attr "round_mask_op4"): New.
2224 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
2225 V16SImode.
2226 (define_subst_attr "round_modev8sf_condition"): New.
2227 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
2228 <MODE>mode.
2229 (define_subst_attr "round_saeonly_mask_operand4"): New.
2230 (define_subst_attr "round_saeonly_mask_op4"): New.
2231 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
2232 V8DImode, V16SImode.
2233 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
2234 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
2235 (define_subst_attr "mask_expand4_args"): New.
2236 (define_subst "mask_expand4"): New.
2237
2238 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2239 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2240 Anna Tikhonova <anna.tikhonova@intel.com>
2241 Ilya Tocar <ilya.tocar@intel.com>
2242 Andrey Turetskiy <andrey.turetskiy@intel.com>
2243 Ilya Verbin <ilya.verbin@intel.com>
2244 Kirill Yukhin <kirill.yukhin@intel.com>
2245 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2246
2247 * config/i386/i386.md
2248 (define_attr "isa"): Add avx512bw,noavx512bw.
2249 (define_attr "enabled"): Ditto.
2250 (define_split): Add 32/64-bit mask logic.
2251 (define_insn "*k<logic>qi"): New.
2252 (define_insn "*k<logic>hi"): New.
2253 (define_insn "*anddi_1"): Add mask version.
2254 (define_insn "*andsi_1"): Ditto.
2255 (define_insn "*<code><mode>_1"): Ditto.
2256 (define_insn "*<code>hi_1"): Ditto.
2257 (define_insn "kxnor<mode>"): New.
2258 (define_insn "kunpcksi"): New.
2259 (define_insn "kunpckdi"): New.
2260 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
2261 (define_insn "*one_cmplhi2_1"): Ditto.
2262
2263 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2264 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2265 Anna Tikhonova <anna.tikhonova@intel.com>
2266 Ilya Tocar <ilya.tocar@intel.com>
2267 Andrey Turetskiy <andrey.turetskiy@intel.com>
2268 Ilya Verbin <ilya.verbin@intel.com>
2269 Kirill Yukhin <kirill.yukhin@intel.com>
2270 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2271
2272 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
2273 V32HImode.
2274
2275 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2276 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2277 Anna Tikhonova <anna.tikhonova@intel.com>
2278 Ilya Tocar <ilya.tocar@intel.com>
2279 Andrey Turetskiy <andrey.turetskiy@intel.com>
2280 Ilya Verbin <ilya.verbin@intel.com>
2281 Kirill Yukhin <kirill.yukhin@intel.com>
2282 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2283
2284 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
2285 registers.
2286 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
2287 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
2288 xmm/ymm16+ when availble.
2289 * config/i386/i386.h
2290 (HARD_REGNO_NREGS): Add mask regs.
2291 (VALID_AVX512F_REG_MODE): Ditto.
2292 (VALID_AVX512F_REG_MODE) : Define.
2293 (VALID_MASK_AVX512BW_MODE): Ditto.
2294 (reg_class) (MASK_REG_P(X)): Define.
2295 * config/i386/i386.md: Do not split long moves with mask register,
2296 use kmovb if avx512bw is availible.
2297 (movdi_internal): Handle mask registers.
2298
2299 2014-08-14 Richard Biener <rguenther@suse.de>
2300
2301 PR tree-optimization/62081
2302 * tree-ssa-loop.c (pass_fix_loops): New pass.
2303 (pass_tree_loop::gate): Do not fixup loops here.
2304 * tree-pass.h (make_pass_fix_loops): Declare.
2305 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
2306
2307 2014-08-14 Richard Biener <rguenther@suse.de>
2308
2309 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
2310 (type_hash_canon): ... this and avoid 2nd lookup for the add.
2311
2312 2014-08-14 Richard Biener <rguenther@suse.de>
2313
2314 PR tree-optimization/62090
2315 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
2316 (fold_builtin_2): Do not fold sprintf.
2317 (fold_builtin_3): Likewise.
2318 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
2319 moved from builtins.c.
2320 (gimple_fold_builtin): Fold sprintf.
2321
2322 2014-08-14 Richard Biener <rguenther@suse.de>
2323
2324 PR rtl-optimization/62079
2325 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
2326 run cleanup_cfg.
2327
2328 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
2329
2330 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
2331 current_function_decl.
2332
2333 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
2334
2335 * cgraph.c (cgraph_node::function_symbol): Fix wrong
2336 cgraph_function_node to cgraph_node::function_symbol
2337 refactoring.
2338
2339 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
2340
2341 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
2342 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
2343
2344 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
2345
2346 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
2347 warning.
2348
2349 2014-08-13 Roman Gareev <gareevroman@gmail.com>
2350
2351 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
2352 generator.
2353
2354 2014-08-12 Jakub Jelinek <jakub@redhat.com>
2355
2356 PR target/62025
2357 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
2358 any registers that are used in mem_insn.
2359
2360 2014-08-12 Steve Ellcey <sellcey@mips.com>
2361
2362 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
2363
2364 2014-08-12 Steve Ellcey <sellcey@mips.com>
2365
2366 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
2367 (MULTILIB_DIRNAMES): Ditto.
2368 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
2369 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
2370 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
2371 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
2372 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
2373 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
2374
2375 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2376
2377 PR target/61413
2378 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
2379 of __ARM_SIZEOF_WCHAR_T.
2380
2381 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2382
2383 PR target/62098
2384 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
2385 Remove unnecessary attributes.
2386
2387 2014-08-12 Yury Gribov <y.gribov@samsung.com>
2388
2389 * internal-fn.c (init_internal_fns): Fix off-by-one.
2390
2391 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
2392 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2393 Anna Tikhonova <anna.tikhonova@intel.com>
2394 Ilya Tocar <ilya.tocar@intel.com>
2395 Andrey Turetskiy <andrey.turetskiy@intel.com>
2396 Ilya Verbin <ilya.verbin@intel.com>
2397 Kirill Yukhin <kirill.yukhin@intel.com>
2398 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2399
2400 * config/i386/i386.c (standard_sse_constant_opcode): Use
2401 vpxord/vpternlog if avx512 is availible.
2402
2403 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
2404
2405 PR middle-end/62103
2406 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
2407 bitfields, that is when size doesn't match the size of type or the
2408 size of the constructor.
2409
2410 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2411
2412 * config/rs6000/constraints.md (wh constraint): New constraint,
2413 for FP registers if direct move is available.
2414 (wi constraint): New constraint, for VSX/FP registers that can
2415 handle 64-bit integers.
2416 (wj constraint): New constraint for VSX/FP registers that can
2417 handle 64-bit integers for direct moves.
2418 (wk constraint): New constraint for VSX/FP registers that can
2419 handle 64-bit doubles for direct moves.
2420 (wy constraint): Make documentation match implementation.
2421
2422 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
2423 scalar_in_vmx_p field to simplify tests of whether SFmode or
2424 DFmode can go in the Altivec registers.
2425 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
2426 (rs6000_setup_reg_addr_masks): Likewise.
2427 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
2428 field, and wh/wi/wj/wk constraints.
2429 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
2430 the wh/wi/wj/wk constraints.
2431 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
2432 upper registers, prefer VSX registers unless the operation is a
2433 memory operation with REG+OFFSET addressing.
2434
2435 * config/rs6000/vsx.md (VSr mode attribute): Add support for
2436 DImode. Change SFmode to use ww constraint instead of d to allow
2437 SF registers in the upper registers.
2438 (VSr2): Likewise.
2439 (VSr3): Likewise.
2440 (VSr5): Fix thinko in comment.
2441 (VSa): New mode attribute that is an alternative to wa, that
2442 returns the VSX register class that a mode can go in, but may not
2443 be the preferred register class.
2444 (VS_64dm): New mode attribute for appropriate register classes for
2445 referencing 64-bit elements of vectors for direct moves and normal
2446 moves.
2447 (VS_64reg): Likewise.
2448 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
2449 register allocator to only registers the data type can handle.
2450 (vsx_le_perm_load_<mode>): Likewise.
2451 (vsx_le_perm_store_<mode>): Likewise.
2452 (vsx_xxpermdi2_le_<mode>): Likewise.
2453 (vsx_xxpermdi4_le_<mode>): Likewise.
2454 (vsx_lxvd2x2_le_<mode>): Likewise.
2455 (vsx_lxvd2x4_le_<mode>): Likewise.
2456 (vsx_stxvd2x2_le_<mode>): Likewise.
2457 (vsx_add<mode>3): Likewise.
2458 (vsx_sub<mode>3): Likewise.
2459 (vsx_mul<mode>3): Likewise.
2460 (vsx_div<mode>3): Likewise.
2461 (vsx_tdiv<mode>3_internal): Likewise.
2462 (vsx_fre<mode>2): Likewise.
2463 (vsx_neg<mode>2): Likewise.
2464 (vsx_abs<mode>2): Likewise.
2465 (vsx_nabs<mode>2): Likewise.
2466 (vsx_smax<mode>3): Likewise.
2467 (vsx_smin<mode>3): Likewise.
2468 (vsx_sqrt<mode>2): Likewise.
2469 (vsx_rsqrte<mode>2): Likewise.
2470 (vsx_tsqrt<mode>2_internal): Likewise.
2471 (vsx_fms<mode>4): Likewise.
2472 (vsx_nfma<mode>4): Likewise.
2473 (vsx_eq<mode>): Likewise.
2474 (vsx_gt<mode>): Likewise.
2475 (vsx_ge<mode>): Likewise.
2476 (vsx_eq<mode>_p): Likewise.
2477 (vsx_gt<mode>_p): Likewise.
2478 (vsx_ge<mode>_p): Likewise.
2479 (vsx_xxsel<mode>): Likewise.
2480 (vsx_xxsel<mode>_uns): Likewise.
2481 (vsx_copysign<mode>3): Likewise.
2482 (vsx_float<VSi><mode>2): Likewise.
2483 (vsx_floatuns<VSi><mode>2): Likewise.
2484 (vsx_fix_trunc<mode><VSi>2): Likewise.
2485 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
2486 (vsx_x<VSv>r<VSs>i): Likewise.
2487 (vsx_x<VSv>r<VSs>ic): Likewise.
2488 (vsx_btrunc<mode>2): Likewise.
2489 (vsx_b2trunc<mode>2): Likewise.
2490 (vsx_floor<mode>2): Likewise.
2491 (vsx_ceil<mode>2): Likewise.
2492 (vsx_<VS_spdp_insn>): Likewise.
2493 (vsx_xscvspdp): Likewise.
2494 (vsx_xvcvspuxds): Likewise.
2495 (vsx_float_fix_<mode>2): Likewise.
2496 (vsx_set_<mode>): Likewise.
2497 (vsx_extract_<mode>_internal1): Likewise.
2498 (vsx_extract_<mode>_internal2): Likewise.
2499 (vsx_extract_<mode>_load): Likewise.
2500 (vsx_extract_<mode>_store): Likewise.
2501 (vsx_splat_<mode>): Likewise.
2502 (vsx_xxspltw_<mode>): Likewise.
2503 (vsx_xxspltw_<mode>_direct): Likewise.
2504 (vsx_xxmrghw_<mode>): Likewise.
2505 (vsx_xxmrglw_<mode>): Likewise.
2506 (vsx_xxsldwi_<mode>): Likewise.
2507 (vsx_xscvdpspn): Tighten constraints to only use register classes
2508 the types use.
2509 (vsx_xscvspdpn): Likewise.
2510 (vsx_xscvdpspn_scalar): Likewise.
2511
2512 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
2513 wj, and wk constraints.
2514 (GPR_REG_CLASS_P): New helper macro for register classes targeting
2515 general purpose registers.
2516
2517 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
2518 direct moves.
2519 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
2520 DImode instead of wm. Use wk constraint for direct move of DFmode
2521 instead of wm.
2522 (extendsidi2_lfiwax): Likewise.
2523 (lfiwax): Likewise.
2524 (lfiwzx): Likewise.
2525 (movdi_internal64): Likewise.
2526
2527 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
2528 wk constraints. Make the wy constraint documentation match them
2529 implementation.
2530
2531 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
2532
2533 Replacement of isl_int by isl_val
2534 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
2535 (compute_bounds_for_param): use isl_val instead of isl_int
2536 (compute_bounds_for_loop): likewise
2537 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
2538 (build_linearized_memory_access): use isl_val instead of isl_int
2539 (pdr_stride_in_loop): likewise
2540 * graphite-optimize-isl.c:
2541 (getPrevectorMap): use isl_val instead of isl_int
2542 * graphite-poly.c:
2543 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
2544 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
2545 (extern the_isl_ctx): declare
2546 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
2547 (extract_affine_gmp): likewise
2548 (wrap): likewise
2549 (build_loop_iteration_domains): likewise
2550 (add_param_constraints): likewise
2551
2552 2014-08-11 Richard Biener <rguenther@suse.de>
2553
2554 PR tree-optimization/62075
2555 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
2556 handle uses in patterns.
2557
2558 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2559 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2560 Anna Tikhonova <anna.tikhonova@intel.com>
2561 Ilya Tocar <ilya.tocar@intel.com>
2562 Andrey Turetskiy <andrey.turetskiy@intel.com>
2563 Ilya Verbin <ilya.verbin@intel.com>
2564 Kirill Yukhin <kirill.yukhin@intel.com>
2565 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2566
2567 * common/config/i386/i386-common.c
2568 (OPTION_MASK_ISA_AVX512VL_SET): Define.
2569 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
2570 (ix86_handle_option): Handle OPT_mavx512vl.
2571 * config/i386/cpuid.h (bit_AVX512VL): Define.
2572 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
2573 set -mavx512vl accordingly.
2574 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2575 OPTION_MASK_ISA_AVX512VL.
2576 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
2577 (ix86_option_override_internal): Define PTA_AVX512VL, handle
2578 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
2579 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
2580 * config/i386/i386.h (TARGET_AVX512VL): Define.
2581 (TARGET_AVX512VL_P(x)): Ditto.
2582 * config/i386/i386.opt: Add mavx512vl.
2583
2584 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
2585
2586 PR tree-optimization/62073
2587 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
2588 a basic block.
2589
2590 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2591 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2592 Anna Tikhonova <anna.tikhonova@intel.com>
2593 Ilya Tocar <ilya.tocar@intel.com>
2594 Andrey Turetskiy <andrey.turetskiy@intel.com>
2595 Ilya Verbin <ilya.verbin@intel.com>
2596 Kirill Yukhin <kirill.yukhin@intel.com>
2597 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2598
2599 * common/config/i386/i386-common.c
2600 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
2601 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
2602 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
2603 (ix86_handle_option): Handle OPT_mavx512bw.
2604 * config/i386/cpuid.h (bit_AVX512BW): Define.
2605 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
2606 set -mavx512bw accordingly.
2607 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2608 OPTION_MASK_ISA_AVX512BW.
2609 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
2610 (ix86_option_override_internal): Define PTA_AVX512BW, handle
2611 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
2612 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
2613 * config/i386/i386.h (TARGET_AVX512BW): Define.
2614 (TARGET_AVX512BW_P(x)): Ditto.
2615 * config/i386/i386.opt: Add mavx512bw.
2616
2617 2014-08-11 Richard Biener <rguenther@suse.de>
2618
2619 PR tree-optimization/62070
2620 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
2621 Remove SSA checking.
2622
2623 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2624
2625 * asan.c (asan_check_flags): New enum.
2626 (build_check_stmt_with_calls): Removed function.
2627 (build_check_stmt): Split inlining logic to
2628 asan_expand_check_ifn.
2629 (instrument_derefs): Rename parameter.
2630 (instrument_mem_region_access): Rename parameter.
2631 (instrument_strlen_call): Likewise.
2632 (asan_expand_check_ifn): New function.
2633 (asan_instrument): Remove old code.
2634 (pass_sanopt::execute): Change handling of
2635 asan-instrumentation-with-call-threshold.
2636 (asan_clear_shadow): Fix formatting.
2637 (asan_function_start): Likewise.
2638 (asan_emit_stack_protection): Likewise.
2639 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
2640 Update description.
2641 * internal-fn.c (expand_ASAN_CHECK): New function.
2642 * internal-fn.def (ASAN_CHECK): New internal function.
2643 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
2644 Update description.
2645 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
2646 * tree.c: Small comment fix.
2647
2648 2014-08-11 Yury Gribov <y.gribov@samsung.com>
2649
2650 * gimple.c (gimple_call_fnspec): Support internal functions.
2651 (gimple_call_return_flags): Use const.
2652 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
2653 * internal-fn.def: Add fnspec information.
2654 * internal-fn.h (internal_fn_fnspec): New function.
2655 (init_internal_fns): Declare new function.
2656 * internal-fn.c (internal_fn_fnspec_array): New global variable.
2657 (init_internal_fns): New function.
2658 * tree-core.h: Update macro call.
2659 * tree.c (build_common_builtin_nodes): Initialize internal fns.
2660
2661 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
2662
2663 * lto-streamer.h (struct output_block::symbol): Change from
2664 struct symtab_node to plain symtab_node.
2665 (referenced_from_this_partition_p): Change first parameter
2666 from struct symtab_node to plain symtab_node.
2667
2668 2014-08-10 Marek Polacek <polacek@redhat.com>
2669
2670 PR c/51849
2671 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
2672
2673 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
2674
2675 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
2676 DECL correctly; do not give up on types in static storage.
2677
2678 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
2679
2680 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
2681
2682 2014-08-09 Roman Gareev <gareevroman@gmail.com>
2683
2684 * graphite-isl-ast-to-gimple.c:
2685 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
2686
2687 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
2688
2689 2014-08-08 Guozhi Wei <carrot@google.com>
2690
2691 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
2692
2693 2014-08-08 Cary Coutant <ccoutant@google.com>
2694
2695 * dwarf2out.c (get_skeleton_type_unit): Remove.
2696 (output_skeleton_debug_sections): Remove skeleton type units.
2697 (output_comdat_type_unit): Likewise.
2698 (dwarf2out_finish): Likewise.
2699
2700 2014-08-07 Yi Yang <ahyangyi@google.com>
2701
2702 * predict.c (expr_expected_value_1): Remove the redundant assignment.
2703
2704 2014-08-08 Richard Biener <rguenther@suse.de>
2705
2706 * lto-streamer.h (struct lto_input_block): Make it a class
2707 with a constructor.
2708 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
2709 (struct lto_function_header, struct lto_simple_header,
2710 struct lto_simple_header_with_strings,
2711 struct lto_decl_header, struct lto_function_header): Make
2712 a simple inheritance hieararchy. Remove unused fields.
2713 (struct lto_asm_header): Remove.
2714 * lto-streamer-out.c (produce_asm): Adjust.
2715 (lto_output_toplevel_asms): Likewise.
2716 (produce_asm_for_decls): Likewise.
2717 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
2718 * data-streamer-in.c (string_for_index): Likewise.
2719 * ipa-inline-analysis.c (inline_read_section): Likewise.
2720 * ipa-prop.c (ipa_prop_read_section): Likewise.
2721 (read_replacements_section): Likewise.
2722 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
2723 * lto-section-in.c (lto_create_simple_input_block): Likewise.
2724 (lto_destroy_simple_input_block): Likewise.
2725 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
2726 (lto_input_toplevel_asms): Likewise.
2727
2728 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
2729 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2730 Anna Tikhonova <anna.tikhonova@intel.com>
2731 Ilya Tocar <ilya.tocar@intel.com>
2732 Andrey Turetskiy <andrey.turetskiy@intel.com>
2733 Ilya Verbin <ilya.verbin@intel.com>
2734 Kirill Yukhin <kirill.yukhin@intel.com>
2735 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2736
2737 * common/config/i386/i386-common.c
2738 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
2739 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
2740 (ix86_handle_option): Handle OPT_mavx512dq.
2741 * config/i386/cpuid.h (bit_AVX512DQ): Define.
2742 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
2743 set -mavx512dq accordingly.
2744 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2745 OPTION_MASK_ISA_AVX512DQ.
2746 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
2747 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
2748 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
2749 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
2750 * config/i386/i386.h (TARGET_AVX512DQ): Define.
2751 (TARGET_AVX512DQ_P(x)): Ditto.
2752 * config/i386/i386.opt: Add mavx512dq.
2753
2754 2014-08-08 Richard Biener <rguenther@suse.de>
2755
2756 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
2757 target_percent, target_percent_s): Export.
2758 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
2759 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
2760 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
2761 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
2762 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
2763 Move to gimple-fold.c.
2764 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
2765 strcat and strcpy.
2766 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
2767 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
2768 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
2769 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
2770 (rewrite_call_expr_array): Remove.
2771 (fold_builtin_sprintf_chk): Likewise.
2772 (fold_builtin_snprintf_chk): Likewise.
2773 (fold_builtin_varargs): Remove handling of sprintf_chk,
2774 vsprintf_chk, snprintf_chk and vsnprintf_chk.
2775 (gimple_fold_builtin_sprintf_chk): Remove.
2776 (gimple_fold_builtin_snprintf_chk): Likewise.
2777 (gimple_fold_builtin_varargs): Likewise.
2778 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
2779 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
2780 * gimple.c (gimple_seq_add_seq_without_update): New function.
2781 * gimple.h (gimple_seq_add_seq_without_update): Declare.
2782 * gimple-fold.c: Include output.h.
2783 (gsi_replace_with_seq_vops): New function, split out from ...
2784 (gimplify_and_update_call_from_tree): ... here.
2785 (replace_call_with_value): New function.
2786 (replace_call_with_call_and_fold): Likewise.
2787 (var_decl_component_p): Moved from builtins.c.
2788 (gimple_fold_builtin_memory_op): Moved from builtins.c
2789 fold_builtin_memory_op and rewritten to GIMPLE.
2790 (gimple_fold_builtin_memset): Likewise.
2791 (gimple_fold_builtin_strcpy): Likewise.
2792 (gimple_fold_builtin_strncpy): Likewise.
2793 (gimple_fold_builtin_strcat): Likewise.
2794 (gimple_fold_builtin_fputs): Likewise.
2795 (gimple_fold_builtin_memory_chk): Likewise.
2796 (gimple_fold_builtin_stxcpy_chk): Likewise.
2797 (gimple_fold_builtin_stxncpy_chk): Likewise.
2798 (gimple_fold_builtin_snprintf_chk): Likewise.
2799 (gimple_fold_builtin_sprintf_chk): Likewise.
2800 (gimple_fold_builtin_strlen): New function.
2801 (gimple_fold_builtin_with_strlen): New function split out from
2802 gimple_fold_builtin.
2803 (gimple_fold_builtin): Change signature and handle
2804 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
2805 here. Call gimple_fold_builtin_with_strlen.
2806 (gimple_fold_call): Adjust.
2807
2808 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2809
2810 * calls.c (precompute_arguments): Check
2811 promoted_for_signed_and_unsigned_p and set the promoted mode.
2812 (promoted_for_signed_and_unsigned_p): New function.
2813 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
2814 and set the promoted mode.
2815 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
2816 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
2817 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
2818
2819
2820 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
2821
2822 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
2823 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2824 (expand_call): Likewise.
2825 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
2826 to get promoted mode.
2827 * combine.c (record_promoted_value): Skip > 0 comparison with
2828 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
2829 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
2830 of SUBREG_PROMOTED_UNSIGNED_P.
2831 (convert_modes): Likewise.
2832 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
2833 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
2834 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
2835 SUBREG_PROMOTED_UNSIGNED_SET.
2836 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
2837 instead of SUBREG_PROMOTED_UNSIGNED_SET.
2838 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
2839 SUBREG_PROMOTED_SET.
2840 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
2841 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
2842 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
2843 of SUBREG_PROMOTED_UNSIGNED_P.
2844 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
2845 (SUBREG_PROMOTED_SET): New define.
2846 (SUBREG_PROMOTED_GET): Likewise.
2847 (SUBREG_PROMOTED_SIGN): Likewise.
2848 (SUBREG_PROMOTED_SIGNED_P): Likewise.
2849 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
2850 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
2851 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
2852 instead of SUBREG_PROMOTED_UNSIGNED_GET.
2853 (nonzero_bits1): Skip > 0 comparison with the results as
2854 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
2855 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
2856 of !SUBREG_PROMOTED_UNSIGNED_P.
2857 * simplify-rtx.c (simplify_unary_operation_1): Use new
2858 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
2859 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
2860 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
2861 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
2862
2863 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
2864
2865 * ipa-devirt.c: Include gimple-pretty-print.h
2866 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
2867 further tests.
2868 (decl_maybe_in_construction_p): Fix conditional on cdtor check
2869 (get_polymorphic_call_info): Fix return value
2870 (type_change_info): New sturcture based on ipa-prop
2871 variant.
2872 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
2873 based on ipa-prop variant.
2874 (extr_type_from_vtbl_ptr_store): New function
2875 based on ipa-prop variant.
2876 (record_known_type): New function.
2877 (check_stmt_for_type_change): New function.
2878 (get_dynamic_type): New function.
2879 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
2880 * tree-ssa-pre.c: ipa-utils.h
2881 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
2882 machinery; sanity check with ipa-prop devirtualization.
2883 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
2884 polymorphic flag.
2885
2886 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2887
2888 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
2889 * alias.c, cfgexpand.c, cgraphbuild.c,
2890 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
2891 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
2892 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
2893 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
2894 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
2895 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2896 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
2897 dse.c, except.c, gengtype.c, gimple-expr.c,
2898 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
2899 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
2900 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
2901 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
2902 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2903 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
2904 pointer-set.h.
2905 * pointer-set.c: Remove file.
2906 * pointer-set.h: Remove file.
2907
2908 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2909
2910 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
2911 * config/arm/types.md (f_sels, f_seld): Delete.
2912
2913 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2914
2915 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
2916 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
2917 (aarch64_movdi_<mode>high): Likewise.
2918 (aarch64_mov<mode>high_di): Likewise.
2919 (aarch64_movdi_<mode>low): Likewise.
2920 (aarch64_mov<mode>low_di): Likewise.
2921 (aarch64_movtilow_tilow): Likewise.
2922 Add comment explaining usage of fp,simd attributes and of
2923 TARGET_FLOAT and TARGET_SIMD.
2924
2925 2014-08-07 Ian Bolton <ian.bolton@arm.com>
2926 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2927
2928 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
2929 Use MOVN when one of the half-words is 0xffff.
2930
2931 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2932
2933 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
2934
2935 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2936
2937 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
2938 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
2939 (rfs_str): String corresponding to RFS_* constants.
2940 (rank_for_schedule_stats_t): New typedef.
2941 (rank_for_schedule_stats): New static variable.
2942 (rfs_result): New static function.
2943 (rank_for_schedule): Track statistics for deciding heuristics.
2944 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
2945 static functions.
2946 (ready_sort): Use them for debug printouts.
2947 (schedule_block): Init statistics state. Print statistics on
2948 rank_for_schedule decisions.
2949
2950 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
2951
2952 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
2953
2954 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
2955
2956 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
2957 constraint.
2958
2959 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2960
2961 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
2962 function to not conflict.
2963 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
2964 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
2965 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
2966 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
2967 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
2968 of pointer_map.
2969
2970 2014-08-07 Marek Polacek <polacek@redhat.com>
2971
2972 * fold-const.c (fold_binary_loc): Add folding of
2973 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
2974
2975 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
2976
2977 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
2978 instead of type size.
2979 (ASM_FINISH_DECLARE_OBJECT): Likewise.
2980
2981 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
2982
2983 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
2984 (*thumb1_movqi_insn): Likewise.
2985 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
2986
2987 2014-08-07 Tom de Vries <tom@codesourcery.com>
2988
2989 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
2990 (glibc_2_11_or_earlier): Remove effective-target keywords.
2991
2992 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2993
2994 * config/arm/arm.c (bdesc_2arg): Fix typo.
2995 (arm_atomic_assign_expand_fenv): Remove The default implementation.
2996
2997 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
2998
2999 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
3000
3001 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
3002
3003 PR debug/61923
3004 * haifa-sched.c (advance_one_cycle): Fix dump.
3005 (schedule_block): Don't advance cycle if we are already at the
3006 beginning of the cycle.
3007
3008 2014-08-06 Martin Jambor <mjambor@suse.cz>
3009
3010 PR ipa/61393
3011 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
3012
3013 2014-08-06 Richard Biener <rguenther@suse.de>
3014
3015 PR lto/62034
3016 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
3017 SCCs here.
3018 (lto_input_tree): Pop SCCs here.
3019
3020 2014-08-06 Richard Biener <rguenther@suse.de>
3021
3022 PR tree-optimization/61320
3023 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
3024 handle misaligned loads.
3025
3026 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
3027
3028 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
3029 (aarch64_expand_vec_perm_const): Check for dup before zip.
3030
3031 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3032
3033 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
3034 CONST_INT_P instead of GET_CODE and compare.
3035 (aarch64_select_cc_mode): Likewise.
3036 (aarch64_print_operand): Likewise.
3037 (aarch64_rtx_costs): Likewise.
3038 (aarch64_simd_valid_immediate): Likewise.
3039 (aarch64_simd_check_vect_par_cnst_half): Likewise.
3040 (aarch64_simd_emit_pair_result_insn): Likewise.
3041
3042 2014-08-05 David Malcolm <dmalcolm@redhat.com>
3043
3044 * gdbhooks.py (find_gcc_source_dir): New helper function.
3045 (class PassNames): New class, locating and parsing passes.def.
3046 (class BreakOnPass): New command "break-on-pass".
3047
3048 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
3049
3050 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
3051 getting olde.
3052
3053 2014-08-05 Richard Biener <rguenther@suse.de>
3054
3055 PR rtl-optimization/61672
3056 * emit-rtl.h (mem_attrs_eq_p): Declare.
3057 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
3058 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
3059 * cfgcleanup.c (merge_memattrs): Likewise.
3060 Include emit-rtl.h.
3061
3062 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3063
3064 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
3065 rather than singleton vectors.
3066 (vqdmlsls_lane_s32): Likewise.
3067
3068 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3069
3070 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
3071 Use VSDQ_HSI mode iterator.
3072 (aarch64_sqrdmulh_laneq<mode>): Likewise.
3073 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
3074 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
3075 Use BUILTIN_VDQHS macro.
3076 (sqrdmulh_laneq): Likewise.
3077 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
3078 (vqdmlals_laneq_s32): Likewise.
3079 (vqdmlslh_laneq_s16): Likewise.
3080 (vqdmlsls_laneq_s32): Likewise.
3081 (vqdmulhh_laneq_s16): Likewise.
3082 (vqdmulhs_laneq_s32): Likewise.
3083 (vqrdmulhh_laneq_s16): Likewise.
3084 (vqrdmulhs_laneq_s32): Likewise.
3085
3086 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3087
3088 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
3089 (vmuld_laneq_f64): Likewise.
3090 (vmuls_laneq_f32): Likewise.
3091 (vmul_n_f64): Likewise.
3092 (vmuld_lane_f64): Reimplement in C.
3093 (vmuls_lane_f32): Likewise.
3094
3095 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3096
3097 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
3098 to reservation.
3099 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
3100
3101 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3102
3103 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
3104 (rbitsi2): Likewise.
3105 (*arm_rev): Set predicable and predicable_short_it attributes.
3106
3107 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3108
3109 * convert.c (convert_to_integer): Guard transformation to lrint by
3110 -fno-math-errno.
3111
3112 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
3113
3114 * config/aarch64/aarch64-builtins.c
3115 (aarch64_simd_builtin_type_mode): Delete.
3116 (v8qi_UP): Remap to V8QImode.
3117 (v4hi_UP): Remap to V4HImode.
3118 (v2si_UP): Remap to V2SImode.
3119 (v2sf_UP): Remap to V2SFmode.
3120 (v1df_UP): Remap to V1DFmode.
3121 (di_UP): Remap to DImode.
3122 (df_UP): Remap to DFmode.
3123 (v16qi_UP):V16QImode.
3124 (v8hi_UP): Remap to V8HImode.
3125 (v4si_UP): Remap to V4SImode.
3126 (v4sf_UP): Remap to V4SFmode.
3127 (v2di_UP): Remap to V2DImode.
3128 (v2df_UP): Remap to V2DFmode.
3129 (ti_UP): Remap to TImode.
3130 (ei_UP): Remap to EImode.
3131 (oi_UP): Remap to OImode.
3132 (ci_UP): Map to CImode.
3133 (xi_UP): Remap to XImode.
3134 (si_UP): Remap to SImode.
3135 (sf_UP): Remap to SFmode.
3136 (hi_UP): Remap to HImode.
3137 (qi_UP): Remap to QImode.
3138 (aarch64_simd_builtin_datum): Make mode a machine_mode.
3139 (VAR1): Build builtin name.
3140 (aarch64_init_simd_builtins): Remove dead code.
3141
3142 2014-08-05 Roman Gareev <gareevroman@gmail.com>
3143
3144 * graphite-isl-ast-to-gimple.c:
3145 (set_options): New function.
3146 (scop_to_isl_ast): Add calling of set_options.
3147
3148 2014-08-05 Jakub Jelinek <jakub@redhat.com>
3149
3150 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
3151 (analyze_iv_to_split_insn): Don't initialize them.
3152 (get_ivts_expr): Removed.
3153 (allocate_basic_variable, insert_base_initialization): Use
3154 SET_SRC instead of *get_ivts_expr.
3155 (split_iv): Use &SET_SRC instead of get_ivts_expr.
3156
3157 2014-08-05 Roman Gareev <gareevroman@gmail.com>
3158
3159 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
3160 (translate_isl_ast_for_loop): Add checking of the
3161 flag_loop_parallelize_all.
3162 (ast_build_before_for): New function.
3163 (scop_to_isl_ast): Add checking of the
3164 flag_loop_parallelize_all.
3165 * graphite-dependences.c: Move the defenition of the
3166 scop_get_dependences from graphite-optimize-isl.c to this file.
3167 (apply_schedule_on_deps): Add checking of the ux's emptiness.
3168 (carries_deps): Add checking of the x's value.
3169 * graphite-optimize-isl.c: Move the defenition of the
3170 scop_get_dependences to graphite-dependences.c.
3171 * graphite-poly.h: Add declarations of scop_get_dependences
3172 and carries_deps.
3173
3174 2014-08-04 Rohit <rohitarulraj@freescale.com>
3175
3176 PR target/60102
3177 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
3178 names.
3179 (alt_reg_names): Likewise.
3180 (rs6000_dwarf_register_span): For SPE high registers, replace
3181 dwarf register numbers with GCC hard register numbers.
3182 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
3183 (rs6000_dbx_register_number): For SPE high registers, return dwarf
3184 register number for the corresponding GCC hard register number.
3185 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
3186 newly added GCC hard register numbers for SPE high registers.
3187 (DWARF_FRAME_REGISTERS): Likewise.
3188 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
3189 (DWARF_FRAME_REGNUM): Likewise.
3190 (FIXED_REGISTERS): Likewise.
3191 (CALL_USED_REGISTERS): Likewise.
3192 (CALL_REALLY_USED_REGISTERS): Likewise.
3193 (REG_ALLOC_ORDER): Likewise.
3194 (enum reg_class): Likewise.
3195 (REG_CLASS_NAMES): Likewise.
3196 (REG_CLASS_CONTENTS): Likewise.
3197 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
3198
3199 2014-08-04 Richard Biener <rguenther@suse.de>
3200
3201 * gimple-fold.h (gimple_fold_builtin): Remove.
3202 * gimple-fold.c (gimple_fold_builtin): Make static.
3203 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
3204 fold_stmt, not gimple_fold_builtin.
3205
3206 2014-08-04 Martin Liska <mliska@suse.cz>
3207
3208 * cgraph.h (csi_end_p): Removed.
3209 (csi_next): Likewise.
3210 (csi_node): Likewise.
3211 (csi_start): Likewise.
3212 (cgraph_node_in_set_p): Likewise.
3213 (cgraph_node_set_size): Likewise.
3214 (vsi_end_p): Likewise.
3215 (vsi_next): Likewise.
3216 (vsi_node): Likewise.
3217 (vsi_start): Likewise.
3218 (varpool_node_set_size): Likewise.
3219 (cgraph_node_set_nonempty_p): Likewise.
3220 (varpool_node_set_nonempty_p): Likewise.
3221 * cgraphunit.c (cgraph_process_new_functions): vec replaces
3222 cgraph_node_set.
3223 * ipa-inline-transform.c: Likewise.
3224 * ipa-utils.c (cgraph_node_set_new): Removed.
3225 (cgraph_node_set_add): Likewise.
3226 (cgraph_node_set_remove): Likewise.
3227 (cgraph_node_set_find): Likewise.
3228 (dump_cgraph_node_set): Likewise.
3229 (debug_cgraph_node_set): Likewise.
3230 (free_cgraph_node_set): Likewise.
3231 (varpool_node_set_new): Likewise.
3232 (varpool_node_set_add): Likewise.
3233 (varpool_node_set_remove): Likewise.
3234 (varpool_node_set_find): Likewise.
3235 (dump_varpool_node_set): Likewise.
3236 (free_varpool_node_set): Likewise.
3237 (debug_varpool_node_set): Likewise.
3238 * tree-emutls.c (struct tls_var_data):
3239 (emutls_index): Removed.
3240 (emutls_decl): Likewise.
3241 (gen_emutls_addr): Function implementation uses newly added
3242 hash_map<varpool_node *, tls_var_data>.
3243 (clear_access_vars): Likewise.
3244 (create_emultls_var): Likewise.
3245 (ipa_lower_emutls): Likewise.
3246 (reset_access): New function.
3247
3248 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3249
3250 * config/i386/i386.c (ix86_option_override_internal): Add
3251 PTA_RDRND and PTA_MOVBE for bdver4.
3252
3253 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3254 James Greenhalgh <james.greenhalgh@arm.com>
3255
3256 * doc/md.texi (clrsb): Document.
3257 (clz): Change reference to x into operand 1.
3258 (ctz): Likewise.
3259 (popcount): Likewise.
3260
3261 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3262
3263 PR target/61713
3264 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
3265 move to subtarget in serial version if result is ignored.
3266
3267 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3268 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3269
3270 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
3271 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
3272 (sched_analyze_insn): Update use of try_group_insn to
3273 sched_macro_fuse_insns.
3274 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
3275 arguments that are not conditional jumps.
3276
3277 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3278
3279 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
3280 family information. Handle BTVER2 cpu with cpuid family value.
3281
3282 2014-08-04 Tom de Vries <tom@codesourcery.com>
3283
3284 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
3285 (glibc_2_11_or_earlier): Document effective-target keywords.
3286
3287 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
3288
3289 * ipa-devirt.c (odr_type_warn_count): Add type.
3290 (possible_polymorphic_call_targets): Set it.
3291 (ipa_devirt): Use it.
3292
3293 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
3294
3295 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
3296 Document.
3297 * ipa-devirt.c: Include hash-map.h
3298 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
3299 (clear_speculation): Break out of ...
3300 (get_class_context): ... here; speed up handling obviously useless
3301 speculations.
3302 (odr_type_warn_count, decl_warn_count): New structures.
3303 (final_warning_record): New structure.
3304 (final_warning_records): New static variable.
3305 (possible_polymorphic_call_targets): Cleanup handling of
3306 speculative info; do not build speculation when user do not care;
3307 record info about warnings when asked for.
3308 (add_decl_warning): New function.
3309 (type_warning_cmp): New function.
3310 (decl_warning_cmp): New function.
3311 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
3312 (gate): Enable pass when warnings are requested.
3313 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
3314 options.
3315
3316 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3317
3318 * hash-map.h (default_hashmap_traits::mark_key_deleted):
3319 Fix cast.
3320 (hash_map::remove): New method.
3321 (hash_map::traverse): New method.
3322 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
3323 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
3324 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
3325 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
3326 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
3327 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
3328 pointer_map.
3329
3330 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3331
3332 * hash-set.h: new File.
3333 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
3334 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
3335 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
3336 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
3337 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
3338 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
3339 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
3340 varpool.c: Use hash_set instead of pointer_set.
3341
3342 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
3343
3344 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
3345
3346 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3347
3348 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
3349 for frame access when strict_p is false.
3350
3351 2014-08-01 Renlin Li <renlin.li@arm.com>
3352 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3353
3354 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
3355 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
3356 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
3357 Declaration.
3358 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
3359 predicate.
3360 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
3361 aarch64_mem_pair_offset.
3362
3363 2014-08-01 Jiong Wang <jiong.wang@arm.com>
3364
3365 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
3366 offset.
3367 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
3368 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
3369
3370 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
3371
3372 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
3373
3374 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
3375
3376 PR regression/61510
3377 * cgraphunit.c (analyze_functions): Use get_create rather than get
3378 for decls which are clones of abstract functions.
3379
3380 2014-08-01 Martin Liska <mliska@suse.cz>
3381
3382 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
3383 * ipa-prop.h (count_formal_params): Global function created from static.
3384 * ipa-prop.c (count_formal_params): Likewise.
3385 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
3386 profiles for semantically equivalent functions.
3387 * passes.c (do_per_function): If we load body of a function
3388 during WPA, this condition should behave same.
3389 * varpool.c (ctor_for_folding): More tolerant assert for variable
3390 aliases created during WPA.
3391
3392 2014-08-01 Martin Liska <mliska@suse.cz>
3393
3394 * doc/invoke.texi (Options That Control Optimization): Documentation
3395 for -foptimize-strlen introduced. Optimization levels default options
3396 fixed.
3397
3398 2014-08-01 Jakub Jelinek <jakub@redhat.com>
3399
3400 * opts.c (common_handle_option): Handle -fsanitize=alignment.
3401 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
3402 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
3403 type to bool.
3404 * stor-layout.h (min_align_of_type): New prototype.
3405 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
3406 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
3407 check.
3408 * ubsan.c: Include builtins.h.
3409 (ubsan_expand_bounds_ifn): Change return type to bool,
3410 always return true.
3411 (ubsan_expand_null_ifn): Change return type to bool, change
3412 argument to gimple_stmt_iterator *. Handle both null and alignment
3413 sanitization, take type from ckind argument's type rather than
3414 first argument.
3415 (instrument_member_call): Removed.
3416 (instrument_mem_ref): Remove t argument, add mem and base arguments.
3417 Handle both null and alignment sanitization, don't say whole
3418 struct access is member access. Build 3 argument IFN_UBSAN_NULL
3419 call instead of 2 argument.
3420 (instrument_null): Adjust instrument_mem_ref caller. Don't
3421 instrument calls here.
3422 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
3423 like SANITIZE_NULL.
3424 * stor-layout.c (min_align_of_type): New function.
3425 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
3426 Or it into SANITIZE_UNDEFINED.
3427 * doc/invoke.texi (-fsanitize=alignment): Document.
3428
3429 2014-07-31 Andi Kleen <ak@linux.intel.com>
3430
3431 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
3432
3433 2014-07-31 Andi Kleen <ak@linux.intel.com>
3434
3435 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
3436 inchash.
3437 (vn_reference_compute_hash): Dito.
3438 (vn_nary_op_compute_hash): Dito.
3439 (vn_phi_compute_hash): Dito.
3440 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
3441
3442 2014-07-31 Andi Kleen <ak@linux.intel.com>
3443
3444 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
3445 Rename to inchash:add_expr_commutative. Convert to inchash.
3446 (iterative_hash_hashable_expr): Rename to
3447 inchash:add_hashable_expr. Convert to inchash.
3448 (avail_expr_hash): Dito.
3449
3450 2014-07-31 Andi Kleen <ak@linux.intel.com>
3451
3452 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
3453 Convert to inchash.
3454
3455 2014-07-31 Andi Kleen <ak@linux.intel.com>
3456
3457 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
3458
3459 2014-07-31 Andi Kleen <ak@linux.intel.com>
3460
3461 * Makefile.in (OBJS): Add rtlhash.o
3462 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
3463 (loc_checksum): Dito.
3464 (loc_checksum_ordered): Dito.
3465 (hash_loc_operands): Dito.
3466 (hash_locs): Dito.
3467 (hash_loc_list): Dito.
3468 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
3469 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
3470 * rtlhash.c: New file.
3471 * rtlhash.h: New file.
3472
3473 2014-07-31 Andi Kleen <ak@linux.intel.com>
3474
3475 * inchash.h (inchash): Change inchash class to namespace.
3476 (class hash): ... Rename from inchash.
3477 (add_object): Move from macro to class template.
3478 * lto-streamer-out.c (hash_tree): Change inchash
3479 to inchash::hash.
3480 * tree.c (build_type_attribute_qual_variant): Dito.
3481 (type_hash_list): Dito.
3482 (attribute_hash_list): Dito.
3483 (iterative_hstate_expr): Rename to inchash::add_expr
3484 (build_range_type_1): Change inchash to inchash::hash
3485 and use hash::add_expr.
3486 (build_array_type_1): Dito.
3487 (build_function_type): Dito
3488 (build_method_type_directly): Dito.
3489 (build_offset_type): Dito.
3490 (build_complex_type): Dito.
3491 (make_vector_type): Dito.
3492 * tree.h (iterative_hash_expr): Dito.
3493
3494 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
3495
3496 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
3497
3498 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3499
3500 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
3501 correct alphabetical position.
3502 (vpaddd_f64): Rewrite using builtins.
3503 (vpaddd_s64): Move to correct alphabetical position.
3504 (vpaddd_u64): New.
3505
3506 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
3507
3508 PR target/61844
3509 * config/sh/sh.c (sh_legitimate_address_p,
3510 sh_legitimize_reload_address): Handle reg+reg address modes when
3511 ALLOW_INDEXED_ADDRESS is false.
3512 * config/sh/predicates.md (general_movsrc_operand,
3513 general_movdst_operand): Likewise.
3514
3515 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3516
3517 * config/aarch64/aarch64-builtins.c
3518 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
3519 BYTES_BIG_ENDIAN.
3520
3521 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
3522
3523 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
3524 the generated mask based on BYTES_BIG_ENDIAN.
3525 (aarch64_simd_check_vect_par_cnst_half): New.
3526 * config/aarch64/aarch64-protos.h
3527 (aarch64_simd_check_vect_par_cnst_half): New.
3528 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
3529 the check out to aarch64_simd_check_vect_par_cnst_half.
3530 (vect_par_cnst_lo_half): Likewise.
3531 * config/aarch64/aarch64-simd.md
3532 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
3533 (move_hi_quad_<mode>): Always generate a low mask.
3534
3535 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3536
3537 * doc/invoke.texi (AVR Options): Add documentation about
3538 __AVR_DEVICE_NAME__ built-in macro.
3539
3540 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
3541
3542 PR target/61948
3543 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
3544 constraints are satisfied.
3545 (<shift>di3_neon): Likewise.
3546
3547 2014-07-31 Richard Biener <rguenther@suse.de>
3548
3549 PR tree-optimization/61964
3550 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
3551 by structural equality.
3552
3553 2014-07-31 Yury Gribov <y.gribov@samsung.com>
3554
3555 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
3556 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
3557 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
3558 New enums.
3559 * gcc.c (sanitize_spec_function): Support new option.
3560 (SANITIZER_SPEC): Remove now redundant check.
3561 * opts.c (common_handle_option): Support new option.
3562 (finish_options): Check for incompatibilities.
3563 * toplev.c (process_options): Split userspace-specific checks.
3564
3565 2014-07-31 Richard Biener <rguenther@suse.de>
3566
3567 * lto-streamer.h (struct output_block): Remove global.
3568 (struct data_in): Remove labels, num_named_labels and
3569 num_unnamed_labels.
3570 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
3571 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
3572
3573 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
3574
3575 PR c++/60517
3576 * common.opt (-Wreturn-local-addr): Moved from c.opt.
3577 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
3578 (isolate_path): New argument to avoid inserting a trap.
3579 (find_implicit_erroneous_behaviour): Handle returning the address
3580 of a local variable.
3581 (find_explicit_erroneous_behaviour): Likewise.
3582
3583 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
3584
3585 PR lto/61868
3586 * toplev.c (init_random_seed): Move piece of code never called to
3587 set_random_seed.
3588 (set_random_seed): see above.
3589
3590 2014-07-31 Tom de Vries <tom@codesourcery.com>
3591
3592 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
3593
3594 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
3595
3596 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
3597 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
3598
3599 2014-07-31 Richard Biener <rguenther@suse.de>
3600
3601 * data-streamer.h (streamer_write_data_stream): Declare here,
3602 renamed from ...
3603 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
3604 * lto-cgraph.c (lto_output_node): Adjust.
3605 (lto_output_varpool_node): Likewise.
3606 * data-streamer-out.c (streamer_string_index): Likewise.
3607 (streamer_write_data_stream, lto_append_block): Move from ...
3608 * lto-section-out.c (lto_output_data_stream,
3609 lto_append_block): ... here.
3610
3611 2014-07-30 Mike Stump <mikestump@comcast.net>
3612
3613 * configure.ac: Also check for popen.
3614 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
3615 * configure: Regenerate.
3616 * config.in: Regenerate.
3617
3618 2014-07-30 Martin Jambor <mjambor@suse.cz>
3619
3620 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
3621 parameter to gimple.
3622
3623 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3624
3625 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
3626 address as second parameter to __tpf_eh_return routine.
3627
3628 2014-07-30 Jiong Wang <jiong.wang@arm.com>
3629
3630 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
3631 Thumb2.
3632
3633 2014-07-30 Tom Tromey <tromey@redhat.com>
3634
3635 PR c/59855
3636 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
3637 * doc/extend.texi (Type Attributes): Document designated_init
3638 attribute.
3639
3640 2014-07-30 Roman Gareev <gareevroman@gmail.com>
3641
3642 * graphite-isl-ast-to-gimple.c:
3643 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
3644 (gcc_expression_from_isl_expression): Pass type to
3645 gcc_expression_from_isl_ast_expr_id.
3646
3647 2014-07-30 Richard Biener <rguenther@suse.de>
3648
3649 * lto-streamer.h (lto_write_data): New function.
3650 * langhooks.c (lhd_append_data): Do not free block.
3651 * lto-section-out.c (lto_write_data): New function writing
3652 raw data to the current section.
3653 (lto_write_stream): Adjust for langhook semantic change.
3654 (lto_destroy_simple_output_block): Write header directly.
3655 * lto-opts.c (lto_write_options): Write options directly.
3656 * lto-streamer-out.c (produce_asm): Write heaeder directly.
3657 (lto_output_toplevel_asms): Likewise.
3658 (copy_function_or_variable): Copy data directly.
3659 (write_global_references): Output index table directly.
3660 (lto_output_decl_state_refs): Likewise.
3661 (write_symbol): Write data directly.
3662 (produce_symtab): Adjust.
3663 (produce_asm_for_decls): Output header and refs directly.
3664
3665 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3666
3667 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
3668 to speculative_targets
3669 (get_class_context): Fix handling of contextes without outer type;
3670 avoid matching non-polymorphic types in LTO.
3671 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
3672 parameter to speculative_targetsp; handle speculation.
3673 (dump_possible_polymorphic_call_targets): Update dumping.
3674
3675 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
3676
3677 * common.opt (Wodr): Enable by default.
3678
3679 2014-07-29 Olivier Hainque <hainque@adacore.com>
3680
3681 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
3682
3683 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
3684
3685 PR bootstrap/61914
3686 * gengtype.c (strtoken): New function.
3687 (create_user_defined_type): Replace strtok with strtoken.
3688
3689 2014-07-29 Nathan Sidwell <nathan@acm.org>
3690
3691 * gcov-io.c (gcov_var): Make hidden.
3692 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
3693 (gcov_do_dump): Declare.
3694 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
3695
3696 2014-07-29 Martin Jambor <mjambor@suse.cz>
3697
3698 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
3699 parameter to gimple.
3700 (sra_modify_assign): Likewise.
3701
3702 2014-07-29 Richard Biener <rguenther@suse.de>
3703
3704 PR middle-end/52478
3705 * expr.c (expand_expr_real_2): Revert last change.
3706
3707 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3708
3709 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
3710 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
3711 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
3712 call.
3713 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
3714 (contains_type_p): Forward declare.
3715 (polymorphic_call_target_hasher::hash): Hash speculative info.
3716 (polymorphic_call_target_hasher::equal): Compare speculative info.
3717 (get_class_context): Handle speuclation.
3718 (contains_type_p): Update.
3719 (get_polymorphic_call_info_for_decl): Update.
3720 (walk_ssa_copies): Break out from ...
3721 (get_polymorphic_call_info): ... here; set speculative context
3722 before giving up.
3723 * ipa-prop.c (ipa_write_indirect_edge_info,
3724 ipa_read_indirect_edge_info): Stream speculative context.
3725 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
3726 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
3727 SPECULATIVE_MAYBE_DERIVED_TYPE).
3728 (possible_polymorphic_call_targets overriders): Update.
3729 (dump_possible_polymorphic_call_targets overriders): Update.
3730 (dump_possible_polymorphic_call_target_p overriders): Update.
3731
3732 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
3733
3734 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
3735 ipa-devirt path; fix thinko there.
3736
3737 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
3738
3739 * config/i386/i386.c (ix86_return_in_memory): Replace one
3740 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
3741
3742 2014-07-28 Marek Polacek <polacek@redhat.com>
3743
3744 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
3745
3746 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
3747
3748 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
3749 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
3750 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
3751 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3752 (USE_LD_AS_NEEDED): Likewise.
3753 (ASM_APP_ON): Likewise.
3754 (ASM_APP_OFF): Likewise.
3755 (TARGET_POSIX_IO): Likewise.
3756 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
3757 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3758 (USE_LD_AS_NEEDED): Likewise.
3759 (ASM_APP_ON): Likewise.
3760 (ASM_APP_OFF): Likewise.
3761 (TARGET_POSIX_IO): Likewise.
3762
3763 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
3764
3765 PR middle-end/61734
3766 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
3767 operators other than the equality operators.
3768
3769 2014-07-28 Richard Biener <rguenther@suse.de>
3770
3771 PR middle-end/52478
3772 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
3773 sure to register SImode ones, not only >= word_mode ones.
3774 * expr.c (expand_expr_real_2): When expanding -ftrapv
3775 binops do not use OPTAB_LIB_WIDEN.
3776
3777 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
3778
3779 PR middle-end/61919
3780 * tree-outof-ssa.c (insert_partition_copy_on_edge)
3781 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
3782 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
3783 inserting them in the insn stream.
3784
3785 2014-07-28 Marek Polacek <polacek@redhat.com>
3786
3787 PR middle-end/61913
3788 * common.opt (Wodr): Add Var.
3789
3790 2014-07-28 Richard Biener <rguenther@suse.de>
3791
3792 PR tree-optimization/61921
3793 * tree-ssa-structalias.c (create_variable_info_for_1): Check
3794 if there is a varpool node before dereferencing it.
3795
3796 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3797
3798 * graphite-sese-to-poly.c:
3799 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
3800 id of the pbb), which contains pointer to the pbb1.
3801
3802 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
3803
3804 2014-07-28 Roman Gareev <gareevroman@gmail.com>
3805
3806 * graphite-isl-ast-to-gimple.c:
3807 (graphite_create_new_guard): New function.
3808 (translate_isl_ast_node_if): New function.
3809 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
3810
3811 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
3812
3813 2014-07-27 Anthony Green <green@moxielogic.com>
3814
3815 * config.gcc: Add moxie-*-moxiebox* configuration.
3816 * config/moxie/moxiebox.h: New file.
3817
3818 2014-07-26 Andrew Pinski <apinski@cavium.com>
3819
3820 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
3821 from the read only register.
3822
3823 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3824
3825 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
3826 as the allocation class if it isn't likely to be spilled.
3827
3828 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
3829
3830 * rtl.h (tls_referenced_p): Declare.
3831 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
3832 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
3833 (mips_cannot_force_const_mem): Use tls_referenced_p.
3834 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
3835 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
3836 instead of pa_tls_referenced_p.
3837 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
3838 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
3839 (pa_legitimate_constant_p): Likewise.
3840 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
3841 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
3842 (rs6000_cannot_force_const_mem, rs6000_emit_move)
3843 (rs6000_address_for_altivec): Use tls_referenced_p instead of
3844 rs6000_tls_referenced_p.
3845 (rs6000_tls_symbol_ref_1): Delete.
3846
3847 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
3848
3849 PR target/44551
3850 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3851 Optimize inverse of a VEC_CONCAT.
3852
3853 2014-07-25 Xinliang David Li <davidxl@google.com>
3854
3855 * params.def: New parameter.
3856 * coverage.c (get_coverage_counts): Check new flag.
3857 (coverage_compute_profile_id): Check new flag.
3858 (coverage_begin_function): Check new flag.
3859 (coverage_end_function): Check new flag.
3860 * value-prof.c (coverage_node_map_initialized_p): New function.
3861 (init_node_map): Populate map with all functions.
3862 * doc/invoke.texi: Document new parameter.
3863
3864 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
3865 Richard Biener <rguenther@suse.de>
3866
3867 * lto-streamer-out.c (struct sccs): Turn to ...
3868 (class DFS): ... this one; refactor the DFS walk so it can
3869 be re-done on per-SCC basis.
3870 (DFS::DFS): New constructor.
3871 (DFS::~DFS): New destructor.
3872 (hash_tree): Add new MAP argument holding in-SCC hash values;
3873 remove POINTER_TYPE hashing hack.
3874 (scc_entry_compare): Rename to ...
3875 (DFS::scc_entry_compare): ... this one.
3876 (hash_scc): Rename to ...
3877 (DFS::hash_scc): ... this one; pass output_block instead
3878 of streamer_cache; work harder to get unique and stable SCC
3879 hashes.
3880 (DFS_write_tree): Rename to ...
3881 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
3882 (lto_output_tree): Update.
3883
3884 2014-07-25 Andi Kleen <ak@linux.intel.com>
3885
3886 * lto-streamer-out.c (hash_tree): Convert to inchash.
3887
3888 2014-07-25 Andi Kleen <ak@linux.intel.com>
3889
3890 * tree.c (build_type_attribute_qual_variant): Use inchash.
3891 (type_hash_list): Dito.
3892 (attribute_hash_list): Dito
3893 (iterative_hstate_expr): Dito.
3894 (iterative_hash_expr): Dito.
3895 (build_range_type_1): Dito.
3896 (build_array_type_1): Dito.
3897 (build_function_type): Dito.
3898 (build_method_type_directly): Dito.
3899 (build_offset_type): Dito.
3900 (build_complex_type): Dito.
3901 (make_vector_type): Dito.
3902 * tree.h (iterative_hash_expr): Add compat wrapper.
3903 (iterative_hstate_expr): Add.
3904
3905 2014-07-25 Andi Kleen <ak@linux.intel.com>
3906
3907 * Makefile.in (OBJS): Add inchash.o.
3908 (PLUGIN_HEADERS): Add inchash.h.
3909 * ipa-devirt.c: Include inchash.h.
3910 * lto-streamer-out.c: Dito.
3911 * tree-ssa-dom.c: Dito.
3912 * tree-ssa-pre.c: Dito.
3913 * tree-ssa-sccvn.c: Dito.
3914 * tree-ssa-tail-merge.c: Dito.
3915 * asan.c: Dito.
3916 * tree.c (iterative_hash_hashval_t): Move to ...
3917 (iterative_hash_host_wide_int): Move to ...
3918 * inchash.c: Here. New file.
3919 * tree.h (iterative_hash_hashval_t): Move to ...
3920 (iterative_hash_host_wide_int): Move to ...
3921 * inchash.h: Here. New file.
3922
3923 2014-07-25 Richard Biener <rguenther@suse.de>
3924
3925 PR middle-end/61762
3926 PR middle-end/61894
3927 * fold-const.c (native_encode_int): Add and handle offset
3928 parameter to do partial encodings of expr.
3929 (native_encode_fixed): Likewise.
3930 (native_encode_real): Likewise.
3931 (native_encode_complex): Likewise.
3932 (native_encode_vector): Likewise.
3933 (native_encode_string): Likewise.
3934 (native_encode_expr): Likewise.
3935 * fold-const.c (native_encode_expr): Add offset parameter
3936 defaulting to -1.
3937 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
3938 (fold_ctor_reference): Handle all reads from tcc_constant
3939 ctors.
3940
3941 2014-07-25 Richard Biener <rguenther@suse.de>
3942
3943 * tree-inline.c (estimate_move_cost): Mark speed_p argument
3944 as possibly unused.
3945
3946 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3947
3948 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
3949
3950 2014-07-24 Kyle McMartin <kyle@redhat.com>
3951
3952 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
3953
3954 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3955
3956 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
3957 Add prototype.
3958 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
3959 function.
3960 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
3961 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3962 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
3963
3964 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3965
3966 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
3967 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
3968 aggregate types. Instead, *all* aggregate types, except for single-
3969 element or homogeneous float/vector aggregates, are quadword-aligned
3970 if required by their type alignment. Issue -Wpsabi note when a type
3971 is now treated differently than before.
3972
3973 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3974
3975 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
3976 does not fit fully into floating-point registers, and there is still
3977 space in the register parameter area, use GPRs to pass those parts
3978 of the argument. Issue -Wpsabi note if any parameter is now treated
3979 differently than before.
3980 (rs6000_arg_partial_bytes): Update.
3981
3982 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
3983
3984 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
3985
3986 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3987
3988 * rtl.h (target_rtl): Remove lang_dependent_initialized.
3989 * toplev.c (initialize_rtl): Don't use it. Move previously
3990 "language-dependent" calls to...
3991 (backend_init): ...here.
3992 (lang_dependent_init_target): Don't set lang_dependent_initialized.
3993 Assert that RTL initialization hasn't happend yet.
3994
3995 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
3996
3997 PR rtl-optimization/61629
3998 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
3999 they have already been initialized.
4000
4001 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
4002
4003 PR middle-end/61268
4004 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
4005 DECL_INCOMING_RTL and entry_parm.
4006 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
4007 * calls.c (load_register_parameters): Likewise argument values.
4008 (emit_library_call_value_1, store_one_arg): Likewise argument
4009 save areas.
4010 * config/i386/i386.c (assign_386_stack_local): Likewise the local
4011 stack slot.
4012 * explow.c (validize_mem): Modify the argument in-place.
4013
4014 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4015
4016 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
4017 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
4018
4019 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4020
4021 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
4022 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
4023
4024 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4025
4026 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
4027 (aarch64_save_callee_saves): New parameter "skip_wb".
4028 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
4029
4030 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4031
4032 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
4033 "wb_candidate2".
4034 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
4035
4036 2014-07-24 Roman Gareev <gareevroman@gmail.com>
4037
4038 * graphite-isl-ast-to-gimple.c:
4039 (graphite_create_new_loop): Add calling of isl_id_free to properly
4040 decrement reference counts.
4041
4042 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
4043
4044 2014-07-24 Martin Liska <mliska@suse.cz>
4045 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
4046 function used.
4047 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
4048 (rs6000_code_end): Likewise.
4049
4050 2014-07-24 Martin Liska <mliska@suse.cz>
4051
4052 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
4053 symtab_node funtion used.
4054 (rs6000_xcoff_declare_object_name): Likewise.
4055
4056 2014-07-24 Martin Liska <mliska@suse.cz>
4057
4058 * cgraphunit.c (compile): Correct function used.
4059
4060 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
4061
4062 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
4063 as non-indexable.
4064
4065 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
4066
4067 PR lto/61802
4068 * varasm.c (bss_initializer_p): Handle offlined ctors.
4069 (align_variable, get_variable_align): Likewise.
4070 (make_decl_one_only): Likewise.
4071 (default_binds_local_p_1): Likewise.
4072 (decl_binds_to_current_def_p): Likewise.
4073 (get_variable_section): Get constructor if it is offlined.
4074 (assemble_variable_contents): Sanity check that the caller
4075 streamed in the ctor in LTO.
4076
4077 2014-07-24 Roman Gareev <gareevroman@gmail.com>
4078
4079 * graphite-isl-ast-to-gimple.c:
4080 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
4081 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
4082 isl_ast_op_pdiv_r to the different case.
4083
4084 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
4085
4086 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4087
4088 PR middle-end/61876
4089 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
4090 when flag_errno_math is on.
4091
4092 2014-07-24 Martin Liska <mliska@suse.cz>
4093
4094 * cgraph.h (varpool_node):
4095 (availability get_availability (void)):
4096 created from cgraph_variable_initializer_availability
4097 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
4098 created from: cgraph_variable_initializer_availability
4099 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
4100 (void finalize_named_section_flags (void)):
4101 created from varpool_finalize_named_section_flags
4102 (bool assemble_decl (void)): created from varpool_assemble_decl
4103 (void analyze (void)): created from varpool_analyze_node
4104 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
4105 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
4106 (void remove_initializer (void)): created from varpool_remove_initializer
4107 (tree get_constructor (void)): created from varpool_get_constructor
4108 (bool externally_visible_p (void)): created from varpool_externally_visible_p
4109 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
4110 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
4111 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
4112 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
4113 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
4114 (static bool output_variables (void)): created from varpool_output_variables
4115 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
4116 created from varpool_extra_name_alias
4117 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
4118 (static void dump_varpool (FILE *f)): created from dump_varpool
4119 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
4120 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
4121 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
4122 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
4123 (void assemble_aliases (void)): created from assemble_aliases
4124
4125 2014-07-24 Martin Liska <mliska@suse.cz>
4126
4127 * cgraph.h (symtab_node):
4128 (void register_symbol (void)): created from symtab_register_node
4129 (void remove (void)): created from symtab_remove_node
4130 (void dump (FILE *f)): created from dump_symtab_node
4131 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
4132 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
4133 (struct ipa_ref *add_reference (symtab_node *referred_node,
4134 enum ipa_ref_use use_type)): created from add_reference
4135 (struct ipa_ref *add_reference (symtab_node *referred_node,
4136 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
4137 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
4138 gimple stmt)): created from maybe_add_reference
4139 (bool semantically_equivalent_p (symtab_node *target)): created from
4140 symtab_semantically_equivalent_p
4141 (void remove_from_same_comdat_group (void)): created from
4142 remove_from_same_comdat_group
4143 (void add_to_same_comdat_group (symtab_node *old_node)): created from
4144 symtab_add_to_same_comdat_group
4145 (void dissolve_same_comdat_group_list (void)): created from
4146 symtab_dissolve_same_comdat_group_list
4147 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
4148 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
4149 created from symtab_alias_ultimate_target
4150 (inline symtab_node *next_defined_symbol (void)): created from
4151 symtab_next_defined_symbol
4152 (bool resolve_alias (symtab_node *target)): created from
4153 symtab_resolve_alias
4154 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
4155 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
4156 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
4157 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
4158 (void set_section (const char *section)): created from set_section_1
4159 (enum availability get_availability (void)): created from symtab_node_availability
4160 (void make_decl_local (void)): created from symtab_make_decl_local
4161 (bool real_symbol_p (void)): created from symtab_read_node
4162 (can_be_discarded_p (void)): created from symtab_can_be_discarded
4163 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
4164 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
4165 symtab_in_same_comdat_p;
4166 (bool address_taken_from_non_vtable_p (void)): created from
4167 address_taken_from_non_vtable_p
4168 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
4169 (static void dump_table (FILE *)): created from dump_symtab
4170 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
4171 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
4172 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
4173 symtab_used_from_object_file_p
4174 (void dump_base (FILE *)): created from dump_symtab_base
4175 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
4176 (void unregister (void)): created from symtab_unregister_node
4177 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
4178 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
4179 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
4180 symtab_nonoverwritable_alias_1
4181 * cgraph.h (cgraph_node):
4182 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
4183 created from cgraph_remove_node_and_inline_clones
4184 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
4185 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
4186 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
4187 (cgraph_node *function_symbol (enum availability *avail = NULL)):
4188 created from cgraph_function_node
4189 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
4190 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
4191 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
4192 created from cgraph_create_clone
4193 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
4194 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
4195 created from cgraph_create_virtual_clone
4196 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
4197 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
4198 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
4199 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
4200 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
4201 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
4202 created from cgraph_function_version_info
4203 (struct cgraph_function_version_info *insert_new_function_version (void)):
4204 created from insert_new_cgraph_node_version
4205 (struct cgraph_function_version_info *function_version (void)): created from
4206 get_cgraph_node_version
4207 (void analyze (void)): created from analyze_function
4208 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
4209 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
4210 tree real_alias) cgraph_add_thunk
4211 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
4212 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
4213 created from cgraph_function_or_thunk_node
4214 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
4215 created from expand_thunk
4216 (void reset (void)): created from cgraph_reset_node
4217 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
4218 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
4219 (void remove (void)): created from cgraph_remove_node
4220 (void dump (FILE *f)): created from dump_cgraph_node
4221 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
4222 (bool get_body (void)): created from cgraph_get_body
4223 (void release_body (void)): created from cgraph_release_function_body
4224 (void unnest (void)): created from cgraph_unnest_node
4225 (void make_local (void)): created from cgraph_make_node_local
4226 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
4227 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
4228 gcov_type count, int freq)): created from cgraph_create_edge
4229 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
4230 gcov_type count, int freq)): created from cgraph_create_indirect_edge
4231 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
4232 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
4233 created from cgraph_create_edge_including_clones
4234 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
4235 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
4236 (void remove_callers (void)): created from cgraph_node_remove_callers
4237 (void remove_callees (void)): created from cgraph_node_remove_callees
4238 (enum availability get_availability (void)): created from cgraph_function_body_availability
4239 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
4240 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
4241 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
4242 (void call_duplication_hooks (cgraph_node *node2)): created from
4243 cgraph_call_node_duplication_hooks
4244 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
4245 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
4246 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
4247 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
4248 (void call_function_insertion_hooks (void)):
4249 created from cgraph_call_function_insertion_hooks
4250 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
4251 (bool local_p (void)): created from cgraph_local_node
4252 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
4253 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
4254 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
4255 (inline bool only_called_directly_or_aliased_p (void)):
4256 created from cgraph_only_called_directly_or_aliased_p
4257 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
4258 created from cgraph_will_be_removed_from_program_if_no_direct_calls
4259 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
4260 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
4261 (bool can_remove_if_no_direct_calls_p (void)):
4262 created from cgraph_can_remove_if_no_direct_calls_p
4263 (inline bool has_gimple_body_p (void)):
4264 created from cgraph_function_with_gimple_body_p
4265 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
4266 (static void dump_cgraph (FILE *f)): created from dump_cgraph
4267 (static inline void debug_cgraph (void)): created from debug_cgraph
4268 (static void record_function_versions (tree decl1, tree decl2)):
4269 created from record_function_versions
4270 (static void delete_function_version (tree decl)):
4271 created from delete_function_version
4272 (static void add_new_function (tree fndecl, bool lowered)):
4273 created from cgraph_add_new_function
4274 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
4275 (static cgraph_node * create (tree decl)): created from cgraph_create_node
4276 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
4277 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
4278 (static cgraph_node *get_for_asmname (tree asmname)):
4279 created from cgraph_node_for_asm
4280 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
4281 created from cgraph_same_body_alias
4282 (static bool used_from_object_file_p_worker (cgraph_node *node,
4283 void *): new function
4284 (static bool non_local_p (cgraph_node *node, void *)):
4285 created from cgraph_non_local_node_p_1
4286 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
4287 created from verify_cgraph
4288 (static bool make_local (cgraph_node *node, void *)):
4289 created from cgraph_make_node_local
4290 (static cgraph_node *create_alias (tree alias, tree target)):
4291 created from cgraph_create_function_alias
4292 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
4293 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
4294 created from cgraph_create_edge_1
4295 * cgraph.h (varpool_node):
4296 (void remove (void)): created from varpool_remove_node
4297 (void dump (FILE *f)): created from dump_varpool_node
4298
4299 2014-07-24 Richard Biener <rguenther@suse.de>
4300
4301 PR ipa/61823
4302 * tree-ssa-structalias.c (create_variable_info_for_1):
4303 Use varpool_get_constructor.
4304 (create_variable_info_for): Likewise.
4305
4306 2014-07-24 Jiong Wang <jiong.wang@arm.com>
4307
4308 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
4309 subtract outgoing area size when restoring stack_pointer_rtx.
4310
4311 2014-07-24 Nick Clifton <nickc@redhat.com>
4312
4313 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
4314 that operations are taking place in parallel.
4315 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
4316
4317 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
4318
4319 * omp-low.c (extract_omp_for_data): Add missing break statement.
4320
4321 2014-07-24 Richard Biener <rguenther@suse.de>
4322
4323 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
4324 * tree-inline.c (estimate_move_cost): Add speed_p parameter
4325 and adjust MOVE_RATIO query accordingly.
4326 (estimate_num_insns): Adjust callers.
4327 * ipa-prop.c (ipa_populate_param_decls): Likewise.
4328 * ipa-cp.c (gather_context_independent_values,
4329 estimate_local_effects): Likewise.
4330 * ipa-split.c (consider_split): Likewise.
4331
4332 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
4333
4334 * config/i386/driver-i386.c: Remove names of unused arguments and
4335 unnecessary unused attributes.
4336 * config/i386/host-mingw32.c: Likewise.
4337 * config/i386/i386.c: Likewise.
4338 * config/i386/winnt-stubs.c: Likewise.
4339 * config/i386/winnt.c: Likewise.
4340
4341 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4342
4343 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
4344 (aarch64_gen_loadwb_pair): New helper function.
4345 (aarch64_expand_epilogue): Simplify code using new helper functions.
4346 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
4347
4348 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4349
4350 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
4351 (aarch64_gen_storewb_pair): New helper function.
4352 (aarch64_expand_prologue): Simplify code using new helper functions.
4353 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
4354
4355 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4356
4357 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
4358 Rename to aarch64_save_callee_saves, remove restore code.
4359 (aarch64_restore_callee_saves): New function.
4360
4361 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4362
4363 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
4364 (aarch64_save_callee_saves): New function to handle reg save
4365 for both core and vectore regs.
4366
4367 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4368
4369 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
4370 (aarch64_gen_store_pair): New helper function.
4371 (aarch64_save_or_restore_callee_save_registers)
4372 (aarch64_save_or_restore_fprs): Use new helper functions.
4373
4374 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4375
4376 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
4377 (aarch64_save_or_restore_callee_save_registers)
4378 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
4379
4380 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4381
4382 * config/aarch64/aarch64.c
4383 (aarch64_save_or_restore_callee_save_registers)
4384 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
4385
4386 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4387
4388 * config/aarch64/aarch64.c
4389 (aarch64_save_or_restore_callee_save_registers)
4390 (aarch64_save_or_restore_fprs): Remove 'increment'.
4391
4392 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4393
4394 * config/aarch64/aarch64.c
4395 (aarch64_save_or_restore_callee_save_registers)
4396 (aarch64_save_or_restore_fprs): Use register offset in
4397 cfun->machine->frame.reg_offset.
4398
4399 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4400
4401 * config/aarch64/aarch64.c
4402 (aarch64_save_or_restore_callee_save_registers)
4403 (aarch64_save_or_restore_fprs): Remove base_rtx.
4404
4405 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4406
4407 * config/aarch64/aarch64.c
4408 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
4409 to 'start_offset'. Remove local variable 'start_offset'.
4410
4411 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4412
4413 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
4414 type to HOST_WIDE_INT.
4415
4416 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4417
4418 * config/aarch64/aarch64.c (aarch64_expand_prologue)
4419 (aarch64_save_or_restore_fprs)
4420 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
4421
4422 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4423
4424 * config/arm/t-rtems-eabi: Add
4425 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
4426 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
4427 mbig-endian/mthumb/march=armv7-r, and
4428 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
4429 multilibs.
4430
4431 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
4432 Chris Johns <chrisj@rtems.org>
4433 Joel Sherrill <joel.sherrill@oarcorp.com>
4434
4435 * config.gcc: Add nios2-*-rtems*.
4436 * config/nios2/rtems.h: New file.
4437 * gcc/config/nios2/t-rtems: New file.
4438
4439 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
4440
4441 PR target/61396
4442 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
4443 constant numbers, not general constants.
4444 (rs6000_expand_vector_init): Ditto.
4445
4446 2014-07-23 Nathan Sidwell <nathan@acm.org>
4447
4448 * gcov-tool.c (gcov_list): Declare here.
4449 (set_gcov_list): Remove.
4450 (gcov_output_files): Set gcov_list directly.
4451
4452 2014-07-23 Host Schirmeier <horst@schirmeier.com>
4453
4454 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
4455
4456 2014-07-23 Jiong Wang <jiong.wang@arm.com>
4457
4458 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
4459 callee-saved registers are available for padding purpose
4460 and r3 is not mandatory, then prefer use those callee-saved
4461 instead of r3.
4462
4463 2014-07-23 Richard Biener <rguenther@suse.de>
4464
4465 * params.def (PARAM_MAX_COMBINE_INSNS): New.
4466 * combine.c: Include statistics.h and params.h.
4467 (combine_instructions): Guard three and four insn combines
4468 with max-combine-insns value. Record statistics for combines
4469 performed.
4470 * doc/invoke.texi (max-combine-insns): Document new param.
4471
4472 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4473
4474 * graphite-isl-ast-to-gimple.c:
4475 (translate_isl_ast_node_block): New function.
4476 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
4477
4478 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
4479 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
4480
4481 2014-07-23 Roman Gareev <gareevroman@gmail.com>
4482
4483 * graphite-isl-ast-to-gimple.c:
4484 (get_max_schedule_dimensions): New function.
4485 (extend_schedule): Likewise.
4486 (generate_isl_schedule): Add calling of extend_schedule and
4487 get_max_schedule_dimensions.
4488
4489 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4490
4491 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
4492 (case UNSPEC): Handle UNSPEC_RBIT.
4493
4494 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4495
4496 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
4497 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
4498
4499 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4500
4501 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
4502
4503 2014-07-22 Roman Gareev <gareevroman@gmail.com>
4504
4505 * graphite-isl-ast-to-gimple.c:
4506 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
4507 (ivs_params_clear):
4508 (build_iv_mapping): New function.
4509 (translate_isl_ast_node_user): Likewise.
4510 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
4511
4512 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
4513 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
4514 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
4515
4516 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4517
4518 PR target/55701
4519 * config/arm/arm.md (setmem): New pattern.
4520 * config/arm/arm-protos.h (struct tune_params): New fields.
4521 (arm_gen_setmem): New prototype.
4522 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
4523 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4524 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4525 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
4526 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
4527 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
4528 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
4529 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4530 (arm_const_inline_cost): New function.
4531 (arm_block_set_max_insns): New function.
4532 (arm_block_set_non_vect_profit_p): New function.
4533 (arm_block_set_vect_profit_p): New function.
4534 (arm_block_set_unaligned_vect): New function.
4535 (arm_block_set_aligned_vect): New function.
4536 (arm_block_set_unaligned_non_vect): New function.
4537 (arm_block_set_aligned_non_vect): New function.
4538 (arm_block_set_vect, arm_gen_setmem): New functions.
4539
4540 2014-07-21 Bin Cheng <bin.cheng@arm.com>
4541
4542 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
4543
4544 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
4545
4546 PR target/61855
4547 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
4548 out of #ifdef __OPTIMIZE__.
4549
4550 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4551
4552 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
4553 different trapping status if -fnon-call-exceptions is enabled.
4554
4555 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
4556
4557 * expr.c (store_field): Handle VOIDmode for calls that return values
4558 in multiple locations.
4559
4560 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4561
4562 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
4563 (altivec_vsldoi_<mode>): Likewise.
4564
4565 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4566
4567 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
4568 to the number of characters in the line.
4569
4570 2014-07-20 Roman Gareev <gareevroman@gmail.com>
4571
4572 * graphite-isl-ast-to-gimple.c: Add using of
4573 build_nonstandard_integer_type instead of int128_integer_type_node.
4574
4575 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
4576
4577 * toplev.c (output_stack_usage): Adjust the location of the warning.
4578
4579 2014-07-19 Daniel Cederman <cederman@gaisler.com>
4580
4581 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
4582 (*membar_storeload): Disable for LEON3.
4583
4584 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4585
4586 PR rtl-optimization/61461
4587 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
4588
4589 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
4590
4591 PR target/61794
4592 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
4593 Fix instruction constraint.
4594 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
4595
4596 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
4597
4598 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
4599
4600 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
4601
4602 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
4603 GNU coding standards.
4604 (nds32_register_move_cost): Likewise.
4605 (nds32_memory_move_cost): Likewise.
4606 (nds32_address_cost): Likewise.
4607
4608 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4609
4610 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
4611
4612 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
4613
4614 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
4615 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
4616 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4617 (HAVE_sync_compare_and_swapqi): Define.
4618 (HAVE_sync_compare_and_swaphi): Likewise.
4619 (HAVE_sync_compare_and_swapsi): Likewise.
4620
4621 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
4622
4623 * config/mips/p5600.md: Add missing cpu tests.
4624
4625 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4626
4627 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
4628 (vmla_f64): Likewise.
4629 (vfms_f64): Likewise.
4630 (vmls_f64): Likewise.
4631
4632 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4633
4634 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
4635 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
4636
4637 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4638
4639 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
4640 (vmlal_high_lane_s32): Likewise.
4641 (vmlal_high_lane_u16): Likewise.
4642 (vmlal_high_lane_u32): Likewise.
4643 (vmlsl_high_lane_s16): Likewise.
4644 (vmlsl_high_lane_s32): Likewise.
4645 (vmlsl_high_lane_u16): Likewise.
4646 (vmlsl_high_lane_u32): Likewise.
4647
4648 2014-07-17 Terry Guo <terry.guo@arm.com>
4649
4650 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
4651 (alus_reg): Renamed to alus_sreg.
4652 * config/arm/arm-fixed.md: Change type of non-dsp instructions
4653 from alu_reg to alu_sreg. Change type of dsp instructions from
4654 alu_reg to alu_dsp_reg.
4655 * config/arm/thumb1.md: Likewise.
4656 * config/arm/thumb2.md: Likewise.
4657 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
4658 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
4659 with alu_sreg and alus_sreg.
4660 * config/arm/arm1026ejs.md (alu_op): Likewise.
4661 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4662 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4663 * config/arm/fa526.md (526_alu_op): Likewise.
4664 * config/arm/fa606te.md (606te_alu_op): Likewise.
4665 * config/arm/fa626te.md (626te_alu_op): Likewise.
4666 * config/arm/fa726te.md (726te_alu_op): Likewise.
4667 * config/arm/fmp626.md (mp626_alu_op): Likewise.
4668 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
4669 alu_sreg, alu_dsp_reg and alus_sreg.
4670 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4671 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4672 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4673 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
4674 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4675 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4676 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4677 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4678 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
4679 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
4680 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
4681 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
4682 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
4683 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
4684 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
4685 alus_reg to alus_sreg.
4686
4687 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
4688
4689 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
4690 infinity format.
4691
4692 2014-07-17 Richard Biener <rguenther@suse.de>
4693
4694 PR rtl-optimization/61801
4695 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
4696 don't set reg_pending_barrier if it appears in a debug-insn.
4697
4698 2014-07-16 DJ Delorie <dj@redhat.com>
4699
4700 * config/rx/rx.c (rx_option_override): Fix alignment values.
4701 (rx_align_for_label): Likewise.
4702
4703 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
4704
4705 PR target/61737.
4706 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
4707 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4708 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
4709 functions.
4710 (cris_print_index, cris_print_operand, cris_constant_index_p)
4711 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
4712 (cris_address_cost): Ditto last CONSTANT_P.
4713 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
4714 callers changed. Yield cris_offsettable_symbol for non-PIC
4715 constant symbolic expressions including labels. Yield cris_unspec
4716 for all unspecs.
4717 (cris_expand_pic_call_address): New parameter MARKERP. Set its
4718 target to pic_offset_table_rtx for calls that will likely go
4719 through PLT, const0_rtx when they can't. All callers changed.
4720 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
4721 symbolic expressions to be PICified. Remove second, redundant,
4722 assert on can_create_pseudo_p returning non-zero. Use
4723 replace_equiv_address_nv, not replace_equiv_address, for final
4724 operand update.
4725 * config/cris/cris.md ("movsi"): Move variable t to pattern
4726 toplevel. Adjust assert for new cris_symbol_type member. Use
4727 CONSTANT_P instead of CONSTANT_ADDRESS_P.
4728 ("*movsi_internal") <case 9>: Make check for valid unspec operands
4729 for lapc stricter.
4730 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
4731 ("call", "call_value"): Use second incoming operand as a marker
4732 for pic-offset-table-register being used.
4733 ("*expanded_call_non_v32", "*expanded_call_v32")
4734 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
4735 second incoming operand to CALL, match cris_call_type_marker.
4736 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
4737 ("*expanded_call_side"): Ditto. Fix typo in comment.
4738 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
4739 CONSTANT_P.
4740 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
4741 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
4742 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
4743 users changed. Add members cris_offsettable_symbol and cris_unspec.
4744 (cris_symbol_type): Rename from cris_pic_symbol_type.
4745 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
4746 just CONSTANT_P.
4747 * config/cris/cris-protos.h (cris_symbol_type_of,
4748 cris_expand_pic_call_address): Adjust prototypes.
4749 (cris_legitimate_constant_p): New prototype.
4750
4751 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
4752 an existing tmake_file. Don't add t-slibgcc and t-linux.
4753
4754 2014-07-17 Jason Merrill <jason@redhat.com>
4755
4756 PR c++/61623
4757 * symtab.c (symtab_remove_from_same_comdat_group): Also
4758 set_comdat_group to NULL_TREE.
4759 (verify_symtab): Fix diagnostic.
4760
4761 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
4762
4763 PR target/61662
4764 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
4765
4766 2014-07-16 Dodji Seketeli <dodji@redhat.com>
4767
4768 Support location tracking for built-in macro tokens
4769 * input.h (is_location_from_builtin_token): New function declaration.
4770 * input.c (is_location_from_builtin_token): New function definition.
4771 * toplev.c (general_init): Tell libcpp what the pre-defined
4772 spelling location for built-in tokens is.
4773
4774 2014-07-16 Jakub Jelinek <jakub@redhat.com>
4775
4776 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
4777 on the FUNCTION_DECL.
4778
4779 2014-07-16 Richard Biener <rguenther@suse.de>
4780
4781 PR other/61782
4782 * doc/extend.texi (always_inline): Clarify.
4783
4784 2014-07-15 Eric Christopher <echristo@gmail.com>
4785
4786 * doc/invoke.texi (Link Options): Document -z option.
4787
4788 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
4789
4790 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
4791 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4792
4793 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
4794
4795 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
4796
4797 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
4798
4799 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
4800 varpool_assemble_decl.
4801 * varpool.c (varpool_assemble_decl): Assert that node->definition is
4802 true.
4803
4804 2014-07-15 Michael Matz <matz@suse.de>
4805
4806 PR rtl-optimization/61772
4807 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
4808
4809 2014-07-15 Richard Biener <rguenther@suse.de>
4810
4811 * opts.c (default_options_table): Disable bit-ccp at -Og.
4812
4813 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4814
4815 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
4816
4817 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
4818
4819 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
4820 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
4821 call langhook for unknown declaration.
4822 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
4823 * tree.h (DECL_ARGUMENTS): Update.
4824 * print-tree.c (print_node): Update.
4825 * tree-core.h (tree_decl_non_common): Remove arguments.
4826 (tree_function_decl): Add arguments.
4827
4828 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
4829
4830 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
4831
4832 2014-07-14 Richard Biener <rguenther@suse.de>
4833
4834 PR tree-optimization/61779
4835 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
4836 simplifying a condition.
4837
4838 2014-07-14 Richard Biener <rguenther@suse.de>
4839
4840 * builtins.c (c_strlen): Make only_value == 2 really only
4841 affect warning generation.
4842
4843 2014-07-14 Richard Biener <rguenther@suse.de>
4844
4845 PR tree-optimization/61757
4846 PR tree-optimization/61783
4847 PR tree-optimization/61787
4848 * tree-ssa-dom.c (record_equality): Revert canonicalization
4849 change and add comment.
4850 (propagate_rhs_into_lhs): Revert previous fix, removing
4851 loop depth restriction again.
4852
4853 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4854
4855 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
4856 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4857 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4858 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
4859 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4860 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4861 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
4862
4863 2014-07-14 Richard Biener <rguenther@suse.de>
4864
4865 * cgraph.h (decl_in_symtab_p): Make inline.
4866
4867 2014-07-14 Jakub Jelinek <jakub@redhat.com>
4868
4869 PR middle-end/61294
4870 * doc/invoke.texi (-Wmemset-transposed-args): Document.
4871
4872 PR target/61656
4873 * config/i386/i386.c (classify_argument): Don't merge classes above
4874 number of words.
4875
4876 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
4877
4878 * cgraph.h (symtab_node): Add nonzero_address.
4879 (decl_in_symtab_p): Break out from ...
4880 (symtab_get_node): ... here.
4881 * fold-const.c: Include cgraph.h
4882 (tree_single_nonzero_warnv_p): Use symtab to determine
4883 if symbol is non-zero.
4884 * symtab.c (symtab_node::nonzero_address): New method.
4885
4886 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4887
4888 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
4889 forgotten in previous commit.
4890
4891 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4892
4893 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
4894 on builtin types.
4895 * ipa-devirt.c: Include stor-layout.h and intl.h
4896 (odr_subtypes_equivalent_p): New function.
4897 (warn_odr): New function.
4898 (warn_type_mismatch): New function.
4899 (odr_types_equivalent_p): New function.
4900 (add_type_duplicate): Use it.
4901 * common.opt (Wodr): New flag.
4902 * doc/invoke.texi (Wodr): Document new warning.
4903
4904 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
4905
4906 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
4907 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
4908 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
4909 (varpool_get_constructor): Push CTORS_IN timevar.
4910 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
4911
4912 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
4913
4914 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
4915 Remove VOID_FTYPE_PUSHORT.
4916 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
4917 Change code to USHORT_FTYPE_VOID.
4918 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
4919 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
4920 (ix86_atomic_assign_expand_fenv): Update for
4921 __builtin_ia32_fnstsw changes.
4922 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
4923 (fnstsw): Change operand 0 to nonimmediate operand.
4924
4925 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4926
4927 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
4928 (varpool_get_constructor): New function.
4929 (varpool_ctor_useable_for_folding_p): Break out from ...
4930 (ctor_for_folding): ... here; use varpool_get_constructor.
4931 (varpool_assemble_decl): Likewise.
4932 * lto-streamer.h (struct output_block): Turn cgraph_node
4933 to symbol filed.
4934 (lto_input_variable_constructor): Declare.
4935 * ipa-visibility.c (function_and_variable_visibility): Use
4936 varpool_get_constructor.
4937 * cgraph.h (varpool_get_constructor): Declare.
4938 (varpool_ctor_useable_for_folding_p): New function.
4939 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
4940 parameter; return error_mark_node for non-trivial constructors.
4941 (lto_write_tree_1, DFS_write_tree): Update use of
4942 get_symbol_initial_value.
4943 (output_function): Update initialization of symbol.
4944 (output_constructor): New function.
4945 (copy_function): Rename to ..
4946 (copy_function_or_variable): ... this one; handle vars too.
4947 (lto_output): Output variable sections.
4948 * lto-streamer-in.c (input_constructor): New function.
4949 (lto_read_body): Rename from ...
4950 (lto_read_body_or_constructor): ... this one; handle vars too.
4951 (lto_input_variable_constructor): New function.
4952 * ipa-prop.c (ipa_prop_write_jump_functions,
4953 ipa_prop_write_all_agg_replacement): Update.
4954 * lto-cgraph.c (compute_ltrans_boundary): Use it.
4955 (output_cgraph_opt_summary): Set symbol to NULL.
4956
4957 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
4958
4959 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
4960 non-polymorphic types.
4961 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
4962 * ipa-devirt.c (types_same_for_odr): Do not explode when one
4963 of types is not polymorphic.
4964
4965 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
4966
4967 * lra-constraints.c (remove_inheritance_pseudos): Process
4968 destination pseudo too.
4969
4970 2014-07-11 Rong Xu <xur@google.com>
4971
4972 * gcov-tool.c (gcov_output_files): Fix build error introduced in
4973 commit r212448.
4974
4975 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4976
4977 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
4978 * config/avr/avr-devices.c (AVR_MCU): Same.
4979 (avr_mcu_types): add text start value to end of device list.
4980 * config/avr/avr-mcus.def: Add text section start for all devices.
4981 (ata5782): Add new avr5 device.
4982 (ata5831): Same.
4983 * config/avr/avr-tables.opt: Regenerate.
4984 * config/avr/avr.h: Add declaration for text section start handler.
4985 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
4986 SPEC functions.
4987 (LINK_SPEC): Include text section start handler to linker spec.
4988 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
4989 pass -Ttext option to linker if the text section start for the device
4990 is not zero.
4991 * config/avr/t-multilib: Regenerate.
4992 * doc/avr-mmcu.texi: Regenerate.
4993
4994 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
4995
4996 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
4997 * config/rs6000/aix52.h (LINK_SPEC): Same.
4998 * config/rs6000/aix53.h (LINK_SPEC): Same.
4999 * config/rs6000/aix61.h (LINK_SPEC): Same.
5000 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
5001
5002 2014-07-11 Roman Gareev <gareevroman@gmail.com>
5003
5004 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
5005 (graphite_verify): New function.
5006 (ivs_params_clear): New function.
5007 (gcc_expression_from_isl_ast_expr_id): New function.
5008 (gcc_expression_from_isl_expr_int): New function.
5009 (binary_op_to_tree): New function.
5010 (ternary_op_to_tree): New function.
5011 (unary_op_to_tree): New function.
5012 (nary_op_to_tree): New function.
5013 (gcc_expression_from_isl_expr_op): New function.
5014 (gcc_expression_from_isl_expression): New function.
5015 (graphite_create_new_loop): New function.
5016 (translate_isl_ast_for_loop): New function.
5017 (get_upper_bound): New function.
5018 (graphite_create_new_loop_guard): New function.
5019 (translate_isl_ast_node_for): New function.
5020 (translate_isl_ast): New function.
5021 (add_parameters_to_ivs_params): New function.
5022 (scop_to_isl_ast): New parameter ip.
5023 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
5024
5025 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
5026
5027 * config/xtensa/predicates.md (call expander): Update for
5028 DECL_SECTION_NAME being string.
5029
5030 2014-07-11 Richard Biener <rguenther@suse.de>
5031
5032 PR middle-end/61473
5033 * builtins.c (fold_builtin_memory_op): Inline memory moves that
5034 can be implemented with a single load followed by a single store.
5035 (c_strlen): Only warn when only_value is not 2.
5036
5037 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
5038
5039 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
5040
5041 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
5042
5043 PR target/61561
5044 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
5045 (*movhi_bytes): Likewise.
5046 (*arm_movqi_insn): Likewise.
5047
5048 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
5049
5050 PR target/56858
5051 * config/alpha/alpha.c: Include tree-pass.h, context.h
5052 and pass_manager.h.
5053 (pass_data_handle_trap_shadows): New pass.
5054 (pass_handle_trap_shadows::gate): New pass gate function.
5055 (make_pass_handle_trap_shadows): New function.
5056 (rest_of_handle_trap_shadows): Ditto.
5057
5058 (alpha_align_insns_1): Rename from alpha_align_insns.
5059 (pass_data_align_insns): New pass.
5060 (pass_align_insns::gate): New pass gate function.
5061 (make_pass_aling_insns): New function.
5062 (rest_of_align_insns): Ditto.
5063 (alpha_align_insns): Ditto.
5064
5065 (alpha_option_override): Declare handle_trap_shadows info
5066 and align_insns_info. Register handle_trap_shadows and align_insns
5067 passes here.
5068 (alpha_reorg): Do not call alpha_trap_shadows and
5069 alpha_align_insn from here.
5070
5071 (alpha_pad_function_end): Do not skip BARRIERs.
5072
5073 2014-07-10 Rong Xu <xur@google.com>
5074
5075 Add gcov-tool: an offline gcda profile processing tool support.
5076 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
5077 (gcov_is_error): Ditto.
5078 (gcov_read_string): Ditto.
5079 (gcov_read_sync): Ditto.
5080 * gcov-io.h: Move counter defines to gcov-counter.def.
5081 * gcov-dump.c (tag_counters): Use gcov-counter.def.
5082 * coverage.c: Ditto.
5083 * gcov-tool.c: Offline gcda profile processing tool.
5084 (unlink_gcda_file): Remove one gcda file.
5085 (unlink_profile_dir): Remove gcda files from the profile path.
5086 (gcov_output_files): Output gcda files to an output dir.
5087 (profile_merge): Merge two profiles in directory.
5088 (print_merge_usage_message): Print merge usage.
5089 (merge_usage): Print merge usage and exit.
5090 (do_merge): Driver for profile merge sub-command.
5091 (profile_rewrite): Rewrite profile.
5092 (print_rewrite_usage_message): Print rewrite usage.
5093 (rewrite_usage): Print rewrite usage and exit.
5094 (do_rewrite): Driver for profile rewrite sub-command.
5095 (print_usage): Print gcov-info usage and exit.
5096 (print_version): Print gcov-info version.
5097 (process_args): Process arguments.
5098 (main): Main routine for gcov-tool.
5099 * Makefile.in: Build and install gcov-tool.
5100 * gcov-counter.def: New file split from gcov-io.h.
5101 * doc/gcc.texi: Include gcov-tool.texi.
5102 * doc/gcov-tool.texi: Document for gcov-tool.
5103
5104 2014-07-10 Richard Biener <rguenther@suse.de>
5105
5106 PR tree-optimization/61757
5107 * tree-ssa-dom.c (loop_depth_of_name): Restore.
5108 (propagate_rhs_into_lhs): Revert part of last change.
5109
5110 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
5111
5112 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
5113 FUNCTION_DECLs.
5114
5115 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
5116
5117 PR middle-end/53590
5118 * function.c (allocate_struct_function): Revert r188667 change.
5119
5120 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
5121
5122 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
5123
5124 * doc/install.texi: Remove links to defunct package providers for
5125 Solaris.
5126
5127 2014-07-09 Tom de Vries <tom@codesourcery.com>
5128
5129 * final.c (get_call_fndecl): Declare.
5130 (self_recursive_call_p): New function.
5131 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
5132
5133 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5134
5135 * ipa-devirt.c (record_node): Walk through aliases.
5136
5137 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5138
5139 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
5140
5141 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5142
5143 Revert:
5144 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5145
5146 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5147
5148 * ipa-visibility.c (function_and_variable_visibility): Remove
5149 temporary hack disabling local aliases on AIX.
5150
5151 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5152
5153 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
5154 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
5155
5156 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5157
5158 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
5159 * rs6000/rs6000.c: Inline output of .set instruction.
5160 (declare_alias_data): New struct.
5161 (rs6000_declare_alias): New function.
5162 (rs6000_xcoff_declare_function_name): Use it.
5163 (rs6000_xcoff_declare_object_name): New function.
5164 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
5165 (ASM_OUTPUT_DEF): Turn to empty definition.
5166
5167 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5168
5169 PR bootstrap/61679
5170 * hash-table.h: use hash_table::value_type instead of
5171 Descriptor::value_type in the return types of several methods.
5172
5173 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5174
5175 * tree-pass.h (pass_data): Remove has_execute member.
5176 * passes.c (execute_one_pass): Don't check pass->has_execute.
5177 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
5178 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
5179 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
5180 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
5181 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
5182 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
5183 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
5184 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
5185 gimple-low.c, gimple-ssa-isolate-paths.c,
5186 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
5187 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
5188 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
5189 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
5190 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
5191 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
5192 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
5193 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
5194 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
5195 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
5196 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
5197 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
5198 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
5199 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
5200 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
5201 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
5202 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
5203 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
5204 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
5205 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
5206 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
5207 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
5208 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
5209 web.c: Remove initializer for pass_data::has_execute.
5210
5211 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
5212
5213 * graphite-htab.h: Use hash_map instead of hash_table.
5214 * graphite-clast-to-gimple.c: Adjust.
5215 * passes.c: Use hash_map instead of hash_table.
5216 * sese.c: Likewise.
5217 * sese.h: Remove now unused code.
5218
5219 2014-07-08 Sriraman Tallam <tmsriram@google.com>
5220
5221 PR target/61599
5222 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
5223 than zero.
5224
5225 2014-07-08 Jakub Jelinek <jakub@redhat.com>
5226
5227 PR rtl-optimization/61673
5228 * combine.c (simplify_comparison): Test just mode's sign bit
5229 in tmode rather than the sign bit and any bits above it.
5230
5231 2014-07-08 Roman Gareev <gareevroman@gmail.com>
5232
5233 * graphite-isl-ast-to-gimple.c (generate_isl_context):
5234 Add __isl_give to the declaration.
5235 (generate_isl_schedule): Likewise.
5236 (scop_to_isl_ast): Likewise.
5237
5238 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5239
5240 * config/arm/arm.c (cortexa5_extra_costs): New table.
5241 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
5242
5243 2014-07-08 Jakub Jelinek <jakub@redhat.com>
5244
5245 PR tree-optimization/61725
5246 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
5247 range, use range_includes_zerop_p instead of integer_zerop on
5248 vr0->min, only use log2 of max if min is not negative.
5249
5250 2014-07-08 Richard Biener <rguenther@suse.de>
5251
5252 * tree-ssa-dom.h (loop_depth_of_name): Remove.
5253 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
5254 restriction on loop depth difference.
5255 (record_equality): Likewise.
5256 (propagate_rhs_into_lhs): Likewise. Simplify condition.
5257 (loop_depth_of_name): Remove.
5258 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
5259 restriction on loop depth difference.
5260 (init_copy_prop): Likewise.
5261
5262 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
5263
5264 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
5265 parameter.
5266 (walk_aliased_vdefs): Likewise.
5267 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
5268 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
5269 (detect_type_change_from_memory_writes): Check if entry was reached.
5270
5271 2014-07-08 Richard Biener <rguenther@suse.de>
5272
5273 PR tree-optimization/61681
5274 * tree-ssa-structalias.c (find_what_var_points_to): Expand
5275 NONLOCAL inside ESCAPED.
5276
5277 2014-07-08 Richard Biener <rguenther@suse.de>
5278
5279 PR tree-optimization/61680
5280 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5281 Handle properly all read-write dependences with group accesses.
5282
5283 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
5284
5285 PR tree-optimization/61576
5286 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
5287 block containing reduction statement is predecessor of phi basi block.
5288
5289 2014-07-08 Marek Polacek <polacek@redhat.com>
5290
5291 PR c/60226
5292 * fold-const.c (round_up_loc): Change the parameter type.
5293 Remove assert.
5294 * fold-const.h (round_up_loc): Adjust declaration.
5295 * stor-layout.c (finalize_record_size): Check for too large types.
5296
5297 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
5298
5299 * symtab.c: Include calls.h.
5300 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
5301
5302 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
5303
5304 * config/rs6000/rs6000.c (output_vec_const_move): Handle
5305 little-endian code generation.
5306 * config/rs6000/spe.md (spe_evmergehi): Rename to...
5307 (vec_perm00_v2si): ... this. Handle little-endian code generation.
5308 (spe_evmergehilo): Rename to...
5309 (vec_perm01_v2si): ... this. Handle little-endian code generation.
5310 (spe_evmergelo): Rename to...
5311 (vec_perm11_v2si): ... this. Handle little-endian code generation.
5312 (spe_evmergelohi): Rename to...
5313 (vec_perm10_v2si): ... this. Handle little-endian code generation.
5314 (spe_evmergehi, spe_evmergehilo): New expanders.
5315 (spe_evmergelo, spe_evmergelohi): Likewise.
5316 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
5317 (*frob_tf_ti): Likewise.
5318 (*frob_<mode>_di_2): Likewise.
5319 (*frob_tf_di_8_2): Likewise.
5320 (*frob_di_<mode>): Likewise.
5321 (*frob_ti_tf): Likewise.
5322 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
5323 (*frob_ti_<mode>_8_2): Likewise.
5324 (*frob_ti_tf_2): Likewise.
5325 (mov_si<mode>_e500_subreg0): Rename to...
5326 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
5327 endianness only.
5328 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
5329 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
5330 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
5331 the big endianness only.
5332 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
5333 (*mov_si<mode>_e500_subreg0_2): Rename to...
5334 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
5335 big big endianness only.
5336 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
5337 (*mov_si<mode>_e500_subreg4): Rename to...
5338 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
5339 endianness only.
5340 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
5341 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
5342 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
5343 the big endianness only.
5344 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
5345 pattern.
5346 (*mov_si<mode>_e500_subreg4_2): Rename to...
5347 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
5348 endianness only.
5349 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
5350 (*mov_sitf_e500_subreg8): Rename to...
5351 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
5352 endianness only.
5353 (*mov_sitf_e500_subreg8_le): New instruction pattern.
5354 (*mov_sitf_e500_subreg8_2): Rename to...
5355 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
5356 endianness only.
5357 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
5358 (*mov_sitf_e500_subreg12): Rename to...
5359 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
5360 endianness only.
5361 (*mov_sitf_e500_subreg12_le): New instruction pattern.
5362 (*mov_sitf_e500_subreg12_2): Rename to...
5363 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
5364 endianness only.
5365 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
5366
5367 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
5368
5369 * asan.c (instrument_strlen_call): Do not instrument first byte
5370 in strlen if already instrumented.
5371
5372 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5373
5374 * config/arm/arm.opt (mwords-little-endian): Delete.
5375 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
5376 of TARGET_LITTLE_WORDS.
5377 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
5378 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
5379 warning.
5380 * doc/invoke.texi: Remove references to -mwords-little-endian.
5381
5382 2014-07-07 Jakub Jelinek <jakub@redhat.com>
5383
5384 * expmed.c (struct init_expmed_rtl): Change all fields but
5385 pow2 and cint from struct rtx_def to rtx.
5386 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
5387 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
5388 at the end again.
5389
5390 2014-07-06 Marek Polacek <polacek@redhat.com>
5391
5392 PR c/6940
5393 * doc/invoke.texi: Document -Wsizeof-array-argument.
5394
5395 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
5396
5397 * wide-int.h (wide_int_storage): Change declaration from struct
5398 to class.
5399
5400 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
5401
5402 * cgraph.c (cgraph_create_indirect_edge): Update call of
5403 get_polymorphic_call_info.
5404 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
5405 (possible_polymorphic_call_targets): Add parameter call.
5406 (decl_maybe_in_construction_p): New predicate.
5407 (get_polymorphic_call_info): Add parameter call;
5408 use decl_maybe_in_construction_p.
5409 * gimple-fold.c (fold_gimple_assign): Update use of
5410 possible_polymorphic_call_targets.
5411 (gimple_fold_call): Likewise.
5412 * ipa-prop.c: Inlcude calls.h
5413 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
5414 (param_type_may_change_p): New predicate.
5415 (detect_type_change_from_memory_writes): Break out from ...
5416 (detect_type_change): ... this one; use param_type_may_change_p.
5417 (detect_type_change_ssa): Use param_type_may_change_p.
5418 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
5419
5420 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
5421
5422 PR target/49423
5423 * config/arm/arm-protos.h (arm_legitimate_address_p,
5424 arm_is_constant_pool_ref): Add prototypes.
5425 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
5426 (arm_is_constant_pool_ref) New function.
5427 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
5428 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
5429 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
5430 operand. Remove pool_range and neg_pool_range attributes.
5431 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
5432 pool_range and neg_pool_range attributes.
5433 * config/arm/constraints.md (Uh): New constraint.
5434 (Uq): Don't allow constant pool references.
5435
5436 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
5437
5438 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
5439 (move_lo_quad_internal_be_<mode>): Likewise.
5440 (move_lo_quad_<mode>): Convert to define_expand.
5441 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
5442 (aarch64_simd_move_hi_quad_be_<mode>): New.
5443 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
5444 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
5445 (aarch64_combinez_be<mode>): New.
5446 (aarch64_combine<mode>): Convert to define_expand.
5447 (aarch64_combine_internal<mode>): New.
5448 (aarch64_simd_combine<mode>): Remove bogus RTL description.
5449
5450 2014-07-04 Tom de Vries <tom@codesourcery.com>
5451
5452 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
5453 combination of earlyclobber and read/write modifiers.
5454
5455 2014-07-04 Tom de Vries <tom@codesourcery.com>
5456
5457 * config/aarch64/aarch64-simd.md
5458 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
5459
5460 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
5461
5462 PR target/61714
5463 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
5464
5465 2014-07-04 Jakub Jelinek <jakub@redhat.com>
5466
5467 PR middle-end/61654
5468 * cgraphunit.c (expand_thunk): Call free_dominance_info.
5469
5470 PR tree-optimization/61684
5471 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
5472 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
5473
5474 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5475 Kito Cheng <kito@0xlab.org>
5476 Monk Chiang <sh.chiang04@gmail.com>
5477
5478 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
5479 (nds32_symbol_load_store_p): Move to ...
5480 (nds32_fp_as_gp_check_available): Move to ...
5481 * config/nds32/nds32-fp-as-gp.c: ... here.
5482 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
5483 extern declaration.
5484
5485 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5486 Kito Cheng <kito@0xlab.org>
5487 Monk Chiang <sh.chiang04@gmail.com>
5488
5489 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
5490 (nds32_expand_store_multiple): Move to ...
5491 (nds32_expand_movmemqi): Move to ...
5492 * config/nds32/nds32-memory-manipulation.c: ... here.
5493
5494 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5495 Kito Cheng <kito@0xlab.org>
5496 Monk Chiang <sh.chiang04@gmail.com>
5497
5498 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
5499 (nds32_output_casesi_pc_relative): Move to ...
5500 (nds32_output_casesi): Move to ...
5501 (nds32_mem_format): Move to ...
5502 (nds32_output_16bit_store): Move to ...
5503 (nds32_output_16bit_load): Move to ...
5504 (nds32_output_32bit_store): Move to ...
5505 (nds32_output_32bit_load): Move to ...
5506 (nds32_output_32bit_load_s): Move to ...
5507 (nds32_output_stack_push): Move to ...
5508 (nds32_output_stack_pop): Move to ...
5509 * config/nds32/nds32-md-auxiliary.c: ... here.
5510
5511 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5512 Ling-Hua Tseng <uranus@tinlans.org>
5513
5514 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
5515 the purpose of this file.
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 (nds32_rtx_costs): Move implementation to ...
5522 (nds32_address_cost): Move implementation to ...
5523 * config/nds32/nds32-cost.c: ... here.
5524 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
5525 (nds32_address_cost_impl): Declare.
5526
5527 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5528 Kito Cheng <kito@0xlab.org>
5529 Monk Chiang <sh.chiang04@gmail.com>
5530
5531 * config/nds32/nds32.c
5532 (nds32_consecutive_registers_load_store_p): Move to ...
5533 (nds32_valid_multiple_load_store): Move to ...
5534 (nds32_valid_stack_push_pop): Move to ...
5535 (nds32_can_use_bclr_p): Move to ...
5536 (nds32_can_use_bset_p): Move to ...
5537 (nds32_can_use_btgl_p): Move to ...
5538 (nds32_can_use_bitci_p): Move to ...
5539 * config/nds32/nds32-predicates.c: ... here.
5540
5541 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5542 Kito Cheng <kito@0xlab.org>
5543 Monk Chiang <sh.chiang04@gmail.com>
5544
5545 * config/nds32/nds32.c
5546 (nds32_expand_builtin_null_ftype_reg): Move to ...
5547 (nds32_expand_builtin_reg_ftype_imm): Move to ...
5548 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
5549 (nds32_init_builtins): Move implementation to ...
5550 (nds32_expand_builtin): Move implementation to ...
5551 * config/nds32/nds32-intrinsic.c: ... here.
5552 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
5553 (nds32_expand_builtin_impl): Declare.
5554
5555 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5556 Kito Cheng <kito@0xlab.org>
5557 Monk Chiang <sh.chiang04@gmail.com>
5558
5559 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
5560 (nds32_emit_section_tail_template): Move to ...
5561 (nds32_emit_isr_jmptbl_section): Move to ...
5562 (nds32_emit_isr_vector_section): Move to ...
5563 (nds32_emit_isr_reset_conten): Move to ...
5564 (nds32_check_isr_attrs_conflict): Move to ...
5565 (nds32_construct_isr_vectors_information): Move to ...
5566 (nds32_asm_file_start): Move implementation to ...
5567 (nds32_asm_file_end): Move implementation to ...
5568 * config/nds32/nds32-isr.c: ... here.
5569 * config/nds32/nds32-protos.h
5570 (nds32_check_isr_attrs_conflict): Declare.
5571 (nds32_construct_isr_vectors_information): Declare.
5572 (nds32_asm_file_start_for_isr): Declare.
5573 (nds32_asm_file_end_for_isr): Declare.
5574
5575 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
5576 Kito Cheng <kito@0xlab.org>
5577 Monk Chiang <sh.chiang04@gmail.com>
5578
5579 * config.gcc (nds32*): Add new modules to extra_objs.
5580 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
5581 (nds32be-*-*): Likewise.
5582 * config/nds32/nds32-cost.c: New file.
5583 * config/nds32/nds32-fp-as-gp.c: New file.
5584 * config/nds32/nds32-intrinsic.c: New file.
5585 * config/nds32/nds32-isr.c: New file.
5586 * config/nds32/nds32-md-auxiliary.c: New file.
5587 * config/nds32/nds32-memory-manipulation.c: New file.
5588 * config/nds32/nds32-pipelines-auxiliary.c: New file.
5589 * config/nds32/nds32-predicates.c: New file.
5590 * config/nds32/t-nds32: New file.
5591
5592 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5593
5594 PR tree-optimization/61682
5595 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
5596 using cases and when one of the operands is equal to 1.
5597
5598 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
5599
5600 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
5601 ashr<mode>3): Correct mode of operands[2].
5602 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
5603 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
5604 Correct mode of operands[2]. Fix split condition.
5605
5606 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
5607
5608 * arm.md (arch): Add armv6_or_vfpv3.
5609 (arch_enabled): Add test for the above.
5610 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
5611 on VFP9.
5612 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
5613
5614 2014-07-03 Jakub Jelinek <jakub@redhat.com>
5615
5616 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
5617 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
5618 HWI 1 and negate the unsigned value.
5619 * expmed.c (expand_sdiv_pow2): For modes wider than word always
5620 use AND instead of shift.
5621 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
5622
5623 2014-07-03 Marek Polacek <polacek@redhat.com>
5624
5625 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
5626 (-fsanitize=float-divide-by-zero): Move to the table with
5627 -fsanitize=undefined suboptions.
5628 (-fsanitize=float-cast-overflow): Likewise.
5629
5630 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
5631
5632 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
5633 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
5634 endianness.
5635
5636 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5637
5638 * loop-invariant.c (struct invariant): Add a new member: eqno;
5639 (find_identical_invariants): Update eqno;
5640 (create_new_invariant): Init eqno;
5641 (get_inv_cost): Compute comp_cost with eqno;
5642
5643 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5644
5645 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
5646 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
5647 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
5648 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
5649 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
5650
5651 2014-07-02 Christian Bruel <christian.bruel@st.com>
5652
5653 PR target/29349
5654 PR target/53513
5655 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
5656 (make_preds_opaque): Delete.
5657 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
5658 (commit_mode_sets): New function.
5659 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
5660 Process all modes at once.
5661 * basic-block.h (pre_edge_lcm_avs): Declare.
5662 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
5663 Call clear_aux_for_edges. Fix comments.
5664 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
5665 (pre_edge_rev_lcm): Idem.
5666 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
5667 parameter.
5668 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
5669 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5670 Idem.
5671 * config/i386/i386.c (x96_emit_mode_set): Idem.
5672 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
5673 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
5674 (fpscr_toggle) Disallow from delay slot.
5675 * target.def (emit_mode_set): Add prev_mode parameter.
5676 * doc/tm.texi: Regenerate.
5677
5678 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5679
5680 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
5681 variable i.
5682
5683 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5684
5685 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
5686 vtable_pointer_value_to_vtable): Constify.
5687 (contains_polymorphic_type_p): Declare.
5688 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
5689 vtable_pointer_value_to_vtable): Constify.
5690 (contains_polymorphic_type_p): New predicate.
5691 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
5692 polymorphic types.
5693 (ipa_set_ancestor_jf): Likewise.
5694 (detect_type_change): Return false in easy cases.
5695 (compute_complex_assign_jump_func): Require type to contain
5696 polymorphic type.
5697 (compute_known_type_jump_func): Likewise.
5698
5699 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
5700
5701 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
5702 Remove.
5703 (type_in_anonymous_namespace_p): Constify argument.
5704 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
5705 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
5706 (main_odr_variant): New function.
5707 (hash_type_name): Make static; update assert; do not ICE on
5708 non-records.
5709 (types_same_for_odr): Bring here from tree.c; simplify and remove
5710 old structural comparing code that doesn't work for templates.
5711 (odr_hasher::equal): Update assert.
5712 (add_type_duplicate): Return true when bases should be computed;
5713 replace incomplete loader by complete; do not output duplicated
5714 warnings; do not ICE on non-records; set odr_violated flag.
5715 (get_odr_type): Be ready to replace incomplete type by complete
5716 one; work on ODR variants instead of main variants; reorder item
5717 in array so bases have still smaller indexes.
5718 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
5719 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
5720
5721 2014-07-01 Cary Coutant <ccoutant@google.com>
5722
5723 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
5724 lookup.
5725 (resolve_addr_in_expr): When replacing the rtx in a location list
5726 entry, get a new address table entry.
5727 (dwarf2out_finish): Call index_location_lists even if there are no
5728 addr_index_table entries yet.
5729
5730 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5731
5732 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
5733 change for not being obvious.
5734
5735 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
5736
5737 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
5738 unused argument.
5739
5740 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5741
5742 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
5743 (vcagt_f64): Likewise.
5744 (vcale_f64): Likewise.
5745 (vcaled_f64): Likewise.
5746 (vcales_f32): Likewise.
5747 (vcalt_f64): Likewise.
5748 (vcaltd_f64): Likewise.
5749 (vcalts_f32): Likewise.
5750
5751 2014-07-01 Marek Polacek <polacek@redhat.com>
5752
5753 * doc/invoke.texi: Document -Wint-conversion.
5754
5755 2014-07-01 Marek Polacek <polacek@redhat.com>
5756
5757 PR c/58286
5758 * doc/invoke.texi: Document -Wincompatible-pointer-types.
5759
5760 2014-07-01 Martin Liska <mliska@suse.cz>
5761
5762 IPA REF alias refactoring
5763 * cgraph.h (iterate_direct_aliases): New function.
5764 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
5765 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
5766 FOR_EACH_ALIAS added.
5767 (cgraph_for_node_and_aliases): Likewise.
5768 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
5769 * ipa-inline.c (reset_edge_caches): Likewise.
5770 (update_caller_keys): Likewise.
5771 * trans-mem.c (ipa_tm_execute): Likewise.
5772 *varpool.c (varpool_analyze_node): Likewise.
5773 (varpool_for_node_and_aliases): Likewise.
5774 * ipa-ref.h (first_alias): New function.
5775 (last_alias): Likewise.
5776 (has_aliases_p): Likewise.
5777 * ipa-ref.c (ipa_ref::remove_reference): Removal function
5778 is sensitive to IPA_REF_ALIASes.
5779 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
5780 are put at the beginning of the list.
5781 (symtab_node::iterate_direct_aliases): New function.
5782
5783 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5784
5785 Revert:
5786 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5787 type is complete.
5788 (write_ts_type_common_tree_pointers): Do not stream fields not set
5789 for incomplete types; do not stream duplicated fields for variants;
5790 sanity check that variant and type match.
5791 (write_ts_type_non_common_tree_pointers): Likewise.
5792 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5793 TYPE_SIZE whether type is complete.
5794 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5795 write_ts_type_common_tree_pointers
5796 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5797
5798 2014-06-30 Joseph Myers <joseph@codesourcery.com>
5799
5800 * var-tracking.c (add_stores): Return instead of asserting if old
5801 and new values for conditional store are the same.
5802
5803 2014-06-30 Richard Henderson <rth@redhat.com>
5804
5805 PR rtl-opt/61608
5806 PR target/39284
5807 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
5808 the cfg if there were any changes.
5809 * passes.def: Revert move of peephole2 after reorder_blocks;
5810 move duplicate_computed_gotos before peephole2.
5811
5812 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
5813
5814 * except.c (emit_note_eh_region_end): New helper function.
5815 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
5816 emit EH_REGION_END note.
5817 * jump.c (cleanup_barriers): Do not split a call and its
5818 corresponding CALL_ARG_LOCATION note.
5819
5820 2014-06-30 Jeff Law <law@redhat.com>
5821
5822 PR tree-optimization/61607
5823 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
5824 deeper into the SSA_NAME_VALUE chain.
5825
5826 2014-06-30 Marek Polacek <polacek@redhat.com>
5827
5828 * convert.c (convert_to_integer): Don't instrument conversions if the
5829 function has no_sanitize_undefined attribute.
5830 * ubsan.c: Don't run the ubsan pass if the function has
5831 no_sanitize_undefined attribute.
5832
5833 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5834
5835 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
5836 -fsanitize=undefined suboptions.
5837
5838 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
5839
5840 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
5841 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
5842 against bigendian and adjust indices.
5843
5844 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5845
5846 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
5847
5848 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
5849
5850 PR target/61633
5851 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
5852 Add alternative; make early clobber. Adjust both split patterns
5853 to use operand 0 as the working register.
5854
5855 2014-06-30 Jakub Jelinek <jakub@redhat.com>
5856
5857 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
5858 as ira_object_id_map might be NULL, or 1.
5859
5860 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5861
5862 * loop-invariant.c (get_inv_cost): Handle register class.
5863 (gain_for_invariant): Check the register pressure of the inv
5864 and its overlapped register class, other than all.
5865
5866 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
5867
5868 * doc/invoke.texi (Optimize Options): Fix descriptions of
5869 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
5870
5871 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
5872
5873 * doc/extend.texi (Function Attributes): Update 'naked' attribute
5874 documentation.
5875
5876 2014-06-29 Tobias Grosser <tobias@grosser.es>
5877
5878 PR bootstrap/61650
5879 * graphite-isl-ast-to-gimple.c: Add missing guards.
5880
5881 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5882
5883 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
5884 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
5885 * flag-types.h: Add new enum fgraphite_generator.
5886 * graphite-isl-ast-to-gimple.c: New.
5887 * graphite-isl-ast-to-gimple.h: New.
5888 * graphite.c (graphite_transform_loops): Add choice of Graphite
5889 code generator, which depends on flag_graphite_code_gen.
5890
5891 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5892
5893 * graphite-dependences.c (subtract_commutative_associative_deps):
5894 Add NULL checking of the following variables: must_raw_no_source,
5895 may_raw_no_source, must_war_no_source, may_war_no_source,
5896 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
5897 must_war, may_war, must_waw, may_waw.
5898
5899 2014-06-29 Roman Gareev <gareevroman@gmail.com>
5900
5901 * graphite-clast-to-gimple.c: gloog is renamed to
5902 graphite_regenerate_ast_cloog. gloog_error is renamed to
5903 graphite_regenerate_error.
5904 * graphite-clast-to-gimple.h: The definition of the struct
5905 bb_pbb_def is moved to graphite-htab.h.
5906 Add inclusion of the hash-table.h.
5907 * graphite-htab.h: The declaration of the function gloog is moved
5908 to graphite-clast-to-gimple.h and renamed to
5909 graphite_regenerate_ast_cloog.
5910 * graphite.c (graphite_transform_loops): gloog is renamed
5911 to graphite_regenerate_ast_cloog.
5912
5913 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5914
5915 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
5916 type is complete.
5917 (write_ts_type_common_tree_pointers): Do not stream fields not set
5918 for incomplete types; do not stream duplicated fields for variants;
5919 sanity check that variant and type match.
5920 (write_ts_type_non_common_tree_pointers): Likewise.
5921 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
5922 TYPE_SIZE whether type is complete.
5923 (lto_input_ts_type_common_tree_pointers): Do same changes as in
5924 write_ts_type_common_tree_pointers
5925 (lto_input_ts_type_non_common_tree_pointers): Likewise.
5926
5927 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5928
5929 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
5930
5931 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5932
5933 * tree-inline.c (remap_type_1): Do not duplicate fields
5934 that are shared in between type and its main variant.
5935
5936 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5937
5938 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
5939 of the type.
5940 (ipa_set_ancestor_jf) Likewise.
5941 (check_stmt_for_type_change): Check that we work on main variant.
5942 (detect_type_change): Look into main variant.
5943 (compute_known_type_jump_func): Check that main variant has BINFO.
5944
5945 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5946
5947 * ipa-devirt.c (set_type_binfo): New function.
5948 (add_type_duplicate): Use it.
5949 (get_odr_type): Sanity check that binfos points to main variants.
5950 (get_class_context): Be sure the context's outer_type is main variant.
5951 (contains_type_p): Walk main variant.
5952 (get_polymorphic_call_info_for_decl): Set outer_type to be
5953 main variant.
5954 (get_polymorphic_call_info): Likewise.
5955 (possible_polymorphic_call_targets): Sanity check that we operate
5956 on main variant.
5957
5958 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
5959
5960 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
5961
5962 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5963
5964 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
5965 accidental change due to wide-int branch merge.
5966
5967 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5968
5969 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
5970 compressed debug support.
5971 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
5972 * configure: Regenerate.
5973 * config.in: Regenerate.
5974 * common.opt (compressed_debug_sections): New enum.
5975 (gz, gz=): New options.
5976 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
5977 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
5978 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
5979 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
5980 LINK_COMPRESS_DEBUG_SPEC.
5981 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
5982 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
5983 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
5984 (Debugging Options): Document -gz[=type].
5985
5986 2014-06-27 Martin Jambor <mjambor@suse.cz>
5987
5988 PR ipa/61160
5989 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
5990 args_to_skip, use those from node instead. Copy args_to_skip and
5991 combined_args_to_skip from node to the new thunk.
5992 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
5993 (cgraph_create_virtual_clone): Moved computation of
5994 combined_args_to_skip...
5995 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
5996
5997 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
5998
5999 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
6000 redundant diagnostic machinary.
6001
6002 2014-06-27 Richard Biener <rguenther@suse.de>
6003
6004 * tree-ssa-math-opts.c (bswap_replace): Fix
6005 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
6006
6007 2014-06-27 Martin Liska <mliska@suse.cz>
6008
6009 * gimple.h (gimple_location_safe): New function introduced.
6010 * cgraphunit.c (walk_polymorphic_call_targets): Usage
6011 of gimple_location_safe replaces gimple_location.
6012 (gimple_fold_call): Likewise.
6013 * ipa-devirt.c (ipa_devirt): Likewise.
6014 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6015 * ipa.c (walk_polymorphic_call_targets): Likewise.
6016 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
6017
6018 2014-06-27 Jakub Jelinek <jakub@redhat.com>
6019
6020 PR tree-optimization/57233
6021 PR tree-optimization/61299
6022 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
6023 functions.
6024 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
6025 would be lowered to scalar shifts, check if corresponding
6026 shifts and vector BIT_IOR_EXPR are supported and don't lower
6027 or lower just to narrower vector type in that case.
6028 * expmed.c (expand_shift_1): Fix up handling of vector
6029 shifts and rotates.
6030
6031 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
6032
6033 PR target/61586
6034 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
6035
6036 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
6037
6038 * doc/invoke.texi (-fsemantic-interposition): Document.
6039 * common.opt (fsemantic-interposition): New flag.
6040 * varasm.c (decl_replaceable_p): Use it.
6041
6042 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6043
6044 PR target/61542
6045 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
6046 extraction other than index 3.
6047
6048 2014-06-26 Teresa Johnson <tejohnson@google.com>
6049
6050 * doc/invoke.texi: Fix typo.
6051 * dumpfile.c: Add support for documented -fdump-* options
6052 optimized/missed/note/optall.
6053
6054 2014-06-26 Martin Jambor <mjambor@suse.cz>
6055
6056 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
6057 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
6058 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
6059 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
6060 * opts.c (default_options_optimization): Set
6061 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
6062 * doc/invoke.texi (allow-load-data-races)
6063 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
6064 (allow-store-data-races): Document the new default.
6065
6066 2014-06-26 Martin Jambor <mjambor@suse.cz>
6067
6068 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
6069 renamed to ipa_impossible_devirt_target. Fix typo.
6070 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
6071 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
6072 ipa_impossible_devirt_target.
6073
6074 2014-06-26 Richard Biener <rguenther@suse.de>
6075
6076 PR tree-optimization/61607
6077 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
6078 explaining why we restrict copies on loop depth.
6079 * tree-ssa-dom.c (cprop_operand): Remove restriction on
6080 on loop depth.
6081 (record_equivalences_from_phis): Instead add it here.
6082
6083 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
6084
6085 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
6086 (LTO_WRAPPER_OBJS): New variable.
6087 (lto-wrapper$(exeext)): Use it.
6088 * collect2.c: Include "collect-utils.h".
6089 (verbose, debug): Remove variables.
6090 (at_file_supplied): No longer static.
6091 (tool_name): New variable.
6092 (do_wait, fork_execute, maybe_unlink): Don't declare.
6093 (tool_cleanup): No longer static.
6094 (notice): Remove function.
6095 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
6096 fork_execute calls.
6097 (collect_wait, do_wait, collect_execute): Remove functions.
6098 (maybe_unlink): No longer static.
6099 * collect2.h (verbose, debug): Don't declare.
6100 (at_file_supplied): Declare.
6101 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
6102 changed.
6103 (collect_execute): Replace with implementation from collect2, plus a
6104 new arg use_atfile. All callers changed.
6105 (collect_wait): Replace with implementation from collect2.
6106 (maybe_unlink_file): Remove function.
6107 (fork_execute): Replace with implementation from collect2, plus a
6108 new arg use_atfile. All callers changed.
6109 (do_wait): Add call to utils_cleanup to the error path.
6110 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
6111 (tool_cleanup): Adjust declarations.
6112 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
6113 * tlink.c: Include "collect-utils.h".
6114 (tlink_execute): New arg use_atfile. All callers changed.
6115 (tlink_init, tlink_execute): Remove declarations.
6116
6117 * collect-utils.c (save_temps): New variable.
6118 (do_wait): Use it instead of debug. Use fatal_error.
6119 * collect-utils.h (save_temps): Declare.
6120 * collect2.c (verbose): Rename from vflag. All uses changed.
6121 (tool_cleanup): New function, copied from collect_atexit.
6122 (collect_atexit, handler): Just call it.
6123 * collect2.h (verbose): Declaration renamed from vflag.
6124 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
6125 debug.
6126
6127 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
6128 (lto-wrapper$(exeext)): Link with collect-utils.o.
6129 * collect-utils.c: New file.
6130 * collect-utils.h: New file.
6131 * lto-wrapper.c: Include "collect-utils.h".
6132 (args_name): Delete variable.
6133 (tool_name): New variable.
6134 (tool_cleanup): New function.
6135 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
6136 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
6137 (fork_execute): Remove functions.
6138
6139 2014-06-26 Nick Clifton <nickc@redhat.com>
6140
6141 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
6142
6143 * doc/extend.texi (Function Attributes): Fix typo in description
6144 of RX vector attribute.
6145
6146 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6147
6148 * config.gcc (supported_defaults): Error when passing either
6149 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
6150
6151 2014-06-26 Richard Biener <rguenther@suse.de>
6152
6153 * tree-ssa-dom.c (cprop_operand): Remove restriction on
6154 propagating volatile pointers.
6155
6156 2014-06-26 Richard Biener <rguenther@suse.de>
6157
6158 PR tree-optimization/61607
6159 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
6160 loop if we redirected its latch edge.
6161 (thread_block_1): Do not cancel loops prematurely.
6162
6163 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
6164
6165 * toplev.c (backend_init_target): Move init_emit_regs and
6166 init_regs to...
6167 (backend_init) ... here; skip ira_init_once and backend_init_target.
6168 (target_reinit) ... and here; clear
6169 this_target_rtl->lang_dependent_initialized.
6170 (lang_dependent_init_target): Clear
6171 this_target_rtl->lang_dependent_initialized;
6172 break out rtl initialization to ...
6173 (initialize_rtl): ... here; call also backend_init_target
6174 and ira_init_once.
6175 * toplev.h (initialize_rtl): New function.
6176 * function.c: Include toplev.h
6177 (init_function_start): Call initialize_rtl.
6178 * rtl.h (target_rtl): Add target_specific_initialized,
6179 lang_dependent_initialized.
6180
6181 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
6182 Jakub Jelinek <jakub@redhat.com>
6183
6184 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
6185
6186 2014-06-25 Tom de Vries <tom@codesourcery.com>
6187
6188 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
6189
6190 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6191
6192 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
6193 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
6194 Issue a strict overflow warning if appropriate.
6195
6196 2014-06-25 Martin Liska <mliska@suse.cz>
6197
6198 IPA REF refactoring
6199 * Makefile.in: Removed header file (ipa-ref-inline.h).
6200 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
6201 called.
6202 (cgraph_speculative_call_info): Likewise.
6203 (cgraph_for_node_thunks_and_aliases): Likewise.
6204 (cgraph_for_node_and_aliases): Likewise.
6205 (verify_cgraph_node): Likewise.
6206 * cgraph.h: Batch of IPA REF functions become member functions of
6207 symtab_node: add_reference, maybe_add_reference, clone_references,
6208 clone_referring, clone_reference, find_reference,
6209 remove_stmt_references, remove_all_references,
6210 remove_all_referring, dump_references, dump_referring,
6211 has_alias_p, iterate_reference, iterate_referring.
6212 * cgraphbuild.c (record_reference): New IPA REF function used.
6213 (record_type_list): Likewise.
6214 (record_eh_tables): Likewise.
6215 (mark_address): Likewise.
6216 (mark_load): Likewise.
6217 (mark_store): Likewise.
6218 (pass_build_cgraph_edges): Likewise.
6219 (rebuild_cgraph_edge): Likewise.
6220 (cgraph_rebuild_references): Likewise.
6221 (pass_remove_cgraph_callee_edges): Likewise.
6222 * cgraphclones.c (cgraph_clone_node): Likewise.
6223 (cgraph_create_virtual_clone): Likewise.
6224 (cgraph_materialize_clone): Likewise.
6225 (cgraph_materialize_all_clones): Likewise.
6226 * cgraphunit.c (cgraph_reset_node): Likewise.
6227 (cgraph_reset_node): Likewise.
6228 (analyze_function): Likewise.
6229 (assemble_thunks_and_aliases): Likewise.
6230 (expand_function): Likewise.
6231 * ipa-comdats.c (propagate_comdat_group): Likewise.
6232 (enqueue_references): Likewise.
6233 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
6234 (create_specialized_node): Likewise.
6235 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
6236 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
6237 * ipa-inline.c (reset_edge_caches): Likewise.
6238 (update_caller_keys): Likewise.
6239 (execute): Likewise.
6240 * ipa-prop.c (remove_described_reference): Likewise.
6241 (propagate_controlled_uses): Likewise.
6242 (ipa_edge_duplication_hook): Likewise.
6243 (ipa_modify_call_arguments): Likewise.
6244 * ipa-pure-const.c (propagate_pure_const): Likewise.
6245 * ipa-ref-inline.h: Header file removed, functions moved
6246 to symtab_node class.
6247 * ipa-ref.c (remove_reference): New class member function.
6248 (cannot_lead_to_return): New class member function.
6249 (referring_ref_list): Likewise.
6250 (referred_ref_list): Likewise.
6251 Rest of functions moved to symtab_node class.
6252 * ipa-ref.h: New member functions remove_reference,
6253 cannot_lead_to_return, referring_ref_list, referred_ref_list added
6254 to ipa_ref class.
6255 ipa_ref_list class has new member functions: first_reference,
6256 first_referring, clear, nreferences.
6257 * ipa-reference.c (analyze_function): New IPA REF function used.
6258 (write_node_summary_p): Likewise.
6259 (ipa_reference_write_optimization_summary): Likewise.
6260 * ipa-split.c (split_function): Likewise.
6261 * ipa-utils.c (ipa_reverse_postorder): Likewise.
6262 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
6263 (function_and_variable_visibility): Likewise.
6264 * ipa.c (has_addr_references_p): Likewise.
6265 (process_references): Argument type changed.
6266 (symtab_remove_unreachable_nodes): New IPA REF function used.
6267 (process_references): Likewise.
6268 (set_writeonly_bit): Likewise.
6269 * lto-cgraph.c: Implementation of new symtab_node member functions
6270 that uses new IPA REF functions.
6271 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
6272 function used.
6273 * lto-streamer-out.c (output_symbol_p): Likewise.
6274 * lto-streamer.h (referenced_from_this_partition_p): Argument type
6275 changed.
6276 * symtab.c: Implementation of new IPA REF API.
6277 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
6278 (ipa_tm_create_version): Likewise.
6279 (ipa_tm_execute): Likewise.
6280 * tree-emutls.c (gen_emutls_addr): Likewise.
6281 * tree-inline.c (copy_bb): Likewise.
6282 (delete_unreachable_blocks_update_callgraph): Likewise.
6283 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
6284 (varpool_for_node_and_aliases): Likewise.
6285
6286 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
6287
6288 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
6289
6290 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
6291
6292 PR bootstrap/61598
6293 * fold-const.c (fold_checksum_tree): Use a hash_table of const
6294 tree_node * instead of tree_node *.
6295 (fold): Adjust.
6296 (print_fold_checksum): Likewise.
6297 (fold_check_failed): Likewise.
6298 (debug_fold_checksum): Likewise.
6299 (fold_build1_stat_loc): Likewise.
6300 (fold_build2_stat_loc): Likewise.
6301 (fold_build3_stat_loc): Likewise.
6302 (fold_build_call_array_loc): Likewise.
6303
6304 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
6305
6306 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
6307 implementation with call to...
6308 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
6309 function.
6310 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
6311 Declare.
6312
6313 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
6314
6315 PR tree-optimization/57742
6316 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
6317 after replacing the statement.
6318
6319 2014-06-25 Nick Clifton <nickc@redhat.com>
6320
6321 * config/v850/v850.c (GHS_default_section_names): Change to const
6322 char * type.
6323 (GHS_current_section_names): Likewise.
6324 (v850_insert_attributes): Do not build strings, just assign the
6325 names directly. Change the type of 'chosen_section' to const
6326 char*.
6327 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
6328 directly to the array entry.
6329 * config/v850/v850.h (GHS_default_section_names): Change to const
6330 char * type.
6331 (GHS_current_section_names): Likewise.
6332
6333 2014-06-25 Jakub Jelinek <jakub@redhat.com>
6334
6335 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
6336 (LANG_HOOKS_DECLS): Add it.
6337 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
6338 has correct type.
6339 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
6340 * langhooks.h (struct lang_hooks_for_decls): Add
6341 omp_clause_linear_ctor hook.
6342 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
6343 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
6344 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
6345 combined simd loop use omp_clause_linear_ctor hook.
6346
6347 2014-06-24 Cong Hou <congh@google.com>
6348
6349 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
6350 pattern recognition.
6351 (type_conversion_p): PROMOTION is true if it's a type promotion
6352 conversion, and false otherwise. Return true if the given expression
6353 is a type conversion one.
6354 * tree-vectorizer.h: Adjust the number of patterns.
6355 * tree.def: Add SAD_EXPR.
6356 * optabs.def: Add sad_optab.
6357 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
6358 * expr.c (expand_expr_real_2): Likewise.
6359 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6360 * gimple.c (get_gimple_rhs_num_ops): Likewise.
6361 * optabs.c (optab_for_tree_code): Likewise.
6362 * tree-cfg.c (estimate_operator_cost): Likewise.
6363 * tree-ssa-operands.c (get_expr_operands): Likewise.
6364 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
6365 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
6366 * doc/generic.texi: Add document for SAD_EXPR.
6367 * doc/md.texi: Add document for ssad and usad.
6368
6369 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6370
6371 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
6372 qualification in cast.
6373
6374 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
6375
6376 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
6377 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
6378 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
6379 (tree_function_decl): ... here.
6380 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
6381 streaming of vindex to ...
6382 (write_ts_function_decl_tree_pointers): ... here.
6383 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
6384 Do not stream DECL_VINDEX.
6385 (lto_input_ts_function_decl_tree_pointers): Stream it here.
6386
6387 2014-06-24 Catherine Moore <clm@codesourcery.com>
6388 Sandra Loosemore <sandra@codesourcery.com>
6389
6390 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
6391 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
6392 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
6393
6394 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6395
6396 * doc/invoke.texi (Warning Options): Remove duplicated
6397 -Wmaybe-uninitialized.
6398
6399 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
6400
6401 PR tree-optimization/57742
6402 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
6403 (handle_builtin_malloc, handle_builtin_memset): New functions.
6404 (strlen_optimize_stmt): Call them.
6405 * passes.def: Move strlen after loop+dom but before vrp.
6406
6407 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6408
6409 PR target/61570
6410 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
6411 model family 6 CPU with has_longmode never use a CPU without
6412 64-bit support.
6413
6414 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
6415
6416 PR target/61570
6417 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
6418 the last change.
6419
6420 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6421
6422 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
6423 * dominance.c (iterate_fix_dominators): Use hash_map instead of
6424 pointer_map.
6425 * hash-map.h: New file.
6426 * ipa-comdats.c: Use hash_map instead of pointer_map.
6427 * ipa.c: Likewise.
6428 * lto-section-out.c: Adjust.
6429 * lto-streamer.h: Replace pointer_map with hash_map.
6430 * symtab.c (verify_symtab): Likewise.
6431 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
6432 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
6433 * tree-streamer.h: Likewise.
6434 * tree-streamer.c: Adjust.
6435 * pointer-set.h: Remove pointer_map.
6436
6437 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6438
6439 * hash-table.h: Add a template arg to choose between storing values
6440 and storing pointers to values, and then provide partial
6441 specializations for both.
6442 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
6443 should store, not the type values should point to.
6444 * tree-into-ssa.c (var_info_hasher): Likewise.
6445 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6446 * tree-complex.c: Adjust.
6447 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
6448 table instead of int_tree_map *.
6449 * tree-parloops.c: Adjust.
6450 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
6451 type is being stored.
6452 * tree-vectorizer.c: Adjust.
6453
6454 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
6455
6456 * hash-table.h: Remove a layer of indirection from hash_table so that
6457 it contains the hash table's data instead of a pointer to the data.
6458 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
6459 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
6460 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
6461 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
6462 fold-const.c, gcse.c, ggc-common.c,
6463 gimple-ssa-strength-reduction.c, gimplify.c,
6464 graphite-clast-to-gimple.c, graphite-dependences.c,
6465 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
6466 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
6467 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
6468 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
6469 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
6470 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
6471 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
6472 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
6473 tree-ssa-live.c, tree-ssa-loop-im.c,
6474 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
6475 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
6476 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
6477 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
6478 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
6479 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
6480 vtable-verify.c, vtable-verify.h: Adjust.
6481
6482 2014-06-24 Richard Biener <rguenther@suse.de>
6483
6484 PR tree-optimization/61572
6485 * tree-ssa-sink.c (statement_sink_location): Do not sink
6486 loads from hard registers.
6487
6488 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6489
6490 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
6491 not mentioned in clauses use private clause if the iterator is
6492 declared in #pragma omp for simd, and when adding lastprivate
6493 instead, add it to the outer #pragma omp for too. Diagnose
6494 if the variable is private in outer context. For simd collapse > 1
6495 loops, replace all iterators with temporaries.
6496 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
6497 same even in collapse > 1 loops.
6498
6499 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
6500 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
6501 non-NULL.
6502 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
6503 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
6504 non-NULL.
6505 (gimplify_adjust_omp_clauses): Likewise.
6506 * omp-low.c (lower_rec_simd_input_clauses,
6507 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
6508 safelen the same as safelen(1).
6509 * tree-nested.c (convert_nonlocal_omp_clauses,
6510 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
6511 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
6512 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
6513 Fixup handling of GIMPLE_OMP_TARGET.
6514 (convert_tramp_reference_stmt, convert_gimple_call): Handle
6515 GIMPLE_OMP_TARGET.
6516
6517 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
6518
6519 PR tree-optimization/61554
6520 * tree-ssa-propagate.c: Include "bitmap.h".
6521 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
6522 properly update constructor/destructor.
6523 (substitute_and_fold_dom_walker::before_dom_children):
6524 Remove call to gimple_purge_dead_eh_edges, add bb->index to
6525 need_eh_cleaup instead.
6526 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
6527 need_eh_cleanup.
6528
6529 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6530
6531 * varpool.c (dump_varpool_node): Dump used_by_single_function.
6532 * tree-pass.h (make_pass_ipa_single_use): New pass.
6533 * cgraph.h (used_by_single_function): New flag.
6534 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
6535 Stream it.
6536 * passes.def (pass_ipa_single_use): Scedule.
6537 * ipa.c (BOTTOM): New macro.
6538 (meet): New function
6539 (propagate_single_user): New function.
6540 (ipa_single_use): New function.
6541 (pass_data_ipa_single_use): New pass.
6542 (pass_ipa_single_use): New pass.
6543 (pass_ipa_single_use::gate): New gate.
6544 (make_pass_ipa_single_use): New function.
6545
6546 2014-06-23 Kai Tietz <ktietz@redhat.com>
6547
6548 PR target/39284
6549 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
6550 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
6551
6552 2014-06-23 Richard Biener <rguenther@suse.de>
6553
6554 * tree-ssa-loop.c (gate_loop): New function.
6555 (pass_tree_loop::gate): Call it.
6556 (pass_data_tree_no_loop, pass_tree_no_loop,
6557 make_pass_tree_no_loop): New.
6558 * tree-vectorizer.c: Include tree-scalar-evolution.c
6559 (pass_slp_vectorize::execute): Initialize loops and SCEV if
6560 required.
6561 (pass_slp_vectorize::clone): New method.
6562 * timevar.def (TV_TREE_NOLOOP): New.
6563 * tree-pass.h (make_pass_tree_no_loop): Declare.
6564 * passes.def (pass_tree_no_loop): New pass group with
6565 SLP vectorizer.
6566
6567 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
6568
6569 PR target/61570
6570 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
6571 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
6572
6573 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6574
6575 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
6576 "yes" where needed.
6577
6578 2014-06-23 Alan Modra <amodra@gmail.com>
6579
6580 PR bootstrap/61583
6581 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
6582 to zero on debug statements.
6583
6584 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6585
6586 PR target/60825
6587 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
6588 Ignore third operand if present by marking qualifier_internal.
6589
6590 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
6591
6592 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
6593 vector extension.
6594 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
6595 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
6596 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
6597 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
6598 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
6599 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
6600 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
6601 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
6602 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
6603 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
6604 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
6605 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
6606 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
6607 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
6608 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
6609 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
6610 logic in GCC vector extensions
6611
6612 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
6613 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
6614 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
6615 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
6616 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
6617 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
6618 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
6619 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
6620 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
6621 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
6622
6623 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
6624
6625 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
6626 extensions.
6627
6628 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
6629 (vget_low_s64): Use __GET_LOW macro.
6630 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
6631 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
6632 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
6633 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
6634 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
6635
6636 (vcombine_s64): Use GCC vector extensions; remove cast.
6637 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
6638 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
6639 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
6640 Fix type signature; remove cast.
6641
6642 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
6643
6644 PR target/60825
6645 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
6646 V1DFmode.
6647 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
6648 add V1DFmode
6649 (BUILTIN_VD1): New.
6650 (BUILTIN_VD_RE): Remove.
6651 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
6652 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
6653 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
6654 variant but not df.
6655 (vreinterpretv1df*, vreinterpret*v1df): New.
6656 (vreinterpretdf*, vreinterpret*df): Remove.
6657 * config/aarch64/aarch64-simd.md (aarch64_create,
6658 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
6659 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
6660 (VD1): New.
6661 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
6662 (vcreate_f64): Remove cast, use v1df builtin.
6663 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
6664 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
6665 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
6666 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
6667 vmov_n_f64, vst1_f64): Use gcc vector extensions.
6668 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
6669 add range check using __builtin_aarch64_im_lane_boundsi.
6670 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
6671 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
6672 type signature, use gcc vector extensions.
6673 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
6674 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
6675 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
6676 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
6677 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
6678 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
6679 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
6680 vreinterpret_u64_f64): Use v1df builtin not df.
6681
6682 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
6683
6684 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
6685 vector registers.
6686
6687 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
6688
6689 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
6690 priority directly.
6691
6692 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6693
6694 * loop-invariant.c (pre_check_invariant_p): New function.
6695 (find_invariant_insn): Call pre_check_invariant_p.
6696
6697 2014-06-22 Richard Henderson <rth@redhat.com>
6698
6699 PR target/61565
6700 * compare-elim.c (struct comparison): Add eh_note.
6701 (find_comparison_dom_walker::before_dom_children): Don't eliminate
6702 a redundant comparison in a different EH region. Purge EH edges if
6703 necessary.
6704
6705 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6706
6707 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
6708 (var_shift): Use it.
6709 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
6710 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
6711 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
6712 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
6713 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
6714 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
6715 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
6716 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
6717 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
6718 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
6719 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
6720 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
6721 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
6722 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
6723 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
6724 *rotldi3_internal15be): Use the new attribute. Merge register and
6725 integer alternatives.
6726
6727 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6728
6729 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
6730 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
6731 split, *ashrdi3_internal3 and split): Delete, merge into...
6732 (ashr<mode>3): New expander.
6733 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
6734 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
6735
6736 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6737
6738 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
6739 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
6740 *rotldi3_internal3 and split): Delete, merge into...
6741 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
6742 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
6743 Use "rotlw" extended mnemonic.
6744
6745 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6746
6747 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
6748 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
6749 and split, *ashldi3_internal3 and split): Delete, merge into...
6750 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
6751 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
6752
6753 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6754
6755 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
6756 (lshrsi3, two anonymous define_insns and define_splits,
6757 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
6758 *lshrdi3_internal3 and split): Delete, merge into...
6759 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
6760 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
6761
6762 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
6763
6764 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
6765 Remove "O" alternative.
6766
6767 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
6768
6769 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
6770 (mips_move_from_gpr_cost): Likewise.
6771 (mips_register_move_cost): Update accordingly.
6772 (mips_secondary_reload_class): Remove name of in_p.
6773
6774 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
6775
6776 PR target/61503
6777 * config/i386/i386.md (x86_64_shrd, x86_shrd,
6778 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
6779
6780 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6781
6782 * config/nios2/nios2.c: Include "builtins.h".
6783
6784 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6785
6786 * cgraph.h (tls_model_names): New variable.
6787 * print-tree.c (print_node): Simplify.
6788 * varpool.c (tls_model_names): New variable.
6789 (dump_varpool_node): Output tls model.
6790
6791 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6792
6793 * ipa-visibility.c (function_and_variable_visibility): Disable
6794 temporarily local aliases for some targets.
6795
6796 2014-06-20 Marek Polacek <polacek@redhat.com>
6797
6798 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
6799 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
6800 into SANITIZE_UNDEFINED.
6801 * doc/invoke.texi: Describe -fsanitize=bounds.
6802 * gimplify.c (gimplify_call_expr): Add gimplification of internal
6803 functions created in the FEs.
6804 * internal-fn.c: Move "internal-fn.h" after "tree.h".
6805 (expand_UBSAN_BOUNDS): New function.
6806 * internal-fn.def (UBSAN_BOUNDS): New internal function.
6807 * internal-fn.h: Don't define internal functions here.
6808 * opts.c (common_handle_option): Add -fsanitize=bounds.
6809 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
6810 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
6811 * tree-core.h: Define internal functions here.
6812 (struct tree_base): Add ifn field.
6813 * tree-pretty-print.c: Include "internal-fn.h".
6814 (dump_generic_node): Handle functions without CALL_EXPR_FN.
6815 * tree.c (get_callee_fndecl): Likewise.
6816 (build_call_expr_internal_loc): New function.
6817 * tree.def (CALL_EXPR): Update description.
6818 * tree.h (CALL_EXPR_IFN): Define.
6819 (build_call_expr_internal_loc): Declare.
6820 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
6821 types.
6822 (ubsan_type_descriptor): Change bool parameter to enum
6823 ubsan_print_style. Adjust the code. Add handling of
6824 UBSAN_PRINT_ARRAY.
6825 (ubsan_expand_bounds_ifn): New function.
6826 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
6827 (ubsan_build_overflow_builtin): Likewise.
6828 (instrument_bool_enum_load): Likewise.
6829 (ubsan_instrument_float_cast): Likewise.
6830 * ubsan.h (enum ubsan_print_style): New enum.
6831 (ubsan_expand_bounds_ifn): Declare.
6832 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
6833
6834 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
6835
6836 * config/rs6000/rs6000.md: Append `DONE' to preparation
6837 statements of `bswap' pattern splitters.
6838
6839 2014-06-20 Tom de Vries <tom@codesourcery.com>
6840
6841 * target.def (call_fusage_contains_non_callee_clobbers): Update
6842 definition.
6843 * doc/tm.texi: Regenerate.
6844
6845 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6846 Max Ostapenko <m.ostapenko@partner.samsung.com>
6847
6848 PR sanitizer/61547
6849 * asan.c (instrument_strlen_call): Fixed instrumentation of
6850 trailing byte.
6851
6852 2014-06-20 Martin Jambor <mjambor@suse.cz>
6853
6854 PR ipa/61540
6855 * ipa-prop.c (impossible_devirt_target): New function.
6856 (try_make_edge_direct_virtual_call): Use it, also instead of
6857 asserting.
6858
6859 2014-06-20 Yury Gribov <y.gribov@samsung.com>
6860 Max Ostapenko <m.ostapenko@partner.samsung.com>
6861
6862 PR sanitizer/61530
6863 * asan.c (build_check_stmt): Add condition.
6864
6865 2014-06-20 Martin Jambor <mjambor@suse.cz>
6866
6867 PR ipa/61211
6868 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
6869 expanded clones.
6870
6871 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6872
6873 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
6874 Update comments.
6875 (VCONQ): Make comment more helpful.
6876 (VCON): Delete.
6877 * config/aarch64/aarch64-simd.md
6878 (aarch64_sqdmulh_lane<mode>):
6879 Use VCOND for operands 2. Update lane checking and flipping logic.
6880 (aarch64_sqrdmulh_lane<mode>): Likewise.
6881 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
6882 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
6883 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
6884 attribute of operand 3 to VCOND.
6885 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
6886 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
6887 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
6888 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
6889 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
6890 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
6891 define_insn.
6892 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
6893 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
6894 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
6895 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
6896 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
6897 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
6898 operand to VCOND. Update lane flipping and bounds checking logic.
6899 (aarch64_sqdmlal2_lane<mode>): Likewise.
6900 (aarch64_sqdmlsl_lane<mode>): Likewise.
6901 (aarch64_sqdmull_lane<mode>): Likewise.
6902 (aarch64_sqdmull2_lane<mode>): Likewise.
6903 (aarch64_sqdmlal_laneq<mode>):
6904 Replace VCON usage with VCONQ.
6905 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
6906 (aarch64_sqdmlal2_laneq<mode>): Emit
6907 aarch64_sqdmlal2_laneq<mode>_internal insn.
6908 Replace VCON with VCONQ.
6909 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
6910 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
6911 (aarch64_sqdmull_laneq<mode>): Emit
6912 aarch64_sqdmull_laneq<mode>_internal insn.
6913 Replace VCON with VCONQ.
6914 (aarch64_sqdmull2_laneq<mode>): Emit
6915 aarch64_sqdmull2_laneq<mode>_internal insn.
6916 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
6917 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
6918 of 3rd argument to int16x4_t.
6919 (vqdmlalh_lane_s16): Likewise.
6920 (vqdmlslh_lane_s16): Likewise.
6921 (vqdmull_high_lane_s16): Likewise.
6922 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
6923 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
6924 (vqdmlsl_lane_s16): Likewise.
6925 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
6926 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
6927 (vqdmlals_lane_s32): Likewise.
6928 (vqdmlsls_lane_s32): Likewise.
6929 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
6930 (vqdmulls_lane_s32): Likewise.
6931 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
6932 (vqdmlsl_lane_s32): Likewise.
6933 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
6934 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
6935 (vqrdmulhh_lane_s16): Likewise.
6936 (vqdmlsl_high_lane_s16): Likewise.
6937 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
6938 (vqdmlsl_high_lane_s32): Likewise.
6939 (vqrdmulhs_lane_s32): Likewise.
6940
6941 2014-06-20 Tom de Vries <tom@codesourcery.com>
6942
6943 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
6944 get_call_reg_set_usage.
6945
6946 2014-06-20 Tom de Vries <tom@codesourcery.com>
6947
6948 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
6949 it contains all call_used_regs.
6950
6951 2014-06-20 Tom de Vries <tom@codesourcery.com>
6952
6953 * final.c (collect_fn_hard_reg_usage): Add and use variable
6954 function_used_regs.
6955
6956 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
6957
6958 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
6959 (set_init_priority, get_init_priority, set_fini_priority,
6960 get_fini_priority): New methods.
6961 * tree.c (init_priority_for_decl): Remove.
6962 (init_ttree): Do not initialize init priority.
6963 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
6964 (decl_priority_info): Remove.
6965 (decl_init_priority_insert): Rewrite.
6966 (decl_fini_priority_insert): Rewrite.
6967 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
6968 tree_priority_map_marked_p): Remove.
6969 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
6970 * lto-streamer-out.c (hash_tree): Do not hash priorities.
6971 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
6972 not output priorities.
6973 (pack_ts_function_decl_value_fields): Likewise.
6974 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
6975 not input priorities.
6976 (unpack_ts_function_decl_value_fields): Likewise.
6977 * symtab.c (symbol_priority_map): Declare.
6978 (init_priority_hash): Declare.
6979 (symtab_unregister_node): Unregister from priority hash, too.
6980 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
6981 New methods.
6982 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
6983 (symbol_priority_info): New function.
6984 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
6985 New methods.
6986 * tree-core.h (tree_priority_map): Remove.
6987
6988 2014-06-20 Jakub Jelinek <jakub@redhat.com>
6989
6990 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
6991 0xff to uint64_t before shifting it up.
6992
6993 2014-06-20 Julian Brown <julian@codesourcery.com>
6994 Chung-Lin Tang <cltang@codesourcery.com>
6995
6996 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
6997 TARGET_THUMB1_ONLY. Add comments.
6998
6999 2014-06-19 Tom de Vries <tom@codesourcery.com>
7000
7001 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
7002 return type to void.
7003 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
7004
7005 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7006
7007 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
7008 as "move", from depends_on.
7009
7010 2014-06-19 Terry Guo <terry.guo@arm.com>
7011
7012 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
7013 stage.
7014
7015 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
7016
7017 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
7018 Remove cr5.
7019 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
7020
7021 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
7022
7023 PR target/61550
7024 * config/sh/sh.c (prepare_move_operands): Don't process TLS
7025 addresses here if reload in progress or completed.
7026
7027 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
7028
7029 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
7030 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
7031 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
7032 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
7033 (mips_register_priority): New function that implements the target
7034 hook TARGET_REGISTER_PRIORITY.
7035 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
7036 (mips_lra_p): Likewise for TARGET_LRA_P.
7037 (TARGET_REGISTER_PRIORITY): Define macro.
7038 (TARGET_SPILL_CLASS): Likewise.
7039 (TARGET_LRA_P): Likewise.
7040 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
7041 classes.
7042 (REG_CLASS_NAMES): Likewise.
7043 (REG_CLASS_CONTENTS): Likewise.
7044 (BASE_REG_CLASS): Use M16_SP_REGS.
7045 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
7046 New set attribute to enable alternatives depending on the register
7047 allocator used.
7048 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
7049 (*lea64): Disable pattern for MIPS16.
7050 * config/mips/mips.opt (mlra): New option.
7051
7052 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
7053
7054 * lra-constraints.c (base_to_reg): New function.
7055 (process_address): Use new function.
7056
7057 2014-06-18 Tom de Vries <tom@codesourcery.com>
7058
7059 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
7060 * config/aarch64/aarch64.c
7061 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
7062 (aarch64_emit_call_insn): New function.
7063 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
7064 of emit_call_insn.
7065 * config/aarch64/aarch64.md (define_expand "call_internal")
7066 (define_expand "call_value_internal", define_expand "sibcall_internal")
7067 (define_expand "sibcall_value_internal"): New.
7068 (define_expand "call", define_expand "call_value")
7069 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
7070 expand variant and aarch64_emit_call_insn.
7071
7072 2014-06-18 Radovan Obradovic <robradovic@mips.com>
7073 Tom de Vries <tom@codesourcery.com>
7074
7075 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
7076 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
7077 Redefine to true.
7078 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
7079 clobbers to CALL_INSN_FUNCTION_USAGE.
7080 (define_expand "sibcall_internal")
7081 (define_expand "sibcall_value_internal"): New.
7082 (define_expand "call", define_expand "call_value"): Add argument to
7083 arm_emit_call_insn.
7084 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
7085 (define_expand "sibcall_value"): Use sibcall_value_internal and
7086 arm_emit_call_insn.
7087
7088 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7089
7090 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
7091
7092 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7093
7094 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
7095 __udivmoddi4.
7096
7097 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7098
7099 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
7100 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
7101 annotations. Fix DWARF information.
7102
7103 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7104
7105 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
7106 __udivmoddi4, and fixups for negative operands.
7107
7108 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7109
7110 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
7111
7112 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7113
7114 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
7115 to __udivmoddi4.
7116
7117 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7118
7119 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
7120 manipulation.
7121
7122 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7123
7124 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
7125 describing register usage on function entry and exit.
7126
7127 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7128
7129 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
7130 (__aeabi_ldivmod): Fix whitespace.
7131
7132 2014-06-18 Andreas Schwab <schwab@suse.de>
7133
7134 * doc/md.texi (Standard Names): Use @itemx for grouped items.
7135 Remove blank line after @item.
7136
7137 2014-06-18 Richard Henderson <rth@redhat.com>
7138
7139 PR target/61545
7140 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
7141
7142 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
7143
7144 * config/arm/arm.c (neon_vector_mem_operand): Allow register
7145 POST_MODIFY for neon loads and stores.
7146 (arm_print_operand): Output post-index register for neon loads and
7147 stores.
7148
7149 2014-06-18 Richard Biener <rguenther@suse.de>
7150
7151 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
7152
7153 2014-06-18 Richard Biener <rguenther@suse.de>
7154
7155 * tree-pass.h (make_pass_dce_loop): Remove.
7156 * passes.def: Replace pass_dce_loop with pass_dce.
7157 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
7158 changed free niter estimates and reset the scev cache.
7159 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
7160 make_pass_dce_loop): Remove.
7161 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
7162 (fini_copy_prop): Return whether something changed. Always
7163 let substitute_and_fold perform DCE and free niter estimates
7164 and reset the scev cache if so.
7165 (execute_copy_prop): If sth changed schedule cleanup-cfg.
7166 (pass_data_copy_prop): Do not unconditionally schedule
7167 cleanup-cfg or update-ssa.
7168
7169 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
7170
7171 PR tree-optimization/61518
7172 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
7173 reduction var is used in reduction stmt or phi-function only.
7174
7175 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7176
7177 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
7178
7179 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
7180
7181 PR tree-optimization/61517
7182 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
7183 whose rhs's first tree is the source expression instead of the
7184 expression itself.
7185 (find_bswap_or_nop): Likewise.
7186 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
7187 gimple stmt whose rhs's first tree is the source. In the memory source
7188 case, move the stmt to be replaced close to one of the original load to
7189 avoid the problem of a store between the load and the stmt's original
7190 location.
7191 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
7192 signature.
7193
7194 2014-06-18 Andreas Schwab <schwab@suse.de>
7195
7196 PR rtl-optimization/54555
7197 * postreload.c (move2add_use_add2_insn): Substitute
7198 STRICT_LOW_PART only if it is cheaper.
7199
7200 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
7201
7202 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
7203 Do not use unspec as call operand. Use memory_operand instead of
7204 memory_nox32_operand and add "m" operand constraint. Disable
7205 pattern for TARGET_X32.
7206 (*sibcall_pop_memory): Ditto.
7207 (*sibcall_value_memory): Ditto.
7208 (*sibcall_value_pop_memory): Ditto.
7209 (sibcall peepholes): Merge SImode and DImode patterns using
7210 W mode iterator. Use memory_operand instead of memory_nox32_operand.
7211 Disable pattern for TARGET_X32. Check if eliminated register is
7212 really dead after call insn. Generate call RTX without unspec operand.
7213 (sibcall_value peepholes): Ditto.
7214 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
7215 instead of memory_nox32_operand. Check if eliminated register is
7216 really dead after call insn. Generate call RTX without unspec operand.
7217 (sibcall_value_pop peepholes): Ditto.
7218 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
7219
7220 2014-06-18 Terry Guo <terry.guo@arm.com>
7221
7222 PR target/61544
7223 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
7224 reach the head.
7225
7226 2014-06-18 Olivier Hainque <hainque@adacore.com>
7227
7228 * tree-core.h (tree_block): Add an "end_locus" field, allowing
7229 memorization of the end of block source location.
7230 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
7231 * gimplify.c (gimplify_bind_expr): Propagate the block start and
7232 end source location info we have on the block entry/exit code we
7233 generate.
7234
7235 2014-06-18 Richard Biener <rguenther@suse.de>
7236
7237 * common.opt (fssa-phiopt): New option.
7238 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
7239 but not with -Og.
7240 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
7241 * doc/invoke.texi (-fssa-phiopt): Document.
7242
7243 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7244
7245 * genattrtab.c (n_bypassed): New variable.
7246 (process_bypasses): Initialise n_bypassed.
7247 Count number of bypassed reservations.
7248 (make_automaton_attrs): Allocate space for bypassed reservations
7249 rather than number of bypasses.
7250
7251 2014-06-18 Richard Biener <rguenther@suse.de>
7252
7253 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
7254 we propagated anything.
7255 (substitute_and_fold_dom_walker::before_dom_children): Something
7256 changed if we propagated into PHI arguments.
7257 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
7258 we removed a stmt.
7259
7260 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
7261
7262 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
7263 vector case.
7264 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
7265 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
7266 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
7267 Introduces alternative way of loads group permutaions.
7268 (vect_transform_grouped_load): Try alternative way of permutations.
7269
7270 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7271
7272 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
7273 changed in ORT_TARGET region, don't jump to do_outer.
7274 (struct gimplify_adjust_omp_clauses_data): New type.
7275 (gimplify_adjust_omp_clauses_1): Adjust for data being
7276 a struct gimplify_adjust_omp_clauses_data pointer instead
7277 of tree *. Pass pre_p as a new argument to
7278 lang_hooks.decls.omp_finish_clause hook.
7279 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
7280 splay_tree_foreach to pass both list_p and pre_p.
7281 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
7282 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
7283 gimplify_adjust_omp_clauses callers.
7284 * langhooks.c (lhd_omp_finish_clause): New function.
7285 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
7286 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
7287 * langhooks.h (struct lang_hooks_for_decls): Add a new
7288 gimple_seq * argument to omp_finish_clause hook.
7289 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
7290 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
7291 (scan_omp_parallel, lower_omp_for): When adding
7292 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
7293 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
7294 * tree-nested.c (convert_nonlocal_omp_clauses,
7295 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
7296 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
7297
7298 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
7299
7300 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
7301 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
7302
7303 2014-06-17 Xinliang David Li <davidxl@google.com>
7304
7305 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
7306 * passes.c (pass_init_dump_file): Do not set initialize
7307 flag to false unconditionally.
7308
7309 2014-06-17 Richard Biener <rguenther@suse.de>
7310
7311 * genopinit.c (main): Use vec<>::qsort method.
7312 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
7313 Likewise.
7314 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
7315
7316 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
7317
7318 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
7319 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
7320 (mips_move_to_gpr_cost): Remove ST_REGS case.
7321 (mips_move_from_gpr_cost): Likewise.
7322 (mips_register_move_cost): Likewise.
7323 (mips_secondary_reload_class): Likewise.
7324
7325 2014-06-17 Richard Biener <rguenther@suse.de>
7326
7327 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
7328 (pass_all_optimizations): Move 3rd copy-prop pass from after
7329 fre to before ifcombine/phiopt.
7330
7331 2014-06-17 Richard Biener <rguenther@suse.de>
7332
7333 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
7334 and allow all blocks to be forwarders.
7335
7336 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
7337
7338 PR target/61483
7339 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
7340 variable 'size'; calculate 'size' right in the front; use
7341 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
7342 pcum->aapcs_stack_words.
7343
7344 2014-06-17 Nick Clifton <nickc@redhat.com>
7345
7346 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
7347 (umulhi3, mulsidi3, umulsidi3): Likewise.
7348
7349 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
7350
7351 PR middle-end/61508
7352 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
7353 check for section name.
7354
7355 2014-06-17 Richard Biener <rguenther@suse.de>
7356
7357 * tree-ssa-propagate.c: Include domwalk.h.
7358 (substitute_and_fold): Outline main worker into a domwalker ...
7359 (substitute_and_fold_dom_walker::before_dom_children): ... here.
7360 Schedule stmts we can fully propagate for removal. Remove
7361 poor-mans DCE.
7362 (substitute_and_fold): Apply a dominator walk to perform
7363 substitution. Process stmts scheduled for removal here.
7364
7365 2014-06-17 Richard Biener <rguenther@suse.de>
7366
7367 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
7368 of PHI node moving.
7369
7370 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7371
7372 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
7373 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
7374 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
7375 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
7376 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
7377 TARGET_HARD_FLOAT.
7378 (get_fpscr) : Likewise.
7379
7380 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7381
7382 PR rtl-optimization/61325
7383 * lra-constraints.c (valid_address_p): Add forward declaration.
7384 (simplify_operand_subreg): Check address validity before and after
7385 alter_reg of memory subreg.
7386
7387 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
7388
7389 * config/i386/i386.c (decide_alg): Correctly handle
7390 maximum size of stringop algorithm.
7391
7392 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7393
7394 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
7395
7396 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
7397
7398 PR rtl-optimization/61522
7399 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
7400
7401 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
7402
7403 Revert:
7404 * symtab.c (symtab_node::reset_section): New method.
7405 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7406 for localization.
7407 * cgraph.h (reset_section): Declare.
7408 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7409 do not consider comdat locals.
7410 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7411 for new symbol.
7412 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7413 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7414 reset sections of symbols dragged out of the comdats.
7415 (function_and_variable_visibility): Reset sections of
7416 localized symbols.
7417
7418 2014-06-16 Richard Biener <rguenther@suse.de>
7419
7420 PR tree-optimization/61482
7421 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
7422 [-INF(OVF), +INF(OVF)] range.
7423
7424 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7425
7426 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
7427 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
7428 handling 32-bit multiplication.
7429
7430 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
7431
7432 PR middle-end/61430
7433 * lra-lives.c (process_bb_lives): Skip creating copy during
7434 insn scan when src/dest has constrained to same regno.
7435
7436 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7437
7438 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
7439 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
7440
7441 2014-06-16 Yury Gribov <y.gribov@samsung.com>
7442
7443 * asan.c (check_func): New function.
7444 (maybe_create_ssa_name): Likewise.
7445 (build_check_stmt_with_calls): Likewise.
7446 (use_calls_p): Likewise.
7447 (report_error_func): Change interface.
7448 (build_check_stmt): Allow non-integer lengths; add support
7449 for new parameter.
7450 (asan_instrument): Likewise.
7451 (instrument_mem_region_access): Moved code to build_check_stmt.
7452 (instrument_derefs): Likewise.
7453 (instrument_strlen_call): Likewise.
7454 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
7455 * doc/invoke.texi: Describe new parameter.
7456 * params.def: Define new parameter.
7457 * params.h: Likewise.
7458 * sanitizer.def: Describe new builtins.
7459
7460 2014-06-16 Richard Biener <rguenther@suse.de>
7461
7462 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7463 Make all defs available at the end.
7464 (eliminate): If we remove a PHI node schedule cfg-cleanup.
7465
7466 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7467
7468 PR plugins/45078
7469 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
7470
7471 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
7472
7473 PR bootstrap/61516
7474 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
7475 initialization. Replace remaining use of uid.
7476
7477 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
7478
7479 * c-family/c-common.c (handle_tls_model_attribute): Use
7480 set_decl_tls_model.
7481 * c-family/c-common.c (handle_tls_model_attribute): Use
7482 set_decl_tls_model.
7483 * cgraph.h (struct varpool_node): Add tls_model.
7484 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
7485 * tree.h (DECL_TLS_MODEL): Update.
7486 (DECL_THREAD_LOCAL_P): Check that variable is static.
7487 (decl_tls_model): Declare.
7488 (set_decl_tls_model): Declare.
7489 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
7490 set symbol prorperties.
7491 (get_emutls_init_templ_addr): Cleanup.
7492 (new_emutls_decl): Update.
7493 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
7494 (lto_input_varpool_node): Likewise.
7495 * lto-streamer-out.c (hash_tree): Likewise.
7496 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7497 not stream DECL_TLS_MODEL.
7498 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
7499 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
7500
7501 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7502
7503 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
7504
7505 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7506
7507 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
7508 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
7509 lists.
7510 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
7511 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
7512 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
7513 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
7514 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
7515 (df_get_artificial_defs, df_get_artificial_uses)
7516 (df_single_def, df_single_use): Update accordingly.
7517 (df_refs_chain_dump): Take the first element in a linked list as
7518 parameter, rather than a pointer to an array of pointers.
7519 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
7520 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
7521 (df_chain_create_bb_process_use): Likewise.
7522 (df_md_bb_local_compute_process_def): Likewise.
7523 * fwprop.c (process_defs, process_uses): Likewise.
7524 (register_active_defs, update_uses): Likewise.
7525 (forward_propagate_asm): Update for new df_ref linking.
7526 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
7527 (df_null_ref_rec, df_null_mw_rec): Likewise.
7528 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
7529 explicitly.
7530 (df_scan_free_bb_info): Remove check for null artificial_defs.
7531 (df_install_ref_incremental): Adjust for new df_ref linking.
7532 Use a single-element insertion rather than a full sort.
7533 (df_ref_chain_delete_du_chain): Take the first element
7534 in a linked list as parameter, rather than a pointer to an array of
7535 pointers.
7536 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
7537 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
7538 (df_insn_info_delete): Remove check for null defs and call to
7539 df_scan_free_mws_vec.
7540 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
7541 null rather than df_null_*_rec.
7542 (df_insn_rescan_debug_internal): Likewise, and update null
7543 checks in the same way. Remove check for null defs.
7544 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
7545 Move a single element rather doing a full sort.
7546 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
7547 linking.
7548 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
7549 Initialize df_ref and df_mw_hardreg lists to null rather than
7550 df_null_*_rec.
7551 (df_ref_compare): Take df_refs as parameter, transferring the
7552 old interface to...
7553 (df_ref_ptr_compare): ...this new function.
7554 (df_sort_and_compress_refs): Update accordingly.
7555 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
7556 old interface to...
7557 (df_mw_ptr_compare): ...this new function.
7558 (df_sort_and_compress_mws): Update accordingly.
7559 (df_install_refs, df_install_mws): Return a linked list rather than
7560 an array of pointers.
7561 (df_refs_add_to_chains): Assert that old lists are empty rather
7562 than freeing them.
7563 (df_insn_refs_verify): Don't handle null defs speciailly.
7564 * web.c (union_match_dups): Update for new df_ref linking.
7565
7566 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7567
7568 * df.h (df_ref_create, df_ref_remove): Delete.
7569 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
7570 (df_ref_remove): Likewise.
7571
7572 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7573
7574 * df.h (df_single_def, df_single_use): New functions.
7575 * ira.c (find_moveable_pseudos): Use them.
7576
7577 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7578
7579 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
7580 * df-problems.c (df_note_bb_compute): Use it.
7581 * regstat.c (regstat_bb_compute_ri): Likewise.
7582
7583 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7584
7585 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
7586 * cse.c (cse_extended_basic_block): Use them.
7587 * dce.c (mark_artificial_use): Likewise.
7588 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
7589 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7590 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
7591 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
7592 (df_simulate_initialize_backwards): Likewise.
7593 (df_simulate_finalize_backwards): Likewise.
7594 (df_simulate_initialize_forwards): Likewise.
7595 (df_md_simulate_artificial_defs_at_top): Likewise.
7596 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7597 * regrename.c (init_rename_info): Likewise.
7598 * regstat.c (regstat_bb_compute_ri): Likewise.
7599 (regstat_bb_compute_calls_crossed): Likewise.
7600
7601 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
7602
7603 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
7604 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
7605 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
7606 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
7607 * combine.c (create_log_links): Likewise.
7608 * compare-elim.c (find_flags_uses_in_insn): Likewise.
7609 (try_eliminate_compare): Likewise.
7610 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
7611 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
7612 (remove_reg_equal_equiv_notes_for_defs): Likewise.
7613 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
7614 (word_dce_process_block, dce_process_block): Likewise.
7615 * ddg.c (def_has_ccmode_p): Likewise.
7616 * df-core.c (df_bb_regno_first_def_find): Likewise.
7617 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
7618 * df-problems.c (df_rd_simulate_one_insn): Likewise.
7619 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
7620 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
7621 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
7622 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
7623 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
7624 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
7625 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
7626 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
7627 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
7628 * fwprop.c (local_ref_killed_between_p): Likewise.
7629 (all_uses_available_at, free_load_extend): Likewise.
7630 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
7631 * hw-doloop.c (scan_loop): Likewise.
7632 * ifcvt.c (dead_or_predicable): Likewise.
7633 * init-regs.c (initialize_uninitialized_regs): Likewise.
7634 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
7635 (process_bb_node_lives): Likewise.
7636 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
7637 (find_moveable_pseudos): Likewise.
7638 * loop-invariant.c (check_dependencies, record_uses): Likewise.
7639 * recog.c (peep2_find_free_register): Likewise.
7640 * ree.c (get_defs): Likewise.
7641 * regstat.c (regstat_bb_compute_ri): Likewise.
7642 (regstat_bb_compute_calls_crossed): Likewise.
7643 * sched-deps.c (find_inc, find_mem): Likewise.
7644 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
7645 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
7646 * shrink-wrap.c (requires_stack_frame_p): Likewise.
7647 (prepare_shrink_wrap): Likewise.
7648 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
7649 * web.c (union_defs, pass_web::execute): Likewise.
7650 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
7651 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
7652
7653 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
7654
7655 * lra-assign.c (assign_by_spills): Add code to assign vector regs
7656 to inheritance pseudos.
7657 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
7658
7659 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
7660
7661 PR target/61415
7662 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
7663 (BU_MISC_2): Rename to ...
7664 (BU_LDBL128_2): ... this.
7665 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
7666 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
7667 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7668 RS6000_BTM_LDBL128.
7669 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
7670 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
7671 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
7672 (unpacktf_1): Likewise.
7673 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
7674 (__builtin_longdouble_dw1): Likewise.
7675 * doc/sourcebuild.texi (longdouble128): Document.
7676
7677 2014-06-13 Jeff Law <law@redhat.com>
7678
7679 PR rtl-optimization/61094
7680 PR rtl-optimization/61446
7681 * ree.c (combine_reaching_defs): Get the mode for the copy from
7682 the extension insn rather than the defining insn.
7683
7684 2014-06-13 Dehao Chen <dehao@google.com>
7685
7686 * dwarf2out.c (add_linkage_name): Emit more linkage name.
7687
7688 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
7689
7690 * doc/install.texi (--enable-linker-plugin-configure-flags)
7691 (--enable-linker-plugin-flags): Document new flags.
7692
7693 2014-06-13 Martin Jambor <mjambor@suse.cz>
7694
7695 PR ipa/61186
7696 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
7697 cache_token if returning early.
7698
7699 2014-06-13 Nick Clifton <nickc@redhat.com>
7700
7701 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
7702 requested alignment is active.
7703 (LABEL_ALIGN): Likewise.
7704 (LOOP_ALIGN): Likewise.
7705
7706 2014-06-13 Richard Biener <rguenther@suse.de>
7707
7708 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7709 Rewrite to propagate the VN result into all uses where
7710 possible and to remove stmts becoming dead because of that.
7711 (eliminate): Generalize stmt removal handling, remove in
7712 reverse dominator order to support proper debug stmt
7713 generation. Update stmts before removing stmts.
7714 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
7715
7716 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
7717
7718 PR tree-optimization/61375
7719 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
7720 symbolic number cannot be represented in an uint64_t.
7721 (find_bswap_or_nop_1): Likewise.
7722
7723 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7724
7725 * symtab.c (symtab_node::reset_section): New method.
7726 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
7727 for localization.
7728 * cgraph.h (reset_section): Declare.
7729 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
7730 do not consider comdat locals.
7731 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
7732 for new symbol.
7733 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
7734 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
7735 reset sections of symbols dragged out of the comdats.
7736 (function_and_variable_visibility): Reset sections of
7737 localized symbols.
7738
7739 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
7740
7741 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
7742 to use symtab and decl_binds_to_current_def_p
7743 * tree-vectorizer.c (increase_alignment): Increase alignment
7744 of alias target, too.
7745
7746 2014-06-12 Jakub Jelinek <jakub@redhat.com>
7747
7748 PR middle-end/61486
7749 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
7750 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
7751 if outer combined construct is distribute.
7752 (gimplify_omp_for): For OMP_DISTRIBUTE set
7753 gimplify_omp_ctxp->distribute.
7754 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
7755 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
7756 mapping into decl map.
7757
7758 2014-06-12 Jason Merrill <jason@redhat.com>
7759
7760 * common.opt (fabi-version): Change default to 0.
7761
7762 2014-06-12 Jason Merrill <jason@redhat.com>
7763
7764 * toplev.c (process_options): Reject -fabi-version=1.
7765
7766 2014-06-12 Jeff Law <law@redhat.com>
7767
7768 PR tree-optimization/61009
7769 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
7770 value when we stop processing a block due to problematic PHIs.
7771
7772 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
7773
7774 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
7775 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
7776 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
7777 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
7778 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
7779 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
7780 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
7781 are not in the spec.
7782
7783 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
7784
7785 PR target/59843
7786 * config/aarch64/aarch64-modes.def: Add V1DFmode.
7787 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
7788 Support V1DFmode.
7789
7790 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
7791
7792 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
7793
7794 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
7795
7796 PR target/61443
7797 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
7798 loading from address spaces.
7799
7800 2014-06-12 Martin Liska <mliska@suse.cz>
7801
7802 PR ipa/61462
7803 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
7804 statement is reachable.
7805
7806 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
7807
7808 * symtab.c (section_hash): New hash.
7809 (symtab_unregister_node): Clear section before freeing.
7810 (hash_section_hash_entry): New haser.
7811 (eq_sections): New function.
7812 (symtab_node::set_section_for_node): New method.
7813 (set_section_1): Update.
7814 (symtab_node::set_section): Take string instead of tree as parameter.
7815 (symtab_resolve_alias): Update.
7816 * cgraph.h (section_hash_entry_d): New structure.
7817 (section_hash_entry): New typedef.
7818 (cgraph_node): Change comdat_group_ to x_comdat_group,
7819 change section_ to x_section and turn into section_hash_entry;
7820 update accestors; put set_section_for_node offline.
7821 * tree.c (decl_section_name): Turn into string.
7822 (set_decl_section_name): Change parameter to be string.
7823 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
7824 * sdbout.c (sdbout_one_type): Update.
7825 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
7826 * varasm.c (IN_NAMED_SECTION, get_named_section,
7827 resolve_unique_section, hot_function_section, get_named_text_section,
7828 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
7829 make_decl_rtl, default_unique_section): Update.
7830 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
7831 (c6x_elf_unique_section): Update.
7832 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
7833 * config/pa/pa.c (pa_function_section): Update.
7834 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
7835 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
7836 * config/arc/arc.c (arc_in_small_data_p): Update.
7837 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
7838 * config/mcore/mcore.c (mcore_unique_section): Update.
7839 * config/mips/mips.c (mips16_build_function_stub): Update.
7840 (mips16_build_call_stub): Update.
7841 (mips_function_rodata_section): Update.
7842 (mips_in_small_data_p): Update.
7843 * config/score/score.c (score_in_small_data_p): Update.
7844 * config/rx/rx.c (rx_in_small_data): Update.
7845 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
7846 (rs6000_xcoff_asm_named_section): Update.
7847 (rs6000_xcoff_unique_section): Update.
7848 * config/frv/frv.c (frv_string_begins_with): Update.
7849 (frv_in_small_data_p): Update.
7850 * config/v850/v850.c (v850_encode_data_area): Update.
7851 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
7852 (bfin_handle_l1_data_attribute): Update.
7853 (bfin_handle_l2_attribute): Update.
7854 * config/mep/mep.c (mep_unique_section): Update.
7855 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
7856 Update.
7857 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
7858 (h8300_handle_tiny_data_attribute): Update.
7859 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
7860 (m32r_in_small_data_p): Update.
7861 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
7862 * config/i386/i386.c (ix86_in_large_data_p): Update.
7863 * config/i386/winnt.c (i386_pe_unique_section): Update.
7864 * config/darwin.c (darwin_function_section): Update.
7865 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
7866 * tree-emutls.c (get_emutls_init_templ_addr): Update.
7867 (new_emutls_decl): Update.
7868 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
7869 input_varpool_node): Update.
7870 (ead_string_cst): Turn to ...
7871 (read_string): ... this one.
7872 * dwarf2out.c (secname_for_decl): Update.
7873 * asan.c (asan_protect_global): Update.
7874
7875 2014-06-11 DJ Delorie <dj@redhat.com>
7876
7877 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
7878 cache lines.
7879 * config/rx/rx.c (rx_option_override): Likewise.
7880 (rx_align_for_label): Likewise.
7881
7882 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
7883
7884 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
7885
7886 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
7887 prototype.
7888
7889 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7890
7891 * common.md: New file.
7892 * doc/md.texi: Update description of generic, machine-independent
7893 constraints.
7894 * config/s390/constraints.md (e): Delete.
7895 * Makefile.in (md_file): Include common.md.
7896 * config/m32c/t-m32c (md_file): Likewise.
7897 * genpreds.c (general_mem): New array.
7898 (generic_constraint_letters): Remove constraints now defined by
7899 common.md.
7900 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7901 Allow the first character to be '<' or '>' as well.
7902 * genoutput.c (general_mem): New array.
7903 (indep_constraints): Remove constraints now defined by common.md.
7904 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
7905 Remove special handling of 'm'.
7906 * ira-costs.c (record_reg_classes): Remove special handling of
7907 constraints now defined by common.md.
7908 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7909 * ira-lives.c (single_reg_class): Likewise.
7910 (ira_implicitly_set_insn_hard_regs): Likewise.
7911 * lra-constraints.c (reg_class_from_constraints): Likewise.
7912 (process_alt_operands, process_address, curr_insn_transform): Likewise.
7913 * postreload.c (reload_cse_simplify_operands): Likewise.
7914 * reload.c (push_secondary_reload, scratch_reload_class)
7915 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7916 * reload1.c (maybe_fix_stack_asms): Likewise.
7917 * targhooks.c (default_secondary_reload): Likewise.
7918 * stmt.c (parse_output_constraint): Likewise.
7919 * recog.c (preprocess_constraints): Likewise.
7920 (constrain_operands, peep2_find_free_register): Likewise.
7921 (asm_operand_ok): Likewise, but add a comment saying why 'o'
7922 must be handled specially.
7923
7924 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7925
7926 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
7927 * genpreds.c (have_const_dbl_constraints): Delete.
7928 (add_constraint): Don't set it.
7929 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
7930 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
7931 constraints using the lookup_constraint logic.
7932 * ira-lives.c (single_reg_class): Likewise.
7933 * ira.c (ira_setup_alts): Likewise.
7934 * lra-constraints.c (process_alt_operands): Likewise.
7935 * recog.c (asm_operand_ok, constrain_operands): Likewise.
7936 * reload.c (find_reloads): Likewise.
7937
7938 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7939
7940 * genpreds.c (const_int_start, const_int_end): New variables.
7941 (choose_enum_order): Output CONST_INT constraints before memory
7942 constraints.
7943 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
7944 Add CT_CONST_INT.
7945 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
7946 * ira.c (ira_setup_alts): Likewise.
7947 * lra-constraints.c (process_alt_operands): Likewise.
7948 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7949 * reload.c (find_reloads): Likewise.
7950
7951 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7952
7953 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
7954 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
7955 * recog.c (preprocess_constraints): Update accordingly.
7956
7957 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7958
7959 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
7960 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
7961 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
7962 * genpreds.c (print_type_tree): New function.
7963 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
7964 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
7965 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
7966 Write out enum constraint_type and get_constraint_type.
7967 * lra-constraints.c (satisfies_memory_constraint_p): Take a
7968 constraint_num rather than a constraint string.
7969 (satisfies_address_constraint_p): Likewise.
7970 (reg_class_from_constraints): Avoid old constraint macros.
7971 (process_alt_operands, process_address_1): Likewise.
7972 (curr_insn_transform): Likewise.
7973 * ira-costs.c (record_reg_classes): Likewise.
7974 (record_operand_costs): Likewise.
7975 * ira-lives.c (single_reg_class): Likewise.
7976 (ira_implicitly_set_insn_hard_regs): Likewise.
7977 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7978 * postreload.c (reload_cse_simplify_operands): Likewise.
7979 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
7980 (constrain_operands, peep2_find_free_register): Likewise.
7981 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
7982 (find_reloads, alternative_allows_const_pool_ref): Likewise.
7983 * reload1.c (maybe_fix_stack_asms): Likewise.
7984 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7985 * targhooks.c (default_secondary_reload): Likewise.
7986 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
7987 to EXTRA_CONSTRAINT_STR.
7988 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
7989
7990 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7991
7992 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
7993 (write_constraint_satisfied_p_array): ...this new function.
7994 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
7995 an array.
7996 (write_insn_preds_c): Update accordingly.
7997
7998 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
7999
8000 * genpreds.c (write_lookup_constraint): Rename to...
8001 (write_lookup_constraint_1): ...this.
8002 (write_lookup_constraint_array): New function.
8003 (write_tm_preds_h): Define lookup_constraint as an inline function
8004 that uses write_lookup_constraint_array where possible.
8005 (write_insn_preds_c): Update for the changes above.
8006
8007 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8008
8009 * doc/md.texi (regclass_for_constraint): Rename to...
8010 (reg_class_for_constraint): ...this.
8011 * genpreds.c (num_constraints, enum_order, register_start)
8012 (register_end, satisfied_start, memory_start, memory_end)
8013 (address_start, address_end): New variables.
8014 (add_constraint): Count the number of constraints.
8015 (choose_enum_order): New function.
8016 (write_enum_constraint_num): Iterate over enum_order.
8017 (write_regclass_for_constraint): Rename to...
8018 (write_reg_class_for_constraint_1): ...this and update output
8019 accordingly.
8020 (write_constraint_satisfied_p): Rename to...
8021 (write_constraint_satisfied_p_1): ...this and update output
8022 accordingly. Do nothing if all extra constraints are register
8023 constraints.
8024 (write_insn_extra_memory_constraint): Delete.
8025 (write_insn_extra_address_constraint): Delete.
8026 (write_range_function): New function.
8027 (write_tm_preds_h): Define constraint_satisfied_p and
8028 reg_class_for_constraint as inline functions that do a range check
8029 before calling the out-of-line function. Use write_range_function
8030 to implement insn_extra_{register,memory,address}_constraint,
8031 the first of which is new.
8032 (write_insn_preds_c): Update after above changes to write_* functions.
8033 (main): Call choose_enum_order.
8034
8035 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
8036
8037 PR tree-optimization/61306
8038 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
8039 expression instead of its size.
8040 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
8041 false to prevent optimization when the result is unpredictable due to
8042 arithmetic right shift of signed type with highest byte is set.
8043 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
8044 (init_symbolic_number): Likewise.
8045 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
8046 when the result is unpredictable due to sign extension.
8047
8048 2014-06-11 Terry Guo <terry.guo@arm.com>
8049
8050 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
8051 (*thumb1_addsi3): Ditto.
8052 (*thumb_subdi3): Ditto.
8053 (thumb1_subsi3_insn): Ditto.
8054 (*thumb_mulsi3): Ditto.
8055 (*thumb_mulsi3_v6): Ditto.
8056 (*thumb1_andsi3_insn): Ditto.
8057 (thumb1_bicsi3): Ditto.
8058 (*thumb1_iorsi3_insn): Ditto.
8059 (*thumb1_xorsi3_insn): Ditto.
8060 (*thumb1_ashlsi3): Ditto.
8061 (*thumb1_ashrsi3): Ditto.
8062 (*thumb1_lshrsi3): Ditto.
8063 (*thumb1_rotrsi3): Ditto.
8064 (*thumb1_negdi2): Ditto.
8065 (*thumb1_negsi2): Ditto.
8066 (*thumb1_abssi2): Ditto.
8067 (*thumb1_neg_abssi2): Ditto.
8068 (*thumb1_one_cmplsi2): Ditto.
8069 (*thumb1_zero_extendhisi2): Ditto.
8070 (*thumb1_zero_extendqisi2): Ditto.
8071 (*thumb1_zero_extendqisi2_v6): Ditto.
8072 (thumb1_extendhisi2): Ditto.
8073 (thumb1_extendqisi2): Ditto.
8074 (*thumb1_movdi_insn): Ditto.
8075 (*thumb1_movsi_insn): Ditto.
8076 (*thumb1_movhi_insn): Ditto.
8077 (thumb_movhi_clobber): Ditto.
8078 (*thumb1_movqi_insn): Ditto.
8079 (*thumb1_movhf): Ditto.
8080 (*thumb1_movsf_insn): Ditto.
8081 (*thumb_movdf_insn): Ditto.
8082 (movmem12b): Ditto.
8083 (movmem8b): Ditto.
8084 (cbranchqi4): Ditto.
8085 (cbranchsi4_insn): Ditto.
8086 (cbranchsi4_scratch): Ditto.
8087 (*negated_cbranchsi4): Ditto.
8088 (*tbit_cbranch): Ditto.
8089 (*tlobits_cbranch): Ditto.
8090 (*tstsi3_cbranch): Ditto.
8091 (*cbranchne_decr1): Ditto.
8092 (*addsi3_cbranch): Ditto.
8093 (*addsi3_cbranch_scratch): Ditto.
8094 (*thumb_cmpdi_zero): Ditto.
8095 (cstoresi_eq0_thumb1): Ditto.
8096 (cstoresi_ne0_thumb1): Ditto.
8097 (*cstoresi_eq0_thumb1_insn): Ditto.
8098 (*cstoresi_ne0_thumb1_insn): Ditto.
8099 (cstoresi_nltu_thumb1): Ditto.
8100 (cstoresi_ltu_thumb1): Ditto.
8101 (thumb1_addsi3_addgeu): Ditto.
8102 (*thumb_jump): Ditto.
8103 (*call_reg_thumb1_v5): Ditto.
8104 (*call_reg_thumb1): Ditto.
8105 (*call_value_reg_thumb1_v5): Ditto.
8106 (*call_value_reg_thumb1): Ditto.
8107 (*call_insn): Ditto.
8108 (*call_value_insn): Ditto.
8109 (thumb1_casesi_internal_pic): Ditto.
8110 (thumb1_casesi_dispatch): Ditto.
8111 (*thumb1_indirect_jump): Ditto.
8112 (prologue_thumb1_interwork): Ditto.
8113 (*epilogue_insns): Ditto.
8114 (consttable_1): Ditto.
8115 (consttable_2): Ditto.
8116 (tablejump): Ditto.
8117 (*thumb1_tablejump): Ditto.
8118 (thumb_eh_return): Ditto.
8119 (define_peephole2): Two of them are thumb1 only and got moved into
8120 new file thumb1.md.
8121 (define_split): Six of them are thumb1 only and got moved into new
8122 file thumb1.md.
8123 * config/arm/thumb1.md: New file comprised of above thumb1 only
8124 patterns.
8125
8126 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8127
8128 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
8129 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
8130 dependencies.
8131 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
8132 (aarch64_crc_builtin_datum): New struct.
8133 (aarch64_crc_builtin_data): New.
8134 (aarch64_init_crc32_builtins): New function.
8135 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
8136 (aarch64_crc32_expand_builtin): New.
8137 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
8138 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8139 __ARM_FEATURE_CRC32 when appropriate.
8140 (TARGET_CRC32): Define.
8141 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
8142 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
8143 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
8144 (aarch64_<crc_variant>): New pattern.
8145 * config/aarch64/arm_acle.h: New file.
8146 * config/aarch64/iterators.md (CRC): New int iterator.
8147 (crc_variant, crc_mode): New int attributes.
8148 * doc/aarch64-acle-intrinsics.texi: New file.
8149 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
8150 Include aarch64-acle-intrinsics.texi.
8151
8152 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
8153
8154 * tree-vect-data-refs.c (vect_grouped_store_supported): New
8155 check for stores group of length 3.
8156 (vect_permute_store_chain): New permutations for stores group of
8157 length 3.
8158 * tree-vect-stmts.c (vect_model_store_cost): Change cost
8159 of vec_perm_shuffle for the new permutations.
8160
8161 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
8162
8163 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
8164 table rewriting temporarily on targets not supporting ONE_ONLY.
8165
8166 2014-06-11 Richard Biener <rguenther@suse.de>
8167
8168 PR middle-end/61437
8169 Revert
8170 2014-06-04 Richard Biener <rguenther@suse.de>
8171
8172 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8173 TREE_PUBLIC and DECL_EXTERNAL decls.
8174
8175 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
8176
8177 * varasm.c (set_implicit_section): New function.
8178 (resolve_unique_section): Use it to set implicit section
8179 for aliases, too.
8180 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
8181 (default_function_section): Likewise.
8182 (decl_binds_to_current_def_p): Constify argument.
8183 * varasm.h (decl_binds_to_current_def_p): Update prototype.
8184 * asan.c (asan_protect_global): Use
8185 symtab_get_node (decl)->implicit_section.
8186 * symtab.c (dump_symtab_base): Dump implicit sections.
8187 (verify_symtab_base): Verify sanity of sectoins and comdats.
8188 (symtab_resolve_alias): Alias share the section of its target.
8189 (set_section_1): New function.
8190 (symtab_node::set_section): Move here, recurse to aliases.
8191 (verify_symtab): Check for duplicated symtab lists.
8192 * tree-core.h (implicit_section_name_p): Remove.
8193 * tree-vect-data-refs.c: Include varasm.h.
8194 (vect_can_force_dr_alignment_p): Fix conditional on when
8195 decl bints to current definition; use
8196 symtab_get_node (decl)->implicit_section.
8197 * cgraph.c (cgraph_make_node_local_1): Fix section set.
8198 * cgraph.h (struct symtab_node): Add implicit_section.
8199 (set_section): Rename to ...
8200 (set_section_for_node): ... this one.
8201 (set_section): Declare.
8202 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
8203 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
8204 input_overwrite_node, input_varpool_node): Stream implicit_section.
8205 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
8206 removal; it will fail in LTO.
8207
8208 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8209
8210 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
8211 Change second alternative type to f_mcr.
8212 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
8213 and 12th alternatives' types to f_mcr and f_mrc.
8214 (*movdi_aarch64): Same for 12th and 13th alternatives.
8215 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
8216 (aarch64_movtilow_tilow): Change type to fmov.
8217
8218 2014-06-10 Jiong Wang <jiong.wang@arm.com>
8219
8220 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
8221 (aarch64_save_or_restore_callee_save_registers): Fix layout.
8222
8223 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8224
8225 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
8226 New expander.
8227 (aarch64_sqrdmulh_lane<mode>): Likewise.
8228 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
8229 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
8230 (aarch64_sqdmulh_laneq<mode>): New expander.
8231 (aarch64_sqrdmulh_laneq<mode>): Likewise.
8232 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
8233 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
8234 (aarch64_sqdmulh_lane<mode>): New expander.
8235 (aarch64_sqrdmulh_lane<mode>): Likewise.
8236 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
8237 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
8238 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
8239 (aarch64_sqdmlal_laneq<mode>): Likewise.
8240 (aarch64_sqdmlsl_lane<mode>): Likewise.
8241 (aarch64_sqdmlsl_laneq<mode>): Likewise.
8242 (aarch64_sqdmlal2_lane<mode>): Likewise.
8243 (aarch64_sqdmlal2_laneq<mode>): Likewise.
8244 (aarch64_sqdmlsl2_lane<mode>): Likewise.
8245 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
8246 (aarch64_sqdmull_lane<mode>): Likewise.
8247 (aarch64_sqdmull_laneq<mode>): Likewise.
8248 (aarch64_sqdmull2_lane<mode>): Likewise.
8249 (aarch64_sqdmull2_laneq<mode>): Likewise.
8250
8251 2014-06-10 Richard Biener <rguenther@suse.de>
8252
8253 PR tree-optimization/61438
8254 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
8255 (eliminate_dom_walker::before_dom_children): Only try to inhibit
8256 insertion of IVs if running PRE.
8257 (eliminate): Adjust.
8258 (pass_pre::execute): Likewise.
8259 (pass_fre::execute): Likewise.
8260
8261 2014-06-10 Richard Biener <rguenther@suse.de>
8262
8263 PR middle-end/61456
8264 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8265 Do not use the main variant for the type comparison.
8266 (ncr_compar): Likewise.
8267 (nonoverlapping_component_refs_p): Likewise.
8268
8269 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
8270
8271 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
8272 REG_CFA_RESTORE mode.
8273
8274 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
8275
8276 * config/i386/i386.c (expand_vec_perm_pblendv): New.
8277 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
8278 expand_vec_perm_pblendv.
8279
8280 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8281
8282 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
8283 available.
8284 Simplify description of __crc32d and __crc32cd intrinsics.
8285 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
8286 availability.
8287
8288 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
8289
8290 PR lto/61334
8291 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
8292 * config.in: Regenerate.
8293 * configure: Likewise.
8294
8295 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
8296
8297 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
8298 and public vars.
8299 (intersect_static_var_sets): Remove.
8300 (propagate): Do not prune local statics.
8301
8302 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8303
8304 PR fortran/60928
8305 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
8306 Set lastprivate_firstprivate even if omp_private_outer_ref
8307 langhook returns true.
8308 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
8309 langhook, call unshare_expr on new_var and call
8310 build_outer_var_ref to get the last argument.
8311
8312 2014-06-10 Marek Polacek <polacek@redhat.com>
8313
8314 PR c/60988
8315 * doc/extend.texi: Add cindex for transparent_union.
8316
8317 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
8318
8319 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
8320 init_symbolic_number ().
8321
8322 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
8323
8324 PR middle-end/61141
8325 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
8326 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
8327 (verify_rtl_sharing): Likewise.
8328
8329 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
8330
8331 PR c++/54442
8332 * tree.c (build_qualified_type): Use a canonical type for
8333 TYPE_CANONICAL.
8334
8335 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8336
8337 * config/arm/arm-modes.def: Remove XFmode.
8338
8339 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
8340
8341 PR target/61062
8342 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
8343 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
8344 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
8345 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
8346 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
8347 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
8348 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
8349 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
8350 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
8351
8352 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
8353
8354 * tree-core.h (tree_decl_with_vis): Remove section_name.
8355
8356 2014-06-09 Kito Cheng <kito@0xlab.org>
8357
8358 * ira.c (ira): Don't call init_caller_save if LRA enabled
8359 since LRA use its own infrastructure to handle that.
8360
8361 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8362
8363 * symtab.c (dump_symtab_base): Update dumping.
8364 (symtab_make_decl_local): Clear only DECL_COMDAT.
8365 * tree-vect-data-refs.c (Check that variable is static before
8366 tampering with sections.
8367 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
8368 (cgraph_create_virtual_clone): Likewise.
8369 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
8370 (decl_section_name, set_decl_section_name): New accessors.
8371 (find_decls_types_r): Do not walk section name
8372 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
8373 (decl_comdat_group, decl_comdat_group_id): Constify.
8374 (decl_section_name, set_decl_section_name): Update.
8375 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
8376 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
8377 (cgraph_make_node_local_1): Clear section and comdat group.
8378 * cgraph.h (set_comdat_group): Sanity check.
8379 (get_section, set_section): New.
8380 * ipa-comdats.c (ipa_comdats): Use get_section.
8381 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
8382 * lto-streamer-out.c: Do not follow section names.
8383 * c-family/c-common.c (handle_section_attribute): Update.
8384 * lto-cgraph.c (lto_output_node): Output section.
8385 (lto_output_varpool_node): Likewise.
8386 (read_comdat_group): Rename to ...
8387 (read_identifier): ... this one.
8388 (read_string_cst): New function.
8389 (input_node, input_varpool_node): Input section names.
8390 * tree-emutls.c (get_emutls_init_templ_addr): Update.
8391 (new_emutls_decl): Update.
8392 (secname_for_decl): Check section names only of static vars.
8393 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
8394 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
8395 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
8396 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
8397 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
8398 * config/mcore/mcore.c (mcore_unique_section): Likewise.
8399 * config/mips/mips.c (mips16_build_function_stub): Likewise.
8400 * config/v850/v850.c (v850_insert_attributes): Likewise.
8401 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
8402 Likewise.
8403 (h8300_handle_tiny_data_attribute): Likewise.
8404 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
8405 (bfin_handle_l2_attribute): Likewise.
8406
8407 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8408
8409 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
8410 remove static initializer.
8411
8412 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8413
8414 * varasm.c (use_blocks_for_decl_p): Check symbol table
8415 instead of alias attribute.
8416 (place_block_symbol): Recurse on aliases.
8417
8418 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8419
8420 * ipa-visibility.c: Include varasm.h
8421 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
8422
8423 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
8424
8425 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
8426 outputting aliases.
8427
8428 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
8429
8430 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
8431 from test_insn into GGC space escape via SET_SRC.
8432
8433 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
8434
8435 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
8436 call statement, if any.
8437 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
8438 statements, if any. Tidy up.
8439
8440 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8441
8442 PR target/61431
8443 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
8444 iterators, VSX_D that handles 64-bit types, and VSX_LE that
8445 handles swapping the two 64-bit double words on little endian
8446 systems. Include V1TImode and optionally TImode in VSX_LE so that
8447 these types are properly swapped. Change all of the insns and
8448 splits that do the 64-bit swaps to use VSX_LE.
8449 (vsx_le_perm_load_<mode>): Likewise.
8450 (vsx_le_perm_store_<mode>): Likewise.
8451 (splitters for little endian memory operations): Likewise.
8452 (vsx_xxpermdi2_le_<mode>): Likewise.
8453 (vsx_lxvd2x2_le_<mode>): Likewise.
8454 (vsx_stxvd2x2_le_<mode>): Likewise.
8455
8456 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
8457
8458 PR target/61423
8459 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
8460 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
8461 and corresponding splitters. Zero extend general register
8462 or memory input operand to XMM temporary. Enable for
8463 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
8464 (floatunssi<mode>2): Update expander predicate.
8465
8466 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
8467
8468 PR rtl-optimization/61325
8469 * lra-constraints.c (process_address_1): Check scale equal to one
8470 to prevent transformation: base + scale * index => base + new_reg.
8471
8472 2014-06-06 Richard Biener <rguenther@suse.de>
8473
8474 PR tree-optimization/59299
8475 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
8476 a def operand.
8477 (nearest_common_dominator_of_uses): Likewise.
8478 (statement_sink_location): Adjust. Support sinking loads.
8479
8480 2014-06-06 Martin Jambor <mjambor@suse.cz>
8481
8482 * ipa-prop.c (get_place_in_agg_contents_list): New function.
8483 (build_agg_jump_func_from_list): Likewise.
8484 (determine_known_aggregate_parts): Renamed to
8485 determine_locally_known_aggregate_parts. Moved some functionality
8486 to the two functions above, removed bound checks.
8487
8488 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
8489
8490 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
8491 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
8492 (aarch64_progress_pointer): Likewise.
8493 (aarch64_copy_one_part_and_move_pointers): Likewise.
8494 (aarch64_expand_movmen): Likewise.
8495 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
8496 * config/aarch64/aarch64.md (movmem<mode>): New.
8497
8498 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
8499
8500 * targhooks.c (default_add_stmt_cost): Call target specific
8501 hook instead of default one.
8502
8503 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8504
8505 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
8506 endianness instead of host endianness.
8507 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
8508 comments.
8509
8510 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8511
8512 PR debug/53927
8513 * function.c (instantiate_decls): Process the saved static chain.
8514 (expand_function_start): If not optimizing, save the static chain
8515 onto the stack.
8516 * tree-nested.c (convert_all_function_calls): Always create the static
8517 chain for nested functions if not optimizing.
8518
8519 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8520
8521 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
8522
8523 2014-06-06 Richard Biener <rguenther@suse.de>
8524
8525 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
8526 (construct_init_block): Likewise.
8527 (construct_exit_block): Likewise.
8528 (pass_expand::execute): Likewise.
8529 * graphite.c (graphite_transforms): Replace check for current_loops
8530 with a check for > 1 loops.
8531 (pass_graphite_transforms::execute): Adjust.
8532 * ipa-split.c (split_function): Remove check for current_loops.
8533 * omp-low.c (expand_parallel_call): Likewise.
8534 (expand_omp_for_init_counts): Likewise.
8535 (extract_omp_for_update_vars): Likewise.
8536 (expand_omp_for_generic): Likewise.
8537 (expand_omp_sections): Likewise.
8538 (expand_omp_target): Likewise.
8539 * tracer.c (tail_duplicate): Likewise.
8540 (pass_tracer::execute): Likewise.
8541 * trans-mem.c (expand_transaction): Likewise.
8542 * tree-complex.c (expand_complex_div_wide): Likewise.
8543 * tree-eh.c (lower_resx): Likewise.
8544 (cleanup_empty_eh_merge_phis): Likewise.
8545 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
8546 current_loops with a check for > 1 loops.
8547 (pass_predcom::execute): Adjust.
8548 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
8549 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
8550 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
8551 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
8552 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8553 * tree-switch-conversion.c (process_switch): Likewise.
8554 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
8555 * tree-vrp.c (vrp_visit_phi_node): Likewise.
8556 (execute_vrp): Likewise.
8557 * ubsan.c (ubsan_expand_null_ifn): Likewise.
8558
8559 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
8560
8561 * rtl.h (insn_location): Declare.
8562 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
8563 with UNKNOWN_LOCATION.
8564 * emit-rtl.c (insn_location): New function.
8565 * final.c (notice_source_line): Check that the instruction has a
8566 location before retrieving it and use insn_location.
8567 * modulo-sched.c (loop_single_full_bb_p): Likewise.
8568 * print-rtl.c (print_rtx): Likewise.
8569
8570 2014-06-06 Richard Biener <rguenther@suse.de>
8571
8572 * passes.def: Move 2nd VRP pass before phi-only-cprop.
8573
8574 2014-06-06 Christian Bruel <christian.bruel@st.com>
8575
8576 PR tree-optimization/43934
8577 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
8578 cost.
8579
8580 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
8581
8582 * ira-lives.c (single_reg_class): Add missing break. Explicitly
8583 return NO_REGS for extra address and memory constraints. Handle
8584 operands that match (or are equivalent to something that matches)
8585 extra constant constraints. Ignore other non-register operands.
8586
8587 2014-06-06 Alan Modra <amodra@gmail.com>
8588
8589 PR target/61300
8590 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
8591 * doc/tm.texi: Regenerate.
8592 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
8593 Use throughout in place of REG_PARM_STACK_SPACE.
8594 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
8595 "incoming" param. Pass to rs6000_function_parms_need_stack.
8596 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
8597 prototype_p when incoming. Use function decl when incoming
8598 to handle K&R style functions.
8599 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
8600 (INCOMING_REG_PARM_STACK_SPACE): Define.
8601
8602 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8603
8604 PR target/52472
8605 * cfgexpand.c (expand_debug_expr): Use address space of nested
8606 TREE_TYPE for ADDR_EXPR and MEM_REF.
8607
8608 2014-06-05 Jeff Law <law@redhat.com>
8609
8610 PR tree-optimization/61289
8611 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
8612 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
8613 looking for those which match LHS. All callers changed.
8614 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
8615 parameters and code which manipulated them. All callers changed.
8616 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
8617 and DST_MAP parameters. Simplify invalidation code by just calling
8618 invalidate_equivalences. All callers changed.
8619 (thread_across_edge): Simplify now that we don't need to maintain
8620 the map of equivalences to invalidate.
8621
8622 2014-06-05 Kai Tietz <ktietz@redhat.com>
8623 Richard Henderson <rth@redhat.com>
8624
8625 PR target/46219
8626 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
8627 checking for !TARGET_X32.
8628 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
8629 (sibcall_intern): New define_insn, plus required peepholes.
8630 (sibcall_pop_intern): Likewise.
8631 (sibcall_value_intern): Likewise.
8632 (sibcall_value_pop_intern): Likewise.
8633
8634 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
8635
8636 * tree-inline.c (tree_function_versioning): Check DF info existence
8637 before accessing it.
8638
8639 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8640
8641 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
8642 frame_size.
8643 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
8644 aarch64_frame hard_fp_offset and frame_size.
8645 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
8646 frame_size; remove original_frame_size.
8647 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
8648 (aarch64_initial_elimination_offset): Remove frame_size and
8649 offset. Use aarch64_frame frame_size.
8650
8651 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8652 Jiong Wang <jiong.wang@arm.com>
8653 Renlin <renlin.li@arm.com>
8654
8655 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
8656 initialization of R30 offset. Update offset. Iterate core
8657 regisers upto X30. Remove X29, X30 specific code.
8658
8659 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8660 Jiong Wang <jiong.wang@arm.com>
8661
8662 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
8663 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
8664 (aarch64_register_saved_on_entry): Adjust test.
8665
8666 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8667
8668 * config/aarch64/aarch64.h (machine_function): Move
8669 saved_varargs_size from here...
8670 (aarch64_frame): ... to here.
8671
8672 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8673 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
8674 (aarch64_initial_elimination_offset)
8675 (aarch64_setup_incoming_varargs): Adjust location of
8676 saved_varargs_size.
8677
8678 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8679
8680 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
8681 layout comment.
8682
8683 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
8684 Prachi Godbole <Prachi.Godbole@imgtec.com>
8685
8686 * config/mips/mips-cpus.def: Add definition for p5600. Updated
8687 mips32r5 entry to use PROCESSOR_P5600.
8688 * config/mips/mips-tables.opt: Regenerate.
8689 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
8690 * config/mips/mips.c (mips_fmadd_bypass): New function.
8691 (mips_rtx_cost_data): Add costs for p5600.
8692 (mips_issue_rate): Add support for p5600.
8693 (mips_multipass_dfa_lookahead): Likewise.
8694 * config/mips/mips.h (TUNE_P5600): New define.
8695 (TUNE_MACC_CHAINS): Add TUNE_P5600.
8696 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
8697 * config/mips/mips.md: Include p5600.md.
8698 (processor): Add p5600.
8699 * config/mips/p5600.md: New file.
8700
8701 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
8702
8703 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
8704 * config/i386/predicates.md (palignr_operand): New.
8705 Indicates if permutation is suitable for palignr instruction.
8706
8707 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
8708
8709 PR tree-optimization/61319
8710 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8711 stmt belongs to loop.
8712
8713 2014-06-05 Richard Biener <rguenther@suse.de>
8714
8715 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
8716 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
8717 (lookup_tmp_var): Adjust.
8718 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
8719
8720 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8721
8722 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
8723
8724 2014-06-05 Marek Polacek <polacek@redhat.com>
8725
8726 PR c/49706
8727 * doc/invoke.texi: Document -Wlogical-not-parentheses.
8728
8729 2014-06-04 Tom de Vries <tom@codesourcery.com>
8730
8731 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
8732 CONST_INT.
8733
8734 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
8735
8736 PR tree-optimization/61385
8737 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
8738
8739 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
8740
8741 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
8742 changed to use fatal_error.
8743 (main): Ensure lto_wrapper_cleanup is run atexit.
8744
8745 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8746
8747 * lra-constraints.c (valid_address_p): Move earlier in file.
8748 (address_eliminator): New structure.
8749 (satisfies_memory_constraint_p): New function.
8750 (satisfies_address_constraint_p): Likewise.
8751 (process_alt_operands, process_address, curr_insn_transform): Use them.
8752
8753 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8754
8755 * lra-int.h (lra_static_insn_data): Make operand_alternative a
8756 const pointer.
8757 (target_lra_int, default_target_lra_int, this_target_lra_int)
8758 (op_alt_data): Delete.
8759 * lra.h (lra_init): Delete.
8760 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
8761 (init_insn_code_data_once): Remove op_alt_data handling.
8762 (finish_insn_code_data_once): Likewise.
8763 (init_op_alt_data): Delete.
8764 (get_static_insn_data): Initialize operand_alternative to null.
8765 (free_insn_recog_data): Cast operand_alternative before freeing it.
8766 (setup_operand_alternative): Take the operand_alternative as
8767 parameter and assume it isn't already cached in the static
8768 insn data.
8769 (lra_set_insn_recog_data): Update accordingly.
8770 (lra_init): Delete.
8771 * ira.c (ira_init): Don't call lra_init.
8772 * target-globals.h (this_target_lra_int): Declare.
8773 (target_globals): Remove lra_int.
8774 (restore_target_globals): Update accordingly.
8775 * target-globals.c: Don't include lra-int.h.
8776 (default_target_globals, save_target_globals): Remove lra_int.
8777
8778 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8779
8780 * recog.h (operand_alternative): Convert reg_class, reject,
8781 matched and matches into bitfields.
8782 (preprocess_constraints): New overload.
8783 (preprocess_insn_constraints): New function.
8784 (preprocess_constraints): Take the insn as parameter.
8785 (recog_op_alt): Change into a pointer.
8786 (target_recog): Add x_op_alt.
8787 * recog.c (asm_op_alt): New variable.
8788 (recog_op_alt): Change into a pointer.
8789 (preprocess_constraints): New overload, replacing the old function
8790 definition with one that doesn't use global state.
8791 (preprocess_insn_constraints): New function.
8792 (preprocess_constraints): Use them. Take the insn as parameter.
8793 Use asm_op_alt for asms.
8794 (recog_init): Free existing x_op_alt entries.
8795 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
8796 pointer const.
8797 (make_early_clobber_and_input_conflicts): Likewise.
8798 (process_bb_node_lives): Pass the insn to process_constraints.
8799 * reg-stack.c (check_asm_stack_operands): Likewise.
8800 (subst_asm_stack_regs): Likewise.
8801 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8802 * regrename.c (build_def_use): Likewise.
8803 * sched-deps.c (sched_analyze_insn): Likewise.
8804 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
8805 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
8806 (note_invalid_constants): Likewise.
8807 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8808 (ix86_legitimate_combined_insn): Make operand_alternative pointer
8809 const.
8810
8811 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8812
8813 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
8814 * ira-lives.c (check_and_make_def_conflict): Check for disabled
8815 alternatives.
8816 (make_early_clobber_and_input_conflicts): Likewise.
8817 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8818
8819 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8820
8821 * recog.h (alternative_class): New function.
8822 (which_op_alt): Return a const recog_op_alt.
8823 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
8824 (subst_asm_stack_regs): Likewise.
8825 * config/arm/arm.c (note_invalid_constants): Likewise.
8826 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
8827 the operand_alternative; use alternative class instead.
8828 * sel-sched.c (get_reg_class): Likewise.
8829 * regrename.c (build_def_use): Likewise.
8830 (hide_operands, restore_operands, record_out_operands): Update type
8831 accordingly.
8832
8833 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
8834
8835 * recog.h (recog_op_alt): Convert to a flat array.
8836 (which_op_alt): New function.
8837 * recog.c (recog_op_alt): Convert to a flat array.
8838 (preprocess_constraints): Update accordingly, grouping all
8839 operands of the same alternative together, rather than the
8840 other way around.
8841 * ira-lives.c (check_and_make_def_conflict): Likewise.
8842 (make_early_clobber_and_input_conflicts): Likewise.
8843 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8844 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
8845 (subst_asm_stack_regs): Likewise.
8846 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8847 * regrename.c (hide_operands, record_out_operands): Likewise.
8848 (build_def_use): Likewise.
8849 * sel-sched.c (get_reg_class): Likewise.
8850 * config/arm/arm.c (note_invalid_constants): Likewise.
8851
8852 2014-06-04 Jason Merrill <jason@redhat.com>
8853
8854 PR c++/51253
8855 PR c++/61382
8856 * gimplify.c (gimplify_arg): Non-static.
8857 * gimplify.h: Declare it.
8858
8859 2014-06-04 Richard Biener <rguenther@suse.de>
8860
8861 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
8862 TREE_PUBLIC and DECL_EXTERNAL decls.
8863
8864 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
8865
8866 * regcprop.c (copyprop_hardreg_forward_1): Account for
8867 HARD_REGNO_CALL_PART_CLOBBERED.
8868
8869 2014-06-04 Richard Biener <rguenther@suse.de>
8870
8871 * configure.ac: Check whether the underlying type of int64_t
8872 is long or long long.
8873 * configure: Regenerate.
8874 * config.in: Likewise.
8875 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
8876 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
8877
8878 2014-06-04 Richard Biener <rguenther@suse.de>
8879
8880 PR tree-optimization/60098
8881 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
8882 we hit a kill.
8883 (dse_optimize_stmt): Simplify, now that we found a kill
8884 earlier.
8885
8886 2014-06-04 Richard Biener <rguenther@suse.de>
8887
8888 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
8889 of accesses with non-invariant address.
8890
8891 2014-06-04 Martin Liska <mliska@suse.cz>
8892
8893 * cgraph.h (cgraph_make_wrapper): New function introduced.
8894 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
8895 * ipa-inline.h (inline_analyze_function): The function is global.
8896 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
8897
8898 2014-06-04 Martin Liska <mliska@suse.cz>
8899
8900 * tree.h (private_lookup_attribute_starting): New function.
8901 (lookup_attribute_starting): Likewise.
8902 * tree.c (private_lookup_attribute_starting): Likewise.
8903
8904 2014-06-04 Martin Liska <mliska@suse.cz>
8905
8906 * cgraph.h (expand_thunk): New argument added.
8907 (address_taken_from_non_vtable_p): New global function.
8908 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
8909 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
8910 * cgraphunit.c (analyze_function): Likewise.
8911 (assemble_thunks_and_aliases): Argument added to call.
8912 (expand_thunk): New argument forces to produce GIMPLE thunk.
8913
8914 2014-06-04 Martin Liska <mliska@suse.cz>
8915
8916 * coverage.h (coverage_compute_cfg_checksum): Argument added.
8917 * coverage.c (coverage_compute_cfg_checksum): Likewise.
8918 * profile.c (branch_prob): Likewise.
8919
8920 2014-06-04 Martin Jambor <mjambor@suse.cz>
8921
8922 PR ipa/61340
8923 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
8924 handler for switch on an ipa_ref_use enum.
8925 * ipa-reference.c (analyze_function): Likewise.
8926
8927 2014-06-04 Kai Tietz <ktietz@redhat.com>
8928
8929 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
8930 from old call-instruction.
8931
8932 2014-06-04 Bin Cheng <bin.cheng@arm.com>
8933
8934 * config/aarch64/aarch64.c (aarch64_classify_address)
8935 (aarch64_legitimize_reload_address): Support full addressing modes
8936 for vector modes.
8937 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
8938 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
8939
8940 2014-06-03 Andrew Pinski <apinski@cavium.com>
8941
8942 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
8943 for OP0.
8944
8945 2014-06-03 Andrew Pinski <apinski@cavium.com>
8946
8947 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
8948 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
8949
8950 2014-06-03 Kai Tietz <ktietz@redhat.com>
8951
8952 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
8953 for 64-bit ms-abi.
8954
8955 2014-06-03 Dehao Chen <dehao@google.com>
8956
8957 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
8958 the same loop.
8959
8960 2014-06-03 Marek Polacek <polacek@redhat.com>
8961
8962 PR c/60439
8963 * doc/invoke.texi: Document -Wswitch-bool.
8964 * function.c (stack_protect_epilogue): Cast controlling expression of
8965 the switch to int.
8966 * gengtype.c (walk_type): Generate switch expression with its
8967 controlling expression cast to int.
8968
8969 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
8970
8971 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
8972 and attiny841.
8973 * config/avr/avr-tables.opt: Regenerate.
8974 * config/avr/t-multilib: Regenerate.
8975 * doc/avr-mmcu.texi: Regenerate.
8976
8977 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
8978 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8979
8980 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
8981 (ata6617c, ata664251): Add new avr35 devices.
8982 (ata6612c): Add new avr4 device.
8983 (ata6613c, ata6614q): Add new avr5 devices.
8984 * config/avr/avr-tables.opt: Regenerate.
8985 * config/avr/t-multilib: Regenerate.
8986 * doc/avr-mmcu.texi: Regenerate.
8987
8988 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
8989
8990 * gcc/config/aarch64/aarch64-builtins.c
8991 (aarch64_types_binop_ssu_qualifiers): New static data.
8992 (TYPES_BINOP_SSU): Define.
8993 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
8994 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
8995 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
8996 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
8997 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
8998 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
8999 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
9000 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
9001 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
9002 suffix to builtin function name, remove cast.
9003 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
9004 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
9005 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
9006
9007 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9008
9009 * gcc/config/aarch64/aarch64-builtins.c
9010 (aarch64_types_binop_uus_qualifiers,
9011 aarch64_types_shift_to_unsigned_qualifiers,
9012 aarch64_types_unsigned_shiftacc_qualifiers): Define.
9013 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
9014 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
9015 sqshlu_n, uqshl_n): Update qualifiers.
9016 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
9017 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
9018 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
9019 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
9020 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
9021 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
9022 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
9023 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
9024 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
9025 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
9026 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
9027 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
9028 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
9029 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
9030 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
9031 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
9032 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
9033 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
9034 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
9035 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
9036 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
9037 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
9038 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
9039 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
9040 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
9041 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
9042 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
9043
9044 2014-06-03 Teresa Johnson <tejohnson@google.com>
9045
9046 * tree-sra.c (modify_function): Record caller nodes after rebuild.
9047
9048 2014-06-02 Jason Merrill <jason@redhat.com>
9049
9050 PR c++/61020
9051 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
9052
9053 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9054
9055 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
9056 location == 0.
9057
9058 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
9059
9060 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
9061 New pattern.
9062 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
9063 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
9064 * config/aarch64/iterators.md (REVERSE): New iterator.
9065 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
9066 (rev_op): New int_attribute.
9067 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
9068 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
9069 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
9070 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
9071 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
9072 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
9073 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
9074 Replace temporary __asm__ with __builtin_shuffle.
9075
9076 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
9077
9078 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
9079 mips64r5.
9080 * config/mips/mips-tables.opt: Regenerate.
9081 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
9082 to use mips_isa_rev rather than ISA_MIPS32R2.
9083 * config/mips/mips.h (ISA_MIPS32R3): New define.
9084 (ISA_MIPS32R5): New define.
9085 (ISA_MIPS64R3): New define.
9086 (ISA_MIPS64R5): New define.
9087 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
9088 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
9089 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
9090 and mips64r5.
9091 (MIPS_ISA_SYNCI_SPEC): Likewise.
9092 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
9093 (LINK_SPEC): Added mips32r3 and mips32r5.
9094 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
9095 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
9096 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
9097 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
9098 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
9099 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
9100 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
9101
9102 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
9103
9104 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
9105 options.
9106 * config/mips/mips.opt (mxpa): New option.
9107 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
9108 assembler.
9109
9110 2014-06-03 Martin Jambor <mjambor@suse.cz>
9111
9112 PR ipa/61160
9113 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
9114 thunks.
9115
9116 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
9117
9118 PR tree-optimization/61328
9119 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
9120 initialization from find_bswap_or_nop_1.
9121 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
9122 in source_expr2 before using the size value the function sets. Also
9123 make use of init_symbolic_number () in both the old place and
9124 find_bswap_or_nop_load () to avoid reading uninitialized memory when
9125 doing recursion in the GIMPLE_BINARY_RHS case.
9126
9127 2014-06-03 Richard Biener <rguenther@suse.de>
9128
9129 PR tree-optimization/61383
9130 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
9131 stmts can't trap.
9132
9133 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
9134
9135 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
9136 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
9137 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
9138 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
9139 in this file.
9140 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
9141 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
9142 * system.h: ...here and make it unconditional.
9143 * target.def (conditional_register_usage): Mention
9144 define_register_constraint instead of old-style constraint macros.
9145 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
9146 * doc/tm.texi: Regenerate.
9147 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
9148 protected by !USE_MD_CONSTRAINTS.
9149 * config/frv/frv.md: Remove quote from old version of documentation.
9150 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
9151 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
9152 CONST_DOUBLE_OK_FOR_LETTER.
9153 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
9154
9155 2014-06-02 Andrew Pinski <apinski@cavium.com>
9156
9157 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
9158 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
9159 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
9160 file whose name depends on -mabi= and -mbig-endian.
9161 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
9162 Handle LP64 better and handle ilp32 too.
9163 (MULTILIB_OPTIONS): Delete.
9164 (MULTILIB_DIRNAMES): Delete.
9165
9166 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
9167
9168 * expr.h: Remove prototypes of functions defined in builtins.c.
9169 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
9170 Remove prototypes of functions defined in builtins.c.
9171 * builtins.h: Update prototype list to include all exported functions.
9172 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
9173 no_c99_libc_has_function): Move to targhooks.c
9174 (build_string_literal, build_call_expr_loc_array,
9175 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
9176 to tree.c.
9177 (expand_builtin_object_size, fold_builtin_object_size): Make static.
9178 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
9179 no_c99_libc_has_function): Relocate from builtins.c.
9180 * tree.c: Include builtins.h.
9181 (build_call_expr_loc_array, build_call_expr_loc_vec,
9182 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
9183 from builtins.c.
9184 * fold-const.h (fold_fma): Move prototype to builtins.h.
9185 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
9186 * asan.c: Include builtins.h.
9187 * cfgexpand.c: Likewise.
9188 * convert.c: Likewise.
9189 * emit-rtl.c: Likewise.
9190 * except.c: Likewise.
9191 * expr.c: Likewise.
9192 * fold-const.c: Likewise.
9193 * gimple-fold.c: Likewise.
9194 * gimple-ssa-strength-reduction.c: Likewise.
9195 * gimplify.c: Likewise.
9196 * ipa-inline.c: Likewise.
9197 * ipa-prop.c: Likewise.
9198 * lto-streamer-out.c: Likewise.
9199 * stmt.c: Likewise.
9200 * tree-inline.c: Likewise.
9201 * tree-object-size.c: Likewise.
9202 * tree-sra.c: Likewise.
9203 * tree-ssa-ccp.c: Likewise.
9204 * tree-ssa-forwprop.c: Likewise.
9205 * tree-ssa-loop-ivcanon.c: Likewise.
9206 * tree-ssa-loop-ivopts.c: Likewise.
9207 * tree-ssa-math-opts.c: Likewise.
9208 * tree-ssa-reassoc.c: Likewise.
9209 * tree-ssa-threadedge.c: Likewise.
9210 * tree-streamer-in.c: Likewise.
9211 * tree-vect-data-refs.c: Likewise.
9212 * tree-vect-patterns.c: Likewise.
9213 * tree-vect-stmts.c: Likewise.
9214 * config/aarch64/aarch64.c: Likewise.
9215 * config/alpha/alpha.c: Likewise.
9216 * config/arc/arc.c: Likewise.
9217 * config/arm/arm.c: Likewise.
9218 * config/avr/avr.c: Likewise.
9219 * config/bfin/bfin.c: Likewise.
9220 * config/c6x/c6x.c: Likewise.
9221 * config/cr16/cr16.c: Likewise.
9222 * config/cris/cris.c: Likewise.
9223 * config/epiphany/epiphany.c: Likewise.
9224 * config/fr30/fr30.c: Likewise.
9225 * config/frv/frv.c: Likewise.
9226 * config/h8300/h8300.c: Likewise.
9227 * config/i386/i386.c: Likewise.
9228 * config/i386/winnt.c: Likewise.
9229 * config/ia64/ia64.c: Likewise.
9230 * config/iq2000/iq2000.c: Likewise.
9231 * config/lm32/lm32.c: Likewise.
9232 * config/m32c/m32c.c: Likewise.
9233 * config/m32r/m32r.c: Likewise.
9234 * config/m68k/m68k.c: Likewise.
9235 * config/mcore/mcore.c: Likewise.
9236 * config/mep/mep.c: Likewise.
9237 * config/microblaze/microblaze.c: Likewise.
9238 * config/mips/mips.c: Likewise.
9239 * config/mmix/mmix.c: Likewise.
9240 * config/mn10300/mn10300.c: Likewise.
9241 * config/moxie/moxie.c: Likewise.
9242 * config/msp430/msp430.c: Likewise.
9243 * config/nds32/nds32.c: Likewise.
9244 * config/pa/pa.c: Likewise.
9245 * config/pdp11/pdp11.c: Likewise.
9246 * config/picochip/picochip.c: Likewise.
9247 * config/rl78/rl78.c: Likewise.
9248 * config/rs6000/rs6000.c: Likewise.
9249 * config/rx/rx.c: Likewise.
9250 * config/s390/s390.c: Likewise.
9251 * config/score/score.c: Likewise.
9252 * config/sh/sh.c: Likewise.
9253 * config/sparc/sparc.c: Likewise.
9254 * config/spu/spu.c: Likewise.
9255 * config/stormy16/stormy16.c: Likewise.
9256 * config/tilegx/tilegx.c: Likewise.
9257 * config/tilepro/tilepro.c: Likewise.
9258 * config/v850/v850.c: Likewise.
9259 * config/vax/vax.c: Likewise.
9260 * config/xtensa/xtensa.c: Likewise.
9261
9262 2014-06-02 Jeff Law <law@redhat.com>
9263
9264 PR rtl-optimization/61094
9265 * ree.c (combine_reaching_defs): Do not reextend an insn if it
9266 was marked as do_no_reextend. If a copy is needed to eliminate
9267 an extension, then mark it as do_not_reextend.
9268
9269 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
9270
9271 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
9272
9273 2014-06-02 Richard Henderson <rth@redhat.com>
9274
9275 PR target/61336
9276 * config/alpha/alpha.c (print_operand_address): Allow symbolic
9277 addresses inside asms. Use output_operand_lossage instead of
9278 gcc_unreachable.
9279
9280 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
9281
9282 PR target/61239
9283 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
9284 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
9285
9286 2014-06-02 Tom de Vries <tom@codesourcery.com>
9287
9288 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
9289 case that x has VOIDmode.
9290
9291 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
9292
9293 * varasm.c (copy_constant): Delete function.
9294 (build_constant_desc): Don't call it.
9295
9296 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9297
9298 PR target/61154
9299 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
9300 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
9301 with immediate_operand.
9302
9303 2014-06-02 Andreas Schwab <schwab@suse.de>
9304
9305 * config/ia64/ia64.c
9306 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
9307 pending_data_specs first.
9308
9309 2014-06-02 Richard Biener <rguenther@suse.de>
9310
9311 PR tree-optimization/61378
9312 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
9313 valueized_anything.
9314
9315 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
9316
9317 * config/i386/constraints.md (Bw): Rename from 'w'.
9318 (Bz): Rename from 'z'.
9319 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
9320
9321 2014-06-01 Kai Tietz <ktietz@redhat.com>
9322
9323 PR target/61377
9324 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
9325 * config/i386/i386.md (sibcall_insn_operand): Use Bs
9326 instead of m constraint.
9327
9328 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
9329
9330 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
9331 a separate alternative where the scratch operand 2 is marked as
9332 early clobber.
9333
9334 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
9335
9336 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9337 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
9338 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
9339 and __builtins_arm_get_fpscr.
9340 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
9341 __builtins_arm_get_fpscr.
9342 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
9343 __builtins_arm_ldfpscr.
9344 (arm_atomic_assign_expand_fenv): New function.
9345 * config/arm/vfp.md (set_fpscr): New pattern.
9346 (get_fpscr) : Likewise.
9347 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
9348 VUNSPEC_SET_FPSCR.
9349 * doc/extend.texi (AARCH64 Built-in Functions) : Document
9350 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
9351
9352 2014-05-30 Jakub Jelinek <jakub@redhat.com>
9353
9354 * asan.c (report_error_func): Add SLOW_P argument, use
9355 BUILT_IN_ASAN_*_N if set.
9356 (build_check_stmt): Likewise.
9357 (instrument_derefs): If T has insufficient alignment,
9358 force same handling as for odd sizes.
9359
9360 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
9361 BUILT_IN_ASAN_REPORT_STORE_N): New.
9362 * asan.c (struct asan_mem_ref): Change access_size type to
9363 HOST_WIDE_INT.
9364 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
9365 update_mem_ref_hash_table): Likewise.
9366 (asan_mem_ref_hasher::hash): Hash in a HWI.
9367 (report_error_func): Change size_in_bytes argument to HWI.
9368 Use *_N builtins if size_in_bytes is larger than 16 or not power of
9369 two.
9370 (build_shadow_mem_access): New function.
9371 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
9372 Handle size_in_bytes not power of two or larger than 16.
9373 (instrument_derefs): Don't give up if size_in_bytes is not
9374 power of two or is larger than 16.
9375
9376 2014-05-30 Kai Tietz <ktietz@redhat.com>
9377
9378 PR target/60104
9379 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
9380 for sibling-tail-calls.
9381 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
9382 to its use.
9383 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
9384 (sibcall_insn_operand): Add check for sibcall_memory_operand.
9385
9386 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9387
9388 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
9389 * config/avr/avr-tables.opt: Regenerate.
9390 * config/avr/t-multilib: Regenerate.
9391 * doc/avr-mmcu.texi: Regenerate.
9392
9393 2014-05-30 Ian Lance Taylor <iant@google.com>
9394
9395 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
9396 target("sse").
9397
9398 2014-05-30 Tom de Vries <tom@codesourcery.com>
9399
9400 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
9401 Redefine as true.
9402
9403 2014-05-30 Tom de Vries <tom@codesourcery.com>
9404
9405 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9406 * lra.c (initialize_lra_reg_info_element): Add init of
9407 actual_call_used_reg_set field.
9408 (lra): Call lra_create_live_ranges before lra_inheritance for
9409 -fuse-caller-save.
9410 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9411 -fuse-caller-save.
9412 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
9413 instead of call_used_reg_set for -fuse-caller-save.
9414 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9415
9416 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9417
9418 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
9419 to mov_imm.
9420 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
9421
9422 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
9423
9424 * ira.c (ira_get_dup_out_num): Check for output operands at
9425 the start of the loop. Handle cases where an included alternative
9426 follows an excluded one.
9427
9428 2014-05-29 Mike Stump <mikestump@comcast.net>
9429
9430 PR debug/61352
9431 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
9432 post ld passes when lto is used.
9433
9434 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
9435
9436 PR rtl-optimization/61325
9437 * lra-constraints.c (process_address): Rename to process_address_1.
9438 (process_address): New function.
9439
9440 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
9441
9442 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
9443 TYPES_BINOPV): New static data.
9444 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
9445 New builtin.
9446 * config/aarch64/aarch64-simd.md (aarch64_ext,
9447 aarch64_im_lane_boundsi): New patterns.
9448 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
9449 patterns for EXT.
9450 (aarch64_evpc_ext): New function.
9451
9452 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
9453
9454 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
9455 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
9456 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
9457 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
9458 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
9459
9460 2014-05-29 Tom de Vries <tom@codesourcery.com>
9461
9462 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
9463
9464 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
9465 Richard Sandiford <rdsandiford@googlemail.com>
9466
9467 * arm/iterators.md (shiftable_ops): New code iterator.
9468 (t2_binop0, arith_shift_insn): New code attributes.
9469 * arm/predicates.md (shift_nomul_operator): New predicate.
9470 * arm/arm.md (insn_enabled): Delete.
9471 (enabled): Remove insn_enabled test.
9472 (*arith_shiftsi): Delete. Replace with ...
9473 (*<arith_shift_insn>_multsi): ... new pattern.
9474 (*<arith_shift_insn>_shiftsi): ... new pattern.
9475 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
9476
9477 2014-05-29 Radovan Obradovic <robradovic@mips.com>
9478 Tom de Vries <tom@codesourcery.com>
9479
9480 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
9481 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
9482 clobber.
9483 (mips_split_call): Use POST_CALL_TMP_REG.
9484 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
9485
9486 2014-05-29 Tom de Vries <tom@codesourcery.com>
9487
9488 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
9489 with #ifdef STACK_REGS.
9490
9491 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
9492
9493 * varasm.c (get_variable_section): Walk aliases.
9494 (place_block_symbol): Walk aliases.
9495
9496 2014-05-28 Tom de Vries <tom@codesourcery.com>
9497
9498 Revert:
9499 2014-05-28 Tom de Vries <tom@codesourcery.com>
9500
9501 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9502 * lra.c (initialize_lra_reg_info_element): Add init of
9503 actual_call_used_reg_set field.
9504 (lra): Call lra_create_live_ranges before lra_inheritance for
9505 -fuse-caller-save.
9506 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9507 -fuse-caller-save.
9508 * lra-constraints.c (need_for_call_save_p): Use
9509 actual_call_used_reg_set instead of call_used_reg_set for
9510 -fuse-caller-save.
9511 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9512
9513 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9514
9515 * doc/md.texi: Document that the % constraint character must
9516 be at the beginning of the string.
9517 * genoutput.c (validate_insn_alternatives): Check that '=',
9518 '+' and '%' only appear at the beginning of a constraint.
9519 * ira.c (commutative_constraint_p): Delete.
9520 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
9521 at the start of the string.
9522 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
9523 duplicate '='s.
9524 * config/arm/neon.md (bicdi3_neon): Likewise.
9525 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
9526 (slt_si, sltu_si): Likewise.
9527 * config/vax/vax.md (sbcdi3): Likewise.
9528 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
9529 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
9530 (mul64): Move '%' to beginning of constraint.
9531 * config/arm/arm.md (*xordi3_insn): Likewise.
9532 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
9533 (xorsi3): Likewise.
9534
9535 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9536
9537 * doc/md.texi: Document the restrictions on the "enabled" attribute.
9538
9539 2014-05-28 Jason Merrill <jason@redhat.com>
9540
9541 PR c++/47202
9542 * cgraph.h (symtab_node::get_comdat_group_id): New.
9543 * cgraphunit.c (analyze_functions): Call it.
9544 * symtab.c (dump_symtab_node): Likewise.
9545 * tree.c (decl_comdat_group_id): New.
9546 * tree.h: Declare it.
9547 * lto-streamer-out.c (write_symbol): Use it.
9548 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
9549
9550 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9551
9552 PR bootstrap/PR61146
9553 * wide-int.cc: Do not include longlong.h when compiling with clang.
9554
9555 2014-05-28 Richard Biener <rguenther@suse.de>
9556
9557 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
9558 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
9559 (vrp_visit_assignment_or_call): Print less vertical space.
9560 (vrp_visit_stmt): Likewise.
9561 (vrp_visit_phi_node): Likewise. For a PHI argument with
9562 VR_VARYING range consider recording it as copy.
9563
9564 2014-05-28 Richard Biener <rguenther@suse.de>
9565
9566 Revert
9567 2014-05-28 Richard Biener <rguenther@suse.de>
9568
9569 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9570
9571 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
9572
9573 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
9574 sufficiently aligned and an offset is used at the same time.
9575 (expand_expr_real_1): Likewise.
9576
9577 2014-05-28 Richard Biener <rguenther@suse.de>
9578
9579 PR middle-end/61045
9580 * fold-const.c (fold_comparison): When folding
9581 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
9582 the sign of the remaining constant operand stays the same.
9583
9584 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
9585
9586 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
9587 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
9588 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
9589 to the assembler.
9590 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
9591 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
9592 (m32bit-doubles) Likewise.
9593 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
9594 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
9595 option for RL78.
9596
9597 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9598
9599 * configure.ac ($gcc_cv_ld_clearcap): New test.
9600 * configure: Regenerate.
9601 * config.in: Regenerate.
9602 * config/sol2.opt (mclear-hwcap): New option.
9603 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
9604 * config/sol2-clearcap.map: Moved here from
9605 testsuite/gcc.target/i386/clearcap.map.
9606 * config/sol2-clearcapv2.map: Move here from
9607 gcc.target/i386/clearcapv2.map.
9608 * config/t-sol2 (install): Depend on install-clearcap-map.
9609 (install-clearcap-map): New target.
9610 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
9611 -mclear-hwcap.
9612
9613 2014-05-28 Richard Biener <rguenther@suse.de>
9614
9615 * hwint.h (*_HALF_WIDE_INT*): Move to ...
9616 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
9617 ... here and remove the rest.
9618 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9619
9620 2014-05-28 Richard Biener <rguenther@suse.de>
9621
9622 PR tree-optimization/61335
9623 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
9624 new range fails, drop to varying.
9625
9626 2014-05-28 Olivier Hainque <hainque@adacore.com>
9627
9628 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
9629 (CPP_SPEC): Add entry for -mcpu=8548.
9630 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
9631 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
9632
9633 2014-05-28 Tom de Vries <tom@codesourcery.com>
9634
9635 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
9636 * lra.c (initialize_lra_reg_info_element): Add init of
9637 actual_call_used_reg_set field.
9638 (lra): Call lra_create_live_ranges before lra_inheritance for
9639 -fuse-caller-save.
9640 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
9641 -fuse-caller-save.
9642 * lra-constraints.c (need_for_call_save_p): Use
9643 actual_call_used_reg_set instead of call_used_reg_set for
9644 -fuse-caller-save.
9645 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
9646
9647 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9648 Tom de Vries <tom@codesourcery.com>
9649
9650 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
9651 to gccoptlist.
9652 (@item -fuse-caller-save): New item.
9653
9654 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9655 Tom de Vries <tom@codesourcery.com>
9656
9657 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
9658 OPT_fuse_caller_save.
9659
9660 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9661 Tom de Vries <tom@codesourcery.com>
9662
9663 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
9664 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
9665 get_call_reg_set_usage.
9666 * resource.c (mark_set_resources, mark_target_live_regs): Use
9667 get_call_reg_set_usage.
9668 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
9669 field.
9670 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
9671 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
9672 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9673 * ira-build.c (ira_create_allocno): Init
9674 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9675 (create_cap_allocno, propagate_allocno_info)
9676 (propagate_some_info_from_allocno)
9677 (copy_info_to_removed_store_destinations): Handle
9678 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9679 * ira-costs.c (ira_tune_allocno_costs): Use
9680 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
9681
9682 2014-05-28 Radovan Obradovic <robradovic@mips.com>
9683 Tom de Vries <tom@codesourcery.com>
9684
9685 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
9686 and function_used_regs_valid fields.
9687 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
9688 find_all_hard_reg_sets.
9689 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
9690 (get_call_reg_set_usage): New function.
9691 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
9692 * regs.h (get_call_reg_set_usage): Declare.
9693
9694 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9695
9696 PR libgcc/61152
9697 * config/dbx.h (License): Add Runtime Library Exception.
9698 * config/newlib-stdint.h (License): Same.
9699 * config/rtems.h (License): Same
9700 * config/initfini-array.h (License): Same
9701 * config/v850/v850.h (License): Same.
9702 * config/v850/v850-opts.h (License): Same
9703 * config/v850/rtems.h (License): Same.
9704
9705 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
9706
9707 PR target/61044
9708 * doc/extend.texi (Local Labels): Note that label differences are
9709 not supported for AVR.
9710
9711 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
9712 Olivier Hainque <hainque@adacore.com>
9713
9714 * rtl.h (set_for_reg_notes): Declare.
9715 * emit-rtl.c (set_for_reg_notes): New function.
9716 (set_unique_reg_note): Use it.
9717 * optabs.c (add_equal_note): Likewise
9718
9719 2014-05-27 Andrew Pinski <apinski@cavium.com>
9720
9721 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
9722 Use <w> for the register in assembly template.
9723 (stack_protect_test): Use the mode of operands[0] for the result.
9724 (stack_protect_test_<mode>): Use <w> for the register
9725 in assembly template.
9726
9727 2014-05-27 DJ Delorie <dj@redhat.com>
9728
9729 * config/rx/rx.c (add_vector_labels): New.
9730 (rx_output_function_prologue): Call it.
9731 (rx_handle_func_attribute): Don't require empty arguments.
9732 (rx_handle_vector_attribute): New.
9733 (rx_attribute_table): Add "vector" attribute.
9734 * doc/extend.texi (interrupt, vector): Document new/changed
9735 RX-specific attributes.
9736
9737 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
9738
9739 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9740
9741 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
9742 predicate to detect a negative quotient.
9743
9744 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
9745
9746 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
9747 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
9748 Add X - Y CMP 0 to X CMP Y transformation.
9749 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
9750
9751 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
9752
9753 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
9754 before printing.
9755
9756 2014-05-27 Steve Ellcey <sellcey@mips.com>
9757
9758 * config/mips/mips.c: Add include of cgraph.h.
9759
9760 2014-05-27 Richard Biener <rguenther@suse.de>
9761
9762 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
9763
9764 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9765
9766 PR libgcc/61152
9767 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
9768 * config/arm/arm-cores.def (License): Same.
9769 * config/arm/arm-opts.h (License): Same.
9770 * config/arm/aout.h (License): Same.
9771 * config/arm/bpabi.h (License): Same.
9772 * config/arm/elf.h (License): Same.
9773 * config/arm/linux-elf.h (License): Same.
9774 * config/arm/linux-gas.h (License): Same.
9775 * config/arm/netbsd-elf.h (License): Same.
9776 * config/arm/uclinux-eabi.h (License): Same.
9777 * config/arm/uclinux-elf.h (License): Same.
9778 * config/arm/vxworks.h (License): Same.
9779
9780 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9781
9782 * config/arm/neon.md (neon_bswap<mode>): New pattern.
9783 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
9784 (arm_init_neon_builtins): Handle NEON_BSWAP.
9785 Define required type nodes.
9786 (arm_expand_neon_builtin): Handle NEON_BSWAP.
9787 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
9788 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
9789 * config/arm/iterators.md (VDQHSD): New mode iterator.
9790
9791 2014-05-27 Richard Biener <rguenther@suse.de>
9792
9793 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9794 Try using literal operands when comparing value-ranges failed.
9795
9796 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9797
9798 * ira.c (commutative_operand): Adjust for change to recog_data.
9799 [Missing from previous commit.]
9800
9801 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9802
9803 * system.h (TEST_BIT): New macro.
9804 * recog.h (alternative_mask): New type.
9805 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
9806 (recog_data_d): Replace alternative_enabled_p array with
9807 enabled_alternatives.
9808 (target_recog): New structure.
9809 (default_target_recog, this_target_recog): Declare.
9810 (get_enabled_alternatives, recog_init): Likewise.
9811 * recog.c (default_target_recog, this_target_recog): New variables.
9812 (get_enabled_alternatives): New function.
9813 (extract_insn): Use it.
9814 (recog_init): New function.
9815 (preprocess_constraints, constrain_operands): Adjust for change to
9816 recog_data.
9817 * postreload.c (reload_cse_simplify_operands): Likewise.
9818 * reload.c (find_reloads): Likewise.
9819 * ira-costs.c (record_reg_classes): Likewise.
9820 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
9821 all alternatives after a disabled one would be skipped.
9822 (ira_implicitly_set_insn_hard_regs): Likewise.
9823 * ira.c (ira_setup_alts): Adjust for change to recog_data.
9824 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
9825 with enabled_alternatives.
9826 * lra.c (free_insn_recog_data): Update accordingly.
9827 (lra_update_insn_recog_data): Likewise.
9828 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
9829 * lra-constraints.c (process_alt_operands): Likewise. Handle
9830 only_alternative as part of the enabled mask.
9831 * target-globals.h (this_target_recog): Declare.
9832 (target_globals): Add a recog field.
9833 (restore_target_globals): Restore this_target_recog.
9834 * target-globals.c: Include recog.h.
9835 (default_target_globals): Initialize recog field.
9836 (save_target_globals): Likewise.
9837 * reginfo.c (reinit_regs): Call recog_init.
9838 * toplev.c (backend_init_target): Likewise.
9839
9840 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
9841
9842 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
9843 rather than any named insn's code.
9844
9845 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
9846
9847 PR libgcc/61152
9848 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
9849 * config/arm/arm-cores.def (License): Same.
9850
9851 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
9852
9853 * tree.h (decl_comdat_group): Declare.
9854 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
9855 * tree.c (decl_comdat_group): Here.
9856
9857 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
9858
9859 PR rtl-optimization/61222
9860 * combine.c (simplify_shift_const_1): When moving a PLUS outside
9861 the shift, truncate the PLUS operand to the result mode.
9862
9863 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
9864
9865 PR target/61271
9866 * config/i386/i386.c (ix86_rtx_costs)
9867 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
9868 Fix condition.
9869
9870 2014-05-26 Martin Jambor <mjambor@suse.cz>
9871
9872 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
9873 subreg uses.
9874
9875 2014-05-26 Richard Biener <rguenther@suse.de>
9876
9877 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
9878 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
9879 Provide specializations.
9880 (wi::int_traits <HOST_WIDE_INT>,
9881 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
9882
9883 2014-05-26 Alan Modra <amodra@gmail.com>
9884
9885 PR target/61098
9886 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
9887 params and return a bool. Remove dead code. Update comment.
9888 Assert we have a const_int source. Remove bogus code from
9889 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
9890 handling of constants > 2G and reg_equal note, from..
9891 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
9892 return value. Update comment. If we can, use a new pseudo
9893 for intermediate calculations.
9894 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
9895 prototype.
9896 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
9897 call to rs6000_emit_set_const in splitter.
9898 (movdi_internal64+2, +3): Likewise.
9899
9900 2014-05-26 Richard Biener <rguenther@suse.de>
9901
9902 * system.h: Define __STDC_FORMAT_MACROS before
9903 including inttypes.h.
9904 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
9905 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
9906 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
9907 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
9908 HOST_WIDEST_INT_C): Remove.
9909 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
9910 if C99 inttypes.h is not available.
9911 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
9912 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
9913 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
9914 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
9915 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
9916 (struct output_info): Likewise.
9917 (print_statistics): Adjust.
9918 (dump_bitmap_statistics): Likewise.
9919 * bt-load.c (migrate_btr_defs): Print with PRId64.
9920 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
9921 (MAX_SAFE_MULTIPLIER): Adjust.
9922 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
9923 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
9924 dump_cgraph_node): Likewise.
9925 * final.c (dump_basic_block_info): Likewise.
9926 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
9927 * gcov.c (format_gcov): Likewise.
9928 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
9929 for calculation.
9930 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
9931 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
9932 (inline_small_functions, dump_overall_stats, dump_inline_stats):
9933 Use PRId64 for dumping.
9934 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
9935 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
9936 (add_allocno_hard_regs): Adjust.
9937 * loop-doloop.c (doloop_modify): Print using PRId64.
9938 * loop-iv.c (inverse): Compute in uint64_t.
9939 (determine_max_iter, iv_number_of_iterations): Likewise.
9940 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
9941 Print using PRId64.
9942 * lto-streamer-out.c (write_symbol): Use uint64_t.
9943 * mcf.c (CAP_INFINITY): Use int64_t maximum.
9944 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
9945 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
9946 * modulo-sched.c (const_iteration_count): Use int64_t.
9947 (sms_schedule): Dump using PRId64.
9948 * predict.c (dump_prediction): Likewise.
9949 * pretty-print.h (pp_widest_integer): Remove.
9950 * profile.c (get_working_sets, is_edge_inconsistent,
9951 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
9952 * tree-pretty-print.c (pp_double_int): Remove case handling
9953 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
9954 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
9955 and adjust users.
9956 (pass_optimize_bswap::execute): Remove restriction on hosts.
9957 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
9958 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
9959 * tree.c (widest_int_cst_value): Remove.
9960 * tree.h (widest_int_cst_value): Likewise.
9961 * value-prof.c (dump_histogram_value): Print using PRId64.
9962 * gengtype.c (main): Also inject int64_t.
9963 * ggc-page.c (struct max_alignment): Use int64_t.
9964 * alloc-pool.c (struct allocation_object_def): Likewise.
9965 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
9966 for computation.
9967 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
9968 * doc/tm.texi: Regenerated.
9969 * gengtype-lex.l (IWORD): Handle [u]int64_t.
9970 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
9971 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
9972 mmix_output_register_setting): Use [u]int64_t in prototypes.
9973 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
9974 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
9975 mmix_output_octa, mmix_output_shifted_value): Adjust.
9976 (mmix_intval): Adjust. Remove unreachable case.
9977 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
9978
9979 2014-05-26 Richard Biener <rguenther@suse.de>
9980
9981 * configure.ac: Drop __int64 type check. Insist that we
9982 found uint64_t and int64_t.
9983 * hwint.h (HOST_BITS_PER___INT64): Remove.
9984 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
9985 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
9986 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
9987 (HOST_WIDEST_FAST_INT): Remove __int64 case.
9988 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
9989 for dst_q_src_df_rms_cdt.
9990 * configure: Regenerate.
9991 * config.in: Likewise.
9992
9993 2014-05-26 Michael Tautschnig <mt@debian.org>
9994
9995 PR target/61249
9996 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
9997 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
9998
9999 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10000
10001 PR rtl-optimization/61278
10002 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
10003
10004 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10005
10006 PR rtl-optimization/61220
10007 Part of PR rtl-optimization/61225
10008 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
10009 insn; skip split_edge for a block with only one successor.
10010
10011 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10012
10013 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
10014 for variables.
10015
10016 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10017
10018 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
10019 (update_vtable_references): New function.
10020 (function_and_variable_visibility): Rewrite also vtable initializers.
10021 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
10022
10023 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10024
10025 * ggc.h (ggc_grow): New function.
10026 * ggc-none.c (ggc_grow): New function.
10027 * ggc-page.c (ggc_grow): Likewise.
10028
10029 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10030
10031 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
10032 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
10033 comdat_can_be_unshared_p, cgraph_externally_visible_p,
10034 varpool_externally_visible_p, can_replace_by_local_alias,
10035 update_visibility_by_resolution_info, function_and_variable_visibility,
10036 pass_data_ipa_function_and_variable_visibility,
10037 make_pass_ipa_function_and_variable_visibility,
10038 whole_program_function_and_variable_visibility,
10039 pass_data_ipa_whole_program_visibility,
10040 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
10041 * cgraph.h (cgraph_local_node_p): Declare.
10042 * ipa-visibility.c: New file.
10043 * Makefile.in (OBJS): Add ipa-visiblity.o
10044
10045 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10046
10047 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
10048 that var decl is available.
10049
10050 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10051
10052 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
10053 symtab_node pointer.
10054 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
10055 (find_decls_types_r): Do not walk COMDAT_GROUP.
10056 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
10057 * varasm.c (make_decl_one_only): Use set_comdat_group;
10058 create node if needed.
10059 * ipa-inline-transform.c (save_inline_function_body): Update
10060 way we decl->symtab mapping.
10061 * symtab.c (symtab_hash, hash_node, eq_node
10062 symtab_insert_node_to_hashtable): Remove.
10063 (symtab_register_node): Update.
10064 (symtab_unregister_node): Update.
10065 (symtab_get_node): Reimplement as inline function.
10066 (symtab_add_to_same_comdat_group): Update.
10067 (symtab_dissolve_same_comdat_group_list): Update.
10068 (dump_symtab_base): Update.
10069 (verify_symtab_base): Update.
10070 (symtab_make_decl_local): Update.
10071 (fixup_same_cpp_alias_visibility): Update.
10072 (symtab_nonoverwritable_alias): Update.
10073 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
10074 * ipa.c (update_visibility_by_resolution_info): UPdate.
10075 * bb-reorder.c: Include cgraph.h
10076 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
10077 with comdat groups.
10078 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
10079 * cgraph.c (cgraph_get_create_node): Update.
10080 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
10081 and comdat_group_.
10082 (symtab_get_node): Make inline.
10083 (symtab_insert_node_to_hashtable): Remove.
10084 (symtab_can_be_discarded): Update.
10085 (decl_comdat_group): New function.
10086 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
10087 Update.
10088 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
10089 comdat group name.
10090 (read_comdat_group): New function.
10091 (input_node, input_varpool_node): Use it.
10092 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
10093 comdat groups.
10094 * mips.c (mips_start_unique_function): Likewise.
10095 (ix86_code_end): Likewise.
10096 (rs6000_code_end): Likweise.
10097 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
10098
10099 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10100
10101 * gengtype-state.c (fatal_reading_state): Bring offline.
10102 * optabs.c (widening_optab_handler): Bring offline.
10103 * optabs.h (widening_optab_handler): Likewise.
10104 * final.c (get_attr_length_1): Likewise.
10105
10106 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
10107
10108 * sched-int.h (sd_iterator_cond): Manually tail recurse.
10109
10110 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10111
10112 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
10113 (ppc440-compare): Include shift with dot.
10114 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
10115 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
10116 without dot.
10117 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
10118 without dot.
10119 (e6500_sfx2): Include it.
10120 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
10121 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
10122 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
10123 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
10124 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
10125 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
10126 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
10127 *lshiftrt_internal1le, *lshiftrt_internal1be,
10128 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
10129 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
10130 *rotldi3_internal10le, *rotldi3_internal10be,
10131 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
10132 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
10133 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
10134 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
10135 define_insns): Use type "shift" in the appropriate alternatives.
10136
10137 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10138
10139 * config/rs6000/rs6000.md (type): Add "logical". Delete
10140 "fast_compare".
10141 (dot): Adjust comment.
10142 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
10143 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
10144 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
10145 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
10146 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
10147 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
10148 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
10149 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
10150
10151 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10152 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
10153 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10154 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10155 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10156 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10157 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10158 * config/rs6000/8540.md (ppc8540_su): Adjust.
10159 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10160 cell-cmp-microcoded): Adjust.
10161 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
10162 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10163 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
10164 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
10165 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
10166 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10167 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
10168 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
10169 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
10170 Adjust.
10171 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
10172 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
10173 Adjust. Adjust comment.
10174 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10175 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
10176
10177 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10178
10179 * config/rs6000/rs6000.md (type): Add "add".
10180 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
10181 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
10182 define_insns): Use it.
10183 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
10184
10185 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10186 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
10187 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10188 * config/rs6000/601.md (ppc601-integer): Adjust.
10189 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10190 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10191 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10192 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10193 * config/rs6000/8540.md (ppc8540_su): Adjust.
10194 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10195 cell-cmp-microcoded): Adjust.
10196 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
10197 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10198 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
10199 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
10200 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
10201 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10202 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
10203 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
10204 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
10205 Adjust.
10206 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
10207 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
10208 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10209 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
10210
10211 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10212
10213 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
10214 "delayed_compare", "var_delayed_compare".
10215 (var_shift): New attribute.
10216 (cell_micro): Adjust.
10217 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
10218 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
10219 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
10220 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10221 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10222 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10223 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10224 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
10225 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
10226 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
10227 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
10228 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
10229 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
10230 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
10231 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
10232 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
10233 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
10234 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
10235 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
10236 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
10237 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
10238 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
10239 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
10240 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10241 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10242
10243 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
10244 * config/rs6000/440.md (ppc440-integer): Adjust.
10245 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
10246 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
10247 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
10248 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
10249 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
10250 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
10251 * config/rs6000/8540.md (ppc8540_su): Adjust.
10252 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10253 cell-cmp-microcoded): Adjust.
10254 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
10255 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10256 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
10257 e500mc64_delayed): Adjust.
10258 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
10259 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
10260 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
10261 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
10262 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
10263 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
10264 power6-delayed-compare, power6-var-delayed-compare): Adjust.
10265 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
10266 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
10267 Adjust comment.
10268 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
10269 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
10270
10271 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10272
10273 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
10274 (bits): New mode_attr.
10275 (idiv_ldiv): Delete mode_attr.
10276 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
10277 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10278 rs6000_adjust_priority, is_nonpipeline_insn,
10279 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10280
10281 * config/rs6000/40x.md (ppc403-idiv): Adjust.
10282 * config/rs6000/440.md (ppc440-idiv): Adjust.
10283 * config/rs6000/476.md (ppc476-idiv): Adjust.
10284 * config/rs6000/601.md (ppc601-idiv): Adjust.
10285 * config/rs6000/603.md (ppc603-idiv): Adjust.
10286 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
10287 ppc620-ldiv): Adjust.
10288 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
10289 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
10290 * config/rs6000/8540.md (ppc8540_divide): Adjust.
10291 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
10292 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
10293 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
10294 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
10295 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
10296 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
10297 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
10298 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
10299 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
10300 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
10301 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
10302 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
10303 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
10304 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
10305 * config/rs6000/titan.md (titan_fxu_div): Adjust.
10306
10307 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10308
10309 * config/rs6000/rs6000.md (type): Delete "insert_word",
10310 "insert_dword". Add "insert".
10311 (size): Update comment.
10312 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10313 insn_must_be_first_in_group): Adjust.
10314 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
10315 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
10316 *insvsi_internal6, insvdi_internal): Adjust.
10317
10318 * config/rs6000/40x.md (ppc403-integer): Adjust.
10319 * config/rs6000/440.md (ppc440-integer): Adjust.
10320 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
10321 * config/rs6000/601.md (ppc601-integer): Adjust.
10322 * config/rs6000/603.md (ppc603-integer): Adjust.
10323 * config/rs6000/6xx.md (ppc604-integer): Adjust.
10324 * config/rs6000/7450.md (ppc7450-integer): Adjust.
10325 * config/rs6000/7xx.md (ppc750-integer): Adjust.
10326 * config/rs6000/8540.md (ppc8540_su): Adjust.
10327 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
10328 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
10329 * config/rs6000/e500mc.md (e500mc_su): Adjust.
10330 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
10331 * config/rs6000/e5500.md (e5500_sfx): Adjust.
10332 * config/rs6000/e6500.md (e6500_sfx): Adjust.
10333 * config/rs6000/mpc.md (mpccore-integer): Adjust.
10334 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
10335 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
10336 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
10337 * config/rs6000/power7.md (power7-integer): Adjust.
10338 * config/rs6000/power8.md (power8-1cyc): Adjust.
10339 * config/rs6000/rs64.md (rs64a-integer): Adjust.
10340 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
10341
10342 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10343
10344 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
10345 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
10346 (size): New attribute.
10347 (dot): New attribute.
10348 (cell_micro): Adjust.
10349 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
10350 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
10351 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
10352 umuldi3_highpart): Adjust.
10353 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
10354 rs6000_adjust_priority, is_nonpipeline_insn,
10355 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
10356
10357 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
10358 ppc405-imul3): Adjust.
10359 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
10360 * config/rs6000/476.md (ppc476-imul): Adjust.
10361 * config/rs6000/601.md (ppc601-imul): Adjust.
10362 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
10363 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
10364 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
10365 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
10366 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
10367 Adjust.
10368 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
10369 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
10370 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
10371 cell-imul): Adjust.
10372 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
10373 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
10374 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
10375 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
10376 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
10377 * config/rs6000/mpc.md (mpccore-imul): Adjust.
10378 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
10379 power4-lmul, power4-imul, power4-imul3): Adjust.
10380 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
10381 power5-lmul, power5-imul, power5-imul3): Adjust.
10382 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
10383 power6-lmul, power6-imul, power6-imul3): Adjust.
10384 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
10385 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
10386
10387 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
10388 rs64a-lmul): Adjust.
10389 * config/rs6000/titan.md (titan_imul): Adjust.
10390
10391 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10392
10393 * config/rs6000/rs6000.md (type): Add new value "halfmul".
10394 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
10395 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
10396 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
10397 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
10398 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
10399 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
10400 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
10401 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
10402 * config/rs6000/titan.md: Delete nonsensical comment.
10403 (titan_imul): Add type imul3.
10404 (titan_mulhw): Remove type imul3; add type halfmul.
10405
10406 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
10407
10408 * config/rs6000/rs6000.md (type): Reorder, reformat.
10409
10410 2014-05-23 Martin Jambor <mjambor@suse.cz>
10411
10412 PR tree-optimization/53787
10413 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
10414 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
10415 analysis_done, update all uses.
10416 * ipa-prop.c: Include domwalk.h
10417 (param_analysis_info): Removed.
10418 (param_aa_status): New type.
10419 (ipa_bb_info): Likewise.
10420 (func_body_info): Likewise.
10421 (ipa_get_bb_info): New function.
10422 (aa_overwalked): Likewise.
10423 (find_dominating_aa_status): Likewise.
10424 (parm_bb_aa_status_for_bb): Likewise.
10425 (parm_preserved_before_stmt_p): Changed to use new param AA info.
10426 (load_from_unmodified_param): Accept func_body_info as a parameter
10427 instead of parms_ainfo.
10428 (parm_ref_data_preserved_p): Changed to use new param AA info.
10429 (parm_ref_data_pass_through_p): Likewise.
10430 (ipa_load_from_parm_agg_1): Likewise. Update callers.
10431 (compute_complex_assign_jump_func): Changed to use new param AA info.
10432 (compute_complex_ancestor_jump_func): Likewise.
10433 (ipa_compute_jump_functions_for_edge): Likewise.
10434 (ipa_compute_jump_functions): Removed.
10435 (ipa_compute_jump_functions_for_bb): New function.
10436 (ipa_analyze_indirect_call_uses): Likewise, moved variable
10437 declarations down.
10438 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
10439 and info, moved variable declarations down.
10440 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
10441 node and info.
10442 (ipa_analyze_stmt_uses): Likewise.
10443 (ipa_analyze_params_uses): Removed.
10444 (ipa_analyze_params_uses_in_bb): New function.
10445 (ipa_analyze_controlled_uses): Likewise.
10446 (free_ipa_bb_info): Likewise.
10447 (analysis_dom_walker): New class.
10448 (ipa_analyze_node): Handle node-specific forbidden analysis,
10449 initialize and free func_body_info, use dominator walker.
10450 (ipcp_modif_dom_walker): New class.
10451 (ipcp_transform_function): Create and free func_body_info, use
10452 ipcp_modif_dom_walker, moved a lot of functionality there.
10453
10454 2014-05-23 Marek Polacek <polacek@redhat.com>
10455 Jakub Jelinek <jakub@redhat.com>
10456
10457 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
10458 * gcc.c (sanitize_spec_function): Likewise.
10459 * convert.c (convert_to_integer): Include "ubsan.h". Add
10460 floating-point to integer instrumentation.
10461 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
10462 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
10463 SANITIZE_NONDEFAULT.
10464 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
10465 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
10466 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
10467 * ubsan.c: Include "realmpfr.h" and "dfp.h".
10468 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
10469 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
10470 float/double/long double.
10471 (ubsan_instrument_float_cast): New function.
10472 * ubsan.h (ubsan_instrument_float_cast): Declare.
10473
10474 2014-05-23 Jiong Wang <jiong.wang@arm.com>
10475
10476 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
10477 predicate.
10478 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
10479 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
10480 Adjust for tailcalling through registers.
10481 * config/aarch64/aarch64.h (enum reg_class): New caller save
10482 register class.
10483 (REG_CLASS_NAMES): Likewise.
10484 (REG_CLASS_CONTENTS): Likewise.
10485 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
10486 Allow tailcalling without decls.
10487
10488 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10489
10490 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10491 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
10492
10493 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
10494 gsi, and variables v_* to v*.
10495
10496 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
10497
10498 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
10499
10500 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
10501
10502 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
10503 * omp-low.c: Update accordingly.
10504
10505 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
10506 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
10507 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
10508 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
10509 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
10510 GF_OMP_TARGET_KIND_UPDATE.
10511
10512 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
10513 Explicitly enumerate the expected region types.
10514
10515 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
10516
10517 PR other/56955
10518 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
10519 documentation; the old documentation didn't clearly state the
10520 constraints on the contents of the pointed-to storage.
10521
10522 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10523
10524 Fix bootstrap error on ia64
10525 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
10526 Return default value.
10527
10528 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
10529
10530 PR tree-optimization/54733
10531 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
10532 (CMPNOP): Define.
10533 (find_bswap_or_nop_load): New.
10534 (find_bswap_1): Renamed to ...
10535 (find_bswap_or_nop_1): This. Also add support for memory source.
10536 (find_bswap): Renamed to ...
10537 (find_bswap_or_nop): This. Also add support for memory source and
10538 detection of bitwise operations equivalent to load in target
10539 endianness.
10540 (execute_optimize_bswap): Likewise. Also move its leading comment back
10541 in place and split statement transformation into ...
10542 (bswap_replace): This.
10543
10544 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10545
10546 PR rtl-optimization/61215
10547 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
10548 simplify_gen_subreg until final substitution.
10549
10550 2014-05-23 Alan Modra <amodra@gmail.com>
10551
10552 PR target/61231
10553 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
10554 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
10555 Use "Y" constraint rather than "m".
10556
10557 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10558
10559 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
10560 define.
10561 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
10562 New function declaration.
10563 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
10564 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
10565 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
10566 (aarch64_init_builtins) : Initialize builtins
10567 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10568 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10569 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
10570 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
10571 and __builtins_aarch64_set_fpsr.
10572 (aarch64_atomic_assign_expand_fenv): New function.
10573 * config/aarch64/aarch64.md (set_fpcr): New pattern.
10574 (get_fpcr) : Likewise.
10575 (set_fpsr) : Likewise.
10576 (get_fpsr) : Likewise.
10577 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
10578 and UNSPECV_SET_FPSR.
10579 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10580 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
10581 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
10582
10583 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
10584
10585 PR rtl-optimization/60969
10586 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
10587 constraints. Set up mem cost for NO_REGS case.
10588
10589 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
10590
10591 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
10592
10593 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
10594
10595 * config/darwin.c: Include "lto-section-names.h".
10596 (LTO_SEGMENT_NAME): Don't define.
10597 * config/i386/winnt.c: Include "lto-section-names.h".
10598 * lto-streamer.c: Include "lto-section-names.h".
10599 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
10600 * lto-wrapper.c: Include "lto-section-names.h".
10601 (LTO_SECTION_NAME_PREFIX): Don't define.
10602 * lto-section-names.h: New file.
10603 * cgraphunit.c: Include "lto-section-names.h".
10604
10605 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
10606
10607 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
10608
10609 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
10610
10611 PR target/61208
10612 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
10613
10614 2014-05-22 Nick Clifton <nickc@redhat.com>
10615
10616 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
10617
10618 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
10619
10620 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
10621 -> (T)A transformation to integer types.
10622
10623 2014-05-22 Teresa Johnson <tejohnson@google.com>
10624
10625 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
10626 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
10627 (gcov_rewrite): Use gcov_nonruntime_assert.
10628 (gcov_open): Ditto.
10629 (gcov_write_words): Ditto.
10630 (gcov_write_length): Ditto.
10631 (gcov_read_words): Use gcov_nonruntime_assert, and remove
10632 gcc_assert from IN_LIBGCOV code.
10633 (gcov_read_summary): Use gcov_error to flag profile corruption.
10634 (gcov_sync): Use gcov_nonruntime_assert.
10635 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
10636 (gcov_histo_index): Use gcov_nonruntime_assert.
10637 (static void gcov_histogram_merge): Ditto.
10638 (compute_working_sets): Ditto.
10639 * gcov-io.h (gcov_nonruntime_assert): Define.
10640 (gcov_error): Define for !IN_LIBGCOV
10641
10642 2014-05-22 Richard Biener <rguenther@suse.de>
10643
10644 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10645 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
10646 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
10647 and deallocation site.
10648 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10649 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
10650 passing through the incoming points-to set.
10651 (handle_lhs_call): Use flags argument instead of recomputing it.
10652 (find_func_aliases_for_call): Call handle_lhs_call with proper
10653 call return flags.
10654
10655 2014-05-22 Jakub Jelinek <jakub@redhat.com>
10656
10657 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
10658 all padding bits in REAL_VALUE_TYPE are cleared.
10659
10660 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10661
10662 Cleanup and improve multipass_dfa_lookahead_guard
10663 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
10664 (core2i7_first_cycle_multipass_begin,)
10665 (core2i7_first_cycle_multipass_issue,)
10666 (core2i7_first_cycle_multipass_backtrack): Update signature.
10667 * config/ia64/ia64.c
10668 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
10669 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
10670 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
10671 hook definition.
10672 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
10673 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
10674 values.
10675 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
10676 return values.
10677 * doc/tm.texi: Regenerate.
10678 * doc/tm.texi.in
10679 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
10680 * haifa-sched.c (ready_try): Make signed to allow negative values.
10681 (rebug_ready_list_1): Update.
10682 (choose_ready): Simplify.
10683 (sched_extend_ready_list): Update.
10684
10685 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10686
10687 Remove IA64 speculation tweaking flags
10688 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
10689 speculation tuning flags.
10690 (msched-prefer-non-data-spec-insns,)
10691 (msched-prefer-non-control-spec-insns): Obsolete options.
10692 * haifa-sched.c (choose_ready): Remove handling of
10693 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10694 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
10695 and PREFER_NON_DATA_SPEC.
10696 * sel-sched.c (process_spec_exprs): Remove handling of
10697 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
10698
10699 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10700
10701 Improve scheduling debug output
10702 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
10703 (advance_one_cycle): Update.
10704 (schedule_insn, queue_to_ready): Add debug printouts.
10705 (debug_ready_list_1): New static function.
10706 (debug_ready_list): Update.
10707 (max_issue): Add debug printouts.
10708 (dump_insn_stream): New static function.
10709 (schedule_block): Use it. Also better indent printouts.
10710
10711 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
10712
10713 Fix sched_insn debug counter
10714 * haifa-sched.c (schedule_insn): Update.
10715 (struct haifa_saved_data): Add nonscheduled_insns_begin.
10716 (save_backtrack_point, restore_backtrack_point): Update.
10717 (first_nonscheduled_insn): New static function.
10718 (queue_to_ready, choose_ready): Use it.
10719 (schedule_block): Init nonscheduled_insns_begin.
10720 (sched_emit_insn): Update.
10721
10722
10723 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
10724
10725 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
10726 to GENERAL_REGS.
10727 (aarch64_secondary_reload) : LikeWise.
10728 (aarch64_class_max_nregs) : Remove CORE_REGS.
10729 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
10730 (REG_CLASS_NAMES) : Likewise.
10731 (REG_CLASS_CONTENTS) : LikeWise.
10732 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
10733
10734 2014-05-21 Guozhi Wei <carrot@google.com>
10735
10736 PR target/61202
10737 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
10738 constraint.
10739 (vqdmulhq_n_s16): Likewise.
10740
10741 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
10742
10743 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
10744
10745 2014-05-21 Marek Polacek <polacek@redhat.com>
10746
10747 PR sanitizer/61272
10748 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
10749
10750 2014-05-21 Martin Jambor <mjambor@suse.cz>
10751
10752 * doc/invoke.texi (Optimize Options): Document parameters
10753 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
10754 ipa-cp-array-index-hint-bonus.
10755
10756 2014-05-21 Mark Wielaard <mjw@redhat.com>
10757
10758 PR debug/16063
10759 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
10760 version >= 3 or not strict DWARF.
10761 * langhooks.h (struct lang_hooks_for_types): Add
10762 enum_underlying_base_type.
10763 * langhooks.c (lhd_enum_underlying_base_type): New function.
10764 * gcc/langhooks.h (struct lang_hooks_for_types): Add
10765 enum_underlying_base_type.
10766 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
10767 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
10768 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
10769
10770 2014-05-21 Richard Biener <rguenther@suse.de>
10771
10772 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
10773
10774 2014-05-21 John Marino <gnugcc@marino.st>
10775
10776 * config.gcc (*-*-dragonfly*): New target.
10777 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
10778 * configure: Regenerate.
10779 * config/dragonfly-stdint.h: New.
10780 * config/dragonfly.h: New.
10781 * config/dragonfly.opt: New.
10782 * config/i386/dragonfly.h: New.
10783 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
10784
10785 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
10786
10787 * tree.def (VOID_CST): New.
10788 * tree-core.h (TI_VOID): New.
10789 * tree.h (void_node): New.
10790 * tree.c (tree_node_structure_for_code, tree_code_size)
10791 (iterative_hash_expr): Handle VOID_CST.
10792 (build_common_tree_nodes): Initialize void_node.
10793
10794 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
10795
10796 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
10797 functions.
10798 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
10799
10800 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
10801 more places.
10802
10803 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
10804 flag_reorder_blocks_and_partition.
10805 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
10806
10807 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
10808
10809 PR target/54236
10810 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
10811 constraints.
10812 (*addc_r_t): Add new insn_and_split.
10813
10814 2014-05-21 Jakub Jelinek <jakub@redhat.com>
10815
10816 PR middle-end/61252
10817 * omp-low.c (handle_simd_reference): New function.
10818 (lower_rec_input_clauses): Use it. Defer adding reference
10819 initialization even for reduction without placeholder if in simd,
10820 handle it properly later on.
10821
10822 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10823
10824 PR tree-optimization/60899
10825 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
10826 assume all static symbols will have definition wile parsing and
10827 check the do have definition later in compilation; check that
10828 variable referring symbol will be output before concluding that
10829 reference is safe; be conservative for referring local statics;
10830 be more precise about when comdat is output in other partition.
10831
10832 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10833
10834 PR bootstrap/60984
10835 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
10836 parameter.
10837 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
10838 (ipa_inline): Loop inline_to_all_callers until no more aliases
10839 are removed.
10840
10841 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10842
10843 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
10844 set writeonly flag only for vars actually written to.
10845
10846 2014-05-20 Dehao Chen <dehao@google.com>
10847
10848 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
10849 and callee count to get clone count.
10850 * tree-inline.c (expand_call_inline): Use callee count instead of bb
10851 count in copy_body.
10852
10853 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
10854
10855 PR rtl-optimization/61243
10856 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
10857
10858 2014-05-20 Xinliang David Li <davidxl@google.com>
10859
10860 * cgraphunit.c (walk_polymorphic_call_targets): Add
10861 dbgcnt and fopt-info support.
10862 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
10863 * ipa-devirt.c (ipa_devirt): Ditto.
10864 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
10865 * ipa.c (walk_polymorphic_call_targets): Ditto.
10866 * gimple-fold.c (fold_gimple_assign): Ditto.
10867 (gimple_fold_call): Ditto.
10868 * dbgcnt.def: New counter.
10869
10870 2014-05-20 DJ Delorie <dj@redhat.com>
10871
10872 * config/msp430/msp430.md (split): Don't allow subregs when
10873 splitting SImode adds.
10874 (andneghi): Fix subtraction logic.
10875 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
10876
10877 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
10878
10879 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
10880 symbols.
10881 * except.c (switch_to_exception_section, resolve_unique_section,
10882 get_named_text_section, default_function_rodata_section,
10883 align_variable, get_block_for_decl, default_section_type_flags):
10884 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
10885 * symtab.c (symtab_add_to_same_comdat_group,
10886 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
10887 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
10888 Likewise.
10889 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
10890 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
10891 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
10892 (c6x_function_in_section_p): Likewise.
10893 * config/darwin.c (machopic_select_section): Likewise.
10894 * config/arm/arm.c (arm_function_in_section_p): Likewise.
10895 * config/mips/mips.c (mips_function_rodata_section): Likewise.
10896 * config/mep/mep.c (mep_select_section): LIkewise.
10897 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
10898
10899 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
10900
10901 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
10902 EH region of calls to pure functions that can throw an exception.
10903 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
10904 (copy_reference_ops_from_call): Also copy the EH region of the call if
10905 it can throw an exception.
10906
10907 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10908
10909 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
10910 nested VEC_SELECTs that are inverses of each other.
10911
10912 2014-05-20 Richard Biener <rguenther@suse.de>
10913
10914 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
10915 (extract_and_process_scc_for_name): not here.
10916 (cond_dom_walker::before_dom_children): Only process
10917 stmts that end the BB in interesting ways.
10918 (run_scc_vn): Mark param uses as visited.
10919
10920 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10921
10922 * config/arm/arm.md (arith_shiftsi): Do not predicate for
10923 arm_restrict_it.
10924
10925 2014-05-20 Nick Clifton <nickc@redhat.com>
10926
10927 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
10928 (msp430_gimplify_va_arg_expr): New function.
10929 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
10930
10931 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
10932 operand 0 in order to prevent confusion about the number of
10933 registers involved.
10934
10935 2014-05-20 Richard Biener <rguenther@suse.de>
10936
10937 PR tree-optimization/61221
10938 * tree-ssa-pre.c (el_to_update): Remove.
10939 (eliminate_dom_walker::before_dom_children): Handle released
10940 VDEFs by value-numbering them to the associated VUSE. Update
10941 stmt immediately for substituted call address.
10942 (eliminate): Remove delayed stmt updating code.
10943 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
10944 possibly late re-numbered vuses.
10945 (vn_reference_lookup_2): Adjust.
10946 (vn_reference_lookup_pieces): Likewise.
10947 (vn_reference_lookup): Likewise.
10948
10949 2014-05-20 Richard Biener <rguenther@suse.de>
10950
10951 * config.gcc: Remove need_64bit_hwint.
10952 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
10953 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
10954 it to be true.
10955 * config.in: Regenerate.
10956 * configure: Likewise.
10957
10958 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
10959
10960 * doc/extend.texi: Create Label Attributes section,
10961 move all label attributes into it and reference it.
10962
10963 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
10964
10965 * arm.c (thumb1_reorg): When scanning backwards skip anything
10966 that's not a proper insn.
10967
10968 2014-05-19 Richard Biener <rguenther@suse.de>
10969
10970 PR tree-optimization/61221
10971 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10972 Do nothing for unreachable blocks.
10973 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
10974 Improve unreachability detection.
10975
10976 2014-05-19 Richard Biener <rguenther@suse.de>
10977
10978 PR tree-optimization/61209
10979 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
10980
10981 2014-05-19 Nick Clifton <nickc@redhat.com>
10982
10983 * except.c (init_eh): Fix computation of builtin setjmp buffer
10984 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
10985
10986 2014-05-19 Richard Biener <rguenther@suse.de>
10987
10988 PR tree-optimization/61184
10989 * tree-vrp.c (is_negative_overflow_infinity): Use
10990 TREE_OVERFLOW_P and do that check first.
10991 (is_positive_overflow_infinity): Likewise.
10992 (is_overflow_infinity): Likewise.
10993 (vrp_operand_equal_p): Properly treat operands with
10994 differing overflow as not equal.
10995
10996 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
10997
10998 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
10999 shift simplification where it was intended.
11000
11001 2014-05-19 Christian Bruel <christian.bruel@st.com>
11002
11003 PR target/61195
11004 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
11005
11006 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
11007
11008 PR target/61084
11009 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
11010 than wide_int.
11011
11012 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
11013
11014 * reg-notes.def (CROSSING_JUMP): Likewise.
11015 * rtl.h (rtx_def): Update comment for jump flag.
11016 (CROSSING_JUMP_P): Define.
11017 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
11018 of a REG_CROSSING_JUMP note.
11019 * cfghooks.c (tidy_fallthru_edges): Likewise.
11020 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
11021 * emit-rtl.c (try_split): Likewise.
11022 * haifa-sched.c (sched_create_recovery_edges): Likewise.
11023 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
11024 * jump.c (redirect_jump_2): Likewise.
11025 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
11026 (relax_delay_slots): Likewise.
11027 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
11028 (bbit_di): Likewise.
11029 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
11030 * config/sh/sh.md (jump_compact): Likewise.
11031 * bb-reorder.c (rotate_loop): Likewise.
11032 (pass_duplicate_computed_gotos::execute): Likewise.
11033 (add_reg_crossing_jump_notes): Rename to...
11034 (update_crossing_jump_flags): ...this.
11035 (pass_partition_blocks::execute): Update accordingly.
11036
11037 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
11038
11039 * tree.h: Remove extraneous template <>.
11040
11041 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11042
11043 * ipa.c (symtab_remove_unreachable_nodes): Remove
11044 symbol from comdat group if its body was eliminated.
11045 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
11046 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
11047 (symtab_unregister_node): ... this one.
11048 (verify_symtab_base): More strict checking of comdats.
11049 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
11050
11051 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11052
11053 * tree-pass.h (make_pass_ipa_comdats): New pass.
11054 * timevar.def (TV_IPA_COMDATS): New timevar.
11055 * passes.def (pass_ipa_comdats): Add.
11056 * Makefile.in (OBJS): Add ipa-comdats.o
11057 * ipa-comdats.c: New file.
11058
11059 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11060
11061 * ipa.c (update_visibility_by_resolution_info): New function.
11062 (function_and_variable_visibility): Use it.
11063
11064 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
11065
11066 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
11067 New functions.
11068 (FOR_EACH_DEFINED_SYMBOL): New macro.
11069 (varpool_first_static_initializer, varpool_next_static_initializer,
11070 varpool_first_defined_variable, varpool_next_defined_variable):
11071 Fix comments.
11072 (symtab_in_same_comdat_p): Correctly deal with inline functions.
11073
11074 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11075
11076 * ggc-page.c (ggc_handle_finalizers): Add comment.
11077
11078 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11079
11080 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
11081 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
11082 (ggc_internal_cleared_alloc): Likewise.
11083 * ggc-page.c (finalizer): New class.
11084 (vec_finalizer): Likewise.
11085 (globals::finalizers): New member.
11086 (globals::vec_finalizers): Likewise.
11087 (ggc_internal_alloc): Record the finalizer if any for the block being
11088 allocated.
11089 (ggc_handle_finalizers): New function.
11090 (ggc_collect): Call ggc_handle_finalizers.
11091 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
11092 finalizer.
11093 (ggc_internal_cleared_alloc): Likewise.
11094 (finalize): New function.
11095 (need_finalization_p): Likewise.
11096 (ggc_alloc): Install the type's destructor as the finalizer if it
11097 might do something.
11098 (ggc_cleared_alloc): Likewise.
11099 (ggc_vec_alloc): Likewise.
11100 (ggc_cleared_vec_alloc): Likewise.
11101
11102 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11103
11104 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
11105
11106 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11107
11108 * alias.c (record_alias_subset): Adjust.
11109 * bitmap.c (bitmap_element_allocate): Likewise.
11110 (bitmap_gc_alloc_stat): Likewise.
11111 * cfg.c (init_flow): Likewise.
11112 (alloc_block): Likewise.
11113 (unchecked_make_edge): Likewise.
11114 * cfgloop.c (alloc_loop): Likewise.
11115 (flow_loops_find): Likewise.
11116 (rescan_loop_exit): Likewise.
11117 * cfgrtl.c (init_rtl_bb_info): Likewise.
11118 * cgraph.c (insert_new_cgraph_node_version): Likewise.
11119 (cgraph_allocate_node): Likewise.
11120 (cgraph_create_edge_1): Likewise.
11121 (cgraph_allocate_init_indirect_info): Likewise.
11122 * cgraphclones.c (cgraph_clone_edge): Likewise.
11123 * cgraphunit.c (add_asm_node): Likewise.
11124 (init_lowered_empty_function): Likewise.
11125 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
11126 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
11127 (alpha_use_linkage): Likewise.
11128 * config/arc/arc.c (arc_init_machine_status): Likewise.
11129 * config/arm/arm.c (arm_init_machine_status): Likewise.
11130 * config/avr/avr.c (avr_init_machine_status): Likewise.
11131 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
11132 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
11133 * config/cris/cris.c (cris_init_machine_status): Likewise.
11134 * config/darwin.c (machopic_indirection_name): Likewise.
11135 (darwin_build_constant_cfstring): Likewise.
11136 (darwin_enter_string_into_cfstring_table): Likewise.
11137 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
11138 * config/frv/frv.c (frv_init_machine_status): Likewise.
11139 * config/i386/i386.c (get_dllimport_decl): Likewise.
11140 (ix86_init_machine_status): Likewise.
11141 (assign_386_stack_local): Likewise.
11142 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
11143 (i386_pe_maybe_record_exported_symbol): Likewise.
11144 (i386_pe_record_stub): Likewise.
11145 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
11146 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
11147 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
11148 (m32c_note_pragma_address): Likewise.
11149 * config/mep/mep.c (mep_init_machine_status): Likewise.
11150 (mep_note_pragma_flag): Likewise.
11151 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
11152 (mips16_local_alias): Likewise.
11153 (mips_init_machine_status): Likewise.
11154 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
11155 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
11156 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
11157 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
11158 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
11159 * config/pa/pa.c (pa_init_machine_status): Likewise.
11160 (pa_get_deferred_plabel): Likewise.
11161 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
11162 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
11163 (rs6000_init_machine_status): Likewise.
11164 (output_toc): Likewise.
11165 * config/s390/s390.c (s390_init_machine_status): Likewise.
11166 * config/score/score.c (score_output_external): Likewise.
11167 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
11168 * config/spu/spu.c (spu_init_machine_status): Likewise.
11169 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
11170 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
11171 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11172 * coverage.c (coverage_end_function): Likewise.
11173 * dbxout.c (dbxout_init): Likewise.
11174 * doc/gty.texi: Don't mention variable_size attribute.
11175 * dwarf2cfi.c (new_cfi): Adjust.
11176 (new_cfi_row): Likewise.
11177 (copy_cfi_row): Likewise.
11178 (create_cie_data): Likewise.
11179 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
11180 (new_loc_descr): Likewise.
11181 (find_AT_string_in_table): Likewise.
11182 (add_addr_table_entry): Likewise.
11183 (new_die): Likewise.
11184 (add_var_loc_to_decl): Likewise.
11185 (clone_die): Likewise.
11186 (clone_as_declaration): Likewise.
11187 (break_out_comdat_types): Likewise.
11188 (new_loc_list): Likewise.
11189 (add_loc_descr_to_each): Likewise.
11190 (add_location_or_const_value_attribute): Likewise.
11191 (add_linkage_name): Likewise.
11192 (lookup_filename): Likewise.
11193 (dwarf2out_var_location): Likewise.
11194 (new_line_info_table): Likewise.
11195 (dwarf2out_init): Likewise.
11196 (mem_loc_descriptor): Likewise.
11197 (loc_descriptor): Likewise.
11198 (add_const_value_attribute): Likewise.
11199 (tree_add_const_value_attribute): Likewise.
11200 (comp_dir_string): Likewise.
11201 (dwarf2out_vms_debug_main_pointer): Likewise.
11202 (string_cst_pool_decl): Likewise.
11203 * emit-rtl.c (set_mem_attrs): Likewise.
11204 (get_reg_attrs): Likewise.
11205 (start_sequence): Likewise.
11206 (init_emit): Likewise.
11207 (init_emit_regs): Likewise.
11208 * except.c (init_eh_for_function): Likewise.
11209 (gen_eh_region): Likewise.
11210 (gen_eh_region_catch): Likewise.
11211 (gen_eh_landing_pad): Likewise.
11212 (add_call_site): Likewise.
11213 * function.c (add_frame_space): Likewise.
11214 (insert_temp_slot_address): Likewise.
11215 (assign_stack_temp_for_type): Likewise.
11216 (get_hard_reg_initial_val): Likewise.
11217 (allocate_struct_function): Likewise.
11218 (prepare_function_start): Likewise.
11219 (types_used_by_var_decl_insert): Likewise.
11220 * gengtype.c (variable_size_p): Remove function.
11221 (enum alloc_quantity): Remove enum.
11222 (write_typed_alloc_def): Remove function.
11223 (write_typed_struct_alloc_def): Likewise.
11224 (write_typed_typedef_alloc_def): Likewise.
11225 (write_typed_alloc_defns): Likewise.
11226 (main): Adjust.
11227 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
11228 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
11229 * ggc.h (ggc_alloc): new function.
11230 (ggc_cleared_alloc): Likewise.
11231 (ggc_vec_alloc): Template on type of vector element, and remove
11232 element size argument.
11233 (ggc_cleared_vec_alloc): Likewise.
11234 * gimple.c (gimple_build_omp_for): Adjust.
11235 (gimple_copy): Likewise.
11236 * ipa-cp.c (get_replacement_map): Likewise.
11237 (find_aggregate_values_for_callers_subset): Likewise.
11238 (known_aggs_to_agg_replacement_list): Likewise.
11239 * ipa-devirt.c (get_odr_type): Likewise.
11240 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
11241 (read_agg_replacement_chain): Likewise.
11242 * loop-iv.c (get_simple_loop_desc): Likewise.
11243 * lto-cgraph.c (input_node_opt_summary): Likewise.
11244 * lto-section-in.c (lto_new_in_decl_state): Likewise.
11245 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
11246 (input_eh_region): Likewise.
11247 (input_eh_lp): Likewise.
11248 (input_cfg): Likewise.
11249 * optabs.c (set_optab_libfunc): Likewise.
11250 (init_tree_optimization_optabs): Likewise.
11251 (set_conv_libfunc): Likewise.
11252 * passes.c (do_per_function_toporder): Likewise.
11253 * rtl.h: Don't use variable_size gty attribute.
11254 * sese.c (if_region_set_false_region): Adjust.
11255 * stringpool.c (gt_pch_save_stringpool): Likewise.
11256 * target-globals.c (save_target_globals): Likewise.
11257 * toplev.c (general_init): Likewise.
11258 * trans-mem.c (record_tm_replacement): Likewise.
11259 (split_bb_make_tm_edge): Likewise.
11260 * tree-cfg.c (move_sese_region_to_fn): Likewise.
11261 * tree-data-ref.h (lambda_vector_new): Likewise.
11262 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
11263 * tree-iterator.c (tsi_link_before): Likewise.
11264 (tsi_link_after): Likewise.
11265 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
11266 * tree-ssa-loop-niter.c (record_estimate): Likewise.
11267 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
11268 * tree-ssa-operands.h: Don't use variable_size gty attribute.
11269 * tree-ssa.c (init_tree_ssa): Adjust.
11270 * tree-ssanames.c (set_range_info): Likewise.
11271 (get_ptr_info): Likewise.
11272 (duplicate_ssa_name_ptr_info): Likewise.
11273 (duplicate_ssa_name_range_info): Likewise.
11274 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
11275 (unpack_ts_fixed_cst_value_fields): Likewise.
11276 * tree.c (build_fixed): Likewise.
11277 (build_real): Likewise.
11278 (build_string): Likewise.
11279 (decl_priority_info): Likewise.
11280 (decl_debug_expr_insert): Likewise.
11281 (decl_value_expr_insert): Likewise.
11282 (decl_debug_args_insert): Likewise.
11283 (type_hash_add): Likewise.
11284 (build_omp_clause): Likewise.
11285 * ubsan.c (decl_for_type_insert): Likewise.
11286 * varasm.c (get_unnamed_section): Likewise.
11287 (get_noswitch_section): Likewise.
11288 (get_section): Likewise.
11289 (get_block_for_section): Likewise.
11290 (create_block_symbol): Likewise.
11291 (build_constant_desc): Likewise.
11292 (create_constant_pool): Likewise.
11293 (force_const_mem): Likewise.
11294 (record_tm_clone_pair): Likewise.
11295 * varpool.c (varpool_create_empty_node): Likewise.
11296
11297 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
11298
11299 * dwarf2out.c (tree_add_const_value_attribute): Call
11300 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
11301 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
11302 instead of ggc_internal_<x>alloc_stat.
11303 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
11304 (ggc_realloc): Likewise.
11305 * ggc-none.c (ggc_internal_alloc): Likewise.
11306 (ggc_internal_cleared_alloc): Likewise.
11307 * ggc-page.c: Likewise.
11308 * ggc.h (ggc_internal_alloc_stat): Likewise.
11309 (ggc_internal_alloc): Remove macro.
11310 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
11311 (ggc_internal_cleared_alloc): Remove macro.
11312 (GGC_RESIZEVEC): Adjust.
11313 (ggc_resizevar): Remove macro.
11314 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
11315 (ggc_internal_cleared_vec_alloc_stat): Likewise.
11316 (ggc_internal_vec_cleared_alloc): Remove macro.
11317 (ggc_alloc_atomic_stat): Drop _stat suffix.
11318 (ggc_alloc_atomic): Remove macro.
11319 (ggc_alloc_cleared_atomic): Remove macro.
11320 (ggc_alloc_string_stat): Drop _stat suffix.
11321 (ggc_alloc_string): Remove macro.
11322 (ggc_alloc_rtx_def_stat): Adjust.
11323 (ggc_alloc_tree_node_stat): Likewise.
11324 (ggc_alloc_cleared_tree_node_stat): Likewise.
11325 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
11326 (ggc_alloc_cleared_simd_clone_stat): Likewise.
11327 * gimple.c (gimple_build_omp_for): Likewise.
11328 (gimple_copy): Likewise.
11329 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
11330 * toplev.c (realloc_for_line_map): Adjust.
11331 * tree-data-ref.h (lambda_vector_new): Likewise.
11332 * tree-phinodes.c (allocate_phi_node): Likewise.
11333 * tree.c (grow_tree_vec_stat): Likewise.
11334 * vec.h (va_gc::reserve): Adjust.
11335
11336 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
11337
11338 * config/microblaze/microblaze.c (break_handler): New Declaration.
11339 (microblaze_break_function_p,microblaze_is_break_handler): New.
11340 (compute_frame_size): Use microblaze_break_function_p.
11341 Add the test of break_handler.
11342 (microblaze_function_prologue) : Add the test of variable
11343 break_handler. Check the fnname by BREAK_HANDLER_NAME.
11344 (microblaze_function_epilogue) : Add the test of break_handler.
11345 (microblaze_globalize_label) : Add the test of break_handler.
11346 Check the name by BREAK_HANDLER_NAME.
11347
11348 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
11349
11350 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
11351 microblaze_is_break_handler test.
11352 (call_internal1,call_value_intern): Use microblaze_break_function_p.
11353 Use SYMBOL_REF_DECL.
11354
11355 * config/microblaze/microblaze-protos.h
11356 (microblaze_break_function_p,microblaze_is_break_handler):
11357 New Declaration.
11358
11359 * doc/extend.texi (MicroBlaze break_handler Functions): Document
11360 new MicroBlaze break_handler functions.
11361
11362 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11363
11364 * doc/extend.texi (Size of an asm): Move node text according
11365 to its @menu entry position.
11366
11367 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
11368
11369 PR tree-optimization/61140
11370 PR tree-optimization/61150
11371 PR tree-optimization/61197
11372 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
11373
11374 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
11375
11376 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
11377
11378 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
11379
11380 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
11381 __SIZEOF_INT128__ is defined.
11382
11383 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11384
11385 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
11386 (rs6000_delegitimize_address): Use it.
11387
11388 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11389
11390 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
11391 inplace argument. Store the new address in the original MEM when true.
11392 * emit-rtl.c (change_address_1): Likewise.
11393 (adjust_address_1, adjust_automodify_address_1, offset_address):
11394 Update accordingly.
11395 * rtl.h (plus_constant): Add an inplace argument.
11396 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
11397 when true. Avoid generating (plus X (const_int 0)).
11398 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
11399 in-place. Pass true to plus_constant.
11400 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
11401
11402 2014-05-16 Dehao Chen <dehao@google.com>
11403
11404 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
11405
11406 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11407
11408 PR target/54089
11409 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
11410 patterns.
11411 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
11412
11413 2014-05-16 Dehao Chen <dehao@google.com>
11414
11415 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
11416 optimize_function_for_size_p.
11417 * regs.h (REG_FREQ_FROM_BB): Likewise.
11418
11419 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11420
11421 PR target/51244
11422 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
11423 negt_reg_operand cases.
11424 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
11425 predicate.
11426 * config/sh/predicates.md (cbranch_treg_value): Simplify.
11427
11428 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
11429
11430 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
11431 target variants.
11432
11433 2014-05-16 David Malcolm <dmalcolm@redhat.com>
11434
11435 Revert:
11436 2014-04-29 David Malcolm <dmalcolm@redhat.com>
11437
11438 * tree-cfg.c (dump_function_to_file): Dump the return type of
11439 functions, in a line to itself before the function body, mimicking
11440 the layout of a C function.
11441
11442 2014-05-16 Dehao Chen <dehao@google.com>
11443
11444 * cfghooks.c (make_forwarder_block): Use direct computation to
11445 get fall-through edge's count and frequency.
11446
11447 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
11448
11449 * config/arc/arc.c (arc_init): Fix typo in error message.
11450 * config/i386/i386.c (ix86_expand_builtin): Likewise.
11451 (split_stack_prologue_scratch_regno): Likewise.
11452 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
11453 word from error message.
11454
11455 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
11456
11457 * ira-costs.c: Fix typo in comment.
11458
11459 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
11460
11461 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
11462
11463 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
11464
11465 * varpool.c (dump_varpool_node): Dump write-only flag.
11466 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
11467 write-only flag.
11468 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
11469 write-only variables.
11470 * ipa.c (process_references): New function.
11471 (set_readonly_bit): New function.
11472 (set_writeonly_bit): New function.
11473 (clear_addressable_bit): New function.
11474 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
11475 fix handling of aliases.
11476 * cgraph.h (struct varpool_node): Add writeonly flag.
11477
11478 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
11479
11480 PR rtl-optimization/60969
11481 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
11482 Calculate costs for this case.
11483
11484 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
11485
11486 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
11487 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
11488
11489 2014-05-16 Richard Biener <rguenther@suse.de>
11490
11491 PR tree-optimization/61194
11492 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
11493 bool patterns ending in a COND_EXPR.
11494
11495 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11496
11497 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
11498
11499 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11500
11501 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
11502 where we were unable to cost an RTX.
11503
11504 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11505
11506 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
11507 HIGH, LO_SUM.
11508
11509 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11510 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11511
11512 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
11513
11514 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11515 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11516
11517 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
11518 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
11519
11520 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11521 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11522
11523 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
11524 operators.
11525
11526 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11527 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11528
11529 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11530 DIV/MOD.
11531
11532 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11533 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11534
11535 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
11536 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
11537
11538 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11539 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11540
11541 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
11542 rotates and shifts.
11543
11544 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11545 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11546
11547 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
11548 ZERO_EXTEND and SIGN_EXTEND better.
11549
11550 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11551 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11552
11553 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
11554 logical operations.
11555
11556 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11557 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11558
11559 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
11560 costs when costing loads and stores to memory.
11561
11562 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11563 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
11564
11565 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
11566 for SET RTX.
11567
11568 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11569
11570 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
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_strip_shift_or_extend): Rename
11576 to...
11577 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
11578 well formed.
11579 (aarch64_rtx_mult_cost): New.
11580 (aarch64_rtx_costs): Use it, refactor as appropriate.
11581
11582 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11583 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
11584
11585 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
11586 emit instructions, return number of instructions which would
11587 be emitted.
11588 (aarch64_add_constant): Update call to aarch64_build_constant.
11589 (aarch64_output_mi_thunk): Likewise.
11590 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
11591 a CONST_DOUBLE.
11592
11593 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11594
11595 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
11596 (TARGET_RTX_COSTS): Call it.
11597
11598 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11599
11600 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
11601 (cortexa57_vector_cost): Likewise.
11602 (cortexa57_tunings): Use them.
11603
11604 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
11605
11606 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
11607 (cpu_addrcost_table): Use it.
11608 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
11609 (aarch64_address_cost): Rewrite using aarch64_classify_address,
11610 move it.
11611
11612 2014-05-16 Richard Biener <rguenther@suse.de>
11613
11614 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
11615 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
11616 (visit_phi): Ignore edges marked as not executable.
11617 (class cond_dom_walker): New.
11618 (cond_dom_walker::before_dom_children): Value-number
11619 control statements and mark successor edges as not
11620 executable if possible.
11621 (run_scc_vn): First walk all control statements in
11622 dominator order, marking edges as not executable.
11623 * tree-inline.c (copy_edges_for_bb): Be not confused
11624 about random edge flags.
11625
11626 2014-05-16 Richard Biener <rguenther@suse.de>
11627
11628 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
11629
11630 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
11631
11632 PR target/61193
11633 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
11634 (__TM_simple_begin): Use it.
11635 (__TM_begin): Likewise.
11636
11637 2014-05-15 Martin Jambor <mjambor@suse.cz>
11638
11639 PR ipa/61085
11640 * ipa-prop.c (update_indirect_edges_after_inlining): Check
11641 type_preserved flag when the indirect edge is polymorphic.
11642
11643 2014-05-15 Martin Jambor <mjambor@suse.cz>
11644
11645 PR tree-optimization/61090
11646 * tree-sra.c (sra_modify_expr): Pass the current gsi to
11647 build_ref_for_model.
11648
11649 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11650
11651 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
11652 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
11653
11654 2014-05-15 Jakub Jelinek <jakub@redhat.com>
11655
11656 PR tree-optimization/61158
11657 * fold-const.c (fold_binary_loc): If X is zero-extended and
11658 shiftc >= prec, make sure zerobits is all ones instead of
11659 invoking undefined behavior.
11660
11661 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11662
11663 * regcprop.h: New file.
11664 * regcprop.c (skip_debug_insn_p): New decl.
11665 (replace_oldest_value_reg): Check skip_debug_insn_p.
11666 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
11667 * shrink-wrap.c: Include regcprop.h.
11668 (prepare_shrink_wrap): Call
11669 copyprop_hardreg_forward_bb_without_debug_insn.
11670
11671 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11672
11673 * shrink-wrap.h: Update comment.
11674 * shrink-wrap.c: Update comment.
11675 (next_block_for_reg): Rename to live_edge_for_reg.
11676 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
11677 (move_insn_for_shrink_wrap): Split live_edge.
11678 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
11679
11680 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11681
11682 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
11683 Delete.
11684 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
11685 * config/sparc/sparc.md (fptype_ut699): New attribute.
11686 (in_branch_delay): Return false if -mfix-ut699 is specified and
11687 fptype_ut699 is set to single.
11688 (truncdfsf2): Add fptype_ut699 attribute.
11689 (fix_truncdfsi2): Likewise.
11690 (floatsisf2): Change fptype attribute.
11691 (fix_truncsfsi2): Likewise.
11692 (negtf2_notv9): Delete.
11693 (negtf2_v9): Likewise.
11694 (negtf2_hq): New instruction.
11695 (negtf2): New instruction and splitter.
11696 (negdf2_notv9): Rewrite.
11697 (abstf2_notv9): Delete.
11698 (abstf2_hq_v9): Likewise.
11699 (abstf2_v9): Likewise.
11700 (abstf2_hq): New instruction.
11701 (abstf2): New instruction and splitter.
11702 (absdf2_notv9): Rewrite.
11703
11704 2014-05-14 Cary Coutant <ccoutant@google.com>
11705
11706 PR debug/61013
11707 * opts.c (common_handle_option): Don't special-case "-g".
11708 (set_debug_level): Default to at least level 2 with "-g".
11709
11710 2014-05-14 DJ Delorie <dj@redhat.com>
11711
11712 * config/msp430/msp430.c (msp430_builtin): Add
11713 MSP430_BUILTIN_DELAY_CYCLES.
11714 (msp430_init_builtins): Register void __delay_cycles(long long).
11715 (msp430_builtin_decl): Add it.
11716 (cg_magic_constant): New.
11717 (msp430_expand_delay_cycles): New.
11718 (msp430_expand_builtin): Call it.
11719 (msp430_print_operand_raw): Change integer printing from "int" to
11720 HOST_WIDE_INT.
11721 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
11722 (delay_cycles_start): New.
11723 (delay_cycles_end): New.
11724 (delay_cycles_32): New.
11725 (delay_cycles_32x): New.
11726 (delay_cycles_16): New.
11727 (delay_cycles_16x): New.
11728 (delay_cycles_2): New.
11729 (delay_cycles_1): New.
11730 * doc/extend.texi: Document __delay_cycles().
11731
11732 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
11733
11734 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
11735 length attribute computation.
11736
11737 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
11738
11739 PR debug/61188
11740 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
11741
11742 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
11743
11744 PR target/61084
11745 * config/sparc/sparc.md: Fix types of low and high in DI constant
11746 splitter. Use gen_int_mode in some other splitters.
11747
11748 2014-05-14 Martin Jambor <mjambor@suse.cz>
11749
11750 PR ipa/60897
11751 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
11752
11753 2014-05-14 James Norris <jnorris@codesourcery.com>
11754
11755 * omp-low.c (expand_parallel_call): Remove shadow variable.
11756 (expand_omp_taskreg): Likewise.
11757
11758 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
11759
11760 * common/config/i386/i386-common.c
11761 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
11762 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
11763 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
11764 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
11765 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
11766 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
11767 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
11768 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
11769 xsavecintrin.h, xsavesintrin.h.
11770 (x86_64-*-*): Ditto.
11771 * config/i386/clflushoptintrin.h: New.
11772 * config/i386/xsavecintrin.h: Ditto.
11773 * config/i386/xsavesintrin.h: Ditto.
11774 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
11775 (bit_XSAVES): Ditto.
11776 (bit_XSAVES): Ditto.
11777 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
11778 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
11779 -mno-clflushopt.
11780 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11781 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
11782 OPTION_MASK_ISA_XSAVES.
11783 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
11784 -mxsavec, -mxsaves.
11785 (PTA_CLFLUSHOPT) Define.
11786 (PTA_XSAVEC): Ditto.
11787 (PTA_XSAVES): Ditto.
11788 (ix86_option_override_internal): Handle new options.
11789 (ix86_valid_target_attribute_inner_p): Ditto.
11790 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
11791 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
11792 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
11793 (bdesc_special_args): Add __builtin_ia32_xsaves,
11794 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
11795 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
11796 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
11797 (ix86_expand_builtin): Handle new builtins.
11798 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
11799 (TARGET_CLFLUSHOPT_P): Ditto.
11800 (TARGET_XSAVEC): Ditto.
11801 (TARGET_XSAVEC_P): Ditto.
11802 (TARGET_XSAVES): Ditto.
11803 (TARGET_XSAVES_P): Ditto.
11804 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
11805 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
11806 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
11807 (ANY_XRSTOR): New.
11808 (ANY_XRSTOR64): Ditto.
11809 (xrstor): Ditto.
11810 (xrstor): Change into <xrstor>.
11811 (xrstor_rex64): Change into <xrstor>_rex64.
11812 (xrstor64): Change into <xrstor>64
11813 (clflushopt): New.
11814 * config/i386/i386.opt (mclflushopt): New.
11815 (mxsavec): Ditto.
11816 (mxsaves): Ditto.
11817 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
11818 xsavecintrin.h.
11819 * doc/invoke.texi: Document new options.
11820
11821 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11822
11823 PR rtl-optimization/60866
11824 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
11825 Default it to -1. Pass it down to init_simplejump_data.
11826 (init_simplejump_data): New parameter old_seqno. Pass it down
11827 to get_seqno_for_a_jump.
11828 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
11829 initializing new jump seqno as a last resort. Add comment.
11830 (sel_redirect_edge_and_branch): Save old seqno of the conditional
11831 jump and pass it down to sel_init_new_insn.
11832 (sel_redirect_edge_and_branch_force): Likewise.
11833
11834 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
11835
11836 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
11837 shifted values to avoid build warning.
11838
11839 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
11840
11841 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
11842 * cfgrtl.c (rtl_merge_blocks): Fix comment.
11843 (cfg_layout_merge_blocks): Likewise.
11844 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
11845
11846 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
11847
11848 PR rtl-optimization/60901
11849 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
11850 bb predecessor belongs to the same scheduling region. Adjust comment.
11851
11852 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
11853
11854 * doc/sourcebuild.texi: (dfp_hw): Document.
11855 (p8vector_hw): Likewise.
11856 (powerpc_eabi_ok): Likewise.
11857 (powerpc_elfv2): Likewise.
11858 (powerpc_htm_ok): Likewise.
11859 (ppc_recip_hw): Likewise.
11860 (vsx_hw): Likewise.
11861
11862 2014-05-13 Cary Coutant <ccoutant@google.com>
11863
11864 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
11865
11866 2014-05-13 David Malcolm <dmalcolm@redhat.com>
11867
11868 * gengtype-parse.c (require3): Eliminate in favor of...
11869 (require4): New.
11870 (require_template_declaration): Update to support optional single *
11871 on a type.
11872
11873 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
11874 (create_user_defined_type): Handle a single level of explicit
11875 pointerness within template arguments.
11876 (struct write_types_data): Add field "kind".
11877 (filter_type_name): Handle "*" character.
11878 (write_user_func_for_structure_ptr): Require a write_types_data
11879 rather than just a prefix string, so that we can look up the kind
11880 of the wtd and use it as an index into wrote_user_func_for_ptr,
11881 ensuring that such functions are written at most once. Support
11882 subclasses by invoking the marking function of the ultimate base class.
11883 (write_user_func_for_structure_body): Require a write_types_data
11884 rather than just a prefix string, so that we can pass this to
11885 write_user_func_for_structure_ptr.
11886 (write_func_for_structure): Likewise.
11887 (ggc_wtd): Add initializer of new "kind" field.
11888 (pch_wtd): Likewise.
11889
11890 * gengtype.h (enum write_types_kinds): New.
11891 (struct type): Add field wrote_user_func_for_ptr to the "s"
11892 union member.
11893
11894 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11895
11896 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
11897 instead of const_binop.
11898 (fold_binary_loc): Likewise.
11899
11900 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
11901
11902 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
11903 calculation to match get_ref_base_and_extent.
11904
11905 2014-05-13 Catherine Moore <clm@codesourcery.com>
11906 Sandra Loosemore <sandra@codesourcery.com>
11907
11908 * configure.ac: Fix assembly for explicit JALR relocation check.
11909 * configure: Regenerate.
11910
11911 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11912
11913 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
11914 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
11915 Remove associated type declarations and initialisations.
11916 (arm_expand_neon_builtin): Likewise.
11917 (neon_emit_pair_result_insn): Delete.
11918 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
11919 * config/arm/neon.md (neon_vtrn<mode>): Delete.
11920 (neon_vzip<mode>): Likewise.
11921 (neon_vuzp<mode>): Likewise.
11922
11923 2014-05-13 Richard Biener <rguenther@suse.de>
11924
11925 PR ipa/60973
11926 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
11927 it needs revisiting whether the call still may be tail-called.
11928
11929 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11930
11931 * rtl.def (SYMBOL_REF): Remove middle "0" field.
11932 * rtl.h (block_symbol): Reduce number of fields to 2.
11933 (rtx_def): Add u2.symbol_ref_flags.
11934 (SYMBOL_REF_FLAGS): Use it.
11935 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
11936 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
11937 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
11938 Lower index of SYMBOL_REF_DATA.
11939 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
11940 Print SYMBOL_REF_FLAGS at the same time.
11941 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
11942
11943 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11944
11945 * rtl.def (VAR_LOCATION): Remove "i" field.
11946 * rtl.h (rtx_def): Add u2.var_location_status.
11947 (PAT_VAR_LOCATION_STATUS): Use it.
11948 (gen_rtx_VAR_LOCATION): Declare.
11949 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
11950 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
11951 * var-tracking.c (emit_note_insn_var_location): Remove casts.
11952
11953 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11954
11955 * rtl.def (scratch): Fix outdated comment and remove "0" field.
11956 * gengtype.c (adjust_field_rtx_def): Update accordingly.
11957
11958 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11959
11960 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
11961 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
11962 * rtl.h (rtx_def): Add insn_uid to u2 field.
11963 (RTX_FLAG_CHECK8): Delete in favor of...
11964 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
11965 (INSN_DELETED_P): Update accordingly.
11966 (INSN_UID): Use u2.insn_uid.
11967 (INSN_CHAIN_CODE_P): Define.
11968 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
11969 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
11970 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
11971 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
11972 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
11973 indices accordingly.
11974 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
11975 Update indices for insn-chain rtxes.
11976 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
11977 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
11978 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
11979 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
11980 * combine.c (try_combine): Likewise.
11981 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11982
11983 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11984
11985 * rtl.def (REG): Remove middle field.
11986 * rtl.h (rtx_def): Add orignal_regno to u2.
11987 (ORIGINAL_REGNO): Use it instead of field 1.
11988 (REG_ATTRS): Lower field index accordingly.
11989 * gengtype.c (adjust_field_rtx_def): Remove handling of
11990 ORIGINAL_REGNO. Move REG_ATTRS index down.
11991 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
11992 code that prints the REGNO.
11993
11994 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
11995
11996 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
11997 GENERATOR_FILE.
11998
11999 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
12000
12001 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
12002
12003 2014-05-13 Bin Cheng <bin.cheng@arm.com>
12004
12005 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
12006 (alloc_iv): Lower base expressions containing ADDR_EXPR.
12007
12008 2014-05-13 Ian Bolton <ian.bolton@arm.com>
12009
12010 * config/aarch64/aarch64-protos.h
12011 (aarch64_hard_regno_caller_save_mode): New prototype.
12012 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
12013 New function.
12014 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
12015
12016 2014-05-13 Christian Bruel <christian.bruel@st.com>
12017
12018 * target.def (mode_switching): New hook vector.
12019 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
12020 (mode_exit, modepriority_to_mode): Likewise.
12021 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
12022 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12023 * target.h: Include tm.h and hard-reg-set.h.
12024 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
12025 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
12026 * doc/tm.texi Regenerate.
12027 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
12028 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12029 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
12030 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
12031 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
12032 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12033 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
12034 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
12035 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
12036 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
12037 (ix86_emit_mode_set): Hookify.
12038 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
12039 Delete.
12040 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12041 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
12042 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
12043 (epiphany_mode_priority_to_mode): Remove declaration.
12044 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
12045 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
12046 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
12047 Likewise.
12048 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
12049 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
12050 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
12051
12052 2014-05-13 Jakub Jelinek <jakub@redhat.com>
12053
12054 PR target/61060
12055 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
12056 is const0_rtx, return immediately. Don't test count == 0 when
12057 it is always true.
12058
12059 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12060
12061 * Makefile.in: add shrink-wrap.o.
12062 * config/i386/i386.c: include "shrink-wrap.h"
12063 * function.c: Likewise.
12064 (requires_stack_frame_p, next_block_for_reg,
12065 move_insn_for_shrink_wrap, prepare_shrink_wrap,
12066 dup_block_and_redirect): Move to shrink-wrap.c
12067 (thread_prologue_and_epilogue_insns): Extract three code segments
12068 as functions in shrink-wrap.c
12069 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
12070 shrink-wrap.h
12071 * shrink-wrap.c: New file.
12072 * shrink-wrap.h: New file.
12073
12074 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
12075
12076 * doc/extend.texi: Reflect current numbers of pragmas. Remove
12077 reference to Solaris.
12078
12079 2014-05-12 Mike Stump <mikestump@comcast.net>
12080
12081 PR other/31778
12082 * genattrtab.c (filename): Add.
12083 (convert_set_attr_alternative): Improve error message.
12084 (check_defs): Restore read_md_filename for error messages.
12085 (gen_insn): Save filename.
12086
12087 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
12088
12089 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
12090 -fno-local-ivars and -fivar-visibility.
12091 * c-family/c.opt: Make -Wshadow also implicitly enable
12092 -Wshadow-ivar.
12093
12094 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
12095
12096 * doc/tm.texi: Remove reference to deleted macro.
12097 * doc/tm.texi.in: Likewise.
12098
12099 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12100
12101 PR target/60991
12102 * config/avr/avr.c (avr_out_store_psi): Use correct constant
12103 to restore Y.
12104
12105 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
12106
12107 PR libgcc/61152
12108 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
12109 * config/arm/aout.h (License): Same.
12110 * config/arm/bpabi.h (License): Same.
12111 * config/arm/elf.h (License): Same.
12112 * config/arm/linux-elf.h (License): Same.
12113 * config/arm/linux-gas.h (License): Same.
12114 * config/arm/netbsd-elf.h (License): Same.
12115 * config/arm/uclinux-eabi.h (License): Same.
12116 * config/arm/uclinux-elf.h (License): Same.
12117 * config/arm/vxworks.h (License): Same.
12118
12119 2014-05-11 Jakub Jelinek <jakub@redhat.com>
12120
12121 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
12122 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
12123 number of operands to 3.
12124 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
12125 * tree-nested.c (convert_nonlocal_omp_clauses,
12126 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
12127 * gimplify.c (gimplify_scan_omp_clauses): Handle
12128 OMP_CLAUSE_LINEAR_STMT.
12129 * omp-low.c (lower_rec_input_clauses): Fix typo.
12130 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
12131 cast between Fortran boolean_type_node and C _Bool if
12132 needed.
12133
12134 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
12135
12136 PR tree-optimization/61136
12137 * wide-int.h (multiple_of_p): Define a version that doesn't return
12138 the quotient.
12139 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
12140 integer_zerop/const_binop pair.
12141 (multiple_of_p): Likewise, converting both operands to widest_int
12142 precision.
12143
12144 2014-05-09 Teresa Johnson <tejohnson@google.com>
12145
12146 * cgraphunit.c (analyze_functions): Use correct dump file.
12147
12148 2014-05-09 Florian Weimer <fweimer@redhat.com>
12149
12150 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
12151 expand_used_vars.
12152 (stack_protect_return_slot_p): New function.
12153 (expand_used_vars): Call stack_protect_decl_p and
12154 stack_protect_return_slot_p for -fstack-protector-strong.
12155
12156 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
12157 Andrew Haley <aph@redhat.com>
12158 Richard Sandiford <rdsandiford@googlemail.com>
12159
12160 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
12161 pages.
12162
12163 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
12164
12165 PR middle-end/61111
12166 * fold-const.c (fold_binary_loc): Changed width of mask.
12167
12168 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
12169
12170 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
12171 unsigned int initializers for regno_in, regno_out.
12172
12173 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
12174
12175 PR target/61055
12176 * config/avr/avr.md (cc): Add new attribute set_vzn.
12177 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
12178 Set cc insn attribute to set_vzn instead of set_zn for alternatives
12179 with INC, DEC or NEG.
12180 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
12181 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
12182 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
12183
12184 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12185
12186 Revert:
12187 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12188
12189 * wide-int.cc (UTItype): Define.
12190 (UDWtype): Define for appropriate W_TYPE_SIZE.
12191
12192 2014-05-09 Richard Biener <rguenther@suse.de>
12193
12194 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
12195 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
12196 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
12197 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
12198 ssa_propagate): Adjust.
12199
12200 2014-05-08 Jeff Law <law@redhat.com>
12201
12202 PR tree-optimization/61009
12203 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
12204 tri-state rather than a boolean. When a block is too big to
12205 thread through, inform caller via negative return value.
12206 (thread_across_edge): If a block was too big for normal threading,
12207 then it's too big for a joiner too, so remove temporary equivalences
12208 and return immediately.
12209
12210 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12211 Matthias Klose <doko@ubuntu.com>
12212
12213 PR driver/61106
12214 * optc-gen.awk: Fix option handling for -Wunused-parameter.
12215
12216 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
12217
12218 PR target/59952
12219 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
12220
12221 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
12222
12223 PR target/61092
12224 * config/alpha/alpha.c: Include gimple-iterator.h.
12225 (alpha_gimple_fold_builtin): New function. Move
12226 ALPHA_BUILTIN_UMULH folding from ...
12227 (alpha_fold_builtin): ... here.
12228 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
12229
12230 2014-05-08 Wei Mi <wmi@google.com>
12231
12232 PR target/58066
12233 * config/i386/i386.c (ix86_compute_frame_layout): Update
12234 preferred_stack_boundary for call, expanded from tls descriptor.
12235 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
12236 to depend on SP register.
12237 (*tls_local_dynamic_base_32_gnu): Ditto.
12238 (*tls_local_dynamic_32_once): Ditto.
12239 (tls_global_dynamic_64_<mode>): Set
12240 ix86_tls_descriptor_calls_expanded_in_cfun.
12241 (tls_local_dynamic_base_64_<mode>): Ditto.
12242 (tls_global_dynamic_32): Set
12243 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
12244 to depend on SP register.
12245 (tls_local_dynamic_base_32): Ditto.
12246
12247 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12248
12249 * config/arm/arm_neon.h: Update comment.
12250 * config/arm/neon-docgen.ml: Delete.
12251 * config/arm/neon-gen.ml: Delete.
12252 * doc/arm-neon-intrinsics.texi: Update comment.
12253
12254 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12255
12256 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
12257 and v4sf versions.
12258 (vand, vorr, veor, vorn, vbic): Remove.
12259 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
12260 iterator.
12261 (neon_vsub_unspec): Likewise.
12262 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
12263
12264 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12265
12266 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
12267 (vadd_s16): Likewise.
12268 (vadd_s32): Likewise.
12269 (vadd_f32): Likewise.
12270 (vadd_u8): Likewise.
12271 (vadd_u16): Likewise.
12272 (vadd_u32): Likewise.
12273 (vadd_s64): Likewise.
12274 (vadd_u64): Likewise.
12275 (vaddq_s8): Likewise.
12276 (vaddq_s16): Likewise.
12277 (vaddq_s32): Likewise.
12278 (vaddq_s64): Likewise.
12279 (vaddq_f32): Likewise.
12280 (vaddq_u8): Likewise.
12281 (vaddq_u16): Likewise.
12282 (vaddq_u32): Likewise.
12283 (vaddq_u64): Likewise.
12284 (vmul_s8): Likewise.
12285 (vmul_s16): Likewise.
12286 (vmul_s32): Likewise.
12287 (vmul_f32): Likewise.
12288 (vmul_u8): Likewise.
12289 (vmul_u16): Likewise.
12290 (vmul_u32): Likewise.
12291 (vmul_p8): Likewise.
12292 (vmulq_s8): Likewise.
12293 (vmulq_s16): Likewise.
12294 (vmulq_s32): Likewise.
12295 (vmulq_f32): Likewise.
12296 (vmulq_u8): Likewise.
12297 (vmulq_u16): Likewise.
12298 (vmulq_u32): Likewise.
12299 (vsub_s8): Likewise.
12300 (vsub_s16): Likewise.
12301 (vsub_s32): Likewise.
12302 (vsub_f32): Likewise.
12303 (vsub_u8): Likewise.
12304 (vsub_u16): Likewise.
12305 (vsub_u32): Likewise.
12306 (vsub_s64): Likewise.
12307 (vsub_u64): Likewise.
12308 (vsubq_s8): Likewise.
12309 (vsubq_s16): Likewise.
12310 (vsubq_s32): Likewise.
12311 (vsubq_s64): Likewise.
12312 (vsubq_f32): Likewise.
12313 (vsubq_u8): Likewise.
12314 (vsubq_u16): Likewise.
12315 (vsubq_u32): Likewise.
12316 (vsubq_u64): Likewise.
12317 (vand_s8): Likewise.
12318 (vand_s16): Likewise.
12319 (vand_s32): Likewise.
12320 (vand_u8): Likewise.
12321 (vand_u16): Likewise.
12322 (vand_u32): Likewise.
12323 (vand_s64): Likewise.
12324 (vand_u64): Likewise.
12325 (vandq_s8): Likewise.
12326 (vandq_s16): Likewise.
12327 (vandq_s32): Likewise.
12328 (vandq_s64): Likewise.
12329 (vandq_u8): Likewise.
12330 (vandq_u16): Likewise.
12331 (vandq_u32): Likewise.
12332 (vandq_u64): Likewise.
12333 (vorr_s8): Likewise.
12334 (vorr_s16): Likewise.
12335 (vorr_s32): Likewise.
12336 (vorr_u8): Likewise.
12337 (vorr_u16): Likewise.
12338 (vorr_u32): Likewise.
12339 (vorr_s64): Likewise.
12340 (vorr_u64): Likewise.
12341 (vorrq_s8): Likewise.
12342 (vorrq_s16): Likewise.
12343 (vorrq_s32): Likewise.
12344 (vorrq_s64): Likewise.
12345 (vorrq_u8): Likewise.
12346 (vorrq_u16): Likewise.
12347 (vorrq_u32): Likewise.
12348 (vorrq_u64): Likewise.
12349 (veor_s8): Likewise.
12350 (veor_s16): Likewise.
12351 (veor_s32): Likewise.
12352 (veor_u8): Likewise.
12353 (veor_u16): Likewise.
12354 (veor_u32): Likewise.
12355 (veor_s64): Likewise.
12356 (veor_u64): Likewise.
12357 (veorq_s8): Likewise.
12358 (veorq_s16): Likewise.
12359 (veorq_s32): Likewise.
12360 (veorq_s64): Likewise.
12361 (veorq_u8): Likewise.
12362 (veorq_u16): Likewise.
12363 (veorq_u32): Likewise.
12364 (veorq_u64): Likewise.
12365 (vbic_s8): Likewise.
12366 (vbic_s16): Likewise.
12367 (vbic_s32): Likewise.
12368 (vbic_u8): Likewise.
12369 (vbic_u16): Likewise.
12370 (vbic_u32): Likewise.
12371 (vbic_s64): Likewise.
12372 (vbic_u64): Likewise.
12373 (vbicq_s8): Likewise.
12374 (vbicq_s16): Likewise.
12375 (vbicq_s32): Likewise.
12376 (vbicq_s64): Likewise.
12377 (vbicq_u8): Likewise.
12378 (vbicq_u16): Likewise.
12379 (vbicq_u32): Likewise.
12380 (vbicq_u64): Likewise.
12381 (vorn_s8): Likewise.
12382 (vorn_s16): Likewise.
12383 (vorn_s32): Likewise.
12384 (vorn_u8): Likewise.
12385 (vorn_u16): Likewise.
12386 (vorn_u32): Likewise.
12387 (vorn_s64): Likewise.
12388 (vorn_u64): Likewise.
12389 (vornq_s8): Likewise.
12390 (vornq_s16): Likewise.
12391 (vornq_s32): Likewise.
12392 (vornq_s64): Likewise.
12393 (vornq_u8): Likewise.
12394 (vornq_u16): Likewise.
12395 (vornq_u32): Likewise.
12396 (vornq_u64): Likewise.
12397
12398 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12399
12400 * wide-int.cc (UTItype): Define.
12401 (UDWtype): Define for appropriate W_TYPE_SIZE.
12402
12403 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
12404
12405 PR tree-optimization/59100
12406 * tree-ssa-phiopt.c: Include tree-inline.h.
12407 (neutral_element_p, absorbing_element_p): New functions.
12408 (value_replacement): Handle conditional binary operations with a
12409 neutral or absorbing element.
12410
12411 2014-05-08 Richard Biener <rguenther@suse.de>
12412
12413 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
12414 folding the expression.
12415 (valueize_expr): Remove.
12416 (visit_reference_op_load): Do not valueize the result of
12417 vn_get_expr_for.
12418 (simplify_binary_expression): Likewise.
12419 (simplify_unary_expression): Likewise.
12420
12421 2014-05-08 Richard Biener <rguenther@suse.de>
12422
12423 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
12424 looking at TYPE_ARG_TYPES.
12425
12426 2014-05-08 Richard Biener <rguenther@suse.de>
12427
12428 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
12429 pointer propagation special-case.
12430
12431 2014-05-08 Bin Cheng <bin.cheng@arm.com>
12432
12433 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
12434 core part of address expressions.
12435
12436 2014-05-08 Alan Modra <amodra@gmail.com>
12437
12438 PR target/60737
12439 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
12440 loads and stores when -mno-strict-align at any alignment.
12441 (expand_block_clear): Similarly. Also correct calculation of
12442 instruction count.
12443
12444 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12445
12446 PR middle-end/39246
12447 * tree-complex.c (expand_complex_move): Keep line info when expanding
12448 complex move.
12449 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
12450 of complex expression. Use new argument to display correct location
12451 for values coming from phi statement.
12452 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
12453 (warn_uninitialized_phi): Pass location of phi argument to
12454 warn_uninit.
12455 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
12456 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
12457
12458 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12459
12460 * config/rs6000/predicates.md (indexed_address_mem): New.
12461 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
12462 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
12463 fpstore_ux, fpstore_u.
12464 (sign_extend, indexed, update): New.
12465 (cell_micro): Adjust.
12466 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
12467 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
12468 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
12469 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
12470 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
12471 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
12472 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
12473 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
12474 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
12475 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
12476 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
12477 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
12478 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
12479 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
12480 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
12481
12482 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
12483 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
12484 *vsx_extract_<mode>_store): Adjust.
12485 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
12486 is_cracked_insn, insn_must_be_first_in_group,
12487 insn_must_be_last_in_group): Adjust.
12488
12489 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
12490 Adjust.
12491 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
12492 ppc440-fpstore): Adjust.
12493 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
12494 ppc476-fpstore): Adjust.
12495 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
12496 ppc601-fpstore): Adjust.
12497 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
12498 Adjust.
12499 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
12500 Adjust.
12501 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
12502 ppc7450-fpstore): Adjust.
12503 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
12504 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
12505 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
12506 Adjust.
12507 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
12508 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
12509 cell-fpstore, cell-fpstore-update): Adjust.
12510 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
12511 ppce300c3_store, ppce300c3_fpstore): Adjust.
12512 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
12513 e500mc_fpstore): Adjust.
12514 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
12515 e500mc64_store, e500mc64_fpstore): Adjust.
12516 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
12517 e5500_fpstore): Adjust.
12518 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
12519 e6500_fpstore): Adjust.
12520 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
12521 Adjust.
12522 * config/rs6000/power4.md (power4-load, power4-load-ext,
12523 power4-load-ext-update, power4-load-ext-update-indexed,
12524 power4-load-update-indexed, power4-load-update, power4-fpload,
12525 power4-fpload-update, power4-store, power4-store-update,
12526 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
12527 Adjust.
12528 * config/rs6000/power5.md (power5-load, power5-load-ext,
12529 power5-load-ext-update, power5-load-ext-update-indexed,
12530 power5-load-update-indexed, power5-load-update, power5-fpload,
12531 power5-fpload-update, power5-store, power5-store-update,
12532 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
12533 Adjust.
12534 * config/rs6000/power6.md (power6-load, power6-load-ext,
12535 power6-load-update, power6-load-update-indexed,
12536 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
12537 power6-fpload-update, power6-store, power6-store-update,
12538 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
12539 Adjust.
12540 * config/rs6000/power7.md (power7-load, power7-load-ext,
12541 power7-load-update, power7-load-update-indexed,
12542 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
12543 power7-fpload-update, power7-store, power7-store-update,
12544 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
12545 Adjust.
12546 * config/rs6000/power8.md (power8-load, power8-load-update,
12547 power8-load-ext, power8-load-ext-update, power8-fpload,
12548 power8-fpload-update, power8-store, power8-store-update-indexed,
12549 power8-fpstore, power8-fpstore-update): Adjust.
12550 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
12551 Adjust.
12552 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
12553 titan_lsu_store, titan_lsu_fpstore): Adjust.
12554 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
12555
12556 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
12557
12558 PR target/60884
12559 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
12560 unrolled byte insns. Emit address increments after move insns.
12561
12562 2014-05-07 David Malcolm <dmalcolm@redhat.com>
12563
12564 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
12565 const_gimple, rather than a gimple.
12566 (gimple_call_builtin_p): Likewise, for the three variants.
12567
12568 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
12569 (gimple_call_builtin_p): Likewise, for the three variants.
12570
12571 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12572
12573 PR tree-optimization/61095
12574 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
12575
12576 2014-05-07 Richard Biener <rguenther@suse.de>
12577
12578 PR tree-optimization/61034
12579 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
12580 (maybe_skip_until): Use translate to take into account
12581 lattices when trying to do disambiguations.
12582 (get_continuation_for_phi_1): Likewise.
12583 (get_continuation_for_phi): Adjust for added translate arguments.
12584 (walk_non_aliased_vuses): Likewise.
12585 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
12586 (walk_non_aliased_vuses): Likewise.
12587 (call_may_clobber_ref_p_1): Declare.
12588 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
12589 calls. Stop early if we are only supposed to disambiguate.
12590 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12591
12592 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
12593
12594 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
12595 Emit an error when the function has arguments.
12596
12597 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12598
12599 * cfgloop.h (unswitch_loops): Remove.
12600 * doc/passes.texi: Remove references to loop-unswitch.c
12601 * timevar.def (TV_LOOP_UNSWITCH): Remove.
12602
12603 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
12604
12605 * tree-vect-data-refs.c (vect_grouped_load_supported): New
12606 check for loads group of length 3.
12607 (vect_permute_load_chain): New permutations for loads group of
12608 length 3.
12609 * tree-vect-stmts.c (vect_model_load_cost): Change cost
12610 of vec_perm_shuffle for the new permutations.
12611
12612 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
12613
12614 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
12615 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
12616 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
12617 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
12618 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
12619 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
12620 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
12621 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
12622
12623 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
12624
12625 * loop-unswitch.c: Delete.
12626
12627 2014-05-07 Richard Biener <rguenther@suse.de>
12628
12629 * config.gcc: Always set need_64bit_hwint to yes.
12630
12631 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
12632
12633 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
12634 of using optimize_size.
12635
12636 2014-05-06 Mike Stump <mikestump@comcast.net>
12637
12638 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
12639
12640 2014-05-06 Joseph Myers <joseph@codesourcery.com>
12641
12642 * config/i386/sse.md (*mov<mode>_internal)
12643 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
12644 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
12645 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
12646 (*<code><mode>3, *andnot<mode>3<mask_name>)
12647 (<mask_codefor><code><mode>3<mask_name>): Only consider
12648 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
12649
12650 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12651
12652 Revert:
12653 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
12654
12655 * lra-constraints.c (valid_address_p): Move earlier in file.
12656 Add a constraint argument to the address_info version.
12657 (satisfies_memory_constraint_p): New function.
12658 (satisfies_address_constraint_p): Likewise.
12659 (process_alt_operands, curr_insn_transform): Use them.
12660 (process_address): Pass the constraint to valid_address_p when
12661 checking address operands.
12662
12663 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
12664
12665 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
12666 to their respective blocks. Fix inadvertent use of "node".
12667
12668 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
12669
12670 * emit-rtl.c (init_derived_machine_modes): New functionm, split
12671 out from...
12672 (init_emit_once): ...here.
12673 * rtl.h (init_derived_machine_modes): Declare.
12674 * toplev.c (do_compile): Call it even if no_backend.
12675
12676 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
12677 Mike Stump <mikestump@comcast.net>
12678 Richard Sandiford <rdsandiford@googlemail.com>
12679 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12680
12681 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
12682 (rtx_equal_for_memref_p): Update comment.
12683 (adjust_offset_for_component_ref): Use wide-int interfaces.
12684 * builtins.c (get_object_alignment_2): Likewise.
12685 (c_readstr): Likewise.
12686 (target_char_cast): Add comment.
12687 (determine_block_size): Use wide-int interfaces.
12688 (expand_builtin_signbit): Likewise.
12689 (fold_builtin_int_roundingfn): Likewise.
12690 (fold_builtin_bitop): Likewise.
12691 (fold_builtin_bswap): Likewise.
12692 (fold_builtin_logarithm): Use signop.
12693 (fold_builtin_pow): Likewise.
12694 (fold_builtin_memory_op): Use wide-int interfaces.
12695 (fold_builtin_object_size): Likewise.
12696 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
12697 nb_iterations_estimate.
12698 (record_niter_bound): Use wide-int interfaces.
12699 (get_estimated_loop_iterations_int): Likewise.
12700 (get_estimated_loop_iterations): Likewise.
12701 (get_max_loop_iterations): Likewise.
12702 * cfgloop.h: Include wide-int.h.
12703 (struct nb_iter_bound): Change bound to widest_int.
12704 (struct loop): Change nb_iterations_upper_bound and
12705 nb_iterations_estimate to widest_int.
12706 (record_niter_bound): Switch to use widest_int.
12707 (get_estimated_loop_iterations): Likewise.
12708 (get_max_loop_iterations): Likewise.
12709 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
12710 update for wide-int.
12711 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
12712 * combine.c (try_combine): Likewise.
12713 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
12714 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
12715 interfaces.
12716 (aarch64_float_const_representable_p): Likewise.
12717 * config/arc/arc.c: Include wide-int.h.
12718 (arc_can_use_doloop_p): Use wide-int interfaces.
12719 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
12720 (vfp3_const_double_index): Likewise.
12721 * config/avr/avr.c (avr_out_round): Likewise.
12722 (avr_fold_builtin): Likewise.
12723 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
12724 (bfin_can_use_doloop_p): Likewise.
12725 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
12726 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
12727 * config/i386/i386.c: Include wide-int.h.
12728 (ix86_data_alignment): Use wide-int interfaces.
12729 (ix86_local_alignment): Likewise.
12730 (ix86_emit_swsqrtsf): Update real_from_integer.
12731 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
12732 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12733 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
12734 (zero_constant): Likewise.
12735 (input_operand): Likewise.
12736 (splat_input_operand): Likewise.
12737 (non_logical_cint_operand): Change const_double to const_wide_int.
12738 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
12739 (easy_altivec_constant): Remove comment.
12740 (paired_expand_vector_init): Use CONSTANT_P.
12741 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
12742 (rs6000_emit_move): Update checks.
12743 (rs6000_aggregate_candidate): Use wide-int interfaces.
12744 (rs6000_expand_ternop_builtin): Likewise.
12745 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
12746 (rs6000_assemble_integer): Likewise.
12747 (rs6000_hash_constant): Likewise.
12748 (output_toc): Likewise.
12749 (rs6000_rtx_costs): Likewise.
12750 (rs6000_emit_swrsqrt); Update call to real_from_integer.
12751 * config/rs6000/rs6000-c.c: Include wide-int.h.
12752 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
12753 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
12754 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
12755 Handle CONST_WIDE_INT.
12756 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
12757 Use tree_fits_uhwi_p.
12758 * config/sparc/sparc.c: Include wide-int.h.
12759 (sparc_fold_builtin): Use wide-int interfaces.
12760 * config/vax/vax.c: Include wide-int.h.
12761 (vax_float_literal): Use real_from_integer.
12762 * coretypes.h (struct hwivec_def): New.
12763 (hwivec): New.
12764 (const_hwivec): New.
12765 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
12766 (equiv_constant): Handle CONST_WIDE_INT.
12767 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
12768 (cselib_hash_rtx): Handle CONST_WIDE_INT.
12769 * dbxout.c (stabstr_U): Use wide-int interfaces.
12770 (dbxout_type): Update to use cst_fits_shwi_p.
12771 * defaults.h (LOG2_BITS_PER_UNIT): Define.
12772 (TARGET_SUPPORTS_WIDE_INT): Add default.
12773 * dfp.c: Include wide-int.h.
12774 (decimal_real_to_integer2): Use wide-int interfaces and rename to
12775 decimal_real_to_integer.
12776 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
12777 decimal_real_to_integer.
12778 * doc/generic.texi (Constant expressions): Update for wide_int.
12779 * doc/rtl.texi (const_double): Likewise.
12780 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
12781 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
12782 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
12783 (REAL_VALUE_FROM_INT): Remove.
12784 (TARGET_SUPPORTS_WIDE_INT): New.
12785 * doc/tm.texi: Regenerate.
12786 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
12787 * double-int.h: Include wide-int.h.
12788 (struct wi::int_traits): New.
12789 * dwarf2out.c (get_full_len): New.
12790 (dw_val_equal_p): Add case dw_val_class_wide_int.
12791 (size_of_loc_descr): Likewise.
12792 (output_loc_operands): Likewise.
12793 (insert_double): Remove.
12794 (insert_wide_int): New.
12795 (add_AT_wide): New.
12796 (print_die): Add case dw_val_class_wide_int.
12797 (attr_checksum): Likewise.
12798 (attr_checksum_ordered): Likewise.
12799 (same_dw_val_p): Likewise.
12800 (size_of_die): Likewise.
12801 (value_format): Likewise.
12802 (output_die): Likewise.
12803 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
12804 Use wide-int.
12805 (clz_loc_descriptor): Use wide-int interfaces.
12806 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
12807 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
12808 (round_up_to_align): Use wide-int interfaces.
12809 (field_byte_offset): Likewise.
12810 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
12811 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
12812 CONST_DOUBLE handling. Use wide-int interfaces.
12813 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
12814 (gen_enumeration_type_die): Use add_AT_wide.
12815 (hash_loc_operands): Add case dw_val_class_wide_int.
12816 (compare_loc_operands): Likewise.
12817 * dwarf2out.h: Include wide-int.h.
12818 (wide_int_ptr): New.
12819 (enum dw_val_class): Add dw_val_class_wide_int.
12820 (struct dw_val_struct): Add val_wide.
12821 * emit-rtl.c (const_wide_int_htab): New.
12822 (const_wide_int_htab_hash): New.
12823 (const_wide_int_htab_eq): New.
12824 (lookup_const_wide_int): New.
12825 (const_double_htab_hash): Use wide-int interfaces.
12826 (const_double_htab_eq): Likewise.
12827 (rtx_to_double_int): Conditionally compile for wide-int.
12828 (immed_double_int_const): Rename to immed_wide_int_const and
12829 update for wide-int.
12830 (immed_double_const): Conditionally compile for wide-int.
12831 (init_emit_once): Use wide-int interfaces.
12832 * explow.c (plus_constant): Likewise.
12833 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
12834 (lshift_value): Use wide-int interfaces.
12835 (expand_mult): Likewise.
12836 (choose_multiplier): Likewise.
12837 (expand_smod_pow2): Likewise.
12838 (make_tree): Likewise.
12839 * expr.c (convert_modes): Consolidate handling of constants.
12840 Use wide-int interfaces.
12841 (emit_group_load_1): Add note.
12842 (store_expr): Update comment.
12843 (get_inner_reference): Use wide-int interfaces.
12844 (expand_constructor): Update comment.
12845 (expand_expr_real_2): Use wide-int interfaces.
12846 (expand_expr_real_1): Likewise.
12847 (reduce_to_bit_field_precision): Likewise.
12848 (const_vector_from_tree): Likewise.
12849 * final.c: Include wide-int-print.h.
12850 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
12851 * fixed-value.c: Include wide-int.h.
12852 (fixed_from_string): Use wide-int interfaces.
12853 (fixed_to_decimal): Likewise.
12854 (fixed_convert_from_real): Likewise.
12855 (real_convert_from_fixed): Likewise.
12856 * fold-const.h (mem_ref_offset): Return an offset_int.
12857 (div_if_zero_remainder): Remove code parameter.
12858 * fold-const.c (div_if_zero_remainder): Remove code parameter.
12859 Use wide-int interfaces.
12860 (may_negate_without_overflow_p): Use wide-int interfaces.
12861 (negate_expr_p): Likewise.
12862 (fold_negate_expr): Likewise.
12863 (int_const_binop_1): Likewise.
12864 (const_binop): Likewise.
12865 (fold_convert_const_int_from_int): Likewise.
12866 (fold_convert_const_int_from_real): Likewise.
12867 (fold_convert_const_int_from_fixed): Likewise.
12868 (fold_convert_const_fixed_from_int): Likewise.
12869 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
12870 (sign_bit_p): Use wide-int interfaces.
12871 (make_range_step): Likewise.
12872 (build_range_check): Likewise. Pass an integer of the correct type
12873 instead of using integer_one_node.
12874 (range_predecessor): Pass an integer of the correct type instead
12875 of using integer_one_node.
12876 (range_successor): Likewise.
12877 (merge_ranges): Likewise.
12878 (unextend): Use wide-int interfaces.
12879 (extract_muldiv_1): Likewise.
12880 (fold_div_compare): Likewise.
12881 (fold_single_bit_test): Likewise.
12882 (fold_sign_changed_comparison): Likewise.
12883 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
12884 (fold_plusminus_mult_expr): Use wide-int interfaces.
12885 (native_encode_int): Likewise.
12886 (native_interpret_int): Likewise.
12887 (fold_unary_loc): Likewise.
12888 (pointer_may_wrap_p): Likewise.
12889 (size_low_cst): Likewise.
12890 (mask_with_tz): Likewise.
12891 (fold_binary_loc): Likewise.
12892 (fold_ternary_loc): Likewise.
12893 (multiple_of_p): Likewise.
12894 (tree_call_nonnegative_warnv_p): Update calls to
12895 tree_int_cst_min_precision and real_from_integer.
12896 (fold_negate_const): Use wide-int interfaces.
12897 (fold_abs_const): Likewise.
12898 (fold_relational_const): Use tree_int_cst_lt.
12899 (round_up_loc): Use wide-int interfaces.
12900 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
12901 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
12902 * gengtype.c: Remove include of double-int.h.
12903 (do_typedef): Use wide-int interfaces.
12904 (open_base_files): Add wide-int.h.
12905 (main): Add offset_int and widest_int typedefs.
12906 * gengtype-lex.l: Handle "^".
12907 (CXX_KEYWORD): Add "static".
12908 * gengtype-parse.c (require3): New.
12909 (require_template_declaration): Handle constant template arguments
12910 and nested templates.
12911 * gengtype-state.c: Don't include "double-int.h".
12912 * genpreds.c (write_one_predicate_function): Update comment.
12913 (write_tm_constrs_h): Add check for hval and lval use in
12914 CONST_WIDE_INT.
12915 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
12916 (add_to_sequence): Likewise.
12917 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
12918 and const_double_operand.
12919 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
12920 interfaces.
12921 * gimple-fold.c (get_base_constructor): Likewise.
12922 (fold_array_ctor_reference): Likewise.
12923 (fold_nonarray_ctor_reference): Likewise.
12924 (fold_const_aggregate_ref_1): Likewise.
12925 (gimple_val_nonnegative_real_p): Likewise.
12926 (gimple_fold_indirect_ref): Likewise.
12927 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
12928 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
12929 (struct slsr_cand_d): Change index to be widest_int.
12930 (struct incr_info_d): Change incr to be widest_int.
12931 (alloc_cand_and_find_basis): Use wide-int interfaces.
12932 (slsr_process_phi): Likewise.
12933 (backtrace_base_for_ref): Likewise. Return a widest_int.
12934 (restructure_reference): Take a widest_int instead of a double_int.
12935 (slsr_process_ref): Use wide-int interfaces.
12936 (create_mul_ssa_cand): Likewise.
12937 (create_mul_imm_cand): Likewise.
12938 (create_add_ssa_cand): Likewise.
12939 (create_add_imm_cand): Take a widest_int instead of a double_int.
12940 (slsr_process_add): Use wide-int interfaces.
12941 (slsr_process_cast): Likewise.
12942 (slsr_process_copy): Likewise.
12943 (dump_candidate): Likewise.
12944 (dump_incr_vec): Likewise.
12945 (replace_ref): Likewise.
12946 (cand_increment): Likewise. Return a widest_int.
12947 (cand_abs_increment): Likewise.
12948 (replace_mult_candidate): Take a widest_int instead of a double_int.
12949 (replace_unconditional_candidate): Use wide-int interfaces.
12950 (incr_vec_index): Take a widest_int instead of a double_int.
12951 (create_add_on_incoming_edge): Likewise.
12952 (create_phi_basis): Use wide-int interfaces.
12953 (replace_conditional_candidate): Likewise.
12954 (record_increment): Take a widest_int instead of a double_int.
12955 (record_phi_increments): Use wide-int interfaces.
12956 (phi_incr_cost): Take a widest_int instead of a double_int.
12957 (lowest_cost_path): Likewise.
12958 (total_savings): Likewise.
12959 (analyze_increments): Use wide-int interfaces.
12960 (ncd_with_phi): Take a widest_int instead of a double_int.
12961 (ncd_of_cand_and_phis): Likewise.
12962 (nearest_common_dominator_for_cands): Likewise.
12963 (insert_initializers): Use wide-int interfaces.
12964 (all_phi_incrs_profitable): Likewise.
12965 (replace_one_candidate): Likewise.
12966 (replace_profitable_candidates): Likewise.
12967 * godump.c: Include wide-int-print.h.
12968 (go_output_typedef): Use wide-int interfaces.
12969 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
12970 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
12971 (build_loop_iteration_domains): Likewise.
12972 * hooks.h: Include wide-int.h rather than double-int.h.
12973 (hook_bool_dint_dint_uint_bool_true): Delete.
12974 (hook_bool_wint_wint_uint_bool_true): Declare.
12975 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
12976 (hook_bool_wint_wint_uint_bool_true): New.
12977 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
12978 interfaces.
12979 (ubsan_expand_si_overflow_mul_check): Likewise.
12980 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
12981 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
12982 (get_ancestor_addr_info): Likewise.
12983 (ipa_modify_call_arguments): Likewise.
12984 * loop-doloop.c (doloop_modify): Likewise.
12985 (doloop_optimize): Likewise.
12986 * loop-iv.c (iv_number_of_iterations): Likewise.
12987 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
12988 (unroll_loop_constant_iterations): Likewise.
12989 (decide_unroll_runtime_iterations): Likewise.
12990 (unroll_loop_runtime_iterations): Likewise.
12991 (decide_peel_simple): Likewise.
12992 (decide_unroll_stupid): Likewise.
12993 * lto-streamer-in.c (streamer_read_wi): Add.
12994 (input_cfg): Use wide-int interfaces.
12995 (lto_input_tree_1): Likewise.
12996 * lto-streamer-out.c (streamer_write_wi): Add.
12997 (hash_tree): Use wide-int interfaces.
12998 (output_cfg): Likewise.
12999 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
13000 (GTFILES): Add wide-int.h and signop.h.
13001 (TAGS): Look for .cc files too.
13002 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
13003 * optabs.c (expand_subword_shift): Likewise.
13004 (expand_doubleword_shift): Likewise.
13005 (expand_absneg_bit): Likewise.
13006 (expand_copysign_absneg): Likewise.
13007 (expand_copysign_bit): Likewise.
13008 * postreload.c (reload_cse_simplify_set): Likewise.
13009 * predict.c (predict_iv_comparison): Likewise.
13010 * pretty-print.h: Include wide-int-print.h.
13011 (pp_wide_int) New.
13012 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
13013 * print-tree.c: Include wide-int-print.h.
13014 (print_node_brief): Use wide-int interfaces.
13015 (print_node): Likewise.
13016 * read-rtl.c (validate_const_wide_int): New.
13017 (read_rtx_code): Add CONST_WIDE_INT case.
13018 * real.c: Include wide-int.h.
13019 (real_to_integer2): Delete.
13020 (real_to_integer): New function, returning a wide_int.
13021 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
13022 (ten_to_ptwo): Update call to real_from_integer.
13023 (real_digit): Likewise.
13024 * real.h: Include signop.h, wide-int.h and insn-modes.h.
13025 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
13026 (REAL_VALUE_TO_INT): Delete.
13027 (real_to_integer): Declare a wide-int form.
13028 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
13029 * recog.c (const_int_operand): Improve comment.
13030 (const_scalar_int_operand): New.
13031 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
13032 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
13033 (split_double): Likewise.
13034 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
13035 (rtx_size): Likewise.
13036 (rtx_alloc_stat_v): New.
13037 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
13038 (cwi_output_hex): New.
13039 (iterative_hash_rtx): Handle CONST_WIDE_INT.
13040 (cwi_check_failed_bounds): New.
13041 * rtl.def (CONST_WIDE_INT): New.
13042 * rtl.h: Include <utility> and wide-int.h.
13043 (struct hwivec_def): New.
13044 (CWI_GET_NUM_ELEM): New.
13045 (CWI_PUT_NUM_ELEM): New.
13046 (struct rtx_def): Add num_elem and hwiv.
13047 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
13048 (CASE_CONST_UNIQUE): Likewise.
13049 (CASE_CONST_ANY): Likewise.
13050 (CONST_SCALAR_INT_P): Likewise.
13051 (CONST_WIDE_INT_P): New.
13052 (CWI_ELT): New.
13053 (HWIVEC_CHECK): New.
13054 (cwi_check_failed_bounds): New.
13055 (CWI_ELT): New.
13056 (HWIVEC_CHECK): New.
13057 (CONST_WIDE_INT_VEC) New.
13058 (CONST_WIDE_INT_NUNITS) New.
13059 (CONST_WIDE_INT_ELT) New.
13060 (rtx_mode_t): New type.
13061 (wi::int_traits <rtx_mode_t>): New.
13062 (wi::shwi): New.
13063 (wi::min_value): New.
13064 (wi::max_value): New.
13065 (rtx_alloc_v) New.
13066 (const_wide_int_alloc): New.
13067 (immed_wide_int_const): New.
13068 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
13069 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
13070 * signop.h: New file.
13071 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
13072 (simplify_const_unary_operation): Use wide-int interfaces.
13073 (simplify_binary_operation_1): Likewise.
13074 (simplify_const_binary_operation): Likewise.
13075 (simplify_const_relational_operation): Likewise.
13076 (simplify_immed_subreg): Likewise.
13077 * stmt.c (expand_case): Likewise.
13078 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
13079 signop rather than a bool.
13080 * stor-layout.c (layout_type): Use wide-int interfaces.
13081 (initialize_sizetypes): Update calls to
13082 set_min_and_max_values_for_integral_type.
13083 (set_min_and_max_values_for_integral_type): Take a signop rather
13084 than a bool. Use wide-int interfaces.
13085 (fixup_signed_type): Update accordingly. Remove
13086 HOST_BITS_PER_DOUBLE_INT limit.
13087 (fixup_unsigned_type): Likewise.
13088 * system.h (STATIC_CONSTANT_P): New.
13089 (STATIC_ASSERT): New.
13090 * target.def (can_use_doloop_p): Take widest_ints rather than
13091 double_ints.
13092 * target.h: Include wide-int.h rather than double-int.h.
13093 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
13094 than double_ints.
13095 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
13096 rather than INT_CST_LT_UNSIGNED.
13097 (can_use_doloop_if_innermost): Take widest_ints rather than
13098 double_ints.
13099 * tree-affine.c: Include wide-int-print.h.
13100 (double_int_ext_for_comb): Delete.
13101 (wide_int_ext_for_comb): New.
13102 (aff_combination_zero): Use wide-int interfaces.
13103 (aff_combination_const): Take a widest_int instead of a double_int.
13104 (aff_combination_elt): Use wide-int interfaces.
13105 (aff_combination_scale): Take a widest_int instead of a double_int.
13106 (aff_combination_add_elt): Likewise.
13107 (aff_combination_add_cst): Likewise.
13108 (aff_combination_add): Use wide-int interfaces.
13109 (aff_combination_convert): Likewise.
13110 (tree_to_aff_combination): Likewise.
13111 (add_elt_to_tree): Take a widest_int instead of a double_int.
13112 (aff_combination_to_tree): Use wide-int interfaces.
13113 (aff_combination_remove_elt): Likewise.
13114 (aff_combination_add_product): Take a widest_int instead of
13115 a double_int.
13116 (aff_combination_mult): Use wide-int interfaces.
13117 (aff_combination_expand): Likewise.
13118 (double_int_constant_multiple_p): Delete.
13119 (wide_int_constant_multiple_p): New.
13120 (aff_combination_constant_multiple_p): Take a widest_int pointer
13121 instead of a double_int pointer.
13122 (print_aff): Use wide-int interfaces.
13123 (get_inner_reference_aff): Take a widest_int pointer
13124 instead of a double_int pointer.
13125 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
13126 * tree-affine.h: Include wide-int.h.
13127 (struct aff_comb_elt): Change type of coef to widest_int.
13128 (struct affine_tree_combination): Change type of offset to widest_int.
13129 (double_int_ext_for_comb): Delete.
13130 (wide_int_ext_for_comb): New.
13131 (aff_combination_const): Use widest_int instead of double_int.
13132 (aff_combination_scale): Likewise.
13133 (aff_combination_add_elt): Likewise.
13134 (aff_combination_constant_multiple_p): Likewise.
13135 (get_inner_reference_aff): Likewise.
13136 (aff_comb_cannot_overlap_p): Likewise.
13137 (aff_combination_zero_p): Use wide-int interfaces.
13138 * tree.c: Include tree.h.
13139 (init_ttree): Use make_int_cst.
13140 (tree_code_size): Removed code for INTEGER_CST case.
13141 (tree_size): Add INTEGER_CST case.
13142 (make_node_stat): Update comment.
13143 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
13144 (build_int_cst_type): Use wide-int interfaces.
13145 (double_int_to_tree): Likewise.
13146 (double_int_fits_to_tree_p): Delete.
13147 (force_fit_type_double): Delete.
13148 (force_fit_type): New.
13149 (int_cst_hash_hash): Use wide-int interfaces.
13150 (int_cst_hash_eq): Likewise.
13151 (build_int_cst_wide): Delete.
13152 (wide_int_to_tree): New.
13153 (cache_integer_cst): Use wide-int interfaces.
13154 (build_low_bits_mask): Likewise.
13155 (cst_and_fits_in_hwi): Likewise.
13156 (real_value_from_int_cst): Likewise.
13157 (make_int_cst_stat): New.
13158 (integer_zerop): Use wide_int interfaces.
13159 (integer_onep): Likewise.
13160 (integer_all_onesp): Likewise.
13161 (integer_pow2p): Likewise.
13162 (integer_nonzerop): Likewise.
13163 (tree_log2): Likewise.
13164 (tree_floor_log2): Likewise.
13165 (tree_ctz): Likewise.
13166 (int_size_in_bytes): Likewise.
13167 (mem_ref_offset): Return an offset_int rather than a double_int.
13168 (build_type_attribute_qual_variant): Use wide_int interfaces.
13169 (type_hash_eq): Likewise
13170 (tree_int_cst_equal): Likewise.
13171 (tree_int_cst_lt): Delete.
13172 (tree_int_cst_compare): Likewise.
13173 (tree_fits_shwi_p): Use wide_int interfaces.
13174 (tree_fits_uhwi_p): Likewise.
13175 (tree_int_cst_sign_bit): Likewise.
13176 (tree_int_cst_sgn): Likewise.
13177 (tree_int_cst_min_precision): Take a signop rather than a bool.
13178 (simple_cst_equal): Use wide_int interfaces.
13179 (compare_tree_int): Likewise.
13180 (iterative_hash_expr): Likewise.
13181 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
13182 INT_CST_LT.
13183 (get_type_static_bounds): Use wide_int interfaces.
13184 (tree_int_cst_elt_check_failed): New.
13185 (build_common_tree_nodes): Reordered to set prec before filling in
13186 value.
13187 (int_cst_value): Check cst_and_fits_in_hwi.
13188 (widest_int_cst_value): Use wide_int interfaces.
13189 (upper_bound_in_type): Likewise.
13190 (lower_bound_in_type): Likewise.
13191 (num_ending_zeros): Likewise.
13192 (drop_tree_overflow): Likewise.
13193 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
13194 (gen_conditions_for_pow_cst_base): Likewise.
13195 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
13196 (group_case_labels_stmt): Use wide-int interfaces.
13197 (verify_gimple_assign_binary): Likewise.
13198 (print_loop): Likewise.
13199 * tree-chrec.c (tree_fold_binomial): Likewise.
13200 * tree-core.h (struct tree_base): Add int_length.
13201 (struct tree_int_cst): Change rep of value.
13202 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
13203 (dr_may_alias_p): Likewise.
13204 (max_stmt_executions_tree): Likewise.
13205 * tree.def (INTEGER_CST): Update comment.
13206 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
13207 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
13208 * tree-dump.c: Include wide-int.h and wide-int-print.h.
13209 (dequeue_and_dump): Use wide-int interfaces.
13210 * tree.h: Include wide-int.h.
13211 (NULL_TREE): Moved to earlier loc in file.
13212 (TREE_INT_CST_ELT_CHECK): New.
13213 (tree_int_cst_elt_check_failed): New.
13214 (TYPE_SIGN): New.
13215 (TREE_INT_CST): Delete.
13216 (TREE_INT_CST_LOW): Use wide-int interfaces.
13217 (TREE_INT_CST_HIGH): Delete.
13218 (TREE_INT_CST_NUNITS): New.
13219 (TREE_INT_CST_EXT_NUNITS): Likewise.
13220 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
13221 (TREE_INT_CST_ELT): Likewise.
13222 (INT_CST_LT): Delete.
13223 (tree_int_cst_elt_check): New (two forms).
13224 (type_code_size): Update comment.
13225 (make_int_cst_stat, make_int_cst): New.
13226 (tree_to_double_int): Delete.
13227 (double_int_fits_to_tree_p): Delete.
13228 (force_fit_type_double): Delete.
13229 (build_int_cstu): Replace with out-of-line function.
13230 (build_int_cst_wide): Delete.
13231 (tree_int_cst_lt): Define inline.
13232 (tree_int_cst_le): New.
13233 (tree_int_cst_compare): Define inline.
13234 (tree_int_cst_min_precision): Take a signop rather than a bool.
13235 (wi::int_traits <const_tree>): New.
13236 (wi::int_traits <tree>): New.
13237 (wi::extended_tree): New.
13238 (wi::int_traits <wi::extended_tree>): New.
13239 (wi::to_widest): New.
13240 (wi::to_offset): New.
13241 (wi::fits_to_tree_p): New.
13242 (wi::min_value): New.
13243 (wi::max_value): New.
13244 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
13245 (copy_tree_body_r): Likewise.
13246 * tree-object-size.c (compute_object_offset): Likewise.
13247 (addr_object_size): Likewise.
13248 * tree-predcom.c: Include wide-int-print.h.
13249 (struct dref_d): Change type of offset to widest_int.
13250 (dump_dref): Call wide-int printer.
13251 (aff_combination_dr_offset): Use wide-int interfaces.
13252 (determine_offset): Take a widest_int pointer rather than a
13253 double_int pointer.
13254 (split_data_refs_to_components): Use wide-int interfaces.
13255 (suitable_component_p): Likewise.
13256 (order_drefs): Likewise.
13257 (add_ref_to_chain): Likewise.
13258 (valid_initializer_p): Likewise.
13259 (determine_roots_comp): Likewise.
13260 * tree-pretty-print.c: Include wide-int-print.h.
13261 (dump_generic_node): Use wide-int interfaces.
13262 * tree-sra.c (sra_ipa_modify_expr): Likewise.
13263 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
13264 (move_fixed_address_to_symbol): Likewise.
13265 (move_hint_to_base): Likewise.
13266 (move_pointer_to_base): Likewise.
13267 (move_variant_to_index): Likewise.
13268 (most_expensive_mult_to_index): Likewise.
13269 (addr_to_parts): Likewise.
13270 (copy_ref_info): Likewise.
13271 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
13272 (indirect_refs_may_alias_p): Likewise.
13273 (stmt_kills_ref_p_1): Likewise.
13274 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
13275 * tree-ssa-ccp.c: Update comment at top of file. Include
13276 wide-int-print.h.
13277 (struct prop_value_d): Change type of mask to widest_int.
13278 (extend_mask): New function.
13279 (dump_lattice_value): Use wide-int interfaces.
13280 (get_default_value): Likewise.
13281 (set_constant_value): Likewise.
13282 (set_value_varying): Likewise.
13283 (valid_lattice_transition): Likewise.
13284 (set_lattice_value): Likewise.
13285 (value_to_double_int): Delete.
13286 (value_to_wide_int): New.
13287 (get_value_from_alignment): Use wide-int interfaces.
13288 (get_value_for_expr): Likewise.
13289 (do_dbg_cnt): Likewise.
13290 (ccp_finalize): Likewise.
13291 (ccp_lattice_meet): Likewise.
13292 (bit_value_unop_1): Use widest_ints rather than double_ints.
13293 (bit_value_binop_1): Likewise.
13294 (bit_value_unop): Use wide-int interfaces.
13295 (bit_value_binop): Likewise.
13296 (bit_value_assume_aligned): Likewise.
13297 (evaluate_stmt): Likewise.
13298 (ccp_fold_stmt): Likewise.
13299 (visit_cond_stmt): Likewise.
13300 (ccp_visit_stmt): Likewise.
13301 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13302 (constant_pointer_difference): Likewise.
13303 (associate_pointerplus): Likewise.
13304 (combine_conversions): Likewise.
13305 * tree-ssa-loop.h: Include wide-int.h.
13306 (struct tree_niter_desc): Change type of max to widest_int.
13307 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
13308 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
13309 (remove_redundant_iv_tests): Likewise.
13310 (canonicalize_loop_induction_variables): Likewise.
13311 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
13312 (constant_multiple_of): Take a widest_int pointer instead of
13313 a double_int pointer.
13314 (get_computation_aff): Use wide-int interfaces.
13315 (ptr_difference_cost): Likewise.
13316 (difference_cost): Likewise.
13317 (get_loop_invariant_expr_id): Likewise.
13318 (get_computation_cost_at): Likewise.
13319 (iv_elimination_compare_lt): Likewise.
13320 (may_eliminate_iv): Likewise.
13321 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
13322 instead of double_int.
13323 (max_loop_iterations): Likewise.
13324 (max_stmt_executions): Likewise.
13325 (estimated_stmt_executions): Likewise.
13326 * tree-ssa-loop-niter.c: Include wide-int-print.h.
13327 (split_to_var_and_offset): Use wide-int interfaces.
13328 (determine_value_range): Likewise.
13329 (bound_difference_of_offsetted_base): Likewise.
13330 (bounds_add): Take a widest_int instead of a double_int.
13331 (number_of_iterations_ne_max): Use wide-int interfaces.
13332 (number_of_iterations_ne): Likewise.
13333 (number_of_iterations_lt_to_ne): Likewise.
13334 (assert_loop_rolls_lt): Likewise.
13335 (number_of_iterations_lt): Likewise.
13336 (number_of_iterations_le): Likewise.
13337 (number_of_iterations_cond): Likewise.
13338 (number_of_iterations_exit): Likewise.
13339 (finite_loop_p): Likewise.
13340 (derive_constant_upper_bound_assign): Likewise.
13341 (derive_constant_upper_bound): Return a widest_int.
13342 (derive_constant_upper_bound_ops): Likewise.
13343 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
13344 (record_estimate): Take a widest_int rather than a double_int.
13345 (record_nonwrapping_iv): Use wide-int interfaces.
13346 (double_int_cmp): Delete.
13347 (wide_int_cmp): New.
13348 (bound_index): Take a widest_int rather than a double_int.
13349 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
13350 (maybe_lower_iteration_bound): Likewise.
13351 (estimate_numbers_of_iterations_loop): Likewise.
13352 (estimated_loop_iterations): Take a widest_int pointer than than
13353 a double_int pointer.
13354 (estimated_loop_iterations_int): Use wide-int interfaces.
13355 (max_loop_iterations): Take a widest_int pointer than than
13356 a double_int pointer.
13357 (max_loop_iterations_int): Use wide-int interfaces.
13358 (max_stmt_executions): Take a widest_int pointer than than
13359 a double_int pointer.
13360 (estimated_stmt_executions): Likewise.
13361 (n_of_executions_at_most): Use wide-int interfaces.
13362 (scev_probably_wraps_p): Likewise.
13363 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
13364 to real_to_integer.
13365 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
13366 interfaces.
13367 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
13368 double_ints. Adjust for trailing_wide_ints <3> representation.
13369 (set_nonzero_bits): Likewise.
13370 (get_range_info): Return wide_ints rather than double_ints.
13371 Adjust for trailing_wide_ints <3> representation.
13372 (get_nonzero_bits): Likewise.
13373 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
13374 representation.
13375 * tree-ssanames.h (struct range_info_def): Replace min, max and
13376 nonzero_bits with a trailing_wide_ints <3>.
13377 (set_range_info): Use wide_int_refs rather than double_ints.
13378 (set_nonzero_bits): Likewise.
13379 (get_range_info): Return wide_ints rather than double_ints.
13380 (get_nonzero_bits): Likewise.
13381 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
13382 * tree-ssa-pre.c (phi_translate_1): Likewise.
13383 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
13384 (acceptable_pow_call): Likewise.
13385 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
13386 interfaces.
13387 (vn_reference_fold_indirect): Likewise.
13388 (vn_reference_maybe_forwprop_address): Likewise.
13389 (valueize_refs_1): Likewise.
13390 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
13391 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
13392 tree_int_cst_lt and tree_int_cst_le.
13393 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
13394 interfaces.
13395 (streamer_alloc_tree): Likewise.
13396 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
13397 (streamer_write_tree_header): Likewise.
13398 (streamer_write_integer_cst): Likewise.
13399 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13400 (build_constructors): Likewise.
13401 (array_value_type): Likewise.
13402 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
13403 (vect_check_gather): Likewise.
13404 * tree-vect-generic.c (build_replicated_const): Likewise.
13405 (expand_vector_divmod): Likewise.
13406 * tree-vect-loop.c (vect_transform_loop): Likewise.
13407 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
13408 (vect_do_peeling_for_alignment): Likewise.
13409 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
13410 * tree-vrp.c: Include wide-int.h.
13411 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
13412 (extract_range_from_assert): Use wide-int interfaces.
13413 (vrp_int_const_binop): Likewise.
13414 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
13415 double_int pointers.
13416 (ranges_from_anti_range): Use wide-int interfaces.
13417 (quad_int_cmp): Delete.
13418 (quad_int_pair_sort): Likewise.
13419 (extract_range_from_binary_expr_1): Use wide-int interfaces.
13420 (extract_range_from_unary_expr_1): Likewise.
13421 (adjust_range_with_scev): Likewise.
13422 (masked_increment): Take and return wide_ints rather than double_ints.
13423 (register_edge_assert_for_2): Use wide-int interfaces.
13424 (check_array_ref): Likewise.
13425 (search_for_addr_array): Likewise.
13426 (maybe_set_nonzero_bits): Likewise.
13427 (union_ranges): Pass an integer of the correct type instead of
13428 using integer_one_node.
13429 (intersect_ranges): Likewise.
13430 (simplify_truth_ops_using_ranges): Likewise.
13431 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
13432 (range_fits_type_p): Likewise.
13433 (simplify_cond_using_ranges): Likewise. Take a signop rather than
13434 a bool.
13435 (simplify_conversion_using_ranges): Use wide-int interfaces.
13436 (simplify_float_conversion_using_ranges): Likewise.
13437 (vrp_finalize): Likewise.
13438 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
13439 (gimple_stringops_transform): Likewise.
13440 * varasm.c (decode_addr_const): Likewise.
13441 (const_hash_1): Likewise.
13442 (const_rtx_hash_1): Likewise
13443 (output_constant): Likewise.
13444 (array_size_for_constructor): Likewise.
13445 (output_constructor_regular_field): Likewise.
13446 (output_constructor_bitfield): Likewise.
13447 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
13448 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
13449 GENERATOR_FILEs.
13450 * gencheck.c: Define BITS_PER_UNIT.
13451 * wide-int.cc: New.
13452 * wide-int.h: New.
13453 * wide-int-print.cc: New.
13454 * wide-int-print.h: New.
13455
13456 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13457
13458 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
13459
13460 2014-05-06 Richard Biener <rguenther@suse.de>
13461
13462 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
13463 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
13464 (TODO_verify_all): Adjust.
13465 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
13466 TODO_verify_stmts and TODO_verify_rtl_sharing.
13467 * bb-reorder.c: Likewise.
13468 * cfgexpand.c: Likewise.
13469 * cprop.c: Likewise.
13470 * cse.c: Likewise.
13471 * function.c: Likewise.
13472 * fwprop.c: Likewise.
13473 * gcse.c: Likewise.
13474 * gimple-ssa-isolate-paths.c: Likewise.
13475 * gimple-ssa-strength-reduction.c: Likewise.
13476 * ipa-split.c: Likewise.
13477 * loop-init.c: Likewise.
13478 * loop-unroll.c: Likewise.
13479 * lower-subreg.c: Likewise.
13480 * modulo-sched.c: Likewise.
13481 * postreload-gcse.c: Likewise.
13482 * predict.c: Likewise.
13483 * recog.c: Likewise.
13484 * sched-rgn.c: Likewise.
13485 * store-motion.c: Likewise.
13486 * tracer.c: Likewise.
13487 * trans-mem.c: Likewise.
13488 * tree-call-cdce.c: Likewise.
13489 * tree-cfg.c: Likewise.
13490 * tree-cfgcleanup.c: Likewise.
13491 * tree-complex.c: Likewise.
13492 * tree-eh.c: Likewise.
13493 * tree-emutls.c: Likewise.
13494 * tree-if-conv.c: Likewise.
13495 * tree-into-ssa.c: Likewise.
13496 * tree-loop-distribution.c: Likewise.
13497 * tree-object-size.c: Likewise.
13498 * tree-parloops.c: Likewise.
13499 * tree-pass.h: Likewise.
13500 * tree-sra.c: Likewise.
13501 * tree-ssa-ccp.c: Likewise.
13502 * tree-ssa-copy.c: Likewise.
13503 * tree-ssa-copyrename.c: Likewise.
13504 * tree-ssa-dce.c: Likewise.
13505 * tree-ssa-dom.c: Likewise.
13506 * tree-ssa-dse.c: Likewise.
13507 * tree-ssa-forwprop.c: Likewise.
13508 * tree-ssa-ifcombine.c: Likewise.
13509 * tree-ssa-loop-ch.c: Likewise.
13510 * tree-ssa-loop-ivcanon.c: Likewise.
13511 * tree-ssa-loop.c: Likewise.
13512 * tree-ssa-math-opts.c: Likewise.
13513 * tree-ssa-phiopt.c: Likewise.
13514 * tree-ssa-phiprop.c: Likewise.
13515 * tree-ssa-pre.c: Likewise.
13516 * tree-ssa-reassoc.c: Likewise.
13517 * tree-ssa-sink.c: Likewise.
13518 * tree-ssa-strlen.c: Likewise.
13519 * tree-ssa-tail-merge.c: Likewise.
13520 * tree-ssa-uncprop.c: Likewise.
13521 * tree-switch-conversion.c: Likewise.
13522 * tree-tailcall.c: Likewise.
13523 * tree-vect-generic.c: Likewise.
13524 * tree-vectorizer.c: Likewise.
13525 * tree-vrp.c: Likewise.
13526 * tsan.c: Likewise.
13527 * var-tracking.c: Likewise.
13528 * bt-load.c: Likewise.
13529 * cfgcleanup.c: Likewise.
13530 * combine-stack-adj.c: Likewise.
13531 * combine.c: Likewise.
13532 * compare-elim.c: Likewise.
13533 * config/epiphany/resolve-sw-modes.c: Likewise.
13534 * config/i386/i386.c: Likewise.
13535 * config/mips/mips.c: Likewise.
13536 * config/s390/s390.c: Likewise.
13537 * config/sh/sh_treg_combine.cc: Likewise.
13538 * config/sparc/sparc.c: Likewise.
13539 * dce.c: Likewise.
13540 * dse.c: Likewise.
13541 * final.c: Likewise.
13542 * ifcvt.c: Likewise.
13543 * mode-switching.c: Likewise.
13544 * passes.c: Likewise.
13545 * postreload.c: Likewise.
13546 * ree.c: Likewise.
13547 * reg-stack.c: Likewise.
13548 * regcprop.c: Likewise.
13549 * regrename.c: Likewise.
13550 * web.c: Likewise.
13551
13552 2014-05-06 Richard Biener <rguenther@suse.de>
13553
13554 PR middle-end/61070
13555 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
13556 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
13557
13558 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
13559
13560 PR ipa/60965
13561 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
13562
13563 2014-05-05 Radovan Obradovic <robradovic@mips.com>
13564 Tom de Vries <tom@codesourcery.com>
13565
13566 * target.def (call_fusage_contains_non_callee_clobbers): New
13567 DEFHOOKPOD.
13568 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
13569 Hooks to @menu.
13570 (@node Miscellaneous Register Hooks): New node.
13571 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
13572 * doc/tm.texi: Regenerate.
13573
13574 2014-05-05 Marek Polacek <polacek@redhat.com>
13575
13576 PR driver/61065
13577 * opts.c (common_handle_option): Call error_at instead of warning_at.
13578
13579 2014-05-05 Richard Biener <rguenther@suse.de>
13580
13581 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
13582 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
13583 under the TODO_verify_il umbrella.
13584
13585 2014-05-05 Richard Biener <rguenther@suse.de>
13586
13587 * passes.c (execute_function_todo): Move TODO_verify_flow under
13588 the TODO_verify_ul umbrella.
13589
13590 2014-05-05 Richard Biener <rguenther@suse.de>
13591
13592 PR middle-end/61010
13593 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
13594 X & CST away from a CST that is the mask of a mode.
13595
13596 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13597
13598 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
13599 int argument to enum machine_mode.
13600 (picochip_class_max_nregs): Ditto.
13601 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
13602 (picochip_class_max_nregs): Ditto.
13603
13604 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13605
13606 * target.def: Add new target hook.
13607 * doc/tm.texi: Regenerate.
13608 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
13609 * targhooks.c (default_keep_leaf_when_profiled): New function.
13610
13611 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
13612 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
13613
13614 2014-05-05 Bin Cheng <bin.cheng@arm.com>
13615
13616 PR tree-optimization/60363
13617 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
13618 (copy_phi_args): New parameters. Call get_value_locus_in_path.
13619 (update_destination_phis): New parameter.
13620 (create_edge_and_update_destination_phis): Ditto.
13621 (ssa_fix_duplicate_block_edges): Pass new arguments.
13622 (thread_single_edge): Ditto.
13623
13624 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
13625
13626 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
13627 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
13628 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
13629 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
13630 Use RS6000_BTM_HARD_FLOAT.
13631 (BU_MISC_2): Likewise.
13632 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
13633 RS6000_BTM_HARD_FLOAT.
13634 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
13635 is explicitly used.
13636 (rs6000_invalid_builtin): Add hard floating builtin support.
13637 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
13638 hard float builtins.
13639 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
13640
13641 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13642
13643 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
13644 Add missing function* argument.
13645
13646 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13647
13648 * lra-constraints.c (valid_address_p): Move earlier in file.
13649 Add a constraint argument to the address_info version.
13650 (satisfies_memory_constraint_p): New function.
13651 (satisfies_address_constraint_p): Likewise.
13652 (process_alt_operands, curr_insn_transform): Use them.
13653 (process_address): Pass the constraint to valid_address_p when
13654 checking address operands.
13655
13656 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13657
13658 * config/mips/mips.c (mips_isa_rev): New variable.
13659 (mips_set_architecture): Set it.
13660 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
13661 from mips_isa_rev.
13662 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
13663 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
13664 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
13665 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
13666 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
13667 conditions in terms of mips_isa_rev.
13668 (mips_isa_rev): Declare.
13669
13670 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13671
13672 * config/sh/sh-mem.cc: Use tabs instead of spaces.
13673 (prob_unlikely, prob_likely): Make variables const.
13674
13675 2014-05-03 Denis Chertykov <chertykov@gmail.com>
13676
13677 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
13678
13679 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13680
13681 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
13682
13683 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13684
13685 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
13686 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
13687 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
13688 functions.
13689 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
13690 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
13691 sh_pass_in_reg_p.
13692 Replace usage of ROUND_REG with sh_round_reg.
13693 Use CEIL instead of ROUND_ADVANCE.
13694
13695 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
13696
13697 PR target/61026
13698 * config/sh/sh.c: Include stdlib headers before everything else.
13699
13700 2014-05-02 Jakub Jelinek <jakub@redhat.com>
13701
13702 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
13703 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
13704 (gimplify_adjust_omp_clauses): Simd region is never
13705 directly nested in combined parallel. Instead, for linear
13706 with copyin/copyout, if in combined for simd loop, make decl
13707 firstprivate/lastprivate on OMP_FOR.
13708 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13709 expand_omp_for_static_chunk): When setting endvar, also set
13710 fd->loop.v to the same value.
13711
13712 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13713
13714 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
13715
13716 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
13717
13718 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
13719 expression.
13720
13721 2014-05-02 Marek Polacek <polacek@redhat.com>
13722
13723 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
13724
13725 2014-05-02 Kito Cheng <kito@0xlab.org>
13726
13727 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
13728 to a C expression marco.
13729 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
13730 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
13731 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
13732 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
13733 HONOR_REG_ALLOC_ORDER.
13734 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
13735
13736 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13737
13738 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
13739
13740 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13741
13742 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
13743
13744 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13745
13746 * tree-if-conv.c (is_cond_scalar_reduction): New function.
13747 (convert_scalar_cond_reduction): Likewise.
13748 (predicate_scalar_phi): Add recognition and transformation
13749 of simple conditioanl reduction to be vectorizable.
13750
13751 2014-05-01 Marek Polacek <polacek@redhat.com>
13752
13753 PR c/43245
13754 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
13755
13756 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
13757
13758 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
13759 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
13760 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
13761 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
13762 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
13763 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
13764 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
13765 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
13766
13767 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
13768
13769 * config/arc/arc.opt (mlra): Move comment above option name
13770 to avoid mis-parsing as language options.
13771
13772 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13773
13774 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
13775 * config/sol2.h: ... here.
13776 * config/sol2-10.h: Remove.
13777
13778 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
13779 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
13780 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
13781 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
13782 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
13783 * config/sol2.h: ... here.
13784 (SECTION_NAME_FORMAT): Don't redefine.
13785 (STARTFILE_ARCH32_SPEC): Rename to ...
13786 (STARTFILE_ARCH_SPEC): ... this.
13787 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13788 * config/sparc/sol2.h: ... here.
13789 (SECTION_NAME_FORMAT): Don't undef.
13790 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
13791 (SUBTARGET_EXTRA_SPECS): Remove.
13792 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
13793
13794 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
13795 (MD_STARTFILE_PREFIX): Remove.
13796 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
13797 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
13798 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
13799 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
13800 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
13801 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
13802 * config/i386/sol2.h: ... here.
13803 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
13804 * config/i386/sol2-bi.h: Remove.
13805 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
13806 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
13807
13808 * config/i386/t-sol2-64: Rename to ...
13809 * config/i386/t-sol2: ... this.
13810 * config/sparc/t-sol2-64: Rename to ...
13811 * config/sparc/t-sol2: ... this.
13812
13813 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
13814 sol2_tm_file_head, sol2_tm_file_tail.
13815 Include ${cpu_type}/sol2.h before sol2.h.
13816 Remove sol2-10.h.
13817 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
13818 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
13819 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
13820 Reflect i386/t-sol2-64 renaming.
13821 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
13822 Reflect sparc/t-sol2-64 renaming.
13823
13824 2014-04-30 Richard Biener <rguenther@suse.de>
13825
13826 * passes.c (execute_function_todo): Move TODO_verify_stmts
13827 and TODO_verify_ssa under the TODO_verify_il umbrella.
13828 * tree-ssa.h (verify_ssa): Adjust prototype.
13829 * tree-ssa.c (verify_ssa): Add parameter to tell whether
13830 we should verify SSA operands.
13831 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
13832 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
13833 whether we should verify whether not throwing stmts have EH info.
13834 * graphite-scop-detection.c (create_sese_edges): Adjust.
13835 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
13836 * tree-eh.c (lower_try_finally_switch): Do not add the
13837 default case label twice.
13838
13839 2014-04-30 Marek Polacek <polacek@redhat.com>
13840
13841 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
13842 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
13843 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
13844 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
13845
13846 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
13847
13848 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
13849 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
13850 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
13851 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
13852 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
13853 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
13854 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
13855 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
13856
13857 2014-04-29 David Malcolm <dmalcolm@redhat.com>
13858
13859 * tree-cfg.c (dump_function_to_file): Dump the return type of
13860 functions, in a line to itself before the function body, mimicking
13861 the layout of a C function.
13862
13863 2014-04-29 Jakub Jelinek <jakub@redhat.com>
13864
13865 PR tree-optimization/60971
13866 * tree-tailcall.c (process_assignment): Reject conversions which
13867 reduce precision.
13868
13869 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
13870
13871 * calls.c (initialize_argument_information): Always treat
13872 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
13873 (expand_call): Likewise.
13874 (emit_library_call_calue_1): Likewise.
13875 * expr.c (PUSH_ARGS_REVERSED): Do not define.
13876 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
13877 code accordingly.
13878
13879 2014-04-29 Nick Clifton <nickc@redhat.com>
13880
13881 * config/msp430/msp430.md (umulsidi): Fix typo.
13882 (mulhisi3): Enable even inside interrupt handlers.
13883 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
13884 bigger return address pushed in large mode.
13885
13886 2014-04-29 Nick Clifton <nickc@redhat.com>
13887
13888 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
13889 (arc_init_reg_tables): Use a machine_mode enum to iterate over
13890 available modes.
13891 * config/m32r/m32r.c (init_reg_tables): Likewise.
13892 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
13893 enum to hold the modes.
13894
13895 2014-04-29 Richard Biener <rguenther@suse.de>
13896
13897 * dominance.c (free_dominance_info): Add overload with
13898 function parameter.
13899 (dom_info_state): Likewise.
13900 (dom_info_available_p): Likewise.
13901 * basic-block.h (free_dominance_info, dom_info_state,
13902 dom_info_available_p): Declare overloads.
13903 * passes.c (execute_function_todo): Verify that verifiers
13904 don't change dominator info state. Drop dominator info
13905 for IPA pass invocations.
13906 * cgraph.c (release_function_body): Restore asserts that
13907 dominator information is released.
13908
13909 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
13910
13911 * doc/invoke.texi: Fix typo.
13912 * tree-vrp.c: Fix typos.
13913 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
13914
13915 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13916
13917 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
13918
13919 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13920
13921 * config/aarch64/aarch64-builtins.c
13922 (aarch64_types_storestruct_lane_qualifiers): New.
13923 (TYPES_STORESTRUCT_LANE): Likewise.
13924 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
13925 (st3_lane): Likewise.
13926 (st4_lane): Likewise.
13927 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
13928 (vec_store_lanesci_lane<mode>): Likewise.
13929 (vec_store_lanesxi_lane<mode>): Likewise.
13930 (aarch64_st2_lane<VQ:mode>): Likewise.
13931 (aarch64_st3_lane<VQ:mode>): Likewise.
13932 (aarch64_st4_lane<VQ:mode>): Likewise.
13933 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
13934 * config/aarch64/arm_neon.h
13935 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
13936 use new macro arguments.
13937 (__ST3_LANE_FUNC): Likewise.
13938 (__ST4_LANE_FUNC): Likewise.
13939 * config/aarch64/iterators.md (V_TWO_ELEM): New.
13940 (V_THREE_ELEM): Likewise.
13941 (V_FOUR_ELEM): Likewise.
13942
13943 2014-04-28 David Malcolm <dmalcolm@redhat.com>
13944
13945 * doc/gimple.texi: Replace the description of the now-defunct
13946 union gimple_statement_d with a diagram showing the
13947 gimple_statement_base class hierarchy and its relationships to
13948 the GSS_ and GIMPLE_ enums.
13949
13950 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
13951
13952 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
13953 * config/aarch64/aarch64.c
13954 (aarch64_cannot_change_mode_class): Weaken conditions.
13955 (aarch64_modes_tieable_p): New.
13956 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
13957
13958 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
13959
13960 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
13961 (loadsync_<mode>): Change mode.
13962 (load_quadpti, store_quadpti): New.
13963 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
13964 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
13965
13966 2014-04-28 Martin Jambor <mjambor@suse.cz>
13967
13968 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
13969 same alias type as the original statement.
13970 (subreplacement_assignment_data): New type.
13971 (handle_unscalarized_data_in_subtree): New type of parameter,
13972 generate new memory accesses with same alias type as the original
13973 statement.
13974 (load_assign_lhs_subreplacements): Likewise.
13975 (sra_modify_constructor_assign): Generate new memory accesses with
13976 same alias type as the original statement.
13977
13978 2014-04-28 Richard Biener <rguenther@suse.de>
13979
13980 * tree-pass.h (TODO_verify_il): Define.
13981 (TODO_verify_all): Complete properly.
13982 * passes.c (execute_function_todo): Move existing loop-closed
13983 SSA verification under TODO_verify_il.
13984 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
13985 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
13986 Fix tree sharing issue.
13987
13988 2014-04-28 Richard Biener <rguenther@suse.de>
13989
13990 PR middle-end/60092
13991 * builtins.def (DEF_C11_BUILTIN): Add.
13992 (BUILT_IN_ALIGNED_ALLOC): Likewise.
13993 * coretypes.h (enum function_class): Add function_c11_misc.
13994 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13995 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
13996 (call_may_clobber_ref_p_1): Likewise.
13997 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13998 (mark_all_reaching_defs_necessary_1): Likewise.
13999 (propagate_necessity): Likewise.
14000 (eliminate_unnecessary_stmts): Likewise.
14001 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
14002
14003 2014-04-28 Richard Biener <rguenther@suse.de>
14004
14005 * tree-vrp.c (vrp_var_may_overflow): Remove.
14006 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
14007 with overflow immediately bump to one before that value and
14008 let iteration figure out overflow status.
14009
14010 2014-04-28 Richard Biener <rguenther@suse.de>
14011
14012 * configure.ac: Do valgrind header checks unconditionally.
14013 Add --enable-valgrind-annotations.
14014 * system.h: Guard valgrind header inclusion with
14015 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
14016 * alloc-pool.c (pool_alloc, pool_free): Use
14017 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
14018 to guard possibly dead code.
14019 * config.in: Regenerated.
14020 * configure: Likewise.
14021
14022 2014-04-28 Jeff Law <law@redhat.com>
14023
14024 PR tree-optimization/60902
14025 * tree-ssa-threadedge.c
14026 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
14027 over real defs when invalidating outputs from statements that do not
14028 produce useful outputs for threading.
14029
14030 2014-04-28 Richard Biener <rguenther@suse.de>
14031
14032 PR tree-optimization/60979
14033 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
14034 SCOPs that end in a block with a successor with abnormal
14035 predecessors.
14036
14037 2014-04-28 Richard Biener <rguenther@suse.de>
14038
14039 * tree-pass.h (execute_pass_list): Adjust prototype.
14040 * passes.c (pass_manager::execute_early_local_passes): Adjust.
14041 (do_per_function): Change callback signature, push all actual
14042 work to the callbals.
14043 (do_per_function_toporder): Likewise.
14044 (execute_function_dump): Adjust.
14045 (execute_function_todo): Likewise.
14046 (clear_last_verified): Likewise.
14047 (verify_curr_properties): Likewise.
14048 (update_properties_after_pass): Likewise.
14049 (execute_pass_list_1): Split out from ...
14050 (execute_pass_list): ... here. Adjust.
14051 (execute_ipa_pass_list): Likewise.
14052 * cgraphunit.c (cgraph_add_new_function): Adjust.
14053 (analyze_function): Likewise.
14054 (expand_function): Likewise.
14055 * cgraph.c (release_function_body): Free dominance info
14056 here instead of asserting it was magically freed elsewhere.
14057
14058 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
14059
14060 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
14061 * configure: Regenerate.
14062 * config/sparc/sparc.opt (muser-mode): New option.
14063 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
14064 for LEON3.
14065 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
14066 * doc/invoke.texi (SPARC options): Document -muser-mode.
14067
14068 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
14069
14070 * cselib.c (find_slot_memmode): Delete.
14071 (cselib_hasher): Change compare_type to a struct.
14072 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
14073 constants.
14074 (preserve_constants_and_equivs): Adjust for new compare_type.
14075 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
14076 (wrap_constant): Delete.
14077 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
14078
14079 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
14080
14081 * doc/install.texi (Building with profile feedback): Remove
14082 outdated sentence.
14083
14084 2014-04-26 Tom de Vries <tom@codesourcery.com>
14085
14086 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
14087 array accesses.
14088
14089 2014-04-25 Cary Coutant <ccoutant@google.com>
14090
14091 PR debug/60929
14092 * dwarf2out.c (should_move_die_to_comdat): A type definition
14093 can contain a subprogram definition, but don't move it to a
14094 comdat unit.
14095 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
14096 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
14097 from original DIE.
14098 (clone_tree_hash): Rename to...
14099 (clone_tree_partial): ...this; change callers. Copy
14100 DW_TAG_subprogram DIEs as declarations.
14101 (copy_decls_walk): Don't copy children of a declaration into a
14102 type unit.
14103
14104 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
14105
14106 PR target/60969
14107 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
14108 alternative 12.
14109
14110 2014-04-25 Jiong Wang <jiong.wang@arm.com>
14111
14112 * config/arm/predicates.md (call_insn_operand): Add long_call check.
14113 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
14114 reg for long_call.
14115 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
14116 restriction.
14117
14118 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14119
14120 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
14121
14122 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14123
14124 PR tree-optimization/60930
14125 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
14126 creating a multiply candidate by folding two constant
14127 multiplicands when the result overflows.
14128
14129 2014-04-25 Jakub Jelinek <jakub@redhat.com>
14130
14131 PR tree-optimization/60960
14132 * tree-vect-generic.c (expand_vector_operation): Only call
14133 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
14134
14135 2014-04-25 Tom de Vries <tom@codesourcery.com>
14136
14137 * expr.c (clobber_reg_mode): New function.
14138 * expr.h (clobber_reg): New function.
14139
14140 2014-04-25 Tom de Vries <tom@codesourcery.com>
14141
14142 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
14143 clobbers.
14144
14145 2014-04-25 Radovan Obradovic <robradovic@mips.com>
14146 Tom de Vries <tom@codesourcery.com>
14147
14148 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
14149 handle.
14150 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
14151 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
14152 new argument to find_all_hard_reg_sets call.
14153
14154 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14155
14156 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
14157 Use HOST_WIDE_INT_C for mask literal.
14158 (aarch_rev16_shleft_mask_imm_p): Likewise.
14159
14160 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
14161
14162 PR target/60941
14163 * config/sparc/sparc.md (ashlsi3_extend): Delete.
14164
14165 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
14166
14167 PR preprocessor/56540
14168 * config/i386/i386-c.c (ix86_target_macros): Define
14169 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
14170
14171 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14172
14173 * configure.ac (tga_func): Remove.
14174 (LIB_TLS_SPEC): Remove.
14175 * configure: Regenerate.
14176 * config.in: Regenerate.
14177 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
14178
14179 2014-04-25 Richard Biener <rguenther@suse.de>
14180
14181 PR ipa/60912
14182 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
14183 call stmt use/clobber sets during stmt walk instead of
14184 walking the possibly incomplete set of caller edges.
14185
14186 2014-04-25 Richard Biener <rguenther@suse.de>
14187
14188 PR ipa/60911
14189 * passes.c (apply_ipa_transforms): Inline into only caller ...
14190 (execute_one_pass): ... here. Properly bring in function
14191 bodies for nodes we want to apply IPA transforms to.
14192
14193 2014-04-24 Cong Hou <congh@google.com>
14194
14195 PR tree-optimization/60896
14196 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
14197 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
14198 (vect_mark_pattern_stmts): Set the def type of all statements in
14199 PATTERN_DEF_SEQ as vect_internal_def.
14200
14201 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14202
14203 * doc/extend.texi (PowerPC Built-in Functions): Document new
14204 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
14205 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
14206
14207 * config/rs6000/predicates.md (const_0_to_3_operand): New
14208 predicate to match 0..3 integer constants.
14209
14210 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
14211 to support adding miscellaneous builtin functions.
14212 (BU_DFP_MISC_2): Likewise.
14213 (BU_P7_MISC_1): Likewise.
14214 (BU_P7_MISC_2): Likewise.
14215 (BU_P8V_MISC_3): Likewise.
14216 (BU_MISC_1): Likewise.
14217 (BU_MISC_2): Likewise.
14218 (DIVWE): Add extended divide builtin functions.
14219 (DIVWEO): Likewise.
14220 (DIVWEU): Likewise.
14221 (DIVWEUO): Likewise.
14222 (DIVDE): Likewise.
14223 (DIVDEO): Likewise.
14224 (DIVDEU): Likewise.
14225 (DIVDEUO): Likewise.
14226 (DXEX): Add decimal floating-point builtin functions.
14227 (DXEXQ): Likewise.
14228 (DDEDPD): Likewise.
14229 (DDEDPDQ): Likewise.
14230 (DENBCD): Likewise.
14231 (DENBCDQ): Likewise.
14232 (DIEX): Likewise.
14233 (DIEXQ): Likewise.
14234 (DSCLI): Likewise.
14235 (DSCLIQ): Likewise.
14236 (DSCRI): Likewise.
14237 (DSCRIQ): Likewise.
14238 (CDTBCD): Add new BCD builtin functions.
14239 (CBCDTD): Likewise.
14240 (ADDG6S): Likewise.
14241 (BCDADD): Likewise.
14242 (BCDADD_LT): Likewise.
14243 (BCDADD_EQ): Likewise.
14244 (BCDADD_GT): Likewise.
14245 (BCDADD_OV): Likewise.
14246 (BCDSUB): Likewise.
14247 (BCDSUB_LT): Likewise.
14248 (BCDSUB_EQ): Likewise.
14249 (BCDSUB_GT): Likewise.
14250 (BCDSUB_OV): Likewise.
14251 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
14252 (UNPACK_TD): Likewise.
14253 (PACK_TF): Likewise.
14254 (UNPACK_TF): Likewise.
14255 (UNPACK_TF_0): Likewise.
14256 (UNPACK_TF_1): Likewise.
14257 (PACK_V1TI): Likewise.
14258 (UNPACK_V1TI): Likewise.
14259
14260 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
14261 support for decimal floating point builtin functions.
14262 (rs6000_expand_ternop_builtin): Add checks for the new builtin
14263 functions that take constant arguments.
14264 (rs6000_invalid_builtin): Add decimal floating point builtin support.
14265 (rs6000_init_builtins): Setup long double, _Decimal64, and
14266 _Decimal128 types for new builtin functions.
14267 (builtin_function_type): Set the unsigned flags appropriately for
14268 the new builtin functions.
14269 (rs6000_opt_masks): Add support for decimal floating point builtin
14270 functions.
14271
14272 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
14273 floating point builtin functions.
14274 (RS6000_BTM_COMMON): Likewise.
14275 (RS6000_BTI_long_double): Likewise.
14276 (RS6000_BTI_dfloat64): Likewise.
14277 (RS6000_BTI_dfloat128): Likewise.
14278 (long_double_type_internal_node): Likewise.
14279 (dfloat64_type_internal_node): Likewise.
14280 (dfloat128_type_internal_node): Likewise.
14281
14282 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
14283 2.07 bcd arithmetic instructions.
14284 (UNSPEC_BCDSUB): Likewise.
14285 (UNSPEC_BCD_OVERFLOW): Likewise.
14286 (UNSPEC_BCD_ADD_SUB): Likewise.
14287 (bcd_add_sub): Likewise.
14288 (BCD_TEST): Likewise.
14289 (bcd<bcd_add_sub>): Likewise.
14290 (bcd<bcd_add_sub>_test): Likewise.
14291 (bcd<bcd_add_sub>_test2): Likewise.
14292 (bcd<bcd_add_sub>_<code>): Likewise.
14293 (peephole2 for combined bcd ops): Likewise.
14294
14295 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
14296 decimal floating point builtin functions.
14297 (UNSPEC_DENBCD): Likewise.
14298 (UNSPEC_DXEX): Likewise.
14299 (UNSPEC_DIEX): Likewise.
14300 (UNSPEC_DSCLI): Likewise.
14301 (UNSPEC_DSCRI): Likewise.
14302 (D64_D128): Likewise.
14303 (dfp_suffix): Likewise.
14304 (dfp_ddedpd_<mode>): Likewise.
14305 (dfp_denbcd_<mode>): Likewise.
14306 (dfp_dxex_<mode>): Likewise.
14307 (dfp_diex_<mode>): Likewise.
14308 (dfp_dscli_<mode>): Likewise.
14309 (dfp_dscri_<mode>): Likewise.
14310
14311 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
14312 builtin functions.
14313 (UNSPEC_CDTBCD): Likewise.
14314 (UNSPEC_CBCDTD): Likewise.
14315 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
14316 (UNSPEC_DIVEO): Likewise.
14317 (UNSPEC_DIVEU): Likewise.
14318 (UNSPEC_DIVEUO): Likewise.
14319 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
14320 pack/unpack 128-bit types.
14321 (UNSPEC_PACK_128BIT): Likewise.
14322 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
14323 (udiv<mode>3): Use idiv_ldiv mode attribute.
14324 (div<mode>3): Likewise.
14325 (addg6s): Add new BCD builtin functions.
14326 (cdtbcd): Likewise.
14327 (cbcdtd): Likewise.
14328 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
14329 (div_extend): Likewise.
14330 (div<div_extend>_<mode>"): Likewise.
14331 (FP128_64): Add support for new builtin functions to pack/unpack
14332 128-bit types.
14333 (unpack<mode>): Likewise.
14334 (unpacktf_0): Likewise.
14335 (unpacktf_1): Likewise.
14336 (unpack<mode>_dm): Likewise.
14337 (unpack<mode>_nodm): Likewise.
14338 (pack<mode>): Likewise.
14339 (unpackv1ti): Likewise.
14340 (packv1ti): Likewise.
14341
14342 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
14343
14344 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
14345 is disabled.
14346
14347 2014-04-24 Jakub Jelinek <jakub@redhat.com>
14348
14349 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
14350 * gimplify.c (omp_is_private): Change last argument's type to int.
14351 Only diagnose lastprivate if the simd argument is 1, only diagnose
14352 linear if the simd argument is 2.
14353 (gimplify_omp_for): Adjust omp_is_private callers. When adding
14354 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
14355 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
14356 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
14357 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
14358 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14359 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
14360 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
14361 * tree-nested.c (convert_nonlocal_omp_clauses,
14362 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
14363
14364 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
14365
14366 PR target/60822
14367 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
14368 operand 1.
14369
14370 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
14371
14372 * flag-types.h (enum ivar_visibility): Add.
14373
14374 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
14375
14376 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
14377 function * argument.
14378
14379 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
14380
14381 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
14382
14383 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14384 Tom de Vries <tom@codesourcery.com>
14385
14386 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
14387 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
14388 reg-note.
14389 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
14390 * emit-rtl.c (try_split): Same.
14391
14392 2014-04-24 Radovan Obradovic <robradovic@mips.com>
14393 Tom de Vries <tom@codesourcery.com>
14394
14395 * common.opt (fuse-caller-save): New option.
14396
14397 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
14398
14399 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
14400 elements for big-endian.
14401
14402 2014-04-24 Richard Biener <rguenther@suse.de>
14403
14404 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
14405 during TER and instead use the sepops interface for expanding
14406 non-GIMPLE_SINGLE_RHS.
14407
14408 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14409
14410 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
14411 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
14412
14413 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14414
14415 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
14416 assembler 64-bit option.
14417 * configure: Regenerate.
14418
14419 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14420
14421 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
14422 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
14423 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
14424 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
14425 (TARGET_CRYPTO): Take TARGET_SIMD into account.
14426
14427 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14428
14429 * config/aarch64/aarch64-builtins.c
14430 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
14431 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
14432 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
14433 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
14434 builtins.
14435 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
14436 (Vrevsuff): New mode attribute.
14437
14438 2014-04-24 Terry Guo <terry.guo@arm.com>
14439
14440 * config/arm/arm.h (machine_function): Define variable
14441 after_arm_reorg here.
14442 * config/arm/arm.c (after_arm_reorg): Remove the definition.
14443 (arm_split_constant): Update the way to access variable
14444 after_arm_reorg.
14445 (arm_reorg): Ditto.
14446 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
14447
14448 2014-04-23 Tom de Vries <tom@codesourcery.com>
14449
14450 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
14451
14452 2014-04-23 David Malcolm <dmalcolm@redhat.com>
14453
14454 * is-a.h: Update comments to reflect the following changes to the
14455 "pointerness" of the API, making the template parameter match the
14456 return type, allowing use of is-a.h with typedefs of pointers.
14457 (is_a_helper::cast): Return a T rather then a pointer to a T, so
14458 that the return type matches the parameter to the is_a_helper.
14459 (as_a): Likewise.
14460 (dyn_cast): Likewise.
14461
14462 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
14463 pointer from the is-a.h API.
14464
14465 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
14466 (is_a_helper <cgraph_node *>::test): ...this, matching change to
14467 is-a.h API.
14468 (is_a_helper <varpool_node>::test): Likewise, convert to...
14469 (is_a_helper <varpool_node *>::test): ...this.
14470
14471 (varpool_first_variable): Update for removal of implicit pointer
14472 from the is-a.h API.
14473 (varpool_next_variable): Likewise.
14474 (varpool_first_static_initializer): Likewise.
14475 (varpool_next_static_initializer): Likewise.
14476 (varpool_first_defined_variable): Likewise.
14477 (varpool_next_defined_variable): Likewise.
14478 (cgraph_first_defined_function): Likewise.
14479 (cgraph_next_defined_function): Likewise.
14480 (cgraph_first_function): Likewise.
14481 (cgraph_next_function): Likewise.
14482 (cgraph_first_function_with_gimple_body): Likewise.
14483 (cgraph_next_function_with_gimple_body): Likewise.
14484 (cgraph_alias_target): Likewise.
14485 (varpool_alias_target): Likewise.
14486 (cgraph_function_or_thunk_node): Likewise.
14487 (varpool_variable_node): Likewise.
14488 (symtab_real_symbol_p): Likewise.
14489 * cgraphunit.c (referred_to_p): Likewise.
14490 (analyze_functions): Likewise.
14491 (handle_alias_pairs): Likewise.
14492 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
14493 * gimple-ssa.h (gimple_vuse_op): Likewise.
14494 (gimple_vdef_op): Likewise.
14495 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
14496 * gimple.c (gimple_build_asm_1): Likewise.
14497 (gimple_build_try): Likewise.
14498 (gimple_build_resx): Likewise.
14499 (gimple_build_eh_dispatch): Likewise.
14500 (gimple_build_omp_for): Likewise.
14501 (gimple_omp_for_set_clauses): Likewise.
14502
14503 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
14504 (is_a_helper <gimple_statement_asm *>::test): ...this.
14505 (is_a_helper <gimple_statement_bind>::test): Convert to...
14506 (is_a_helper <gimple_statement_bind *>::test): ...this.
14507 (is_a_helper <gimple_statement_call>::test): Convert to...
14508 (is_a_helper <gimple_statement_call *>::test): ...this.
14509 (is_a_helper <gimple_statement_catch>::test): Convert to...
14510 (is_a_helper <gimple_statement_catch *>::test): ...this.
14511 (is_a_helper <gimple_statement_resx>::test): Convert to...
14512 (is_a_helper <gimple_statement_resx *>::test): ...this.
14513 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
14514 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
14515 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
14516 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
14517 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
14518 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
14519 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
14520 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
14521 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
14522 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
14523 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
14524 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
14525 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
14526 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
14527 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
14528 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
14529 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
14530 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
14531 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
14532 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
14533 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
14534 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
14535 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
14536 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
14537 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
14538 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
14539 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
14540 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
14541 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
14542 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
14543 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
14544 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
14545 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
14546 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
14547 (is_a_helper <gimple_statement_phi>::test): Convert to...
14548 (is_a_helper <gimple_statement_phi *>::test): ...this.
14549 (is_a_helper <gimple_statement_transaction>::test): Convert to...
14550 (is_a_helper <gimple_statement_transaction *>::test): ...this.
14551 (is_a_helper <gimple_statement_try>::test): Convert to...
14552 (is_a_helper <gimple_statement_try *>::test): ...this.
14553 (is_a_helper <gimple_statement_wce>::test): Convert to...
14554 (is_a_helper <gimple_statement_wce *>::test): ...this.
14555 (is_a_helper <const gimple_statement_asm>::test): Convert to...
14556 (is_a_helper <const gimple_statement_asm *>::test): ...this.
14557 (is_a_helper <const gimple_statement_bind>::test): Convert to...
14558 (is_a_helper <const gimple_statement_bind *>::test): ...this.
14559 (is_a_helper <const gimple_statement_call>::test): Convert to...
14560 (is_a_helper <const gimple_statement_call *>::test): ...this.
14561 (is_a_helper <const gimple_statement_catch>::test): Convert to...
14562 (is_a_helper <const gimple_statement_catch *>::test): ...this.
14563 (is_a_helper <const gimple_statement_resx>::test): Convert to...
14564 (is_a_helper <const gimple_statement_resx *>::test): ...this.
14565 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
14566 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
14567 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
14568 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
14569 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
14570 Convert to...
14571 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
14572 ...this.
14573 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
14574 Convert to...
14575 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
14576 ...this.
14577 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
14578 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
14579 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
14580 to...
14581 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
14582 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
14583 to...
14584 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
14585 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
14586 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
14587 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
14588 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
14589 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
14590 to...
14591 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
14592 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
14593 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
14594 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
14595 to...
14596 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
14597 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
14598 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
14599 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
14600 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
14601 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
14602 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
14603 (is_a_helper <const gimple_statement_phi>::test): Convert to...
14604 (is_a_helper <const gimple_statement_phi *>::test): ...this.
14605 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
14606 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
14607 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
14608 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
14609 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
14610 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
14611 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
14612 to...
14613 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
14614 ...this.
14615 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
14616 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
14617
14618 (gimple_use_ops): Update for removal of implicit pointer from the
14619 is-a.h API.
14620 (gimple_set_use_ops): Likewise.
14621 (gimple_vuse): Likewise.
14622 (gimple_vdef): Likewise.
14623 (gimple_vuse_ptr): Likewise.
14624 (gimple_vdef_ptr): Likewise.
14625 (gimple_set_vuse): Likewise.
14626 (gimple_set_vdef): Likewise.
14627 (gimple_omp_return_set_lhs): Likewise.
14628 (gimple_omp_return_lhs): Likewise.
14629 (gimple_omp_return_lhs_ptr): Likewise.
14630 (gimple_call_fntype): Likewise.
14631 (gimple_call_set_fntype): Likewise.
14632 (gimple_call_set_internal_fn): Likewise.
14633 (gimple_call_use_set): Likewise.
14634 (gimple_call_clobber_set): Likewise.
14635 (gimple_bind_vars): Likewise.
14636 (gimple_bind_set_vars): Likewise.
14637 (gimple_bind_body_ptr): Likewise.
14638 (gimple_bind_set_body): Likewise.
14639 (gimple_bind_add_stmt): Likewise.
14640 (gimple_bind_block): Likewise.
14641 (gimple_bind_set_block): Likewise.
14642 (gimple_asm_ninputs): Likewise.
14643 (gimple_asm_noutputs): Likewise.
14644 (gimple_asm_nclobbers): Likewise.
14645 (gimple_asm_nlabels): Likewise.
14646 (gimple_asm_input_op): Likewise.
14647 (gimple_asm_input_op_ptr): Likewise.
14648 (gimple_asm_output_op): Likewise.
14649 (gimple_asm_output_op_ptr): Likewise.
14650 (gimple_asm_set_output_op): Likewise.
14651 (gimple_asm_clobber_op): Likewise.
14652 (gimple_asm_set_clobber_op): Likewise.
14653 (gimple_asm_label_op): Likewise.
14654 (gimple_asm_set_label_op): Likewise.
14655 (gimple_asm_string): Likewise.
14656 (gimple_catch_types): Likewise.
14657 (gimple_catch_types_ptr): Likewise.
14658 (gimple_catch_handler_ptr): Likewise.
14659 (gimple_catch_set_types): Likewise.
14660 (gimple_catch_set_handler): Likewise.
14661 (gimple_eh_filter_types): Likewise.
14662 (gimple_eh_filter_types_ptr): Likewise.
14663 (gimple_eh_filter_failure_ptr): Likewise.
14664 (gimple_eh_filter_set_types): Likewise.
14665 (gimple_eh_filter_set_failure): Likewise.
14666 (gimple_eh_must_not_throw_fndecl): Likewise.
14667 (gimple_eh_must_not_throw_set_fndecl): Likewise.
14668 (gimple_eh_else_n_body_ptr): Likewise.
14669 (gimple_eh_else_e_body_ptr): Likewise.
14670 (gimple_eh_else_set_n_body): Likewise.
14671 (gimple_eh_else_set_e_body): Likewise.
14672 (gimple_try_eval_ptr): Likewise.
14673 (gimple_try_cleanup_ptr): Likewise.
14674 (gimple_try_set_eval): Likewise.
14675 (gimple_try_set_cleanup): Likewise.
14676 (gimple_wce_cleanup_ptr): Likewise.
14677 (gimple_wce_set_cleanup): Likewise.
14678 (gimple_phi_capacity): Likewise.
14679 (gimple_phi_num_args): Likewise.
14680 (gimple_phi_result): Likewise.
14681 (gimple_phi_result_ptr): Likewise.
14682 (gimple_phi_set_result): Likewise.
14683 (gimple_phi_arg): Likewise.
14684 (gimple_phi_set_arg): Likewise.
14685 (gimple_resx_region): Likewise.
14686 (gimple_resx_set_region): Likewise.
14687 (gimple_eh_dispatch_region): Likewise.
14688 (gimple_eh_dispatch_set_region): Likewise.
14689 (gimple_omp_critical_name): Likewise.
14690 (gimple_omp_critical_name_ptr): Likewise.
14691 (gimple_omp_critical_set_name): Likewise.
14692 (gimple_omp_for_clauses): Likewise.
14693 (gimple_omp_for_clauses_ptr): Likewise.
14694 (gimple_omp_for_set_clauses): Likewise.
14695 (gimple_omp_for_collapse): Likewise.
14696 (gimple_omp_for_index): Likewise.
14697 (gimple_omp_for_index_ptr): Likewise.
14698 (gimple_omp_for_set_index): Likewise.
14699 (gimple_omp_for_initial): Likewise.
14700 (gimple_omp_for_initial_ptr): Likewise.
14701 (gimple_omp_for_set_initial): Likewise.
14702 (gimple_omp_for_final): Likewise.
14703 (gimple_omp_for_final_ptr): Likewise.
14704 (gimple_omp_for_set_final): Likewise.
14705 (gimple_omp_for_incr): Likewise.
14706 (gimple_omp_for_incr_ptr): Likewise.
14707 (gimple_omp_for_set_incr): Likewise.
14708 (gimple_omp_for_pre_body_ptr): Likewise.
14709 (gimple_omp_for_set_pre_body): Likewise.
14710 (gimple_omp_parallel_clauses): Likewise.
14711 (gimple_omp_parallel_clauses_ptr): Likewise.
14712 (gimple_omp_parallel_set_clauses): Likewise.
14713 (gimple_omp_parallel_child_fn): Likewise.
14714 (gimple_omp_parallel_child_fn_ptr): Likewise.
14715 (gimple_omp_parallel_set_child_fn): Likewise.
14716 (gimple_omp_parallel_data_arg): Likewise.
14717 (gimple_omp_parallel_data_arg_ptr): Likewise.
14718 (gimple_omp_parallel_set_data_arg): Likewise.
14719 (gimple_omp_task_clauses): Likewise.
14720 (gimple_omp_task_clauses_ptr): Likewise.
14721 (gimple_omp_task_set_clauses): Likewise.
14722 (gimple_omp_task_child_fn): Likewise.
14723 (gimple_omp_task_child_fn_ptr): Likewise.
14724 (gimple_omp_task_set_child_fn): Likewise.
14725 (gimple_omp_task_data_arg): Likewise.
14726 (gimple_omp_task_data_arg_ptr): Likewise.
14727 (gimple_omp_task_set_data_arg): Likewise.
14728 (gimple_omp_taskreg_clauses): Likewise.
14729 (gimple_omp_taskreg_clauses_ptr): Likewise.
14730 (gimple_omp_taskreg_set_clauses): Likewise.
14731 (gimple_omp_taskreg_child_fn): Likewise.
14732 (gimple_omp_taskreg_child_fn_ptr): Likewise.
14733 (gimple_omp_taskreg_set_child_fn): Likewise.
14734 (gimple_omp_taskreg_data_arg): Likewise.
14735 (gimple_omp_taskreg_data_arg_ptr): Likewise.
14736 (gimple_omp_taskreg_set_data_arg): Likewise.
14737 (gimple_omp_task_copy_fn): Likewise.
14738 (gimple_omp_task_copy_fn_ptr): Likewise.
14739 (gimple_omp_task_set_copy_fn): Likewise.
14740 (gimple_omp_task_arg_size): Likewise.
14741 (gimple_omp_task_arg_size_ptr): Likewise.
14742 (gimple_omp_task_set_arg_size): Likewise.
14743 (gimple_omp_task_arg_align): Likewise.
14744 (gimple_omp_task_arg_align_ptr): Likewise.
14745 (gimple_omp_task_set_arg_align): Likewise.
14746 (gimple_omp_single_clauses): Likewise.
14747 (gimple_omp_single_clauses_ptr): Likewise.
14748 (gimple_omp_single_set_clauses): Likewise.
14749 (gimple_omp_target_clauses): Likewise.
14750 (gimple_omp_target_clauses_ptr): Likewise.
14751 (gimple_omp_target_set_clauses): Likewise.
14752 (gimple_omp_target_child_fn): Likewise.
14753 (gimple_omp_target_child_fn_ptr): Likewise.
14754 (gimple_omp_target_set_child_fn): Likewise.
14755 (gimple_omp_target_data_arg): Likewise.
14756 (gimple_omp_target_data_arg_ptr): Likewise.
14757 (gimple_omp_target_set_data_arg): Likewise.
14758 (gimple_omp_teams_clauses): Likewise.
14759 (gimple_omp_teams_clauses_ptr): Likewise.
14760 (gimple_omp_teams_set_clauses): Likewise.
14761 (gimple_omp_sections_clauses): Likewise.
14762 (gimple_omp_sections_clauses_ptr): Likewise.
14763 (gimple_omp_sections_set_clauses): Likewise.
14764 (gimple_omp_sections_control): Likewise.
14765 (gimple_omp_sections_control_ptr): Likewise.
14766 (gimple_omp_sections_set_control): Likewise.
14767 (gimple_omp_for_set_cond): Likewise.
14768 (gimple_omp_for_cond): Likewise.
14769 (gimple_omp_atomic_store_set_val): Likewise.
14770 (gimple_omp_atomic_store_val): Likewise.
14771 (gimple_omp_atomic_store_val_ptr): Likewise.
14772 (gimple_omp_atomic_load_set_lhs): Likewise.
14773 (gimple_omp_atomic_load_lhs): Likewise.
14774 (gimple_omp_atomic_load_lhs_ptr): Likewise.
14775 (gimple_omp_atomic_load_set_rhs): Likewise.
14776 (gimple_omp_atomic_load_rhs): Likewise.
14777 (gimple_omp_atomic_load_rhs_ptr): Likewise.
14778 (gimple_omp_continue_control_def): Likewise.
14779 (gimple_omp_continue_control_def_ptr): Likewise.
14780 (gimple_omp_continue_set_control_def): Likewise.
14781 (gimple_omp_continue_control_use): Likewise.
14782 (gimple_omp_continue_control_use_ptr): Likewise.
14783 (gimple_omp_continue_set_control_use): Likewise.
14784 (gimple_transaction_body_ptr): Likewise.
14785 (gimple_transaction_label): Likewise.
14786 (gimple_transaction_label_ptr): Likewise.
14787 (gimple_transaction_set_body): Likewise.
14788 (gimple_transaction_set_label): Likewise.
14789
14790 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
14791 * ipa-inline-analysis.c (inline_write_summary): Likewise.
14792 * ipa-ref.c (ipa_record_reference): Likewise.
14793 * ipa-reference.c (analyze_function): Likewise.
14794 (ipa_reference_write_optimization_summary): Likewise.
14795 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
14796 (address_taken_from_non_vtable_p): Likewise.
14797 (comdat_can_be_unshared_p_1): Likewise.
14798 * lto-cgraph.c (lto_output_ref): Likewise.
14799 (add_references): Likewise.
14800 (compute_ltrans_boundary): Likewise.
14801 (output_symtab): Likewise.
14802 (input_ref): Likewise.
14803 (input_cgraph_1): Likewise.
14804 (output_cgraph_opt_summary): Likewise.
14805 * lto-streamer-out.c (lto_output): Likewise.
14806 (output_symbol_p): Likewise.
14807 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
14808 (lsei_start_function_in_partition): Likewise.
14809 (lsei_next_variable_in_partition): Likewise.
14810 (lsei_start_variable_in_partition): Likewise.
14811 * symtab.c (insert_to_assembler_name_hash): Likewise.
14812 (unlink_from_assembler_name_hash): Likewise.
14813 (symtab_unregister_node): Likewise.
14814 (symtab_remove_node): Likewise.
14815 (dump_symtab_node): Likewise.
14816 (verify_symtab_base): Likewise.
14817 (verify_symtab_node): Likewise.
14818 (symtab_make_decl_local): Likewise.
14819 (symtab_alias_ultimate_target): Likewise.
14820 (symtab_resolve_alias): Likewise.
14821 (symtab_get_symbol_partitioning_class): Likewise.
14822 * tree-phinodes.c (allocate_phi_node): Likewise.
14823 (reserve_phi_args_for_new_edge): Likewise.
14824 (remove_phi_args): Likewise.
14825 * varpool.c (varpool_node_for_asm): Likewise.
14826 (varpool_remove_unreferenced_decls): Likewise.
14827
14828 2014-04-23 Jeff Law <law@redhat.com>
14829
14830 PR tree-optimization/60902
14831 * tree-ssa-threadedge.c
14832 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
14833 invalidate outputs from statements that do not produce useful
14834 outputs for threading.
14835
14836 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14837
14838 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
14839 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
14840 machine descriptions for Stack Smashing Protector.
14841
14842 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
14843
14844 * aarch64.md (<optab>_rol<mode>3): New pattern.
14845 (<optab>_rolsi3_uxtw): Likewise.
14846 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
14847
14848 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
14849
14850 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
14851 (arm_cortex_a12_tune): Likewise.
14852
14853 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14854
14855 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
14856
14857 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14858
14859 * config/arm/arm.md (arm_rev16si2): New pattern.
14860 (arm_rev16si2_alt): Likewise.
14861 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
14862
14863 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14864
14865 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
14866 (rev16<mode>2_alt): Likewise.
14867 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
14868 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
14869 (aarch_rev16_shleft_mask_imm_p): Likewise.
14870 (aarch_rev16_p_1): Likewise.
14871 (aarch_rev16_p): Likewise.
14872 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
14873 (aarch_rev16_shright_mask_imm_p): Likewise.
14874 (aarch_rev16_shleft_mask_imm_p): Likewise.
14875
14876 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14877
14878 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
14879 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
14880 rev cost.
14881 (cortex_a53_extra_costs): Likewise.
14882 (cortex_a57_extra_costs): Likewise.
14883 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
14884 (cortexa7_extra_costs): Likewise.
14885 (cortexa8_extra_costs): Likewise.
14886 (cortexa12_extra_costs): Likewise.
14887 (cortexa15_extra_costs): Likewise.
14888 (v7m_extra_costs): Likewise.
14889 (arm_new_rtx_costs): Handle BSWAP.
14890
14891 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14892
14893 * config/arm/arm.c (cortexa8_extra_costs): New table.
14894 (arm_cortex_a8_tune): New tuning struct.
14895 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
14896
14897 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14898
14899 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
14900
14901 2014-04-23 Richard Biener <rguenther@suse.de>
14902
14903 * Makefile.in (OBJS): Remove loop-unswitch.o.
14904 * tree-pass.h (make_pass_rtl_unswitch): Remove.
14905 * passes.def (pass_rtl_unswitch): Likewise.
14906 * loop-init.c (gate_rtl_unswitch): Likewise.
14907 (rtl_unswitch): Likewise.
14908 (pass_data_rtl_unswitch): Likewise.
14909 (pass_rtl_unswitch): Likewise.
14910 (make_pass_rtl_unswitch): Likewise.
14911 * rtl.h (reversed_condition): Likewise.
14912 (compare_and_jump_seq): Likewise.
14913 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
14914 and make static.
14915 * loop-unroll.c (compare_and_jump_seq): Likewise.
14916
14917 2014-04-23 Richard Biener <rguenther@suse.de>
14918
14919 PR tree-optimization/60903
14920 * tree-ssa-loop-im.c (analyze_memory_references): Remove
14921 commented code block.
14922 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
14923 loop flags to newly created BBs and edges.
14924
14925 2014-04-23 Nick Clifton <nickc@redhat.com>
14926
14927 * config/msp430/msp430.c (msp430_handle_option): Move function
14928 to msp430-common.c
14929 (msp430_option_override): Simplify mcu and mcpu option handling.
14930 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
14931 support for -mhwmult command line option.
14932 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
14933 -mhwmult command line option.
14934 (msp430_hwmult_enabled): Delete.
14935 (msp43o_output_labelref): Add support for -mhwmult command line option.
14936 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
14937 (umulsidi3): Likewise.
14938 * config/msp430/msp430.opt (mmcu): Add Report attribute.
14939 (mcpu, mlarge, msmall): Likewise.
14940 (mhwmult): New option.
14941 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
14942 prototype.
14943 (msp430_is_f5_mcu): Remove prototype.
14944 (msp430_use_f5_series_hwmult): Add prototype.
14945 * config/msp430/msp430-opts.h: New file.
14946 * common/config/msp430: New directory.
14947 * common/config/msp430/msp430-common.c: New file.
14948 * config.gcc (msp430): Remove target_has_targetm_common.
14949 * doc/invoke.texi: Document -mhwmult command line option.
14950
14951 2014-04-23 Nick Clifton <nickc@redhat.com>
14952
14953 * config/i386/cygwin.h (ENDFILE_SPEC): Include
14954 default-manifest.o if it can be found in the search path.
14955 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
14956
14957 2014-04-23 Terry Guo <terry.guo@arm.com>
14958
14959 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
14960
14961 2014-04-23 Richard Biener <rguenther@suse.de>
14962
14963 PR middle-end/60895
14964 * tree-inline.c (declare_return_variable): Use mark_addressable.
14965
14966 2014-04-23 Richard Biener <rguenther@suse.de>
14967
14968 PR middle-end/60891
14969 * loop-init.c (loop_optimizer_init): Make sure to apply
14970 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
14971
14972 2014-04-22 Jakub Jelinek <jakub@redhat.com>
14973
14974 PR sanitizer/60275
14975 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
14976 New options.
14977 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
14978 if flag_sanitize_undefined_trap_on_error.
14979 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
14980 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
14981 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
14982 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
14983 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
14984 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
14985 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
14986 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
14987 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
14988 * ubsan.c (ubsan_instrument_unreachable): Return
14989 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
14990 (ubsan_expand_null_ifn): Emit __builtin_trap ()
14991 if flag_sanitize_undefined_trap_on_error and
14992 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
14993 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
14994 instrument_bool_enum_load): Emit __builtin_trap () if
14995 flag_sanitize_undefined_trap_on_error and
14996 __builtin_handle_*_abort () if !flag_sanitize_recover.
14997 * doc/invoke.texi (-fsanitize-recover,
14998 -fsanitize-undefined-trap-on-error): Document.
14999
15000 2014-04-22 Christian Bruel <christian.bruel@st.com>
15001
15002 * config/sh/sh.md (mov<mode>): Replace movQIHI.
15003 Force immediates to SImode.
15004
15005 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
15006
15007 * config/nios2/nios2.md (UNSPEC_ROUND): New.
15008 (lroundsfsi2): New.
15009 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
15010 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
15011 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
15012 (nios2_fpu_insn): Add entry for round.
15013 (N2FPU_NO_ERRNO_P): Define.
15014 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
15015 flag_errno_math.
15016 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
15017
15018 2014-04-22 Richard Henderson <rth@redhat.com>
15019
15020 * config/aarch64/aarch64 (addti3, subti3): New expanders.
15021 (add<GPI>3_compare0): Remove leading * from name.
15022 (add<GPI>3_carryin): Likewise.
15023 (sub<GPI>3_compare0): Likewise.
15024 (sub<GPI>3_carryin): Likewise.
15025 (<su_optab>mulditi3): New expander.
15026 (multi3): New expander.
15027 (madd<GPI>): Remove leading * from name.
15028
15029 2014-04-22 Martin Jambor <mjambor@suse.cz>
15030
15031 * cgraphclones.c (cgraph_function_versioning): Copy
15032 ipa_transforms_to_apply instead of asserting it is empty.
15033
15034 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
15035
15036 PR target/60868
15037 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
15038 on count_exp to get mode.
15039
15040 2014-04-22 Andrew Pinski <apinski@cavium.com>
15041
15042 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15043 Handle TLS for ILP32.
15044 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
15045 (tlsie_small_<mode>): this and handle PTR.
15046 (tlsie_small_sidi): New pattern.
15047 (tlsle_small): Change to an expand to handle ILP32.
15048 (tlsle_small_<mode>): New pattern.
15049 (tlsdesc_small): Rename to ...
15050 (tlsdesc_small_<mode>): this and handle PTR.
15051
15052 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15053
15054 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
15055
15056 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15057
15058 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
15059 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
15060 (aarch64_types_signed_poly_qualifiers): Likewise.
15061 (aarch64_types_unsigned_signed_qualifiers): Likewise.
15062 (aarch64_types_poly_signed_qualifiers): Likewise.
15063 (TYPES_REINTERP_SS): Type macro added.
15064 (TYPES_REINTERP_SU): Likewise.
15065 (TYPES_REINTERP_SP): Likewise.
15066 (TYPES_REINTERP_US): Likewise.
15067 (TYPES_REINTERP_PS): Likewise.
15068 (aarch64_fold_builtin): New expression folding added.
15069 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
15070 Declarations removed.
15071 (REINTERP_SS): Declarations added.
15072 (REINTERP_US): Likewise.
15073 (REINTERP_PS): Likewise.
15074 (REINTERP_SU): Likewise.
15075 (REINTERP_SP): Likewise.
15076 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
15077 (vreinterpretq_p8_f64): Likewise.
15078 (vreinterpret_p16_f64): Likewise.
15079 (vreinterpretq_p16_f64): Likewise.
15080 (vreinterpret_f32_f64): Likewise.
15081 (vreinterpretq_f32_f64): Likewise.
15082 (vreinterpret_f64_f32): Likewise.
15083 (vreinterpret_f64_p8): Likewise.
15084 (vreinterpret_f64_p16): Likewise.
15085 (vreinterpret_f64_s8): Likewise.
15086 (vreinterpret_f64_s16): Likewise.
15087 (vreinterpret_f64_s32): Likewise.
15088 (vreinterpret_f64_s64): Likewise.
15089 (vreinterpret_f64_u8): Likewise.
15090 (vreinterpret_f64_u16): Likewise.
15091 (vreinterpret_f64_u32): Likewise.
15092 (vreinterpret_f64_u64): Likewise.
15093 (vreinterpretq_f64_f32): Likewise.
15094 (vreinterpretq_f64_p8): Likewise.
15095 (vreinterpretq_f64_p16): Likewise.
15096 (vreinterpretq_f64_s8): Likewise.
15097 (vreinterpretq_f64_s16): Likewise.
15098 (vreinterpretq_f64_s32): Likewise.
15099 (vreinterpretq_f64_s64): Likewise.
15100 (vreinterpretq_f64_u8): Likewise.
15101 (vreinterpretq_f64_u16): Likewise.
15102 (vreinterpretq_f64_u32): Likewise.
15103 (vreinterpretq_f64_u64): Likewise.
15104 (vreinterpret_s64_f64): Likewise.
15105 (vreinterpretq_s64_f64): Likewise.
15106 (vreinterpret_u64_f64): Likewise.
15107 (vreinterpretq_u64_f64): Likewise.
15108 (vreinterpret_s8_f64): Likewise.
15109 (vreinterpretq_s8_f64): Likewise.
15110 (vreinterpret_s16_f64): Likewise.
15111 (vreinterpretq_s16_f64): Likewise.
15112 (vreinterpret_s32_f64): Likewise.
15113 (vreinterpretq_s32_f64): Likewise.
15114 (vreinterpret_u8_f64): Likewise.
15115 (vreinterpretq_u8_f64): Likewise.
15116 (vreinterpret_u16_f64): Likewise.
15117 (vreinterpretq_u16_f64): Likewise.
15118 (vreinterpret_u32_f64): Likewise.
15119 (vreinterpretq_u32_f64): Likewise.
15120
15121 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15122
15123 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
15124 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
15125 (vreinterpret_p8_s8): Likewise.
15126 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
15127 (vreinterpret_p8_s16): Likewise.
15128 (vreinterpret_p8_s32): Likewise.
15129 (vreinterpret_p8_s64): Likewise.
15130 (vreinterpret_p8_f32): Likewise.
15131 (vreinterpret_p8_u8): Likewise.
15132 (vreinterpret_p8_u16): Likewise.
15133 (vreinterpret_p8_u32): Likewise.
15134 (vreinterpret_p8_u64): Likewise.
15135 (vreinterpret_p8_p16): Likewise.
15136 (vreinterpretq_p8_s8): Likewise.
15137 (vreinterpretq_p8_s16): Likewise.
15138 (vreinterpretq_p8_s32): Likewise.
15139 (vreinterpretq_p8_s64): Likewise.
15140 (vreinterpretq_p8_f32): Likewise.
15141 (vreinterpretq_p8_u8): Likewise.
15142 (vreinterpretq_p8_u16): Likewise.
15143 (vreinterpretq_p8_u32): Likewise.
15144 (vreinterpretq_p8_u64): Likewise.
15145 (vreinterpretq_p8_p16): Likewise.
15146 (vreinterpret_p16_s8): Likewise.
15147 (vreinterpret_p16_s16): Likewise.
15148 (vreinterpret_p16_s32): Likewise.
15149 (vreinterpret_p16_s64): Likewise.
15150 (vreinterpret_p16_f32): Likewise.
15151 (vreinterpret_p16_u8): Likewise.
15152 (vreinterpret_p16_u16): Likewise.
15153 (vreinterpret_p16_u32): Likewise.
15154 (vreinterpret_p16_u64): Likewise.
15155 (vreinterpret_p16_p8): Likewise.
15156 (vreinterpretq_p16_s8): Likewise.
15157 (vreinterpretq_p16_s16): Likewise.
15158 (vreinterpretq_p16_s32): Likewise.
15159 (vreinterpretq_p16_s64): Likewise.
15160 (vreinterpretq_p16_f32): Likewise.
15161 (vreinterpretq_p16_u8): Likewise.
15162 (vreinterpretq_p16_u16): Likewise.
15163 (vreinterpretq_p16_u32): Likewise.
15164 (vreinterpretq_p16_u64): Likewise.
15165 (vreinterpretq_p16_p8): Likewise.
15166 (vreinterpret_f32_s8): Likewise.
15167 (vreinterpret_f32_s16): Likewise.
15168 (vreinterpret_f32_s32): Likewise.
15169 (vreinterpret_f32_s64): Likewise.
15170 (vreinterpret_f32_u8): Likewise.
15171 (vreinterpret_f32_u16): Likewise.
15172 (vreinterpret_f32_u32): Likewise.
15173 (vreinterpret_f32_u64): Likewise.
15174 (vreinterpret_f32_p8): Likewise.
15175 (vreinterpret_f32_p16): Likewise.
15176 (vreinterpretq_f32_s8): Likewise.
15177 (vreinterpretq_f32_s16): Likewise.
15178 (vreinterpretq_f32_s32): Likewise.
15179 (vreinterpretq_f32_s64): Likewise.
15180 (vreinterpretq_f32_u8): Likewise.
15181 (vreinterpretq_f32_u16): Likewise.
15182 (vreinterpretq_f32_u32): Likewise.
15183 (vreinterpretq_f32_u64): Likewise.
15184 (vreinterpretq_f32_p8): Likewise.
15185 (vreinterpretq_f32_p16): Likewise.
15186 (vreinterpret_s64_s8): Likewise.
15187 (vreinterpret_s64_s16): Likewise.
15188 (vreinterpret_s64_s32): Likewise.
15189 (vreinterpret_s64_f32): Likewise.
15190 (vreinterpret_s64_u8): Likewise.
15191 (vreinterpret_s64_u16): Likewise.
15192 (vreinterpret_s64_u32): Likewise.
15193 (vreinterpret_s64_u64): Likewise.
15194 (vreinterpret_s64_p8): Likewise.
15195 (vreinterpret_s64_p16): Likewise.
15196 (vreinterpretq_s64_s8): Likewise.
15197 (vreinterpretq_s64_s16): Likewise.
15198 (vreinterpretq_s64_s32): Likewise.
15199 (vreinterpretq_s64_f32): Likewise.
15200 (vreinterpretq_s64_u8): Likewise.
15201 (vreinterpretq_s64_u16): Likewise.
15202 (vreinterpretq_s64_u32): Likewise.
15203 (vreinterpretq_s64_u64): Likewise.
15204 (vreinterpretq_s64_p8): Likewise.
15205 (vreinterpretq_s64_p16): Likewise.
15206 (vreinterpret_u64_s8): Likewise.
15207 (vreinterpret_u64_s16): Likewise.
15208 (vreinterpret_u64_s32): Likewise.
15209 (vreinterpret_u64_s64): Likewise.
15210 (vreinterpret_u64_f32): Likewise.
15211 (vreinterpret_u64_u8): Likewise.
15212 (vreinterpret_u64_u16): Likewise.
15213 (vreinterpret_u64_u32): Likewise.
15214 (vreinterpret_u64_p8): Likewise.
15215 (vreinterpret_u64_p16): Likewise.
15216 (vreinterpretq_u64_s8): Likewise.
15217 (vreinterpretq_u64_s16): Likewise.
15218 (vreinterpretq_u64_s32): Likewise.
15219 (vreinterpretq_u64_s64): Likewise.
15220 (vreinterpretq_u64_f32): Likewise.
15221 (vreinterpretq_u64_u8): Likewise.
15222 (vreinterpretq_u64_u16): Likewise.
15223 (vreinterpretq_u64_u32): Likewise.
15224 (vreinterpretq_u64_p8): Likewise.
15225 (vreinterpretq_u64_p16): Likewise.
15226 (vreinterpret_s8_s16): Likewise.
15227 (vreinterpret_s8_s32): Likewise.
15228 (vreinterpret_s8_s64): Likewise.
15229 (vreinterpret_s8_f32): Likewise.
15230 (vreinterpret_s8_u8): Likewise.
15231 (vreinterpret_s8_u16): Likewise.
15232 (vreinterpret_s8_u32): Likewise.
15233 (vreinterpret_s8_u64): Likewise.
15234 (vreinterpret_s8_p8): Likewise.
15235 (vreinterpret_s8_p16): Likewise.
15236 (vreinterpretq_s8_s16): Likewise.
15237 (vreinterpretq_s8_s32): Likewise.
15238 (vreinterpretq_s8_s64): Likewise.
15239 (vreinterpretq_s8_f32): Likewise.
15240 (vreinterpretq_s8_u8): Likewise.
15241 (vreinterpretq_s8_u16): Likewise.
15242 (vreinterpretq_s8_u32): Likewise.
15243 (vreinterpretq_s8_u64): Likewise.
15244 (vreinterpretq_s8_p8): Likewise.
15245 (vreinterpretq_s8_p16): Likewise.
15246 (vreinterpret_s16_s8): Likewise.
15247 (vreinterpret_s16_s32): Likewise.
15248 (vreinterpret_s16_s64): Likewise.
15249 (vreinterpret_s16_f32): Likewise.
15250 (vreinterpret_s16_u8): Likewise.
15251 (vreinterpret_s16_u16): Likewise.
15252 (vreinterpret_s16_u32): Likewise.
15253 (vreinterpret_s16_u64): Likewise.
15254 (vreinterpret_s16_p8): Likewise.
15255 (vreinterpret_s16_p16): Likewise.
15256 (vreinterpretq_s16_s8): Likewise.
15257 (vreinterpretq_s16_s32): Likewise.
15258 (vreinterpretq_s16_s64): Likewise.
15259 (vreinterpretq_s16_f32): Likewise.
15260 (vreinterpretq_s16_u8): Likewise.
15261 (vreinterpretq_s16_u16): Likewise.
15262 (vreinterpretq_s16_u32): Likewise.
15263 (vreinterpretq_s16_u64): Likewise.
15264 (vreinterpretq_s16_p8): Likewise.
15265 (vreinterpretq_s16_p16): Likewise.
15266 (vreinterpret_s32_s8): Likewise.
15267 (vreinterpret_s32_s16): Likewise.
15268 (vreinterpret_s32_s64): Likewise.
15269 (vreinterpret_s32_f32): Likewise.
15270 (vreinterpret_s32_u8): Likewise.
15271 (vreinterpret_s32_u16): Likewise.
15272 (vreinterpret_s32_u32): Likewise.
15273 (vreinterpret_s32_u64): Likewise.
15274 (vreinterpret_s32_p8): Likewise.
15275 (vreinterpret_s32_p16): Likewise.
15276 (vreinterpretq_s32_s8): Likewise.
15277 (vreinterpretq_s32_s16): Likewise.
15278 (vreinterpretq_s32_s64): Likewise.
15279 (vreinterpretq_s32_f32): Likewise.
15280 (vreinterpretq_s32_u8): Likewise.
15281 (vreinterpretq_s32_u16): Likewise.
15282 (vreinterpretq_s32_u32): Likewise.
15283 (vreinterpretq_s32_u64): Likewise.
15284 (vreinterpretq_s32_p8): Likewise.
15285 (vreinterpretq_s32_p16): Likewise.
15286 (vreinterpret_u8_s8): Likewise.
15287 (vreinterpret_u8_s16): Likewise.
15288 (vreinterpret_u8_s32): Likewise.
15289 (vreinterpret_u8_s64): Likewise.
15290 (vreinterpret_u8_f32): Likewise.
15291 (vreinterpret_u8_u16): Likewise.
15292 (vreinterpret_u8_u32): Likewise.
15293 (vreinterpret_u8_u64): Likewise.
15294 (vreinterpret_u8_p8): Likewise.
15295 (vreinterpret_u8_p16): Likewise.
15296 (vreinterpretq_u8_s8): Likewise.
15297 (vreinterpretq_u8_s16): Likewise.
15298 (vreinterpretq_u8_s32): Likewise.
15299 (vreinterpretq_u8_s64): Likewise.
15300 (vreinterpretq_u8_f32): Likewise.
15301 (vreinterpretq_u8_u16): Likewise.
15302 (vreinterpretq_u8_u32): Likewise.
15303 (vreinterpretq_u8_u64): Likewise.
15304 (vreinterpretq_u8_p8): Likewise.
15305 (vreinterpretq_u8_p16): Likewise.
15306 (vreinterpret_u16_s8): Likewise.
15307 (vreinterpret_u16_s16): Likewise.
15308 (vreinterpret_u16_s32): Likewise.
15309 (vreinterpret_u16_s64): Likewise.
15310 (vreinterpret_u16_f32): Likewise.
15311 (vreinterpret_u16_u8): Likewise.
15312 (vreinterpret_u16_u32): Likewise.
15313 (vreinterpret_u16_u64): Likewise.
15314 (vreinterpret_u16_p8): Likewise.
15315 (vreinterpret_u16_p16): Likewise.
15316 (vreinterpretq_u16_s8): Likewise.
15317 (vreinterpretq_u16_s16): Likewise.
15318 (vreinterpretq_u16_s32): Likewise.
15319 (vreinterpretq_u16_s64): Likewise.
15320 (vreinterpretq_u16_f32): Likewise.
15321 (vreinterpretq_u16_u8): Likewise.
15322 (vreinterpretq_u16_u32): Likewise.
15323 (vreinterpretq_u16_u64): Likewise.
15324 (vreinterpretq_u16_p8): Likewise.
15325 (vreinterpretq_u16_p16): Likewise.
15326 (vreinterpret_u32_s8): Likewise.
15327 (vreinterpret_u32_s16): Likewise.
15328 (vreinterpret_u32_s32): Likewise.
15329 (vreinterpret_u32_s64): Likewise.
15330 (vreinterpret_u32_f32): Likewise.
15331 (vreinterpret_u32_u8): Likewise.
15332 (vreinterpret_u32_u16): Likewise.
15333 (vreinterpret_u32_u64): Likewise.
15334 (vreinterpret_u32_p8): Likewise.
15335 (vreinterpret_u32_p16): Likewise.
15336 (vreinterpretq_u32_s8): Likewise.
15337 (vreinterpretq_u32_s16): Likewise.
15338 (vreinterpretq_u32_s32): Likewise.
15339 (vreinterpretq_u32_s64): Likewise.
15340 (vreinterpretq_u32_f32): Likewise.
15341 (vreinterpretq_u32_u8): Likewise.
15342 (vreinterpretq_u32_u16): Likewise.
15343 (vreinterpretq_u32_u64): Likewise.
15344 (vreinterpretq_u32_p8): Likewise.
15345 (vreinterpretq_u32_p16): Likewise.
15346
15347 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15348
15349 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
15350 Pattern extended.
15351 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
15352 (sqabs): Likewise.
15353 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
15354 (vqnegd_s64): Likewise.
15355 (vqabs_s64): Likewise.
15356 (vqabsd_s64): Likewise.
15357
15358 2014-04-22 Richard Henderson <rth@redhat.com>
15359
15360 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
15361 computation to the top of the loop.
15362
15363 2014-04-22 Renlin <renlin.li@arm.com>
15364 Jiong Wang <jiong.wang@arm.com>
15365
15366 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
15367 * config/aarch64/aarch64.c (aarch64_layout_frame)
15368 (aarch64_initial_elimination_offset): Likewise.
15369
15370 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
15371
15372 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
15373 Fix indentation.
15374
15375 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
15376
15377 * machmode.h (bitwise_mode_for_mode): Declare.
15378 * stor-layout.h (bitwise_type_for_mode): Likewise.
15379 * stor-layout.c (bitwise_mode_for_mode): New function.
15380 (bitwise_type_for_mode): Likewise.
15381 * builtins.c (fold_builtin_memory_op): Use it instead of
15382 int_mode_for_mode and build_nonstandard_integer_type.
15383
15384 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15385
15386 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
15387 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
15388 (*-*-solaris2*): Simplify.
15389 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
15390 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
15391 *-*-solaris2.9* handling.
15392
15393 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
15394 as bug.
15395 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
15396 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
15397 handling, simplify.
15398 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
15399 * configure: Regenerate.
15400
15401 * config/i386/sol2-9.h: Remove.
15402
15403 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
15404 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
15405 Remove Solaris 9 references.
15406
15407 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
15408
15409 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
15410 (floatuns<GPI:mode><GPF:mode>2): Remove.
15411 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
15412 and floatuns conversions.
15413 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
15414 and floatuns conversions.
15415 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
15416 (w1,w2): New mode attributes for inequal width conversions.
15417
15418 2014-04-22 Renlin Li <Renlin.Li@arm.com>
15419
15420 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
15421 the output asm format.
15422
15423 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
15424
15425 * config/aarch64/aarch64-simd.md
15426 (aarch64_cm<optab>di): Always split.
15427 (*aarch64_cm<optab>di): New.
15428 (aarch64_cmtstdi): Always split.
15429 (*aarch64_cmtstdi): New.
15430
15431 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15432
15433 PR tree-optimization/60823
15434 * omp-low.c (ipa_simd_modify_function_body): Go through
15435 all SSA_NAMEs and for those refering to vector arguments
15436 which are going to be replaced adjust SSA_NAME_VAR and,
15437 if it is a default definition, change it into a non-default
15438 definition assigned at the beginning of function from new_decl.
15439 (ipa_simd_modify_stmt_ops): Rewritten.
15440 * tree-dfa.c (set_ssa_default_def): When removing default def,
15441 check for NULL loc instead of NULL *loc.
15442
15443 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15444
15445 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
15446 restrictions on core registers for DImode values in Thumb2.
15447
15448 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15449
15450 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
15451 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
15452
15453 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15454
15455 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
15456 (*iordi_notzesidi_di): Likewise.
15457 (*iordi_notsesidi_di): Likewise.
15458
15459 2014-04-22 Ian Bolton <ian.bolton@arm.com>
15460
15461 * config/arm/arm-protos.h (tune_params): New struct members.
15462 * config/arm/arm.c: Initialise tune_params per processor.
15463 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
15464 for speed, based on new tune_params.
15465
15466 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
15467
15468 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
15469 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
15470 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
15471 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
15472 * config/aarch64/arm_neon.h (vrnd_f64): Added.
15473 (vrnda_f64): Likewise.
15474 (vrndi_f64): Likewise.
15475 (vrndm_f64): Likewise.
15476 (vrndn_f64): Likewise.
15477 (vrndp_f64): Likewise.
15478 (vrndx_f64): Likewise.
15479
15480 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15481
15482 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
15483 GET_MODE_SIZE argument is enum machine_mode.
15484
15485 2014-04-22 Jakub Jelinek <jakub@redhat.com>
15486
15487 PR target/60910
15488 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
15489 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
15490
15491 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
15492
15493 PR middle-end/60281
15494 * asan.c (asan_emit_stack_protection): Force the base to align to
15495 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
15496 appropriate bits if STRICT_ALIGNMENT.
15497 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
15498 when asan is on.
15499 (expand_used_vars): Leave a space in the stack frame for alignment
15500 if STRICT_ALIGNMENT.
15501
15502 2014-04-21 David Malcolm <dmalcolm@redhat.com>
15503
15504 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
15505 than a gimple.
15506 (gimple_store_p): Likewise.
15507 (gimple_assign_load_p): Likewise.
15508 (gimple_assign_cast_p): Likewise.
15509 (gimple_clobber_p): Likewise.
15510
15511 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
15512 rather than a gimple.
15513 (gimple_assign_cast_p): Likewise.
15514
15515 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15516
15517 PR target/60735
15518 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
15519 If mode is DDmode and TARGET_E500_DOUBLE allow move.
15520
15521 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
15522 more debug information for E500 if -mdebug=reg.
15523
15524 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
15525
15526 PR target/60909
15527 * config/i386/i386.c (ix86_expand_builtin)
15528 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
15529 register for target RTX.
15530 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
15531
15532 2014-04-18 Cong Hou <congh@google.com>
15533
15534 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
15535 the widen-mult pattern by handling two operands with different sizes,
15536 and operands whose size is smaller than half of the result type.
15537
15538 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15539
15540 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
15541 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
15542 (do_estimate_edge_time): Compute it.
15543 * ipa-inline.c (want_inline_small_function_p): Bypass
15544 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
15545
15546 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
15547
15548 * ipa-inline.c (spec_rem): New static variable.
15549 (dump_overall_stats): New function.
15550 (dump_inline_stats): New function.
15551
15552 2014-04-18 Richard Henderson <rth@redhat.com>
15553
15554 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
15555 to GET_MODE_SIZE, not a reg_class_t.
15556
15557 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15558
15559 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
15560 (vsx_xxmrglw_<mode>): Likewise.
15561
15562 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
15563
15564 PR target/60876
15565 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
15566 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
15567 (rs6000_init_hard_regno_mode_ok): Likewise.
15568
15569 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
15570
15571 * ipa-inline.c (inline_small_functions): Account only non-cold
15572 functions.
15573 * doc/invoke.texi (inline-unit-growth): Update documentation.
15574
15575 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
15576
15577 * config/rs6000/rs6000.md (addti3, subti3): New.
15578
15579 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
15580
15581 PR target/60863
15582 * config/i386/i386.c (ix86_expand_clear): Remove outdated
15583 comment. Check optimize_insn_for_size_p instead of
15584 optimize_insn_for_speed_p.
15585
15586 2014-04-17 Martin Jambor <mjambor@suse.cz>
15587
15588 * gimple-iterator.c (gsi_start_edge): New function.
15589 * gimple-iterator.h (gsi_start_edge): Declare.
15590 * tree-sra.c (single_non_eh_succ): New function.
15591 (disqualify_ops_if_throwing_stmt): Renamed to
15592 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
15593 having one non-EH successor BB.
15594 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
15595 generate loads into replacements.
15596 (sra_modify_assign): Likewise and and also use the simple path for
15597 such statements.
15598 (sra_modify_function_body): Commit statements on edges.
15599
15600 2014-04-17 Richard Biener <rguenther@suse.de>
15601
15602 PR middle-end/60849
15603 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
15604 comparison results and add clarifying comment.
15605
15606 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15607
15608 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
15609 (blank_mode): Initialize it.
15610 (emit_mode_size_inline, emit_mode_nunits_inline,
15611 emit_mode_inner_inline): New functions.
15612 (emit_insn_modes_h): Call them and surround their output with
15613 #if GCC_VERSION >= 4001 ... #endif.
15614 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
15615 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
15616 mode_* arrays if the argument is __builtin_constant_p.
15617 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
15618 is enum machine_mode.
15619
15620 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15621
15622 * passes.c (opt_pass::execute): Adjust.
15623 (pass_manager::execute_pass_mode_switching): Likewise.
15624 (early_local_passes::execute): Likewise.
15625 (execute_one_pass): Pass cfun to the pass's execute method.
15626 * tree-pass.h (opt_pass::execute): Add function * argument.
15627 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15628 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15629 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15630 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15631 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15632 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
15633 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
15634 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15635 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15636 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
15637 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
15638 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
15639 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
15640 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
15641 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15642 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15643 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15644 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
15645 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
15646 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15647 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15648 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15649 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15650 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15651 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15652 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15653 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15654 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15655 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15656 Adjust.
15657
15658 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15659
15660 * passes.c (opt_pass::gate): Take function * argument.
15661 (gate_all_early_local_passes): Merge into
15662 (early_local_passes::gate): this.
15663 (gate_all_early_optimizations): Merge into
15664 (all_early_optimizations::gate): this.
15665 (gate_all_optimizations): Mege into
15666 (all_optimizations::gate): this.
15667 (gate_all_optimizations_g): Merge into
15668 (all_optimizations_g::gate): this.
15669 (gate_rest_of_compilation): Mege into
15670 (rest_of_compilation::gate): this.
15671 (gate_postreload): Merge into
15672 (postreload::gate): this.
15673 (dump_one_pass): Pass cfun to the pass's gate method.
15674 (execute_ipa_summary_passes): Likewise.
15675 (execute_one_pass): Likewise.
15676 (ipa_write_summaries_2): Likewise.
15677 (ipa_write_optimization_summaries_1): Likewise.
15678 (ipa_read_summaries_1): Likewise.
15679 (ipa_read_optimization_summaries_1): Likewise.
15680 (execute_ipa_stmt_fixups): Likewise.
15681 * tree-pass.h (opt_pass::gate): Add function * argument.
15682 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
15683 combine-stack-adj.c, combine.c, compare-elim.c,
15684 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15685 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
15686 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
15687 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
15688 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
15689 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
15690 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15691 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
15692 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
15693 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
15694 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
15695 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
15696 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
15697 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15698 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15699 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15700 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15701 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15702 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15703 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15704 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15705 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15706 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
15707 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
15708 var-tracking.c, vtable-verify.c, web.c: Adjust.
15709
15710 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15711
15712 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
15713 * configure: Regenerate.
15714
15715 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15716
15717 * passes.c (dump_one_pass): don't check pass->has_gate.
15718 (execute_ipa_summary_passes): Likewise.
15719 (execute_one_pass): Likewise.
15720 (ipa_write_summaries_2): Likewise.
15721 (ipa_write_optimization_summaries_1): Likewise.
15722 (ipa_read_optimization_summaries_1): Likewise.
15723 (execute_ipa_stmt_fixups): Likewise.
15724 * tree-pass.h (pass_data::has_gate): Remove.
15725 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
15726 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
15727 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
15728 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
15729 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
15730 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
15731 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
15732 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
15733 gimple-low.c, gimple-ssa-isolate-paths.c,
15734 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
15735 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
15736 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
15737 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
15738 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
15739 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
15740 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
15741 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
15742 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
15743 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
15744 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
15745 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
15746 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
15747 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
15748 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
15749 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
15750 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
15751 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
15752 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
15753 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
15754 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
15755 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
15756 Adjust.
15757
15758 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15759
15760 * pass_manager.h (pass_manager::register_dump_files_1): Remove
15761 declaration.
15762 * passes.c (pass_manager::register_dump_files_1): Merge into
15763 (pass_manager::register_dump_files): this, and remove its handling of
15764 properties since the pass always has the properties anyway.
15765 (pass_manager::pass_manager): Adjust.
15766
15767 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
15768
15769 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
15770 * passes.c (pass_manager::register_dump_files_1): Remove dead code
15771 dealing with properties.
15772 (pass_manager::register_dump_files): Adjust.
15773
15774 2014-03-20 Mark Wielaard <mjw@redhat.com>
15775
15776 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
15777 then represent the bound as normal constant value.
15778
15779 2014-04-17 Jakub Jelinek <jakub@redhat.com>
15780
15781 PR target/60847
15782 Forward port from 4.8 branch
15783 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
15784
15785 * config/i386/bmiintrin.h (_blsi_u32): New.
15786 (_blsi_u64): Ditto.
15787 (_blsr_u32): Ditto.
15788 (_blsr_u64): Ditto.
15789 (_blsmsk_u32): Ditto.
15790 (_blsmsk_u64): Ditto.
15791 (_tzcnt_u32): Ditto.
15792 (_tzcnt_u64): Ditto.
15793
15794 2014-04-17 Kito Cheng <kito@0xlab.org>
15795
15796 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
15797
15798 2014-04-17 Richard Biener <rguenther@suse.de>
15799
15800 PR middle-end/60849
15801 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
15802 boolean results for comparisons.
15803
15804 2014-04-17 Richard Biener <rguenther@suse.de>
15805
15806 PR tree-optimization/60836
15807 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
15808 initial PHI args to be gimple values.
15809
15810 2014-04-17 Richard Biener <rguenther@suse.de>
15811
15812 PR tree-optimization/60841
15813 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
15814 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
15815 of stmts to SLP build.
15816 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
15817 (vect_analyze_slp): Likewise.
15818 (vect_analyze_slp_instance): Likewise.
15819 (vect_build_slp_tree): Limit overall SLP tree growth.
15820 * tree-vectorizer.h (vect_analyze_data_refs,
15821 vect_analyze_slp): Adjust prototypes.
15822
15823 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15824
15825 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
15826 Silvermont.
15827
15828 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15829
15830 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
15831 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
15832 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
15833 for TARGET_SLOW_PSHUFB
15834
15835 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
15836
15837 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
15838 * config/i386/i386.c (intel_cost): Ditto.
15839
15840 2014-04-17 Joey Ye <joey.ye@arm.com>
15841
15842 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
15843
15844 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15845
15846 * opts.c (common_handle_option): Disable -fipa-reference coorectly
15847 with -fuse-profile.
15848
15849 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15850
15851 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
15852 (type_all_derivations_known_p): New predicate.
15853 (type_all_ctors_visible_p): New predicate.
15854 (type_possibly_instantiated_p): New predicate.
15855 (get_odr_type): Compute all_derivations_known.
15856 (dump_odr_type): Dump the flag.
15857 (maybe_record_type): Cleanup.
15858 (record_target_from_binfo): Add bases_to_consider array;
15859 record bases for types w/o instances and skip CXX destructor.
15860 (possible_polymorphic_call_targets_1): Add bases_to_consider
15861 and consider_construction parameters; check if type may have instance.
15862 (get_polymorphic_call_info): Set maybe_in_construction to true
15863 when we know nothing.
15864 (record_targets_from_bases): Skip CXX destructors; they are
15865 never called for types in construction.
15866 (possible_polymorphic_call_targets): Do not record target when
15867 type may not have instance.
15868
15869 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
15870
15871 PR ipa/60854
15872 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
15873 external aliases alive, too.
15874
15875 2014-04-16 Andrew Pinski <apinski@cavium.com>
15876
15877 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
15878 definition.
15879
15880 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15881
15882 * final.c (compute_alignments): Do not apply loop alignment to a block
15883 falling through to the exit.
15884
15885 2014-04-16 Catherine Moore <clm@codesourcery.com>
15886
15887 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
15888 Adjust constraints for microMIPS store patterns.
15889
15890 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
15891
15892 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
15893
15894 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
15895
15896 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
15897 (append_use): Run at -O0.
15898 (append_vdef): Likewise.
15899 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
15900 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
15901
15902 2014-04-16 Jakub Jelinek <jakub@redhat.com>
15903
15904 PR tree-optimization/60844
15905 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
15906 (propagate_op_to_single_use, remove_visited_stmt_chain,
15907 linearize_expr, repropagate_negates, reassociate_bb): Use it
15908 instead of gsi_remove.
15909
15910 2014-04-16 Martin Jambor <mjambor@suse.cz>
15911
15912 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
15913 ipa_transforms_to_apply.
15914 (cgraph_function_versioning): Assert that old_node has empty
15915 ipa_transforms_to_apply.
15916 * trans-mem.c (ipa_tm_create_version): Likewise.
15917 * tree-inline.c (tree_function_versioning): Do not duplicate
15918 ipa_transforms_to_apply.
15919
15920 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15921
15922 PR target/60817
15923 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
15924 x86_64-*-* cases.
15925 Pass necessary as flags on 64-bit Solaris/x86.
15926 Use lowercase relocs for x86_64-*-*.
15927 * configure: Regenerate.
15928
15929 2014-04-15 Jan Hubicka <jh@suse.cz>
15930
15931 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
15932 (maybe_record_node, likely_target_p): Use it.
15933
15934 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15935
15936 PR target/60839
15937 Revert following patch
15938
15939 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15940
15941 PR target/60735
15942 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
15943 software floating point or no floating point registers, do not
15944 allow any type in the FPRs. Eliminate a test for SPE SIMD types
15945 in GPRs that occurs after we tested for GPRs that would never be
15946 true.
15947
15948 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
15949 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
15950 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
15951 specifically allow DDmode, since that does not use the SPE SIMD
15952 instructions.
15953
15954 2014-03-21 Mark Wielaard <mjw@redhat.com>
15955
15956 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
15957 as unsigned or int depending on type and value used.
15958
15959 2014-04-15 Richard Biener <rguenther@suse.de>
15960
15961 PR rtl-optimization/56965
15962 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
15963 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
15964 ... here.
15965 * alias.c (true_dependence_1): Do not call
15966 nonoverlapping_component_refs_p.
15967 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
15968 nonoverlapping_component_refs_p.
15969 (indirect_refs_may_alias_p): Likewise.
15970
15971 2014-04-15 Teresa Johnson <tejohnson@google.com>
15972
15973 * cfg.c (dump_bb_info): Fix flags check.
15974 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
15975
15976 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15977
15978 PR rtl-optimization/60663
15979 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
15980 avoid 0 cost.
15981
15982 2014-04-15 Richard Biener <rguenther@suse.de>
15983
15984 * lto-streamer.h (LTO_major_version): Bump to 4.
15985
15986 2014-04-15 Richard Biener <rguenther@suse.de>
15987
15988 * common.opt (lto_partition_model): New enum.
15989 (flto-partition=): Merge separate options with a single with argument,
15990 add -flto-partition=one support.
15991 * flag-types.h (enum lto_partition_model): Declare.
15992 * opts.c (finish_options): Remove duplicate -flto-partition=
15993 option check.
15994 * lto-wrapper.c (run_gcc): Adjust.
15995
15996 2014-04-15 Richard Biener <rguenther@suse.de>
15997
15998 * alias.c (ncr_compar): New function.
15999 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
16000
16001 2014-04-15 Richard Biener <rguenther@suse.de>
16002
16003 * alias.c (record_component_aliases): Do not walk BINFOs.
16004
16005 2014-04-15 Richard Biener <rguenther@suse.de>
16006
16007 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16008 Add struct function argument and adjust.
16009 (find_func_aliases_for_call): Likewise.
16010 (find_func_aliases): Likewise.
16011 (find_func_clobbers): Likewise.
16012 (intra_create_variable_infos): Likewise.
16013 (compute_points_to_sets): Likewise.
16014 (ipa_pta_execute): Adjust. Do not push/pop cfun.
16015
16016 2014-04-15 Richard Biener <rguenther@suse.de>
16017
16018 * tree.c (iterative_hash_expr): Use enum tree_code_class
16019 to store TREE_CODE_CLASS.
16020 (tree_block): Likewise.
16021 (tree_set_block): Likewise.
16022 * tree.h (fold_build_pointer_plus_loc): Use
16023 convert_to_ptrofftype_loc.
16024
16025 2014-04-15 Jakub Jelinek <jakub@redhat.com>
16026
16027 PR plugins/59335
16028 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
16029 added in 4.9.
16030
16031 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
16032
16033 * cfgloop.h (struct loop): Move force_vectorize down.
16034 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
16035 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
16036 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
16037 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
16038 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
16039 * tree-core.h (enum annot_expr_kind): Add new kind values.
16040 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
16041 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
16042 kinds.
16043 * tree.def (ANNOTATE_EXPR): Tweak comment.
16044
16045 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16046
16047 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
16048 cxa_pure_virtual).
16049
16050 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
16051
16052 * tree.h (TYPE_IDENTIFIER): Declare.
16053 * tree.c (subrange_type_for_debug_p): Use it.
16054 * godump.c (go_format_type): Likewise.
16055 * dwarf2out.c (is_cxx_auto, modified_type_die,
16056 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
16057 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
16058
16059 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16060
16061 PR lto/60820
16062 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
16063
16064 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
16065
16066 * config/i386/i386.c (examine_argument): Return bool. Return true if
16067 parameter should be passed in memory.
16068 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
16069 (construct_container): Update calls to examine_argument.
16070 (function_arg_advance_64): Ditto.
16071 (return_in_memory_32): Merge with ix86_return_in_memory.
16072 (return_in_memory_64): Ditto.
16073 (return_in_memory_ms_64): Ditto.
16074
16075 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
16076
16077 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
16078 * coverage.c (coverage_compute_profile_id): Handle externally visible
16079 symbols.
16080
16081 2014-04-14 Martin Jambor <mjambor@suse.cz>
16082
16083 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
16084 DECL_DISREGARD_INLINE_LIMITS functions.
16085
16086 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
16087
16088 PR target/60827
16089 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
16090
16091 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
16092
16093 PR target/60827
16094 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
16095 optimize_insn_for_speed_p instead of
16096 optimize_function_for_speed_p.
16097
16098 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
16099
16100 * doc/invoke.texi (free): Document AArch64.
16101
16102 2014-04-14 Richard Biener <rguenther@suse.de>
16103
16104 PR tree-optimization/60042
16105 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
16106 (insert_into_preds_of_block): Do not prevent PHI insertion
16107 for REFERENCE exprs here ...
16108 (eliminate_dom_walker::before_dom_children): ... but prevent
16109 their use here under similar conditions when applied to the
16110 IL after PRE optimizations.
16111
16112 2014-04-14 Richard Biener <rguenther@suse.de>
16113
16114 * passes.def: Move early points-to after early SRA.
16115
16116 2014-04-14 Richard Biener <rguenther@suse.de>
16117
16118 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
16119 check for which sign-changes we allow when forwarding
16120 a converted value into a switch.
16121
16122 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
16123
16124 * stor-layout.c (place_field): Finalize non-constant offset for the
16125 field, if any.
16126
16127 2014-04-14 Richard Biener <rguenther@suse.de>
16128
16129 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
16130 as argument.
16131 (expand_switch_using_bit_tests_p): Likewise.
16132 (process_switch): Compute and pass on speed_p based on the
16133 switch stmt.
16134 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
16135 optimize_bb_for_speed_p.
16136
16137 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
16138
16139 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
16140 * function.h (struct function): Rename has_force_vect_loops into
16141 has_force_vectorize_loops.
16142 * lto-streamer-in.c (input_cfg): Adjust for renaming.
16143 (input_struct_function_base): Likewise.
16144 * lto-streamer-out.c (output_cfg): Likewise.
16145 (output_struct_function_base): Likewise.
16146 * omp-low.c (expand_omp_simd): Likewise.
16147 * tree-cfg.c (move_sese_region_to_fn): Likewise.
16148 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
16149 (version_loop_for_if_conversion): Likewise.
16150 (tree_if_conversion): Likewise.
16151 (main_tree_if_conversion): Likewise.
16152 (gate_tree_if_conversion): Likewise.
16153 * tree-inline.c (copy_loops): Likewise.
16154 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
16155 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
16156 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
16157 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
16158 * tree-vectorizer.c (vectorize_loops): Likewise.
16159 * tree-vectorizer.h (unlimited_cost_model): Likewise.
16160
16161 2014-04-14 Richard Biener <rguenther@suse.de>
16162
16163 PR lto/60720
16164 * lto-streamer-out.c (wrap_refs): New function.
16165 (lto_output): Wrap symbol references in global initializes in
16166 type-preserving MEM_REFs.
16167
16168 2014-04-14 Christian Bruel <christian.bruel@st.com>
16169
16170 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
16171
16172 2014-04-14 Christian Bruel <christian.bruel@st.com>
16173
16174 * config/sh/sh.md (setmemqi): New expand pattern.
16175 * config/sh/sh.h (CLEAR_RATIO): Define.
16176 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
16177 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
16178
16179 2014-04-14 Richard Biener <rguenther@suse.de>
16180
16181 PR middle-end/55022
16182 * fold-const.c (negate_expr_p): Don't negate directional rounding
16183 division.
16184 (fold_negate_expr): Likewise.
16185
16186 2014-04-14 Richard Biener <rguenther@suse.de>
16187
16188 PR tree-optimization/59817
16189 PR tree-optimization/60453
16190 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
16191 recursion to catch all CHRECs in the scalar evolution and restrict
16192 the predicate for the remains appropriately.
16193
16194 2014-04-12 Catherine Moore <clm@codesourcery.com>
16195
16196 * config/mips/constraints.md: Add new register constraint "kb".
16197 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
16198 (*movhi_internal): Likewise.
16199 (*movqi_internal): Likewise.
16200 * config/mips/mips.h (M16_STORE_REGS): New register class.
16201 (REG_CLASS_NAMES): Add M16_STORE_REGS.
16202 (REG_CLASS_CONTENTS): Likewise.
16203 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
16204
16205 2014-04-11 Tobias Burnus <burnus@net-b.de>
16206
16207 PR c/60194
16208 * doc/invoke.texi (-Wformat-signedness): Document it.
16209 (Wformat=2): Mention that this enables -Wformat-signedness.
16210
16211 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16212
16213 * common/config/epiphany/epiphany-common.c
16214 (epiphany_option_optimization_table): Enable section anchors by
16215 default at -O1 or higher.
16216 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
16217 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
16218 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
16219 carries no extra cost.
16220 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
16221 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
16222 * config/epiphany/predicates.md (memclob_operand): New predicate.
16223 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
16224 Use memclob_operand predicate and X constraint for operand 3.
16225
16226 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16227
16228 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
16229 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
16230 its operands.
16231
16232 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
16233
16234 PR rtl-optimization/60651
16235 * mode-switching.c (optimize_mode_switching): Make sure to emit
16236 sets of a lower numbered entity before sets of a higher numbered
16237 entity to a mode of the same or lower priority.
16238 When creating a seginfo for a basic block that starts with a code
16239 label, move the insertion point past the code label.
16240 (new_seginfo): Document and enforce requirement that
16241 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
16242 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
16243 * doc/tm.texi: Regenerate.
16244
16245 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
16246
16247 PR target/60811
16248 * config/arc/arc.c (arc_save_restore): Fix assert typo.
16249
16250 2013-04-11 Jakub Jelinek <jakub@redhat.com>
16251
16252 * BASE-VER: Set to 4.10.0.
16253
16254 2014-04-11 Tobias Burnus <burnus@net-b.de>
16255
16256 PR other/59055
16257 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
16258 * doc/gcc.texi (Service): Update description in the @menu
16259 * doc/invoke.texi (Option Summary): Remove misplaced and
16260 duplicated @menu.
16261
16262 2014-04-11 Steve Ellcey <sellcey@mips.com>
16263 Jakub Jelinek <jakub@redhat.com>
16264
16265 PR middle-end/60556
16266 * expr.c (convert_move): Use emit_store_flag_force instead of
16267 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
16268 argument to it.
16269
16270 2014-04-11 Richard Biener <rguenther@suse.de>
16271
16272 PR middle-end/60797
16273 * varasm.c (assemble_alias): Avoid endless error reporting
16274 recursion by setting TREE_ASM_WRITTEN.
16275
16276 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16277
16278 * config/s390/s390.md: Add a splitter for NOT rtx.
16279
16280 2014-04-11 Jakub Jelinek <jakub@redhat.com>
16281
16282 PR rtl-optimization/60663
16283 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
16284
16285 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
16286 Jakub Jelinek <jakub@redhat.com>
16287
16288 PR lto/60567
16289 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
16290 flag from decl_node to node.
16291
16292 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16293
16294 PR debug/60655
16295 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
16296 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
16297 ameliorating the cases where it can be.
16298
16299 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
16300
16301 Revert
16302 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
16303
16304 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
16305 (loadsync_<mode>): Change mode.
16306 (load_quadpti, store_quadpti): New.
16307 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
16308 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
16309 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
16310
16311 2014-04-09 Cong Hou <congh@google.com>
16312
16313 PR testsuite/60773
16314 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
16315 documentation.
16316
16317 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16318
16319 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
16320 instead of vnor to exploit possible fusion opportunity in the
16321 future.
16322 (altivec_expand_vec_perm_const_le): Likewise.
16323
16324 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
16325
16326 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
16327 (loadsync_<mode>): Change mode.
16328 (load_quadpti, store_quadpti): New.
16329 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
16330 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
16331
16332 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
16333
16334 PR target/60763
16335 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
16336 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
16337 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
16338
16339 2014-04-08 Richard Biener <rguenther@suse.de>
16340
16341 PR middle-end/60706
16342 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
16343 a 64bit widest int print double-int similar to on HWI64 hosts.
16344
16345 2014-04-08 Richard Biener <rguenther@suse.de>
16346
16347 PR tree-optimization/60785
16348 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
16349 default defs properly.
16350
16351 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
16352
16353 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
16354 (Weffc++): Likewise.
16355
16356 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
16357
16358 * ipa-devirt.c (maybe_record_node): When node is not recorded,
16359 set completep to false rather than true.
16360
16361 2014-04-07 Douglas B Rupp <rupp@adacore.com>
16362
16363 PR target/60504
16364 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
16365 ARM_TARGET2_DWARF_FORMAT.
16366
16367 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
16368
16369 PR target/60609
16370 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
16371 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
16372 ADDR_DIFF_VEC.
16373
16374 2014-04-07 Richard Biener <rguenther@suse.de>
16375
16376 PR tree-optimization/60766
16377 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
16378 (may_eliminate_iv): Convert cand_value_at result to desired type.
16379
16380 2014-04-07 Jason Merrill <jason@redhat.com>
16381
16382 PR c++/60731
16383 * common.opt (-fno-gnu-unique): Add.
16384 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
16385
16386 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16387
16388 * haifa-sched.c: Fix outdated function reference and minor
16389 grammar errors in introductory comment.
16390
16391 2014-04-07 Richard Biener <rguenther@suse.de>
16392
16393 PR middle-end/60750
16394 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
16395 for noreturn calls.
16396 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
16397
16398 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
16399
16400 PR debug/55794
16401 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
16402 size accounting for thunks.
16403 (pa_asm_output_mi_thunk): Use final_start_function() and
16404 final_end_function() to output function start and end directives.
16405
16406 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
16407
16408 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
16409 device specific ISA/ feature information. Remove short_sp and
16410 errata_skip ds. Add avr_device_specific_features enum to have device
16411 specific info.
16412 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
16413 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
16414 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
16415 updated device specific info.
16416 * config/avr/avr-mcus.def: Merge device specific details to
16417 dev_attribute field.
16418 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
16419 errata_skip.
16420 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
16421 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
16422 assembler if RMW isa supported by current device.
16423 * config/avr/genmultilib.awk: Update as device info structure changed.
16424 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
16425
16426 2014-04-04 Cong Hou <congh@google.com>
16427
16428 PR tree-optimization/60656
16429 * tree-vect-stmts.c (supportable_widening_operation):
16430 Fix a bug that elements in a vector with vect_used_by_reduction
16431 property are incorrectly reordered when the operation on it is not
16432 consistant with the one in reduction operation.
16433
16434 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
16435
16436 PR rtl-optimization/60155
16437 * gcse.c (record_set_data): New function.
16438 (single_set_gcse): New function.
16439 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
16440 (hoist_code): Likewise.
16441 (get_pressure_class_and_nregs): Likewise.
16442
16443 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
16444
16445 * explow.c (probe_stack_range): Emit a final optimization blockage.
16446
16447 2014-04-04 Anthony Green <green@moxielogic.com>
16448
16449 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
16450 typos.
16451
16452 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
16453
16454 PR ipa/59626
16455 * lto-cgraph.c (input_overwrite_node): Check that partitioning
16456 flags are set only during streaming.
16457 * ipa.c (process_references, walk_polymorphic_call_targets,
16458 symtab_remove_unreachable_nodes): Drop bodies of always inline
16459 after early inlining.
16460 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
16461
16462 2014-04-04 Jakub Jelinek <jakub@redhat.com>
16463 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16464
16465 PR debug/60655
16466 * dwarf2out.c (const_ok_for_output_1): Reject expressions
16467 containing a NOT.
16468
16469 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16470
16471 PR bootstrap/60743
16472 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
16473 duration.
16474 (cortex_a53_fdivd): Likewise.
16475
16476 2014-04-04 Martin Jambor <mjambor@suse.cz>
16477
16478 PR ipa/60640
16479 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
16480 Adjust all callers.
16481 * cgraph.c (clone_of_p): Also return true if thunks match.
16482 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
16483 cgraph_function_or_thunk_node and an obsolete comment.
16484 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
16485 file.
16486 (build_function_decl_skip_args): Likewise.
16487 (set_new_clone_decl_and_node_flags): New function.
16488 (duplicate_thunk_for_node): Likewise.
16489 (redirect_edge_duplicating_thunks): Likewise.
16490 (cgraph_clone_node): New parameter args_to_skip, pass it to
16491 redirect_edge_duplicating_thunks which is called instead of
16492 cgraph_redirect_edge_callee.
16493 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
16494 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
16495
16496 2014-04-04 Jeff Law <law@redhat.com>
16497
16498 PR target/60657
16499 * config/arm/predicates.md (const_int_I_operand): New predicate.
16500 (const_int_M_operand): Similarly.
16501 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
16502 const_int_operand.
16503 (insv_t2, extv_reg, extzv_t2): Likewise.
16504 (load_multiple_with_writeback): Similarly for const_int_I_operand.
16505 (pop_multiple_with_writeback_and_return): Likewise.
16506 (vfp_pop_multiple_with_writeback): Likewise
16507
16508 2014-04-04 Richard Biener <rguenther@suse.de>
16509
16510 PR ipa/60746
16511 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
16512 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
16513 non-GIMPLE_LABELs.
16514 * gimplify.h (gimple_add_tmp_var_fn): Declare.
16515 * gimplify.c (gimple_add_tmp_var_fn): New function.
16516 * gimple-expr.h (create_tmp_reg_fn): Declare.
16517 * gimple-expr.c (create_tmp_reg_fn): New function.
16518 * gimple-low.c (record_vars_into): Don't change cfun.
16519 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
16520 code generation without cfun.
16521
16522 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
16523
16524 PR bootstrap/60719
16525 * Makefile.in (install-driver): Fix shell scripting.
16526
16527 2014-04-03 Cong Hou <congh@google.com>
16528
16529 PR tree-optimization/60505
16530 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
16531 threshold of number of iterations below which no vectorization
16532 will be done.
16533 * tree-vect-loop.c (new_loop_vec_info):
16534 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
16535 * tree-vect-loop.c (vect_analyze_loop_operations):
16536 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
16537 * tree-vect-loop.c (vect_transform_loop):
16538 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
16539 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
16540 of iterations of the loop and see if we should build the epilogue.
16541
16542 2014-04-03 Richard Biener <rguenther@suse.de>
16543
16544 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
16545 (streamer_tree_cache_create): Adjust.
16546 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
16547 to allow optional nodes array.
16548 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
16549 (streamer_tree_cache_append): Likewise.
16550 (streamer_tree_cache_create): Create nodes array optionally
16551 as specified by parameter.
16552 * lto-streamer-out.c (create_output_block): Avoid maintaining
16553 the node array in the writer cache.
16554 (DFS_write_tree): Remove assertion.
16555 (produce_asm_for_decls): Free the out decl state hash table early.
16556 * lto-streamer-in.c (lto_data_in_create): Adjust for
16557 streamer_tree_cache_create prototype change.
16558
16559 2014-04-03 Richard Biener <rguenther@suse.de>
16560
16561 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
16562 set TREE_CHAIN to NULL_TREE.
16563
16564 2014-04-03 Richard Biener <rguenther@suse.de>
16565
16566 PR tree-optimization/60740
16567 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
16568 over all GIMPLE_COND operands.
16569
16570 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
16571
16572 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
16573 (Weffc++): Remove Scott's numbering, merge lists and reference
16574 Wnon-virtual-dtor.
16575
16576 2014-04-03 Nick Clifton <nickc@redhat.com>
16577
16578 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
16579 properly.
16580
16581 2014-04-03 Martin Jambor <mjambor@suse.cz>
16582
16583 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
16584 mention gcc_unreachable before failing.
16585 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
16586 removed symbols.
16587
16588 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
16589
16590 PR ipa/60659
16591 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
16592 inconsistent code and instead mark the context inconsistent.
16593 (possible_polymorphic_call_targets): For inconsistent contexts
16594 return empty complete list.
16595
16596 2014-04-02 Anthony Green <green@moxielogic.com>
16597
16598 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
16599 (extendqisi2, extendhisi2): Define.
16600 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
16601 (WCHAR_TYPE): Change to unsigned int.
16602
16603 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16604
16605 PR tree-optimization/60733
16606 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
16607 insertion point for PHI candidates to be the end of the feeding
16608 block for the PHI argument.
16609
16610 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
16611
16612 PR rtl-optimization/60650
16613 * lra-constraints.c (process_alt_operands): Decrease reject for
16614 earlyclobber matching.
16615
16616 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16617
16618 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
16619
16620 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16621
16622 * config/spu/spu.c (pad_bb): Do not crash when the last
16623 insn is CODE_FOR_blockage.
16624
16625 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16626
16627 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
16628 lies outside the target mode.
16629
16630 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16631
16632 PR target/60735
16633 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16634 software floating point or no floating point registers, do not
16635 allow any type in the FPRs. Eliminate a test for SPE SIMD types
16636 in GPRs that occurs after we tested for GPRs that would never be
16637 true.
16638
16639 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16640 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16641 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
16642 specifically allow DDmode, since that does not use the SPE SIMD
16643 instructions.
16644
16645 2014-04-02 Richard Biener <rguenther@suse.de>
16646
16647 PR middle-end/60729
16648 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
16649 MODE_INTs. Properly use negv_optab.
16650 (expand_abs): Likewise.
16651
16652 2014-04-02 Richard Biener <rguenther@suse.de>
16653
16654 PR bootstrap/60719
16655 * Makefile.in (install-driver): Guard extra installs with special
16656 names properly.
16657
16658 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16659
16660 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16661 Document vec_vgbbd.
16662
16663 2014-04-01 Richard Henderson <rth@redhat.com>
16664
16665 PR target/60704
16666 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
16667 alternative enabled before register allocation.
16668
16669 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
16670
16671 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
16672 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
16673 typo.
16674 (nios2_large_got_address): Remove unneeded 'sym' parameter.
16675 (nios2_got_address): Update nios2_large_got_address call site.
16676 (nios2_delegitimize_address): New function.
16677 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
16678 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
16679 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
16680
16681 2014-04-01 Martin Husemann <martin@duskware.de>
16682
16683 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
16684 for -mabi=32.
16685
16686 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
16687
16688 PR rtl-optimization/60604
16689 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
16690 check from register_operand.
16691 (register_operand): Redefine in terms of general_operand.
16692 (nonmemory_operand): Use register_operand for the non-constant cases.
16693
16694 2014-04-01 Richard Biener <rguenther@suse.de>
16695
16696 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
16697
16698 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
16699
16700 * doc/invoke.texi (mapp-regs): Clarify.
16701
16702 2014-03-31 Ulrich Drepper <drepper@gmail.com>
16703
16704 * config/i386/avx512fintrin.h (__v32hi): Define type.
16705 (__v64qi): Likewise.
16706 (_mm512_set1_epi8): Define.
16707 (_mm512_set1_epi16): Define.
16708 (_mm512_set4_epi32): Define.
16709 (_mm512_set4_epi64): Define.
16710 (_mm512_set4_pd): Define.
16711 (_mm512_set4_ps): Define.
16712 (_mm512_setr4_epi64): Define.
16713 (_mm512_setr4_epi32): Define.
16714 (_mm512_setr4_pd): Define.
16715 (_mm512_setr4_ps): Define.
16716 (_mm512_setzero_epi32): Define.
16717
16718 2014-03-31 Martin Jambor <mjambor@suse.cz>
16719
16720 PR middle-end/60647
16721 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
16722 callsite_arguments_match_p. Updated all callers. Also check types of
16723 corresponding formal parameters and actual arguments.
16724 (not_all_callers_have_enough_arguments_p) Renamed to
16725 some_callers_have_mismatched_arguments_p.
16726
16727 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
16728
16729 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
16730
16731 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
16732
16733 PR target/60034
16734 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
16735 section anchor.
16736
16737 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
16738
16739 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
16740 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
16741 Split out
16742 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
16743 Use FMAMODE_NOVF512 mode iterator.
16744 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
16745 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
16746 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
16747 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
16748 Split out
16749 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
16750 Use VF_128_256 mode iterator.
16751 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
16752 Ditto.
16753
16754 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16755
16756 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
16757 static chain if needed.
16758
16759 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16760
16761 PR target/60697
16762 * lra-constraints.c (index_part_to_reg): New.
16763 (process_address): Use it.
16764
16765 2014-03-27 Jeff Law <law@redhat.com>
16766 Jakub Jelinek <jakub@redhat.com>
16767
16768 PR target/60648
16769 * expr.c (do_tablejump): Use simplify_gen_binary rather than
16770 gen_rtx_{PLUS,MULT} to build up the address expression.
16771
16772 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
16773 creating non-canonical RTL.
16774
16775 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16776
16777 PR ipa/60243
16778 * ipa-inline.c (want_inline_small_function_p): Short circuit large
16779 functions; reorganize to make cheap checks first.
16780 (inline_small_functions): Do not estimate growth when dumping;
16781 it is expensive.
16782 * ipa-inline.h (inline_summary): Add min_size.
16783 (growth_likely_positive): New function.
16784 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
16785 (set_cond_stmt_execution_predicate): Cleanup.
16786 (estimate_edge_size_and_time): Compute min_size.
16787 (estimate_calls_size_and_time): Likewise.
16788 (estimate_node_size_and_time): Likewise.
16789 (inline_update_overall_summary): Update min_size.
16790 (do_estimate_edge_time): Likewise.
16791 (do_estimate_edge_size): Update.
16792 (do_estimate_edge_hints): Update.
16793 (growth_likely_positive): New function.
16794
16795 2014-03-28 Jakub Jelinek <jakub@redhat.com>
16796
16797 PR target/60693
16798 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
16799 also if addr has VOIDmode.
16800
16801 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16802
16803 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
16804 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
16805 Declare extern.
16806 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
16807 instructions as well as AdvancedSIMD loads.
16808
16809 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16810
16811 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
16812 Use crypto_aese type.
16813 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
16814 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
16815 crypto_aese, crypto_aesmc. Move to types.md.
16816 * config/arm/types.md (crypto_aes): Split into crypto_aese,
16817 crypto_aesmc.
16818 * config/arm/iterators.md (crypto_type): Likewise.
16819
16820 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
16821
16822 * cgraph.c: Include expr.h and tree-dfa.h.
16823 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
16824 remove LHS.
16825
16826 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
16827
16828 PR target/60675
16829 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
16830 regs from checking multi-reg pseudos.
16831
16832 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16833
16834 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
16835
16836 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16837
16838 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
16839 if it would clobber the stack pointer, even temporarily.
16840
16841 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
16842
16843 * mode-switching.c: Make small adjustments to the top comment.
16844
16845 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16846
16847 * config/rs6000/constraints.md (wD constraint): New constraint to
16848 match the constant integer to get the top DImode/DFmode out of a
16849 vector in a VSX register.
16850
16851 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
16852 match the constant integer to get the top DImode/DFmode out of a
16853 vector in a VSX register.
16854
16855 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
16856 for ISA 2.07.
16857
16858 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16859 vbpermq builtins.
16860
16861 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
16862 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
16863
16864 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
16865 Optimize vec_extract of 64-bit values, where the value being
16866 extracted is in the top word, where we can use scalar
16867 instructions. Add direct move and store support. Combine the big
16868 endian/little endian vector select load support into a single insn.
16869 (vsx_extract_<mode>_internal1): Likewise.
16870 (vsx_extract_<mode>_internal2): Likewise.
16871 (vsx_extract_<mode>_load): Likewise.
16872 (vsx_extract_<mode>_store): Likewise.
16873 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
16874 combined into vsx_extract_<mode>_load.
16875 (vsx_extract_<mode>_one_le): Likewise.
16876
16877 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
16878 define the top 64-bit vector element.
16879
16880 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
16881 constraint.
16882
16883 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16884 Document vec_vbpermq builtin.
16885
16886 PR target/60672
16887 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
16888 enable use of xxsldwi and xxpermdi builtin functions.
16889 (vec_xxpermdi): Likewise.
16890
16891 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16892 Document use of vec_xxsldwi and vec_xxpermdi builtins.
16893
16894 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
16895
16896 PR rtl-optimization/60650
16897 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
16898 first_p. Use it.
16899 (find_spills_for): New.
16900 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
16901 Spill all pseudos on the second iteration.
16902
16903 2014-03-27 Marek Polacek <polacek@redhat.com>
16904
16905 PR c/50347
16906 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
16907 types.
16908
16909 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16910
16911 * config/s390/s390.c (s390_can_use_return_insn): Check for
16912 call-saved FPRs on 31 bit.
16913
16914 2014-03-27 Jakub Jelinek <jakub@redhat.com>
16915
16916 PR middle-end/60682
16917 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
16918 if they need regimplification, just drop them instead of
16919 calling gimple_regimplify_operands on them.
16920
16921 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
16922
16923 PR target/60580
16924 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
16925 (aarch64_frame_pointer_required): Adjust logic.
16926 (aarch64_can_eliminate): Adjust logic.
16927 (aarch64_override_options_after_change): Adjust logic.
16928
16929 2014-03-27 Dehao Chen <dehao@google.com>
16930
16931 * ipa-inline.c (early_inliner): Update node's inline info.
16932
16933 2014-03-26 Dehao Chen <dehao@google.com>
16934
16935 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
16936 compiler inserted conditional jumps for NAN float check.
16937
16938 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16939
16940 * ubsan.h (ubsan_create_data): Change second argument's type
16941 to const location_t *.
16942 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
16943 _("<unknown>").
16944 (ubsan_create_data): Change second argument to const location_t *PLOC.
16945 Create Loc field whenever PLOC is non-NULL.
16946 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
16947 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
16948 callers.
16949
16950 PR other/59545
16951 * real.c (real_to_integer2): Change type of low to UHWI.
16952
16953 2014-03-26 Tobias Burnus <burnus@net-b.de>
16954
16955 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
16956 (CILK_SELF_SPECS): New define.
16957 (driver_self_specs): Use it.
16958
16959 2014-03-26 Richard Biener <rguenther@suse.de>
16960
16961 * tree-pretty-print.c (percent_K_format): Implement special
16962 case for LTO and its stripped down BLOCK tree.
16963
16964 2014-03-26 Jakub Jelinek <jakub@redhat.com>
16965
16966 PR sanitizer/60636
16967 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
16968
16969 * tree-vrp.c (simplify_internal_call_using_ranges): If only
16970 one range is range_int_cst_p, but not both, at least optimize
16971 addition/subtraction of 0 and multiplication by 0 or 1.
16972 * gimple-fold.c (gimple_fold_call): Fold
16973 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
16974 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
16975 INTEGER_CSTs, try to fold at least x * 0 and y - y.
16976
16977 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
16978
16979 PR rtl-optimization/60452
16980 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
16981 <case REG>: Return 1 for invalid offsets from the frame pointer.
16982
16983 2014-03-26 Marek Polacek <polacek@redhat.com>
16984
16985 PR c/37428
16986 * doc/extend.texi (C Extensions): Mention variable-length arrays in
16987 a structure/union.
16988
16989 2014-03-26 Marek Polacek <polacek@redhat.com>
16990
16991 PR c/39525
16992 * doc/extend.texi (Designated Inits): Describe what happens to omitted
16993 field members.
16994
16995 2014-03-26 Marek Polacek <polacek@redhat.com>
16996
16997 PR other/59545
16998 * ira-color.c (update_conflict_hard_regno_costs): Perform the
16999 multiplication in unsigned type.
17000
17001 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
17002
17003 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
17004
17005 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
17006
17007 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
17008
17009 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
17010
17011 PR ipa/60315
17012 * cif-code.def (UNREACHABLE) New code.
17013 * ipa-inline.c (inline_small_functions): Skip edges to
17014 __builtlin_unreachable.
17015 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
17016 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
17017 predicate to __bulitin_unreachable.
17018 (set_cond_stmt_execution_predicate): Fix issue when
17019 invert_tree_comparison returns ERROR_MARK.
17020 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
17021 propagate to inline clones.
17022 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
17023 to unreachable.
17024 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
17025 * cgraphclones.c (cgraph_clone_node): If call destination is already
17026 ureachable, do not redirect it back.
17027 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
17028 unreachable.
17029
17030 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
17031
17032 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
17033 Do not modify inline clones.
17034
17035 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17036
17037 * config/i386/i386.md (general_sext_operand): New mode attr.
17038 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
17039 don't generate (sign_extend (const_int)).
17040 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
17041 operands[2]. Use We constraint instead of <i> and
17042 <general_sext_operand> predicate instead of <general_operand>.
17043 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
17044 * config/i386/constraints.md (We): New constraint.
17045 * config/i386/predicates.md (x86_64_sext_operand,
17046 sext_operand): New predicates.
17047
17048 2014-03-25 Martin Jambor <mjambor@suse.cz>
17049
17050 PR ipa/60600
17051 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
17052 inconsistent devirtualizations to __builtin_unreachable.
17053
17054 2014-03-25 Marek Polacek <polacek@redhat.com>
17055
17056 PR c/35449
17057 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
17058
17059 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
17060
17061 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
17062 order of elements for big-endian.
17063
17064 2014-03-25 Richard Biener <rguenther@suse.de>
17065
17066 PR middle-end/60635
17067 * gimplify-me.c (gimple_regimplify_operands): Update the
17068 re-gimplifed stmt.
17069
17070 2014-03-25 Martin Jambor <mjambor@suse.cz>
17071
17072 PR ipa/59176
17073 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
17074 (lto_output_varpool_node): Likewise.
17075 (input_overwrite_node): Likewise.
17076 (input_varpool_node): Likewise.
17077
17078 2014-03-25 Richard Biener <rguenther@suse.de>
17079
17080 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
17081 (run_gcc): Likewise.
17082
17083 2014-03-25 Jakub Jelinek <jakub@redhat.com>
17084
17085 * combine.c (simplify_compare_const): Add MODE argument.
17086 Handle mode_width 0 as very large mode_width.
17087 (try_combine, simplify_comparison): Adjust callers.
17088
17089 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
17090 type to avoid signed integer overflow.
17091 * explow.c (plus_constant): Likewise.
17092
17093 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
17094
17095 * doc/generic.texi: Correct typos.
17096
17097 2014-03-24 Tobias Burnus <burnus@net-b.de>
17098
17099 * doc/invoke.texi (-flto): Expand section about
17100 using static libraries with LTO.
17101
17102 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17103
17104 PR rtl-optimization/60501
17105 * optabs.def (addptr3_optab): New optab.
17106 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
17107 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
17108 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
17109
17110 * lra.c (emit_add3_insn): Use the addptr pattern if available.
17111
17112 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
17113
17114 2014-03-24 Ulrich Drepper <drepper@gmail.com>
17115
17116 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
17117 _mm512_set1_pd.
17118
17119 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
17120 (_mm256_undefined_ps): Define.
17121 (_mm256_undefined_pd): Define.
17122 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
17123 (_mm_undefined_pd): Define.
17124 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
17125 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
17126 (_mm512_undefined_ps): Define.
17127 (_mm512_undefined_pd): Define.
17128 Use _mm*_undefined_*.
17129 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
17130
17131 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
17132
17133 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
17134 (lshr_simd): DI mode added.
17135 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
17136 (aarch64_ushr_simddi): Likewise.
17137 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
17138 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
17139 (vshrd_n_u64): Likewise.
17140
17141 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17142
17143 * Makefile.in (s-macro_list): Depend on cc1.
17144
17145 2014-03-23 Teresa Johnson <tejohnson@google.com>
17146
17147 * ipa-utils.c (ipa_print_order): Use specified dump file.
17148
17149 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
17150
17151 PR rtl-optimization/60601
17152 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
17153
17154 * gcc.c (eval_spec_function): Initialize save_growing_value.
17155
17156 2014-03-22 Jakub Jelinek <jakub@redhat.com>
17157
17158 PR sanitizer/60613
17159 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
17160 code == MINUS_EXPR, never swap op0 with op1.
17161
17162 * toplev.c (init_local_tick): Avoid signed integer multiplication
17163 overflow.
17164 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
17165 shift by first operand's bitsize.
17166
17167 2014-03-21 Jakub Jelinek <jakub@redhat.com>
17168
17169 PR target/60610
17170 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
17171 redefine to 1 or 0.
17172 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
17173 TARGET_ISA_64BIT_P(x).
17174
17175 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17176
17177 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
17178 pattern for vector nor instead of subtract from splat(-1).
17179 (altivec_expand_vec_perm_const_le): Likewise.
17180
17181 2014-03-21 Richard Henderson <rth@twiddle.net>
17182
17183 PR target/60598
17184 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
17185 related insns after epilogue_completed.
17186
17187 2014-03-21 Martin Jambor <mjambor@suse.cz>
17188
17189 PR ipa/59176
17190 * cgraph.h (symtab_node): New flag body_removed.
17191 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
17192 when removing bodies.
17193 * symtab.c (dump_symtab_base): Dump body_removed flag.
17194 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
17195 had their bodies removed.
17196
17197 2014-03-21 Martin Jambor <mjambor@suse.cz>
17198
17199 PR ipa/60419
17200 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
17201 in the border.
17202
17203 2014-03-21 Richard Biener <rguenther@suse.de>
17204
17205 PR tree-optimization/60577
17206 * tree-core.h (struct tree_base): Document nothrow_flag use
17207 in DECL_NONALIASED.
17208 * tree.h (DECL_NONALIASED): New.
17209 (may_be_aliased): Adjust.
17210 * coverage.c (build_var): Set DECL_NONALIASED.
17211
17212 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17213
17214 * expr.c (expand_expr_real_1): Remove outdated comment.
17215
17216 2014-03-20 Jakub Jelinek <jakub@redhat.com>
17217
17218 PR middle-end/60597
17219 * ira.c (adjust_cleared_regs): Call copy_rtx on
17220 *reg_equiv[REGNO (loc)].src_p before passing it to
17221 simplify_replace_fn_rtx.
17222
17223 PR target/60568
17224 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
17225 into CONST, put pic register as first operand of PLUS. Use
17226 gen_const_mem for both 32-bit and 64-bit PIC got loads.
17227
17228 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17229
17230 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
17231
17232 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17233
17234 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
17235 around for store forwarding issue in the FPU on the UT699.
17236 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
17237 loads and operations if -mfix-ut699 is specified.
17238 (divtf3_hq): Tweak attribute.
17239 (sqrttf2_hq): Likewise.
17240
17241 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
17242
17243 * calls.c (store_one_arg): Remove incorrect const qualification on the
17244 type of the temporary.
17245 * cfgexpand.c (expand_return): Likewise.
17246 * expr.c (expand_constructor): Likewise.
17247 (expand_expr_real_1): Likewise.
17248
17249 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17250
17251 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
17252 of parts.
17253
17254 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
17255
17256 PR target/60039
17257 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
17258
17259 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
17260
17261 * config/arm/aarch-common-protos.h
17262 (alu_cost_table): Fix spelling of "extend".
17263 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
17264
17265 2014-03-19 Richard Biener <rguenther@suse.de>
17266
17267 PR middle-end/60553
17268 * tree-core.h (tree_type_common): Re-order pointer members
17269 to reduce recursion depth during GC walks.
17270
17271 2014-03-19 Marek Polacek <polacek@redhat.com>
17272
17273 PR sanitizer/60569
17274 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
17275 before accessing it.
17276
17277 2014-03-19 Richard Biener <rguenther@suse.de>
17278
17279 PR lto/59543
17280 * lto-streamer-in.c (input_function): In WPA stage do not drop
17281 debug stmts.
17282
17283 2014-03-19 Jakub Jelinek <jakub@redhat.com>
17284
17285 PR tree-optimization/60559
17286 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
17287 with build_zero_cst assignment.
17288
17289 2014-03-18 Kai Tietz <ktietz@redhat.com>
17290
17291 PR rtl-optimization/56356
17292 * sdbout.c (sdbout_parms): Verify that parms'
17293 incoming argument is valid.
17294 (sdbout_reg_parms): Likewise.
17295
17296 2014-03-18 Richard Henderson <rth@redhat.com>
17297
17298 PR target/60562
17299 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
17300 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
17301 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
17302
17303 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
17304
17305 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
17306 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
17307 Italicize plugin event names in description. Explain that
17308 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
17309 Remind that no GCC functions should be called after PLUGIN_FINISH.
17310 Explain what pragmas with expansion are.
17311
17312 2014-03-18 Martin Liska <mliska@suse.cz>
17313
17314 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
17315 gimple call statement is update.
17316 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
17317 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
17318
17319 2014-03-18 Jakub Jelinek <jakub@redhat.com>
17320
17321 PR sanitizer/60557
17322 * ubsan.c (ubsan_instrument_unreachable): Call
17323 initialize_sanitizer_builtins.
17324 (ubsan_pass): Likewise.
17325
17326 PR sanitizer/60535
17327 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
17328 varpool_finalize_decl instead of rest_of_decl_compilation.
17329
17330 2014-03-18 Richard Biener <rguenther@suse.de>
17331
17332 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
17333 by using bitmap_and_compl instead of bitmap_and_compl_into.
17334 (df_rd_transfer_function): Likewise.
17335
17336 2014-03-18 Richard Biener <rguenther@suse.de>
17337
17338 * doc/lto.texi (fresolution): Fix typo.
17339
17340 2014-03-18 Richard Biener <rguenther@suse.de>
17341
17342 * doc/invoke.texi (flto): Update for changes in 4.9.
17343
17344 2014-03-18 Richard Biener <rguenther@suse.de>
17345
17346 * doc/loop.texi: Remove section on the removed lambda framework.
17347 Update loop docs with recent changes in preserving loop structure.
17348
17349 2014-03-18 Richard Biener <rguenther@suse.de>
17350
17351 * doc/lto.texi (-fresolution): Document.
17352
17353 2014-03-18 Richard Biener <rguenther@suse.de>
17354
17355 * doc/contrib.texi: Adjust my name.
17356
17357 2014-03-18 Jakub Jelinek <jakub@redhat.com>
17358
17359 PR ipa/58721
17360 * internal-fn.c: Include diagnostic-core.h.
17361 (expand_BUILTIN_EXPECT): New function.
17362 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
17363 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
17364 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
17365 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
17366 IFN_BUILTIN_EXPECT.
17367 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
17368 Revert 3 argument __builtin_expect code.
17369 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
17370 * gimple-fold.c (gimple_fold_call): Likewise.
17371 * tree.h (fold_builtin_expect): New prototype.
17372 * builtins.c (build_builtin_expect_predicate): Add predictor
17373 argument, if non-NULL, create 3 argument __builtin_expect.
17374 (fold_builtin_expect): No longer static. Add ARG2 argument,
17375 pass it through to build_builtin_expect_predicate.
17376 (fold_builtin_2): Adjust caller.
17377 (fold_builtin_3): Handle BUILT_IN_EXPECT.
17378 * internal-fn.def (BUILTIN_EXPECT): New.
17379
17380 2014-03-18 Tobias Burnus <burnus@net-b.de>
17381
17382 PR ipa/58721
17383 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
17384 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
17385 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
17386
17387 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
17388
17389 PR ipa/58721
17390 * predict.c (combine_predictions_for_bb): Fix up formatting.
17391 (expr_expected_value_1, expr_expected_value): Add predictor argument,
17392 fill what it points to if non-NULL.
17393 (tree_predict_by_opcode): Adjust caller, use the predictor.
17394 * predict.def (PRED_COMPARE_AND_SWAP): Add.
17395
17396 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
17397
17398 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
17399 proper constant for the store mode.
17400
17401 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
17402
17403 * symtab.c (change_decl_assembler_name): Fix transparent alias
17404 chain construction.
17405
17406 2014-03-16 Renlin Li <Renlin.Li@arm.com>
17407
17408 * config/aarch64/aarch64.c: Correct the comments about the
17409 aarch64 stack layout.
17410
17411 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
17412
17413 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
17414 check for GF_OMP_FOR_KIND_FOR.
17415
17416 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
17417
17418 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
17419 ymm and zmm register names.
17420
17421 2014-03-17 Jakub Jelinek <jakub@redhat.com>
17422
17423 PR target/60516
17424 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
17425 note creation for the 2010-08-31 changes.
17426
17427 2014-03-17 Marek Polacek <polacek@redhat.com>
17428
17429 PR middle-end/60534
17430 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
17431 as -fno-tree-loop-vectorize.
17432 (expand_omp_simd): Likewise.
17433
17434 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
17435
17436 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
17437 (eligible_for_call_delay): New prototype.
17438 * config/sparc/sparc.c (tls_call_delay): Rename into...
17439 (eligible_for_call_delay): ...this. Return false if the instruction
17440 cannot be put in the delay slot of a branch.
17441 (eligible_for_restore_insn): Simplify.
17442 (eligible_for_return_delay): Return false if the instruction cannot be
17443 put in the delay slot of a branch and simplify.
17444 (eligible_for_sibcall_delay): Return false if the instruction cannot be
17445 put in the delay slot of a branch.
17446 * config/sparc/sparc.md (fix_ut699): New attribute.
17447 (tls_call_delay): Delete.
17448 (in_call_delay): Reimplement.
17449 (eligible_for_sibcall_delay): Rename into...
17450 (in_sibcall_delay): ...this.
17451 (eligible_for_return_delay): Rename into...
17452 (in_return_delay): ...this.
17453 (in_branch_delay): Reimplement.
17454 (in_uncond_branch_delay): Delete.
17455 (in_annul_branch_delay): Delete.
17456
17457 2014-03-14 Richard Henderson <rth@redhat.com>
17458
17459 PR target/60525
17460 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
17461 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
17462 (*floathi<X87MODEF>2_i387_with_temp): Remove.
17463 (floathi splitters): Remove.
17464 (float<SWI48x>xf2): New pattern.
17465 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
17466 code that tried to handle DImode for 32-bit, but which was excluded
17467 by the pattern's condition. Drop allocation of stack temporary.
17468 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
17469 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
17470 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
17471 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
17472 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
17473 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
17474 (*float<SWI48><MODEF>2_sse_interunit): Remove.
17475 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
17476 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
17477 (*float<SWI48x><X87MODEF>2_i387): Remove.
17478 (all float _with_temp splitters): Remove.
17479 (*float<SWI48x><MODEF>2_i387): New pattern.
17480 (*float<SWI48><MODEF>2_sse): New pattern.
17481 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
17482 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
17483
17484 2014-03-14 Jakub Jelinek <jakub@redhat.com>
17485 Marek Polacek <polacek@redhat.com>
17486
17487 PR middle-end/60484
17488 * common.opt (dump_base_name_prefixed): New Variable.
17489 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
17490 if x_dump_base_name_prefixed is already set, set it at the end.
17491
17492 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
17493
17494 PR rtl-optimization/60508
17495 * lra-constraints.c (get_reload_reg): Add new parameter
17496 in_subreg_p.
17497 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
17498 Pass the new parameter values.
17499
17500 2014-03-14 Richard Biener <rguenther@suse.de>
17501
17502 * common.opt: Revert unintented changes from r205065.
17503 * opts.c: Likewise.
17504
17505 2014-03-14 Richard Biener <rguenther@suse.de>
17506
17507 PR middle-end/60518
17508 * cfghooks.c (split_block): Properly adjust all loops the
17509 block was a latch of.
17510
17511 2014-03-14 Martin Jambor <mjambor@suse.cz>
17512
17513 PR lto/60461
17514 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
17515 and simplify it.
17516
17517 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
17518
17519 PR target/59396
17520 * config/avr/avr.c (avr_set_current_function): Pass function name
17521 through default_strip_name_encoding before sanity checking instead
17522 of skipping the first char of the assembler name.
17523
17524 2014-03-13 Richard Henderson <rth@redhat.com>
17525
17526 PR debug/60438
17527 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
17528 (ix86_force_to_memory, ix86_free_from_memory): Remove.
17529 * config/i386/i386-protos.h: Likewise.
17530 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
17531 in the expander instead of a splitter.
17532 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
17533 any possibility of requiring a memory.
17534 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
17535 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
17536 (fp branch splitters): Update for ix86_split_fp_branch.
17537 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
17538 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
17539 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
17540 (*fop_<MODEF>_2_i387): Remove f/r alternative.
17541 (*fop_<MODEF>_3_i387): Likewise.
17542 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
17543 (splitters for the fop_* register patterns): Remove.
17544 (fscalexf4_i387): Rename from *fscalexf4_i387.
17545 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
17546
17547 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17548
17549 PR tree-optimization/59779
17550 * tree-dfa.c (get_ref_base_and_extent): Use double_int
17551 type for bitsize and maxsize instead of HOST_WIDE_INT.
17552
17553 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
17554
17555 PR rtl-optimization/57320
17556 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
17557 the CFG after thread_prologue_and_epilogue_insns.
17558
17559 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
17560
17561 PR rtl-optimization/57189
17562 * lra-constraints.c (process_alt_operands): Disfavor spilling
17563 vector pseudos.
17564
17565 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
17566
17567 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
17568
17569 2014-03-13 Jakub Jelinek <jakub@redhat.com>
17570
17571 PR tree-optimization/59025
17572 PR middle-end/60418
17573 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
17574 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
17575
17576 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
17577
17578 PR target/60486
17579 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
17580 calls of avr_out_plus_1.
17581
17582 2014-03-13 Bin Cheng <bin.cheng@arm.com>
17583
17584 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
17585 BB's single pred and update the father loop's latch info later.
17586
17587 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17588
17589 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
17590 (VEC_M): Likewise.
17591 (VEC_N): Likewise.
17592 (VEC_R): Likewise.
17593 (VEC_base): Likewise.
17594 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
17595 registers, we need to swap double words in little endian mode.
17596
17597 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
17598 to be a container mode for 128-bit integer operations added in ISA
17599 2.07. Unlike TImode and PTImode, the preferred register set is
17600 the Altivec/VMX registers for the 128-bit operations.
17601
17602 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
17603 declarations.
17604 (rs6000_split_128bit_ok_p): Likewise.
17605
17606 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
17607 macros for creating ISA 2.07 normal and overloaded builtin
17608 functions with 3 arguments.
17609 (BU_P8V_OVERLOAD_3): Likewise.
17610 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
17611 for use as overloaded functions.
17612 (VPERM_1TI_UNS): Likewise.
17613 (VSEL_1TI): Likewise.
17614 (VSEL_1TI_UNS): Likewise.
17615 (ST_INTERNAL_1ti): Likewise.
17616 (LD_INTERNAL_1ti): Likewise.
17617 (XXSEL_1TI): Likewise.
17618 (XXSEL_1TI_UNS): Likewise.
17619 (VPERM_1TI): Likewise.
17620 (VPERM_1TI_UNS): Likewise.
17621 (XXPERMDI_1TI): Likewise.
17622 (SET_1TI): Likewise.
17623 (LXVD2X_V1TI): Likewise.
17624 (STXVD2X_V1TI): Likewise.
17625 (VEC_INIT_V1TI): Likewise.
17626 (VEC_SET_V1TI): Likewise.
17627 (VEC_EXT_V1TI): Likewise.
17628 (EQV_V1TI): Likewise.
17629 (NAND_V1TI): Likewise.
17630 (ORC_V1TI): Likewise.
17631 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
17632 added in ISA 2.07. Add both normal 'altivec' builtins, and the
17633 overloaded builtin.
17634 (VADDUQM): Likewise.
17635 (VSUBCUQ): Likewise.
17636 (VADDEUQM): Likewise.
17637 (VADDECUQ): Likewise.
17638 (VSUBEUQM): Likewise.
17639 (VSUBECUQ): Likewise.
17640
17641 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
17642 __int128_t and __uint128_t types.
17643 (__uint128_type): Likewise.
17644 (altivec_categorize_keyword): Add support for vector __int128_t,
17645 vector __uint128_t, vector __int128, and vector unsigned __int128
17646 as a container type for TImode operations that need to be done in
17647 VSX/Altivec registers.
17648 (rs6000_macro_to_expand): Likewise.
17649 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
17650 to support 128-bit integer instructions vaddcuq, vadduqm,
17651 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
17652 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
17653
17654 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
17655 for V1TImode, and set up preferences to use VSX/Altivec registers.
17656 Setup VSX reload handlers.
17657 (rs6000_debug_reg_global): Likewise.
17658 (rs6000_init_hard_regno_mode_ok): Likewise.
17659 (rs6000_preferred_simd_mode): Likewise.
17660 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
17661 (easy_altivec_constant): Likewise.
17662 (output_vec_const_move): Likewise.
17663 (rs6000_expand_vector_set): Convert V1TImode set and extract to
17664 simple move.
17665 (rs6000_expand_vector_extract): Likewise.
17666 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
17667 addressing.
17668 (rs6000_const_vec): Add support for V1TImode.
17669 (rs6000_emit_le_vsx_load): Swap double words when loading or
17670 storing TImode/V1TImode.
17671 (rs6000_emit_le_vsx_store): Likewise.
17672 (rs6000_emit_le_vsx_move): Likewise.
17673 (rs6000_emit_move): Add support for V1TImode.
17674 (altivec_expand_ld_builtin): Likewise.
17675 (altivec_expand_st_builtin): Likewise.
17676 (altivec_expand_vec_init_builtin): Likewise.
17677 (altivec_expand_builtin): Likewise.
17678 (rs6000_init_builtins): Add support for V1TImode type. Add
17679 support for ISA 2.07 128-bit integer builtins. Define type names
17680 for the VSX/Altivec vector types.
17681 (altivec_init_builtins): Add support for overloaded vector
17682 functions with V1TImode type.
17683 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
17684 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
17685 external function.
17686 (rs6000_split_128bit_ok_p): Likewise.
17687 (rs6000_handle_altivec_attribute): Create V1TImode from vector
17688 __int128_t and vector __uint128_t.
17689
17690 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
17691 and mode attributes.
17692 (VSX_M): Likewise.
17693 (VSX_M2): Likewise.
17694 (VSm): Likewise.
17695 (VSs): Likewise.
17696 (VSr): Likewise.
17697 (VSv): Likewise.
17698 (VS_scalar): Likewise.
17699 (VS_double): Likewise.
17700 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
17701
17702 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
17703 we support the ISA 2.07 128-bit integer arithmetic instructions.
17704 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
17705 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
17706 and TImode types for use with the builtin functions.
17707 (V1TI_type_node): Likewise.
17708 (unsigned_V1TI_type_node): Likewise.
17709 (intTI_type_internal_node): Likewise.
17710 (uintTI_type_internal_node): Likewise.
17711
17712 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
17713 128-bit builtin functions.
17714 (UNSPEC_VADDEUQM): Likewise.
17715 (UNSPEC_VADDECUQ): Likewise.
17716 (UNSPEC_VSUBCUQ): Likewise.
17717 (UNSPEC_VSUBEUQM): Likewise.
17718 (UNSPEC_VSUBECUQ): Likewise.
17719 (VM): Add V1TImode to vector mode iterators.
17720 (VM2): Likewise.
17721 (VI_unit): Likewise.
17722 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
17723 (altivec_vaddcuq): Likewise.
17724 (altivec_vsubuqm): Likewise.
17725 (altivec_vsubcuq): Likewise.
17726 (altivec_vaddeuqm): Likewise.
17727 (altivec_vaddecuq): Likewise.
17728 (altivec_vsubeuqm): Likewise.
17729 (altivec_vsubecuq): Likewise.
17730
17731 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
17732 mode iterators.
17733 (BOOL_128): Likewise.
17734 (BOOL_REGS_OUTPUT): Likewise.
17735 (BOOL_REGS_OP1): Likewise.
17736 (BOOL_REGS_OP2): Likewise.
17737 (BOOL_REGS_UNARY): Likewise.
17738 (BOOL_REGS_AND_CR0): Likewise.
17739
17740 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
17741 128-bit integer builtin support.
17742 (vec_vadduqm): Likewise.
17743 (vec_vaddecuq): Likewise.
17744 (vec_vaddeuqm): Likewise.
17745 (vec_vsubecuq): Likewise.
17746 (vec_vsubeuqm): Likewise.
17747 (vec_vsubcuq): Likewise.
17748 (vec_vsubuqm): Likewise.
17749
17750 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17751 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
17752 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
17753 128-bit integer add/subtract to ISA 2.07.
17754
17755 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
17756
17757 * config/arc/arc.c (arc_predicate_delay_insns):
17758 Fix third argument passed to conditionalize_nonjump.
17759
17760 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
17761
17762 * config/aarch64/aarch64-builtins.c
17763 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
17764 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
17765 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
17766 instead of __builtin_lfloor.
17767 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
17768
17769 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17770
17771 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
17772 (tree_ssa_ifcombine_bb_1): New function.
17773 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
17774 is an empty forwarder block to then_bb or vice versa and then_bb
17775 and else_bb are effectively swapped.
17776
17777 2014-03-12 Christian Bruel <christian.bruel@st.com>
17778
17779 PR target/60264
17780 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
17781 REG_CFA_DEF_CFA note.
17782 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
17783 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
17784
17785 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
17786
17787 PR tree-optimization/60454
17788 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
17789
17790 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17791
17792 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
17793 Do not define target_cpu_default2 to generic.
17794 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
17795 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
17796 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
17797
17798 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17799 Marc Glisse <marc.glisse@inria.fr>
17800
17801 PR tree-optimization/60502
17802 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
17803 instead of build_low_bits_mask.
17804
17805 2014-03-12 Jakub Jelinek <jakub@redhat.com>
17806
17807 PR middle-end/60482
17808 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
17809 if there are multiple uses, but op doesn't live on E edge.
17810 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
17811 clobber stmts before __builtin_unreachable.
17812
17813 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
17814
17815 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
17816 hard_frame_pointer_rtx.
17817 * cse.c (cse_insn): Remove volatile check.
17818 * cselib.c (cselib_process_insn): Likewise.
17819 * dse.c (scan_insn): Likewise.
17820
17821 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17822
17823 * config/arc/arc.c (conditionalize_nonjump): New function,
17824 broken out of ...
17825 (arc_ifcvt): ... this.
17826 (arc_predicate_delay_insns): Use it.
17827
17828 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
17829
17830 * config/arc/predicates.md (extend_operand): During/after reload,
17831 allow const_int_operand.
17832 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
17833 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
17834 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
17835 to "i".
17836 (umulsi3_highpart_i): Likewise.
17837
17838 2014-03-11 Richard Biener <rguenther@suse.de>
17839
17840 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
17841 Add asserts to guard possible wrong-code bugs.
17842
17843 2014-03-11 Richard Biener <rguenther@suse.de>
17844
17845 PR tree-optimization/60429
17846 PR tree-optimization/60485
17847 * tree-ssa-structalias.c (set_union_with_increment): Properly
17848 take into account all fields that overlap the shifted vars.
17849 (do_sd_constraint): Likewise.
17850 (do_ds_constraint): Likewise.
17851 (get_constraint_for_ptr_offset): Likewise.
17852
17853 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
17854
17855 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
17856 (nios2_compute_frame_layout):
17857 Add calculation of cfun->machine->fp_save_offset.
17858 (nios2_expand_prologue): Correct setting of frame pointer register
17859 in prologue.
17860 (nios2_expand_epilogue): Update recovery of stack pointer from
17861 frame pointer accordingly.
17862 (nios2_initial_elimination_offset): Update calculation of offset
17863 for eliminating to HARD_FRAME_POINTER_REGNUM.
17864
17865 2014-03-10 Jakub Jelinek <jakub@redhat.com>
17866
17867 PR ipa/60457
17868 * ipa.c (symtab_remove_unreachable_nodes): Don't call
17869 cgraph_get_create_node on VAR_DECLs.
17870
17871 2014-03-10 Richard Biener <rguenther@suse.de>
17872
17873 PR middle-end/60474
17874 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
17875
17876 2014-03-08 Douglas B Rupp <rupp@gnat.com>
17877
17878 * config/vms/vms.opt (vms_float_format): New variable.
17879
17880 2014-03-08 Tobias Burnus <burnus@net-b.de>
17881
17882 * doc/invoke.texi (-fcilkplus): Update implementation status.
17883
17884 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
17885 Richard Biener <rguenther@suse.de>
17886
17887 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
17888 consistently accross all TUs.
17889 (run_gcc): Enable -fshort-double automatically at link at link-time
17890 and disallow override.
17891
17892 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
17893
17894 PR target/58271
17895 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
17896 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
17897 if they can't be used.
17898
17899 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17900
17901 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
17902 for Solaris 11/x86 ld.
17903 * configure: Regenerate.
17904
17905 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17906
17907 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
17908 (LIB_TLS_SPEC): Save as ld_tls_libs.
17909 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
17910 (HAVE_AS_IX86_TLSLDM): New test.
17911 * configure, config.in: Regenerate.
17912 * config/i386/i386.c (legitimize_tls_address): Fall back to
17913 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
17914 cannot support TLS_MODEL_LOCAL_DYNAMIC.
17915 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
17916 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
17917
17918 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
17919
17920 * common.opt (fira-loop-pressure): Mark as optimization.
17921
17922 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
17923
17924 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
17925 an OpenMP mappable type.
17926
17927 2014-03-06 Matthias Klose <doko@ubuntu.com>
17928
17929 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
17930 MULTILIB_OSDIRNAMES is not defined.
17931
17932 2014-03-06 Jakub Jelinek <jakub@redhat.com>
17933 Meador Inge <meadori@codesourcery.com>
17934
17935 PR target/58595
17936 * config/arm/arm.c (arm_tls_symbol_p): Remove.
17937 (arm_legitimize_address): Call legitimize_tls_address for any
17938 arm_tls_referenced_p expression, handle constant addend. Call it
17939 before testing for !TARGET_ARM.
17940 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
17941
17942 2014-03-06 Richard Biener <rguenther@suse.de>
17943
17944 PR middle-end/60445
17945 PR lto/60424
17946 PR lto/60427
17947 Revert
17948 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
17949
17950 * tree-streamer.c (record_common_node): Assert we don't record
17951 nodes with type double.
17952 (preload_common_node): Skip type double, complex double and double
17953 pointer since it is now frontend dependent due to fshort-double option.
17954
17955 2014-03-06 Richard Biener <rguenther@suse.de>
17956
17957 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
17958 or -fno-lto is specified and the linker has full plugin support.
17959 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
17960 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
17961 * lto-wrapper.c (merge_and_complain): Merge compile-time
17962 optimization levels.
17963 (run_gcc): And pass it through to the link options.
17964
17965 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
17966
17967 PR debug/60381
17968 Revert:
17969 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
17970 PR debug/59992
17971 * cselib.c (remove_useless_values): Skip to avoid quadratic
17972 behavior if the condition moved from...
17973 (cselib_process_insn): ... here holds.
17974
17975 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17976
17977 PR plugins/59335
17978 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
17979 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
17980
17981 PR plugins/59335
17982 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
17983 (TM_H): Add x86-tune.def.
17984
17985 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17986
17987 * config/aarch64/aarch64.c (generic_tunings):
17988 Use cortexa57_extra_costs.
17989
17990 2014-03-05 Jakub Jelinek <jakub@redhat.com>
17991
17992 PR lto/60404
17993 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
17994 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
17995 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
17996 cost for in_lto_p.
17997
17998 2014-03-04 Heiher <r@hev.cc>
17999
18000 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
18001 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
18002
18003 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
18004
18005 * config/i386/predicates.md (const2356_operand): Change to ...
18006 (const2367_operand): ... this.
18007 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
18008 const2367_operand.
18009 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18010 (*avx512pf_scatterpf<mode>sf): Ditto.
18011 (avx512pf_scatterpf<mode>df): Ditto.
18012 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18013 (*avx512pf_scatterpf<mode>df): Ditto.
18014 * config/i386/i386.c (ix86_expand_builtin): Update
18015 incorrect hint operand error message.
18016
18017 2014-03-04 Richard Biener <rguenther@suse.de>
18018
18019 * lto-section-in.c (lto_get_section_data): Fix const cast.
18020
18021 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
18022
18023 * tree-streamer.c (record_common_node): Assert we don't record
18024 nodes with type double.
18025 (preload_common_node): Skip type double, complex double and double
18026 pointer since it is now frontend dependent due to fshort-double option.
18027
18028 2014-03-04 Richard Biener <rguenther@suse.de>
18029
18030 PR lto/60405
18031 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
18032 (lto_input_toplevel_asms): Likewise.
18033 * lto-section-in.c (lto_get_section_data): Instead do it here
18034 for every section.
18035
18036 2014-03-04 Richard Biener <rguenther@suse.de>
18037
18038 PR tree-optimization/60382
18039 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
18040 dead PHIs a reduction.
18041
18042 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
18043
18044 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
18045 hint value.
18046 (_mm_prefetch): Move out of GCC target("sse") pragma.
18047 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
18048 GCC target("prfchw") pragma.
18049 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
18050 for locality <= 2.
18051 * config/i386/i386.c (ix86_option_override_internal): Enable
18052 -mprfchw with -mprefetchwt1.
18053
18054 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
18055
18056 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
18057 Mark as varying.
18058
18059 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
18060
18061 * opts.h (CL_PCH_IGNORE): Define.
18062 * targhooks.c (option_affects_pch_p):
18063 Return false for options that have CL_PCH_IGNORE set.
18064 * opt-functions.awk: Process PchIgnore.
18065 * doc/options.texi: Document PchIgnore.
18066
18067 * config/arc/arc.opt (misize): Add PchIgnore property.
18068
18069 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18070
18071 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
18072 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
18073 constraint on constants to permit them being loaded into
18074 GENERAL_REGS or BASE_REGS.
18075
18076 2014-03-03 Nick Clifton <nickc@redhat.com>
18077
18078 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
18079 anti-cacnonical alternatives.
18080 (negandhi3_real): New pattern.
18081 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
18082
18083 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18084
18085 * config/avr/avr-mcus.def: Remove atxmega16x1.
18086 * config/avr/avr-tables.opt: Regenerate.
18087 * config/avr/t-multilib: Regenerate.
18088 * doc/avr-mmcu.texi: Regenerate.
18089
18090 2014-03-03 Tobias Grosser <tobias@grosser.es>
18091 Mircea Namolaru <mircea.namolaru@inria.fr>
18092
18093 PR tree-optimization/58028
18094 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
18095 scalar dimensions.
18096
18097 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18098
18099 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
18100 not handled by recognizers.
18101
18102 2014-03-03 Jakub Jelinek <jakub@redhat.com>
18103
18104 PR middle-end/60175
18105 * function.c (expand_function_end): Don't emit
18106 clobber_return_register sequence if clobber_after is a BARRIER.
18107 * cfgexpand.c (construct_exit_block): Append instructions before
18108 return_label to prev_bb.
18109
18110 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18111
18112 * config/rs6000/constraints.md: Document reserved use of "wc".
18113
18114 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
18115
18116 PR ipa/60150
18117 * ipa.c (function_and_variable_visibility): When dissolving comdat
18118 group, also set all symbols to local.
18119
18120 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
18121
18122 PR ipa/60306
18123
18124 Revert:
18125 2013-12-14 Jan Hubicka <jh@suse.cz>
18126 PR middle-end/58477
18127 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
18128
18129 2014-03-02 Jon Beniston <jon@beniston.com>
18130
18131 PR bootstrap/48230
18132 PR bootstrap/50927
18133 PR bootstrap/52466
18134 PR target/46898
18135 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
18136 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
18137 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
18138 (simple_return, *simple_return): New patterns
18139 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
18140 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
18141
18142 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
18143
18144 * dwarf2out.c (gen_subprogram_die): Tidy.
18145
18146 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
18147
18148 PR target/60071
18149 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
18150 (*mov_t_msb_neg_negc): ... this new insn.
18151
18152 2014-02-28 Jason Merrill <jason@redhat.com>
18153
18154 PR c++/58678
18155 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
18156 function.
18157
18158 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
18159
18160 PR c++/60314
18161 * dwarf2out.c (decltype_auto_die): New static.
18162 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
18163 (gen_type_die_with_usage): Handle 'decltype(auto)'.
18164 (is_cxx_auto): Likewise.
18165
18166 2014-02-28 Ian Bolton <ian.bolton@arm.com>
18167
18168 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
18169 we are not using general regs only.
18170
18171 2014-02-28 Richard Biener <rguenther@suse.de>
18172
18173 PR target/60280
18174 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
18175 previous fix and only allow to remove trivial pre-headers
18176 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
18177 (remove_forwarder_block): Properly update the latch of a loop.
18178
18179 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18180
18181 PR debug/59992
18182 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
18183 (cselib_preserved_hash_table): New.
18184 (preserve_constants_and_equivs): Move preserved vals to it.
18185 (cselib_find_slot): Look it up first.
18186 (cselib_init): Initialize it.
18187 (cselib_finish): Release it.
18188 (dump_cselib_table): Dump it.
18189
18190 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18191
18192 PR debug/59992
18193 * cselib.c (remove_useless_values): Skip to avoid quadratic
18194 behavior if the condition moved from...
18195 (cselib_process_insn): ... here holds.
18196
18197 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
18198
18199 PR debug/57232
18200 * var-tracking.c (vt_initialize): Apply the same condition to
18201 preserve the CFA base value.
18202
18203 2014-02-28 Joey Ye <joey.ye@arm.com>
18204
18205 PR target/PR60169
18206 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
18207 if reload in progress or completed.
18208
18209 2014-02-28 Tobias Burnus <burnus@net-b.de>
18210
18211 PR middle-end/60147
18212 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
18213 NAMELIST_DECL.
18214
18215 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
18216
18217 * doc/tm.texi.in (Condition Code Status): Update documention for
18218 relative locations of cc0-setter and cc0-user.
18219
18220 2014-02-27 Jeff Law <law@redhat.com>
18221
18222 PR rtl-optimization/52714
18223 * combine.c (try_combine): When splitting an unrecognized PARALLEL
18224 into two independent simple sets, if I3 is a jump, ensure the
18225 pattern we place into I3 is a (set (pc) ...).
18226
18227 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
18228 Jeff Law <law@redhat.com>
18229
18230 PR rtl-optimization/49847
18231 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
18232 are in different blocks.
18233 * doc/tm.texi (Condition Code Status): Update documention for
18234 relative locations of cc0-setter and cc0-user.
18235
18236 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
18237
18238 PR target/59222
18239 * lra.c (lra_emit_add): Check SUBREG too.
18240
18241 2014-02-27 Andreas Schwab <schwab@suse.de>
18242
18243 * config/m68k/m68k.c (m68k_option_override): Disable
18244 -flive-range-shrinkage for classic m68k.
18245 (m68k_override_options_after_change): Likewise.
18246
18247 2014-02-27 Marek Polacek <polacek@redhat.com>
18248
18249 PR middle-end/59223
18250 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
18251 -Wmaybe-uninitialized.
18252
18253 2014-02-27 Alan Modra <amodra@gmail.com>
18254
18255 PR target/57936
18256 * reload1.c (emit_input_reload_insns): When reload_override_in,
18257 set old to rl->in_reg when rl->in_reg is a subreg.
18258
18259 2014-02-26 Richard Biener <rguenther@suse.de>
18260
18261 PR bootstrap/60343
18262 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
18263
18264 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
18265
18266 * common/config/i386/predicates.md (const1256_operand): Remove.
18267 (const2356_operand): New.
18268 (const_1_to_2_operand): Remove.
18269 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
18270 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
18271 (*avx512pf_gatherpf<mode>sf): Ditto.
18272 (avx512pf_gatherpf<mode>df): Ditto.
18273 (*avx512pf_gatherpf<mode>df_mask): Ditto.
18274 (*avx512pf_gatherpf<mode>df): Ditto.
18275 (avx512pf_scatterpf<mode>sf): Ditto.
18276 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18277 (*avx512pf_scatterpf<mode>sf): Ditto.
18278 (avx512pf_scatterpf<mode>df): Ditto.
18279 (*avx512pf_scatterpf<mode>df_mask): Ditto.
18280 (*avx512pf_scatterpf<mode>df): Ditto.
18281 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
18282
18283 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
18284
18285 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
18286 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
18287 (_mm512_mask_testn_epi64_mask): Move to ...
18288 * config/i386/avx512cdintrin.h: Here.
18289 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
18290 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
18291 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
18292 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
18293 TARGET_AVX512F from TARGET_AVX512CD.
18294
18295 2014-02-26 Richard Biener <rguenther@suse.de>
18296
18297 PR ipa/60327
18298 * ipa.c (walk_polymorphic_call_targets): Properly guard
18299 call to inline_update_overall_summary.
18300
18301 2014-02-26 Bin Cheng <bin.cheng@arm.com>
18302
18303 PR target/60280
18304 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
18305 and latches only if requested. Fix latch if it is removed.
18306 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
18307 LOOPS_HAVE_PREHEADERS.
18308
18309 2014-02-25 Andrew Pinski <apinski@cavium.com>
18310
18311 * builtins.c (expand_builtin_thread_pointer): Create a new target
18312 when the target is NULL.
18313
18314 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
18315
18316 PR rtl-optimization/60317
18317 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
18318 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
18319 * lra-assigns.c: Include params.h.
18320 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
18321 other reload pseudos considerations.
18322
18323 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18324
18325 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
18326 to use canonical form for nor<mode>3.
18327
18328 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18329
18330 PR target/55426
18331 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
18332 conversions.
18333
18334 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
18335
18336 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
18337 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
18338 (ix86_handle_option): Handle OPT_mprefetchwt1.
18339 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
18340 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18341 PREFETCHWT1 CPUID.
18342 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18343 OPTION_MASK_ISA_PREFETCHWT1.
18344 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
18345 (PTA_PREFETCHWT1): New.
18346 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
18347 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
18348 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
18349 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
18350 (*prefetch_avx512pf_<mode>_: Change into ...
18351 (*prefetch_prefetchwt1_<mode>: This.
18352 * config/i386/i386.opt (mprefetchwt1): New.
18353 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
18354 (_mm_prefetch): Handle intent to write.
18355 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
18356
18357 2014-02-25 Richard Biener <rguenther@suse.de>
18358
18359 PR middle-end/60291
18360 * emit-rtl.c (mem_attrs_htab): Remove.
18361 (mem_attrs_htab_hash): Likewise.
18362 (mem_attrs_htab_eq): Likewise.
18363 (set_mem_attrs): Always allocate new mem-attrs when something changed.
18364 (init_emit_once): Do not allocate mem_attrs_htab.
18365
18366 2014-02-25 Richard Biener <rguenther@suse.de>
18367
18368 PR lto/60319
18369 * lto-opts.c (lto_write_options): Output non-explicit conservative
18370 -fwrapv, -fno-trapv and -fno-strict-overflow.
18371 * lto-wrapper.c (merge_and_complain): Handle merging those options.
18372 (run_gcc): And pass them through.
18373
18374 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18375
18376 * sel-sched.c (calculate_new_fences): New parameter ptime.
18377 Calculate it as a maximum over all fence cycles.
18378 (sel_sched_region_2): Adjust the call to calculate_new_fences.
18379 Print the final schedule timing when sched_verbose.
18380
18381 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
18382
18383 PR rtl-optimization/60292
18384 * sel-sched.c (fill_vec_av_set): Do not reset target availability
18385 bit fot the fence instruction.
18386
18387 2014-02-24 Alangi Derick <alangiderick@gmail.com>
18388
18389 * calls.h: Fix typo in comment.
18390
18391 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
18392
18393 * config/pa/pa.c (pa_output_move_double): Don't valididate when
18394 adjusting offsetable addresses.
18395
18396 2014-02-24 Guozhi Wei <carrot@google.com>
18397
18398 * sparseset.h (sparseset_pop): Fix the wrong index.
18399
18400 2014-02-24 Walter Lee <walt@tilera.com>
18401
18402 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
18403 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
18404 triplet.
18405 * common/config/tilegx/tilegx-common.c
18406 (TARGET_DEFAULT_TARGET_FLAGS): Define.
18407 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
18408 (LINK_SPEC): Ditto.
18409 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
18410 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
18411 (tilegx_gimplify_va_arg_expr): Handle big endian.
18412 (tilegx_expand_unaligned_load): Ditto.
18413 (tilegx_expand_unaligned_store): Ditto.
18414 (TARGET_RETURN_IN_MSB): New.
18415 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
18416 (TARGET_ENDIAN_DEFAULT): New.
18417 (TARGET_BIG_ENDIAN): Handle big endian.
18418 (BYTES_BIG_ENDIAN): Ditto.
18419 (WORDS_BIG_ENDIAN): Ditto.
18420 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
18421 (ENDIAN_SPEC): New.
18422 (EXTRA_SPECS): New.
18423 * config/tilegx/tilegx.md (extv): Handle big endian.
18424 (extzv): Ditto.
18425 (insn_st<n>): Ditto.
18426 (insn_st<n>_add<bitsuffix>): Ditto.
18427 (insn_stnt<n>): Ditto.
18428 (insn_stnt<n>_add<bitsuffix>):Ditto.
18429 (vec_interleave_highv8qi): Handle big endian.
18430 (vec_interleave_highv8qi_be): New.
18431 (vec_interleave_highv8qi_le): New.
18432 (insn_v1int_h): Handle big endian.
18433 (vec_interleave_lowv8qi): Handle big endian.
18434 (vec_interleave_lowv8qi_be): New.
18435 (vec_interleave_lowv8qi_le): New.
18436 (insn_v1int_l): Handle big endian.
18437 (vec_interleave_highv4hi): Handle big endian.
18438 (vec_interleave_highv4hi_be): New.
18439 (vec_interleave_highv4hi_le): New.
18440 (insn_v2int_h): Handle big endian.
18441 (vec_interleave_lowv4hi): Handle big endian.
18442 (vec_interleave_lowv4hi_be): New.
18443 (vec_interleave_lowv4hi_le): New.
18444 (insn_v2int_l): Handle big endian.
18445 (vec_interleave_highv2si): Handle big endian.
18446 (vec_interleave_highv2si_be): New.
18447 (vec_interleave_highv2si_le): New.
18448 (insn_v4int_h): Handle big endian.
18449 (vec_interleave_lowv2si): Handle big endian.
18450 (vec_interleave_lowv2si_be): New.
18451 (vec_interleave_lowv2si_le): New.
18452 (insn_v4int_l): Handle big endian.
18453 * config/tilegx/tilegx.opt (mbig-endian): New option.
18454 (mlittle-endian): New option.
18455 * doc/install.texi: Document tilegxbe-linux.
18456 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
18457
18458 2014-02-24 Martin Jambor <mjambor@suse.cz>
18459
18460 PR ipa/60266
18461 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
18462 there are no parameter descriptors.
18463
18464 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
18465
18466 PR rtl-optimization/60268
18467 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
18468 initialization to ...
18469 (sched_rgn_init): ... here.
18470 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
18471
18472 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18473
18474 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
18475 names.
18476
18477 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
18478
18479 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
18480 definition.
18481
18482 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18483
18484 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
18485 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
18486
18487 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
18488
18489 * config/microblaze/predicates.md: Add cmp_op predicate.
18490 * config/microblaze/microblaze.md: Add branch_compare instruction
18491 which uses cmp_op predicate and emits cmp insn before branch.
18492 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
18493 to microblaze_expand_conditional_branch and consolidate logic.
18494 (microblaze_expand_conditional_branch): emit branch_compare
18495 insn instead of handling cmp op separate from branch insn.
18496
18497 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18498
18499 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
18500 to permit subregs.
18501
18502 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18503
18504 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
18505 define_insn with define_expand and new define_insn
18506 *altivec_lve<VI_char>x_internal.
18507 (altivec_stve<VI_char>x): Replace define_insn with define_expand
18508 and new define_insn *altivec_stve<VI_char>x_internal.
18509 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
18510 prototype.
18511 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
18512 lve*x built-ins.
18513 (altivec_expand_stvex_be): New function.
18514
18515 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
18516
18517 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
18518 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
18519 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
18520 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
18521
18522 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
18523
18524 PR target/60298
18525 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
18526 instead of emit_move_insn.
18527
18528 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18529
18530 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
18531 vspltw with vsldoi.
18532 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
18533 gen_altivec_vsumsws.
18534
18535 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18536
18537 * config/rs6000/altivec.md (altivec_lvxl): Rename as
18538 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
18539 (altivec_lvxl_<mode>): New define_expand incorporating
18540 -maltivec=be semantics where needed.
18541 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
18542 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
18543 semantics where needed.
18544 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
18545 (altivec_stvx_<mode>): New define_expand incorporating
18546 -maltivec=be semantics where needed.
18547 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
18548 VM2 iterator instead of V4SI.
18549 (altivec_stvxl_<mode>): New define_expand incorporating
18550 -maltivec=be semantics where needed.
18551 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
18552 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
18553 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
18554 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
18555 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
18556 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
18557 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
18558 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
18559 ALTIVEC_BUILTIN_STVXL.
18560 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
18561 (altivec_expand_stvx_be): Likewise.
18562 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
18563 (altivec_expand_lvx_be): Likewise.
18564 (altivec_expand_stvx_be): Likewise.
18565 (altivec_expand_builtin): Add cases for
18566 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
18567 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
18568 (altivec_init_builtins): Add definitions for
18569 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
18570 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
18571
18572 2014-02-21 Catherine Moore <clm@codesourcery.com>
18573
18574 * doc/invoke.texi (mvirt, mno-virt): Document.
18575 * config/mips/mips.opt (mvirt): New option.
18576 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
18577
18578 2014-02-21 Richard Biener <rguenther@suse.de>
18579
18580 PR tree-optimization/60276
18581 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
18582 (STMT_VINFO_MIN_NEG_DIST): New macro.
18583 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
18584 STMT_VINFO_MIN_NEG_DIST.
18585 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
18586 made for negative dependence distances still hold.
18587
18588 2014-02-21 Richard Biener <rguenther@suse.de>
18589
18590 PR middle-end/60291
18591 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
18592 DECL_INITIAL for globals not in the current function context.
18593
18594 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18595
18596 PR tree-optimization/56490
18597 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
18598 * tree-ssa-uninit.c: Include params.h.
18599 (compute_control_dep_chain): Add num_calls argument, return false
18600 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
18601 num_calls to recursive call.
18602 (find_predicates): Change dep_chain into normal array,
18603 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
18604 variable and adjust compute_control_dep_chain caller.
18605 (find_def_preds): Likewise.
18606
18607 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
18608
18609 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
18610 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
18611
18612 2014-02-21 Nick Clifton <nickc@redhat.com>
18613
18614 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
18615 (pushhi1): Likewise.
18616 (popqi1): Add mode to pre_dec.
18617 (pophi1): Likewise.
18618
18619 2014-02-21 Jakub Jelinek <jakub@redhat.com>
18620
18621 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
18622 mode for mask of V8SFmode permutation.
18623
18624 2014-02-20 Richard Henderson <rth@redhat.com>
18625
18626 PR c++/60272
18627 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
18628 a new pseudo for OLDVAL.
18629
18630 2014-02-20 Jakub Jelinek <jakub@redhat.com>
18631
18632 PR target/57896
18633 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
18634 gen_reg_rtx if d->testing_p.
18635 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
18636 if d->testing_p and we will certainly return true.
18637 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
18638 if d->testing_p.
18639
18640 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
18641
18642 * emit-rtl.c (gen_reg_rtx): Assert that
18643 crtl->emit.regno_pointer_align_length is non-zero.
18644
18645 2014-02-20 Richard Henderson <rth@redhat.com>
18646
18647 PR c++/60272
18648 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
18649 on failure the store back into EXPECT.
18650
18651 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
18652 Sandra Loosemore <sandra@codesourcery.com>
18653
18654 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
18655 * config/nios2/nios2.c (nios2_function_profiler): Add
18656 -fPIC (flag_pic == 2) support.
18657 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
18658 (nios2_large_offset_p): New function.
18659 (nios2_unspec_reloc_p): Move up position, update to use
18660 nios2_large_offset_p.
18661 (nios2_unspec_address): Remove function.
18662 (nios2_unspec_offset): New function.
18663 (nios2_large_got_address): New function.
18664 (nios2_got_address): Add large offset support.
18665 (nios2_legitimize_tls_address): Update usage of removed and new
18666 functions.
18667 (nios2_symbol_binds_local_p): New function.
18668 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
18669 (nios2_legitimize_address): Update to use nios2_large_offset_p.
18670 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
18671 (nios2_print_operand): Merge H/L processing, add hiadj/lo
18672 processing for (const (unspec ...)).
18673 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
18674
18675 2014-02-20 Richard Biener <rguenther@suse.de>
18676
18677 * tree-cfg.c (replace_uses_by): Mark altered BBs before
18678 doing the substitution.
18679 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
18680
18681 2014-02-20 Martin Jambor <mjambor@suse.cz>
18682
18683 PR ipa/55260
18684 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
18685 info when checking whether lattices are bottom.
18686
18687 2014-02-20 Richard Biener <rguenther@suse.de>
18688
18689 PR middle-end/60221
18690 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
18691 regions at -O0.
18692
18693 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
18694
18695 PR ipa/58555
18696 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
18697 parameter specifying the scaling.
18698 (inline_call): Update.
18699 (want_inline_recursively): Guard division by zero.
18700 (recursive_inlining): Update.
18701 * ipa-inline.h (clone_inlined_nodes): Update.
18702
18703 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18704
18705 PR target/60204
18706 * config/i386/i386.c (classify_argument): Pass structures of size
18707 64 bytes or less in register.
18708
18709 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
18710 Kirill Yukhin <kirill.yukhin@intel.com>
18711
18712 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
18713 (_mm_rcp28_round_ss): Ditto.
18714 (_mm_rsqrt28_round_sd): Ditto.
18715 (_mm_rsqrt28_round_ss): Ditto.
18716 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
18717 (_mm_rcp14_round_ss): Ditto.
18718 (_mm_rsqrt14_round_sd): Ditto.
18719 (_mm_rsqrt14_round_ss): Ditto.
18720 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
18721 the first input operand, get rid of match_dup.
18722 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
18723 attribute to sse.
18724 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
18725 Ditto.
18726 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
18727 operand as the first input operand, set type attribute.
18728 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
18729 Set type attribute.
18730 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
18731 operand as the first input operand, set type attribute.
18732
18733 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18734
18735 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
18736 bit of zero.
18737
18738 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
18739
18740 PR target/60207
18741 * config/i386/i386.c (construct_container): Remove TFmode check
18742 for X86_64_INTEGER_CLASS.
18743
18744 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
18745
18746 PR target/59794
18747 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
18748 only when -Wpsabi is enabled.
18749
18750 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
18751
18752 PR target/59799
18753 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
18754 passing arrays in registers are the same as for structs, so remove the
18755 special case for them.
18756
18757 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
18758
18759 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
18760 destination type, extract only the valid bits if the source type is not
18761 integral and has a different mode.
18762
18763 2014-02-19 Richard Biener <rguenther@suse.de>
18764
18765 PR ipa/60243
18766 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
18767 for all calls.
18768
18769 2014-02-19 Richard Biener <rguenther@suse.de>
18770
18771 PR ipa/60243
18772 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
18773 (ipa_modify_call_arguments): Emit an argument load explicitely and
18774 preserve virtual SSA form there and for the replacement call.
18775 Do not update SSA form nor free dominance info.
18776
18777 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18778
18779 * ipa.c (function_and_variable_visibility): Also clear WEAK
18780 flag when disolving COMDAT_GROUP.
18781
18782 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18783
18784 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
18785 * ipa-prop.c (ipa_set_jf_known_type): Return early when
18786 not devirtualizing.
18787 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
18788 do more sanity checks.
18789 (detect_type_change): Return true when giving up early.
18790 (compute_complex_assign_jump_func): Fix type parameter of
18791 ipa_set_ancestor_jf.
18792 (compute_complex_ancestor_jump_func): Likewise.
18793 (update_jump_functions_after_inlining): Fix updating of
18794 ancestor function.
18795 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
18796
18797 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
18798
18799 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
18800 inline clones when edge disappears.
18801
18802 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
18803
18804 PR target/60203
18805 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
18806 Split 64-bit moves into 2 patterns. Do not allow the use of
18807 direct move for TDmode in little endian, since the decimal value
18808 has little endian bytes within a word, but the 64-bit pieces are
18809 ordered in a big endian fashion, and normal subreg's of TDmode are
18810 not allowed.
18811 (mov<mode>_64bit_dm): Likewise.
18812 (movtd_64bit_nodm): Likewise.
18813
18814 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18815
18816 PR tree-optimization/60174
18817 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
18818 statement of an SSA_NAME that occurs in an abnormal PHI node.
18819
18820 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18821
18822 PR sanitizer/60142
18823 * final.c (SEEN_BB): Remove.
18824 (SEEN_NOTE, SEEN_EMITTED): Renumber.
18825 (final_scan_insn): Don't force_source_line on second
18826 NOTE_INSN_BASIC_BLOCK.
18827
18828 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
18829
18830 PR target/60205
18831 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
18832 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
18833 (type_natural_mode): Warn ABI change when %zmm register is not
18834 available for AVX512F vector value passing.
18835
18836 2014-02-18 Kai Tietz <ktietz@redhat.com>
18837
18838 PR target/60193
18839 * config/i386/i386.c (ix86_expand_prologue): Use value in
18840 rax register as displacement when restoring %r10 or %rax.
18841 Fix wrong offset when restoring both registers.
18842
18843 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
18844
18845 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
18846 assertion with conditional return.
18847
18848 2014-02-18 Jakub Jelinek <jakub@redhat.com>
18849 Uros Bizjak <ubizjak@gmail.com>
18850
18851 PR driver/60233
18852 * config/i386/driver-i386.c (host_detect_local_cpu): If
18853 YMM state is not saved by the OS, also clear has_f16c. Move
18854 CPUID 0x80000001 handling before YMM state saving checking.
18855
18856 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
18857
18858 PR rtl-optimization/58960
18859 * haifa-sched.c (alloc_global_sched_pressure_data): New,
18860 factored out from ...
18861 (sched_init): ... here.
18862 (free_global_sched_pressure_data): New, factored out from ...
18863 (sched_finish): ... here.
18864 * sched-int.h (free_global_sched_pressure_data): Declare.
18865 * sched-rgn.c (nr_regions_initial): New static global.
18866 (haifa_find_rgns): Initialize it.
18867 (schedule_region): Disable sched-pressure for the newly
18868 generated regions.
18869
18870 2014-02-17 Richard Biener <rguenther@suse.de>
18871
18872 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
18873 release SSA defs of pattern stmts.
18874
18875 2014-02-17 Richard Biener <rguenther@suse.de>
18876
18877 * tree-inline.c (expand_call_inline): Release the virtual
18878 operand defined by the call we are about to inline.
18879
18880 2014-02-17 Richard Biener <rguenther@suse.de>
18881
18882 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
18883
18884 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
18885 Ilya Tocar <ilya.tocar@intel.com>
18886
18887 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
18888 arguments order in builtin.
18889 (_mm512_permutexvar_epi64): Ditto.
18890 (_mm512_mask_permutexvar_epi64): Ditto
18891 (_mm512_maskz_permutexvar_epi32): Ditto
18892 (_mm512_permutexvar_epi32): Ditto
18893 (_mm512_mask_permutexvar_epi32): Ditto
18894
18895 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18896
18897 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
18898 (p8_vmrgow): Likewise.
18899
18900 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18901
18902 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
18903 endian targets.
18904
18905 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18906
18907 PR target/60203
18908 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
18909 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
18910 into 64-bit and 32-bit moves. On 64-bit moves, add support for
18911 using direct move instructions on ISA 2.07. Also adjust
18912 instruction length for 64-bit.
18913 (mov<mode>_64bit, TFmode/TDmode): Likewise.
18914 (mov<mode>_32bit, TFmode/TDmode): Likewise.
18915
18916 2014-02-15 Alan Modra <amodra@gmail.com>
18917
18918 PR target/58675
18919 PR target/57935
18920 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
18921 find_replacement on parts of insn rtl that might be reloaded.
18922
18923 2014-02-15 Richard Biener <rguenther@suse.de>
18924
18925 PR tree-optimization/60183
18926 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
18927 (tree_ssa_phiprop): Calculate and free post-dominators.
18928
18929 2014-02-14 Jeff Law <law@redhat.com>
18930
18931 PR rtl-optimization/60131
18932 * ree.c (get_extended_src_reg): New function.
18933 (combine_reaching_defs): Use it rather than assuming location of REG.
18934 (find_and_remove_re): Verify first operand of extension is
18935 a REG before adding the insns to the copy list.
18936
18937 2014-02-14 Roland McGrath <mcgrathr@google.com>
18938
18939 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
18940 * configure: Regenerated.
18941 * config.in: Regenerated.
18942 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
18943 instead of ASM_SHORT.
18944
18945 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
18946 Richard Earnshaw <rearnsha@arm.com>
18947
18948 PR rtl-optimization/59535
18949 * lra-constraints.c (process_alt_operands): Encourage alternative
18950 when unassigned pseudo class is superset of the alternative class.
18951 (inherit_reload_reg): Don't inherit when optimizing for code size.
18952 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
18953 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
18954 modes not less than 4 for Thumb1.
18955
18956 2014-02-14 Kyle McMartin <kyle@redhat.com>
18957
18958 PR pch/60010
18959 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
18960
18961 2014-02-14 Richard Biener <rguenther@suse.de>
18962
18963 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
18964 (get_frame_arg): Drop the assert with langhook types_compatible_p.
18965 Do not strip INDIRECT_REFs.
18966
18967 2014-02-14 Richard Biener <rguenther@suse.de>
18968
18969 PR lto/60179
18970 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
18971 DECL_FUNCTION_SPECIFIC_TARGET.
18972 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
18973 * tree-streamer-out.c (pack_ts_target_option): Remove.
18974 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
18975 (write_ts_function_decl_tree_pointers): Do not stream
18976 DECL_FUNCTION_SPECIFIC_TARGET.
18977 * tree-streamer-in.c (unpack_ts_target_option): Remove.
18978 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
18979 (lto_input_ts_function_decl_tree_pointers): Do not stream
18980 DECL_FUNCTION_SPECIFIC_TARGET.
18981
18982 2014-02-14 Jakub Jelinek <jakub@redhat.com>
18983
18984 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
18985 (get_initial_def_for_induction, vectorizable_induction): Ignore
18986 debug stmts when looking for exit_phi.
18987 (vectorizable_live_operation): Fix up condition.
18988
18989 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18990
18991 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
18992 nreverse() because it changes the content of original tree list.
18993
18994 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
18995
18996 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
18997 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
18998
18999 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
19000
19001 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
19002 GNU coding standards.
19003
19004 2014-02-13 Jakub Jelinek <jakub@redhat.com>
19005
19006 PR debug/60152
19007 * dwarf2out.c (gen_subprogram_die): Don't call
19008 add_calling_convention_attribute if subr_die is old_die.
19009
19010 2014-02-13 Sharad Singhai <singhai@google.com>
19011
19012 * doc/optinfo.texi: Fix order of nodes.
19013
19014 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
19015
19016 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
19017 operands[2], not operands[3].
19018
19019 2014-02-13 Richard Biener <rguenther@suse.de>
19020
19021 PR bootstrap/59878
19022 * doc/install.texi (ISL): Update recommended version to 0.12.2,
19023 mention the possibility of an in-tree build.
19024 (CLooG): Update recommended version to 0.18.1, mention the
19025 possibility of an in-tree build and clarify that the ISL
19026 bundled with CLooG does not work.
19027
19028 2014-02-13 Jakub Jelinek <jakub@redhat.com>
19029
19030 PR target/43546
19031 * expr.c (compress_float_constant): If x is a hard register,
19032 extend into a pseudo and then move to x.
19033
19034 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
19035
19036 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
19037 caused by bad second argument to warning_at() with -mhotpatch and
19038 nested functions (e.g. with gfortran).
19039
19040 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
19041
19042 * opts.c (option_name): Remove "enabled by default" rider.
19043
19044 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
19045
19046 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
19047
19048 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
19049 Uros Bizjak <ubizjak@gmail.com>
19050
19051 PR target/60151
19052 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
19053 * configure: Regenerated.
19054
19055 2014-02-12 Richard Biener <rguenther@suse.de>
19056
19057 * vec.c (vec_prefix::calculate_allocation): Move as
19058 inline variant to vec.h.
19059 (vec_prefix::calculate_allocation_1): New out-of-line version.
19060 * vec.h (vec_prefix::calculate_allocation_1): Declare.
19061 (vec_prefix::m_has_auto_buf): Rename to ...
19062 (vec_prefix::m_using_auto_storage): ... this.
19063 (vec_prefix::calculate_allocation): Inline the easy cases
19064 and dispatch to calculate_allocation_1 which doesn't need the
19065 prefix address.
19066 (va_heap::reserve): Use gcc_checking_assert.
19067 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
19068 m_using_auto_storage.
19069 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
19070 member and adjust.
19071 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
19072 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
19073 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
19074
19075 2014-02-12 Richard Biener <rguenther@suse.de>
19076
19077 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
19078 when we found a dependence.
19079
19080 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
19081
19082 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
19083 common code...
19084 (maybe_fold_stmt): ... into this new function.
19085 * omp-low.c (lower_omp): Update comment.
19086
19087 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
19088 last use.
19089
19090 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
19091 dereference.
19092
19093 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
19094
19095 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
19096 identifiers in comments.
19097 (cortexa53_extra_costs): Likewise.
19098 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
19099 (cortexa7_extra_costs): Likewise.
19100 (cortexa12_extra_costs): Likewise.
19101 (cortexa15_extra_costs): Likewise.
19102 (v7m_extra_costs): Likewise.
19103
19104 2014-02-12 Richard Biener <rguenther@suse.de>
19105
19106 PR middle-end/60092
19107 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
19108 of posix_memalign being successful.
19109 (lower_stmt): Restrict lowering of posix_memalign to when
19110 -ftree-bit-ccp is enabled.
19111
19112 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19113
19114 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
19115 arg_loc.
19116 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
19117
19118 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
19119
19120 PR rtl-optimization/60116
19121 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
19122 other_insn once the combination has been validated.
19123
19124 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
19125
19126 PR lto/59468
19127 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
19128 and wrapper.
19129 * ipa-devirt.c: Include demangle.h
19130 (odr_violation_reported): New static variable.
19131 (add_type_duplicate): Update odr_violations.
19132 (maybe_record_node): Add completep parameter; update it.
19133 (record_target_from_binfo): Add COMPLETEP parameter;
19134 update it as needed.
19135 (possible_polymorphic_call_targets_1): Likewise.
19136 (struct polymorphic_call_target_d): Add nonconstruction_targets;
19137 rename FINAL to COMPLETE.
19138 (record_targets_from_bases): Sanity check we found the binfo;
19139 fix COMPLETEP updating.
19140 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
19141 parameter, fix computing of COMPLETEP.
19142 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
19143 at LTO time do demangling.
19144 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
19145 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
19146 parameter.
19147 (gimple_get_virt_method_for_binfo): Likewise.
19148 * gimple-fold.h (gimple_get_virt_method_for_binfo,
19149 gimple_get_virt_method_for_vtable): Update prototypes.
19150
19151 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
19152
19153 PR target/49008
19154 * genautomata.c (add_presence_absence): Fix typo with
19155 {final_}presence_list.
19156
19157 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19158
19159 PR target/60137
19160 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
19161 for VSX/Altivec vectors that land in GPR registers.
19162
19163 2014-02-11 Richard Henderson <rth@redhat.com>
19164 Jakub Jelinek <jakub@redhat.com>
19165
19166 PR debug/59776
19167 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
19168 around drhs if type conversion to lacc->type is not useless.
19169
19170 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19171
19172 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
19173 tuning struct.
19174 (cortex-a57.cortex-a53): Likewise.
19175 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
19176
19177 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19178
19179 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
19180 arm_restrict_it.
19181
19182 2014-02-11 Renlin Li <Renlin.Li@arm.com>
19183
19184 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
19185 add_options_for_arm_vfp3.
19186
19187 2014-02-11 Jeff Law <law@redhat.com>
19188
19189 PR middle-end/54041
19190 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
19191 object with an undesirable mode.
19192
19193 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19194
19195 PR libgomp/60107
19196 * config/i386/sol2-9.h: New file.
19197 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
19198 *-*-solaris2.9*): Use it.
19199
19200 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
19201
19202 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
19203 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
19204
19205 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
19206
19207 * config/microblaze/microblaze.c: Extend mcpu version format
19208
19209 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
19210
19211 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
19212
19213 2014-02-10 Richard Henderson <rth@redhat.com>
19214
19215 PR target/59927
19216 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
19217 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
19218 ms-abi vs -mno-accumulate-outgoing-args.
19219 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
19220 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
19221 respect to ms-abi.
19222
19223 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19224
19225 PR middle-end/60080
19226 * cfgexpand.c (expand_asm_operands): Attach source location to
19227 ASM_INPUT rtx objects.
19228 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
19229
19230 2014-02-10 Nick Clifton <nickc@redhat.com>
19231
19232 * config/mn10300/mn10300.c (popcount): New function.
19233 (mn10300_expand_prologue): Include saved registers in stack usage
19234 count.
19235
19236 2014-02-10 Jeff Law <law@redhat.com>
19237
19238 PR middle-end/52306
19239 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
19240 when changing the SET_DEST of a prior insn to avoid an input reload.
19241
19242 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19243
19244 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
19245 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
19246 -mcall-openbsd, or -mcall-linux.
19247 (CC1_ENDIAN_BIG_SPEC): Remove.
19248 (CC1_ENDIAN_LITTLE_SPEC): Remove.
19249 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
19250 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
19251 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
19252 and %cc1_endian_default.
19253 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
19254
19255 2014-02-10 Richard Biener <rguenther@suse.de>
19256
19257 PR tree-optimization/60115
19258 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
19259 MEM_REF handling. Properly verify that the accesses are not
19260 out of the objects bound.
19261
19262 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19263
19264 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
19265 coretex to cortex.
19266
19267 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
19268
19269 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
19270 proper constants and fix formatting.
19271 (possible_polymorphic_call_targets): Fix formatting.
19272
19273 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
19274 Ilya Tocar <ilya.tocar@intel.com>
19275
19276 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
19277 (_mm512_loadu_epi32): Renamed into...
19278 (_mm512_loadu_si512): This.
19279 (_mm512_storeu_epi32): Renamed into...
19280 (_mm512_storeu_si512): This.
19281 (_mm512_maskz_ceil_ps): Removed.
19282 (_mm512_maskz_ceil_pd): Ditto.
19283 (_mm512_maskz_floor_ps): Ditto.
19284 (_mm512_maskz_floor_pd): Ditto.
19285 (_mm512_floor_round_ps): Ditto.
19286 (_mm512_floor_round_pd): Ditto.
19287 (_mm512_ceil_round_ps): Ditto.
19288 (_mm512_ceil_round_pd): Ditto.
19289 (_mm512_mask_floor_round_ps): Ditto.
19290 (_mm512_mask_floor_round_pd): Ditto.
19291 (_mm512_mask_ceil_round_ps): Ditto.
19292 (_mm512_mask_ceil_round_pd): Ditto.
19293 (_mm512_maskz_floor_round_ps): Ditto.
19294 (_mm512_maskz_floor_round_pd): Ditto.
19295 (_mm512_maskz_ceil_round_ps): Ditto.
19296 (_mm512_maskz_ceil_round_pd): Ditto.
19297 (_mm512_expand_pd): Ditto.
19298 (_mm512_expand_ps): Ditto.
19299 * config/i386/i386.c (ix86_builtins): Remove
19300 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
19301 (bdesc_args): Ditto.
19302 * config/i386/predicates.md (const1256_operand): New.
19303 (const_1_to_2_operand): Ditto.
19304 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
19305 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19306 (*avx512pf_gatherpf<mode>sf): Ditto.
19307 (avx512pf_gatherpf<mode>df): Ditto.
19308 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19309 (*avx512pf_gatherpf<mode>df): Ditto.
19310 (avx512pf_scatterpf<mode>sf): Ditto.
19311 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19312 (*avx512pf_scatterpf<mode>sf): Ditto.
19313 (avx512pf_scatterpf<mode>df): Ditto.
19314 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19315 (*avx512pf_scatterpf<mode>df): Ditto.
19316 (avx512f_expand<mode>): Removed.
19317 (<shift_insn><mode>3<mask_name>): Change predicate type.
19318
19319 2014-02-08 Jakub Jelinek <jakub@redhat.com>
19320
19321 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
19322 not at the end of datarefs vector use ordered_remove to avoid
19323 reordering datarefs vector.
19324
19325 PR c/59984
19326 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
19327 mark local addressable non-static vars as GOVD_PRIVATE
19328 instead of GOVD_LOCAL.
19329 * omp-low.c (lower_omp_for): Move gimple_bind_vars
19330 and BLOCK_VARS of gimple_bind_block to new_stmt rather
19331 than copying them.
19332
19333 PR middle-end/60092
19334 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
19335 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
19336 assume_aligned or alloc_align attributes.
19337 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
19338 arguments. Handle also assume_aligned and alloc_align attributes.
19339 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
19340 calls to functions with assume_aligned or alloc_align attributes.
19341 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
19342
19343 2014-02-08 Terry Guo <terry.guo@arm.com>
19344
19345 * doc/invoke.texi: Document ARM -march=armv7e-m.
19346
19347 2014-02-08 Jakub Jelinek <jakub@redhat.com>
19348
19349 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
19350 flag on __cilkrts_rethrow builtin.
19351
19352 PR ipa/60026
19353 * ipa-cp.c (determine_versionability): Fail at -O0
19354 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
19355 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
19356
19357 Revert:
19358 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19359
19360 PR ipa/60026
19361 * tree-inline.c (copy_forbidden): Fail for
19362 __attribute__((optimize (0))) functions.
19363
19364 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19365
19366 * varpool.c: Include pointer-set.h.
19367 (varpool_remove_unreferenced_decls): Variables in other partitions
19368 will not be output; be however careful to not lose information
19369 about partitioning.
19370
19371 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
19372
19373 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
19374 lookup in the vtable constructor.
19375
19376 2014-02-07 Jeff Law <law@redhat.com>
19377
19378 PR target/40977
19379 * config/m68k/m68k.md (ashldi_extsi): Turn into a
19380 define_insn_and_split.
19381
19382 * ipa-inline.c (inline_small_functions): Fix typos.
19383
19384 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19385
19386 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
19387 (s390_can_use_return_insn): Declare.
19388 * config/s390/s390.h (EPILOGUE_USES): Define.
19389 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
19390 instructions.
19391 (s390_chunkify_start): Handle return JUMP_LABELs.
19392 (s390_early_mach): Emit a main_pool instruction on the entry edge.
19393 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
19394 (s390_can_use_return_insn): New functions.
19395 (s390_fix_long_loop_prediction): Handle conditional returns.
19396 (TARGET_SET_UP_BY_PROLOGUE): Define.
19397 * config/s390/s390.md (ANY_RETURN): New code iterator.
19398 (*creturn, *csimple_return, return, simple_return): New patterns.
19399
19400 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19401
19402 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
19403 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
19404 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
19405 REG_CFA_RESTORE list when deciding not to restore a register.
19406
19407 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19408
19409 * config/s390/s390.c: Include tree-pass.h and context.h.
19410 (s390_early_mach): New function, split out from...
19411 (s390_emit_prologue): ...here.
19412 (pass_data_s390_early_mach): New pass structure.
19413 (pass_s390_early_mach): New class.
19414 (s390_option_override): Create and register early_mach pass.
19415 Move to end of file.
19416
19417 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19418
19419 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
19420 to match for the exit block.
19421
19422 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19423
19424 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
19425 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
19426 Reject misaligned operands.
19427
19428 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19429
19430 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
19431
19432 2014-02-07 Richard Biener <rguenther@suse.de>
19433
19434 PR middle-end/60092
19435 * gimple-low.c (lower_builtin_posix_memalign): New function.
19436 (lower_stmt): Call it to lower posix_memalign in a way
19437 to make alignment info accessible.
19438
19439 2014-02-07 Jakub Jelinek <jakub@redhat.com>
19440
19441 PR c++/60082
19442 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
19443 __builtin_setjmp_receiver.
19444
19445 2014-02-07 Richard Biener <rguenther@suse.de>
19446
19447 PR middle-end/60092
19448 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
19449 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
19450 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19451 Handle BUILT_IN_POSIX_MEMALIGN.
19452 (find_func_clobbers): Likewise.
19453 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19454 (call_may_clobber_ref_p_1): Likewise.
19455
19456 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19457
19458 PR ipa/59918
19459 * ipa-devirt.c (record_target_from_binfo): Remove overactive
19460 sanity check.
19461
19462 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19463
19464 PR ipa/59469
19465 * lto-cgraph.c (lto_output_node): Use
19466 symtab_get_symbol_partitioning_class.
19467 (lto_output_varpool_node): likewise.
19468 (symtab_get_symbol_partitioning_class): Move here from
19469 lto/lto-partition.c
19470 * cgraph.h (symbol_partitioning_class): Likewise.
19471 (symtab_get_symbol_partitioning_class): Declare.
19472
19473 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19474
19475 * ggc.h (ggc_internal_cleared_alloc): New macro.
19476 * vec.h (vec_safe_copy): Handle memory stats.
19477 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
19478 * target-globals.c (save_target_globals): Likewise.
19479
19480 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
19481
19482 PR target/60077
19483 * expr.c (emit_move_resolve_push): Export; be bit more selective
19484 on when to clear alias set.
19485 * expr.h (emit_move_resolve_push): Declare.
19486 * function.h (struct function): Add tail_call_marked.
19487 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
19488 * config/i386/i386-protos.h (ix86_expand_push): Remove.
19489 * config/i386/i386.md (TImode move expander): De not call
19490 ix86_expand_push.
19491 (FP push expanders): Preserve memory attributes.
19492 * config/i386/sse.md (push<mode>1): Remove.
19493 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
19494 (ix86_expand_push): Remove.
19495 * config/i386/mmx.md (push<mode>1): Remove.
19496
19497 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19498
19499 PR rtl-optimization/60030
19500 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
19501 lopart with paradoxical subreg before shifting it up by hprec.
19502
19503 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19504
19505 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
19506 Remove extra newline at end of file.
19507 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
19508 (arm_issue_rate): Handle cortexa57.
19509 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
19510 (cortex-a57.cortex-a53): Likewise.
19511
19512 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19513
19514 PR target/59575
19515 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
19516 don't record in REG_FRAME_RELATED_EXPR registers not set in that
19517 bitmask.
19518 (arm_expand_prologue): Adjust all callers.
19519 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
19520 info, registers also at the lowest numbered registers side. Use
19521 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
19522 XEXP.
19523
19524 PR debug/59992
19525 * var-tracking.c (adjust_mems): Before adding a SET to
19526 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
19527
19528 2014-02-06 Alan Modra <amodra@gmail.com>
19529
19530 PR target/60032
19531 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
19532 change SDmode to DDmode when lra_in_progress.
19533
19534 2014-02-06 Jakub Jelinek <jakub@redhat.com>
19535
19536 PR middle-end/59150
19537 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
19538 free_data_ref on the dr first, and before goto again also set dr
19539 to the next dr. For simd_lane_access, free old datarefs[i] before
19540 overwriting it. For get_vectype_for_scalar_type failure, don't
19541 free_data_ref if simd_lane_access.
19542
19543 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
19544
19545 PR target/60062
19546 * tree.h (opts_for_fn): New inline function.
19547 (opt_for_fn): Define.
19548 * config/i386/i386.c (ix86_function_regparm): Use
19549 opt_for_fn (decl, optimize) instead of optimize.
19550
19551 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
19552
19553 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
19554 for SYMBOL_REF in large memory model.
19555
19556 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19557
19558 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
19559 and crypto support.
19560 (cortex-a57): Likewise.
19561 (cortex-a57.cortex-a53): Likewise.
19562
19563 2014-02-06 Yury Gribov <y.gribov@samsung.com>
19564 Kugan Vivekanandarajah <kuganv@linaro.org>
19565
19566 * config/arm/arm.c (arm_vector_alignment_reachable): Check
19567 unaligned_access.
19568 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
19569
19570 2014-02-06 Richard Biener <rguenther@suse.de>
19571
19572 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
19573 set_loop_copy and initialize_original_copy_tables.
19574
19575 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
19576
19577 * config/aarch64/aarch64-simd.md
19578 (aarch64_ashr_simddi): Change QI to SI.
19579
19580 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19581 Jakub Jelinek <jakub@redhat.com>
19582
19583 PR middle-end/60013
19584 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
19585 of the dataflow.
19586
19587 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19588
19589 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
19590 CODE_FOR_altivec_vpku[hw]um to
19591 CODE_FOR_altivec_vpku[hw]um_direct.
19592 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
19593 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
19594 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
19595 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
19596
19597 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19598
19599 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
19600 generation for -maltivec=be.
19601 (altivec_vsumsws): Simplify redundant test.
19602
19603 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19604
19605 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
19606 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
19607 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
19608 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
19609 gen_altivec_vpkuwum.
19610 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
19611 BYTES_BIG_ENDIAN.
19612 (altivec_vpks<VI_char>ss): Likewise.
19613 (altivec_vpks<VI_char>us): Likewise.
19614 (altivec_vpku<VI_char>us): Likewise.
19615 (altivec_vpku<VI_char>um): Likewise.
19616 (altivec_vpku<VI_char>um_direct): New (copy of
19617 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
19618 internal use).
19619 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
19620 target is little endian and -maltivec=be is not specified.
19621 (*altivec_vupkhs<VU_char>_direct): New (copy of
19622 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
19623 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
19624 target is little endian and -maltivec=be is not specified.
19625 (*altivec_vupkls<VU_char>_direct): New (copy of
19626 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
19627 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
19628 little endian and -maltivec=be is not specified.
19629 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
19630 little endian and -maltivec=be is not specified.
19631
19632 2014-02-05 Richard Henderson <rth@redhat.com>
19633
19634 PR debug/52727
19635 * combine-stack-adj.c: Revert r206943.
19636 * sched-int.h (struct deps_desc): Add last_args_size.
19637 * sched-deps.c (init_deps): Initialize it.
19638 (sched_analyze_insn): Add OUTPUT dependencies between insns that
19639 contain REG_ARGS_SIZE notes.
19640
19641 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
19642
19643 * lto-cgraph.c (asm_nodes_output): Make global.
19644 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
19645 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
19646 (driver_handle_option): Handle OPT_fwpa.
19647
19648 2014-02-05 Jakub Jelinek <jakub@redhat.com>
19649
19650 PR ipa/59947
19651 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
19652 a comment typo and formatting issue. If odr_hash hasn't been
19653 created, return vNULL and set *completep to false.
19654
19655 PR middle-end/57499
19656 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
19657 bb with no successors.
19658
19659 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
19660
19661 PR target/59718
19662 * doc/invoke.texi (-march): Clarify documentation for ARM.
19663 (-mtune): Likewise.
19664 (-mcpu): Likewise.
19665
19666 2014-02-05 Richard Biener <rguenther@suse.de>
19667
19668 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
19669 when not vectorizing because of too many alias checks.
19670 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
19671 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
19672
19673 2014-02-05 Nick Clifton <nickc@redhat.com>
19674
19675 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
19676 accept extended registers in any mode when compiling for the MN10300.
19677
19678 2014-02-05 Yury Gribov <y.gribov@samsung.com>
19679
19680 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
19681 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
19682 sanitization attributes.
19683 (can_inline_edge_p): Likewise.
19684 (sanitize_attrs_match_for_inline_p): New function.
19685
19686 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19687
19688 * ipa-prop.c (detect_type_change): Shor circuit testing of
19689 type changes on THIS pointer.
19690
19691 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
19692
19693 PR target/59777
19694 * config/pa/pa.c (legitimize_tls_address): Return original address
19695 if not passed a SYMBOL_REF rtx.
19696 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
19697 addresses.
19698 (pa_emit_move_sequence): Simplify TLS source operands.
19699 (pa_legitimate_constant_p): Reject all TLS constants.
19700 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
19701 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
19702
19703 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19704
19705 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
19706 groups when we know they are controlled by LTO.
19707 * varasm.c (default_binds_local_p_1): If object is in other partition,
19708 it will be resolved locally.
19709
19710 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19711
19712 * config/host-linux.c (linux_gt_pch_use_address): Don't
19713 use SSIZE_MAX because it is not always defined.
19714
19715 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
19716
19717 PR bootstrap/59913
19718 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
19719 threshold for pseudo splitting.
19720 (update_ebb_live_info): Process call argument hard registers and
19721 hard registers from insn definition too.
19722 (max_small_class_regs_num): New constant.
19723 (inherit_in_ebb): Update live hard regs through EBBs. Update
19724 reloads_num only for small register classes. Don't split for
19725 outputs of jumps.
19726
19727 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
19728
19729 PR ipa/60058
19730 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
19731 is non-null.
19732
19733 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
19734
19735 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
19736 visibility is safe.
19737
19738 2014-02-04 Marek Polacek <polacek@redhat.com>
19739
19740 * gdbinit.in (pel): Define.
19741
19742 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19743
19744 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
19745 behavior.
19746
19747 2014-02-04 Richard Biener <rguenther@suse.de>
19748
19749 PR lto/59723
19750 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
19751 in function context local.
19752 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
19753 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
19754 similar to LTO_imported_decl_ref.
19755
19756 2014-02-04 Jakub Jelinek <jakub@redhat.com>
19757
19758 PR tree-optimization/60002
19759 * cgraphclones.c (build_function_decl_skip_args): Clear
19760 DECL_LANG_SPECIFIC.
19761
19762 PR tree-optimization/60023
19763 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
19764 false to gsi_replace.
19765 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
19766 has been in some EH region and vec_stmt could throw, add
19767 vec_stmt into the same EH region.
19768 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
19769 has no lhs, ignore it.
19770 * internal-fn.c (expand_MASK_LOAD): Likewise.
19771
19772 PR ipa/60026
19773 * tree-inline.c (copy_forbidden): Fail for
19774 __attribute__((optimize (0))) functions.
19775
19776 PR other/58712
19777 * omp-low.c (simd_clone_struct_copy): If from->inbranch
19778 is set, copy one less argument.
19779 (expand_simd_clones): Don't subtract clone_info->inbranch
19780 from simd_clone_struct_alloc argument.
19781
19782 PR rtl-optimization/57915
19783 * recog.c (simplify_while_replacing): If all unary/binary/relational
19784 operation arguments are constant, attempt to simplify those.
19785
19786 PR middle-end/59261
19787 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
19788 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
19789
19790 2014-02-04 Richard Biener <rguenther@suse.de>
19791
19792 PR tree-optimization/60012
19793 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
19794 TBAA disambiguation to all DDRs.
19795
19796 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19797
19798 PR target/59788
19799 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
19800 (LINK_SPEC): Use it for -shared, -shared-libgcc.
19801
19802 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19803
19804 PR ipa/59882
19805 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
19806
19807 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19808
19809 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
19810 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
19811
19812 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19813
19814 PR ipa/59831
19815 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
19816 to figure out targets of polymorphic calls with known decl.
19817 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19818 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
19819 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
19820 (get_polymorphic_call_info): ... here.
19821 (get_polymorphic_call_info_from_invariant): New function.
19822
19823 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19824
19825 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
19826 lookup via vtable pointer; check for type consistency
19827 and turn inconsitent facts into UNREACHABLE.
19828 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19829 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
19830 type inconsistent querries; return UNREACHABLE instead.
19831
19832 2014-02-03 Richard Henderson <rth@twiddle.net>
19833
19834 PR tree-opt/59924
19835 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
19836 already processed this node.
19837 (normalize_one_pred_1): Pass along mark_set.
19838 (normalize_one_pred): Create and destroy a pointer_set_t.
19839 (normalize_one_pred_chain): Likewise.
19840
19841 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
19842
19843 PR gcov-profile/58602
19844 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
19845
19846 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
19847
19848 PR ipa/59831
19849 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
19850 -fno-devirtualize; try to devirtualize by the knowledge of
19851 virtual table pointer given by aggregate propagation.
19852 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
19853 (ipa_print_node_jump_functions): Dump also offset that
19854 is relevant for polymorphic calls.
19855 (determine_known_aggregate_parts): Add arg_type parameter; use it
19856 instead of determining the type from pointer type.
19857 (ipa_compute_jump_functions_for_edge): Update call of
19858 determine_known_aggregate_parts.
19859 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
19860 (gimple_get_virt_method_for_binfo): ... here; simplify using
19861 vtable_pointer_value_to_vtable.
19862 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
19863 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
19864 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
19865 (vtable_pointer_value_to_vtable): Break out from ...; handle also
19866 POINTER_PLUS_EXPR.
19867 (vtable_pointer_value_to_binfo): ... here.
19868 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
19869
19870 2014-02-03 Teresa Johnson <tejohnson@google.com>
19871
19872 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
19873 redef of outer loop index variable.
19874
19875 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
19876
19877 PR c++/53017
19878 PR c++/59211
19879 * doc/extend.texi (Function Attributes): Typo.
19880
19881 2014-02-03 Cong Hou <congh@google.com>
19882
19883 PR tree-optimization/60000
19884 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
19885 if the vectorized statement is a store. A store statement can only
19886 appear at the end of pattern statements.
19887
19888 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19889
19890 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
19891 (ix86_option_override_internal): Default long double to 64-bit for
19892 32-bit Bionic and to 128-bit for 64-bit Bionic.
19893
19894 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
19895 TARGET_LONG_DOUBLE_128 is true.
19896 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
19897
19898 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
19899 (mlong-double-64): Negate -mlong-double-128.
19900 (mlong-double-128): New option.
19901
19902 * config/i386/i386-c.c (ix86_target_macros): Define
19903 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
19904
19905 * doc/invoke.texi: Document -mlong-double-128.
19906
19907 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
19908
19909 PR rtl-optimization/60024
19910 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
19911
19912 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
19913
19914 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
19915
19916 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19917
19918 PR rtl-optimization/57662
19919 * sel-sched.c (code_motion_path_driver): Do not mark already not
19920 existing blocks in the visiting bitmap.
19921
19922 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
19923
19924 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
19925 on the insn being emitted.
19926
19927 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
19928 Will Deacon <will.deacon@arm.com>
19929
19930 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
19931
19932 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19933
19934 * config/arm/arm-tables.opt: Regenerate.
19935
19936 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19937
19938 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
19939 for vector types other than V16QImode.
19940 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
19941 define_expand, and call altivec_expand_vec_perm_le when producing
19942 code with little endian element order.
19943 (*altivec_vperm_<mode>_internal): New insn having previous
19944 behavior of altivec_vperm_<mode>.
19945 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
19946 altivec_expand_vec_perm_le when producing code with little endian
19947 element order.
19948 (*altivec_vperm_<mode>_uns_internal): New insn having previous
19949 behavior of altivec_vperm_<mode>_uns.
19950
19951 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19952
19953 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
19954 (altivec_vsumsws): Add handling for -maltivec=be with a little
19955 endian target.
19956 (altivec_vsumsws_direct): New.
19957 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
19958 gen_altivec_vsumsws.
19959
19960 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19961
19962 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
19963 vtable_pointer_value_to_binfo): New functions.
19964 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
19965 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
19966
19967 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
19968
19969 * config/nios2/nios2.md (load_got_register): Initialize GOT
19970 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
19971 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
19972
19973 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
19974
19975 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
19976 preserverd by passthrough, do not propagate the type.
19977
19978 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19979
19980 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
19981 (mips_atomic_assign_expand_fenv): New function.
19982 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
19983
19984 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19985
19986 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
19987 (__builtin_mips_set_fcsr): Likewise.
19988 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
19989 MIPS_USI_FTYPE_VOID.
19990 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
19991 (mips16_expand_set_fcsr): Likewise.
19992 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
19993 (mips16_set_fcsr_stub): Likewise.
19994 (mips16_get_fcsr_one_only_stub): New class.
19995 (mips16_set_fcsr_one_only_stub): Likewise.
19996 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
19997 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
19998 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
19999 (hard_float): New availability predicate.
20000 (mips_builtins): Add get_fcsr and set_fcsr.
20001 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
20002 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
20003 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
20004 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
20005 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
20006 patterns.
20007
20008 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
20009
20010 * config/mips/mips.c (mips_one_only_stub): New class.
20011 (mips_need_mips16_rdhwr_p): Replace with...
20012 (mips16_rdhwr_stub): ...this new variable.
20013 (mips16_stub_call_address): New function.
20014 (mips16_rdhwr_one_only_stub): New class.
20015 (mips_expand_thread_pointer): Use mips16_stub_call_address.
20016 (mips_output_mips16_rdhwr): Delete.
20017 (mips_finish_stub): New function.
20018 (mips_code_end): Use it to handle rdhwr stubs.
20019
20020 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
20021
20022 PR target/60017
20023 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
20024 when calculating size of integer atomic types.
20025
20026 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
20027
20028 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
20029
20030 2014-02-01 Jakub Jelinek <jakub@redhat.com>
20031
20032 PR tree-optimization/60003
20033 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
20034 * profile.c (branch_prob): Use gimple_call_builtin_p
20035 to check for BUILT_IN_SETJMP_RECEIVER.
20036 * tree-inline.c (copy_bb): Call notice_special_calls.
20037
20038 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
20039
20040 PR bootstrap/59985
20041 * lra-constraints.c (process_alt_operands): Update reload_sum only
20042 on the first pass.
20043
20044 2014-01-31 Richard Henderson <rth@redhat.com>
20045
20046 PR middle-end/60004
20047 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
20048 until after else_eh is processed.
20049
20050 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
20051
20052 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
20053 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
20054 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
20055 in smmintrin.h, remove them.
20056 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
20057 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
20058 * config/i386/i386.md (ROUND_SAE): Fix value.
20059 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
20060 (const48_operand): New.
20061 * config/i386/subst.md (round), (round_expand): Use
20062 const_4_or_8_to_11_operand.
20063 (round_saeonly), (round_saeonly_expand): Use const48_operand.
20064
20065 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
20066
20067 * config/i386/constraints.md (Yk): Swap meaning with k.
20068 * config/i386/i386.md (movhi_internal): Change Yk to k.
20069 (movqi_internal): Ditto.
20070 (*k<logic><mode>): Ditto.
20071 (*andhi_1): Ditto.
20072 (*andqi_1): Ditto.
20073 (kandn<mode>): Ditto.
20074 (*<code>hi_1): Ditto.
20075 (*<code>qi_1): Ditto.
20076 (kxnor<mode>): Ditto.
20077 (kortestzhi): Ditto.
20078 (kortestchi): Ditto.
20079 (kunpckhi): Ditto.
20080 (*one_cmplhi2_1): Ditto.
20081 (*one_cmplqi2_1): Ditto.
20082 * config/i386/sse.md (): Change k to Yk.
20083 (avx512f_load<mode>_mask): Ditto.
20084 (avx512f_blendm<mode>): Ditto.
20085 (avx512f_store<mode>_mask): Ditto.
20086 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
20087 (avx512f_storedqu<mode>_mask): Ditto.
20088 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
20089 Ditto.
20090 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
20091 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
20092 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
20093 (avx512f_maskcmp<mode>3): Ditto.
20094 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
20095 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
20096 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
20097 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
20098 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
20099 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
20100 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
20101 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
20102 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
20103 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
20104 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
20105 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
20106 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
20107 (vec_extract_lo_<mode>_maskm): Ditto.
20108 (vec_extract_hi_<mode>_maskm): Ditto.
20109 (avx512f_vternlog<mode>_mask): Ditto.
20110 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
20111 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
20112 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
20113 (avx512f_<code>v8div16qi2_mask): Ditto.
20114 (avx512f_<code>v8div16qi2_mask_store): Ditto.
20115 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
20116 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
20117 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
20118 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
20119 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
20120 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20121 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
20122 (*avx512pf_scatterpf<mode>df_mask): Ditto.
20123 (avx512cd_maskb_vec_dupv8di): Ditto.
20124 (avx512cd_maskw_vec_dupv16si): Ditto.
20125 (avx512f_vpermi2var<mode>3_maskz): Ditto.
20126 (avx512f_vpermi2var<mode>3_mask): Ditto.
20127 (avx512f_vpermi2var<mode>3_mask): Ditto.
20128 (avx512f_vpermt2var<mode>3_maskz): Ditto.
20129 (*avx512f_gathersi<mode>): Ditto.
20130 (*avx512f_gathersi<mode>_2): Ditto.
20131 (*avx512f_gatherdi<mode>): Ditto.
20132 (*avx512f_gatherdi<mode>_2): Ditto.
20133 (*avx512f_scattersi<mode>): Ditto.
20134 (*avx512f_scatterdi<mode>): Ditto.
20135 (avx512f_compress<mode>_mask): Ditto.
20136 (avx512f_compressstore<mode>_mask): Ditto.
20137 (avx512f_expand<mode>_mask): Ditto.
20138 * config/i386/subst.md (mask): Change k to Yk.
20139 (mask_scalar_merge): Ditto.
20140 (sd): Ditto.
20141
20142 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
20143
20144 * doc/extend.texi (Vector Extensions): Document ?: in C++.
20145
20146 2014-01-31 Richard Biener <rguenther@suse.de>
20147
20148 PR middle-end/59990
20149 * builtins.c (fold_builtin_memory_op): Make sure to not
20150 use a floating-point mode or a boolean or enumeral type for
20151 the copy operation.
20152
20153 2014-01-30 DJ Delorie <dj@redhat.com>
20154
20155 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
20156 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
20157 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
20158 whenever main() has an epilogue.
20159
20160 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20161
20162 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
20163 unused variable "field".
20164 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
20165 (vsx_mergeh_<mode>): Likewise.
20166 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
20167 (altivec_vmrghh): Likewise.
20168 (altivec_vmrghw): Likewise.
20169 (altivec_vmrglb): Likewise.
20170 (altivec_vmrglh): Likewise.
20171 (altivec_vmrglw): Likewise.
20172 (altivec_vspltb): Add missing uses.
20173 (altivec_vsplth): Likewise.
20174 (altivec_vspltw): Likewise.
20175 (altivec_vspltsf): Likewise.
20176
20177 2014-01-30 Jakub Jelinek <jakub@redhat.com>
20178
20179 PR target/59923
20180 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
20181 frame related instructions.
20182
20183 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
20184
20185 PR rtl-optimization/59959
20186 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
20187 any reload of register whose subreg is invalid.
20188
20189 2014-01-30 Jakub Jelinek <jakub@redhat.com>
20190
20191 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
20192 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
20193 Add missing return type - void.
20194
20195 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20196
20197 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
20198 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
20199 remove element index adjustment for endian (now handled in vsx.md
20200 and altivec.md).
20201 (altivec_expand_vec_perm_const): Use
20202 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
20203 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
20204 (vsx_xxspltw_<mode>): Adjust element index for little endian.
20205 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
20206 define_expand and a new define_insn *altivec_vspltb_internal;
20207 adjust for -maltivec=be on a little endian target.
20208 (altivec_vspltb_direct): New.
20209 (altivec_vsplth): Divide into a define_expand and a new
20210 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
20211 little endian target.
20212 (altivec_vsplth_direct): New.
20213 (altivec_vspltw): Divide into a define_expand and a new
20214 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
20215 little endian target.
20216 (altivec_vspltw_direct): New.
20217 (altivec_vspltsf): Divide into a define_expand and a new
20218 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
20219 a little endian target.
20220
20221 2014-01-30 Richard Biener <rguenther@suse.de>
20222
20223 PR tree-optimization/59993
20224 * tree-ssa-forwprop.c (associate_pointerplus): Check we
20225 can propagate form the earlier stmt and avoid the transform
20226 when the intermediate result is needed.
20227
20228 2014-01-30 Alangi Derick <alangiderick@gmail.com>
20229
20230 * README.Portability: Fix typo.
20231
20232 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
20233
20234 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
20235 comparison_operator with ordered_comparison_operator.
20236
20237 2014-01-30 Nick Clifton <nickc@redhat.com>
20238
20239 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
20240 Rename to mn10300_store_multiple_regs.
20241 * config/mn10300/mn10300.c: Likewise.
20242 * config/mn10300/mn10300.md (store_movm): Fix typo: call
20243 store_multiple_regs.
20244 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
20245 Call mn10300_store_multiple_regs.
20246
20247 2014-01-30 Nick Clifton <nickc@redhat.com>
20248 DJ Delorie <dj@redhat.com>
20249
20250 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
20251 %fp 2 to keep registers after it properly word-aligned.
20252 (rl78_alloc_physical_registers_umul): Handle the case where both
20253 input operands are the same.
20254
20255 2014-01-30 Richard Biener <rguenther@suse.de>
20256
20257 PR tree-optimization/59903
20258 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
20259 check properly.
20260
20261 2014-01-30 Jason Merrill <jason@redhat.com>
20262
20263 PR c++/59633
20264 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
20265
20266 PR c++/59645
20267 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
20268
20269 2014-01-30 Richard Biener <rguenther@suse.de>
20270
20271 PR tree-optimization/59951
20272 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
20273
20274 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
20275
20276 PR target/59784
20277 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
20278 SFmode to DFmode case.
20279
20280 2014-01-29 DJ Delorie <dj@redhat.com>
20281
20282 * config/msp430/msp430.opt (-minrt): New.
20283 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
20284 if -minrt given.
20285 (ENDFILE_SPEC): Likewise.
20286
20287 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
20288
20289 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
20290 (estimate_function_body_sizes): Use it.
20291
20292 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
20293
20294 PR c++/58561
20295 * dwarf2out.c (is_cxx_auto): New.
20296 (is_base_type): Use it.
20297 (gen_type_die_with_usage): Likewise.
20298
20299 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20300
20301 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
20302 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
20303 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
20304 -maltivec=be with LE targets.
20305 (vsx_mergeh_<mode>): Likewise.
20306 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
20307 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
20308 (altivec_vmrghb): Replace with define_expand and new
20309 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
20310 (altivec_vmrghb_direct): New define_insn.
20311 (altivec_vmrghh): Replace with define_expand and new
20312 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
20313 (altivec_vmrghh_direct): New define_insn.
20314 (altivec_vmrghw): Replace with define_expand and new
20315 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
20316 (altivec_vmrghw_direct): New define_insn.
20317 (*altivec_vmrghsf): Adjust for endianness.
20318 (altivec_vmrglb): Replace with define_expand and new
20319 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
20320 (altivec_vmrglb_direct): New define_insn.
20321 (altivec_vmrglh): Replace with define_expand and new
20322 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
20323 (altivec_vmrglh_direct): New define_insn.
20324 (altivec_vmrglw): Replace with define_expand and new
20325 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
20326 (altivec_vmrglw_direct): New define_insn.
20327 (*altivec_vmrglsf): Adjust for endianness.
20328 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
20329 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
20330 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
20331 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
20332 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
20333 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
20334 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
20335 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
20336
20337 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
20338
20339 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
20340 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
20341 whitespace.
20342
20343 2014-01-29 Richard Biener <rguenther@suse.de>
20344
20345 PR tree-optimization/58742
20346 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
20347 associate_pointerplus_align.
20348 (associate_pointerplus_diff): New function.
20349 (associate_pointerplus): Likewise. Call associate_pointerplus_align
20350 and associate_pointerplus_diff.
20351
20352 2014-01-29 Richard Biener <rguenther@suse.de>
20353
20354 * lto-streamer.h (LTO_major_version): Bump to 3.
20355 (LTO_minor_version): Reset to 0.
20356
20357 2014-01-29 Renlin Li <Renlin.Li@arm.com>
20358
20359 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
20360 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
20361 (arm_file_start): Generate correct asm header for armv7ve.
20362 * config/arm/bpabi.h: Add multilib support for armv7ve.
20363 * config/arm/driver-arm.c: Change the architectures of cortex-a7
20364 and cortex-a15 to armv7ve.
20365 * config/arm/t-aprofile: Add multilib support for armv7ve.
20366 * doc/invoke.texi: Document -march=armv7ve.
20367
20368 2014-01-29 Richard Biener <rguenther@suse.de>
20369
20370 PR tree-optimization/58742
20371 * tree-ssa-forwprop.c (associate_plusminus): Return true
20372 if we changed sth, defer EH cleanup to ...
20373 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
20374 (simplify_mult): New function.
20375
20376 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20377
20378 PR middle-end/59917
20379 PR tree-optimization/59920
20380 * tree.c (build_common_builtin_nodes): Remove
20381 __builtin_setjmp_dispatcher initialization.
20382 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
20383 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
20384 instead of gsi_after_labels + manually skipping debug stmts.
20385 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
20386 ignore bbs with IFN_ABNORMAL_DISPATCHER.
20387 * tree-inline.c (copy_edges_for_bb): Remove
20388 can_make_abnormal_goto argument, instead add abnormal_goto_dest
20389 argument. Ignore computed_goto_p stmts. Don't call
20390 make_abnormal_goto_edges. If a call might need abnormal edges
20391 for non-local gotos, see if it already has an edge to
20392 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
20393 with true argument, don't do anything then, otherwise add
20394 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
20395 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
20396 caller.
20397 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
20398 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
20399 (lower_stmt): Don't set data->calls_builtin_setjmp.
20400 (lower_builtin_setjmp): Adjust comment.
20401 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
20402 * tree-cfg.c (found_computed_goto): Remove.
20403 (factor_computed_gotos): Remove.
20404 (make_goto_expr_edges): Return bool, true for computed gotos.
20405 Don't call make_abnormal_goto_edges.
20406 (build_gimple_cfg): Don't set found_computed_goto, don't call
20407 factor_computed_gotos.
20408 (computed_goto_p): No longer static.
20409 (make_blocks): Don't set found_computed_goto.
20410 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
20411 (make_edges): If make_goto_expr_edges returns true, push bb
20412 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
20413 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
20414 vector. Record mapping between bbs and OpenMP regions if there
20415 are any, adjust make_gimple_omp_edges caller. Call
20416 handle_abnormal_edges.
20417 (make_abnormal_goto_edges): Remove.
20418 * tree-cfg.h (make_abnormal_goto_edges): Remove.
20419 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
20420 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
20421 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
20422 * internal-fn.def (ABNORMAL_DISPATCHER): New.
20423 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
20424 filling *region also set *region_idx to (*region)->entry->index.
20425
20426 PR other/58712
20427 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
20428 For REGs set ORIGINAL_REGNO.
20429
20430 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
20431
20432 * doc/md.texi: Mention that a target shouldn't implement
20433 vec_widen_(s|u)mul_even/odd pair if it is less efficient
20434 than hi/lo pair.
20435
20436 2014-01-29 Jakub Jelinek <jakub@redhat.com>
20437
20438 PR tree-optimization/59594
20439 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
20440 a copy of the datarefs vector rather than the vector itself.
20441
20442 2014-01-28 Jason Merrill <jason@redhat.com>
20443
20444 PR c++/53756
20445 * dwarf2out.c (auto_die): New static.
20446 (gen_type_die_with_usage): Handle C++1y 'auto'.
20447 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
20448 on definition.
20449
20450 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
20451
20452 PR target/59672
20453 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
20454 (SPEC_X32): Likewise.
20455 (SPEC_64): Likewise.
20456 * config/i386/i386.c (ix86_option_override_internal): Turn off
20457 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
20458 for TARGET_16BIT.
20459 (x86_file_start): Output .code16gcc for TARGET_16BIT.
20460 * config/i386/i386.h (TARGET_16BIT): New macro.
20461 (TARGET_16BIT_P): Likewise.
20462 * config/i386/i386.opt: Add m16.
20463 * doc/invoke.texi: Document -m16.
20464
20465 2014-01-28 Jakub Jelinek <jakub@redhat.com>
20466
20467 PR preprocessor/59935
20468 * input.c (location_get_source_line): Bail out on when line number
20469 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
20470
20471 2014-01-28 Richard Biener <rguenther@suse.de>
20472
20473 PR tree-optimization/58742
20474 * tree-ssa-forwprop.c (associate_plusminus): Handle
20475 pointer subtraction of the form (T)(P + A) - (T)P.
20476
20477 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20478
20479 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
20480 at const_int_cost.
20481
20482 2014-01-28 Richard Biener <rguenther@suse.de>
20483
20484 Revert
20485 2014-01-28 Richard Biener <rguenther@suse.de>
20486
20487 PR rtl-optimization/45364
20488 PR rtl-optimization/59890
20489 * var-tracking.c (local_get_addr_clear_given_value): Handle
20490 already cleared slot.
20491 (val_reset): Handle not allocated local_get_addr_cache.
20492 (vt_find_locations): Use post-order on the inverted CFG.
20493
20494 2014-01-28 Richard Biener <rguenther@suse.de>
20495
20496 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
20497
20498 2014-01-28 Richard Biener <rguenther@suse.de>
20499
20500 PR rtl-optimization/45364
20501 PR rtl-optimization/59890
20502 * var-tracking.c (local_get_addr_clear_given_value): Handle
20503 already cleared slot.
20504 (val_reset): Handle not allocated local_get_addr_cache.
20505 (vt_find_locations): Use post-order on the inverted CFG.
20506
20507 2014-01-28 Alan Modra <amodra@gmail.com>
20508
20509 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
20510 * configure.ac <recursive call for build != host>: Define
20511 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
20512 and LD_FOR_BUILD too.
20513 * configure: Regenerate.
20514
20515 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
20516
20517 * config/i386/i386.c (get_builtin_code_for_version): Separate
20518 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
20519 Broadwell from Haswell.
20520
20521 2014-01-27 Steve Ellcey <sellcey@mips.com>
20522
20523 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
20524 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
20525 * config/mips/mips.c (mips_option_override): Change setting
20526 of TARGET_DSP.
20527 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
20528 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
20529 Change from Mask to Var.
20530
20531 2014-01-27 Jeff Law <law@redhat.com>
20532
20533 * ipa-inline.c (inline_small_functions): Fix typo.
20534
20535 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
20536
20537 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
20538 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
20539 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
20540 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
20541 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
20542 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
20543 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
20544 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
20545 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
20546 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
20547 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
20548 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
20549 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
20550 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
20551 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
20552 (_mm512_storeu_epi64): Ditto.
20553 (_mm512_cmpge_epi32_mask): Ditto.
20554 (_mm512_cmpge_epu32_mask): Ditto.
20555 (_mm512_cmpge_epi64_mask): Ditto.
20556 (_mm512_cmpge_epu64_mask): Ditto.
20557 (_mm512_cmple_epi32_mask): Ditto.
20558 (_mm512_cmple_epu32_mask): Ditto.
20559 (_mm512_cmple_epi64_mask): Ditto.
20560 (_mm512_cmple_epu64_mask): Ditto.
20561 (_mm512_cmplt_epi32_mask): Ditto.
20562 (_mm512_cmplt_epu32_mask): Ditto.
20563 (_mm512_cmplt_epi64_mask): Ditto.
20564 (_mm512_cmplt_epu64_mask): Ditto.
20565 (_mm512_cmpneq_epi32_mask): Ditto.
20566 (_mm512_cmpneq_epu32_mask): Ditto.
20567 (_mm512_cmpneq_epi64_mask): Ditto.
20568 (_mm512_cmpneq_epu64_mask): Ditto.
20569 (_mm512_expand_pd): Ditto.
20570 (_mm512_expand_ps): Ditto.
20571 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
20572 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
20573 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
20574 * config/i386/i386.c (ix86_builtins): Add
20575 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
20576 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
20577 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
20578 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
20579 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
20580 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
20581 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
20582 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
20583 IX86_BUILTIN_PMOVUSQW512_MEM.
20584 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
20585 __builtin_ia32_pmovsqd512mem_mask,
20586 __builtin_ia32_pmovqd512mem_mask,
20587 __builtin_ia32_pmovusqw512mem_mask,
20588 __builtin_ia32_pmovsqw512mem_mask,
20589 __builtin_ia32_pmovqw512mem_mask,
20590 __builtin_ia32_pmovusdw512mem_mask,
20591 __builtin_ia32_pmovsdw512mem_mask,
20592 __builtin_ia32_pmovdw512mem_mask,
20593 __builtin_ia32_pmovqb512mem_mask,
20594 __builtin_ia32_pmovusqb512mem_mask,
20595 __builtin_ia32_pmovsqb512mem_mask,
20596 __builtin_ia32_pmovusdb512mem_mask,
20597 __builtin_ia32_pmovsdb512mem_mask,
20598 __builtin_ia32_pmovdb512mem_mask.
20599 (bdesc_args): Add __builtin_ia32_expanddf512,
20600 __builtin_ia32_expandsf512.
20601 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
20602 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
20603 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
20604 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
20605 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
20606 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
20607 (avx512f_<code>v8div16qi2_mask_store): This.
20608 (avx512f_expand<mode>): New.
20609
20610 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
20611
20612 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
20613 New.
20614 (_mm512_mask_prefetch_i64gather_pd): Ditto.
20615 (_mm512_prefetch_i32scatter_pd): Ditto.
20616 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
20617 (_mm512_prefetch_i64scatter_pd): Ditto.
20618 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
20619 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
20620 (_mm512_mask_prefetch_i64gather_ps): Ditto.
20621 (_mm512_prefetch_i32scatter_ps): Ditto.
20622 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
20623 (_mm512_prefetch_i64scatter_ps): Ditto.
20624 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
20625 * config/i386/i386-builtin-types.def: Define
20626 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
20627 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
20628 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
20629 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
20630 IX86_BUILTIN_SCATTERPFQPD.
20631 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
20632 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
20633 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
20634 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
20635 __builtin_ia32_scatterpfqps.
20636 (ix86_expand_builtin): Expand new built-ins.
20637 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
20638 fix memory access data type.
20639 (*avx512pf_gatherpf<mode>_mask): Ditto.
20640 (*avx512pf_gatherpf<mode>): Ditto.
20641 (avx512pf_scatterpf<mode>): Ditto.
20642 (*avx512pf_scatterpf<mode>_mask): Ditto.
20643 (*avx512pf_scatterpf<mode>): Ditto.
20644 (GATHER_SCATTER_SF_MEM_MODE): New.
20645 (avx512pf_gatherpf<mode>df): Ditto.
20646 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20647 (*avx512pf_scatterpf<mode>df): Ditto.
20648
20649 2014-01-27 Jakub Jelinek <jakub@redhat.com>
20650
20651 PR bootstrap/59934
20652 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
20653 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
20654 reached.
20655
20656 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20657
20658 * common/config/arm/arm-common.c
20659 (arm_rewrite_mcpu): Handle multiple names.
20660 * config/arm/arm.h
20661 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20662
20663 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
20664
20665 * gimple-builder.h (create_gimple_tmp): Delete.
20666
20667 2014-01-27 Christian Bruel <christian.bruel@st.com>
20668
20669 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
20670 words comparisons.
20671
20672 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
20673
20674 * config/pa/pa.md (call): Generate indirect long calls to non-local
20675 functions when outputing 32-bit code.
20676 (call_value): Likewise except for special call to buggy powf function.
20677
20678 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
20679 portable runtime and PIC indirect calls.
20680 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
20681 and PIC call sequences. Use ldo instead of blr to set return register
20682 in PIC call sequence.
20683
20684 2014-01-25 Walter Lee <walt@tilera.com>
20685
20686 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
20687 avoid clobbering a live register.
20688
20689 2014-01-25 Walter Lee <walt@tilera.com>
20690
20691 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
20692 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
20693 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
20694 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
20695
20696 2014-01-25 Walter Lee <walt@tilera.com>
20697
20698 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
20699 arguments on even registers.
20700 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
20701 STACK_BOUNDARY.
20702 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
20703 (BIGGEST_ALIGNMENT): Ditto.
20704 (BIGGEST_FIELD_ALIGNMENT): Ditto.
20705
20706 2014-01-25 Walter Lee <walt@tilera.com>
20707
20708 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
20709 insns before bundling.
20710 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
20711
20712 2014-01-25 Walter Lee <walt@tilera.com>
20713
20714 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
20715 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
20716 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
20717
20718 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20719
20720 * config/mips/constraints.md (kl): Delete.
20721 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
20722 define expands, using...
20723 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
20724 instructions for MIPS16.
20725 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
20726 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
20727
20728 2014-01-25 Walter Lee <walt@tilera.com>
20729
20730 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
20731 (clzdi2): Ditto.
20732 (ffsdi2): Ditto.
20733
20734 2014-01-25 Walter Lee <walt@tilera.com>
20735
20736 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
20737 (TARGET_EXPAND_TO_RTL_HOOK): Define.
20738
20739 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
20740
20741 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
20742 Handle XOR.
20743
20744 2014-01-25 Jakub Jelinek <jakub@redhat.com>
20745
20746 * print-rtl.c (in_call_function_usage): New var.
20747 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
20748 EXPR_LIST mode as mode and not as reg note name.
20749
20750 PR middle-end/59561
20751 * cfgloopmanip.c (copy_loop_info): If
20752 loop->warned_aggressive_loop_optimizations, make sure
20753 the flag is set in target loop too.
20754
20755 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
20756
20757 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
20758 flag_cilkplus.
20759 * builtins.def: Likewise.
20760 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
20761 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
20762 * ira.c (ira_setup_eliminable_regset): Likewise.
20763 * omp-low.c (gate_expand_omp): Likewise.
20764 (execute_lower_omp): Likewise.
20765 (diagnose_sb_0): Likewise.
20766 (gate_diagnose_omp_blocks): Likewise.
20767 (simd_clone_clauses_extract): Likewise.
20768 (gate): Likewise.
20769
20770 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20771
20772 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
20773 correction for little endian...
20774 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
20775 here.
20776
20777 2014-01-24 Jeff Law <law@redhat.com>
20778
20779 PR tree-optimization/59919
20780 * tree-vrp.c (find_assert_locations_1): Do not register asserts
20781 for non-returning calls.
20782
20783 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
20784
20785 * common/config/aarch64/aarch64-common.c
20786 (aarch64_rewrite_mcpu): Handle multiple names.
20787 * config/aarch64/aarch64.h
20788 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
20789
20790 2014-01-24 Dodji Seketeli <dodji@redhat.com>
20791
20792 * input.c (add_file_to_cache_tab): Handle the case where fopen
20793 returns NULL.
20794
20795 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
20796
20797 PR target/59929
20798 * config/i386/i386.md (pushsf splitter): Get stack adjustment
20799 from push operand if code of push isn't PRE_DEC.
20800
20801 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20802
20803 PR target/59909
20804 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20805 -mquad-memory-atomic. Update -mquad-memory documentation to say
20806 it is only used for non-atomic loads/stores.
20807
20808 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
20809 -mquad-memory or -mquad-memory-atomic switches.
20810
20811 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
20812 -mquad-memory-atomic to ISA 2.07 support.
20813
20814 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
20815 to separate support of normal quad word memory operations (ldq, stq)
20816 from the atomic quad word memory operations.
20817
20818 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
20819 support to separate non-atomic quad word operations from atomic
20820 quad word operations. Disable non-atomic quad word operations in
20821 little endian mode so that we don't have to swap words after the
20822 load and before the store.
20823 (quad_load_store_p): Add comment about atomic quad word support.
20824 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
20825 options printed with -mdebug=reg.
20826
20827 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
20828 -mquad-memory-atomic as the test for whether we have quad word
20829 atomic instructions.
20830 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
20831 or -mp8-vector are used, allow byte/half-word atomic operations.
20832
20833 * config/rs6000/sync.md (load_lockedti): Insure that the address
20834 is a proper indexed or indirect address for the lqarx instruction.
20835 On little endian systems, swap the hi/lo registers after the lqarx
20836 instruction.
20837 (load_lockedpti): Use indexed_or_indirect_operand predicate to
20838 insure the address is valid for the lqarx instruction.
20839 (store_conditionalti): Insure that the address is a proper indexed
20840 or indirect address for the stqcrx. instruction. On little endian
20841 systems, swap the hi/lo registers before doing the stqcrx.
20842 instruction.
20843 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
20844 insure the address is valid for the stqcrx. instruction.
20845
20846 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
20847 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
20848 type of quad memory support is available.
20849
20850 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
20851
20852 PR regression/59915
20853 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
20854 there is a danger of looping.
20855
20856 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
20857
20858 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20859 force flag_ira_loop_pressure if set via command line.
20860
20861 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20862
20863 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
20864 (ashr_simd): New builtin handling DI mode.
20865 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
20866 (aarch64_sshr_simddi): New match pattern.
20867 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
20868 (vshrd_n_s64): Likewise.
20869 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
20870
20871 2014-01-23 Nick Clifton <nickc@redhat.com>
20872
20873 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
20874 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
20875 favour of mcu specific scripts.
20876 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
20877 430x multilibs.
20878
20879 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20880 Alex Velenko <Alex.Velenko@arm.com>
20881
20882 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
20883 (vaddv_s16): Likewise.
20884 (vaddv_s32): Likewise.
20885 (vaddv_u8): Likewise.
20886 (vaddv_u16): Likewise.
20887 (vaddv_u32): Likewise.
20888 (vaddvq_s8): Likewise.
20889 (vaddvq_s16): Likewise.
20890 (vaddvq_s32): Likewise.
20891 (vaddvq_s64): Likewise.
20892 (vaddvq_u8): Likewise.
20893 (vaddvq_u16): Likewise.
20894 (vaddvq_u32): Likewise.
20895 (vaddvq_u64): Likewise.
20896 (vaddv_f32): Likewise.
20897 (vaddvq_f32): Likewise.
20898 (vaddvq_f64): Likewise.
20899 (vmaxv_f32): Likewise.
20900 (vmaxv_s8): Likewise.
20901 (vmaxv_s16): Likewise.
20902 (vmaxv_s32): Likewise.
20903 (vmaxv_u8): Likewise.
20904 (vmaxv_u16): Likewise.
20905 (vmaxv_u32): Likewise.
20906 (vmaxvq_f32): Likewise.
20907 (vmaxvq_f64): Likewise.
20908 (vmaxvq_s8): Likewise.
20909 (vmaxvq_s16): Likewise.
20910 (vmaxvq_s32): Likewise.
20911 (vmaxvq_u8): Likewise.
20912 (vmaxvq_u16): Likewise.
20913 (vmaxvq_u32): Likewise.
20914 (vmaxnmv_f32): Likewise.
20915 (vmaxnmvq_f32): Likewise.
20916 (vmaxnmvq_f64): Likewise.
20917 (vminv_f32): Likewise.
20918 (vminv_s8): Likewise.
20919 (vminv_s16): Likewise.
20920 (vminv_s32): Likewise.
20921 (vminv_u8): Likewise.
20922 (vminv_u16): Likewise.
20923 (vminv_u32): Likewise.
20924 (vminvq_f32): Likewise.
20925 (vminvq_f64): Likewise.
20926 (vminvq_s8): Likewise.
20927 (vminvq_s16): Likewise.
20928 (vminvq_s32): Likewise.
20929 (vminvq_u8): Likewise.
20930 (vminvq_u16): Likewise.
20931 (vminvq_u32): Likewise.
20932 (vminnmv_f32): Likewise.
20933 (vminnmvq_f32): Likewise.
20934 (vminnmvq_f64): Likewise.
20935
20936 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
20937
20938 * config/aarch64/aarch64-simd.md
20939 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
20940 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
20941 (*aarch64_mul3_elt<mode>): Likewise.
20942 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
20943 (*aarch64_mul3_elt_to_64v2df): Likewise.
20944 (*aarch64_mla_elt<mode>): Likewise.
20945 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
20946 (*aarch64_mls_elt<mode>): Likewise.
20947 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
20948 (*aarch64_fma4_elt<mode>): Likewise.
20949 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
20950 (*aarch64_fma4_elt_to_64v2df): Likewise.
20951 (*aarch64_fnma4_elt<mode>): Likewise.
20952 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
20953 (*aarch64_fnma4_elt_to_64v2df): Likewise.
20954 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
20955 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
20956 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20957 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
20958 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20959 (aarch64_sqdmull_lane<mode>_internal): Likewise.
20960 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20961
20962 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
20963
20964 * config/aarch64/aarch64-simd.md
20965 (aarch64_be_checked_get_lane<mode>): New define_expand.
20966 * config/aarch64/aarch64-simd-builtins.def
20967 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
20968 New builtin definition.
20969 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
20970 Use new safe be builtin.
20971
20972 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
20973
20974 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
20975 New define_insn.
20976 (aarch64_be_st1<mode>): Likewise.
20977 (aarch_ld1<VALL:mode>): Define_expand modified.
20978 (aarch_st1<VALL:mode>): Likewise.
20979 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
20980 (UNSPEC_ST1): Likewise.
20981
20982 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
20983
20984 * config/microblaze/microblaze.md: Add trap insn and attribute
20985
20986 2014-01-23 Dodji Seketeli <dodji@redhat.com>
20987
20988 PR preprocessor/58580
20989 * input.h (location_get_source_line): Take an additional line_size
20990 parameter.
20991 (void diagnostics_file_cache_fini): Declare new function.
20992 * input.c (struct fcache): New type.
20993 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
20994 New static constants.
20995 (diagnostic_file_cache_init, total_lines_num)
20996 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
20997 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
20998 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
20999 (get_next_line, read_next_line, goto_next_line, read_line_num):
21000 New static function definitions.
21001 (diagnostic_file_cache_fini): New function.
21002 (location_get_source_line): Take an additional output line_len
21003 parameter. Re-write using lookup_or_add_file_to_cache_tab and
21004 read_line_num.
21005 * diagnostic.c (diagnostic_finish): Call
21006 diagnostic_file_cache_fini.
21007 (adjust_line): Take an additional input parameter for the length
21008 of the line, rather than calculating it with strlen.
21009 (diagnostic_show_locus): Adjust the use of
21010 location_get_source_line and adjust_line with respect to their new
21011 signature. While displaying a line now, do not stop at the first
21012 null byte. Rather, display the zero byte as a space and keep
21013 going until we reach the size of the line.
21014 * Makefile.in: Add vec.o to OBJS-libcommon
21015
21016 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
21017 Ilya Tocar <ilya.tocar@intel.com>
21018
21019 * config/i386/avx512fintrin.h (_mm512_kmov): New.
21020 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
21021 (__builtin_ia32_kmov16): Ditto.
21022 * config/i386/i386.md (UNSPEC_KMOV): New.
21023 (kmovw): Ditto.
21024
21025 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
21026
21027 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
21028 (_mm512_storeu_si512): Ditto.
21029
21030 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
21031
21032 PR target/52125
21033 * rtl.h (get_referenced_operands): Declare.
21034 * recog.c (get_referenced_operands): New function.
21035 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
21036 operands have been referenced when recording LO_SUM references.
21037
21038 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
21039
21040 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
21041
21042 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
21043
21044 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
21045 Enable for generic and recent AMD targets.
21046
21047 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
21048
21049 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
21050 ARG_SIZE note when adjustment was eliminated.
21051
21052 2014-01-22 Jeff Law <law@redhat.com>
21053
21054 PR tree-optimization/59597
21055 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
21056 in file. Accept new argument REGISTERING and use it to modify
21057 dump output appropriately.
21058 (register_jump_thread): Corresponding changes.
21059 (mark_threaded_blocks): Reinstate code to cancel unprofitable
21060 thread paths involving joiner blocks. Add code to dump cancelled
21061 jump threading paths.
21062
21063 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
21064
21065 PR rtl-optimization/59477
21066 * lra-constraints.c (inherit_in_ebb): Process call for living hard
21067 regs. Update reloads_num and potential_reload_hard_regs for all insns.
21068
21069 2014-01-22 Tom Tromey <tromey@redhat.com>
21070
21071 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
21072 PARAMS.
21073 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
21074
21075 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
21076
21077 PR rtl-optimization/59896
21078 * lra-constraints.c (process_alt_operands): Check unused note for
21079 matched operands of insn with no output reloads.
21080
21081 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
21082
21083 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
21084 (mips_move_from_gpr_cost): Likewise.
21085
21086 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
21087
21088 PR rtl-optimization/59858
21089 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
21090 ira_class_hard_regs_num.
21091 (process_alt_operands): Increase reject for dying matched operand.
21092
21093 2014-01-21 Jakub Jelinek <jakub@redhat.com>
21094
21095 PR target/59003
21096 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
21097 smaller than size, perform several stores or loads and stores
21098 at dst + count - size to store or copy all of size bytes, rather
21099 than just last modesize bytes.
21100
21101 2014-01-20 DJ Delorie <dj@redhat.com>
21102
21103 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
21104 that CLOBBERs are REGs before propogating their values.
21105
21106 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
21107
21108 PR middle-end/59789
21109 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
21110 (cgraph_inline_failed_type): New function.
21111 * cgraph.h (DEFCIFCODE): Add type.
21112 (cgraph_inline_failed_type_t): New enum.
21113 (cgraph_inline_failed_type): New prototype.
21114 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
21115 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
21116 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
21117 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
21118 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
21119 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
21120 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
21121 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
21122 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
21123 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
21124 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
21125 OPTIMIZATION_MISMATCH.
21126 * tree-inline.c (expand_call_inline): Emit errors during
21127 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
21128
21129 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
21130
21131 PR target/59685
21132 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
21133 mode attribute in insn output.
21134
21135 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
21136
21137 * output.h (output_constant): Delete.
21138 * varasm.c (output_constant): Make private.
21139
21140 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
21141
21142 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
21143
21144 2014-01-20 Jakub Jelinek <jakub@redhat.com>
21145
21146 PR middle-end/59860
21147 * tree.h (fold_builtin_strcat): New prototype.
21148 * builtins.c (fold_builtin_strcat): No longer static. Add len
21149 argument, if non-NULL, don't call c_strlen. Optimize
21150 directly into __builtin_memcpy instead of __builtin_strcpy.
21151 (fold_builtin_2): Adjust fold_builtin_strcat caller.
21152 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
21153
21154 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
21155
21156 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
21157 for SImode_address_operand operands, having only a REG argument.
21158
21159 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
21160
21161 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
21162 loader name using mbig-endian.
21163 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
21164
21165 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
21166
21167 * doc/invoke.texi (-march): Clarify documentation for AArch64.
21168 (-mtune): Likewise.
21169 (-mcpu): Likewise.
21170
21171 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
21172
21173 * config/aarch64/aarch64-protos.h
21174 (aarch64_cannot_change_mode_class_ptr): Declare.
21175 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
21176 aarch64_cannot_change_mode_class_ptr): New.
21177 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
21178 backend hook aarch64_cannot_change_mode_class.
21179
21180 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
21181
21182 * common/config/aarch64/aarch64-common.c
21183 (aarch64_handle_option): Don't handle any option order logic here.
21184 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
21185 selected_cpu, warn on architecture version mismatch.
21186 (aarch64_override_options): Fix parsing order for option strings.
21187
21188 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21189 Iain Sandoe <iain@codesourcery.com>
21190
21191 PR bootstrap/59496
21192 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
21193 warning. Amend comment to reflect current functionality.
21194
21195 2014-01-20 Richard Biener <rguenther@suse.de>
21196
21197 PR middle-end/59860
21198 * builtins.c (fold_builtin_strcat): Remove case better handled
21199 by tree-ssa-strlen.c.
21200
21201 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
21202
21203 * config/aarch64/aarch64.opt
21204 (mcpu, march, mtune): Make case-insensitive.
21205
21206 2014-01-20 Jakub Jelinek <jakub@redhat.com>
21207
21208 PR target/59880
21209 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
21210 if operands[1] is a REG or ZERO_EXTEND of a REG.
21211
21212 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
21213
21214 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
21215
21216 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
21217
21218 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
21219 long non-pic millicode calls.
21220
21221 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21222
21223 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
21224
21225 2014-01-19 Kito Cheng <kito@0xlab.org>
21226
21227 * builtins.c (expand_movstr): Check movstr expand done or fail.
21228
21229 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21230 H.J. Lu <hongjiu.lu@intel.com>
21231
21232 PR target/59379
21233 * config/i386/i386.md (*lea<mode>): Zero-extend return register
21234 to DImode for zero-extended addresses.
21235
21236 2014-01-19 Jakub Jelinek <jakub@redhat.com>
21237
21238 PR rtl-optimization/57763
21239 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
21240 on the new indirect jump_insn and increment LABEL_NUSES (label).
21241
21242 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
21243
21244 PR bootstrap/59580
21245 PR bootstrap/59583
21246 * config.gcc (x86_archs): New variable.
21247 (x86_64_archs): Likewise.
21248 (x86_cpus): Likewise.
21249 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
21250 --with-arch/--with-cpu= options.
21251 Support --with-arch=/--with-cpu={nehalem,westmere,
21252 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
21253
21254 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21255
21256 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
21257 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
21258
21259 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
21260
21261 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
21262
21263 2014-01-18 Jakub Jelinek <jakub@redhat.com>
21264
21265 PR target/58944
21266 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
21267 clear cpp_get_options (parse_in)->warn_unused_macros for
21268 ix86_target_macros_internal with cpp_define.
21269
21270 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
21271
21272 * jump.c (delete_related_insns): Keep (use (insn))s.
21273 * reorg.c (redundant_insn): Check for barriers too.
21274
21275 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21276
21277 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
21278
21279 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
21280
21281 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
21282 call to $$dyncall when TARGET_LONG_CALLS is true.
21283
21284 2014-01-17 Jeff Law <law@redhat.com>
21285
21286 * ree.c (combine_set_extension): Temporarily disable test for
21287 changing number of hard registers.
21288
21289 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21290
21291 PR middle-end/58125
21292 * ipa-inline-analysis.c (inline_free_summary):
21293 Do not free summary of aliases.
21294
21295 2014-01-17 Jakub Jelinek <jakub@redhat.com>
21296
21297 PR middle-end/59706
21298 * gimplify.c (gimplify_expr): Use create_tmp_var
21299 instead of create_tmp_var_raw. If cond doesn't have
21300 integral type, don't add the IFN_ANNOTATE builtin at all.
21301
21302 2014-01-17 Martin Jambor <mjambor@suse.cz>
21303
21304 PR ipa/59736
21305 * ipa-cp.c (prev_edge_clone): New variable.
21306 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
21307 Also resize prev_edge_clone vector.
21308 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
21309 (ipcp_edge_removal_hook): New function.
21310 (ipcp_driver): Register ipcp_edge_removal_hook.
21311
21312 2014-01-17 Andrew Pinski <apinski@cavium.com>
21313 Steve Ellcey <sellcey@mips.com>
21314
21315 PR target/59462
21316 * config/mips/mips.c (mips_print_operand): Check operand mode instead
21317 of operator mode.
21318
21319 2014-01-17 Jeff Law <law@redhat.com>
21320
21321 PR middle-end/57904
21322 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
21323 so that pass_ccp runs first.
21324
21325 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21326
21327 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
21328 (ix86_adjust_cost): Use !TARGET_XXX.
21329 (do_reorder_for_imul): Likewise.
21330 (swap_top_of_ready_list): Likewise.
21331 (ix86_sched_reorder): Likewise.
21332
21333 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
21334
21335 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21336 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
21337 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
21338 (intel_memset): New. Duplicate slm_memset.
21339 (intel_cost): New. Duplicate slm_cost.
21340 (m_INTEL): New macro.
21341 (processor_target_table): Add "intel".
21342 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
21343 with PROCESSOR_INTEL for "intel".
21344 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
21345 PROCESSOR_SILVERMONT.
21346 (ix86_issue_rate): Likewise.
21347 (ix86_adjust_cost): Likewise.
21348 (ia32_multipass_dfa_lookahead): Likewise.
21349 (swap_top_of_ready_list): Likewise.
21350 (ix86_sched_reorder): Likewise.
21351 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
21352 instead of TARGET_OPT_AGU.
21353 * config/i386/i386.h (TARGET_INTEL): New.
21354 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
21355 (processor_type): Add PROCESSOR_INTEL.
21356 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
21357 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
21358
21359 2014-01-17 Marek Polacek <polacek@redhat.com>
21360
21361 PR c/58346
21362 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
21363 size is zero.
21364
21365 2014-01-17 Richard Biener <rguenther@suse.de>
21366
21367 PR tree-optimization/46590
21368 * opts.c (default_options_table): Add entries for
21369 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
21370 all enabled at -O1 but not for -Og.
21371 * common.opt (fbranch-count-reg): Remove Init(1).
21372 (fmove-loop-invariants): Likewise.
21373 (ftree-pta): Likewise.
21374
21375 2014-01-17 Jakub Jelinek <jakub@redhat.com>
21376
21377 * config/i386/i386.c (ix86_data_alignment): For compatibility with
21378 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
21379 decls to at least the GCC 4.8 used alignments.
21380
21381 PR fortran/59440
21382 * tree-nested.c (convert_nonlocal_reference_stmt,
21383 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
21384 of GIMPLE_BIND stmts, adjust associated decls.
21385
21386 2014-01-17 Richard Biener <rguenther@suse.de>
21387
21388 PR tree-optimization/46590
21389 * vec.h (vec<>::bseach): New member function implementing
21390 binary search according to C89 bsearch.
21391 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
21392 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
21393 bitmap pointer again. Make accesses_in_loop a flat array.
21394 (mem_ref_obstack): New global.
21395 (outermost_indep_loop): Adjust for mem_ref->stored changes.
21396 (mark_ref_stored): Likewise.
21397 (ref_indep_loop_p_2): Likewise.
21398 (set_ref_stored_in_loop): New helper function.
21399 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
21400 (memref_free): Adjust.
21401 (record_mem_ref_loc): Simplify.
21402 (gather_mem_refs_stmt): Adjust.
21403 (sort_locs_in_loop_postorder_cmp): New function.
21404 (analyze_memory_references): Sort accesses_in_loop after
21405 loop postorder number.
21406 (find_ref_loc_in_loop_cmp): New function.
21407 (for_all_locs_in_loop): Find relevant cluster of locs in
21408 accesses_in_loop and iterate without recursion.
21409 (execute_sm): Avoid uninit warning.
21410 (struct ref_always_accessed): Simplify.
21411 (ref_always_accessed::operator ()): Likewise.
21412 (ref_always_accessed_p): Likewise.
21413 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
21414 loop postorder numbers here.
21415 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
21416 numbers.
21417
21418 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
21419
21420 PR c++/57945
21421 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
21422 on decls for which assemble_alias has been called.
21423
21424 2014-01-17 Nick Clifton <nickc@redhat.com>
21425
21426 * config/msp430/msp430.opt: (mcpu): New option.
21427 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
21428 (msp430_option_override): Parse target_cpu. If the MCU name
21429 matches a generic string, clear target_mcu.
21430 (msp430_attr): Allow numeric interrupt values up to 63.
21431 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
21432 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
21433 option.
21434 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
21435 Add mcpu matches.
21436 * config/msp430/msp430.md (popm): Use %J rather than %I.
21437 (addsi3): Use msp430_nonimmediate_operand for operand 2.
21438 (addhi_cy_i): Use immediate_operand for operand 2.
21439 * doc/invoke.texi: Document -mcpu option.
21440
21441 2014-01-17 Richard Biener <rguenther@suse.de>
21442
21443 PR rtl-optimization/38518
21444 * df.h (df_analyze_loop): Declare.
21445 * df-core.c: Include cfgloop.h.
21446 (df_analyze_1): Split out main part of df_analyze.
21447 (df_analyze): Adjust.
21448 (loop_inverted_post_order_compute): New function.
21449 (loop_post_order_compute): Likewise.
21450 (df_analyze_loop): New function avoiding whole-function
21451 postorder computes.
21452 * loop-invariant.c (find_defs): Use df_analyze_loop.
21453 (find_invariants): Adjust.
21454 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
21455
21456 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
21457
21458 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
21459 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
21460
21461 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
21462
21463 * ipa-ref.c (ipa_remove_stmt_references): Fix references
21464 traversal when removing references.
21465
21466 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
21467
21468 PR ipa/59775
21469 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
21470
21471 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
21472
21473 PR middle-end/56791
21474 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
21475 pushing a reload for an autoinc when we had previously reloaded an
21476 inner part of the address.
21477
21478 2014-01-16 Jakub Jelinek <jakub@redhat.com>
21479
21480 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
21481 field.
21482 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
21483 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
21484 when not giving up or versioning for alias only because of
21485 loop->safelen.
21486 (vect_analyze_data_ref_dependences): Set to true.
21487 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
21488 is a GIMPLE_PHI.
21489 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
21490 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
21491 to the condition.
21492
21493 PR middle-end/58344
21494 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
21495
21496 PR target/59839
21497 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
21498 operand 0 predicate for gathers, use a new pseudo as subtarget.
21499
21500 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21501
21502 PR middle-end/59609
21503 * lra-constraints.c (process_alt_operands): Add printing debug info.
21504 Check absence of input/output reloads for matched operands too.
21505
21506 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
21507
21508 PR rtl-optimization/59835
21509 * ira.c (ira_init_register_move_cost): Increase cost for
21510 impossible modes.
21511
21512 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
21513
21514 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
21515
21516 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
21517
21518 PR target/59780
21519 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
21520 non-register objects. Use gen_(high/low)part more consistently.
21521 Fix assertions.
21522
21523 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
21524
21525 PR target/59844
21526 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
21527 endian support, remove tests for WORDS_BIG_ENDIAN.
21528 (p8_mfvsrd_3_<mode>): Likewise.
21529 (reload_gpr_from_vsx<mode>): Likewise.
21530 (reload_gpr_from_vsxsf): Likewise.
21531 (p8_mfvsrd_4_disf): Likewise.
21532
21533 2014-01-16 Richard Biener <rguenther@suse.de>
21534
21535 PR rtl-optimization/46590
21536 * lcm.c (compute_antinout_edge): Use postorder iteration.
21537 (compute_laterin): Use inverted postorder iteration.
21538
21539 2014-01-16 Nick Clifton <nickc@redhat.com>
21540
21541 PR middle-end/28865
21542 * varasm.c (output_constant): Return the number of bytes actually
21543 emitted.
21544 (output_constructor_array_range): Update the field size with the
21545 number of bytes emitted by output_constant.
21546 (output_constructor_regular_field): Likewise. Also do not
21547 complain if the total number of bytes emitted is now greater
21548 than the expected fieldpos.
21549 * output.h (output_constant): Update prototype and descriptive comment.
21550
21551 2014-01-16 Marek Polacek <polacek@redhat.com>
21552
21553 PR middle-end/59827
21554 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
21555 it is error_mark_node.
21556
21557 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
21558
21559 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
21560 VALID_AVX256_REG_OR_OI_MODE.
21561
21562 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
21563
21564 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
21565 current procedure should be profiled.
21566
21567 2014-01-15 Andrew Pinski <apinski@cavium.com>
21568
21569 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
21570 of moving from/to the STACK_REG register class.
21571
21572 2014-01-15 Richard Henderson <rth@redhat.com>
21573
21574 PR debug/54694
21575 * reginfo.c (global_regs_decl): Globalize.
21576 * rtl.h (global_regs_decl): Declare.
21577 * ira.c (do_reload): Diagnose frame_pointer_needed and it
21578 reserved via global_regs.
21579
21580 2014-01-15 Teresa Johnson <tejohnson@google.com>
21581
21582 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
21583
21584 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
21585
21586 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
21587 and vmulosh rather than call gen_vec_widen_smult_*.
21588 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
21589 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
21590 (vec_widen_smult_even_v16qi): Likewise.
21591 (vec_widen_umult_even_v8hi): Likewise.
21592 (vec_widen_smult_even_v8hi): Likewise.
21593 (vec_widen_umult_odd_v16qi): Likewise.
21594 (vec_widen_smult_odd_v16qi): Likewise.
21595 (vec_widen_umult_odd_v8hi): Likewise.
21596 (vec_widen_smult_odd_v8hi): Likewise.
21597 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
21598 vmuloub rather than call gen_vec_widen_umult_*.
21599 (vec_widen_umult_lo_v16qi): Likewise.
21600 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
21601 vmulosb rather than call gen_vec_widen_smult_*.
21602 (vec_widen_smult_lo_v16qi): Likewise.
21603 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
21604 rather than call gen_vec_widen_umult_*.
21605 (vec_widen_umult_lo_v8hi): Likewise.
21606 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
21607 rather than call gen_vec_widen_smult_*.
21608 (vec_widen_smult_lo_v8hi): Likewise.
21609
21610 2014-01-15 Jeff Law <law@redhat.com>
21611
21612 PR tree-optimization/59747
21613 * ree.c (find_and_remove_re): Properly handle case where a second
21614 eliminated extension requires widening a copy created for elimination
21615 of a prior extension.
21616 (combine_set_extension): Ensure that the number of hard regs needed
21617 for a destination register does not change when we widen it.
21618
21619 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
21620
21621 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
21622 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
21623 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
21624 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
21625 (avr-*-rtems*): Likewise.
21626 (bfin*-rtems*): Likewise.
21627 (moxie-*-rtems*): Likewise.
21628 (h8300-*-rtems*): Likewise.
21629 (i[34567]86-*-rtems*): Likewise.
21630 (lm32-*-rtems*): Likewise.
21631 (m32r-*-rtems*): Likewise.
21632 (m68k-*-rtems*): Likewise.
21633 (microblaze*-*-rtems*): Likewise.
21634 (mips*-*-rtems*): Likewise.
21635 (powerpc-*-rtems*): Likewise.
21636 (sh-*-rtems*): Likewise.
21637 (sparc-*-rtems*): Likewise.
21638 (sparc64-*-rtems*): Likewise.
21639 (v850-*-rtems*): Likewise.
21640 (m32c-*-rtems*): Likewise.
21641
21642 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
21643
21644 PR rtl-optimization/59511
21645 * ira.c (ira_init_register_move_cost): Use memory costs for some
21646 cases of register move cost calculations.
21647 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
21648 instead of BB frequency.
21649 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
21650 * lra-assigns.c (find_hard_regno_for): Ditto.
21651
21652 2014-01-15 Richard Biener <rguenther@suse.de>
21653
21654 PR tree-optimization/59822
21655 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
21656 (vectorizable_load): Use it to hoist defs of uses of invariant
21657 loads out of the loop.
21658
21659 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
21660 Kugan Vivekanandarajah <kuganv@linaro.org>
21661
21662 PR target/59695
21663 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
21664 truncation.
21665
21666 2014-01-15 Richard Biener <rguenther@suse.de>
21667
21668 PR rtl-optimization/59802
21669 * lcm.c (compute_available): Use inverted postorder to seed
21670 the initial worklist.
21671
21672 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21673
21674 PR target/59803
21675 * config/s390/s390.c (s390_preferred_reload_class): Don't return
21676 ADDR_REGS for invalid symrefs in non-PIC code.
21677
21678 2014-01-15 Jakub Jelinek <jakub@redhat.com>
21679
21680 PR other/58712
21681 * builtins.c (determine_block_size): Initialize *probable_max_size
21682 even if len_rtx is CONST_INT.
21683
21684 2014-01-14 Andrew Pinski <apinski@cavium.com>
21685
21686 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
21687 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
21688 (cortexa53_tunings): Likewise.
21689 (aarch64_sched_issue_rate): New function.
21690 (TARGET_SCHED_ISSUE_RATE): Define.
21691
21692 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21693
21694 * ira-costs.c (find_costs_and_classes): Add missed
21695 ira_init_register_move_cost_if_necessary.
21696
21697 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
21698
21699 PR target/59787
21700 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
21701
21702 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
21703
21704 PR target/59794
21705 * config/i386/i386.c (type_natural_mode): Add a bool parameter
21706 to indicate if type is used for function return value. Warn ABI
21707 change if the vector mode isn't available for function return value.
21708 (ix86_function_arg_advance): Pass false to type_natural_mode.
21709 (ix86_function_arg): Likewise.
21710 (ix86_gimplify_va_arg): Likewise.
21711 (function_arg_32): Don't warn ABI change.
21712 (ix86_function_value): Pass true to type_natural_mode.
21713 (ix86_return_in_memory): Likewise.
21714 (ix86_struct_value_rtx): Removed.
21715 (TARGET_STRUCT_VALUE_RTX): Likewise.
21716
21717 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21718
21719 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
21720 converting a conditional jump into a conditional return.
21721
21722 2014-01-14 Richard Biener <rguenther@suse.de>
21723
21724 PR tree-optimization/58921
21725 PR tree-optimization/59006
21726 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
21727 hoisting invariant stmts.
21728 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
21729 invariant loads on the preheader edge if possible.
21730
21731 2014-01-14 Joey Ye <joey.ye@arm.com>
21732
21733 * doc/plugin.texi (Building GCC plugins): Update to C++.
21734
21735 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
21736
21737 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
21738 (_mm_rcp28_round_ss): Ditto.
21739 (_mm_rsqrt28_round_sd): Ditto.
21740 (_mm_rsqrt28_round_ss): Ditto.
21741 (_mm_rcp28_sd): Ditto.
21742 (_mm_rcp28_ss): Ditto.
21743 (_mm_rsqrt28_sd): Ditto.
21744 (_mm_rsqrt28_ss): Ditto.
21745 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
21746 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
21747 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
21748 (IX86_BUILTIN_RCP28SD): Ditto.
21749 (IX86_BUILTIN_RCP28SS): Ditto.
21750 (IX86_BUILTIN_RSQRT28SD): Ditto.
21751 (IX86_BUILTIN_RSQRT28SS): Ditto.
21752 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
21753 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
21754 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
21755 (ix86_expand_special_args_builtin): Expand new FTYPE.
21756 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
21757 (srcp14<mode>): Make insn unary.
21758 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
21759 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
21760 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
21761 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
21762 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
21763 Fix rounding: make it SAE only.
21764 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
21765 Ditto.
21766 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
21767 Ditto.
21768 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
21769 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
21770 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
21771 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
21772 (round_saeonly_mask_scalar_operand4): Ditto.
21773 (round_saeonly_mask_scalar_op3): Ditto.
21774 (round_saeonly_mask_scalar_op4): Ditto.
21775
21776 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21777
21778 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21779 Implement -maltivec=be for vec_insert and vec_extract.
21780
21781 2014-01-10 DJ Delorie <dj@redhat.com>
21782
21783 * config/msp430/msp430.md (call_internal): Don't allow memory
21784 references with SP as the base register.
21785 (call_value_internal): Likewise.
21786 * config/msp430/constraints.md (Yc): New. For memory references
21787 that don't use SP as a base register.
21788
21789 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
21790 "an integer without a # prefix"
21791 * config/msp430/msp430.md (epilogue_helper): Use it.
21792
21793 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21794
21795 PR target/59617
21796 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
21797 AVX512F gather builtins.
21798 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
21799 on gather decls with INTEGER_TYPE masktype.
21800 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
21801 directly into the builtin rather than hoisting it before loop.
21802
21803 PR tree-optimization/59387
21804 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
21805 (scev_const_prop): If folded_casts and type has undefined overflow,
21806 use force_gimple_operand instead of force_gimple_operand_gsi and
21807 for each added stmt if it is assign with
21808 arith_code_with_undefined_signed_overflow, call
21809 rewrite_to_defined_overflow.
21810 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
21811 gimple-fold.h instead.
21812 (arith_code_with_undefined_signed_overflow,
21813 rewrite_to_defined_overflow): Moved to ...
21814 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
21815 rewrite_to_defined_overflow): ... here. No longer static.
21816 Include gimplify-me.h.
21817 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
21818 rewrite_to_defined_overflow): New prototypes.
21819
21820 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21821
21822 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
21823
21824 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
21825
21826 * builtins.c (get_object_alignment_2): Minor tweak.
21827 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
21828
21829 2014-01-13 Christian Bruel <christian.bruel@st.com>
21830
21831 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
21832 optimized non constant lengths.
21833
21834 2014-01-13 Jakub Jelinek <jakub@redhat.com>
21835
21836 PR libgomp/59194
21837 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
21838 load as __atomic_load_N if possible.
21839
21840 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21841
21842 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
21843 target parameter.
21844 (rs6000_expand_builtin): Adjust call.
21845
21846 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
21847
21848 PR target/58115
21849 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
21850 * config/rs6000/rs6000.c: Include target-globals.h.
21851 (rs6000_set_current_function): Instead of doing target_reinit
21852 unconditionally, use save_target_globals_default_opts and
21853 restore_target_globals.
21854
21855 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
21856 FPSCR.
21857 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
21858 (rs6000_expand_builtin): Handle mffs and mtfsf.
21859 (rs6000_init_builtins): Define mffs and mtfsf.
21860 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
21861 (rs6000_mffs): New pattern.
21862 (rs6000_mtfsf): New pattern.
21863
21864 2014-01-11 Bin Cheng <bin.cheng@arm.com>
21865
21866 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
21867 Start narrowing with START. Apply candidate-use pair
21868 and check overall cost in narrowing.
21869 (iv_ca_prune): Pass new argument.
21870
21871 2014-01-10 Jeff Law <law@redhat.com>
21872
21873 PR middle-end/59743
21874 * ree.c (combine_reaching_defs): Ensure the defining statement
21875 occurs before the extension when optimizing extensions with
21876 different source and destination hard registers.
21877
21878 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21879
21880 PR ipa/58585
21881 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
21882 vtables into the type inheritance graph.
21883
21884 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21885
21886 PR rtl-optimization/59754
21887 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
21888 modes in the REGNO != REGNO case.
21889
21890 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21891
21892 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
21893
21894 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21895
21896 PR tree-optimization/59745
21897 * tree-predcom.c (tree_predictive_commoning_loop): Call
21898 free_affine_expand_cache if giving up because components is NULL.
21899
21900 * target-globals.c (save_target_globals): Allocate < 4KB structs using
21901 GC in payload of target_globals struct instead of allocating them on
21902 the heap and the larger structs separately using GC.
21903 * target-globals.h (struct target_globals): Make regs, hard_regs,
21904 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
21905 of GTY((skip)) and change type to void *.
21906 (reset_target_globals): Cast loads from those fields to corresponding
21907 types.
21908
21909 2014-01-10 Steve Ellcey <sellcey@mips.com>
21910
21911 PR plugins/59335
21912 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
21913 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
21914 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
21915
21916 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
21917
21918 PR target/59744
21919 * aarch64-modes.def (CC_Zmode): New flags mode.
21920 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
21921 represents an equality.
21922 (aarch64_get_condition_code): Handle CC_Zmode.
21923 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
21924
21925 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21926
21927 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
21928 extraction in good case.
21929
21930 2014-01-10 Richard Biener <rguenther@suse.de>
21931
21932 PR tree-optimization/59374
21933 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
21934 checking after SLP discovery. Mark stmts not participating
21935 in any SLP instance properly.
21936
21937 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21938
21939 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
21940 when handling a SET rtx.
21941
21942 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21943
21944 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
21945 (cortex-a57): Likewise.
21946 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
21947
21948 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21949
21950 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
21951 non-iwmmxt builtins.
21952
21953 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
21954
21955 PR ipa/58252
21956 PR ipa/59226
21957 * ipa-devirt.c record_target_from_binfo): Take as argument
21958 stack of binfos and lookup matching one for virtual inheritance.
21959 (possible_polymorphic_call_targets_1): Update.
21960
21961 2014-01-10 Huacai Chen <chenhc@lemote.com>
21962
21963 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
21964 kernel strings for Loongson-2E/2F/3A.
21965
21966 2014-01-10 Jakub Jelinek <jakub@redhat.com>
21967
21968 PR middle-end/59670
21969 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
21970 is_gimple_call before calling gimple_call_internal_p.
21971
21972 2014-01-09 Steve Ellcey <sellcey@mips.com>
21973
21974 * Makefile.in (TREE_FLOW_H): Remove.
21975 (TREE_SSA_H): Add file names from tree-flow.h.
21976 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
21977 * tree.h: Remove tree-flow.h reference.
21978 * hash-table.h: Remove tree-flow.h reference.
21979 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
21980 reference with tree-ssa-loop.h.
21981
21982 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21983
21984 * doc/invoke.texi: Add -maltivec={be,le} options, and document
21985 default element-order behavior for -maltivec.
21986 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
21987 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
21988 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
21989 when targeting big endian, at least for now.
21990 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
21991
21992 2014-01-09 Jakub Jelinek <jakub@redhat.com>
21993
21994 PR middle-end/47735
21995 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
21996 var satisfies use_register_for_decl, just take into account type
21997 alignment, rather than decl alignment.
21998
21999 PR tree-optimization/59622
22000 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
22001 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
22002 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
22003 Don't devirtualize for inplace at all. For targets.length () == 1,
22004 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
22005
22006 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
22007
22008 * config/i386/i386.md (cpu): Remove the unused btver1.
22009
22010 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
22011
22012 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
22013
22014 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22015
22016 PR target/58115
22017 * tree-core.h (struct target_globals): New forward declaration.
22018 (struct tree_target_option): Add globals field.
22019 * tree.h (TREE_TARGET_GLOBALS): Define.
22020 (prepare_target_option_nodes_for_pch): New prototype.
22021 * target-globals.h (struct target_globals): Define even if
22022 !SWITCHABLE_TARGET.
22023 * tree.c (prepare_target_option_node_for_pch,
22024 prepare_target_option_nodes_for_pch): New functions.
22025 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
22026 * config/i386/i386.c: Include target-globals.h.
22027 (ix86_set_current_function): Instead of doing target_reinit
22028 unconditionally, use save_target_globals_default_opts and
22029 restore_target_globals.
22030
22031 2014-01-09 Richard Biener <rguenther@suse.de>
22032
22033 PR tree-optimization/59715
22034 * tree-cfg.h (split_critical_edges): Declare.
22035 * tree-cfg.c (split_critical_edges): Export.
22036 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
22037
22038 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
22039
22040 * cfgexpand.c (expand_stack_vars): Optionally disable
22041 asan stack protection.
22042 (expand_used_vars): Likewise.
22043 (partition_stack_vars): Likewise.
22044 * asan.c (asan_emit_stack_protection): Optionally disable
22045 after return stack usage.
22046 (instrument_derefs): Optionally disable memory access instrumentation.
22047 (instrument_builtin_call): Likewise.
22048 (instrument_strlen_call): Likewise.
22049 (asan_protect_global): Optionally disable global variables protection.
22050 * doc/invoke.texi: Added doc for new options.
22051 * params.def: Added new options.
22052 * params.h: Likewise.
22053
22054 2014-01-09 Jakub Jelinek <jakub@redhat.com>
22055
22056 PR rtl-optimization/59724
22057 * ifcvt.c (cond_exec_process_if_block): Don't call
22058 flow_find_head_matching_sequence with 0 longest_match.
22059 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
22060 non-active insns if !stop_after.
22061 (try_head_merge_bb): Revert 2014-01-07 changes.
22062
22063 2014-01-08 Jeff Law <law@redhat.com>
22064
22065 * ree.c (get_sub_rtx): New function, extracted from...
22066 (merge_def_and_ext): Here.
22067 (combine_reaching_defs): Use get_sub_rtx.
22068
22069 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
22070
22071 * cgraph.h (varpool_variable_node): Do not choke on null node.
22072
22073 2014-01-08 Catherine Moore <clm@codesourcery.com>
22074
22075 * config/mips/mips.md (simple_return): Attempt to use JRC
22076 for microMIPS.
22077 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
22078
22079 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
22080
22081 PR rtl-optimization/59137
22082 * reorg.c (steal_delay_list_from_target): Call update_block for
22083 elided insns.
22084 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
22085
22086 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22087
22088 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
22089 two duplicate entries.
22090
22091 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
22092
22093 Revert:
22094 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
22095
22096 * config/mips/mips.c (mips_truncated_op_cost): New function.
22097 (mips_rtx_costs): Adjust test for BADDU.
22098 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
22099
22100 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
22101
22102 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
22103 (*baddu_si): ...this new pattern.
22104
22105 2014-01-08 Jakub Jelinek <jakub@redhat.com>
22106
22107 PR ipa/59722
22108 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
22109
22110 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
22111
22112 PR middle-end/57748
22113 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
22114 inner_reference_p.
22115 (expand_expr, expand_normal): Adjust.
22116 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
22117 inner_reference_p. Use inner_reference_p to expand inner references.
22118 (store_expr): Adjust.
22119 * cfgexpand.c (expand_call_stmt): Adjust.
22120
22121 2014-01-08 Rong Xu <xur@google.com>
22122
22123 * gcov-io.c (gcov_var): Move from gcov-io.h.
22124 (gcov_position): Ditto.
22125 (gcov_is_error): Ditto.
22126 (gcov_rewrite): Ditto.
22127 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
22128 only part to libgcc/libgcov.h.
22129
22130 2014-01-08 Marek Polacek <polacek@redhat.com>
22131
22132 PR middle-end/59669
22133 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
22134
22135 2014-01-08 Marek Polacek <polacek@redhat.com>
22136
22137 PR sanitizer/59667
22138 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
22139
22140 2014-01-08 Jakub Jelinek <jakub@redhat.com>
22141
22142 PR rtl-optimization/59649
22143 * stor-layout.c (get_mode_bounds): For BImode return
22144 0 and STORE_FLAG_VALUE.
22145
22146 2014-01-08 Richard Biener <rguenther@suse.de>
22147
22148 PR middle-end/59630
22149 * gimple.h (is_gimple_builtin_call): Remove.
22150 (gimple_builtin_call_types_compatible_p): New.
22151 (gimple_call_builtin_p): New overload.
22152 * gimple.c (is_gimple_builtin_call): Remove.
22153 (validate_call): Rename to ...
22154 (gimple_builtin_call_types_compatible_p): ... this and export. Also
22155 check return types.
22156 (validate_type): New static function.
22157 (gimple_call_builtin_p): New overload and adjust.
22158 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
22159 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
22160 (gimple_fold_stmt_to_constant_1): Likewise.
22161 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
22162
22163 2014-01-08 Richard Biener <rguenther@suse.de>
22164
22165 PR middle-end/59471
22166 * gimplify.c (gimplify_expr): Gimplify register-register type
22167 VIEW_CONVERT_EXPRs to separate stmts.
22168
22169 2014-01-07 Jeff Law <law@redhat.com>
22170
22171 PR middle-end/53623
22172 * ree.c (combine_set_extension): Handle case where source
22173 and destination registers in an extension insn are different.
22174 (combine_reaching_defs): Allow source and destination registers
22175 in extension to be different under limited circumstances.
22176 (add_removable_extension): Remove restriction that the
22177 source and destination registers in the extension are the same.
22178 (find_and_remove_re): Emit a copy from the extension's
22179 destination to its source after the defining insn if
22180 the source and destination registers are different.
22181
22182 PR middle-end/59285
22183 * ifcvt.c (merge_if_block): If we are merging a block with more than
22184 one successor with a block with no successors, remove any BARRIER
22185 after the second block.
22186
22187 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
22188
22189 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
22190
22191 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
22192
22193 PR target/59652
22194 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
22195 for 14-bit register offsets when INT14_OK_STRICT is false.
22196
22197 2014-01-07 Roland Stigge <stigge@antcom.de>
22198 Michael Meissner <meissner@linux.vnet.ibm.com>
22199
22200 PR 57386/target
22201 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
22202 Only check TFmode for SPE constants. Don't check TImode or TDmode.
22203
22204 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
22205
22206 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
22207 -mcpu.
22208
22209 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
22210
22211 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
22212 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
22213 rtx is const0_rtx or not.
22214
22215 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
22216
22217 PR target/58115
22218 * target-globals.c (save_target_globals): Remove this_fn_optab
22219 handling.
22220 * toplev.c: Include optabs.h.
22221 (target_reinit): Temporarily restore the global options if another
22222 set of options are in force.
22223
22224 2014-01-07 Jakub Jelinek <jakub@redhat.com>
22225
22226 PR rtl-optimization/58668
22227 * cfgcleanup.c (flow_find_cross_jump): Don't count
22228 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
22229 to determine what is counted.
22230 (flow_find_head_matching_sequence): Use active_insn_p to determine
22231 what is counted.
22232 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
22233 counting change.
22234 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
22235 determine what is counted.
22236
22237 PR tree-optimization/59643
22238 * tree-predcom.c (split_data_refs_to_components): If one dr is
22239 read and one write, determine_offset fails and the write isn't
22240 in the bad component, just put the read into the bad component.
22241
22242 2014-01-07 Mike Stump <mikestump@comcast.net>
22243 Jakub Jelinek <jakub@redhat.com>
22244
22245 PR pch/59436
22246 * tree-core.h (struct tree_optimization_option): Change optabs
22247 type from unsigned char * to void *.
22248 * optabs.c (init_tree_optimization_optabs): Adjust
22249 TREE_OPTIMIZATION_OPTABS initialization.
22250
22251 2014-01-06 Jakub Jelinek <jakub@redhat.com>
22252
22253 PR target/59644
22254 * config/i386/i386.h (struct machine_function): Add
22255 no_drap_save_restore field.
22256 * config/i386/i386.c (ix86_save_reg): Use
22257 !cfun->machine->no_drap_save_restore instead of
22258 crtl->stack_realign_needed.
22259 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
22260 this function clears frame_pointer_needed. Set
22261 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
22262 and DRAP reg is needed.
22263
22264 2014-01-06 Marek Polacek <polacek@redhat.com>
22265
22266 PR c/57773
22267 * doc/implement-c.texi: Mention that other integer types are
22268 permitted as bit-field types in strictly conforming mode.
22269
22270 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
22271
22272 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
22273 is newly allocated.
22274
22275 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
22276
22277 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
22278
22279 2014-01-06 Martin Jambor <mjambor@suse.cz>
22280
22281 PR ipa/59008
22282 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
22283 to int.
22284 * ipa-prop.c (ipa_print_node_params): Fix indentation.
22285
22286 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
22287
22288 PR debug/59350
22289 PR debug/59510
22290 * var-tracking.c (add_stores): Preserve the value of the source even if
22291 we don't record the store.
22292
22293 2014-01-06 Terry Guo <terry.guo@arm.com>
22294
22295 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
22296
22297 2014-01-05 Iain Sandoe <iain@codesourcery.com>
22298
22299 PR bootstrap/59541
22300 * config/darwin.c (darwin_function_section): Adjust return values to
22301 correspond to optimisation changes made in r206070.
22302
22303 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
22304
22305 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
22306 from prefetch_block tune setting.
22307 (nocona_cost): Correct size of prefetch block to 64.
22308
22309 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
22310
22311 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
22312 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
22313 used to save the static chain register in the computation of the offset
22314 from which the FP registers need to be restored.
22315
22316 2014-01-04 Jakub Jelinek <jakub@redhat.com>
22317
22318 PR tree-optimization/59519
22319 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
22320 ICE if get_current_def (current_new_name) is already non-NULL, as long
22321 as it is a phi result of some other phi in *new_exit_bb that has
22322 the same argument.
22323
22324 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
22325 or vmovdqu* for misaligned_operand.
22326 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
22327 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
22328 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
22329 aligned_mem for AVX512F masked aligned load and store builtins and for
22330 non-temporal moves.
22331
22332 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
22333
22334 PR tree-optimization/59651
22335 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
22336 Address range for negative step should be added by TYPE_SIZE_UNIT.
22337
22338 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
22339
22340 * config/m68k/m68k.c (handle_move_double): Handle pushes with
22341 overlapping registers also for registers other than the stack pointer.
22342
22343 2014-01-03 Marek Polacek <polacek@redhat.com>
22344
22345 PR other/59661
22346 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
22347 __builtin_FILE.
22348
22349 2014-01-03 Jakub Jelinek <jakub@redhat.com>
22350
22351 PR target/59625
22352 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
22353 asm goto as jump.
22354
22355 * config/i386/i386.md (MODE_SIZE): New mode attribute.
22356 (push splitter): Use <P:MODE_SIZE> instead of
22357 GET_MODE_SIZE (<P:MODE>mode).
22358 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
22359 (mov -1, reg peephole2): Likewise.
22360 * config/i386/sse.md (*mov<mode>_internal,
22361 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
22362 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
22363 *<code><mode>3, *andnot<mode>3<mask_name>,
22364 <mask_codefor><code><mode>3<mask_name>): Likewise.
22365 * config/i386/subst.md (mask_mode512bit_condition,
22366 sd_mask_mode512bit_condition): Likewise.
22367
22368 2014-01-02 Xinliang David Li <davidxl@google.com>
22369
22370 PR tree-optimization/59303
22371 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
22372 (dump_predicates): Better output format.
22373 (pred_equal_p): New function.
22374 (is_neq_relop_p): Ditto.
22375 (is_neq_zero_form_p): Ditto.
22376 (pred_expr_equal_p): Ditto.
22377 (pred_neg_p): Ditto.
22378 (simplify_pred): Ditto.
22379 (simplify_preds_2): Ditto.
22380 (simplify_preds_3): Ditto.
22381 (simplify_preds_4): Ditto.
22382 (simplify_preds): Ditto.
22383 (push_pred): Ditto.
22384 (push_to_worklist): Ditto.
22385 (get_pred_info_from_cmp): Ditto.
22386 (is_degenerated_phi): Ditto.
22387 (normalize_one_pred_1): Ditto.
22388 (normalize_one_pred): Ditto.
22389 (normalize_one_pred_chain): Ditto.
22390 (normalize_preds): Ditto.
22391 (normalize_cond_1): Remove function.
22392 (normalize_cond): Ditto.
22393 (is_gcond_subset_of): Ditto.
22394 (is_subset_of_any): Ditto.
22395 (is_or_set_subset_of): Ditto.
22396 (is_and_set_subset_of): Ditto.
22397 (is_norm_cond_subset_of): Ditto.
22398 (pred_chain_length_cmp): Ditto.
22399 (convert_control_dep_chain_into_preds): Type change.
22400 (find_predicates): Ditto.
22401 (find_def_preds): Ditto.
22402 (destroy_predicates_vecs): Ditto.
22403 (find_matching_predicates_in_rest_chains): Ditto.
22404 (use_pred_not_overlap_with_undef_path_pred): Ditto.
22405 (is_pred_expr_subset): Ditto.
22406 (is_pred_chain_subset_of): Ditto.
22407 (is_included_in): Ditto.
22408 (is_superset_of): Ditto.
22409
22410 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22411
22412 Update copyright years.
22413
22414 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
22415
22416 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
22417 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
22418 config/arc/arc.md, config/arc/arc.opt,
22419 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
22420 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
22421 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
22422 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
22423 config/linux-protos.h, config/linux.c, config/winnt-c.c,
22424 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
22425 vtable-verify.c, vtable-verify.h: Use the standard form for the
22426 copyright notice.
22427
22428 2014-01-02 Tobias Burnus <burnus@net-b.de>
22429
22430 * gcc.c (process_command): Update copyright notice dates.
22431 * gcov-dump.c: Ditto.
22432 * gcov.c: Ditto.
22433 * doc/cpp.texi: Bump @copying's copyright year.
22434 * doc/cppinternals.texi: Ditto.
22435 * doc/gcc.texi: Ditto.
22436 * doc/gccint.texi: Ditto.
22437 * doc/gcov.texi: Ditto.
22438 * doc/install.texi: Ditto.
22439 * doc/invoke.texi: Ditto.
22440
22441 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22442
22443 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
22444
22445 2014-01-01 Jakub Jelinek <jakub@redhat.com>
22446
22447 * config/i386/sse.md (*mov<mode>_internal): Guard
22448 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
22449
22450 PR rtl-optimization/59647
22451 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
22452 new_rtx into UNSIGNED_FLOAT rtxes.
22453 \f
22454 Copyright (C) 2014 Free Software Foundation, Inc.
22455
22456 Copying and distribution of this file, with or without modification,
22457 are permitted in any medium without royalty provided the copyright
22458 notice and this notice are preserved.